Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Jul 1;14(1):15015.
doi: 10.1038/s41598-024-65304-w.

Application of physics encoded neural networks to improve predictability of properties of complex multi-scale systems

Affiliations

Application of physics encoded neural networks to improve predictability of properties of complex multi-scale systems

Marcel B J Meinders et al. Sci Rep. .

Abstract

Predicting physical properties of complex multi-scale systems is a common challenge and demands analysis of various temporal and spatial scales. However, physics alone is often not sufficient due to lack of knowledge on certain details of the system. With sufficient data, however, machine learning techniques may aid. If data are yet relatively cumbersome to obtain, hybrid methods may come to the rescue. We focus in this report on using various types of neural networks (NN) including NN's into which physics information is encoded (PeNN's) and also studied effects of NN's hyperparameters. We apply the networks to predict the viscosity of an emulsion as a function of shear rate. We show that using various network performance metrics as the mean squared error and the coefficient of determination ( R 2 ) that the PeNN's always perform better than the NN's, as also confirmed by a Friedman test with a p-value smaller than 0.0002. The PeNN's capture extrapolation and interpolation very well, contrary to the NN's. In addition, we have found that the NN's hyperparameters including network complexity and optimization methods do not have any effect on the above conclusions. We suggest that encoding NN's with any disciplinary system based information yields promise to better predict properties of complex systems than NN's alone, which will be in particular advantageous for small numbers of data. Such encoding would also be scalable, allowing different properties to be combined, without repetitive training of the NN's.

Keywords: Complex systems; Machine learning; Multi-scale modeling; Neural networks; Physics encoded neural networks.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
Example of a flow curve of an oil-in-water emulsion and Quemada-model-fit.
Figure 2
Figure 2
Schematic architecture of the NN (left, middle) and PeNN (right) configuration.
Figure 3
Figure 3
Schematic architecture of the NN (left, middle) and PeNN (right) configuration.
Figure 4
Figure 4
Results of the NN 2-128-32-8-1 neural network (see Fig. 3). This NN was trained and tested using a data set generated from n=3 different ϕp and for each ϕp N=300 different γ˙. Top-left: loss as a function of number of epochs; Top-right: predicted versus actual values of the training (blue) and test-holdout (orange) set; Bottom-left: predicted versus ground truth of the test set containing unseen ϕp; Bottom-right: examples of ground truth (actual) shear rate dependent viscosity ( (seen ϕp) and (unseen ϕp)) and predicted shear rate dependent viscosity (). The colors indicate different ϕp.
Figure 5
Figure 5
Results of the PeNN 2-1-1-1 [physical-encoded neural network (see Fig. 3). This NN was trained and tested using a data set generated from n=3 different ϕp and for each ϕp N=300 different γ˙. Top-left: loss as a function of number of epochs; Top-right predicted versus actual values of the training (blue) and test-holdout (orange) set; Bottom-left: predicted versus actual values of the test set containing unseen ϕp; Bottom-right: examples of actual shear rate dependent viscosity ( (seen ϕp) and (unseen ϕp)) and predicted shear rate dependent viscosity (). The colors indicate different ϕp.
Figure 6
Figure 6
Results of the NN 4-32-8-1 neural network (see Fig. 3). The NN was trained and tested using a data set generated from n=3 different ϕp and for each ϕp N=300 different γ˙. Top-left: loss as a function of number of epochs; Top-right predicted versus actual values of the training and test-holdout set; Bottom-left: predicted versus actual values of the test set; Bottom-right: examples of actual shear rate dependent viscosity ( (seen ϕp) and (unseen ϕp)) and predicted shear rate dependent viscosity (). The colors indicate different ϕp.
Figure 7
Figure 7
Results of the PeNN 4-6-2-1-1-1 physical-encoded neural network (see Fig. 3). The PeNN was trained and tested using a data set generated from n=3 different ϕp and for each ϕp N=300 different γ˙. Top-left: loss as a function of number of epochs; Top-right: predicted versus actual values of the training (orange) and test-holdout (blue) set; Bottom-left: predicted versus actual values of the test set ϕp; Bottom-right: examples of actual () and predicted () flow curves (colors indicate ϕp.
Figure 8
Figure 8
Mean squared error (mse) of the different NN’s and PeNN between predicted and ground truth values for the test set. The colors correspond to NN 4-32-8-1 (blue), NN 4-128-32-8-1 (orange), and PeNN 4-6-2-1-1-1 (green). The horizontal axis correspond to different data sets generated with n[3,5,7] different ϕp’s and for each ϕp, N[20,50,100,300,500] different logγ˙.

References

    1. van Mil HG, Foegeding E, Windhab EJ, Perrot N, Van Der Linden E. A complex system approach to address world challenges in food and agriculture. Trends Food Sci. Technol. 2014;40(1):20–32. doi: 10.1016/j.tifs.2014.07.005. - DOI
    1. Perrot N, De Vries H, Lutton E, Van Mil HG, Donner M, Tonda A, Martin S, Alvarez I, Bourgine P, Van Der Linden E, et al. Some remarks on computational approaches towards sustainable complex agri-food systems. Trends Food Sci. Technol. 2016;48:88–101. doi: 10.1016/j.tifs.2015.10.003. - DOI
    1. Weinan, E., Han, J. & Zhang, L. et al. Integrating machine learning with physics-based modeling. arXiv:2006.02619 (2020).
    1. Jia X, Willard J, Karpatne A, Read JS, Zwart JA, Steinbach M, Kumar V. Physics-guided machine learning for scientific discovery: An application in simulating lake temperature profiles. ACM/IMS Trans. Data Sci. 2021;2(3):1–26. doi: 10.1145/3447814. - DOI
    1. Daw, A., Karpatne, A., Watkins, W., Read, J., Kumar, V. Physics-guided neural networks (pgnn): An application in lake temperature modeling. arXiv:1710.11431 (2017).

LinkOut - more resources