Backpropagation neural networks for solving gas flow equations in porous media
Keywords:
nonlinear solver, neural networks, backpropagation, reservoir simulation, gas flowAbstract
The mathematical equations involved in oil and gas reservoir simulations are typically extensive and nonlinear. This study presents a new approach based on backpropagation neural networks for solving the system of nonlinear equations that arises from hydrocarbon reservoir modeling. This proposed solver employs feed-forward neural networks and consists of an input layer, two hidden layers, and an output layer. Later, we use this proposed solver to solve one-dimensional gas flow problems in a porous medium and verify its accuracy with a solution from the classic Newton method. The pressure solution resulting from the neural network-based solver resembles the Newton method solution. The simulation results also show that the learning rate parameters in networks influence the convergence speed and accelerate weight updates. However, excessively high learning rates can cause weights to overshoot.
References
Ahmed, E., Klemetsdal, Ø., Raynaud, X., Møyner, O., and Nilsen, H. M. (2023): Adaptive Timestepping, Linearization, and A Posteriori Error Control for Multiphase Flow of Immiscible Fluids in Porous Media with Wells, SPE Journal, 28(02), 554–574. https://doi.org/10.2118/203974-PA
Chapman, S. W., Parker, B. L., Sale, T. C., and Doner, L. A. (2012): Testing high resolution numerical models for analysis of contaminant storage and release from low permeability zones, Journal of Contaminant Hydrology, 136–137, 106–116. https://doi.org/10.1016/j.jconhyd.2012.04.006
Darmawan, I. G. B., Rustadi, and Karyanto (2023): Hydrothermal fluid flow modeling using numerical simulation to identify potential reservoir zones in the Mount Rajabasa geothermal field, Kuwait Journal of Science, 50(3), 376–386. https://doi.org/10.1016/j.kjs.2023.02.025
Di Salvo, C. (2023): Groundwater Hydrological Model Simulation, Water, 15(4), 822. https://doi.org/10.3390/w15040822
Gonzalez, M. H., Bukacek, R. F., and Lee, A. L. (1967): The Viscosity of Methane, Society of Petroleum Engineers Journal, 7(01), 75–79. https://doi.org/10.2118/1483-PA
Han, J.-X., Xue, L., Wei, Y.-S., Qi, Y.-D., Wang, J.-L., Liu, Y.-T., and Zhang, Y.-Q. (2023): Physics-informed neural network-based petroleum reservoir simulation with sparse data using domain decomposition, Petroleum Science, 20(6), 3450–3460. https://doi.org/10.1016/j.petsci.2023.10.019
Hecht-nielsen, R. (1992): Theory of the Backpropagation Neural Network*, 65–93 in H. Wechsler, ed., Neural Networks for Perception, Academic Press. https://doi.org/10.1016/B978-0-12-741252-8.50010-8
Hoffman, J. D. (1982): Relationship between the truncation errors of centered finite-difference approximations on uniform and nonuniform meshes, Journal of Computational Physics, 46(3), 469–474. https://doi.org/10.1016/0021-9991(82)90028-6
Ihunde, T. A., and Olorode, O. (2022): Application of physics informed neural networks to compositional modeling, Journal of Petroleum Science and Engineering, 211, 110175. https://doi.org/10.1016/j.petrol.2022.110175
Iskandar, U. P., and Kurihara, M. (2022): Long Short-term Memory (LSTM) Networks for Forecasting Reservoir Performances in Carbon Capture, Utilisation, and Storage (CCUS) Operations, Scientific Contributions Oil and Gas, 45(1), 35–51. https://doi.org/10.29017/SCOG.45.1.943
Johnson, O. V., XinYing, C., Johnson, O. E., Khaw, K. W., and Lee, M. H. (2024): Learning Rate Schedules and Optimizers, A Game Changer for Deep Neural Networks, F. Saeed, F. Mohammed, and Y. Fazea, eds., Advances in Intelligent Computing Techniques and Applications, Springer Nature Switzerland, Cham, 327–340. https://doi.org/10.1007/978-3-031-59711-4_28
Kalinowska, M. B., and Rowiński, P. M. (2007): Truncation errors of selected finite difference methods for two-dimensional advection-diffusion equation with mixed derivatives, Acta Geophysica, 55(1), 104–118. https://doi.org/10.2478/s11600-006-0046-3
Khan, M. Y., and Mandal, A. (2022): The impact of permeability heterogeneity on water-alternating-gas displacement in highly stratified heterogeneous reservoirs, Journal of Petroleum Exploration and Production Technology, 12(3), 871–897. https://doi.org/10.1007/s13202-021-01347-3
Konstantinos Goulianas, Athanasios Margaris, Ioannis Refanidis, Konstantinos Diamantaras, and Theofilos Papadimitriou (2016): A Back Propagation-Type Neural Network Architecture for Solving the Complete n × n Nonlinear Algebraic System of Equations, Advances in Pure Mathematics, 6, 455–480.
Liu, J., Möller, M., and Schuttelaars, H. M. (2021): Balancing truncation and round-off errors in FEM: One-dimensional analysis, Journal of Computational and Applied Mathematics, 386, 113219. https://doi.org/10.1016/j.cam.2020.113219
Papay, J. (1968): ATermelestechnologiai Parameterek Valtozasa a Gazlelepk Muvelese Soran, OGIL MUSZ, Tud, Kuzl., Budapest, 267–273.
Polyak, B. T. (2007): Newton’s method and its use in optimization, European Journal of Operational Research, 181(3), 1086–1096. https://doi.org/10.1016/j.ejor.2005.06.076
Portella, F., Buchaca, D., Rodrigues, J. R., and Berral, J. Ll. (2022): TunaOil: A tuning algorithm strategy for reservoir simulation workloads, Journal of Computational Science, 63, 101811. https://doi.org/10.1016/j.jocs.2022.101811
Price, H. S., Cavendish, J. C., and Varga, R. S. (1968): Numerical Methods of Higher-Order Accuracy for Diffusion- Convection Equations, Society of Petroleum Engineers Journal, 8(03), 293–303. https://doi.org/10.2118/1877-PA
Raissi, M., Perdikaris, P., and Karniadakis, G. E. (2019): Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations, Journal of Computational Physics, 378, 686–707. https://doi.org/10.1016/j.jcp.2018.10.045
Santos, J. E., Xu, D., Jo, H., Landry, C. J., Prodanović, M., and Pyrcz, M. J. (2020): PoreFlow-Net: A 3D convolutional neural network to predict fluid flow through porous media, Advances in Water Resources, 138, 103539. https://doi.org/10.1016/j.advwatres.2020.103539
Sheykhinasab, A., Mohseni, A. A., Barahooie Bahari, A., Naruei, E., Davoodi, S., Aghaz, A., and Mehrad, M. (2023): Prediction of permeability of highly heterogeneous hydrocarbon reservoir from conventional petrophysical logs using optimized data-driven algorithms, Journal of Petroleum Exploration and Production Technology, 13(2), 661–689. https://doi.org/10.1007/s13202-022-01593-z
Urych, T., Chećko, J., Magdziarczyk, M., and Smoliński, A. (2022): Numerical Simulations of Carbon Dioxide Storage in Selected Geological Structures in North-Western Poland, Frontiers in Energy Research, 10. https://doi.org/10.3389/fenrg.2022.827794
Vilmart, G. (2008): Reducing round-off errors in rigid body dynamics, Journal of Computational Physics, 227(15), 7083–7088. https://doi.org/10.1016/j.jcp.2008.04.013
Wang, L., Zeng, Y., and Chen, T. (2015): Back propagation neural network with adaptive differential evolution algorithm for time series forecasting, Expert Systems with Applications, 42(2), 855–863. https://doi.org/10.1016/j.eswa.2014.08.018
Wang, Z., Li, S., Jin, Z., Li, Z., Liu, Q., and Zhang, K. (2023): Oil and gas pathway to net-zero: Review and outlook, Energy Strategy Reviews, 45, 101048. https://doi.org/10.1016/j.esr.2022.101048
Yan, M., Lu, C., Yang, J., Xie, Y., and Luo, J. (2019): Impact of Low- or High-Permeability Inclusion on Free Convection in a Porous Medium, Geofluids, 2019(1), 8609682. https://doi.org/10.1155/2019/8609682
Young, M. S., Casinader, P. C., and Wilson, D. C. (1980): The Use of Higher Order Finite Difference Methods in Reservoir Simulation, Presented at the European Offshore Technology Conference and Exhibition. https://doi.org/10.2118/180-1980-MS
Zhai, M., Li, L., Wang, Z., Zhang, L., Li, A., Zhang, Z., Zheng, B., and Huang, B. (2022): Three-Dimensional Numerical Simulation and Analysis of Geomechanical Controls of Hydraulic Fracturing in Heterogeneous Formations, Arabian Journal for Science and Engineering, 47(9), 11533–11552. https://doi.org/10.1007/s13369-021-06225-y
Zhang, D., Peng, Q., Lin, J., Wang, D., Liu, X., and Zhuang, J. (2019): Simulating Reservoir Operation Using a Recurrent Neural Network Algorithm, Water, 11(4), 865. https://doi.org/10.3390/w11040865
Zhang, Z., He, X., AlSinan, M., Kwak, H., and Hoteit, H. (2023): Robust Method for Reservoir Simulation History Matching Using Bayesian Inversion and Long-Short-Term Memory Network-Based Proxy, SPE Journal, 28(03), 983–1007. https://doi.org/10.2118/203976-PA
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors are free to Share — copy and redistribute the material in any medium or format for any purpose, even commercially Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms, under the following terms Attribution — You must give appropriate credit , provide a link to the license, and indicate if changes were made . You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.