Deep-learning-based surrogate model for fast and accurate simulation in pipeline transport

Feng Qin, Zhenghe Yan, Peng Yang, Shenglai Tang, Hu HuangFrontiers in Energy Research 2022

Abstract

A new deep-learning-based surrogate model is developed and applied for predicting dynamic temperature, pressure, gas rate, oil rate, and water rate with different boundary conditions in pipeline flow. The surrogate model is based on the multilayer perceptron (MLP), batch normalization and Parametric Rectified Linear Unit techniques. In training, the loss function for data mismatch is considered to optimize the model parameters with means absolute error (MAE). In addition, we also use the dynamic weights, calculated by the input data value, to increase the contribution of smaller inputs and avoid errors caused by large values eating small values in total loss. Finally, the surrogate model is applied to simulate a complex pipeline flow in the eastern part of the South China Sea. The online computations from our surrogate model, about 0.008 s per run, achieve speedups of over 1,250 relative to the high-fidelity simulations. Overall, this model provides reliable and fast predictions of the dynamic flow along the pipeline.

Introduction

In offshore oil and gas production, simulating the flow of gas, oil, and water through subsea pipelines is critical for operational safety and efficiency. However, these "multiphase" flows are incredibly complex due to changing pressures, temperatures, and underwater terrain. Currently, engineers rely on high-fidelity numerical simulators like LeadFlow or OLGA. While accurate, these tools are computationally expensive and slow—often taking seconds or minutes for a single run. This latency makes them impractical for real-time monitoring or "what-if" scenarios that require thousands of simulations to account for reservoir uncertainty.

This paper presents a "surrogate" model: a mathematical approximation that mimics the expensive simulator's accuracy but operates at lightning speed using deep learning architectures.

Methodology

The authors built their surrogate model using a Multilayer Perceptron (MLP) architecture. To make the model robust enough for engineering applications, they implemented three key technical enhancements:

  1. FC + BN + PReLU Structure: The model consists of five layers. Each layer uses Fully Connected (FC) neurons followed by Batch Normalization (BN) to speed up training and Parametric Rectified Linear Units (PReLU). PReLU helps prevent "dead neurons" by allowing a small gradient for negative input values, which is essential for capturing physical flow nuances.
  2. Dynamic Weights: This is the primary innovation. In pipeline flow, gas rates might be in the hundreds of thousands, while water rates are much smaller. In a standard loss function, large gas errors would "eat" small water errors. The authors introduced dynamic weights that automatically increase the importance of smaller input values during training.
  3. Custom Normalization: A specific normalization formula was used to map all input data (pressure, temperature, flow rates) into a tight [0, 1] range, ensuring the neural network treats different units of measurement fairly.
The detailed structure of the surrogate model, showing the L1-L5 layers and the integration of BN and PReLU.

Experimental Setup and Dataset

The researchers focused on a real-world case study: a gas field group in the eastern South China Sea. Data was generated using the commercial simulator LeadFlow. A total of 215,690 high-fidelity simulations were performed to create the dataset, with 172,552 runs used for training and 43,138 runs reserved for testing. The model takes 9 inputs (flow rates and temperatures from source wells, plus terminal pressure) and predicts 5 physical properties across 13 different nodes along a 24km pipeline.

Key Results

The surrogate model's performance was evaluated against the "ground truth" LeadFlow simulations, demonstrating significant improvements in efficiency without sacrificing precision.

  • Speedup: The surrogate model takes just 0.008 seconds per run, compared to approximately 10 seconds for LeadFlow, representing a 1,250x speedup.
  • Accuracy: The median relative errors were remarkably low across all variables, including Temperature (0.56%), Pressure (0.79%), and Gas Rate (1.02%).
Comparison of temperature predictions along the pipeline between the surrogate model and LeadFlow.

As shown in the results, the surrogate model's predictions (red lines) almost perfectly track the LeadFlow results (green dotted lines) across the entire length of the pipeline, proving the effectiveness of the dynamic weighting approach.

Conclusion

This study demonstrates that a well-optimized, deep MLP is highly capable of handling 1D pipeline regression tasks with extreme efficiency. By using dynamic weights to balance signals of different magnitudes, the model achieves sub-1% error rates. Future research will focus on developing generalized models capable of handling multiple different pipeline configurations and coupling these surrogates with reservoir models for integrated system simulation.

Summary updated

BibTeX
@inproceedings{qin2022deep,
  author = {Feng Qin and Zhenghe Yan and Peng Yang and Shenglai Tang and Hu Huang},
  title = {{Deep-learning-based surrogate model for fast and accurate simulation in pipeline transport}},
  booktitle = {Frontiers in Energy Research},
  year = {2022},
  doi = {10.3389/fenrg.2022.979168},
}
Figure