CO2 WAG and SAG machine learning data-driven models in an open-source framework – A theoretical study
Jorge Rodrigo Lligüizaca-Dávila , Freddy Paul Carrión-Maldonado , David Landa-Marbán , Jorge Segundo Mendoza Sanz , Zachary Paul Alcorn , Jacquelin E. Cobos
Petroleum ›› 2026, Vol. 12 ›› Issue (5) : 959 -976.
Optimizing CO2 enhanced oil recovery (CO2 EOR) requires numerous reservoir simulations, creating a computational burden that can be addressed using data driven models (DDMs). However, machine learning (ML) DDMs use proprietary simulators, limiting their reproducibility. This study presents open-source ML DDMs for CO2 water alternating gas (WAG) and surfactant alternating gas (SAG) processes by coupling an open-source simulator with Python-based tools. Datasets of 100 and 300 samples were generated using the SPE5 benchmark with random and Latin hypercube sampling (LHS) over CO2 injection rates of 1000–5000 standard cubic feet per day (1–5 Mscf/day) and water injection rates of 5000-15000 stock tank barrels per day (5–15 Mstb/day). K-nearest neighbors (KNN), decision trees (DT), random forests (RF), and gradient boosting regressors (GBR) were evaluated to predict cumulative oil and gas and CO2 retention. The study showed that increasing the sample size from 100 to 300 improved accuracy. For CO2 WAG, all ML models achieved coefficient of determination ( R2) values exceeding 0.970, and root mean squared errors (RMSE) below 100 Mscf for CO2 retention and 0.2 MMstb for oil production. LHS outperformed random with 100 samples, but this advantage diminished with 300. RF and GBR were more robust to sparse sampling than KNN, and GBR achieved the best overall accuracy (validation R2 ≥0.985). Grid search, random search, and particle swarm optimization provided marginal gains. The grid and random search exhibited the best accuracy–efficiency trade-off. Optimized GBR DDMs R2 exceeded 0.995 for CO2 retention, 0.999 for oil, and 0.990 for gas production across WAG and SAG scenarios. Unlike studies that rely on commercial simulators, the proposed workflow is fully reproducible, openly licensed, and transferable between the WAG and SAG, which collectively constitute the novelty of this study. All data and code are available to facilitate reuse and extension to other CO2 EOR and storage applications.
CCUS / Data-driven models / Enhanced oil recovery / CO2 storage / Machine learning
| [1] |
International Energy Agency [IEA], Energy technology perspectives 2020 - special report on carbon capture utilisation and storage, in: Energy Technology Perspectives 2020 - Special Report on Carbon Capture Utilisation and Storage, 2020, https://doi.org/10.1787/208b66f4-en. |
| [2] |
International Energy Agency [IEA], The oil and gas industry in energy transitions, in: The Oil and Gas Industry in Energy Transitions, 2020, https://doi.org/10.1787/aef89fbd-en. |
| [3] |
International Energy Agency [IEA], Net Zero Roadmap, International Energy Agency, 2023. |
| [4] |
|
| [5] |
|
| [6] |
|
| [7] |
|
| [8] |
|
| [9] |
|
| [10] |
|
| [11] |
|
| [12] |
|
| [13] |
|
| [14] |
|
| [15] |
|
| [16] |
|
| [17] |
|
| [18] |
|
| [19] |
|
| [20] |
|
| [21] |
|
| [22] |
|
| [23] |
|
| [24] |
|
| [25] |
|
| [26] |
|
| [27] |
|
| [28] |
|
| [29] |
|
| [30] |
|
| [31] |
|
| [32] |
|
| [33] |
|
| [34] |
|
| [35] |
|
| [36] |
|
| [37] |
|
| [38] |
|
| [39] |
|
| [40] |
|
| [41] |
|
| [42] |
|
| [43] |
|
| [44] |
|
| [45] |
|
| [46] |
|
| [47] |
|
| [48] |
|
| [49] |
|
| [50] |
The Open Porous Media Team, OPM Data Repository, Github, Retrieved June 26, 2025, from https://github.com/OPM/opm-data. |
| [51] |
CO2 DataShare, Datasets - CO2DataShare , Retrieved June 26, 2025, from, https://co2datashare.org/dataset. |
| [52] |
|
| [53] |
|
| [54] |
|
| [55] |
|
| [56] |
|
| [57] |
|
| [58] |
|
| [59] |
|
| [60] |
|
| [61] |
|
| [62] |
|
| [63] |
|
| [64] |
|
| [65] |
|
| [66] |
|
| [67] |
|
| [68] |
|
| [69] |
|
| [70] |
|
| [71] |
|
| [72] |
|
| [73] |
|
| [74] |
|
| [75] |
The Open Porous Media Team, spe1_foam OPM/opm-tests, 2021. https://github.com/OPM/opm-tests/tree/master/spe1_foam. |
| [76] |
|
| [77] |
|
| [78] |
|
| [79] |
|
| [80] |
|
| [81] |
|
| [82] |
|
| [83] |
|
| [84] |
|
| [85] |
|
| [86] |
|
| [87] |
|
| [88] |
|
| [89] |
|
| [90] |
|
| [91] |
|
| [92] |
|
/
| 〈 |
|
〉 |