Physics-guided transformer networks for interpretable prediction of gas–oil relative permeability in porous media

Accurate prediction of gas (K<sub>rg</sub>) and oil (K<sub>rog</sub>) relative permeability is essential for reliable multiphase flow modeling in petroleum reservoirs. This study presents a comparative machine learning framework leveraging 1,026 petrophysical data points and advanced techniques, including Transformer networks, Random Forest (RF), and Extreme Gradient Boosting (XGBoost), alongside conventional linear regression. Explainability was incorporated from the outset using SHAP (Shapley Additive Explanations) to interpret feature contributions and ensure physically meaningful predictions. The Transformer model, empowered by self-attention mechanisms, consistently outperformed all baselines, achieving R² values up to 0.94 and accurately capturing nonlinear interactions. Scatter plots, Bland-Altman analyses, residual diagnostics, and quantile-quantile (Q-Q) plots revealed minimal bias, tight confidence bounds, and homoscedastic residuals across diverse saturation regimes. RF and XGBoost showed competitive performance (R² ≥ 0.88), particularly in heterogeneous formations, while linear regression underperformed, displaying systematic errors and wide prediction intervals. SHAP analyses highlighted gas saturation (S<sub>g</sub>) and residual oil saturation (S<sub>org</sub>) as dominant controls, with Transformers capturing percolation thresholds, pore-blocking effects, and lithological heterogeneities more effectively than ensemble methods. This Transformer-based framework sets a new benchmark for data-driven K<sub>r</sub> estimation, combining predictive accuracy with transparent, physically consistent reasoning, and is highly suitable for field-scale reservoir simulation and uncertainty quantification in enhanced recovery applications.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-11-29
DOI
https://doi.org/10.1038/s41598-025-29779-5
Primary Topic
Enhanced Oil Recovery Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Physics-guided transformer networks for interpretable prediction of gas–oil relative permeability in porous media

Mohammad Ali Ahmadi
Scientific Reports
Enhanced Oil Recovery Techniques
article

Physics-guided transformer networks for interpretable prediction of gas–oil relative permeability in porous media

Mohammad Ali Ahmadi
article en

Abstract

Accurate prediction of gas (K<sub>rg</sub>) and oil (K<sub>rog</sub>) relative permeability is essential for reliable multiphase flow modeling in petroleum reservoirs. This study presents a comparative machine learning framework leveraging 1,026 petrophysical data points and advanced techniques, including Transformer networks, Random Forest (RF), and Extreme Gradient Boosting (XGBoost), alongside conventional linear regression. Explainability was incorporated from the outset using SHAP (Shapley Additive Explanations) to interpret feature contributions and ensure physically meaningful predictions. The Transformer model, empowered by self-attention mechanisms, consistently outperformed all baselines, achieving R² values up to 0.94 and accurately capturing nonlinear interactions. Scatter plots, Bland-Altman analyses, residual diagnostics, and quantile-quantile (Q-Q) plots revealed minimal bias, tight confidence bounds, and homoscedastic residuals across diverse saturation regimes. RF and XGBoost showed competitive performance (R² ≥ 0.88), particularly in heterogeneous formations, while linear regression underperformed, displaying systematic errors and wide prediction intervals. SHAP analyses highlighted gas saturation (S<sub>g</sub>) and residual oil saturation (S<sub>org</sub>) as dominant controls, with Transformers capturing percolation thresholds, pore-blocking effects, and lithological heterogeneities more effectively than ensemble methods. This Transformer-based framework sets a new benchmark for data-driven K<sub>r</sub> estimation, combining predictive accuracy with transparent, physically consistent reasoning, and is highly suitable for field-scale reservoir simulation and uncertainty quantification in enhanced recovery applications.

Scientific ReportsVol. 16(1)
Sharif University of Technology (IR)
Openalex Percentile: Top 54%
Enhanced Oil Recovery Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.