
تعداد نشریات | 43 |
تعداد شمارهها | 1,706 |
تعداد مقالات | 13,972 |
تعداد مشاهده مقاله | 33,588,666 |
تعداد دریافت فایل اصل مقاله | 13,318,767 |
Modeling the Natural Gas Compressibility Factor through Adaptive Neuro-Fuzzy Inference System | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Gas Processing Journal | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
دوره 11، شماره 1، خرداد 2023، صفحه 37-44 اصل مقاله (821.3 K) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
نوع مقاله: Research Article | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
شناسه دیجیتال (DOI): 10.22108/gpj.2025.141086.1136 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
نویسنده | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mohammad Hojjat* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Department of Chemical Engineering, Faculty of Engineering, University of Isfahan, Isfahan, Iran | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
چکیده | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Accurate determination of the natural gas compressibility factor is crucial for reservoir simulation and material balance computations in petroleum engineering. The data-driven AI techniques, like artificial neural networks, fuzzy systems, and neuro-fuzzy systems, are gaining momentum in estimating fluid properties. An adaptive neuro-fuzzy inference system (ANFIS) is applied here to develop a model to estimate the compressibility factor of two natural gas types. The Takagi-Sugeno fuzzy inference system serves as the foundation for constructing the ANFIS model, where the triangular membership functions are applied. The training data consists of 80% of the available data selected randomly, and the remaining 20% is applied in testing. This developed model is of high accuracy in estimating the compressibility factors of natural gas types, with an average absolute relative deviation of 0.05% and a maximum absolute relative deviation of 0.55% difference between the estimated and experimental value data. Comparing the findings here with the correlations indicates that the ANFIS model in terms of accuracy outperforms its counterparts in this realm. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
کلیدواژهها | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Adaptive neuro-fuzzy inference system؛ Natural gas؛ Compressibility factor؛ Computational intelligence | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
اصل مقاله | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In petroleum engineering computations, the natural gas compressibility factor is of high significance. This factor has many applications, in estimating the initial in-place gas, the gas flow in porous media, pipeline pressure drop, and gas measurement and compression (Elsharkawy et al., 2001). The precise estimation of this factor is crucial for accurate reservoir simulations. The volumetric properties of fluids are determined through experimental measurements, empirical correlations, or thermodynamic models (Azizi et al., 2010; Bahadori et al., 2007; Bian et al., 2011; Bian et al., 2012; Fatoorehchi et al., 2014; Heidaryan et al., 2010; Kamari et al., 2016; Li et al., 2014; Li & Guo, 1991; Liu et al., 2013; Yan et al., 2013). In general, experimental measurements tend to be expensive and time-consuming, while empirical correlations and thermodynamic models restrict accuracy. In recent years, modeling based on computational intelligence like fuzzy inference systems, artificial neural networks (ANN), and hybrid fuzzy-neural inference systems has gained momentum among researchers. These models are capable of modeling complex and nonlinear functions effectively. Different intelligent systems, like fuzzy inference systems, hybrid fuzzy-neural inference systems, and ANNs are applied by (Mohamadi-Baghmolaei et al., 2015) to estimate this essential factor. The results indicate that the intelligent models are more accurate than empirical correlations, and ANNs outperform their counterparts in accuracy. The genetic algorithm was used to optimize the parameters of the Peng-Robinson and Redlich-Kwong equations of state. The Redlich-Kwong equation of state (EoS) yields better optimization results and improves the gas compressibility factor prediction with the adjusted parameters. A proposed model for predicting the compressibility factor of natural gases involves a least square support vector machine that has been optimized by applying a combined simulated annealing optimization algorithm (Kamari et al., 2013). The suggested model is compared with nine empirical correlations and equations of state, where, in terms of predictive power, reliability, and efficiency in predicting the compressibility factor of both sour natural gas types, it outperforms its counterparts. Researchers (Fayazi et al., 2014) and (Chamkalani et al., 2013) introduced an advanced least square support vector machine framework enhanced by coupled simulated annealing. The model yielded exceptional precision, thus, outperforming the traditional empirical methods and providing a robust solution for predicting the compressibility factor of natural gas types. Researchers (Sanjari & Lay, 2012) modeled the same in this context by applying an ANN. This model estimates the compressibility factor of natural gas with high accuracy. The estimated values by the ANN model are compared with commonly applied empirical models, statistical association fluid theory, and the Peng-Robinson equation of state. The Wilcoxon Generalized Radial Basis Function Network (WGRBFN) as one of the most recent and robust modeling methods applied in estimating the compressibility factor of natural gas types is outstanding (Shateri et al., 2015). The function of the WGRBFN model is assessed by comparing its results with those obtained from nine empirical correlations and five equations of state. Statistical and graphical analyses confirm that the WGRBFN model is outstanding with predictive capabilities for the compressibility factor of natural gas. Researchers (Hemmati-Sarapardeh et al., 2020) proposed a model where the Group Method of Data Handling (GMDH) is applied to estimate the compressibility of natural gas types subject to different conditions. The performance of this model is assessed against other EoSs and correlations, and is found that the GMDH model outperforms both EoSs and correlations. In a study (Wood & Choubineh, 2020), the abilities of a Transparent Open Box (TOB) and a multi-layer perceptron artificial neural network (MLP-ANN) in estimating the compressibility factor of natural gas types are compared. Applying TOB and ANN in parallel is advantageous because of their effective complementary features, in their prediction validations. The TOB's high level of inspectability facilitates the identification of data areas prone to overfitting, and ANN excels in anticipating the distribution of clustered data. Researchers (Salem et al., 2022) applied both an ANN model and an ANFIS model to predict the compressibility factor of natural gas types, and developed a correlation from the ANN model. Their results suggest that the ANN model excels in the estimation of the natural gases-type compressibility factor. The correlation(s) obtained based on the ANN is validated by applying new experimental data and compared with the available previously proposed correlations, thus, highlighting the lowest error. This presented correlation outperforms the ANN because it can be applied with no specialized program to execute the ANN. Here, a model is developed for estimating the compressibility factor of two natural gas types through ANFIS. Estimated values by the ANFIS model are compared with the available proposed empirical correlations.
The experimental data in this modeling consists of 228 data points related to two natural gas types (Yan et al., 2013). The first gas type is sourced from a reservoir at 408 K and 105 MPa pressure, and the second is from a gas reservoir at 441 K and 116 MPa pressure. The compositions of the gas types are tabulated in Table 1.
Table 1: The composition of natural gas types (Yan et al., 2013)
To determine the performance of the model, its results are compared with the following five models: Method 1: The (Dranchuk et al., 1973) correlation: contains eight coefficients obtained based on the Benedict–Webb–Rubin equation and Standing–Katz chart for the prediction of natural gas compressibility factor. In this correlation, the input variables are the temperature, pressure, pseudo-critical temperature, and pressure. Method 2: The (Dranchuk & Abou-Kassem, 1975) correlation: contains eleven empirical coefficients. In this correlation, the variables are temperature, pressure, pseudo-critical temperature, pseudo-critical pressure, and critical compressibility factor. Method 3: The (Yan et al., 2013) correlation: variables are temperature, pressure, pseudo-critical temperature, and pseudo-critical pressure. Method 4: The (Heidaryan et al., 2010) correlation: contains ten empirical coefficients, and the variables are temperature, pressure, pseudo-critical temperature, pseudo-critical pressure, and critical compressibility factor. Method 5: The SRK equation of state is adopted by incorporating the Boston–Mathias temperature-dependent term by (Yan et al., 2013) to model the phase behavior and volumetric properties of condensate gas or natural gas types subject to high-pressure conditions. In this modified version of the SRK equation, the expression for the proper term is linked to the range of reduced temperature (Tr).
A fuzzy system is a prevalent computational technique rooted in fuzzy theory, where the fuzzy if-then rules and fuzzy reasoning are applied. Together with neural networks, this system yields a robust tool known as the ANFIS, leveraging the learning capacities of neural networks and demonstrating performance fit to fuzzy inference models. In such systems, the parameters of the fuzzy inference system are established through a method fit to the training algorithms of ANNs.
3-1. The structure of a fuzzy inference system According to (Jang, 1993), the structure of a fuzzy inference system consists of four components:
The ANFIS structured as an adaptive network that applies a supervised learning algorithm, fit to the Takagi-Sugeno fuzzy inference system is applied. The architectural arrangement of both the ANFIS and Takagi-Sugeno models (Suparta & Alhasa, 2013) is illustrated in Fig. (1). Figure 1: (a) Fuzzy "If-Then" rules and fuzzy inference mechanism, (b) ANFIS architecture (Suparta & Alhasa, 2013) To simplify matters, it is assumed that there exist two, z1 and z2 inputs, and one output, y. For the Takagi-Sugeno model, two "If-Then" rules are applied as follows: Rule 1: If z1 is A1 and z2 is B1 Then y1=a1z1+b1z2+s1 Rule 2: If z1 is A2 and z2 is B2 Then y2=a2z1+b2z2+s2 where A1, A2, B1, B2 are the membership functions of the respective inputs z1 and z2 (premise part), and a1, b1, s1, and a2, b2, s2 are the linear parameters of the consequent part in the Takagi-Sugeno fuzzy inference model. In this type of fuzzy inference system, each rule combines its input parameters linearly and adds the result to a constant value. The output of the model is the weighted average of the outputs of different rules. The Takagi-Sugeno model is practical in developing adaptive neuro-fuzzy inference systems (Suparta & Alhasa, 2013), applied in different fields of science and engineering, where classification and pattern recognition tasks, rule-based processing, and data processing applications are involved. As observed in Figure 1), the structure of the ANFIS model consists of five layers where the adaptive nodes are present in the first and fourth layers, and the others feature fixed nodes. An overview of each layer is provided below: Layer 1 (input and fuzzification): This layer converts crisp input data into linguistic sentences. There is one node for each input (in this case, two nodes). These nodes represent linguistic sentences associated with each input data point. Sentences are generated in this through the predefined membership functions. Many membership functions, like triangular, Gaussian, and bell-shaped, are available, to be selected, the parameters of which are known as premise parameters, are tuned and optimized through the ANFIS model to enhance the model's performance. Layer 2 (rule node): This layer evaluates the degree of compatibility and validity of the conditions in the premise part. Each output node here is the firing strength of each rule. This estimation is made based on the following equation: where wi is the firing strength of rules. Layer 3 (normalized node): In this layer, the values of wi computed in the previous layer are normalized, by dividing the wi of each rule by the sum of the wi of all rules. This normalization assures that the firing strengths are scaled between 0 and 1, representing the relative contribution of each rule to the overall inference process. where is the normalized firing strength Layer 4 (defuzzification layer): This layer determines the linguistic output sentences of the model. The nodes in this layer are adaptive and obtain the output according to the following equation: where ai, bi, and si are the linear parameters known as consequent parameters. These parameters, like the premise parameters in Layer 1, are adjusted and optimized by the ANFIS model to minimize the discrepancy between the model’s estimations and empirical data. Layer 5 (output node): This layer consists of a single fixed node that produces the overall output by applying the weighted average sum method of all the inputs obtained from the previous nodes, Eq. (4):
3-2. Development of ANFIS To develop an ANFIS model for estimating the natural gas types compressibility factor, the temperature, pressure, pseudo-critical temperature, and pressure are selected as independent variables, the inputs to the ANFIS model. The experimental data are randomly proportioned into the: the training data set (80%) and the test data set (20%). The input membership functions are triangular. The specifications of the adaptive neuro-fuzzy inference system obtained are tabulated in Table 2.
Table 2: Characteristics of the ANFIS model
The estimated values of natural gas-type compressibility factors obtained from the ANFIS model vs. the experimental data are plotted in Fig. (2). The capability of the ANFIS model is shown by the agreement observed between the experimental data and the estimated values. The average absolute relative deviation percentage (AARD%) between the experimental data and the estimated values by the ANFIS model is 0.05% while and maximum absolute relative deviation percentage (ARD%) is 0.55%. As to overfitting, the k-fold cross-validation (k=3) consistent performance is observed in all folds, with an average AARD% of approximately 0.062 and an R² of 0.9999 to assure generalizability. The model is applied to the data for gas number 4 from Sun et al. (2012), which has a composition closest to gas type 2 in this study. An AARD% of 0.2% and a maximum absolute relative deviation ARD of 1.15% are obtained. Collectively, these results reveal that this proposed ANFIS model is not subject to overfitting. Figure 2: Experimental data of natural gas compressibility factor plotted against estimated values by the adaptive neuro-fuzzy inference system; (a) training data, (b) test data The natural gas types compressibility factor vs. the pressure at various temperatures is plotted in Fig. (3), where, as observed, the ANFIS model accurately estimates the compressibility factor of both gas types across all temperatures. Figure 3: The natural gas types compressibility factor vs. pressure at different temperatures (a) Natural Gas Type 1 and (b) Natural Gas Type 2 The ANFIS model with the empirical equations by (Yan et al., 2013) for estimating the compressibility factor of natural gas types are tabulated in Table 3, where, as observed the ANFIS system outperforms its counterparts in terms of its predictive capability.
Table 3: Comparison of empirical correlations (Yan et al., 2013) with the ANFIS model
The experimental data for the compressibility factor of two natural gas types is modeled through the Adaptive Neuro-Fuzzy Inference System. A Takagi-Sugeno fuzzy inference system is applied, with temperature, pressure, pseudo-critical temperature, and pseudo-critical pressure of the gas as the input variables, and the compressibility factor as the output variable. Triangular membership functions are selected for the fuzzy membership functions. The results obtained from the ANFIS model revealed excellent agreement with the experimental data. The comparison with some empirical equations reveals the high predictive capability of the ANFIS system for estimating the natural gas-type compressibility factor. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
مراجع | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Azizi, N., Behbahani, R., & Isazadeh, M. A. (2010). An efficient correlation for calculating the compressibility factor of natural gases. Journal of Natural Gas Chemistry, 19(6), 642-645. https://doi.org/https://doi.org/10.1016/S1003-9953(09)60081-5 Bahadori, A., Mokhatab, S., & Towler, B. F. (2007). Rapidly Estimating Natural Gas Compressibility Factor. Journal of Natural Gas Chemistry, 16(4), 349-353. https://doi.org/https://doi.org/10.1016/S1003-9953(08)60003-1 Bian, X., Du, Z., & Tang, Y. (2011). Experimental determination and prediction of the compressibility factor of high CO2 content natural gas with and without water vapor. Journal of Natural Gas Chemistry, 20(4), 364-371. https://doi.org/https://doi.org/10.1016/S1003-9953(10)60210-1 Bian, X., Du, Z., Tang, Y., & Du, J. (2012). Measurement and correlation of compressibility factor of high CO2-content natural gas. Journal of Petroleum Science and Engineering, 82-83, 38-43. https://doi.org/https://doi.org/10.1016/j.petrol.2012.01.002 Chamkalani, A., Zendehboudi, S., Chamkalani, R., Lohi, A., Elkamel, A., & Chatzis, I. (2013). Utilization of support vector machine to calculate gas compressibility factor. Fluid Phase Equilibria, 358, 189-202. https://doi.org/https://doi.org/10.1016/j.fluid.2013.08.018 Dranchuk, P. M., & Abou-Kassem, H. (1975). Calculation of Z Factors For Natural Gases Using Equations of State. Journal of Canadian Petroleum Technology, 14(03). https://doi.org/10.2118/75-03-03 Dranchuk, P. M., Purvis, R. A., & Robinson, D. B. (1973). Computer Calculation Of Natural Gas Compressibility Factors Using The Standing And Katz Correlation. Annual Technical Meeting, Elsharkawy, A. M., Hashem, Y. S. K. S., & Alikhan, A. A. (2001). Compressibility Factor for Gas Condensates. Energy & Fuels, 15(4), 807-816. https://doi.org/10.1021/ef000216m Fatoorehchi, H., Abolghasemi, H., & Rach, R. (2014). An accurate explicit form of the Hankinson–Thomas–Phillips correlation for prediction of the natural gas compressibility factor. Journal of Petroleum Science and Engineering, 117, 46-53. https://doi.org/https://doi.org/10.1016/j.petrol.2014.03.004 Fayazi, A., Arabloo, M., & Mohammadi, A. H. (2014). Efficient estimation of natural gas compressibility factor using a rigorous method. Journal of Natural Gas Science and Engineering, 16, 8-17. https://doi.org/https://doi.org/10.1016/j.jngse.2013.10.004 Heidaryan, E., Salarabadi, A., & Moghadasi, J. (2010). A novel correlation approach for prediction of natural gas compressibility factor. Journal of Natural Gas Chemistry, 19(2), 189-192. https://doi.org/https://doi.org/10.1016/S1003-9953(09)60050-5 Hemmati-Sarapardeh, A., Hajirezaie, S., Soltanian, M. R., Mosavi, A., Nabipour, N., Shamshirband, S., & Chau, K.-W. (2020). Modeling natural gas compressibility factor using a hybrid group method of data handling. Engineering Applications of Computational Fluid Mechanics, 14(1), 27-37. https://doi.org/10.1080/19942060.2019.1679668 Jang, J. S. R. (1993). ANFIS: adaptive-network-based fuzzy inference system. IEEE Transactions on Systems, Man, and Cybernetics, 23(3), 665-685. https://doi.org/10.1109/21.256541 Kamari, A., Gharagheizi, F., Mohammadi, A. H., & Ramjugernath, D. (2016). A corresponding states-based method for the estimation of natural gas compressibility factors. Journal of Molecular Liquids, 216, 25-34. https://doi.org/https://doi.org/10.1016/j.molliq.2015.12.103 Kamari, A., Hemmati-Sarapardeh, A., Mirabbasi, S.-M., Nikookar, M., & Mohammadi, A. H. (2013). Prediction of sour gas compressibility factor using an intelligent approach. Fuel Processing Technology, 116, 209-216. https://doi.org/https://doi.org/10.1016/j.fuproc.2013.06.004 Li, C., Peng, Y., & Dong, J. (2014). Prediction of compressibility factor for gas condensate under a wide range of pressure conditions based on a three-parameter cubic equation of state. Journal of Natural Gas Science and Engineering, 20, 380-395. https://doi.org/https://doi.org/10.1016/j.jngse.2014.07.021 Li, Q., & Guo, T.-M. (1991). A study on the super-compressibility and compressibility factors of natural gas mixtures. Journal of Petroleum Science and Engineering, 6(3), 235-247. https://doi.org/https://doi.org/10.1016/0920-4105(91)90016-G Liu, H., Sun, C.-Y., Yan, K.-L., Ma, Q.-L., Wang, J., Chen, G.-J., Xiao, X.-J., Wang, H.-Y., Zheng, X.-T., & Li, S. (2013). Phase behavior and compressibility factor of two China gas condensate samples at pressures up to 95MPa. Fluid Phase Equilibria, 337, 363-369. https://doi.org/https://doi.org/10.1016/j.fluid.2012.10.011 Mohamadi-Baghmolaei, M., Azin, R., Osfouri, S., Mohamadi-Baghmolaei, R., & Zarei, Z. (2015). Prediction of gas compressibility factor using intelligent models. Natural Gas Industry B, 2(4), 283-294. https://doi.org/https://doi.org/10.1016/j.ngib.2015.09.001 Salem, A. M., Attia, M., Alsabaa, A., Abdelaal, A., & Tariq, Z. (2022). Machine Learning Approaches for Compressibility Factor Prediction at High- and Low-Pressure Ranges. Arabian Journal for Science and Engineering, 47(9), 12193-12204. https://doi.org/10.1007/s13369-022-06905-3 Sanjari, E., & Lay, E. N. (2012). Estimation of natural gas compressibility factors using artificial neural network approach. Journal of Natural Gas Science and Engineering, 9, 220-226. https://doi.org/https://doi.org/10.1016/j.jngse.2012.07.002 Shateri, M., Ghorbani, S., Hemmati-Sarapardeh, A., & Mohammadi, A. H. (2015). Application of Wilcoxon generalized radial basis function network for prediction of natural gas compressibility factor. Journal of the Taiwan Institute of Chemical Engineers, 50, 131-141. https://doi.org/https://doi.org/10.1016/j.jtice.2014.12.011 Suparta, W., & Alhasa, K. M. (2013). A comparison of ANFIS and MLP models for the prediction of precipitable water vapor. 2013 IEEE International Conference on Space Science and Communication (IconSpace), Wood, D. A., & Choubineh, A. (2020). Transparent machine learning provides insightful estimates of natural gas density based on pressure, temperature and compositional variables. Journal of Natural Gas Geoscience, 5(1), 33-43. https://doi.org/https://doi.org/10.1016/j.jnggs.2019.12.003 Yan, K.-L., Liu, H., Sun, C.-Y., Ma, Q.-L., Chen, G.-J., Shen, D.-J., Xiao, X.-J., & Wang, H.-Y. (2013). Measurement and calculation of gas compressibility factor for condensate gas and natural gas under pressure up to 116MPa. The Journal of Chemical Thermodynamics, 63, 38-43. https://doi.org/10.1016/j.jct.2013.03.025 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
آمار تعداد مشاهده مقاله: 256 تعداد دریافت فایل اصل مقاله: 35 |