Abstract
Crude oil transport is one important part of the oil industry. Wax deposition is a very complex phenomenon that in recent years is one of the major challenges in oil industry. Wax deposited on the inner surface of crude oil pipelines are capable to reduce or completely stop the oil flow and the oil industry imposing large costs. The main objective of this study was to present a novel approach for predication of wax deposition thickness in single-phase turbulent flow rate. Using experimental data set and Adaptive neural-fuzzy inference system (ANFIS) model was developed. From the results predicted by this model, it can be pointed out that the ANFIS model can be used as powerful tools for prediction of wax deposition thickness in single-phase turbulent flow rate with mean square error, absolute relative deviation error and average absolute deviation error which are 0.00077034, 0.015720 and 0.097961, respectively.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Introduction
Crude oil is a complex homogeneous mixture of various carbon number hydrocarbons, and it compounds of paraffins, aromatics, naphtehnes, asphaltenes and resins. The majority of crude oils and crude oil products contain considerable amounts of petroleum wax. The composition of the wax depends on the oil. A wax composition of mainly low molecular weight n-alkanes (C 20–C 40), is termed paraffin or distillate wax.
Deposition of paraffin wax is a major issue in the oil industry. Wax precipitates from both crude oil and condensate when temperature falls below a certain value. As oil temperature decreases further, more wax will precipitate. If wax precipitates, it may deposit in pipes and equipments causing flow problems. Wax deposition is mainly a problem in pipelines, production equipment and in wells.
The main problems caused by wax deposition are increased pressure drop, production will eventually clog pipes. There are various methods to prevent and reduce problems caused by wax deposition in pipelines that the most important methods are pig racing, chemical injection, thermal insulation and temperature rise. With increasing production from oil wells, followed by quality changes due to increasing crude oil fractions, reducing pressure loss and flow rate, the residence time of oil in pipelines is increasing, resulting in better opportunities for sedimentation wax is in the pipeline. Due to the high content of wax deposition in the oil industry, numerous studies have been conducted in the past decade (Reistle 1928, 1932; Bilderback and McDougall 1963; Haq MA 1978; Smith and Ramsden 1978; Asperger et al. 1981). Many different authors have designed models for the flow of waxy crude oils and the associated deposition of solid wax within pipelines, including Farina and Fasano (1997) and Fusi and Farina (2004).
Many researchers have studied the thermodynamics of wax deposition in hopes of creating a model that accurately describes the process . (Lira-Galeana et al. 1996; Solaimany Nazar et al. 2005; Wuhua and Zongchang 2006; Edmonds et al. 2008; Ramirez-Jaramillo et al. 2001, 2004).
Hoffmann et al. (2011) performed wax deposition experiments to study the single-phase flow in pipelines. Aiyejina et al. (2011) have reviewed wax formation in oil pipelines. In their critical review, deposition mechanisms including wax deposition models were captured. Hoffmann et al. (2011) proposed an online wax thickness build-up monitoring technique in sub-sea oil pipeline based on heat pulse monitoring.
The newest wax deposition thickness (WTR) model is the model presented by Halstensen et al. (2013) to Estimation of wax deposition thickness in pipelines [the so called (“Halstensen-model”)].
However, these presented models are not accurate enough (good) to predict WTR in the oil industry. Most of these models assume that the wax-oil (gel) deposit has constant wax content and require a lot of input information to achieve the required information. Therefore, it is obvious that developments of new advanced prediction models are important for oil industry. These models should not have the limitations and complexities of the available models. In other words the new models should be more accurate, robust and less sensitive to noisy input data, adaptive to a new input–output and also should require the least amount of input information. Intelligent models offer all of the above desirable characteristics. Therefore, the main objective of this study was a novel approach using ANFIS for accurate improve predicting the WTR in single-phase turbulent flow.
Adaptive network–based fuzzy inference system
A fuzzy inference system, a system based on fuzzy if–then rules that applying these rules, the ability to find any type or model is a nonlinear mapping, so that these models can be input with corresponding outputs relevant. The process of formulating the mapping from a given input to an output using fuzzy logic, fuzzy inference system is called. There are three useful fuzzy inference systems: namely the linguistic (Mamdani-type) (Mamdani and Assilian 1975). The relational equation, and the Takagi–Sugeno–Kang (TSK) (Takagi and Sugeno 1985; Zadeh 1984). The main difference between these systems is the output, so that the Mamdani system, the output is a fuzzy set should be defuzzification but Sugeno system output is a linear or constant. On the other hand, neural network learning capability and can be using of train data, the network parameters are adjusted so that the desired input rate, the desired output is achieved. However, neural networks, the use of human knowledge, in contrast, fuzzy systems cannot be used to derive linguistic expressions. So, to create a better learning ability and achieve more accurate approximations, combining the learning capabilities of neural networks and fuzzy systems infer properties of the TSK fuzzy model, called Adaptive neural fuzzy inference system (ANFIS) was presented in 1999 (Jang 1993; Fuzzy logic toolbox 2007). In other words, a fuzzy neural system is a fuzzy system that to determine its parameters used from training samples processed by the learning algorithm that derive or inspired by neural network theory. In Fig. 1, for simplicity, a network with two inputs x, y and output f is considered. ANFIS contains five layers in its architecture, including the fuzzy layer, product layer, normalized layer, defuzzification layer, and total output layer. It should be noted that assuming just two membership functions for each of the input data x and y, the general form of a first-order TSK type of fuzzy if–then rule would be
Where n is the number of rules and p i , q i , and r i are the parameters that are determined during the training process. Through the learning process, at the first stage, the membership degree (μ) of each of the linguistic labels \(A_{i}\) and B i is calculated:
Then, at the second layer, which is the product layer, the previously calculated membership degrees of linguistic variables are multiplied:
The third layer is the normalized layer, in which the ratio of each weight to the total weights is calculated:
The fourth layer is the defuzzification layer with adaptive nodes, which means that their outputs depend on the parameter(s) pertaining to these nodes and the learning rule specifies how these parameters should be changed to minimize a prescribed error measure (Jang 1993). The relationship for these nodes is as follows:
Finally, in the fifth layer, the summation of all of the incoming signals is performed where the result would be the output of the system:
Neural-fuzzy modeling
In this work, ANFIS model was used to predict wax deposition thickness in single-phase turbulent flow rate. Data needed (Table 1) to design and train the presented model were extracted and collected from articles which investigate the phenomenon of wax deposition thickness deposition in laboratory-scale (Hernandez 2002; Lund 1998; Rosvold 2008; Venkatesan 2004). To develop model of ANFIS, 1500 data (Table 1) was used and with a random selection, 1000 of data was used as train set data and the 500 remaining data was used as test set data.
Choosing this configuration was done based on trial and error procedure to achieve best results.
To develop an intelligent system, the most important physical skill required is to make a decision what the principal inputs and output (s) of the system are. In order to this study, the input parameters were Reynolds number (Re), time (T), Dimensionless deposition temperature driving force (ΔT +) and Wax content (WC). A coefficient called the temperature driving force, ΔT+, was introduced by Gudmundsson (2010). The temperature driving force is calculated by ΔT+ = (T c − T wall)/\(T_{\text{oil}}\) which \(T_{\text{c}}\) is the cloud point temperature (WAT), \(T_{{{\text{wall}} }}\) is the inner wall temperature and T oil is the oil temperature. The desirable output of the model was the wax deposition thickness (WTR). To achieve this goal, model ANFIS was designed. In ANFIS model, WTR was a function of Reynolds number (Re), time (T), Dimensionless deposition temperature driving force (ΔT +) and Wax content (WC), therefore, the model has 4 and 1 input and output, respectively:
The fuzzy WTR modeling system used in this study is a multi-input single output (MISO) Takagi–Sugeno system. ANFIS model on the basis of the subtractive clustering algorithm was developed. Because of large number of input variables, scatter partitioning was used to avoid “curse of dimensionality” problem instead of grid partitioning.
Table 2 shows the details of optimal fuzzy model designed for ANFIS model. This arrangement resulted by trial and error procedure. The best parameters of obtained fuzzy clustering designed for ANFIS model is shown in Table 3. Hybrid optimization method was used to optimize generated fuzzy inference system (FIS).
Results and discussion
The performance of ANFIS configuration was evaluated based on the mean square error (MSE), absolute relative deviation error (AAPE), average absolute deviation error (TAAD) and R is the correlation coefficient for normalized data.
this errors are defined as follows:
Where y exp i and y cal i are target and model output for the ith output, and N is the total number of events considered.
Table 4 shows the features and functions of designed model compared with the newest model (Halstensen model).
Figure 2 show the results of testing ANFIS model compared with experimental results in this study. In Fig. 3, actual results against output for ANFIS model is shown.
These figures are in a good agreement and show that the presented model results ANFIS, are in a good agreement with the actual results which shows the high accuracy of the model than newest model.
The related values of R and % RMSE for test set data of the ANFIS model were 0.9929 and 0.0277 %, respectively, that in compare with Halstensen model are very accurate. Based on obtained results, designed ANFIS model has good accurate and able to predict wax deposition thickness in single-phase turbulent flow rate, because of the integration of fuzzy logic systems with the capability of learning in artificial neural networks which leads to the adaptability of the model with this issue.
Conclusions
Wax deposition is a serious problem in the Petroleum Industry that results in the formation damage, flow restrictions and decreased production rate. In this work, utilization of the Adaptive Neural-Fuzzy Inference System technique for predicting wax thickness in single-phase turbulent flow rate has been investigated.
The following conclusions can be drawn from this research:
-
1.
From the results of this study, it can be pointed out that the developed ANFIS model is able to predict the wax deposition thickness in single-phase turbulent flow rate and can be used in oil and gas industry.
-
2.
Our comparison among experimental results and neural-fuzzy show that prediction of designed model is well matched with experimental data with mean square error, absolute relative deviation error and average absolute deviation error which are 0.00077034, 0.015720 and 0.097961, respectively.
-
3.
The results shown that ANFIS model is more accurate than Halstensen model to predict wax deposition thickness in single-phase turbulent flow rate.
-
4.
Using the designed model, and there is a direct relationship between inputs and output variables can be prediction of wax deposition thickness, when the operational conditions conform to the ranges of the input data was used to develop these model.
-
5.
One of the main advantages of this model is simplicity in the calculation, lack of money and lots of time.
-
6.
The most important application of this model is to optimize oil production calculation and operations.
References
Aiyejina A, Chakrabarti DP, Pilgrim A, Sastry MKS (2011) Wax formation in oil pipelines: a critical review. Int J Multiph Flow 37:671–694
Asperger RG, Sattler RE, Tolonen WJ, Pitchford AC (1981) Prediction of wax buildup in 24 inch. Cold Deep Sea Oil Loading Line, USMS 10363
Bilderback CA, McDougall LA (1963) Complete paraffin control in petroleum production. SPE J Pet Technol 21:1151–1156
Botne KK (2011) Modeling wax deposition with deposition-release models, Specialization Project. Department of Petroleum Engineering and Applied Geophysics, Norwegian University of Science and Technology, Trondheim, pp 38
Edmonds B, Moorwood T, Szczepanski R, Zhang X (2008) Simulating wax deposition in pipelines for flow assurance. Energy Fuels 22:729–741
Farina A, Fasano A (1997) Flow characteristics of waxy crude oils in laboratory experimental loops. Math Comput Model 25:75–86
Feili Monfared AE, Ranjbar M, Nezamabadi-Pour, Schafie M, Ashena R (2010) Development of a neural fuzzy system for advanced prediction of bottom hole circulating pressure in underbalanced drilling operations. Pet Sci Tech LPET .pp 0695
Fusi L, Farina A (2004) A mathematical model for bingham-like fluids with viscoelastic core. Z Angew Math Phys 55:826–847
Fuzzy logic toolbox for use with MATLAB user guide (2007)
Gudmundsson JS (2010) Flow assurance, solids in oil and gas production (first draft). Department of Petroleum Engineering and Applied Geophysics, Norwegian University of Science and Technology, Trondheim
Halstensen M, Arvoh BK, Amundsen L, Hoffmann R (2013) Online estimation of wax deposition thickness in single-phase sub-sea pipelines based on acoustic chemometrics: a feasibility study. Fuel 105:718–727
Haq MA (1978) Deposition of Paraffin Wax from its Solution with Hydrocarbons (USMS 10541). Society of Petroleum Engineers
Hernandez OC (2002) Investigation of single-phase paraffin deposition characteristics, M.Sc. Thesis, The University of Tulsa, pp 172
Hoffman R, Amundsen L (2010) Single-phase wax deposition experiments. Energy Fuels 24:1069–1080
Hoffmann R, Amundsen L, Schüller R (2011) Online monitoring of wax deposition in sub-sea pipe-lines. Meas Sci Technol 22(075701):13
Jang JSR (1993) ANFIS: Adaptive-network-based fuzzy inference system. IEEE Trans Syst Man Cyber 23:665–685
Lira-Galeana C, Firoozabadi A, Prausnitz JM (1996) Thermodynamics of wax precipitation in petroleum mixtures. AIChE J 42:239–248
Lund HJ (1998)Investigation of Paraffin Deposition During Single Phase Flow in Pipelines. M.Sc. Thesis, The University of Tulsa, pp 158
Mamdani E, Assilian S (1975) An experiment in linguistic synthesis with a fuzzy logic controller. Int J Man Mach Stud 7:1–13
Ramirez-Jaramillo E, Lira-Galeana C, Manero O (2001) Numerical simulation of wax deposition in oil pipeline systems. Petrol Sci Technol 19:143–156
Ramirez-Jaramillo E, Lira-Galeana C, Manero O (2004) Modeling wax deposition in pipelines. Petrol Sci Technol 22:821–861
Reistle CEJ (1928) Methods of dealing with paraffin troubles encountered in producing crude oils. USBM Technical Papers
Reistle CEJ (1932) Paraffin and congealing oil problems. USBM Bulletins
Rosvold K (2008) Wax deposition models. M.Sc. Thesis, Department of Petroleum Engineering and Applied Geophysics, Norwegian University of Science and Technology, Trondheim, pp 104
Smith PB, Ramsden RMJ (1978) The prediction of oil gelation in submarine pipelines and the pressure required for restarting flow. In: European Offshore Petroleum Conference and Exhibition. European Offshore Petroleum Conference and Exhibition, London
Solaimany Nazar AR, Dabir B, Islam MR (2005) A multi-solid phase thermodynamic model for predicting wax precipitation in petroleum mixtures. Energy Sources 27:173–184
Takagi T, Sugeno M (1985) Fuzzy identification of systems and its applications to modeling and control. IEEE Trans Syst Man Cybern 15:116–132
Venkatesan R (2004)the deposition and rheology of organic gels. Doctoral Thesis in Chemical Engineering, The University of Michigan, pp 225
Wuhua C, Zongchang Z (2006) Thermodynamic modeling of wax precipitation in crude oils. Chin J Chem Eng 14:685–689
Zadeh LA (1984) Making computers think like people. IEEE Spectr 8:26–32
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution License which permits any use, distribution, and reproduction in any medium, provided the original author(s) and the source are credited.
About this article
Cite this article
Jalalnezhad, M.J., Kamali, V. Development of an intelligent model for wax deposition in oil pipeline. J Petrol Explor Prod Technol 6, 129–133 (2016). https://doi.org/10.1007/s13202-015-0160-3
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s13202-015-0160-3