Uncertainty quantification of two-phase flow in porous media via coupled-TgNN surrogate model

Jian Li, Dongxiao Zhang, Tianhao He, Qiang ZhengarXiv 2022 · DOI · arXiv

Introduction

Predicting the movement of fluids—specifically oil and water—through porous rock is a cornerstone of energy production and environmental management. However, the subsurface is inherently uncertain; the exact permeability of rock formations is rarely known with precision. To manage this uncertainty, engineers rely on Uncertainty Quantification (UQ), which typically involves Monte Carlo simulations. These methods require thousands of forward simulations, creating a massive computational bottleneck when using traditional numerical simulators.

While machine learning offers a potential path toward faster "surrogate" models, standard data-driven approaches often struggle with "unphysical" predictions or fail when data is sparse or noisy. This paper presents a coupled Theory-guided Neural Network (TgNN) framework designed to bridge the gap between physical accuracy and computational efficiency.

The Coupled-TgNN Framework

The core innovation of this research is the development of a neural network architecture that respects the interconnected physics of fluid pressure and water saturation.

Architecture: The "Merge-then-Separate" Approach

The researchers evaluated several architectures to determine how best to couple the physical variables. They found that a "Style 3" architecture—a merge-then-separate approach—yielded the best results. In this setup, the network first processes inputs through shared "coupling" layers to capture the interdependencies between pressure and saturation. The network then branches into specialized sub-networks to output the final predictions for each variable.

Physics-Embedded Loss Functions

Unlike traditional neural networks that learn solely from labeled data, the TgNN incorporates the governing partial differential equations (PDEs) of two-phase flow directly into its loss function. By minimizing the residuals of these equations, along with initial and boundary conditions, the model is constrained to produce physically consistent results. This "theory-guidance" acts as a powerful filter, allowing the model to ignore noise that violates the laws of fluid dynamics.

Dimensionality Reduction and Training

To handle the high-dimensional nature of permeability fields, the authors employed Karhunen-Loëve Expansion (KLE). This technique reduces complex 2D spatial maps into a manageable set of stochastic parameters. The training process follows a sequential strategy: the model is first trained on a small set of labeled data to capture general trends, then refined using "collocation points" where the physics constraints are strictly enforced.

Experimental Results

The model was tested against data generated by the UNCONG reservoir simulator, using a benchmark of 5,000 realizations to evaluate UQ performance.

Accuracy and Robustness

The TgNN achieved exceptional accuracy, with $R^2$ scores consistently exceeding 0.98 for both pressure and saturation. Notably, the model demonstrated significant robustness against measurement errors. When tested with a 15% noise level, the TgNN maintained stable, physically consistent predictions, whereas purely data-driven models produced erratic and unphysical fluctuations.

Computational Efficiency

The primary goal of the surrogate model was to accelerate UQ tasks. In a head-to-head comparison:

  • Traditional Simulator: 6.2 hours for 5,000 realizations.
  • TgNN Surrogate: 0.5 hours for 5,000 realizations.

This represents a 12x speedup, enabling near-real-time uncertainty analysis that would otherwise be computationally prohibitive. Furthermore, the Probability Density Functions (PDFs) generated by the TgNN almost perfectly matched the ground truth from the numerical simulator, confirming the high fidelity of the UQ results.

Discussion and Future Work

The success of the coupled-TgNN highlights the importance of embedding physical knowledge into machine learning architectures. By forcing the model to learn the relationship between pressure and saturation in shared layers, the researchers achieved faster convergence and higher accuracy.

However, several challenges remain for real-world application:

  • Well Geometry: The current study utilized a simplified setup with one injection and one production well. Future work must address the complex multi-well patterns found in actual oil fields.
  • Geological Heterogeneity: The permeability fields were modeled using Gaussian distributions. Future iterations will need to account for non-Gaussian, "patchy" geological features.
  • Architectural Evolution: While Fully Connected Layers (MLPs) were used here, the authors suggest that Convolutional Neural Networks (CNNs) may be better suited for capturing 2D spatial features, potentially simplifying the parameterization process.

Conclusion

The coupled-TgNN surrogate model offers a robust and efficient solution for the uncertainty quantification of two-phase flow in porous media. By combining the speed of neural networks with the rigor of physical laws, this approach paves the way for more reliable and rapid decision-making in subsurface engineering.

Summary updated

Abstract

Uncertainty quantification (UQ) of subsurface two-phase flow usually requires numerous executions of forward simulations under varying conditions. In this work, a novel coupled theory-guided neural network (TgNN) based surrogate model is built to facilitate computation efficiency under the premise of satisfactory accuracy. The core notion of this proposed method is to bridge two separate blocks on top of an overall network. They underlie the TgNN model in a coupled form, which reflects the coupling nature of pressure and water saturation in the two-phase flow equation. The TgNN model not only relies on labeled data, but also incorporates underlying scientific theory and experiential rules (e.g., governing equations, stochastic parameter fields, boundary and initial conditions, well conditions, and expert knowledge) as additional components into the loss function. The performance of the TgNN-based surrogate model for two-phase flow problems is tested by different numbers of labeled data and collocation points, as well as the existence of data noise. The proposed TgNN-based surrogate model offers an effective way to solve the coupled nonlinear two-phase flow problem and demonstrates good accuracy and strong robustness when compared with the purely data-driven surrogate model. By combining the accurate TgNN-based surrogate model with the Monte Carlo method, UQ tasks can be performed at a minimum cost to evaluate statistical quantities. Since the heterogeneity of the random fields strongly impacts the results of the surrogate model, corresponding variance and correlation length are added to the input of the neural network to maintain its predictive capacity. The results show that the TgNN-based surrogate model achieves satisfactory accuracy, stability, and efficiency in UQ problems of subsurface two-phase flow.
BibTeX
@misc{li2022uncertainty,
  author = {Jian Li and Dongxiao Zhang and Tianhao He and Qiang Zheng},
  title = {{Uncertainty quantification of two-phase flow in porous media via coupled-TgNN surrogate model}},
  year = {2022},
  eprint = {2205.14301},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.14301},
}
Figure