Open Access Article
This Open Access Article is licensed under a
Creative Commons Attribution 3.0 Unported Licence

Data-driven prediction of in situ CO2 foam strength for enhanced oil recovery and carbon sequestration

Javad Iskandarovab, George S. Fanourgakiscg, Shehzad Ahmedd, Waleed Alamerid, George E. Froudakis*c and Georgios N. Karanikolos*abef
aDepartment of Chemical Engineering, Khalifa University, P. O. Box 127788, Abu Dhabi, UAE. E-mail: georgios.karanikolos@ku.ac.ae
bResearch and Innovation Center on CO2 and H2 (RICH), Khalifa University, P. O. Box 127788, Abu Dhabi, UAE
cDepartment of Chemistry, University of Crete, Voutes Campus, Heraklion, GR-70013, Crete, Greece. E-mail: frudakis@uoc.gr
dDepartment of Petroleum Engineering, Khalifa University, P. O. Box 127788, Abu Dhabi, UAE
eCenter for Catalysis and Separations (CeCaS), Khalifa University, P. O. Box 127788, Abu Dhabi, UAE
fDepartment of Chemical Engineering, University of Patras, 26504 Patras, Greece
gLaboratory of Quantum and Computational Chemistry, Department of Chemistry, Aristotle University of Thessaloniki, 54124 Thessaloniki, Greece

Received 16th September 2022 , Accepted 25th November 2022

First published on 14th December 2022


Abstract

Carbon dioxide foam injection is a promising enhanced oil recovery (EOR) method, being at the same time an efficient carbon storage technology. The strength of CO2 foam under reservoir conditions plays a crucial role in predicting the EOR and sequestration performance, yet, controlling the strength of the foam is challenging due to the complex physics of foams and their sensitivity to operational conditions and reservoir parameters. Data-driven approaches for complex fluids such as foams can be an alternative method to the time-consuming experimental and conventional modeling techniques, which often fail to accurately describe the effect of all important related parameters. In this study, machine learning (ML) models were constructed to predict the oil-free CO2 foam apparent viscosity in the bulk phase and sandstone formations. Based on previous experimental data on various operational and reservoir conditions, predictive models were developed by employing six ML algorithms. Among the applied algorithms, neural network algorithms provided the most precise predictions for bulk and porous media. The established models were then used to compute the critical foam quality under different conditions and determine the maximum apparent foam viscosity, effectively controlling CO2 mobility to co-optimize EOR and CO2 sequestration.


1. Introduction

Due to emerging environmental impact, greenhouse gas (GHG) emissions have been the global community's focus over the last few decades. Although the world is gradually moving away from fossil fuel usage, a complete transition may take decades. Since CO2 is one of the most significant contributors to climate change, its capture before its release into the atmosphere significantly benefits the environment.1,2 Therefore, new, more efficient carbon capture technologies are desired to minimize the amount of GHG in the atmosphere. In addition, long-term storage and utilization of post-exhaust gases following their capture are necessary. One of the few large-scale carbon capture, utilization, and storage (CCUS) technologies is the enhanced oil recovery (EOR) method.3–6 EOR processes aim to increase oil extraction by injecting a replacement media. Among the media used in gas EOR, CO2 is the most attractive, particularly in the USA, where natural CO2 sources are abundant. Several researchers argue that CO2 EOR negatively impacts GHG mitigation since it is used to produce fossil fuels, that lead to more CO2.7 However, recent studies show that CO2 EOR can result in a negative net carbon emission when considering the tertiary oil recovery process and the consumption of used hydrocarbons.8 In other words, the stored amount of CO2 is higher than the emitted one during the downstream and upstream stages. In addition, during the oil extraction, most of the injected CO2 gas remains stored in the reservoir8 achieving this way, alongside the production of valuable energy resources and efficient, long-term carbon storage.

Although gas EOR is a matured technology, significant challenges are still faced to improve sweep efficiencies.9 Due to the high mobility of gases and the complex porous structure of reservoirs, complications such as early breakthrough, viscous fingering, and gravity segregation occur. Additionally, the gas tends to move through the high permeable zones leaving the tighter zones unswept.10 Water alternating gas injection and co-injection with the aqueous phase have been proposed to handle the difficulties. These processes form foams that significantly decrease gas mobility and improve oil recovery.11 Foams are discontinuous gas phases trapped by continuous thin aqueous films. Having higher viscosities than gases, they can displace oil more efficiently. In addition, by blocking high permeable pores, foams divert the displaced fluid to unswept pores, improving sweep efficiency12 and the subsurface storability of CO2.13 However, the complex physics of foams still requires further investigation and research to become fully understood and enable foams to be widely applied. Foams are only kinetically stable, depending on various operational and reservoir parameters.14–16 Numerous screening and optimization studies were conducted to achieve foams with desired strength under reservoir conditions. In one of these studies,17 various mixtures of anionic surfactants were used at different concentrations and foam qualities to obtain optimum foam strength. The study also showed a substantial increase in oil recovery via supercritical CO2 foam flooding. Almobarky et al. investigated the effect of salinity and foam quality on the mobility of the foam in sandstone formations.18 Additionally, the performance of foam flooding has been compared with supercritical CO2 injection.19 Zeng et al. used a mixture of gases (CH4, CO2, N2) and investigated foam mobility control in porous media.20 These experimental studies can typically focus on optimizing only a few parameters in a small range, as foam experiments are tedious and costly.

Modeling can alternatively correlate operational and reservoir parameters to the rheological properties of the foam. Currently, available modeling techniques have been compared by Hematpur et al. as shown in Table 1.21 Empirical modeling approaches are the most common since foam behavior can be easily parameterized. Among them, the CMG-STARS calculates the relative foam permeability using a mobility reduction factor (FM) according to the:

 
Kfrg = Krg × FM (1)
 
image file: d2ra05841c-t1.tif(2)
where Krg is the gas relative permeability, Kfrg is the gas relative permeability in the presence of foam, and Fmmob is the maximum capacity of foam mobility reduction. Finally, the various Fi parameters represent the effects of surfactant concentration, oil saturation, injection velocity, capillary pressure, oil composition, salinity, and water saturation. All these Fi parameters are estimated via empirical equations, the parameters of which are fitted on experimental and simulation data. Additionally, it is challenging for conventional modeling techniques to consider the effect of several important reservoir parameters, such as temperature and pressure.21–23 In such cases, re-tuning of the model parameters is typically required.

Table 1 Comparison of foam modeling approaches21
Categories Number of model parameters Parameter fitting difficulty Time consumption for simulation Usage frequency
Empirical approaches A large number of parameters Relatively easy Shorter time Widely used
Mechanistic approaches A few parameters Difficult Long time Rarely used


During the last decade, the application of machine learning (ML) to EOR has gained attention. ML algorithms can discover relationships between input parameters and targeted quantities based on experimental studies and provide predictions for unknown situations. Such algorithms have been applied in various studies, such as predicting the most efficient EOR approach under specific conditions or tuning the operational parameters of a particular process of EOR.24–35 Recently, studies were also carried out to predict apparent foam viscosity, one of the most important rheological properties of foams, that can be described as viscosity at a given shear rate. Olukoga and Feng have used ML models to provide predictions for nanoparticle-stabilized CO2 foam in the bulk phase.36 Experimentally obtained rheology data were used to train the ML models having nanoparticle concentration, shear rate, foam quality, salinity, and temperature as input parameters. Various algorithms were used to establish predictive models and estimate each parameter's relative importance. However, no explicit discussion on the effect of input parameters from the physical standpoint was provided. Additionally, the study was limited to a bulk phase study, and no application to porous media was included. Similarly, Ahmed et al. used a deep-learning approach for modeling surfactant-stabilized foam in bulk media.37 The authors developed a 6-parameter model considering pressure addition to Olukoga and Feng.36 The studies confirmed that ML algorithms are a fast and robust methodology that can predict the behavior of complex fluids like foam. At the same time, conventional modeling techniques require too much effort and fail to address some significant reservoir parameters. Though previous studies show the potential of data-driven approaches to estimate foam rheological properties, they were typically limited to data from single research and only in bulk media. Although applying foams for EOR and carbon sequestration porous media is essential, no systematic porous media rheology studies with ML models have yet been performed in the literature.

In the present work, we used a dataset from various experimental studies to develop predictive models for the surfactant-stabilized CO2 apparent foam viscosity in bulk and porous media at sandstone formations. We have deployed six different ML algorithms to construct predictive models and thoroughly evaluated their accuracy. Absolute permeability, Darcy velocity, surfactant concentration, salinity, foam quality, temperature, and pressure are selected as parameters of the model for porous media calculations. After successfully building an ML-based model for apparent viscosity at oil-free sandstone formations, predictions were made for optimum foam quality at different injection rates of foam. This will enable us to obtain the conditions for the highest apparent viscosity that can yield both maximum oil recovery and the lowest mobility for improved CO2 utilization and storage.

2. Methodology

2.1 Experimental data

Experimental data on the CO2 apparent foam viscosity under the flow loop were selected from various sources,38–42 creating a dataset containing 157 examples. In all experiments, a mixture of alpha olefin sulfonate (AOS) surfactant and cocamidopropyl betaine was used. It should be mentioned that the same equipment and experimental setup were used in all selected experiments. At the same time, the dependence of the apparent foam viscosity on the six physical quantities tabulated in Table 2 was examined. A detailed description of all data used and their sources is provided in Table S1.
Table 2 Input parameters for CO2 foam in the bulk phase
Parameters Range
Shear rate (s−1) 10–500
Temperature (°C) 40–120
Pressure (MPa) 7–17.3
Salinity (wt%) 0.5–8
Surfactant concentration (wt%) 0.25–1
Foam quality (%) 50–90


For the study of porous media, 145 data points were collected from nine different published works.17–20,43–47 In all experiments, the AOS surfactant stabilized CO2 foam in sandstone reservoirs. The parameters considered for the ML model are summarized in Table 3, while additional details are provided in Table S2.

Table 3 Input parameters for CO2 foam in oil-free sandstone cores
Parameters Range
Total Darcy velocity (ft per day) 0.6–19
Temperature (°C) 25–80
Pressure (MPa) 2.1–27
Salinity (wt%) 1–15
Surfactant concentration (wt%) 0.5–5
Foam quality (%) 10–98
Permeability (D) 0.1–8.9


2.2 Description of affecting parameters

Below, we provide a short description of the physical quantities considered in all experiments (Tables 2 and 3), and we briefly discuss how they qualitatively affect the apparent foam viscosity. These physical quantities were used as inputs (a.k.a. descriptors) by the employed ML algorithms.
2.2.1 Surfactant concentration. The choice of surfactant plays a crucial role in the formation and stability of the foam. It affects the capillary pressure and the interfacial forces between gas and liquid. Usually, surfactants employed for foam formation consist of hydrophilic heads and hydrophobic tails. Depending on the charge of the head, surfactants can be classified into 4 categories: anionic (negative charge), cationic (positive charge), zwitterionic (both charges), and nonionic (no charge).48 The performance of a surfactant is highly affected by the conditions of the reservoir and the charges on the rocks. Since sandstone formations are negatively charged, anionic surfactants are usually preferred to avoid material loss. In the current work, AOS surfactant was selected as the foaming agent, and the surfactant concentration (Cs) range investigated was 0.25–1 wt%. It has been observed experimentally that higher surfactant concentrations enhance foam viscosity.49,50 Meanwhile, the effect of Cs on foam behavior becomes relatively insignificant above the critical micelle concentration (CMC).51
2.2.2 Foam quality. Foam quality (Fq) is defined as the gas fraction of the foam. Increasing foam quality up to a certain value increases the viscosity significantly. It has been shown that foam viscosity increases to foam quality of 0.9. However, above a threshold Fq value (∼0.95), foams become too dry to be sustainable, and apparent viscosity decreases sharply.52 The foam quality value where the maximum apparent viscosity is observed is called critical foam quality. This is the optimum ratio of gas and aqueous phase to obtain the lowest mobility with the highest injected CO2 amount. The foam quality range investigated here was 0.5–0.9.
2.2.3 Temperature. The temperature (T) of the reservoir is a significant factor that must be considered for EOR. The foam system should be designed to withstand operational temperature conditions since higher temperatures may destabilize foam and degrade surfactant.50 AOS has been experimentally studied for temperatures up to ∼120 °C. It has been seen that destabilizing effect at high temperatures could be compensated by increasing the concentration of surfactant.17,20,43,46,47,53,54 The temperature range investigated here was 40–120 °C.
2.2.4 Pressure. Change in pressure (P) causes smaller alterations to apparent foam viscosity than the temperature. However, the behavior of CO2 foam can significantly change if CO2 undergoes a phase change from gas to the supercritical phase due to pressure change.18 Accordingly, the pressure was included in the parameters set investigated in this work, and the studied range was 70–173 bar.
2.2.5 Salinity. The high salinity of the aqueous phase harms foam viscosity since it alters the repulsive forces between charged head groups of the surfactant molecules, affecting the surface tension of the aqueous phase and the gas–liquid interactions.15,50 According to Majeed et al., surfactant concentrations slightly above CMC are sufficient to compensate for this negative effect.51 Experimental studies revealed that under these conditions, AOS has a high tolerance towards salinity due to the presence of Na+ cations in the AOS molecule.51 Therefore, adding more cations does not notably affect the performance of the surfactant. On the other hand, for surfactant concentration lower than the CMC, an excess number of electrolytes surrounds the negatively charged head groups preventing surfactant molecules to form a micellar structure (foam lamellae). The salinity range investigated here was 0.5–8 wt%.
2.2.6 Shear rate. The shear rate is one of the most important parameters of the foam. It highly depends on the injection rate and describes how fast foam layers move on top of each other. By definition, the shear rate is inversely proportional to apparent viscosity. Therefore, elevated shear rate values noticeable decrease foam apparent viscosity.54,55 The shear rate range investigated here based on the experimental data is 10–500 s−1.

2.3 ML algorithms

We used Python coding to deploy the ML predictive models for the CO2 foam apparent viscosity. In what follows, six well-established ML algorithms were used, i.e., decision trees (DT),56 random forest (RF),57 extremely randomized trees (ERT),58 gradient boosting (GB),59 extreme gradient boosting (XGB),60 and artificial neural network (ANN).61 A short description of these algorithms is provided in ESI. In supervised learning, ML algorithms are trained using labeled examples (training data). Each example consists of several input variables (a.k.a. descriptors or features) and an output (a.k.a. target). Based on the provided training examples, the algorithm correlates descriptors to targets. The obtained model is then used to predict unseen data (test data). The performance of the ML algorithms should be carefully assessed to avoid unreasonable predictions. Usually, a part of the available data is randomly selected and used for the training of the ML algorithm, while the remaining data serve for evaluating its performance. Overfitting represents a challenge for constructing reliable predictive models. It occurs when an ML algorithm accurately reproduces the training data but provides poor predictions on new, unseen cases. To mitigate overfitting, we have employed the k-fold cross-validation (k-fold CV)62 approach with k = 10. According to this approach, the training data are divided into k subsets (usually k = 5 or 10). k − 1 subsets are used for the training of the ML algorithm, while the remaining one is used to evaluate its performance. After k repetitions of the procedure, all subsets are eventually used for validation. The predictive model that provides the highest accuracy on the validation subset is considered the best-performing one. It should be noted that during this procedure, the most important hyper-parameters of each ML algorithm (see discussion below and ESI) were optimized. To avoid any bias, the procedure was repeated 100 times using different random training/test data split, and the reported results are the average of the 100 individual runs.

The accuracy of all algorithms was evaluated according to the following statistical metrics: r-squared (R2), mean absolute error (MAE), root mean squared error (RMSE), and weighted average percentage error (WAPE):

 
image file: d2ra05841c-t2.tif(3)
 
image file: d2ra05841c-t3.tif(4)
 
image file: d2ra05841c-t4.tif(5)
 
image file: d2ra05841c-t5.tif(6)

In the expressions above, Oi represents the reference (exact) value of the i-th example (out of the total n ones), while Pi is the corresponding prediction of the ML algorithm. Finally, Ō is the average of all reference values. It should be noticed that as predictions are improving, R2 value increases (up to the maximum value of 1) while MAE, RMSE and WAPE decrease (up to a minimum value of 0).

3. Results and discussion

3.1 Bulk foam apparent viscosity

For most calculations, 90% of the total 157 examples in the database were used to train the ML algorithms, totaling 141 examples, while the remaining 16 examples were used to assess the model's predictive performance. The k-fold CV method with k = 10 folds was used to construct the ML models and tune each algorithm's most important hyper-parameters. The results of this procedure for the ANN and RF algorithms are illustrated in Fig. 1. Each point represents an example in the database, while red and blue colors correspond to the examples used for the training and testing of the ML algorithms, respectively. The x- and y-component of each point corresponds to the reference value and to the ML predicted one, respectively. Therefore, the closer a point is to the diagonal line, the better the prediction of the ML algorithm is for this case. As can be seen, the obtained predictions by both the ANN and RF algorithms for the test data (blue points) are considered reasonable.
image file: d2ra05841c-f1.tif
Fig. 1 Comparison of the reference values with the predicted ones by the ANN (left panel) and the RF (right panel) algorithms applied to predict bulk foam apparent viscosity. The x = y diagonal line represents the ideal case.

For a thorough evaluation of the applied ML predictive models, the previous procedure was repeated 100 times, using different randomly selected training and testing sets. The four statistical metrics (R2, MAE, RMSE, and WAPE) were computed each time, and their average values from the 100 runs are reported in Table 4 for the training and test data. It is evident that the simplest DT algorithm provides the poorest predictions. The RF and the ERT methods provide slightly more accurate results, while a significant improvement is observed when the GB and XGB algorithms are employed. Finally, the most significant improvement is observed in the predictions by the ANN method. For example, the WAPE of the test data by the ANN is almost three times lower than those of the GB and XGB algorithms.

Table 4 Accuracy of the applied ML algorithms for the training and testing data in bulk conditions
ML algorithms R2 MAE RMSE WAPE
Train Test Train Test Train Test Train Test
DT 0.93 0.67 21.1 51.5 42.0 88.6 12.4 29.3
RF 0.95 0.74 20.7 44.3 39.6 77.5 12.1 25.5
ERT 0.95 0.74 15.0 41.4 30.3 74.4 8.8 23.8
GB 0.99 0.88 2.7 29.7 7.6 52.1 1.6 17.1
XGB 0.99 0.87 4.1 29.6 8.6 52.7 2.4 17.1
ANN 0.99 0.96 5.22 10.9 9.43 18.9 3.06 6.4


Notably, the size of the dataset used for constructing the predictive models can be considered relatively small, which may impact the predictions.63 Therefore, the effect of the training set size was further investigated. More specifically, set portions between 0.7 and 0.9 (110 and 141 examples, respectively) were used for training the algorithms and the remaining ones for testing. The same protocol as the one described above was employed during these calculations. In Fig. 2, the dependence of WAPE on the training set size is illustrated for all algorithms examined. Evidently, the ANN algorithm outperforms all other employed algorithms for all training set sizes. As expected, improvements in the accuracy of the ML algorithms are observed for increased training set sizes, though they are usually relatively small. Hence, additional experimental data for the training of the ML algorithms would lead to more accurate predictive models.63


image file: d2ra05841c-f2.tif
Fig. 2 The effect of the training dataset size (110–141 examples) on the WAPE of the tested data.

To quantify the contribution of each physical property to the final model, we performed a comparative analysis of the importance of all inputs used; namely, we assigned a score to all variables based on how useful they are in the prediction of the apparent foam viscosity.64 To provide unbiased results, we considered the average of 100 independent runs. The results for all models are summarized in Fig. 3. All ML models show that the shear rate is the most dominant factor for viscosity predictions, as it is inversely proportional to the viscosity i.e., higher shear rates correspond to lower apparent viscosity values.55 The foam quality is the second most influential factor in the accuracy of viscosity estimations. According to the ML predictions, the effect of foam quality is still significantly lower than that of the shear rate. In the provided data, the values of foam quality are in the range of 0.5–0.9, namely, lower than that of the critical foam quality.52 Outside this region, e.g. for Fq > 0.95, the foam properties are expected to be significantly altered, thus changing the Fq relative importance accordingly. The remaining parameters are observed to have a lower impact on the final model predictions. Since all selected experimental studies have been carried out with surfactant concentrations well above the CMC (∼0.1 wt%), salinity and surfactant concentration are not expected to noticeably influence the foam apparent viscosity.49 Indeed, the applied ML models predict that the influence of these properties is significantly lower than that of foam quality and shear rate. As mentioned in the methodology section, the pressure would influence the behavior of CO2 foam only if the latter undergoes a gas to the supercritical phase transition. Since CO2 remains in the supercritical phase during all experiments in the database, pressure does not significantly alter the behavior of the foam. Similarly, the temperature has a relatively small contribution to the model predictions, which can be attributed to the high stability of the AOS surfactant within the applied temperature range of 40 to 120 °C and the compensation effects of the high surfactant concentrations in our dataset.46,47 Additionally, the aqueous phase contains a stabilizing additive (cocamidopropyl betaine) which significantly enhances foam stability and preserves its apparent viscosity at high temperatures.39


image file: d2ra05841c-f3.tif
Fig. 3 Comparative analysis of the importance of different input parameters.

3.2 Foam apparent viscosity in porous media

ML models were subsequently constructed for predictions of the CO2 foam apparent viscosity in porous media using a similar approach. 90% of experimental data were used for training and tuning the hyperparameters of the 6 ML algorithms, while the remaining data were used to test the accuracy. Fig. 4 represents the comparison of predictions and reference values for the ANN and the RF algorithms. It should be noticed that, for the ANN model, all points are very close to the diagonal line that represents the maximum accuracy.64 In other words, the model can provide reliable predictions for unseen cases.
image file: d2ra05841c-f4.tif
Fig. 4 Comparison of the reference values with the predicted ones by the ANN (left panel) and the RF (right panel) algorithms applied to predict foam apparent viscosity in porous media. The x = y diagonal line represents the ideal case.

A detailed comparison of the performance of all ML algorithms employed is provided in Table 5. Similar to the foam apparent viscosity in bulk, ANN found to provide the most accurate predictions for the foam apparent viscosity in porous media compared to the tree-based approaches. For example, R2 = 0.93 for ANN and R2 = 0.80 for XGB were obtained. Therefore, in the next stage, the ANN model will be employed for providing further predictions and optimizing the operational parameters of the CO2 foam in porous media.

Table 5 Accuracy of the applied ML algorithms for the training and test data in porous media
ML algorithms R2 MAE RMSE WAPE
Train Test Train Test Train Test Train Test
DT 1.00 0.69 0.00 31.07 0.00 54.94 0.00 20.01
RF 0.98 0.78 10.01 26.55 19.09 45.84 5.91 17.18
ERT 0.99 0.76 0.01 25.57 0.01 47.61 0.01 16.39
GB 0.99 0.79 8.88 26.63 12.69 44.38 5.24 17.02
XGB 0.99 0.80 0.12 25.06 0.16 44.39 0.07 16.12
ANN 0.99 0.93 3.59 19.38 5.14 28.16 2.16 10.41


One of the advantages of ML-assisted models is that they can provide results for any set of input parameters, given that all parameters lie within their corresponding value range in the training set.65 This enables quick and accurate predictions of the CO2 foam viscosity without the need of costly experiments or time-consuming conventional modeling techniques. In Fig. 5, a 3D diagram of the viscosity as a function of the foam quality and injection rate is generated for foam at 27 MPa of pressure, 80 °C temperature, 5.5% salinity, and 2.83 D core permeability. The previously developed ANN model was employed for these calculations. The profile can also be used for estimating the critical foam quality for given operational and reservoir conditions. By employing the previous ML predictive models, analysis can be made to obtain the rheological properties that maximize oil recovery and carbon storage. As it can be seen from the Fig. 5 critical foam quality of the CO2 foam varies between 0.86 and 0.93 with different injection velocities at the selected conditions. Increasing foam quality further causes the apparent foam viscosity to decrease sharply.52 In the same figure, experimental results from literature47 are illustrated with star symbols at various conditions. These results were not used during the training of the ML algorithm. It is seen that the ML predictions are close to these results, demonstrating clearly the predictive accuracy of the developed model.


image file: d2ra05841c-f5.tif
Fig. 5 Apparent foam viscosity in porous media for continuous injection velocity and foam quality for fixed temperature (80 °C), pressure (27 MPa), salinity (5.5 wt%), surfactant concentration (1 wt%), permeability = 2.83 D, black line represent the critical foam quality. Filled stars represent literature viscosity data at the given conditions.

4. Conclusions

ML algorithms were utilized to construct predictive models of CO2 foam apparent viscosity in bulk and porous media for EOR application and carbon sequestration. Previously reported experimental data were used for the training and evaluation of the algorithms. Based on the obtained results, it can be concluded that ML algorithms can successfully correlate operational parameters to rheological properties, providing reliable predictions in a fraction of the time needed by conventional experimental approaches. In particular, the ANN model provides the most accurate predictions compared to the other tree-based ML algorithms. Although a relatively small dataset was employed, constructing reliable ML models was still possible. Furthermore, by investigating the relative importance of different physical parameters, it was concluded that the most influential factors in predicting foam apparent viscosity in bulk media are the shear rate and the foam quality. After successfully implementing different ML approaches to address the foam rheological properties in flow loop experiments, the behavior of CO2 foam in porous media under reservoir conditions was also examined. After a thorough evaluation of the predictive models performance, the most accurate one (ANN) was used for a more detailed study and visualization of the physical behavior of the apparent foam viscosity and the critical foam quality in porous media as a function of the related parameters. Overall, the data-driven approach employed in this work delivered promising results for predicting key rheological properties of CO2 foam in the absence of oil.

Conflicts of interest

There are no conflicts to declare.

Acknowledgements

The authors thank Khalifa University for funding this work under the project CIRA-2019-002 and for the support by the Research and Innovation Center on CO2 and H2 (RICH, Award# RC2-2019-007).

References

  1. P. Friedlingstein, R. A. Houghton, G. Marland, J. Hackler, T. A. Boden, T. J. Conway, J. G. Canadell, M. R. Raupach, P. Ciais and C. le Quéré, Update on CO2 emissions, Nat. Geosci., 2010, 3, 811–812 CrossRef CAS.
  2. J. Gale, J. C. Abanades, S. Bachu and C. Jenkins, Special Issue commemorating the 10th year anniversary of the publication of the Intergovernmental Panel on Climate Change Special Report on CO2 Capture and Storage, Int. J. Greenhouse Gas Control, 2015, 40, 1–5 CrossRef.
  3. V. Núñez-López and E. Moskal, Potential of CO2-EOR for Near-Term Decarbonization, Front. Clim., 2019, 1, 5 CrossRef.
  4. H. Gachuz-Muro, S. Berumen, L. O. Alcazar Cancino and J. A. Rodriguez Pimentel, All Days, SPE, 2007 Search PubMed.
  5. K. Novak Mavar, N. Gaurina-Međimurec and L. Hrnčević, Significance of Enhanced Oil Recovery in Carbon Dioxide Emission Reduction, Sustainability, 2021, 13, 1800 CrossRef.
  6. R. Santos, S. Sgouridis and A. Alhajaj, Potential of CO2-enhanced oil recovery coupled with carbon capture and storage in mitigating greenhouse gas emissions in the UAE, Int. J. Greenhouse Gas Control, 2021, 111, 103485 CrossRef CAS.
  7. D. Hussain, D. A. Dzombak, P. Jaramillo and G. v. Lowry, Comparative lifecycle inventory (LCI) of greenhouse gas (GHG) emissions of enhanced oil recovery (EOR) methods using different CO2 sources, Int. J. Greenhouse Gas Control, 2013, 16, 129–144 CrossRef CAS.
  8. Z. J. Song, M. Li, C. Zhao, Y. L. Yang and J. R. Hou, Gas injection for enhanced oil recovery in two-dimensional geology-based physical model of Tahe fractured-vuggy carbonate reservoirs: karst fault system, Pet. Sci., 2020, 17, 419–433 CrossRef CAS.
  9. F. T. H. Chung, R. A. Jones and H. T. Nguyen, Measurements and Correlations of the Physical Properties of CO2-Heavy Crude Oil Mixtures, SPE Reservoir Eng., 1988, 3, 822–828 CrossRef CAS.
  10. M. Andrei, Enhanced Oil Recovery with CO 2 Capture and Sequestration, 2010 Search PubMed.
  11. D. C. Bond and O. C. Holbrook, Gas Drive Oil Recovery Process, US Pat., 2866507, 1958 Search PubMed.
  12. N. M. Nguyen, Systematic study of foam for improving sweep efficiency in chemical EOR, 2010 Search PubMed.
  13. K. R. Chaturvedi and T. Sharma, In-situ formulation of pickering CO2 foam for enhanced oil recovery and improved carbon storage in sandstone formation, Chem. Eng. Sci., 2021, 235, 116484 CrossRef CAS.
  14. R. J. Pugh, Bubble and Foam Chemistry, Cambridge University Press, Cambridge, 2016, pp. 220–268 Search PubMed.
  15. A. Pandey, A. S. K. Sinha, K. R. Chaturvedi and T. Sharma, Experimental investigation on effect of reservoir conditions on stability and rheology of carbon dioxide foams of nonionic surfactant and polymer: Implications of carbon geo-storage, Energy, 2021, 235, 121445 CrossRef CAS.
  16. K. R. Chaturvedi, A. S. K. Sinha, V. C. Nair and T. Sharma, Enhanced carbon dioxide sequestration by direct injection of flue gas doped with hydrogen into hydrate reservoir: Possibility of natural gas production, Energy, 2021, 227, 120521 CrossRef CAS.
  17. Y. Bian and G. Penny, SPE 154018 Surfactant Formulation Evaluation for Carbon Dioxide Foam Flooding in Heterogeneous Sandstone Reservoirs, Tulsa, Oklahoma, USA, 2012 Search PubMed.
  18. M. A. Almobarky, Z. AlYousif and D. Schechter, Gas/water foams stabilized with a newly developed anionic surfactant for gas mobility control applications, Pet. Sci., 2020, 17, 1025–1036 CrossRef CAS.
  19. M. A. Q. Siddiqui and R. N. Gajbhiye, Stability and texture of CO2/N2 foam in sandstone, Colloids Surf., A, 2017, 534, 26–37 CrossRef CAS.
  20. Y. Zeng, R. Farajzadeh, A. A. Eftekhari, S. Vincent-Bonnieu, A. Muthuswamy, W. R. Rossen, G. J. Hirasaki and S. L. Biswal, Role of Gas Type on Foam Transport in Porous Media, Langmuir, 2016, 32, 6239–6245 CrossRef CAS PubMed.
  21. H. Hematpur, S. M. Mahmood, N. H. Nasr and K. A. Elraies, Foam flow in porous media: Concepts, models and challenges, J. Nat. Gas Sci. Eng., 2018, 53, 163–180 CrossRef.
  22. K. Ma, G. Ren, K. Mateen, D. Morel and P. Cordelier, All Days, SPE, 2014 Search PubMed.
  23. A. Saeibehrouzi, M. Khosravi and B. Rostami, Steps and Challenges in Empirical Foam Modeling for Enhanced Oil Recovery, Nat. Resour. Res., 2020, 29, 3363–3384 CrossRef CAS.
  24. N. Khazali, M. Sharifi and M. A. Ahmadi, Application of fuzzy decision tree in EOR screening assessment, J. Pet. Sci. Eng., 2019, 177, 167–180 CrossRef CAS.
  25. N. Zhang, M. Wei, J. Fan, M. Aldhaheri, Y. Zhang and B. Bai, Development of a hybrid scoring system for EOR screening by combining conventional screening guidelines and random forest algorithm, Fuel, 2019, 256, 115915 CrossRef CAS.
  26. R. B. C. Gharbi and G. A. Mansoori, An introduction to artificial intelligence applications in petroleum exploration and production, J. Pet. Sci. Eng., 2005, 49, 93–96 CrossRef CAS.
  27. M. Pirizadeh, N. Alemohammad, M. Manthouri and M. Pirizadeh, A new machine learning ensemble model for class imbalance problem of screening enhanced oil recovery methods, J. Pet. Sci. Eng., 2021, 198, 108214 CrossRef CAS.
  28. M. Khojastehmehr, M. Madani and A. Daryasafar, Screening of enhanced oil recovery techniques for Iranian oil reservoirs using TOPSIS algorithm, Energy Rep., 2019, 5, 529–544 CrossRef.
  29. Y. Cheraghi, S. Kord and V. Mashayekhizadeh, Application of machine learning techniques for selecting the most suitable enhanced oil recovery method; challenges and opportunities, J. Pet. Sci. Eng., 2021, 205, 108761 CrossRef CAS.
  30. E. A. Muñoz Vélez, F. Romero Consuegra and C. A. Berdugo Arias, Day 1 Mon, July 27, 2020, SPE, 2020 Search PubMed.
  31. V. Alvarado, A. Ranson, K. Hernandez, E. Manrique, J. Matheus, T. Liscano and N. Prosperi, All Days, SPE, 2002 Search PubMed.
  32. M. Tarrahi, S. Afra and I. Surovets, All Days, SPE, 2015 Search PubMed.
  33. D. Castineira, X. Zhai, H. Darabi, M. Valle, A. Maqui, M. Shahvali and A. Yunuskhojayev, Day 2 Tue, December 11, 2018, SPE, 2018 Search PubMed.
  34. J. You, W. Ampomah, A. Morgan, Q. Sun and X. Huang, A comprehensive techno-eco-assessment of CO2 enhanced oil recovery projects using a machine-learning assisted workflow, Int. J. Greenhouse Gas Control, 2021, 111, 103480 CrossRef CAS.
  35. R. Syah, S. M. Alizadeh, L. Darvishzadeh, M. Elveny, M. Abedi and D. Ramdan, Simultaneous injection of chemical agents and carbon dioxide to enhance the sweep efficiency from fractured tight core samples, Energy Rep., 2021, 7, 5639–5646 CrossRef.
  36. T. A. Olukoga and Y. Feng, Proceedings of the 2021 Asia Pacific Unconventional Resources Technology Conference, Unconventional Resources Technology Conference, Tulsa, OK, USA, 2021 Search PubMed.
  37. S. Ahmed, W. Alameri, W. W. Ahmed and S. A. Khan, Rheological behavior of scCO2-Foam for improved hydrocarbon recovery: Experimental and deep learning approach, J. Pet. Sci. Eng., 2021, 203, 108646 CrossRef CAS.
  38. S. Ahmed, K. Elraies, M. Hashmet and A. Hanamertani, Viscosity Models for Polymer Free CO2 Foam Fracturing Fluid with the Effect of Surfactant Concentration, Salinity and Shear Rate, Energies, 2017, 10, 1970 CrossRef.
  39. S. Ahmed, K. A. Elraies, M. R. Hashmet and M. S. Alnarabiji, Empirical modeling of the viscosity of supercritical carbon dioxide foam fracturing fluid under different downhole conditions, Energies, 2018, 11, 782 CrossRef.
  40. S. Ahmed, K. A. Elraies, M. R. Hashmet, A. S. Hanamartani and S. R. Bt Mohd Shafian, All Days, SPE, 2018 Search PubMed.
  41. S. Ahmed, K. A. Elraies, A. S. Hanamertani, M. R. Hashmet, S. R. Shafian and I. C. Hsia, Day 1 Mon, November 11, 2019, SPE, 2019 Search PubMed.
  42. S. Ahmed, K. A. Elraies, J. Forooozesh, S. R. Bt Mohd Shafian, M. R. Hashmet, I. C. C. Hsia and A. Almansour, Experimental investigation of immiscible supercritical carbon dioxide foam rheology for improved oil recovery, J. Earth Sci., 2017, 28, 835–841 CrossRef CAS.
  43. J. Zhao and F. Torabi, Experimental investigation and modelling of CO2 foam flow in heavy oil systems, Can. J. Chem. Eng., 2020, 98, 147–157 CrossRef CAS.
  44. G. Batôt, M. Fleury and L. Nabzar, Energy Procedia, Elsevier Ltd, 2017, vol. 114, pp. 4129–4139 Search PubMed.
  45. H. T. Horjen, CO2 Foam Stabilization with Nanoparticles and EOR in Fractured Carbonate Systems, 2015 Search PubMed.
  46. S. Kahrobaei and R. Farajzadeh, Insights into Effects of Surfactant Concentration on Foam Behavior in Porous Media, Energy Fuels, 2019, 33, 822–829 CrossRef CAS.
  47. T. Føyen, Z. P. Alcorn, M. A. Fernø, A. Barrabino and T. Holt, CO2 mobility reduction using foam stabilized by CO2- and water-soluble surfactants, J. Pet. Sci. Eng., 2021, 196, 107651 CrossRef.
  48. O. Massarweh and A. S. Abushaikha, The use of surfactants in enhanced oil recovery: A review of recent advances, Energy Rep., 2020, 6, 3150–3178 CrossRef.
  49. J.-S. Tsau and R. B. Grigg, All Days, SPE, 1997 Search PubMed.
  50. Y. Liu, R. B. Grigg and R. K. Svec, All Days, SPE, 2005 Search PubMed.
  51. T. Majeed, T. I. Sølling and M. S. Kamal, Foamstability: The interplay between salt-, surfactant- and critical micelle concentration, J. Pet. Sci. Eng., 2020, 187, 106871 CrossRef CAS.
  52. S. A. Farzaneh and M. Sohrabi, All Days, SPE, 2013 Search PubMed.
  53. D. Du, X. Zhang, Y. Li, D. Zhao, F. Wang and Z. Sun, Experimental study on rheological properties of nanoparticle-stabilized carbon dioxide foam, J. Nat. Gas Sci. Eng., 2020, 75, 103140 CrossRef CAS.
  54. K. R. Chaturvedi, R. Narukulla, J. Trivedi and T. Sharma, Effect of single-step silica nanoparticle on rheological characterization of surfactant based CO2 foam for effective carbon utilization in subsurface applications, J. Mol. Liq., 2021, 341, 116905 CrossRef CAS.
  55. X. Sun, X. Liang, S. Wang and Y. Lu, Experimental study on the rheology of CO2 viscoelastic surfactant foam fracturing fluid, J. Pet. Sci. Eng., 2014, 119, 104–111 CrossRef CAS.
  56. X. Wu, V. Kumar, Q. J. Ross, J. Ghosh, Q. Yang, H. Motoda, G. J. McLachlan, A. Ng, B. Liu, P. S. Yu, Z. H. Zhou, M. Steinbach, D. J. Hand and D. Steinberg, Top 10 algorithms in data mining, Knowl. Inf. Syst., 2008, 14, 1–37 CrossRef.
  57. T. K. Ho, The random subspace method for constructing decision forests, IEEE Trans. Pattern Anal. Mach. Intell., 1998, 20, 832–844 CrossRef.
  58. P. Geurts, D. Ernst and L. Wehenkel, Extremely randomized trees, Mach. Learn., 2006, 63, 3–42 CrossRef.
  59. A. Natekin and A. Knoll, Gradient boosting machines, a tutorial, Front. Neurorobot., 2013, 7, 21 Search PubMed.
  60. T. Chen and C. Guestrin, XGBoost: A Scalable Tree Boosting System, 2016,  DOI:10.1145/2939672.2939785.
  61. J. B. Harley and D. Sparkman, Machine learning and NDE: Past, present, and future, AIP Conf. Proc., 2019, 090001 CrossRef.
  62. D. Berrar, Encyclopedia of Bioinformatics and Computational Biology, Elsevier, 2019, pp. 542–545 Search PubMed.
  63. A. Althnian, D. AlSaeed, H. Al-Baity, A. Samha, A. bin Dris, N. Alzakari, A. Abou Elwafa and H. Kurdi, Impact of Dataset Size on Classification Performance: An Empirical Evaluation in the Medical Domain, Appl. Sci., 2021, 11, 796 CrossRef CAS.
  64. S. R. Moosavi, D. A. Wood, M. A. Ahmadi and A. Choubineh, ANN-Based Prediction of Laboratory-Scale Performance of CO2-Foam Flooding for Improving Oil Recovery, Nat. Resour. Res., 2019, 28, 1619–1637 CrossRef CAS.
  65. T. Appelhans, E. Mwangomo, D. R. Hardy, A. Hemp and T. Nauss, Evaluating machine learning approaches for the interpolation of monthly air temperature at Mt. Kilimanjaro, Tanzania, Spat. Stat., 2015, 14, 91–113 CrossRef.

Footnote

Electronic supplementary information (ESI) available. See DOI: https://doi.org/10.1039/d2ra05841c

This journal is © The Royal Society of Chemistry 2022