A Knowledge-Inspired Hierarchical Physics-Informed Neural Network for Pipeline Hydraulic Transient Simulation

Jian Du,Haochong Li,Qi Liao,Jun Shen,Jianqin Zheng,Yongtu Liang
2024-09-17
Abstract:The high-pressure transportation process of pipeline necessitates an accurate hydraulic transient simulation tool to prevent slack line flow and over-pressure, which can endanger pipeline operations. However, current numerical solution methods often face difficulties in balancing computational efficiency and accuracy. Additionally, few studies attempt to reform physics-informed learning architecture for pipeline transient simulation with magnitude different in outputs and imbalanced gradient in loss function. To address these challenges, a Knowledge-Inspired Hierarchical Physics-Informed Neural Network is proposed for hydraulic transient simulation of multi-product pipelines. The proposed model integrates governing equations, boundary conditions, and initial conditions into the training process to ensure consistency with physical laws. Furthermore, magnitude conversion of outputs and equivalent conversion of governing equations are implemented to enhance the training performance of the neural network. To further address the imbalanced gradient of multiple loss terms with fixed weights, a hierarchical training strategy is designed. Numerical simulations demonstrate that the proposed model outperforms state-of-the-art models and can still produce accurate simulation results under complex hydraulic transient conditions, with mean absolute percentage errors reduced by 87.8\% and 92.7 \% in pressure prediction. Thus, the proposed model can conduct accurate and effective hydraulic transient analysis, ensuring the safe operation of pipelines.
Computational Engineering, Finance, and Science
What problem does this paper attempt to address?
The problem that this paper attempts to solve is how to balance computational efficiency and accuracy in hydraulic transient simulations in multi - product pipelines, and to address the issues of output magnitude differences and unbalanced loss function gradients. Specifically: 1. **Improve computational efficiency and accuracy**: Current numerical solutions often struggle to simultaneously ensure computational efficiency and the accuracy of results when dealing with pipeline hydraulic transient simulations. This limits their effectiveness in practical applications. 2. **Solve output magnitude differences**: In hydraulic transient simulations of multi - product pipelines, there are significant magnitude differences between different output variables (such as pressure and flow velocity), which can lead to poor gradient - descent performance during neural network training and affect the prediction accuracy of the model. 3. **Handle unbalanced loss function gradients**: In the training process of traditional physics - informed neural networks (PINNs), the weights of multiple loss terms are fixed, which easily leads to unbalanced gradients, thereby affecting the convergence effect of the model and the final prediction performance. To solve the above problems, the paper proposes a knowledge - inspired hierarchical physics - informed neural network (KIH - PINN), which improves the performance of the model through the following methods: - **Integrate physical laws**: Incorporate the governing equations, boundary conditions, and initial conditions into the training process to ensure that the results generated by the model conform to physical laws. - **Output magnitude conversion**: Perform magnitude conversion on output variables to make the magnitudes of different output variables tend to be consistent, thereby improving the gradient - descent performance. - **Hierarchical training strategy**: Design a hierarchical training strategy that decomposes the training process into multiple sub - processes and gradually optimizes the model parameters to overcome the gradient imbalance problem caused by the fixed - weight loss function. Through these innovations, the KIH - PINN model exhibits higher prediction accuracy and computational efficiency under complex hydraulic transient conditions, especially in pressure prediction, where the mean absolute percentage error (MAPE) is reduced by 87.8% and 92.7% respectively.