Physics-informed Recurrent Neural Networks for The Identification of a Generic Energy Buffer System

Manu Lahariya, Farzaneh Karami, Chris Develder, Guillaume Crevecoeur2021

Abstract

Energy storage is ubiquitous in industrial processes and comes in many forms such as material, chemical, electromechanical buffers. System identification of such energy buffers demands proper estimation/prediction of their physical quantities and unknown parameters. Once these parameters are determined, the identified model can be employed to predict the industrial process dynamics, which finally assist to build efficient control for these processes. This paper proposes physics-informed neural networks-based grey-box modeling methods for the identification of energy buffers. The underlying system dynamics are enforced on the neural network structure to ensure that the identified grey-box model follows the approximate physics. We define two novel grey-box models based on simple and recurrent neural network architectures and test these models for a generic energy buffer. Performance and training time for the proposed grey-box models are compared against a black-box baseline model. Results confirm that imposing the dynamic system's physics on the network improves the performance, and utilizing a recurrent architecture leads to a further improvement.

Introduction

In modern industrial environments, energy buffers—ranging from thermal storage tanks to chemical batteries—are essential for stabilizing operations against fluctuating energy markets and supply chains. To optimize these systems, engineers require precise mathematical models for control and prediction.

Traditionally, modeling has relied on two extremes: "white-box" models based purely on physical laws (ODEs/PDEs), which may be too rigid for complex real-world dynamics, and "black-box" models based on machine learning, which are flexible but often ignore fundamental physics. This paper explores the "grey-box" middle ground, presenting a hybrid approach that embeds physical constraints directly into neural network architectures to ensure both predictive power and physical consistency.

Modeling the Energy Buffer

To evaluate the proposed methods, the researchers utilized a high-fidelity simulation of a generic energy buffer. An RC-circuit was employed as a mathematical proxy, where the capacitor voltage ($V_c$) represents the buffer's state of charge, and the input voltage ($V_s$) represents the power input. This setup allows for a controlled environment to test how well neural networks can identify system parameters like resistance ($R$) and capacitance ($C$) under noisy conditions.

RC-circuit as a virtual battery proxy for a generic energy buffer

Physics-Informed Architectures

The core of the research involves two physics-informed architectures:

  1. PyNN (Physics-informed Neural Network): A feed-forward network where the loss function includes a penalty for violating the system's governing differential equations.
  2. PyLSTM (Physics-informed LSTM): A recurrent architecture designed to capture temporal dependencies. By enforcing physics across a sequence of time steps, PyLSTM maintains a "memory" of the system state, which is crucial for dynamic processes.
Architecture of the Physics-informed LSTM (PyLSTM)

The training objective for these models minimizes a composite loss function: the mean squared error of the predictions ($MSE_m$), the residual of the physics equations ($MSE_f$), and an L2 regularization term to prevent overfitting. This ensures the model weights align with the underlying physical process rather than just fitting sensor noise.

Results and Discussion

The results demonstrate that the PyLSTM model significantly outperforms both the standard black-box baseline and the feed-forward PyNN. Key findings include:

  • High Accuracy: PyLSTM achieved short-term prediction errors of less than 5%.
  • Stability: The recurrent architecture provided much better long-term forecasting stability compared to non-recurrent models.
  • Robustness: Statistical analysis (two-tailed t-tests) confirmed that PyLSTM's improvements are statistically significant and consistent across various validation sets.

While PyLSTM requires more computational time per training iteration due to its complexity, its higher performance ceiling and reliability make it a superior choice for industrial system identification.

Conclusion

This study highlights the potential of physics-informed recurrent neural networks for modeling industrial energy storage. By combining the strengths of deep learning with the guardrails of physical laws, the PyLSTM model provides a robust tool for identifying complex system dynamics. Future work will focus on expanding this architecture to handle multiple-input multiple-output (MIMO) systems and validating the approach with real-world industrial sensor data.

Summary updated

BibTeX
@inproceedings{lahariya2021physics,
  author = {Manu Lahariya and Farzaneh Karami and Chris Develder and Guillaume Crevecoeur},
  title = {{Physics-informed Recurrent Neural Networks for The Identification of a Generic Energy Buffer System}},
  booktitle = {2021},
  year = {2021},
  doi = {10.1109/ddcls52934.2021.9455657},
}
Figure