Skip to main content

An artificial neural network visible mathematical model for predicting slug liquid holdup in low to high viscosity multiphase flow for horizontal to vertical pipes

Abstract

Slug liquid holdup (SLH) is a critical requirement for accurate pressure drop prediction during multiphase pipe flows and by extension optimal gas lift design and production optimization in wellbores. Existing empirical correlations provide inaccurate predictions because they were developed with regression analysis and data measured for limited ranges of flow conditions. Existing SLH machine learning models provide accurate predictions but are published without any equations making their use by other researchers difficult. The only existing ML model published with actual equations cannot be considered optimum because it was selected by considering artificial neural network (ANN) structures with only one hidden layer. In this study, an ANN-based model for SLH prediction with actual equations is presented. A total of 2699 data points randomly divided into 70%, 15%, and 15% for training, validation, and testing was used in constructing 71 different network structures with 1, 2, and 3 hidden layers respectively. Sensitivity analysis revealed that the optimum network structure has 3 hidden layers with 20, 5, and 15 neurons in the first, second, and third hidden layers, respectively. The optimum network structure was translated into actual equations with the aid of the weights, biases, and activation functions. Trend analysis revealed that this study’s model reproduced the expected effects of inputs on SLH. Test against measured data revealed that this study’s model is in agreement with measured data with coefficient of determinations of 0.9791, 0.9727, 0.9756, and 0.9776 for training, testing, validation, and entire datasets, respectively. Comparative study revealed that this study’s model outperformed existing models with a relative performance factor of 0.002. The present model is presented with visible mathematical equations making its implementation by any user easy and without the need for any ML framework. Unlike existing ANN-based models developed with one hidden layered ANN structures, the present model was developed by considering ANN structures with one, two, and three hidden layers, respectively.

Introduction

Multiphase flow in pipes is the simultaneous flow of more than one phase in pipes [1] and is commonly encountered in the petroleum production, drilling, processing, and transportation systems [2, 3]. Multiphase flow modeling is more complex than single-phase flow modeling due to the difficulty in identifying flow patterns present during multiphase flow [4].

Flow patterns that have been reported in the literature for vertical-upward flow [5] and inclined-upward flow [6] include dispersed bubble, slug, churn, and annular flow patterns. Some investigators combined the slug and churn flow into a flow pattern referred to as an intermittent flow pattern [7]. Flow patterns reported for horizontal flow include intermittent, stratified-smooth, stratified-wave, dispersed bubble, and annular flow patterns [8]. Annular, slug, and dispersed bubble flow patterns have been observed for vertical downward flow [9], while stratified wave flow pattern has been observed as the dominant flow pattern for inclined downward flow [10].

Slug flow is one of the dominant flow patterns encountered during the multiphase flow of oil and gas in pipelines and wellbores [11] and occurs over a wide range of flow conditions. Slug flow is characterized by a series of slug units with each unit consisting of a Taylor bubble, thin liquid film, and liquid slug [12]. Slug flow develops when gas rate in the bubble flow regime is increased to a point where the bubbles become closely packed and start coalescing into larger bullet sharped bubbles called Taylor bubbles [5]. The Taylor bubbles eventually occupy the entire pipe cross section as the coalescence continues [13]. The formed Taylor bubbles are separated from the pipe wall by a thin film of liquid flowing downward relative to the Taylor bubbles. The liquid slug, carrying dispersed bubbles shed from the tail of the leading Taylor bubble [13], bridges the pipe and separates two consecutive Taylor bubbles [12]. The Taylor bubbles and small bubbles in the liquid slug in inclined pipes tend to accumulate near the upper part of the pipe section due to buoyancy resulting in a nonuniform film thickness profile across the pipe section [14].

Slug liquid holdup (SLH) is one of the critical slug flow closure correlations required for accurate prediction of pressure drop during slug flow and by extension optimal tubing design [15] and production optimization in wellbores. Other slug flow closure relationships include translational velocity and slug length [11, 16]. Comparative performance analysis of models for predicting pressure drop in vertical wells conducted by Nwanwe and Duru [17] revealed that empirical correlations outperformed mechanistic models. Further investigation revealed that pressure drop is severely under-predicted whenever slug flow pattern is predicted by these mechanistic models. It follows therefore that this severe underprediction of pressure drop is due to severe underprediction of the closure relationships of the slug flow model of these mechanistic models. SLH is the slug flow closure correlation of focus for the current study.

The models developed over the years for the prediction of SLH can be categorized as empirical correlations [18,19,20,21,22,23,24], semi-mechanistic models [25, 26], mechanistic models [27, 28], and most recently machine learning models [29, 30]. All these SLH models with the exception of the machine learning models were developed with the aid of regression analysis-based laboratory dataset measured for narrow range flow conditions. These models are applicable for either low viscosity slug flow conditions [18, 23, 31,32,33], high viscosity horizontal slug flow conditions [20, 21, 24], high viscosity vertical slug flow conditions [34], high viscosity horizontal to vertical slug flow conditions [19], or low viscosity to high viscosity horizontal to vertical slug flow conditions [30].

In this study, a literature review conducted identified some issues with existing models for predicting SLH during multiphase flow in pipes. First, existing SLH empirical correlations, semi-mechanistic models, and mechanistic models have failed to produce accurate SLH predictions. This is because these correlations and models were developed using regression analysis which is incapable of adequately capturing the nonlinearity between the independent variables and dependent variable. In addition, none of these correlations and models was developed with data measured for low to high viscosity horizontal to vertical upward flow conditions. Hence, these correlations and models failed when applied to flow conditions different from those employed in their formulation. Second, to the authors’ knowledge, the Abdul-Majeed et al. model [30] is the only SLH model developed with artificial neural network (ANN) and with data measured for low viscosity to high viscosity horizontal to vertical slug flow conditions. However, in selecting the optimum network structure, the authors [30] only considered a network structure with a single hidden layer (HL). They used a program that performed checks on the number of neurons and their weights in the single HL and then selected the network structure with the lowest mean square error as optimum. The structure selected by these authors as optimum contains 11 neurons in the single HL. This selected network structure cannot be considered as optimum because the authors only considered one HL in their selection. ANN and adaptive neuro-fuzzy inference system (ANFIS) has been used to solve complex problems in the petroleum industry, but only few of these studies have developed and presented as a visible mathematical model [35,36,37,38].

In the present study, a slug liquid holdup artificial neural network visible mathematical model (SLH-ANN-VMM) applicable for low to high viscosity horizontal to vertical upward pipe flow conditions is proposed. A dataset consisting of 2699 data points collected from open source [39] was used for the model development. A total of 70% of the dataset was used for training and 15% for testing and validation respectively. The training dataset was transformed into four dimensionless numbers [40] and an inclination angle. This was followed by the application of the dimensionless transformation to the testing and validation datasets. The entire dataset was used in the construction of 71 different network structures with each structure having either 1, 2, or 3 HLs with varying numbers of neurons in each HL. Sensitivity analysis was performed for the 71 network structures, and the optimum network structure selected was based on three statistical performance indicators, namely correlation coefficient, mean square error, and relative performance factor. A structure is considered optimum if it achieved best performance with respective to two or all three statistical performance indicators. The network structure selected as optimum in this study contains 20 neurons in the first HL, 5 in the second HL, and 15 in the third HL. The trained SLH-ANN black-box model (BBM) was translated into a SLH-ANN-VMM with the aid of the extracted tuned biases and weights and the activation functions. The SLH-ANN-VMM was also written in a MATLAB code. Three evaluation tests were performed. First, trend analysis revealed that the proposed SLH-ANN-VMM produced the expected effect of various independent variables on the SLH. Second, the test against measured dataset revealed that the SLH predicted by the proposed SLH-ANN-VMM is in close agreement with the measured SLH. Third, the comparative study revealed that the proposed SLH-ANN-VMM outperformed existing SLH models.

Methods

Data collection and description

Openly sourced datasets consisting of 2669 data points collected from 23 different studies and published as an open source Mendeley Data [39] were used in developing the proposed slug liquid holdup artificial neural network visible mathematical model (SLH-ANN-VMM). The dataset is made of seven input variables and one output variable. The input variables include superficial gas velocity (\({V}_{SG}\)), superficial liquid velocity (\({V}_{SL}\)), liquid viscosity (\({\mu }_{L}\)), internal diameter of pipe (d), liquid density (\({\rho }_{L}\)), inclination angle (\(\theta\)), and surface tension (\({\sigma }_{L}\)). The slug liquid holdup (\({H}_{LS}\)) is the output variable. Description of the entire dataset employed in the present is as shown in Table 1.

Table 1 Description of the entire dataset (2699 data points) employed in the present study

Data preprocessing

Abdul-Majeed et al. [30] demonstrated based on measured data that SLH, \({H}_{LS}\), is strongly affected by superficial gas velocity, \({V}_{SG}\), superficial liquid velocity, \({V}_{SL}\), liquid viscosity, \({\mu }_{L}\), pipe internal diameter, d, pipe inclination angle, \(\theta\), and surface tension, \({\sigma }_{L}\), respectively. The authors went further to develop a single hidden layer ANN-VMM for \({H}_{LS}\) prediction as function of \({V}_{SL}\), \({V}_{SG}\), \({\mu }_{L}\), d, \(\theta\), and \({\sigma }_{L}\), while liquid density, \({\rho }_{L}\), was neglected. Other authors used regression analysis to developed \({H}_{LS}\) models as function of Wallis [41] dimensionless Froude number,\({N}_{Fr}\), and viscosity number, \({N}_{\mu }\) [20, 21, 24] and \({N}_{Fr}\), and inverse of the viscosity number, \({N}_{f}\) [34], \({N}_{Fr}\), \({N}_{\mu }\), and \(\theta\) [19]. Recent studies [42, 43] revealed that the use of dimensionless numbers leads to poorer accuracy compared to using the entire set of parameters.

The use of \(\theta\) and any two of \({N}_{Fr}\), \({N}_{\mu }\) and \({N}_{f}\), accounts for all input variables used by Abdul-Majeed et al. [30] with exception of \({\sigma }_{L}\). We propose using \(\theta\) and the four dimensionless numbers as originally proposed by Ros [40] to account for the effect of all input variables including \({\sigma }_{L}\) and \({\rho }_{L}\) in training the ANN. The Ros [40] gas velocity number, liquid velocity number, pipe diameter number, and liquid viscosity number employed in this study are as given in Eqs. (1), (2), (3), and (4) in metric units respectively. The statistical analysis of the preprocessed dataset is as shown in Table 2.

Table 2 Description of the preprocessed dataset (2699 data points) employed in the present research
$${N}_{GV}=1.7964{V}_{SG}{\left(\frac{{\rho }_{L}}{{\sigma }_{L}}\right)}^{0.25}$$
(1)
$${N}_{LV}=1.7964{V}_{SL}{\left(\frac{{\rho }_{L}}{{\sigma }_{L}}\right)}^{0.25}$$
(2)
$${N}_{d}=31.664d{\left(\frac{{\rho }_{L}}{{\sigma }_{L}}\right)}^{0.5}$$
(3)
$${N}_{L}=0.55646{\mu }_{L}{\left(\frac{1}{{\rho }_{L}{{\sigma }_{L}}^{3}}\right)}^{0.25}$$
(4)

Slug liquid holdup ANN black-box model development

A total of 2699 openly sourced laboratory-measured data points were employed in the development with the SLH-ANN-BBM. First, the dataset was preprocessed by transforming the input variables in four dimensionless numbers. Second, the preprocessed dataset was divided into three different sets: 70%, 15%, and 15% for training, testing, and validation respectively. As shown in Table 3, the division of the preprocessed dataset ensured that all the parameter ranges in the testing and validation datasets were covered in the training dataset.

Table 3 Parameter ranges for the training, validation, and testing datasets employed in the present study

The optimum network structure was selected by first constructing 71 network structures as shown in column 2 of Table 4 with each structure having either 1, 2, or 3 hidden layers (HLs) with varying numbers of neurons in each HL. In addition, each HL consists of varying numbers of neurons ranging from 5 to 20 in steps of 5. As shown in Table 4, column 2, the figures after the letter “n” represent the neurons in the HLs. For example, the network structure n-10–20-5 is a 3 HL network with 10 neurons in the first HL, 20 in the second HL, and 5 in the third HL.

Table 4 Comparative performance analysis of the 71 network structures based on the entire dataset (2699 data points)

The preprocessed data points were employed in the training, testing, and validation of each of the 71 constructed network structures. We used the training dataset (1889 data points) to train each network structure until 3 basic conditions were satisfied. First, the training dataset mean square error (MSE) must be less than that of validation and testing. Second, testing and validation datasets MSE must have identical characteristics. Last, correlation coefficients must increase in the order of testing, validation, entire, and training datasets [44].

At the end of the satisfactory training of each network structure, the trained network is used in the prediction of SLH for the entire dataset (2699 data points). The predicted SLHs are then used to calculate the performance of each of the 71 satisfactorily trained network structures using 3 different statistical performance tools. The statistical performance tools include correlation coefficient, \(R\), root-mean-square error, \({E}_{rms}\), and relative performance factor, \({F}_{rp}\). \({F}_{rp}\), as defined in Eq. (5), includes the effect of six statistical errors (\({E}_{1}\), \({E}_{2}\), \({E}_{3}\), \({E}_{4}\), \({E}_{5}\), and \({E}_{6}\)) with a minimum of zero and a maximum of six representing the best and worst performance respectively. \({E}_{rms}\), as defined in Eq. (6), with the lowest and highest values indicates best and worst performance, respectively. R, as defined in Eq. (7), with the lowest and highest values represents the worst and best performance respectively.

Table 4 presents the results of the comparative performance analysis of the 71 different network structures. As shown in Table 4, the statistical error parameters \({E}_{1}\) through \({E}_{6}\) are presented in columns 3 through 8. The statistical performance tools \({E}_{rms}\) is presented in column 9, R in column 10, and \({F}_{rp}\) in column 11. The blue cells with metrics written in white represent best performance for each considered statistical error parameter or statistical performance tool. In this study, we considered a network structure to be optimum if it achieved best performance in respect to at least two of the three statistical performance tools.

As shown in Table 4, the n-20–5-15 network structure was selected as optimum because it achieved the highest value of R (0.978), lowest value of \({E}_{rms}\) (0.048), and second minimum value of \({F}_{rp}\) (0.330). Levenberg–Marquardt optimization algorithm was used in training the network, the hyperbolic tangent activation function for activating the HLs, and linear activation function for activating the output layer. As shown in Fig. 1, the optimum network consists of an input layer with 5 input variables; 3 HLs with 20, 5, and 15 neurons in the first, second, and third HLs respectively; and an output layer with 1 output variable.

$${F}_{rp}=\frac{\left|{E}_{1}\right|-\left|{E}_{{1}_{min}}\right|}{\left|{E}_{{1}_{max}}\right|-\left|{E}_{{1}_{min}}\right|}+\frac{{E}_{2}-{E}_{{2}_{min}}}{{E}_{{2}_{max}}-{E}_{{2}_{min}}}+\frac{{E}_{3}-{E}_{{3}_{min}}}{{E}_{{3}_{max}}-{E}_{{3}_{min}}}+\frac{\left|{E}_{4}\right|-\left|{E}_{{4}_{min}}\right|}{\left|{E}_{{1}_{max}}\right|-\left|{E}_{{4}_{min}}\right|}+\frac{{E}_{5}-{E}_{{5}_{min}}}{{E}_{{5}_{max}}-{E}_{{5}_{min}}}+\frac{{E}_{6}-{E}_{{6}_{min}}}{{E}_{{6}_{max}}-{E}_{6}}$$
(5)
$${E}_{rms}=\sqrt[2]{\frac{1}{n}\left({\sum }_{i=1}^{n}{{e}_{ri}}^{2}\right)}$$
(6)
$$R=\sqrt[2]{1-\left(\frac{\sum_{i=1}^{n}{e}_{i}}{\sum_{i=1}^{n}{\overline{e} }_{imeas}}\right)}$$
(7)
$${e}_{ri}=\frac{{H}_{{LSi}_{pred}}-{H}_{{LSi}_{meas}}}{{H}_{{LSi}_{meas}}}$$
(8)
$${e}_{i}={H}_{{LSi}_{pred}}-{H}_{{LSi}_{meas}}$$
(9)
$${E}_{1}=\frac{1}{n}\left({\sum }_{i=1}^{n}{e}_{ri}\right)$$
(10)
$${E}_{2}=\frac{1}{n}\left({\sum }_{i=1}^{n}\left|{e}_{ri}\right|\right)$$
(11)
$${E}_{3}={\sum }_{i=1}^{n}\sqrt[2]{\frac{{\left({e}_{ri}-{E}_{1}\right)}^{2}}{n-1}}$$
(12)
$${E}_{4}=\frac{1}{n}\left({\sum }_{i=1}^{n}{e}_{i}\right)$$
(13)
$${E}_{5}=\frac{1}{n}\left({\sum }_{i=1}^{n}\left|{e}_{i}\right|\right)$$
(14)
$${E}_{6}={\sum }_{i=1}^{n}\sqrt[2]{\frac{{\left({e}_{i}-{E}_{4}\right)}^{2}}{n-1}}$$
(15)
$${\overline{e} }_{imeas}={H}_{{LSi}_{meas}}-{\overline{H} }_{{LS}_{meas}}$$
(16)
$${\overline{H} }_{{LS}_{meas}}=\frac{1}{n}\left(\sum\nolimits_{i=1}^{n}{H}_{{LSi}_{meas}}\right)$$
(17)

where \({e}_{ri}\) is the relative error, \({e}_{i}\) is the actual error, \({E}_{1}\) is the average percent error, \({E}_{2}\) is the absolute average percent error, \({E}_{3}\) is the percent standard deviation, \({E}_{4}\) is the average error, \({E}_{5}\) is the absolute average error, \({E}_{6}\) is the standard deviation, \({\overline{e} }_{imeas}\) is the average change in measured SLH, \({\overline{H} }_{{LS}_{meas}}\) is average measured slug liquid holdup, \({H}_{{LSi}_{meas}}\) is measured liquid holdup, \({H}_{{LSi}_{pred}}\) is the predicted liquid holdup, R is the correlation coefficient, \({E}_{rms}\) is the root-mean-square error, and \({F}_{rp}\) is a relative performance factor.

Fig. 1
figure 1

Structure of the trained slug liquid holdup ANN model

Slug liquid holdup ANN visible mathematical model development

The SLH-ANN-BBM developed in the “Slug liquid holdup ANN black-box model development” section was presented without any visible mathematical equation. This will make it difficult for readers to implement the developed ANN model. There is therefore the need for a translation of the SLH-ANN-BBM into a SLH-ANN-VMM with the aid of the extracted weights and biases and the activation functions.

As already mentioned, the trained optimum ANN consist of 3 HLs with 20 neurons in the first HL, 5 neurons in the second HL, and 15 neurons in the third HL. From here, we will refer to the input layer as the first layer, first HL as second layer, second HL as third layer, third HL as fourth layer, and output layer as the fifth layer. The second, third, fourth, and fifth layers extracted biases and weights are as presented in Tables 5, 6, 7, and 8, respectively. The SLH-ANN-VMM development is described next.

Table 5 Second layer’s bias vector, \({\text{b}}^{\text{L}2}\), and weight matrix, \({\text{W}}^{\text{L}2}\), used in Eq. (19)
Table 6 Third layer’s bias vector, \({\text{b}}^{\text{L}3}\), and weight matrix, \({\text{W}}^{\text{L}3}\), used in Eq. (21)
Table 7 Fourth layer’s bias vector, \({\text{b}}^{\text{L}4}\), and weight matrix, \({\text{W}}^{\text{L}4}\), used in Eq. (23)
Table 8 Fifth layer’s bias, \({\text{b}}^{\text{L}5}\), and weight vector, \({\text{W}}^{\text{L}5}\), used in Eq. (25)

First, an input vector Y of seven variables representing the inputs \({V}_{SG}\), \({V}_{SL}\), \({\mu }_{L}\), d, \({\rho }_{L}\), \(\theta\), and \({\sigma }_{L}\) is defined. In the preprocessing step, six out of the seven input variables were transformed to dimensionless numbers: \({N}_{GV}\), \({N}_{LV}\), \({N}_{d}\), and \({N}_{L}\) with the aid of Eqs. (1), (2), (3), and (4), respectively. Similarly, in developing the ANN-VMM, the dataset is transformed to dimensionless numbers with the aid of Eqs. (1), (2), (3), and (4).

Second, the dimensionless numbers (\({N}_{GV}\), \({N}_{LV}\), \({N}_{d}\), and \({N}_{L}\)) and the angle of inclination, \(\theta\), were used as inputs in the training of the ANN. Hence, an input vector X of five variables: \({X}_{1}\), \({X}_{2}\), \({X}_{3}\), \({X}_{4}\), and \({X}_{5}\) representing the inputs \({N}_{GV}\), \({N}_{LV}\), \({N}_{d}\), \({N}_{L}\), and \(\theta\) is defined. Before training of the ANN, the default feed forward network processing function as given in Eq. (18) was used to normalize the inputs to lie between − 1 and + 1.

$${{a}^{L1}=X}_{n\left(-1:1\right)}=2\left[\frac{X-{X}_{min}}{{X}_{max}-{X}_{min}}\right]-1$$
(18)

where \({X}_{\left(-1:1\right)}\) is the input vector normalized in the range {− 1, + 1}, \({X}_{min}\) is the minimum training dataset input vector as shown in column 4 of Table 3, \({X}_{max}\) is the maximum training dataset input vector as shown in column 5 of Table 3, and \({a}^{L1}\) is the first layer’s activation vector.

Third, the second layer’s (first HL’s) net input vector, \({Z}^{L2}\), is determined as the sum of second layer’s bias vector, \({b}^{L2}\), and the product of the second layer’s weight matrix, \({W}^{L2},\) and first layer’s activation vector, \({a}^{L1}\), as defined in Eq. (19). Second layer’s bias vector, \({b}^{L2}\), and weight matrix, \({W}^{L2},\) are listed in Table 5.

$${Z}^{L2}={b}^{L2}+{W}^{L2}\cdot {a}^{L1}$$
(19)

Fourth, the second layer’s activation vector is determined to lie in the range between − 1 and + 1 by using Eq. (20), the hyperbolic tangent activation function.

$${a}^{L2}=\left(\frac{2}{1+\text{exp}(-2{Z}^{L2})}\right)-1=\text{tanh}\left({Z}^{L2}\right)$$
(20)

Fifth, the third layer’s (second HL’s) net input vector, \({Z}^{L3}\), is determined as the sum of the third layer’s bias vector, \({b}^{L3}\), and the product of the third layer’s weight matrix, \({W}^{L3}\), and the second layer’s activation vector, \({a}^{L2}\), as expressed in Eq. (21). Third layer’s bias vector, \({b}^{L3}\), and weight matrix, \({W}^{L3}\), are listed in Table 6.

$${Z}^{L3}={b}^{L3}+{W}^{L3}\cdot {a}^{L2}$$
(21)

Sixth, the third layer’s activation vector is computed to lie in the range {− 1, + 1} with the aid of Eq. (22), the hyperbolic tangent activation function.

$${a}^{L3}=\left(\frac{2}{1+\text{exp}(-2{Z}^{L3})}\right)-1=\text{tanh}\left({Z}^{L3}\right)$$
(22)

Seventh, the fourth layer’s (third HL’s) net input vector, \({Z}^{L4}\), is determined as the sum of the fourth layer’s bias vector, \({b}^{L4}\), and the product of the fourth layer’s weight matrix, \({W}^{L4},\) and the third layer’s activation vector, \({a}^{L3}\), as defined in Eq. (23). Fourth layer’s bias vector, \({b}^{L4}\), and weight matrix, \({W}^{L4}\), are listed in Table 7.

$${Z}^{L4}={b}^{L4}+{W}^{L4}\cdot {a}^{L3}$$
(23)

Eighth, the fourth layer’s activation vector is computed to lie in the range {− 1, + 1} with the aid of Eq. (24), the hyperbolic tangent activation function.

$${a}^{L4}=\left(\frac{2}{1+\text{exp}(-2{Z}^{L4})}\right)-1=\text{tanh}\left({Z}^{L4}\right)$$
(24)

Ninth, the fifth layer’s (output layer’s) net input, \({Z}^{L5}\), is determined as the sum of the fifth layer’s bias, \({b}^{L5}\), and the product of the fifth layer’s weight vector, \({W}^{L4},\) and the fourth layer’s activation vector, \({a}^{L4}\), as defined in Eq. (25). Fifth layer’s bias, \({b}^{L5}\), and weight vector, \({W}^{L5}\), are listed in Table 8.

$${Z}^{L5}={b}^{L5}+{W}^{L5}\cdot {a}^{L4}$$
(25)

Tenth, the fifth layer’s (output layer’s) net input vector, \({Z}^{L5}\), is denormalized with the aid of Eq. (26) to produce the output (slug liquid holdup).

$${H}_{LS}=\frac{\left({Z}^{L5}+1\right)}{2}\left({H}_{LSmax}-{H}_{LSmin}\right)+{H}_{LSmin}$$
(26)

where \({H}_{LS}\) is the predicted slug liquid holdup, \({Z}^{L5}\) is the fifth layer’s (output layer’s) net input, \({H}_{LSmax}\) is the maximum value of training dataset slug liquid holdup equal to 1.0 as shown in column 5, row 8 of Table 3, and \({H}_{LSmin}\) is the minimum value of the training dataset slug liquid holdup equal to 0.164 as shown in column 4, row 8 of Table 3.

The flow chart for predicting of SLH with the proposed SLH-ANN-VMM is as shown in Fig. 2. In addition, a MATLAB code of the proposed SLH-ANN-VMM is presented in Appendix Table 13.

Fig. 2
figure 2

Flow chart for the predicting of slug liquid holdup with the proposed SLH-ANN-VMM

Results and discussion

Three important tests were performed to evaluate the proposed SLH-ANN-VMM. These tests include trend analysis, test against measured dataset, and comparison against best available models.

Trend analysis of the SLH-ANN-VMM based on synthetic slug flow dataset

We conducted a trend analysis to confirm whether the proposed SLH-ANN-VMM reproduced the expected effect of each input variable on the SLH. First, seven different synthetic datasets were generated. Each synthetic dataset was generated by varying one input and keeping the other inputs constant. The constant inputs used in the synthetic datasets generation are as defined in Table 1, column 6. Second, the proposed SLH-ANN-VMM and the best available SLH-ANN-VMM [30] were used to predict the SLH for each of the seven synthetic datasets. Third, plot of each of the varied input parameter against the SLH is made.

Figure 3 shows the effect of superficial gas velocity (SGV) on slug liquid holdup (SLH). Generally, an increase in SGV results in a decrease in SLH. This is because increasing the SGV will sweep out most of the liquid phase from the pipe resulting in more of the pipe cross section occupied by the gas phase [45]. This of course will result in an increase in the gas void fraction and a corresponding decrease in the SLH. Hence, as shown in Fig. 3, the proposed SLH-ANN-VMM and Abdul-Majeed et al. SLH-ANN-VMM [30] simulate the expected decrease in SLH with an increase in superficial gas velocity.

Fig. 3
figure 3

Effect of superficial gas velocity on slug liquid holdup

Figure 4 shows the effect of superficial liquid velocity (SLV) on SLH. Generally, an increase in SLV results in a slight increase in SLH because of an increase in the pipe’s input liquid content [19]. Hence, as evident in Fig. 4, the proposed SLH-ANN-VMM and Abdul-Majeed et al. SLH-ANN-VMM [30] simulate the expected slight increase in SLH with an increase in SLV.

Fig. 4
figure 4

Effect of superficial liquid velocity on slug liquid holdup

Figure 5 shows the effect of liquid viscosity (LV) on SLH for medium to high LV. It has been reported in several experimental studies [20, 24, 34, 45] that for medium to high LV, SLH increases with an increase in LV. This is because an increase in LV will increase both the shear around the pipe wall and resistance of liquid flow which will result in an increase in SLH. It is therefore evident from Fig. 5 that for medium to high LV, the proposed SLH-ANN-VMM simulates the expected increase in SLH with an increase in LV. However, the Abdul-Majeed et al. SLH-ANN-VMM [30] did not simulate the expected effect of LV on SLH.

Fig. 5
figure 5

Effect of liquid viscosity on slug liquid holdup for medium to high liquid viscosity

Figure 6 shows the effect of LV on SLH for low LV. The dual effect of LV on SLH has been reported in several studies [46,47,48]. These researchers observed that SLH decreased with an increase in LV for LV, \({\mu }_{L}\le 3 mPas\), and increased with increase in LV for LV, \({\mu }_{L}>3\) mPas. For \({\mu }_{L}\le 3\) mPas, the low drag forces contribute to a more uniform bubble distribution which of course results in decrease SLH. For \({\mu }_{L}>3\) mPas, the large drag forces contribute to bubble coalescence which results in an increase in SLH. It is evident from Fig. 6 that the proposed SLH-ANN-VMM and Abdul-Majeed et al. SLH-ANN-VMM [30] do not simulate the dual effect of LV on SLH. Instead, SLH was observed to increase slightly with an increase LV for both models which is in agreement with the observations of several authors [46,47,48] for LV, \({\mu }_{L}>3\) mPas.

Fig. 6
figure 6

Effect of liquid viscosity on slug liquid holdup for low liquid viscosity

Figure 7 shows the effect of pipe internal diameter (PID) on SLH. It has been reported in several studies [11, 28, 49, 50] that SLH increases slightly with an increase in PID. This increase in SLH with an increase in PID is because of the increase in bubble rise velocity with an increase in PID [51]. It is evident from Fig. 7 that the proposed SLH-ANN-VMM simulates the expected increase in SLH with an increase in PID. It is also evident from Fig. 7 that the Abdul-Majeed et al. SLH-ANN-VMM [30] did not simulate the expected increase of SLH with PID.

Fig. 7
figure 7

Effect of pipe internal diameter on slug liquid holdup

Figure 8 shows the effect of pipe inclination angle (PIA) on SLH. It has been observed based on experimental data that SLH decreases with an increase in PIA with a maximum value for horizontal flow and minimum for vertical upward flow [33]. This observed decrease in SLH with an increase PIA has been confirmed in some studies [11, 52]. As shown in Fig. 8, the proposed SLH-ANN-VMM and Abdul-Majeed et al. SLH-ANN-VMM [30] simulate the expected decrease in SLH with an increase of PIA up to 30° and 15° respectively.

Fig. 8
figure 8

Effect of pipe angle of inclination on slug liquid holdup

Figure 9 shows the effect of surface tension (ST) on SLH. It is expected that SLH increases with increase in ST. This is because increase in ST promotes increase in bubble rise velocity which results in an increase in SLH [19]. As evident in Fig. 9, the proposed SLH-ANN-VMM and the Abdul-Majeed et al. SLH-ANN-VMM [30] simulate the expected increase in SLH with increase in ST.

Fig. 9
figure 9

Effect of surface tension on slug liquid holdup

Test of the SLH-ANN-VMM against measured slug flow dataset

In this section, we tested the prediction accuracy of the trained optimum network structure against laboratory-measured slug flow dataset. This was done by using the trained optimum network to predict the SLH based on the training, testing, validation, and entire datasets respectively. Next, measured and predicted SLH cross-plots with unit slope and trend lines are used to evaluate the accuracy of the developed model. In addition,the coefficient of determination (R-squared) is included in the cross-plot.

We considered the developed model accurate and in agreement with measured dataset if the two conditions are satisfied. First, majority of the cross-plots must be clustered close to the unit slope line. Second, the coefficient of determination must increase in the order of testing, validation, entire, and training datasets.

As shown in Figs. 10, 11, 12, and 13, majority of the cross-plots are clustered close to the unit slope line with a coefficient of determinations of 0.9791, 0.9727, 0.9756, and 0.9776 for training, testing, validation, and entire datasets respectively. Notice that the coefficient of determination increases in the order of testing, validation, entire, and training datasets. This clearly shows that the two conditions are satisfied, and hence, the proposed SLH-ANN-VMM predictions are in close agreement with measured SLH.

Fig. 10
figure 10

Measured and predicted SLH cross-plots for the training dataset (1889 data points)

Fig. 11
figure 11

Measured and predicted SLH cross-plots for the testing dataset (405 data points)

Fig. 12
figure 12

Measured and predicted SLH cross-plots for the validation dataset (405 data points)

Fig. 13
figure 13

Measured and predicted SLH cross-plots for the entire dataset (2669 data points)

Comparison of SLH-ANN-VMM against existing correlations and models

The 2699 laboratory-measured slug flow data points were used for comparing the performance of the present model against that of 8 available SLH correlations [18,19,20,21, 23, 24, 31, 34] and 1 machine learning model [30]. Statistical and graphical error analyses were employed for the comparative study.

Statistical error analysis

Statistical error analysis was employed in this study in comparing the proposed SLH-ANN-VMM against eight existing SLH correlations and the only existing SLH-ANN-VMM. To demonstrate the robustness of the proposed SLH-ANN-VMM, four different comparative studies were performed. First, the proposed SLH-ANN-VMM was compared against horizontal, vertical, and inclined SLH models based on slug flow dataset measured for horizontal, vertical, and inclined slug flow conditions respectively. Second, the proposed SLH-ANN-VMM was compared against the existing SLH models based on the slug flow dataset measured for horizontal to vertical slug flow conditions.

Relative performance factor, \({F}_{rp}\), as given in Eq. (5) was chosen as the statistical performance indicator for the comparative study because it includes the effect of six statistical errors (\({E}_{1}\), \({E}_{2}\), \({E}_{3}\), \({E}_{4}\), \({E}_{5}\), and \({E}_{6}\)) given in Eq. (10) through (15). Relative performance factor, \({F}_{rp}\), ranges from 0 to 6 for best and worst performance respectively.

Tables 9, 10, and 11 summarized the results of the statistical-based comparative performance analysis for the proposed SLH-ANN-VMM and existing horizontal, vertical, and inclined SLH models based slug flow dataset measured for horizontal, vertical, and inclined slug flow conditions respectively. Table 12 summarizes the results of the statistical-based comparative performance analysis for the proposed SLH-ANN-VMM, eight existing SLH correlations, and the only existing SLH-ANN-VMM.

Table 9 Statistical-based comparative performance analysis for the proposed SLH-ANN-VMM and 7 existing horizontal SLH models based on laboratory-measured horizontal slug flow dataset (1413 data points) [18,19,20,21, 23, 24, 30]
Table 10 Statistical-based comparative performance analysis for the proposed SLH-ANN-VMM and 4 existing vertical SLH models based on laboratory-measured vertical slug flow dataset (260 data points) [19, 30, 31, 34]
Table 11 Statistical-based comparative performance analysis for the proposed SLH-ANN-VMM and 3 existing inclined SLH models based on laboratory-measured inclined slug flow dataset (1026 data points) [18, 19, 30]
Table 12 Statistical-based comparative performance analysis for the proposed SLH-ANN-VMM and 9 existing SLH models based on the laboratory-measured horizontal to vertical slug flow dataset (2669 data points) [18,19,20,21, 23, 24, 30, 31, 34]

The different models are defined in column 2, while the statistical error parameters, \({E}_{1}\), through \({E}_{6}\) are defined in columns 3 through 8. Relative performance factor, \({F}_{rp}\), is defined in column 9 for Tables 9, 10, 11, 12. The cells in blue represent the lowest values of each of the six statistical error parameters and the relative performance factor. Furthermore, the models are arranged for convenience in order of increasing the relative performance factor. As already mentioned, relative performance factor, \({F}_{rp}\), was chosen as the satistical performance indicator for the comparative study because it incorporates the effects of \({E}_{1}\), \({E}_{2}\), \({E}_{3}\), \({E}_{4}\), \({E}_{5}\), and \({E}_{6}\). The best-performing model must achieve the minimum of value of \({F}_{rp}\), while the worst performing must achieve the maximum value of \({F}_{rp}\).

As presented in Tables 9, 10, and 11, this study’s SLH-ANN-VMM outperformed existing horizontal, vertical, and inclined SLH models with minimum \({F}_{rp}\) of 0.000, 0.000, and 0.006, respectively. Overall as evident in Table 12, this study’s SLH-ANN-VMM achieved the best performance with minimum \({F}_{rp}\) of 0.002, while the Abdul-Majeed (2000) model achieved the worst performance with maximum \({F}_{rp}\) of 5.060.

The performance of the SLH models decreases in the order of this study’s SLH-ANN-VMM, Abdul-Majeed et al. [30], Abdul-Majeed and Al-Mashat [19], Sylvester [31], Gregory et al. [23], Kora et al. [24], Archibong-Eso et al. [21], Al-Safran et al. [20], Al-Ruhaimani et al. [34], and Abdul-Majeed [18] models, respectively.

Graphical error analysis

Cross-plots

Figure 14 shows the cross-plots of the measured SLH and predicted SLH by the proposed SLH-ANN-VMM, the eight existing SLH correlations, and an existing SLH-ANN-VMM. First, we constructed the cross-plots of the measured SLH against the SLH predicted by each of the considered models. Second, unit slope line representing a line of perfect correlation is included in the plot. Third, deviation lines of + 20% and − 20% are included to represent lines of model overprediction and underprediction respectively. We will consider a model to be best performing if majority of its cross-plots are (1) clustered in very close proximity to the unit slope line and (2) within the + 20% and − 20% deviation lines.

Fig. 14
figure 14

Measured SLH and predicted SLH cross-plots for the proposed SLH-ANN-VMM, the eight existing SLH correlations, and an existing SLH-ANN-VMM

As shown in Fig. 14, the proposed SLH-ANN-VMM have the majority of its cross-plots clustered in very close proximity to the unit slope line and within the + 20% and − 20% deviation lines. This a clear indication that the proposed SLH-ANN-VMM achieved the best performance. The Abdul-Majeed et al. SLH-ANN-VMM [30] achieved the second best performance with the second highest number of cross-plots clustered in very close proximity in the unit slope line and within the + 20% and − 20% deviation lines. The Abdul-Majeed correlation [18] achieved the worst performance since only very few of the cross-plots are clustered in close proximity to the unit slope line and within the + 20% and − 20% deviation lines.

As shown in Fig. 14, we observed that the Abdul-Majeed and Al-Mashat correlation [19] produced negative values of SLH for some data points measured for low viscosity horizontal to near-horizontal flow conditions. These negative values of SLH are because we applied their correlation to flow conditions different from those used in its formulation. Note that the Abdul-Majeed and Al-Mashat correlation [19] was developed with data measured for high viscosity horizontal to vertical upward flow conditions. This a clear prove that these correlations fail when applied to flow conditions different from those used in their formulation.

Residual plots

Figure 15 shows the residual plots of the proposed SLH-ANN-VMM, eight existing SLH correlations, and an existing SLH-ANN-VMM. We constructed the residual plots by plotting the number of data point against the actual error (Eq. (9)) achieved by each of the considered model.

Fig. 15
figure 15

Residual plots for the proposed SLH-ANN-VMM, the eight existing SLH correlations, and an existing SLH-ANN-VMM

Second, a zero actual error line is included to represent a perfect agreement between the measured SLH and SLH predicted by the considered models. Third, + 0.1 and − 0.1 actual error lines are also included to represent lines of model overprediction and underprediction, respectively. We considered a model to be best performing if majority of the residual plots are (1) clustered in close proximity to the zero actual error line and (2) within the + 0.1 and − 0.1 actual error lines.

As shown in Fig. 15, the proposed SLH-ANN-VMM achieved the best performance with the majority of the residual plot points clustered in very close proximity to the zero actual error line and within the + 0.1 and − 0.1 actual error lines. The Abdul-Majeed et al. SLH-ANN-VMM [30] achieved the second best performance with the second highest number of residual plots clustered in very close proximity to the zero actual error line and within the + 0.1 and − 0.1 actual error lines. The Abdul-Majeed [18] achieved the worst performance since only very few of the residual plots are clustered in very close proximity to the unit slope line and within the + 0.1 and − 0.1 actual error lines.

This study’s SLH-ANN-VMM outperformed the existing SLH models for several reasons. First, the ANN model was developed with dataset measured for low to high viscosity horizontal to vertical-upward flow conditions. Second, the model was developed with ANN which is capable of mapping the nonlinearity between the inputs and output better than regression analysis. Lastly, the optimum ANN network structure was obtained by selecting the best-performing network structure from a group of structures constructed with one, two, or three HLs with varying numbers of neurons in each HL.

Conclusions and recommendations

Conclusions

This study developed slug liquid holdup artificial neural network visible mathematical model (SLH-ANN-VMM) applicable for low to high viscosity horizontal to vertical upward flow conditions. Openly sourced datasets consisting of 2669 data points were used in the construction of 71 different network structures with each structure having either 1, 2, or 3 HLs with varying number of neurons in each HL. Levenberg–Marquardt optimization algorithm was used in training the network, hyperbolic tangent activation function for activating the HLs, and linear activation function for activating the output layer. Comparative performance analysis revealed that the optimum network structure has 20 neurons in the first HL, 5 neurons in the second HL, and 15 neurons in the third HL. The trained SLH-ANN black-box model was translated into a SLH-ANN-VMM with the aid of the extracted biases and weights and the activation functions. Trend analysis revealed that the proposed SLH-ANN-VMM reproduced the expected effects of the various inputs on SLH. Test against measured dataset revealed that the SLHs predicted by the proposed SLH-ANN-VMM are in close agreement with the measured SLHs with the coefficient of determination of 0.9791, 0.9727, 0.9756, and 0.9776 for training, testing, validation, and entire datasets, respectively. Comparative study revealed that the current SLH-ANN-VMM outperformed existing horizontal, vertical, and inclined SLH models with minimum \({F}_{rp}\) of 0.000, 0.000, and 0.006, respectively. Comparative study revealed that the proposed SLH-ANN-VMM with a minimum relative performance factor of 0.002 outperformed eight existing SLH empirical correlations and an existing single hidden layered SLH-ANN-VMM.

The findings of this study have added to the existing knowledge in several areas. This study developed an ANN-based model for multiphase SLH prediction for low to high liquid viscosity in horizontal to vertical-upward multiphase pipe flows. The present model was developed and published as visible mathematical equations making its implementation by any user easy and without the need for any ML framework. Unlike existing ANN models that were developed by considering only ANN structures with one hidden layer (HL), the present model was developed by considering ANN structures with one, two, and three HLs. Evaluation results revealed that the developed model predicted SLH better than the best available SLH models and simulated expected effects of inputs on SLH. A user-friendly MATLAB code for SLH prediction is also presented in this study. The code can easily be incorporated into existing mechanistic models for accurate FBHP prediction.

Recommendations

It is recommended that the proposed SLH-ANN-VMM be used for data points whose parameter ranges are within the minimum and maximum parameter ranges as defined in columns 4 and 5 of Table 1. Slug liquid holdup is one of the critical slug parameters required for accurate prediction of pressure drop during slug flow in pipes. It is therefore recommended that dataset for the other slug flow closure correlations be collected and used to develop an ANN visible mathematical model for the prediction of each of the other slug flow closure correlations.

Availability of data and materials

The datasets used and/or analyzed during the current study are available from the corresponding author on reasonable request.

Abbreviations

\({H}_{LS}\) :

Slug liquid holdup

\({H}_{LF}\) :

Film liquid holdup

\({V}_{SL}\) :

Superficial liquid velocity

\({V}_{SG}\) :

Superficial gas velocity

\({V}_{M}\) :

Mixture velocity

\({E}_{1}\) :

Average percent error, %

\({\mu }_{L}\) :

Liquid viscosity

\({\mu }_{g}\) :

Gas viscosity

\(\theta\) :

Pipe inclination angle

\({\theta }_{R}\) :

Is the inclination angle from the horizontal in radians

\({N}_{{Re}_{SL}}\) :

Slug Reynold’s number

\({V}_{T}\) :

Translational velocity

\({E}_{2}\) :

Absolute average percent error, %

\({V}_{BR}\) :

Bubble rise velocity

\({d}_{b}\) :

Bubble diameter

\(d\) :

Pipe internal diameter

\({\sigma }_{L}\) :

Surface tension

\({E}_{3}\) :

Percent standard deviation, %

\({\rho }_{L}\) :

Liquid density

\({\rho }_{G}\) :

Gas density

\({e}_{i}\) :

Actual error

\(\Delta \rho\) :

Change in density

\({e}_{ri}\) :

Relative error

R:

Correlation coefficient

\({E}_{rms}\) :

Root-mean-square error

\({F}_{rp}\) :

Relative performance factor

\({N}_{Fr}\) :

Wallis (1969) dimensionless Froude number

\({N}_{\mu }\) :

Viscosity number

\({N}_{f}\) :

Inverse of the viscosity number

\({N}_{LV}\) :

Liquid velocity number

\({E}_{4}\) :

Average error

\({N}_{GV}\) :

Gas velocity number

\({N}_{d}\) :

Pipe diameter number

\({N}_{L}\) :

Liquid viscosity number

\({E}_{5}\) :

Absolute average error

\({\overline{H} }_{{LS}_{meas}}\) :

Average measured slug liquid holdup

\({H}_{{LSi}_{meas}}\) :

Measured liquid holdup

\({H}_{{LSi}_{pred}}\) :

Predicted liquid holdup

\({E}_{6}\) :

Standard deviation

\(\Delta {\overline{e} }_{imeas}\) :

Average change in measured liquid holdup

\(X\) :

Input vector of five variables

\({X}_{\left(-1:1\right)}\) :

Input vector normalized in the range {− 1, + 1}

\({X}_{min}\) :

Minimum training dataset input vector as shown in column 4 of Table 3

\({X}_{max}\) :

Maximum training dataset input vector as shown in column 5 of Table 3

\({Z}^{L2}\), \({Z}^{L3}\), \({Z}^{L4}\), \({Z}^{L5}\) :

Net input vector into the second, third, fourth, and fifth layers, respectively

\({b}^{L2}\),\({b}^{L3}\), \({b}^{L4}\), \({b}^{L5}\) :

Bias vector of the second, third, fourth, and fifth layers, respectively

\({a}^{L1}\), \({a}^{L2}\), \({a}^{L3}\), \({a}^{L4}\) :

Activation vector of the second, third, and fourth layers, respectively

\({W}^{L2}\), \({W}^{L3}\), \({W}^{L4}\), \({W}^{L5}\) :

Weight matrix of the second, third, fourth, and fifth layers, respectively

ML:

Machine learning

ANN:

Artificial neural network

SLH:

Slug liquid holdup

VMM:

Visible mathematical model

References

  1. Kanin EA, Osiptsov AA, Vainshtein AL, Burnaev EV (2019) A predictive model for steady-state multiphase pipe flow: machine learning on lab data. J Pet Sci Eng 180:727–746. https://doi.org/10.1016/j.petrol.2019.05.055

    Article  Google Scholar 

  2. Kaya AS, Sarica C, Brill JP (1999) Comprehensive Mechanistic Modeling of Two-Phase Flow in Deviated Wells. SPE Annual Technical Conference and Exhibition, Houston, Texas, 3-6 October 1999. https://doi.org/10.2118/56522-MS

  3. Kaya AS, Sarica C, Brill JP (2001) Mechanistic modeling of two-phase flow in deviated wells. SPE Prod Facil 16:156–165. https://doi.org/10.2118/72998-PA

    Article  Google Scholar 

  4. Dukler AE, Hubbard MG (1975) A model for gas–liquid slug flow in horizontal and near horizontal tubes. Ind Eng Chem Fundam 14:337–347. https://doi.org/10.1021/i160056a011

    Article  Google Scholar 

  5. Taitel Y, Bornea D, Dukler AE (1980) Modelling flow pattern transitions for steady upward gas-liquid flow in vertical tubes. AIChE J 26:345–354. https://doi.org/10.1002/aic.690260304

    Article  Google Scholar 

  6. Barnea D, Shoham O, Taitel Y, Dukler AE (1985) Gas-liquid flow in inclined tubes: flow pattern transitions for upward flow. Chem Eng Sci 40:131–136. https://doi.org/10.1016/0009-2509(85)85053-3

    Article  Google Scholar 

  7. Petalas N, Aziz K (2000) Mechanistic model for multiphase flow in pipes. J Can Pet Technol 39:43–55. https://doi.org/10.2118/00-06-04

    Article  Google Scholar 

  8. Taitel Y, Dukler AE (1976) A model for predicting flow regime transitions in horizontal and near horizontal gas-liquid flow. AIChE J 22:47–55. https://doi.org/10.1002/aic.690220105

    Article  Google Scholar 

  9. Barnea D, Shoham O, Taitel Y (1982) Flow pattern transition for vertical downward two phase flow. Chem Eng Sci 37:741–744. https://doi.org/10.1016/0009-2509(82)85034-3

    Article  Google Scholar 

  10. Barnea D, Shoham O, Taitel Y (1982) Flow pattern transition for downward inclined two phase flow; Horizontal to vertical. Chem Eng Sci 37:735–740. https://doi.org/10.1016/0009-2509(82)85033-1

    Article  Google Scholar 

  11. Abdul-Majeed GH, Al-Mashat AM (2000) A mechanistic model for vertical and inclined two-phase slug flow. J Pet Sci Eng 27:59–67. https://doi.org/10.1016/S0920-4105(00)00047-4

    Article  Google Scholar 

  12. Brill JP, Mukherjee H (1999) Multiphase flow in wells. Society of Petroleum Engineers, Richardson, TX, Richardson, Texas

    Google Scholar 

  13. Ali SF (2009) Two Phase Flow in Large Diameter Vertical Riser. In PhD Thesis. Cranfield University, Bedford, United Kingdom.

  14. Kaya AS (1998) Comprehensive mechanistic modeling of two-phase flow in deviated wells. In PhD Thesis. The University of Tulsa, Tulsa, OK. https://doi.org/.1037//0033-2909.I26.1.78

  15. Nwanwe CC, Duru UI, Nwanwe OI et al (2020) Optimum tubing size prediction model for vertical multiphase flow during flow production period of oil wells. J Pet Explor Prod Technol 10:2989–3005. https://doi.org/10.1007/s13202-020-00964-8

    Article  Google Scholar 

  16. Ansari AM, Sylvester ND, Akron U et al (1994) A comprehensive mechanistic model for upward two-phase flow in wellbores. SPE Prod Facil 9:143–152. https://doi.org/10.2118/20630-PA

    Article  Google Scholar 

  17. Nwanwe CC, Duru UI (2022) Comparison and performance analysis of models for predicting multiphase flow behaviours in wellbores. Int J Pet Geosci Eng 2022:1–20

    Google Scholar 

  18. Abdul-Majeed GH (2000) Liquid slug holdup in horizontal and slightly inclined two-phase slug flow. J Pet Sci Eng 27:27–32. https://doi.org/10.1016/s0920-4105(99)00056-x

    Article  Google Scholar 

  19. Abdul-Majeed GH, Al-Mashat AM (2019) A unified correlation for predicting slug liquid holdup in viscous two-phase flow for pipe inclination from horizontal to vertical. SN Appl Sci 1:. https://doi.org/10.1007/s42452-018-0081-0

  20. Al-Safran E, Kora C, Sarica C (2015) Prediction of slug liquid holdup in high viscosity liquid and gas two-phase flow in horizontal pipes. J Pet Sci Eng 133:566–575. https://doi.org/10.1016/j.petrol.2015.06.032

    Article  Google Scholar 

  21. Archibong-Eso A, Okeke NE, Baba Y et al (2019) Estimating slug liquid holdup in high viscosity oil-gas two-phase flow. Flow Meas Instrum 65:22–32. https://doi.org/10.1016/j.flowmeasinst.2018.10.027

    Article  Google Scholar 

  22. Gomez LE, Shoham O, Schmidt Z et al (2000) Unified mechanistic model for steady-state two-phase flow: horizontal to vertical upward flow. SPE J 5:339–350. https://doi.org/10.2118/65705-PA

    Article  Google Scholar 

  23. Gregory GA, Nicholson MK, Aziz K (1978) Correlation of the liquid volume fraction in the slug for horizontal gas-liquid slug flow. Int J Multiph Flow 4:33–39. https://doi.org/10.1016/0301-9322(78)90023-X

    Article  Google Scholar 

  24. Kora C, Sarica C, Zhang, HQ, Al-sarkhi, A, Alsafran, EM (2011) Effects of high oil viscosity on slug liquid holdup in horizontal pipes. Society of Petroleum Engineers - Canadian Unconventional Resources Conference 2011, CURC 2011:338–352.

  25. Al-Safran E (2009) Prediction of slug liquid holdup in horizontal pipes. J Energy Resour Technol Trans ASME 131:0230011–0230018. https://doi.org/10.1115/1.3120305

    Article  Google Scholar 

  26. Fernandes RC, Semiat R, Dukler AE (1983) Hydrodynamic model for gas-liquid slug flow in vertical tubes. AIChE J 29:981–989. https://doi.org/10.1002/aic.690290617

    Article  Google Scholar 

  27. Zhang HQ, Qian W, Sarica C, Brill JP (2003) A unified mechanistic model for slug liquid holdup and transition between slug and dispersed bubble flows. Int J Multiph Flow 29:97–107. https://doi.org/10.1016/S0301-9322(02)00111-8

    Article  Google Scholar 

  28. Barnea D, Brauner N (1985) Holdup of the liquid slug in two phase intermittent flow. Int J Multiph Flow 11:43–49. https://doi.org/10.1016/0301-9322(85)90004-7

    Article  Google Scholar 

  29. Kim TW, Kim S, Lim JT (2020) Modeling and prediction of slug characteristics utilizing data-driven machine-learning methodology. J Pet Sci Eng 195:107712. https://doi.org/10.1016/j.petrol.2020.107712

    Article  Google Scholar 

  30. Abdul-Majeed GH, Kadhim FS, Almahdawi FHM et al (2022) Application of artificial neural network to predict slug liquid holdup. Int J Multiph Flow 150:104004. https://doi.org/10.1016/j.ijmultiphaseflow.2022.104004

    Article  Google Scholar 

  31. Sylvester ND (1987) A mechanistic model for two-phase vertical slug flow in pipes. J Energy Resour Technol Trans ASME 109:206–213. https://doi.org/10.1115/1.3231348

    Article  Google Scholar 

  32. Felizola H (1992) Slug Flow in Extended Reach Directional Wells. In MSc Thesis. The University of Tulsa, Tulsa, OK.

  33. Gomez LE, Shoham O, Taitel Y (2000) Prediction of slug liquid holdup: horizontal to upward vertical flow. Int J Multiph Flow 26:517–521. https://doi.org/10.1016/s0301-9322(99)00025-7

    Article  Google Scholar 

  34. Al-Ruhaimani F, Pereyra E, Sarica C et al (2018) Prediction of slug-liquid holdup for high-viscosity oils in upward gas/liquid vertical-pipe flow. SPE Prod Oper 33:281–299. https://doi.org/10.2118/187957-pa

    Article  Google Scholar 

  35. Nwanwe CC, Duru UI, Anyadiegwu C, Ekejuba AIB (2023) An artificial neural network visible mathematical model for real-time prediction of multiphase flowing bottom-hole pressure in wellbores. Pet Res 8:370–385. https://doi.org/10.1016/j.ptlrs.2022.10.004

    Article  Google Scholar 

  36. Tariq Z, Mahmoud M, Abdulraheem A (2020) Real-time prognosis of flowing bottom-hole pressure in a vertical well for a multiphase flow using computational intelligence techniques. J Pet Explor Prod Technol 10:1411–1428. https://doi.org/10.1007/s13202-019-0728-4

    Article  Google Scholar 

  37. Gomaa I, Gowida A, Elkatatny S, Abdulraheem A (2021) The prediction of wellhead pressure for multiphase flow of vertical wells using artificial neural networks. Arab J Geosci 14:1–10. https://doi.org/10.1007/s12517-021-07099-y

    Article  Google Scholar 

  38. Nwanwe CC, Duru UI (2023) An adaptive neuro-fuzzy inference system white-box model for real-time multiphase flowing bottom-hole pressure prediction in wellbores. Petroleum 9:629–646. https://doi.org/10.1016/j.petlm.2023.03.003

    Article  Google Scholar 

  39. Abdul-Majeed GH (2022) Slug liquid holdup. Mendeley Data VI: https://doi.org/10.17632/wyfdm5ysh6.1

  40. Ros NCJ (1961) Simultaneous flow of gas and liquid as encountered in well tubing. J Pet Technol 13:1037–1049. https://doi.org/10.2118/18-PA

    Article  Google Scholar 

  41. Wallis GB (1969) One-dimensional two-phase flow. McGraw-Hill Book Co., Inc, New York City, New York City

    Google Scholar 

  42. Al-Naser M, Elshafei M, Al-Sarkhi A (2016) Artificial neural network application for multiphase flow patterns detection: a new approach. J Pet Sci Eng 145:548–564. https://doi.org/10.1016/j.petrol.2016.06.029

    Article  Google Scholar 

  43. AlSaif A, Al-Sarkhi A, Ismaila K, Abdulkadir M (2022) Road map to develop an artificial neural network to predict two-phase flow regime in inclined pipes. J Pet Sci Eng 217:110877. https://doi.org/10.1016/j.petrol.2022.110877

    Article  Google Scholar 

  44. Beale MH, Hagan MT, Demuth HB (2010) Neural Network Toolbox TM 7 User's Guide. The MathWorks, Inc., Natick, MA.

  45. Baba YD, Aliyu AM, Archibong AE et al (2017) Study of high viscous multiphase phase flow in a horizontal pipe. Heat Mass Transf 54:651–669. https://doi.org/10.1007/s00231-017-2158-5

    Article  Google Scholar 

  46. Wu B, Firouzi M, Mitchell T et al (2017) A critical review of flow maps for gas-liquid flows in vertical pipes and annuli. Chem Eng J 326:350–377. https://doi.org/10.1016/j.cej.2017.05.135

    Article  Google Scholar 

  47. Kuncová G, Zahradník J (1995) Gas holdup and bubble frequency in a bubble column reactor containing viscous saccharose solutions. Chem Eng Process Process Intensif 34:25–34. https://doi.org/10.1016/0255-2701(94)00563-X

    Article  Google Scholar 

  48. Eissa SH, Schügerl K (1975) Holdup and backmixing investigations in cocurrent and countercurrent bubble columns. Chem Eng Sci 30:1251–1256. https://doi.org/10.1016/0009-2509(75)85048-2

    Article  Google Scholar 

  49. Wen Y, Wu Z, Wang J, et al (2017) Experimental study of liquid holdup of liquid-gas two-phase flow in horizontal and inclined pipes. Int J Heat Technol 35:713–720. https://doi.org/10.18280/ijht.350404

  50. Andreussi P, Bendiksen K (1989) An investigation of void fraction in liquid slugs for horizontal and inclined gas-liquid pipe flow. Int J Multiph Flow 15:937–946. https://doi.org/10.1016/0301-9322(89)90022-0

    Article  Google Scholar 

  51. Godbole SP, Honath MF, Shah YT (1982) Holdup structure in highly viscous newtonian and non-Newtonian liquids in bubble columns. Chem Eng Commun 16:119–134. https://doi.org/10.1080/00986448208911090

    Article  Google Scholar 

  52. Brauner N, Ullmann A (2004) Modelling of gas entrainment from Taylor bubbles. Part A: slug flow. Int J Multiph Flow 30:239–272. https://doi.org/10.1016/j.ijmultiphaseflow.2003.11.007

    Article  Google Scholar 

Download references

Acknowledgements

Not applicable.

Funding

The authors declare that no funding has been received from any organization/funding source as research assistance for current research.

Author information

Authors and Affiliations

Authors

Contributions

CCN, software, data curation, conceptualization, methodology, writing—original draft, formal analysis, investigation, and validation. UID, conceptualization, methodology, formal analysis, writing—review and editing, and supervision. CICA, writing—review and editing and supervision. AIBE, writing—review and editing and supervision. SIO, writing—review and editing. ANN, writing—review and editing. BUO, writing—review and editing. All authors have read and approved the manuscript.

Corresponding author

Correspondence to Chibuzo Cosmas Nwanwe.

Ethics declarations

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix

Appendix

Table 13 MATLAB code of the proposed SLH-ANN-VMM

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/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Nwanwe, C.C., Duru, U.I., Anyadiegwu, C.I.C. et al. An artificial neural network visible mathematical model for predicting slug liquid holdup in low to high viscosity multiphase flow for horizontal to vertical pipes. J. Eng. Appl. Sci. 71, 194 (2024). https://doi.org/10.1186/s44147-024-00530-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s44147-024-00530-7

Keywords