American Journal of Analytical Chemistry
Vol.4 No.11(2013), Article ID:39386,7 pages DOI:10.4236/ajac.2013.411073

Application of Artificial Intelligence (AI) Modeling in Kinetics of Methane Hydrate Growth

Jalal Foroozesh1, Abbas Khosravani2, Adel Mohsenzadeh3, Ali Haghighat Mesbahi4*

1Heriot-Watt University, Institute of Petroleum Engineering, Edinburgh, UK

2Department of Computer Science and Engineering, Amirkabir University of Technology, Tehran, Iran

3School of Chemical and Petroleum Engineering, Shiraz University, Shiraz, Iran

4Department of Chemical Engineering, Polymer Engineering Group, Isfahan University of Technology, Isfahan, Iran

Email: *Mesbahi_haghighat@yahoo.com, *A.haghighatmesbahi@ce.iut.ac.ir

Copyright © 2013 Jalal Foroozesh et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Received August 13, 2013; revised September 13, 2013; accepted October 13, 2013

Keywords: ANFIS; ANN; kinetic; growth rate; hydrate; simulation

ABSTRACT

Determining thermodynamic and kinetic conditions for natural gas hydrate formation is an interesting subject for many researches. At the present, suitable information including experimental data and the thermodynamic models of hydrate formation are available which predict the thermodynamic conditions of hydrate formation. Conversely, there is no sufficient study about the kinetics of natural gas hydrate and most of experimental data and kinetic models in the literature are incomplete. Artificial Intelligence (AI) having sub-branches such as artificial neural network (ANN), and adaptive neuro-fuzzy inference system (ANFIS) has been proved as a novel tool with acceptable accuracy for modeling of engineering systems. Therefore, this paper aims to investigate the kinetics of hydrate formation by predicting the relationship of growth rate of methane hydrate with temperature and pressure using ANN and ANFIS. This goal can also be achieved by solving complicated governing equations while artificial intelligence provides an easier way to accomplish this goal. The result has shown that ANIFS is a more potential tool in predication relationship of kinetics of hydrate formation with temperature and pressure in comparison of ANN in present work.

1. Introduction

Hydrates are ice-like compounds that could be formed at temperature and pressure conditions higher than ice point as a function of gas compositions. In fact, gas hydrates are crystal compounds which are formed by water and gas molecules that the ratio of water to hydrate molecules is varying from 5.67 to 17. Hydrate formation in the oil and gas industry causes difficulties such as plugging of offshore oil and gas production pipelines, pressure drop and corrosion of facilities. But, it has several applications such as storage and transportation of natural gases, desalination of sea water, storage of carbon dioxide for a long time and separation of hydrogen from other light gases.

At the present, suitable information about thermodynamic model of hydrate formation and experimental data are available that mostly are able to predict the conditions of hydrate formation. On the other hand, there is no sufficient information about the kinetics of hydrate growth rate and most of experimental data and kinetic models in the literature are incomplete.

Establishing a kinetic model for hydrate growth rate and its quality started in the 1970s with the work of Glew and Haggett [1] on the hydrate of ethylene oxide. Their experimental observation showed that the hydrate formation is an exothermic process and the growth rate was directly proportional to the temperature difference between the reactor and its cooling bath. Thus, heat transfer rate from the reactor to the cooling bath was considered as a controlling step. Based on experimental data, hydrate production rate was hence modeled by simplification of energy balance for the reactor.

Englezos et al. [2] developed a kinetic model to describe Vysniauskas and Bishnoi’s experimental data [3] of methane and ethane hydrates formation combining the theories of crystallization and mass transfer at a gas-liquid interface. The driving force for hydrate formation was defined as the fugacity difference between dissolved gas and three-phase equilibrium fugacity. Herri and Bishnoi [4] performed in situ measurements of crystals size distribution with the light scattering technique at constant pressure condition in a 1000 cm3 stirred reactor. Their experimental data showed that the kinetics of methane hydrate formation strongly depended on the stirring speed (ω) which should be considered in the modeling.

Gnanendran and Amin [5] predicted a kinetic model for hydrate formation in semi-batch regime spray reactors. In brief, the model utilized a dynamic representation of the drops in the reactor to describe hydrate nucleation and growth. The rest of this paper is structured as follows. First, the methodology that has been used in this article is presented. Next, the theory section extends the background to the article. Afterward, experimental results are brought and analyzed in the results section. Finally, the paper is discussed and concluded by a discussion and conclusion section.

2. Material and Methods

2.1. Fuzzy Logic

By the emergence of fuzzy set theory in 1965 through the work of Lotfi A. Zadeh [6], it has been applied to many fields from control theory to artificial intelligence. In contrast to classical set, fuzzy set is not constrained by crisp boundaries. In other words the transition from “belong to a set” to “not belong to a set” is gradual and this is characterized by membership functions. Membership functions give flexibility in modeling linguistic expressions such as “the weather is cold”. Fuzzy sets as Zadeh pointed out “play an important role in human thinking, particularly in the domains of pattern recognition, communication of information, and abstraction”.

A fuzzy set A in which is referred to as universe of discourse is defined as a set of ordered pairs,

(1)

where is called membership function (MF) for the fuzzy set which ranges between 0 and 1. Figure 1 illustrates MFs of linguistic values “cold”, “warm” and “hot”. There are some well-known parameterized MFs including Triangular MFs, Trapezoidal MFs and Gaussian MFs.

In order to make decisions in an environment of uncertainty and imprecision, we employ fuzzy if-then rules of the following formRj: if x1 is Aj1 and x2 is Aj2 and … and xn is Ajn then

(2)

where is the rule label, is the antecedent fuzzy set, is a crisp function which is usually a polynomial function of input variables and N is the total

Figure 1. MFs of linguistic values “cold”, “warm” and “hot”.

number of fuzzy if-then rules. This type of if-then rules is call Sugeno fuzzy model proposed by Takagi, Sugeno [7]. When is a first-order polynomial; it is called a first-order Sugeno fuzzy model and is defined as:

(3)

Several types of fuzzy reasoning by Lee [8] have been proposed in literature. In the case of Sugeno’s fuzzy ifthen rules the output of each rule is a linear combination of input variables plus a constant term, and the weighted average of each rule output produces the final output,

(4)

where  is the firing strength of  , defined as

(5)

In which  denotes a T-norm operator of minimum or product. Figure 2 illustrates fuzzy reasoning for a rule base with two Sugeno’s type fuzzy if-then rules each with two inputs and one output.

2.2 Artificial Neural Network (ANN)

Artificial neural networks have been developed for a wide variety of problems such as classification, function approximation, and prediction. A neural network is structured by a parallel full-connection computation units arranged in layers mimicking the physiologic structure of the brain. There are multiple connections within and between the layers which indicate the strengths or weights between neurons that are learned under an optimization criterion. All information learnt by the network is stored in the interconnection weights between each two successive layers.

An important class of artificial neural network (ANN) is multilayer perceptron (MLP) which schematically depicted in Figure 3. This network consists of an input layer, one or more hidden layers of computation nodes and an output layer of computation nodes. MLP neural network uses error back-propagation algorithm in order

Figure 2. Reasoning from a two-input first-order sugeno fuzzy model with two rule [7].

Figure 3. Architecture of a multi-layer perceptron (MLP) neural network with two hidden layers.

to learn its parameters (weights). This algorithm consists of two passes through the different layers of the network: forward and backward pass. In forward pass, an input pattern is applied to the network to produce a set of outputs while the weights are all fixed. In layer the output is computed as follows:

(6)

where  is the input to the  neuron in  layer, is the output of the  neuron in  layer, is the weight of the connection between  neuron in layer  and  neuron in layer, is an activation function, is the number neurons in  layer and N is the number of layers.

During backward pass the error (the difference between the network outputs and the true values) is propagated back from the output to the connection weights and updates the weights to minimize the prediction error. The most common error function is mean squared error (MSE):

(7)

where is the target value for the output and  is the number of neurons in the output layer. Then the following algorithm is used to update the weights:

(8)

where is the learning rate,  is momentum factor which helps to improve the performance of back-propagation algorithm.

2.3. Adaptive Neuro-Fuzzy Inference System (ANFIS)

An adaptive network is a network structure with nodes that are mainly adaptive and directional links that connect them. An adaptive node is a node whose output depends on some external parameters. The learning rule indicates how these parameters should change to minimize error. In 1993, R. Jang [9] proposed a class of adaptive networks which were functionally equivalent to fuzzy inference systems. This architecture which is referred to as ANFIS is the combination of human-like reasoning style of fuzzy logic by the use of fuzzy sets and if-then rules and learning structure of neural network. ANFIS mimics the interpretability of fuzzy logic and the accuracy and learning power of neural networks to make it a hybrid intelligent system that has the ability to solve nonlinear problems.

Figure 4 illustrates the ANFIS architecture of the fuzzy model depicted in Figure 2. We used square nodes to indicate the adaptability. The functionality of each node varies and depends on overall input-output function. Note that there is no weight associated with each link. The learning procedure involves adjusting the parameters of adaptive nodes given training data. A gradient method can be used as the learning rule but this method is slow and likely to fall in local minima. We utilized a hybrid method [10] which is a combination of gradient method and least squares estimate (LSE) to adjust the parameters. Hybrid method, like MLP, has two passes: forward and backward. In the forward pass each node output goes forward and the consequent parameters are identified using least squares method. In the backward pass the errors propagate backward and the premise parameters are adjusted by gradient descent.

3. Theory

Nearly all of reported experimental works and modeling on kinetics of hydrate growth were done in stirred semibatch reactor under isothermal and isobaric conditions

Figure 4. Equivalent ANFIS architecture of Figure 2 [9].

with constant gas supply for maintaining the pressure. Thus, because of the geometric factors and agitation effects on hydrate growth rate, the kinetic data which are obtained for a specific reactor cannot be used for another. In a novel experimental method, Chang Feng and Chang Yu [11] measured the rate of gas hydrate growth independent of the factors aforementioned. In this method, the hydrate was allowed to form at the gas-liquid interface of gas bubble suspended in a stagnant water phase. Since the dynamic factors of mass transfer in these experiments have no effects on the rate of hydrate growth, it is possible to correlate a good relationship between growth rate and deriving force which will follow in this paper using artificial intelligence.

Nowadays some novel modeling tools such as ANN and ANFIS are used with acceptable accuracy for investtigation of engineering and physical systems. For example, for investigation of hydrate formation, Mohammadi et al. [12-14] presented a mathematical model based on feed-forward artificial neural network algorithm which could estimate hydrate dissociation conditions for the hydrates of following systems: hydrogen + water, hydrogen + tetrahydrofuran + water and hydrogen + tetra-n-butyl ammonium bromide + water, and also for estimation of the dissociation pressures of the binary clathrate hydrates of tetrahydrofuran + methane, carbon dioxide or nitrogen as a function of temperature and concentration of tetrahydrofuran in the aqueous solution below/equal to its stoichiometric concentration. They demonstrated that the predicted and the experimental data are in acceptable agreement confirming the reliability of this algorithm as a predictive tool.

Zahedi et al. [15] estimated hydrate formation temperature (HFT) using the Engineering Equation Solver (EES) and Statistical Package for the Social Sciences (SPSS) software for statistical analysis of the 203 experimental data points collected from literature. Also, HFT was estimated by artificial neural network (ANN) approach using 70% of experimental data for training of ANN. Comparing the results of ANN model with 30% of testing data confirmed the brilliant estimation performance of ANN. It was found that ANN was more accurate compared to traditional methods.

In this paper efforts are conducted to using ANFIS and ANN for predicting the relationship of temperature and pressure with growth rate of methane hydrate using experimental data of Chang Feng and Chang Yu [11,16]. The results could be useful in controlling and managing the methane hydrate formation for preventing or accelerating its formation.

4. Results

4.1. Data Description

Chang Feng and Chang Yu [11,16] proposed an innovative method to measure the rate of hydrate growth. As it is shown in Figure 5, the hydrate was allowed to form at the gas-liquid interface of a methane gas bubble suspended in a stagnant water phase. The whole hydrate formation process was recorded by the video camera and the surface area of a gas bubble was calculated by image software. Based on the measured (recording time until the surface of suspended bubble is fully covered with hydrate), the average hydrate-growth rate (r) on the bubble surface is simply calculated as:

(9)

The calculated hydrate-growth rate data (expressed in terms of mm2/s) at various temperatures and pressures for methane is presented in Tables 1. Figure 6 also illustrates the sample data used in the experiment.

4.2. Building the Model

We designed an ANFIS model with two inputs (temperature and pressure) and one output (hydrate-growth rate) to predict the growth rate. We used fuzzy c-means clustering algorithm to extract a set of fuzzy rules and membership functions that best model the data behavior. Gaussian membership function defined as:

(10)

Figure 5. Schematic of hydrate formation on the surface of a gas bubble. 1) Water inlet; 2) hydrate-covered gas bubble atop the gas injection needle; 3) hydrate-covered hemisphere formed by a previous bubble; 4) gas outlet; 5) highpressure windowed cell;6) gas phase; 7) hydrate layer floating atop the water phase; 8) water phase; 9) gas injection needle; 10) gas inlet; [11].

Table 1. Experimental data of methane hydrate growth rate [11,16].

T: Temperature; P: Pressure; G R: Growth Rate.

Figure 6. Illustration of the sample data used in this experiment.

where is the mean and is the standard deviation, is used in the model. An optimal number of 5 rules found by fuzzy c-means clustering were trained using hybrid learning algorithm.

The performance index used for evaluating the model is based on the present of average relative deviation (ARD),

(11)

where is the target value,  is the ANFIS output and is the total number of test samples. A 10-fold crossvalidation method is used to evaluate the performance of the model. We first divided the dataset into 10 distinct sets; putting aside one set for testing, we trained the ANFIS model with other sets. Let be the error of the set used as test set. By repeating this process 10 times and each time with a different set, the performance of the model is calculated as:

(12)

where is the number of folds. Figures 7 and 8 represent the performance of the ANFIS for training and testing data, respectively.

One of the major advantageous of 10-fold cross-validation evaluation method over holdout method in which some random experimental data are used for evaluation is that the entire experimental data will be tested by the model and as a result, the bias of the true error rate will be small.

We also analyzed the results obtained by MLP neural network with 2 layers, 7 neurons in the first layer and 5 in the second layer which performs best using try and error. Table 2 illustrates the average relative deviation (ARD) for MLP neural network and ANFIS model.

Finally, a plot of the output surface of the ANFIS model trained using the entire dataset is depicted in Figure 9.

5. Discussion and Conclusions

Due to the fact that artificial intelligence (AI) provides an

Figure 7. performance of ANFIS for training data.

Figure 8. performance of ANFIS for testing data.

Table 2. Results of MLP and ANFIS model on testing data calculated using ARD (%).

Figure 9. The output surface of the ANFIS model.

effective tool for many complicated engineering problems in various fields, here ANFIS and ANN are employed as its sub-branches for understanding of methane hydrate formation rate in various pressures and temperatures. In this paper, we made a model which illustrates the relationship of the temperature and pressure with CH4 hydrate growth rate for a set of real data using ANFIS as well as ANN. Understanding the kinetics of hydrate formation can be achieved by solving complicated equation while artificial intelligence provides an easier way to accomplish this goal.

Although ANN is one of the remarkable tools in engineering processes, some problems are associated with ANN that ANFIS removes two problems of this.

1—since that initial weight of ANN set randomly, obviously we have different modeling performances in each run (in constant topology and configuration of network) and consequently we should run remarkable number of time, for example 100 run, for each designed net and report average of this 100 time or we can run our designed network so much so that we obtain the best performance (Root Mean square error (RMSE), Average relative error (ARE), Average relative deviation (ARD)… and set this bunch of weight as the best initial weight of network, which both of mentioned processes are highly time-consuming and ANFIS removes this problem with getting amount of input in aggregation of membership function as fuzzification process. With this work, we don’t have a problem of ANN (different performance in each run).

2—Although black box of ANN sometimes is a great advantage, it may be possible that we want to know inner structure of subjected system by utilizing fuzzy system, instead of this black box. This problem can be removed. Furthermore, by doing so, the problem of existing an expert in the FIS successfully will be removed by back propagation learning algorithm of NN.

In this paper, we applied fuzzy c-means clustering algorithm to extract a set of fuzzy rules and updated their parameters using training data so as to predict the data behavior properly. We utilized a 10-fold cross-validation method to evaluate the performance of the model which produces more reliable results especially for a few numbers of experimental data. The data were also compared with MLP neural network having 2 layers, 7 neurons in the first layer and 5 in the second layer. The obtained results indicate the effectiveness of ANFIS as a more powerful modeling tool for the kinetics of methane hydrate. Therefore, ANFIS model can be of great help for engineers to prevent methane hydrae formation during natural gas transportation through pipelines or accelerating its formation for gas storage purposes. Also optimization of ANFIS parameter for achieving more accuracy model with different approaches (such as try and error method or genetic algorithm method) in future is promising.

REFERENCES

  1. D. Glew and M. Haggett, “Kinetics of Formation of Ethylene Oxide Hydrate. Part II. Incongruent Solutions and Discussion,” Canadian Journal of Chemistry, Vol. 46, No. 24, 1968, pp. 3867-3877. http://dx.doi.org/10.1139/v68-640
  2. P. Englezos, N. Kalogerakis, P. Dholabhai and P. Bishnoi, “Kinetics of Formation of Methane and Ethane Gas Hydrates,” Chemical Engineering Science, Vol. 42, No. 1, 1987, pp. 2647-2658. http://dx.doi.org/10.1016/0009-2509(87)87015-X
  3. A. Vysniauskas and P. Bishnoi, “A Kinetic Study of Methane Hydrateformation,” Chemical Engineering Science, Vol. 38, No. 7, 1983, pp. 1061-1072. http://dx.doi.org/10.1016/0009-2509(83)80027-X
  4. J. Herri, F. Gruy, J. Pic, M. Cournil, B. Cingotti and A. Sinquin, “Interest of in Situ Turbidimetry for the Characterization of Methane Hydrate Crystallization: Application to the Study of Kinetic Inhibitors,” Chemical Engineering Science, Vol. 54, No. 12, 1999, pp. 1849-1858. http://dx.doi.org/10.1016/S0009-2509(98)00433-3
  5. N. Gnanendran and R. Amin, “Modelling Hydrate Formation Kinetics of a Hydrate Promoter-Water-Natural Gas System in a Semi-Batch Sprayreactor,” Chemical Engineering Science, Vol. 59, No. 18, 2004, pp. 3849-3863. http://dx.doi.org/10.1016/j.ces.2004.06.009
  6. L. A. Zadeh, “Fuzzy Sets,” Information and Control, Vol. 8, No. 3, 1965, pp. 338-353. http://dx.doi.org/10.1016/S0019-9958(65)90241-X
  7. M. Sugeno and T. Takagi, “Fuzzy Identification of Systems and Its Applications to Modeling and Control,” IEEE Transactions on Systems, Man, and Cybernetics, Vol. 15, 1985, pp. 116-132.
  8. C. C. Lee, “Fuzzy Logic in Control Systems: Fuzzy Logic Controller,” IEEE Transactions on Systems, Man, and Cybernetics, Vol. 20, No. 2, 1990, pp. 404-435. http://dx.doi.org/10.1109/21.52551
  9. J. S. R. Jang, “ANFIS: Adaptive-Network-Based Fuzzy Inference System,” IEEE Transactions on Systems, Man, and Cybernetics, Vol. 23, No. 3, 1993, pp. 665-685. http://dx.doi.org/10.1109/21.256541
  10. J. S. R. Jang, “Fuzzy Modeling Using Generalized neUral Networks and Kalman Filter Algorithm,” Proceedings of 9th National Conference on Artificial Intelligence (AAAI- 91), Vol. 4, No. 1, 1991, pp. 762-767. http://ieeexplore.ieee.org/xpl/abstractReferences.jsp?tp=&arnumber=182710&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D182710
  11. C. Ma, G. Chen and T. Guo, “Kinetics of Hydrate Formation Using Gas Bubble Suspended in Water,” Science in China Series B: Chemistry, Vol. 45, 2002, pp. 208-215. http://dx.doi.org/10.1360/02yb9028
  12. “Determining Phase Diagrams of Tetrahydrofuran+ Methane, Carbon Dioxide or Nitrogen Clathrate Hydrates Using an Artificial Neural Network Algorithm,” Chemical Engineering Science, Vol. 65, No. 22, 2010, pp. 6059- 6063. http://dx.doi.org/10.1016/j.ces.2010.07.013
  13. A. Mohammadi and D. Richon, “Hydrate Phase Equilibria for Hydrogen+Water and Hydrogen+Tetrahydrofuran +Water Systems: Predictions of Dissociation Conditions Using an Artificial Neural Network Algorithm,” Chemical Engineering Science, Vol. 65, No. 10, 2010, pp. 3352- 3355. http://dx.doi.org/10.1016/j.ces.2010.02.015
  14. A. Mohammadi, “Use of an Artificial Neural Network Algorithm to Predict Hydrate Dissociation Conditions for Hydrogen+Water and Hydrogen+Tetra-n-Butyl Ammonium Bromide+Watersystems,” Chemical Engineering Science, Vol. 65, No. 14, 2010, pp. 4302-4305. http://dx.doi.org/10.1016/j.ces.2010.04.026
  15. G. Zahedi, Z. Karami and H. Yaghoobi, “Prediction of Hydrate Formation Temperature by Both Statistical Models and Artificial Neural Network Approaches,” Energy Conversion and Management, Vol. 50, No. 8, 2009, pp. 2052-2059. http://dx.doi.org/10.1016/j.enconman.2009.04.005
  16. C. Y. Sun, G. J. Chen, C. F. Ma, Q. Huang, H. Luo and Q. P. Li, “The Growth Kinetics of Hydrate Film on the Surface of Gas Bubble Suspended in Water or Aqueous Surfactant Solution,” Journal of Crystal Growth, Vol. 306, No. 2, 2007, pp. 491-499. http://dx.doi.org/10.1016/j.jcrysgro.2007.05.037

NOTES

*Corresponding author.