Abstract
The estimation of a gas viscosity experimentally is often difficult. So, accurate determination of gas viscosity has been the main challenge in a gas reservoir development. There are many correlations to estimate this property. Often time, the results of these correlations do not agree with experimental data, thereby causing a considerable amount of error. The difficulty of these correlations can be propagated simply by tuning against some experimental data using artificial intelligent model. Currently, the achievements of artificial neural networks (ANN) techniques alone to predict gas viscosity open the door to use the hybrid system. In this model, the Particle Swarm Optimization (PSO) algorithm is employed to search for optimal connection weighs and thresholds for the neural networks (NN), then the back-propagation learning rule and training algorithm is used to adjust the final weights. A total of about 868 data points obtained from the laboratory measurements of gas viscosity were used. The data include measured gas viscosity, specific gas gravity, temperature, pressure, molecular weight, pseudo-critical temperature and pressure and non-hydrocarbon components (H2S, CO2, and N2). The performance of the PSONN model is compared with performance of ANN and other empirical model to show the most general and accurate model for predicting gas viscosity. From the results of this study, we found that the PSONN model is more reliable and accurate with the absolute present relative (APRE) error and mean square error (RMS) of 2.76 and 5.49 respectively.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
Introduction
Gas viscosity is an essential physical property to predict future reservoir performance, the initial gas in place, optimal production schemes, and material balance calculations. Estimation of gas viscosity accurately is a great importance. The gas viscosity is a strong function of the pressure, temperature, gas gravity, gas composition, gas density and nonhydrocarbon components. It is commonly estimated by either experimental laboratory measurements or published gas models when the measured data are not available.
Most correlations of gas viscosity require additional tuning to provide acceptable predictions for a given reservoir fluid. Before recalibrating these correlations, data must be quality controlled to ensure suitable performance of regression procedures.
(Dempsey 1965) proposed a new gas viscosity correlation using (Carr et al. 1954) data points. (Lee et al. 1996) developed a gas viscosity model using these independent variables which comprise gas density, temperature, and gas molecular weight. He noticed that the correlation does not perform well in either sour gases or gas has higher specific gravity. (Vesovic 2001) used four models to evaluate the gas viscosity of natural gas using 111 experimental data points. (Schley et al. 2004) proposed model to estimate the gas viscosity using 448 data points with accuracy around 0.3 and 0.5%. (Londono et al. 2005) presented a new model for gas viscosity at 1 atmosphere using 4909 experimental data sets. He found that the average absolute error of this model is 4.91%. (Elsharkawy 2006) used 2400 experimental data points to modify the Lee correlation. This approach leads to increase accuracy the average relative error to 1.9 and standard deviation to 16.8. (Viswanathan 2007) adjusted Lee correlation coefficients and the results showed the new correlation has a good performance with the same data as to compare to the Lee correlation. (Sutton 2007) used around 588 to develop a new gas viscosity correlation at standard conditions by combining Lucas equation with LGE model. He found the absolute percent relative error of the model was 4.2%. (Ohirhian and Abu 2009) developed the gas viscosity correlation using experimental data from Nigeria. (Davani et al. 2009) evaluated some existing gas viscosity model and found that gas viscosity models are not reliable at high pressure and temperature condition. (Sanjari et al. 2011) established a new model to predict the gas viscosity at low temperature and pressure, using 4089 experimental data points. (Al-Nasser et al. 2012) proposed a new model to estimate gas viscosity with high accuracy using around of 5600 data points collected from the Saudi Arabia. (Heidaryan et al. 2013) proposed a new correlation to estimate gas viscosity in a wide range, using 3255 experimental data points for 25 different gas mixtures. He reported that the model achieved the average absolute error around 3.03%. (Anyiador et al. 2015) used 319 data from the Niger Delta to evaluated natural gas viscosity. He found that Dempsey correlation achieve the best one.
(Azad et al. 2015) presented a model to predict a gas viscosity in a wide range of temperatures, pressures and compositions. They found that their new proposed model performed well with the absolute relative error of 2.4%. (Xiaohong et al. 2017) presented a new gas viscosity model using 1539 measured data points from Chinese oil fields. The proposed model performed well with the relative error (Yang and Zhu 2021)was less than 1.9%. (Azubuike et al. 2019) proposed accurate model to estimate gas viscosity at high temperature and pressure. The authors collected 483 data points from the Niger Delta part in Nigeria. (Yang and Zhu 2021) collected 1669 experimental databases from Chinese oil fields to develop a new gas viscosity. (Seyedeh et al. 2020) applied machine learning to identify reservoir models from pressure derivative curves derived from horizontal wells. (Farshadet al. 2020) proposed ANN model to define the whole system by taking into account the effect of several parameters. (Saleh and Behzad 2020) used six intelligent connectionist approaches to determine the methanol loss during its recovery in a three-phase separator. (Menad et al. 2021a, b) used three types of neural network to estimate he solubility of N2O in various ionic Liquids. (Cuthbert et al. 2022) applied robust machine learning (ML) to predict interfacial tension. (Menad et al. 2021a, b, 2022) used intelligent paradigms to find the suitable design parameters of a water alternating gas project and to predict CO2 uptake in in metal–organic frameworks respectively. Tamer et al. 2023) used machine learning algorithms to determine the heat output and total weight values of panel radiators.
Recently, there are many artificial neural networks (ANN) techniques were proposed to predict gas viscosity presented in literature (Alquraishi 2011; Baniasadi and Khamehchi 2014; Lay et al. 2012; Sanaei et al. 2015). In additional, (Deumah et al. 2021; Fayazi et al. 2014; Liu et al. 2021; Rostami and Shamshirband 2018; Yousefi et al. 2014) and Yingxian et al. 2021) applied a machine learning model to estimate the gas viscosity.
According to the previous literature, there are a lot of empirical correlations to predict gas viscosity but artificial intelligent techniques are few. Also, the most empirical models require additional tuning to provide suitable estimations for gas viscosity. Therefore, this research is focused on developing the most accurate technique to predict gas viscosity either by using both the ANN algorithm and applying the hybrid PSONN model. Consequently, the large data were collected from Yemeni gas fields and the others were chosen carefully from published papers in order to extend the data range and to achieve this work.
Methodology
Particle swarm optimization
Particle swarm optimization (PSO) is an optimization technique based on the movement and intelligence of swarms was developed by (Eberhart and Kennedy 1995). Figure 1 describes the particle flying model. Each bird called as particle. PSO uses to search for the optimal solution by simulate the bird's movement. For more details about particle swarm optimization model, see (Al-Gathe et al. 2019; Eberhart and Kennedy 1995).
Hybrid PSONN model development
ANN has outstanding features in handling nonlinear problem and achieves a high degree of prediction accuracy. Despite the improvement in ANN and a wide range of applications, but the algorithm itself has also an unavoidable weakness. The main difficulties of ANN are the local minimum point, slow convergence and the difficulty to determine hidden layer nodes and number of hidden layers.
According to these difficulties, the PSO is a global searching that has the fast convergence and ability to avoid the local minimum point. In additional, the PSO algorithm was also used to optimize the weights of ANN algorithm in order to avoid the determination of the hidden layer nodes and the number of hidden layers.
So, in this work, it is essentially to merge the PSOwith ANNalgorithm to achieve faster convergent speed around a global search. Therefore, combined PSOand ANN can achieve higher convergent accuracy. Moreover, merging ANN with PSO can overcome the weakness of each algorithm. This combining called PSONN algorithm.
The PSONN model works into two ways. First, the PSO algorithm is used to find the optimal weights of the network and then the ANN algorithm is applied for learning rule and adjusts the final weights. Finally, the iterative method of the PSONN model is represented in Fig. 2. For more details about PSONN model and their description is discussed in (Abedelrigeeb et al. 2021)
Data gathering
In order to succeed this work, a large number of experimental measurements data of natural gases has been used to predict gas viscosity. The data include around 580 data points that collected from different Yemeni gas fields. In order to develop an appropriate model in a wide data range, 288 published data points were chosen carefully from three main sources (Carr et al. 1954; Lee et al. 1996; Vesovic 2001). Therefore, the proposed model can be run for a wider input data range in more reliable and efficient.
For each gas composition, the data comprise experimentally measured gas viscosity, specific gas gravity, temperature, pressure, molecular weight, pseudo-critical temperature and pressure. It also includes the amount of non-hydrocarbon components (H2S, CO2, and N2). Table 1 shows the complete description of input/output data ranges.
The criteria used in this study were average percent relative error, average absolute percent relative error the correlation coefficient (R2), (APRE) and absolute percent relative error, and the root mean square error (RMSE) as the following:
where
where
- x exp:
-
represent the experimental values.
- x est:
-
represent the estimated values.
- n d:
-
number of data.
Activation function
The selection of activation function depends on the research goals. Root Mean Squared Error (RMSE) is used here as a activation function. Optimization activation function is important to ensure that RMSE or learning error is getting lesser with the increase of number iterations. The feed-forward neural network with one hidden layer structure was developed.
Results and discussion
In this research, seven of existed empirical correlations of gas viscosity are applied. The results of these models are shown in Fig. 3 and Table 2. From these results, we found the Londono model achieved the best one with APRE and RMS equal to 10.74 and 21.11 respectively.
The ANN model was established in this research to improve the prediction of the gas viscosity. The data was classified into three groups: 70% for training, 15% for validating and 15% for testing. The neural network illustrates in Fig. 4. The Neural Network Regression results are shown in Fig. 5. Figure 6 shows the neural network training performance stopped at epochs 6 before overfitting was done.
Figure 5 shows the Neural Network Regression.
Figure 6 shows the Neural Network Training Performance.
The hybrid PSONN model was developed in this research to predict the gas viscosity by using 868 data sets. The Particle Swarm Optimization (PSO) algorithm has different control parameters as shown in Table 3. These parameters are tuned to find the optimal connection weighs and thresholds for the neural networks (NN). then the back-propagation learning rule and training algorithm is used to adjust the final weights. The best configuration for hybrid PSONN approach is described in Table 4.
Number of dimension in above model is depending to number of weight and bias that obtained by the following equation (Al-Gathe et al. 2019):
Figure 5 depicts the best global index performance of PSO algorithm for gas viscosity estimation.
The PSONN technique was evaluated together with ANN model and published correlations to check their performance and accuracy for determining the gas viscosity. The statistical results of the error analysis for all models are presented in Table 5. Table 5 and Fig. 6 show the hybrid approach achieved the best performance comparing with other empirical correlations and ANN approach as well. The result of proposed PSONN model predicted the gas viscosity in higher accuracy with APRE equal to 2.76 and correlation factor 0.997. Figure 7 also illustrates the cross-plot of PSONN approach that showing a good agreement between actual and predicted gas viscosity.
Conclusions
From the results of ANN and hybrid approaches, the following conclusion points can be drawn.
-
1.
The ANN approach improved the gas viscosity accuracy by decreasing the APRE error to 5.9.
-
2.
The proposed hybrid PSONN model displayed the best performance with the lowest APRE errors (2.76) and the highest correlation Factor (0.997).
-
3.
Error of gas viscosity models increases on going from the hybrid to ANN and empirical correlations.
-
4.
Both approaches cover a wide data range of specific gas gravity from 0.55 to 2.1.
-
5.
It is reported that the hybrid approach is powerful tools to overcome vagueness existent in estimation of gas viscosity.
Data availability
The data can be shared, please send an email to Prof. Al-Gathe Abdelrigeeb abdelrigeebi@yahoo.com.
References
Abedelrigeeb A-G, El-Banbi A, Fattah A, Kh A, El-Metwally KA (2021) An Artificial Intelligent Approach for Black Oil PVT Properties. J Phys Conf Ser 1962:12026. https://doi.org/10.1088/1742-6596/1962/1/012026
Al-Gathe AA, Baarimah SO, Al-Khudafi AM, Ba-Jaalah KS (2019) Hybrid artificial intelligent approach for choke size estimation in volatile and black oil reservoirs. Proceedings of the International Conference on Intelligent Computing and Engineering (ICOICE), pp 971–978
Al-Nasser S, Kadhem K, Al-Marhoun A, Muhammad R (2012) Development of new gas viscosity correlations. P “Development of New Gas Viscosity Correlations,” SPE Reservoir Evaluation & Engineering, pp 1–7
Alquraishi EMS (2011) Artificial neural networks modeling for hydrocarbon gas viscosity and density estimation. J King Saud Univ Eng Sci 23:2. https://doi.org/10.1016/j.jksues.2011.03.004
Anyiador OM, Ikiensikimama SS, Azubuike II (2015) Evaluation of viscosity correlation for Niger Delta Gas Reservoir. Int J Sci Eng Investig 4(46):22–29
Azad J, Bakak A, Ehsan I (2015) On the viscosity of natural gas. Fuel 150:609–615
Azubuike I, Ikiensikimama S, Orodu O (2019) A new forecast model for natural gas viscosity. Int Res J Adv Eng Sci 4(2):316–320
Baniasadi M, Khamehchi E (2014) Development of a new model to predict gas viscosity using artificial neural networks. J Nat Gas Sci Eng 2(3):195–207
Carr NL, Kobayashi R, Burrows DB (1954) Viscosity of hydrocarbon gases under pressure. Transactions of the American Institute of Mining, Metallurgical, and Petroleum Engineers (Trans-AIME) 201:270–275
Cuthbert SW, Hakim D, Menad NA, Ashkan JG (2022) Modeling interfacial tension of the hydrogen-brine system using robust machine learning techniques: Implication for underground hydrogen storage. Int J Hydrogen Energy 47, Nu. 93:39595–39605, ISSN. 0360–3199. https://doi.org/10.1016/j.ijhydene.2022.09.120
Davani E, Ling K, Teodoriu C, McCain J, Falcone G (2009) Inaccurate Gas Viscosity at HP/HT Conditions and Its Effects on Unconventional Gas Reserves Estimation. Society of Petroleum Engineers (SPE) Conference Proceedings, 122827
Dempsey JR (1965) Computer routine treats gas viscosity as a variable. Oil Gas J 61(31):141–143. https://jglobal.jst.go.jp/en/detail?JGLOBAL_ID=201602015355277873&rel=1
Deumah SS, Yahya WA, Al-Khudafi AM, Ba-Jaalah KS, Al-Absi WT (2021) Prediction of gas viscosity of yemeni gas fields using machine learning techniques. Society of Petroleum Engineers - SPE Symposium: Artificial Intelligence - Towards a Resilient and Efficient Energy Industry 2021. https://doi.org/10.2118/208667-MS
Eberhart R, Kennedy J (1995) New optimizer using particle swarm theory. In: Proceedings of the International Symposium on Micro Machine and Human Science, pp 39–43. https://doi.org/10.1109/MHS.1995.494215
Elsharkawy AM (2006) Efficient methods for calculations of compressibility, density, and viscosity of natural gases. J Can Pet Technol 45:6
Farshad A, Seyednooroldin H, Maziar S, Seyyed HE, Fatemeh A (2020) A novel study of the gas lift process using an integrated production/ injection system using artificial neural network approach. Model Earth Syst Environ. https://doi.org/10.1007/s40808-020-00958-9
Fayazi A, Arabloo M, Mohammadi AH (2014) Efficient estimation of natural gas compressibility factor using a rigorous method. J Nat Gas Sci Eng 16:8–17. https://doi.org/10.1016/j.jngse.2013.10.004
Heidaryan E, Esmaeilzadeh F, Moghadasi J (2013) Natural gas viscosity estimation through corresponding states based models. Fluid Phase Equilib 354:80–88
Lay N, Peymani M, Sanjari E (2012) Prediction of natural gas viscosity using artificial neural network approach. J Petrol Sci Eng 98:84–92
Lee J, Gonzalez MH, Eakin BE (1996) The viscosity of natural gases. Journal of Petroleum Technology (JPT), Transactions of the American Institute of Mining, Metallurgical and Petroleum Engineers (AIME) 18:8
Liu Y, Chen C, Zhao H, Wang Y, Han X (2021) A robust method to predict fluid properties based on big data and machine learning algorithms. In: International Petroleum Technology Conference, IPTC 2021. https://doi.org/10.2523/IPTC-21356-MS
Londono FE, Archer RA, Blasingame TA (2005) Correlations for hydrocarbon-gas viscosity and gas density-validation and correlation of behavior using a large-scale database. SPE Reservoir Evaluation & Engineering, pp 561–572
Menad NA, Ashkan JG, Cuthbert SW, Noureddine Z (2021) Optimization of WAG in real geological field using rigorous soft computing techniques and nature-inspired algorithms. J Pet Sci Eng 206:109038, ISSN 0920–4105. https://doi.org/10.1016/j.petrol.2021.109038
Menad NA, Hocine O, Mohammed AG (2022) Robust smart schemes for modeling carbon dioxide uptake in metal- organic frameworks. Fuel 311:122545, ISSN 0016–2361. https://doi.org/10.1016/j.fuel.2021.122545
Menad NA, Mohammed AG, Mohamed EB, Hocine O (2021) Predicting solubility of nitrous oxide in ionic liquids using machine learning techniques and gene expression programming. J Taiwan Inst Chem Eng 128:156–168, ISSN. 1876–1070. https://doi.org/10.1016/j.jtice.2021.08.042
Ohirhian PU, Abu IN (2009) A new correlation for the viscosity of natural gas. Adv Mater Res 62–64:474–483. Trans Tech Publications, Ltd. https://doi.org/10.4028/www.scientific.net/amr.62-64.474
Rostami AH, Shamshirband S (2018) Rigorous prognostication of natural gas viscosity: smart modeling and comparative study. Fuel 222:766–778. https://doi.org/10.1016/j.fuel.2018.02.069
Saleh H, Behzad V (2020) Determination of methanol loss due to vaporization in gas hydrate inhibition process using intelligent connectionist paradigms. Arab J Sci Eng. https://doi.org/10.1007/s13369-021-05679-4
Sanaei A, Yousef SH, Naseri A, Khishvand M (2015) A novel correlation for prediction of gas viscosity. Energy Sour A Recov Util Environ Effects 37(18):1943–1953
Sanjari E, Lay EN, Peymani M (2011) An accurate empirical correlation for predicting natural gas viscosity. J Nat Gas Chem 20(6):654–658
Schley P, Jaeschke M, Chenmeister CK, Vogel E (2004) Viscosity measurements and predictions for natural gas. Int J Thermophys 25(6):1623–1652
Seyedeh RM, Behzad V, David AW (2020) Auto-detection interpretation model for horizontal oil wells using pressure transient responses. Adv Geo-Energy Res 4(3):305-316. 10.https://doi.org/10.46690/ager.2020.03.08
Sutton RP (2007) Fundamental PVT calculations for associated and gas/condensate natural-gas systems. SPE Reservoir Eval Eng 10(3):270–284
Tamer C, Andaç BÇ, Devrim A, Ahmet SD, Senol B (2023) Research on the influence of convector factors on a panel radiator’s heat output and total weight with a machine learning algorithm. Eur Phys J plus 138:43. https://doi.org/10.1140/epjp/s13360-022-03622-6
Vesovic V (2001) Predicting the viscosity of natural gas. Int J Thermophys 22(2):415–426
Viswanathan A (2007) Viscosities of natural gases at high pressure and high temperature. Texas A&M University
Xiaohong Y, Shunxi Z, Welling Z (2017) A new model for the accurate calculation of natural gas viscosity. Nat Gas Ind B 4(2):100–109
Yang X, Zhu W (2021) A new model for methane viscosity based on the theory of averaged intermolecular potential field. Nat Gas Ind B 40(4):99–107
Yingxian L, Cunliang C, Hanqing Z, Yu W (2021) A robust method to predict fluid properties based on big data and machine learning algorithms. International Petroleum Technology Conference, IPTC-21356-MS
Yousefi S, Azamifard A, Hosseini S, Shamsoddini M, Alizadeh N (2014) Toward a predictive model for predicting viscosity of natural and hydrocarbon gases. J Nat Gas Sci Eng 20:147–154. https://doi.org/10.1016/j.jngse.2014.06.003
Funding
Open access funding provided by University of Miskolc. No funding was obtained for this study.
Author information
Authors and Affiliations
Contributions
All authors contributed equally to the research and preparation of this manuscript. Dr. Abdelrigeeb Al-Gathe:conceived and designed the study, drafted the initial manuscript and contributed to the development and implementation of the methodology. Dr. Salem Baarimah conceived and designed the study, conducted data analysis, and interpreted the results. Prof. Abbas Al-Khudafi performed data collection, preprocessing, and conducted experiments and reviewed the manuscript and provided valuable feedback. Prof. Hazim Dmour contributed to the development, implementation of the methodology and reviewed the manuscript and provided valuable feedback. PhD. Mohammed Bawahab conceived and designed the study and contributed to the development and implementation of the methodology.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Communicated by H. Babaie
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Al-Gathe, A., Baarimah, S.O., Al-Khudafi, A.M. et al. Hybrid approach for gas viscosity in Yemeni oil fields. Earth Sci Inform 17, 475–482 (2024). https://doi.org/10.1007/s12145-023-01121-5
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s12145-023-01121-5