[Paper Review] Physics Guided Recurrent Neural Networks For Modeling Dynamical Systems: Application to Monitoring Water Temperature And Quality In Lakes
This paper proposes Physics-Guided Recurrent Neural Networks (PGRNN) that integrate physical constraints—such as density-depth relationships and energy conservation—into LSTM models to improve prediction accuracy and scientific consistency in modeling lake temperature and phosphorus dynamics. By incorporating physics-based model outputs and enforcing physical laws via custom loss functions, PGRNN achieves significant improvements over standard RNNs and physics-only models, especially in handling missing data and maintaining physical plausibility.
In this paper, we introduce a novel framework for combining scientific knowledge within physics-based models and recurrent neural networks to advance scientific discovery in many dynamical systems. We will first describe the use of outputs from physics-based models in learning a hybrid-physics-data model. Then, we further incorporate physical knowledge in real-world dynamical systems as additional constraints for training recurrent neural networks. We will apply this approach on modeling lake temperature and quality where we take into account the physical constraints along both the depth dimension and time dimension. By using scientific knowledge to guide the construction and learning the data-driven model, we demonstrate that this method can achieve better prediction accuracy as well as scientific consistency of results.
Motivation & Objective
- To address the limitations of purely data-driven ML models in scientific applications, which often lack interpretability and physical consistency.
- To overcome the shortcomings of physics-based models, which may be inaccurate due to incomplete physical representations.
- To develop a hybrid modeling framework that synergistically combines physics knowledge and data-driven learning for improved accuracy and scientific validity.
- To enable robust predictions in data-scarce environments by using physics-based model outputs as priors during training.
- To enforce physical laws—such as density-depth monotonicity and energy conservation—directly in the loss function to ensure physically plausible predictions.
Proposed method
- The PGRNN framework uses outputs from a physics-based model (e.g., GLM) as input features to guide the RNN, combining physical priors with data-driven learning.
- A hybrid model is trained where the physics-based model output (Y_phy) is used to refine predictions and fill gaps in missing observations, ensuring temporal continuity.
- Non-standard loss functions are designed to penalize violations of physical constraints, such as non-monotonic density with depth or energy imbalance over time.
- The density-depth constraint enforces that predicted water density increases monotonically with depth using a known physical equation for water density as a function of temperature.
- The energy conservation constraint ensures that the change in volume-averaged lake temperature aligns with the net energy flux, derived from incoming and outgoing radiation and heat exchange.
- The model uses a modified LSTM architecture with attention to temporal dependencies, enhanced by physical constraints to improve generalization and stability.
Experimental results
Research questions
- RQ1Can integrating physics-based model outputs into a recurrent neural network improve prediction accuracy for lake temperature and water quality?
- RQ2How can physical constraints such as monotonic density with depth be embedded into the training process of a neural network to improve physical consistency?
- RQ3To what extent does enforcing energy conservation in the temporal evolution of lake temperature enhance prediction reliability and smoothness?
- RQ4Can PGRNN outperform both pure physics models and standard RNNs in terms of RMSE and physical plausibility, especially in data-sparse regimes?
- RQ5Does the use of physics-guided loss functions reduce false discoveries and improve interpretability in scientific modeling of dynamical systems?
Key findings
- PGRNN reduced RMSE for surface phosphorus concentration prediction in Lake Mendota to 0.0237, outperforming the physics-only model (0.0266) and standard RNN (0.0247).
- With the density-depth constraint, PGRNN achieved a phy-inconsistency score of 0.0732, significantly lower than PGRNN0 (0.1798), demonstrating improved physical consistency.
- The inclusion of energy conservation constraints led to a smoother and more realistic evolution of thermocline depth over time, as shown in Figure 3.
- PGRNN achieved an RMSE of 1.4791 for lake water temperature prediction, outperforming RNN (1.6042) and ANN (1.8830), while also reducing physical inconsistencies.
- The model effectively handled missing observations by using physics-based model outputs as surrogate data, maintaining a complete temporal trajectory for training.
- The integration of physical laws into the loss function led to predictions that were not only more accurate but also more scientifically plausible, particularly in capturing thermocline dynamics and vertical density profiles.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.