Ahmed Alsabaa1, Salaheldin Elkatatny1. 1. College of Petroleum Engineering & Geosciences, King Fahd University of Petroleum & Minerals, Dhahran 31261, Saudi Arabia.
Abstract
Lab measurements for the rheological properties of mud are critical for monitoring the drilling fluid functions during the drilling operations. However, these measurements take a long time and might need more than one person to be completed. The main objectives of this research are to implement artificial intelligence for predicting the mud rheology from only Marsh funnel (μf) and measuring mud density (ρm) easily and quickly on the rig site. For the first time, an artificial neural network (ANN) was used to build different models for predicting the rheological properties of Max-bridge oil-based mud. The properties included the plastic viscosity (μp), yield point (γ), flow behavior index (η), and apparent viscosity (μa). Field measurements of 383 samples were used to build and optimize the ANN models. The obtained results showed that 32 neurons in the hidden layer and tan sigmoid function transfer function were the best parameters for all ANN models. The training and testing processes of models showed a strong prediction performance with a correlation coefficient (R) greater than 0.91 and an average absolute percentage error (AAPE) less than 5.31%. New empirical correlations were developed based on the optimized weights and biases of the ANN models. The developed empirical correlations were compared with the published correlations, and the comparison results confirmed that the ANN-developed correlations outperformed all previous work.
Lab measurements for the rheological properties of mud are critical for monitoring the drilling fluid functions during the drilling operations. However, these measurements take a long time and might need more than one person to be completed. The main objectives of this research are to implement artificial intelligence for predicting the mud rheology from only Marsh funnel (μf) and measuring mud density (ρm) easily and quickly on the rig site. For the first time, an artificial neural network (ANN) was used to build different models for predicting the rheological properties of Max-bridge oil-based mud. The properties included the plastic viscosity (μp), yield point (γ), flow behavior index (η), and apparent viscosity (μa). Field measurements of 383 samples were used to build and optimize the ANN models. The obtained results showed that 32 neurons in the hidden layer and tan sigmoid function transfer function were the best parameters for all ANN models. The training and testing processes of models showed a strong prediction performance with a correlation coefficient (R) greater than 0.91 and an average absolute percentage error (AAPE) less than 5.31%. New empirical correlations were developed based on the optimized weights and biases of the ANN models. The developed empirical correlations were compared with the published correlations, and the comparison results confirmed that the ANN-developed correlations outperformed all previous work.
Drilling fluid has several functions in the drilling operation
as it basically transports cuttings from the bottom of the well to
the surface through circulation. Mud is lubricating the drill string
and the bit in addition to cooling them. Mud must be designed to form
a thin and faster-formed filter cake that can minimize filter loss.
One of the most important roles is to control the formation pressure
by applying the required overbalance to prevent formation fluids from
entering the bottom of the well causing kicks and interruption of
the operation.[1]According to the
base fluid, the drilling fluid has two main categories
which are water- or oil-based.[1−3] Different chemicals and materials
are used for optimizing the drilling fluid properties, such as adding
the weighting materials, which are used for regulating the density,
and viscosifiers, which are used for tuning the rheological properties
(plastic viscosity, yield point, gel strength, etc.) by special chemicals
and additives.[4]Oil-based mud (OBM)
is classified into two main classes, which
are all-oil and invert emulsion. All-oil contains oil as a base fluid
with no water or with a very little amount, usually less than 5%.
Invert emulsion contains oil as the continuous phase with a large
volume of water (as high as 60%) as the dispersed phase.[5,6]Invert emulsion mud has many advantages such as minimizing
corrosion
of casing and tubing, efficient in drilling troublesome formations
(unstable shale), protecting water-bearing formations,[6−8] and lower toxicity compared with the oil-base mud system. It can
be stable under extreme conditions of temperature and pressure.[9]Max-bridge is one type of oil-based mud
with special additives.
Max-bridge mud system has bridging agents that consist mainly of resilient
graphite and special sealing polymers that effectively seal the pore
throats to provide the bridging effect. The advanced bridging materials
in this type of mud have been proven to be effective with drilling
depleted reservoirs of high permeability to prevent problems such
as stuck pipe and losses. Figure shows a schematic diagram of the sealing impact by
the mud bridging agents that leads to plugging of the rock pore throats.
Figure 1
Bridging
agents of Max-bridge mud system.
Bridging
agents of Max-bridge mud system.
Drilling Fluid Monitoring during Operations
Good monitoring
of the mud rheological properties is very critical
in the drilling operations as it affected the drilling performance.
Improving the drilling performance requires effective cleaning of
the hole and optimization of the bit hydraulics.[10] Drilling hydraulic optimization accounts for pressure losses
that rely mainly on the rheological properties of the drilling fluid.[11] It is also possible to estimate equivalent circulating
density (ECD), which reflects the apparent weight of the mud under
complex conditions, to compensate for many drilling problems such
as loss of circulation, surge and swab pressures,[12] and instances of well control.Therefore, continuous
measurements for the mud properties are needed and performed on the
rig site using the mud lab that is equipped with the needed testing
instruments like a Marsh funnel and a mud balance. Marsh funnel viscosity
is just a time recorded for a volume of 930 cm3 to flow
through the funnel orifice as described by Marsh.[13] Some other lab devices are existing only on the mini-lab
on rig site like a rotating viscometer for measuring the mud rheological
properties, and an API filter press is required for measuring filtration
properties. Mud weight has particular significance concerning pressure
management inside the well.[14] During the
drilling process, mud density and Marsh funnel viscosity are assessed
three to four times per hour. The two measurements provide an indication
of the mud properties changes that reflect the interaction between
the mud and the drilled rock. These lab measurements will help for
better monitoring of the mud performance and quick actions for optimizing
the mud properties by mud reformulation.[15]The traditional way of such measurements is time-consuming
and
prone to human errors; hence, automating this process is a need for
the drilling industry to overcome the difficulties in measuring rheology
at a higher frequency. A few studies were conducted for addressing
this issue.[16−18] A patented device has claimed that rheological properties
could be predicted in a short time from an automatically read mud
weight and Marsh funnel viscosity.[16] This
promising technique could be the solution for the complexity of measuring
the rheology; however, prediction algorithms will be needed for running
the system. Some other studies went a step forward by proposing an
online measuring technique for rheology.[19] They claimed that normal rheology lab measurements are outdated,
but they could not explain the disparity between the continuous flowing
measurement of rheology and the static old-fashioned lab tests.[20]Apparent viscosity (μa) (cP) was related to Marsh
funnel viscosity (μf) (s) and mud weight (ρm) (gm/cm3) by Pitt[21] as per eq . The same
parameters were used in another study by Almahdawi et al.[22] to get apparent viscosity, but the constant
was different as in eq .
Petroleum Engineering Utilization of Artificial
Intelligence
The artificial intelligence (AI) technology
helped to manage a process in which the machine starts to learn about
the data patterns and how different parameters could affect each other
to find a description of the relations.[23] The implementation of AI tools contributed to solving many technical
problems such as estimation and optimization of drilling parameters[24−28] and prediction and monitoring of the drilling fluids properties,[29−34] reservoir fluid properties,[35−40] rock permeability,[41,42] and rock strength and geomechanical
properties.[43−47] This is reflecting the trust in the AI models generated and the
need for such applications in the drilling industry.The main
objective of this research is to build artificial neural network (ANN)
models that can be used to predict the rheological properties of Max-bridge
in real time using only two inputs, which are mud density (ρm) and Marsh funnel viscosity (μf). These
models were optimized, and empirical equations were developed to overcome
the traditional measurement technique for the mud properties and enhance
the automation technique for better monitoring of the mud characteristics.Section describes
the data description, statistical analysis, and the ANN approach and
optimization, followed by Section that represents the results obtained from the model
training and testing, Section for in-depth discussion and analysis of the results, and
finally Section that
summarizes the study findings.
Materials
and Methods
The mud rheological properties are determined
according to the
model that best describes the mud behavior. Those mathematical models
that may describe mud rheology are like the Bingham plastic model,
which is a two-parameter model. The design of the rotational rheometer
was conducted basically for the fluids following the Bingham plastic
model. Another rheological model is the power-law model, which is
also a two-parameter model, but it describes pseudoplastic fluids
that show a decrease in viscosity with increasing shear rate.[14] The most accurate model considered for describing
the rheological behavior of drilling fluids is the Herschel–Bulkley
model, which is a three-parameter model.
Data
Description and Statistics
The
recorded data for this study were the mud weight and Marsh funnel
viscosity that were measured for the same mud samples. The plastic
viscosity, yield point, apparent viscosity, and behavior index of
the same samples were calculated from the viscometer readings at 300
and 600 rpm. All of the recorded data were for the same mud type but
from several drilling sites. The data collected were of a wide range
that was essential to have reliable general models.The data
used for building the artificial intelligence models contained mud
weight for each sample of a total of 383 samples with a wide range
starting from 76 to 120 pcf. The Marsh funnel viscosity was measured
and recorded for each sample with very low values starting from only
44 s to 120 s. The plastic viscosity values ranged from 12 to 73 cP,
while the yield point ranged from 14 lb/100ft2 to 39 lb/100ft2. The apparent viscosity ranges from 20 to 89 cP. The behavior
index was calculated and shows a range of 0.51–0.82. Table summarizes the statistical
analysis of the model data.
Table 1
Statistics of Studied
Data for Max-Bridge
Oil-Based Mud
ρm [pcf]
μf
[s]
μp [cP]
γ [lb/100 ft2]
η
μa [cP]
minimum
76.00
44.00
12.00
14.00
0.51
20.00
maximum
120.00
120.00
73.00
39.00
0.82
89.00
mean
95.68
75.87
44.53
22.71
0.73
55.88
median
97.00
74.00
44.00
22.00
0.74
56.00
standard deviation
9.13
12.85
9.66
3.78
0.05
10.41
kurtosis
0.82
1.40
–0.09
0.85
1.68
0.23
skewness
0.53
1.05
0.17
0.62
–0.79
0.13
Data Preprocessing and
Analysis
The
approach that was employed in this study included purification of
the data before using simple Matlab codes from invalid, unrealistic,
and/or missed portions of data that were removed to have a good quality
data set of 383 lines. This process was implemented to remove the
data outliers to improve the data quality.[48,49]The next step was to verify that there is a relation between
inputs and outputs by checking the correlation coefficient (R) between inputs and outputs.Strong relations between
the parameters were shown as per the correlation
coefficients (Figure ). Mud weight increase has a direct relationship with viscosity,
and the data used in this study showed the highest correlation coefficient
with apparent viscosity, which is logical and natural. Mud weight
had a slightly less correlation coefficient with plastic viscosity
(0.67) and with apparent viscosity (0.68). Numbers are pushing toward
the fact that high-quality data are available for developing accurate
models with mud weight with a correlation coefficient of 0.43 with
behavior index. The least correlation coefficient was with yield point.
The correlation coefficient between mud weight and yield point was
0.29, which is still good. This low R might be attributed
to the nonlinear relations between the parameters.
Figure 2
Relative importance of
inputs to outputs of the study.
Relative importance of
inputs to outputs of the study.The correlation coefficient between the other input that was Marsh
funnel viscosity and apparent viscosity was also the highest among
all of the rheological parameters, i.e., 0.59, followed by plastic
viscosity, 0.57, which is still a high correlation coefficient. The n parameter had the lowest correlation coefficient of 0.30,
while the yield point had a correlation coefficient of 0.34 with Marsh
funnel viscosity.
Optimization Tool and Approach
The
technique of artificial neural networks is widely used for its efficacy
and reliability in the petroleum industry disciplines such as fluid
properties modeling,[50−52] reservoir flooding,[53−55] and rock properties
estimation.[56,57] It can imitate various complex
issues that cannot be dealt with using simple nonlinear regression
techniques.[58] Artificial neural networks
provide an efficient way for analyzing the problem characteristics
and the interrelations of parameters based on data analytics.[59] It was originally designed to mimic the performance
characteristics of neurons.[60] The elementary
units of artificial neural networks are artificial neurons. The required
layers of the artificial neural network structure are known as the
input, hidden, and output layers. In addition to the appropriate transfer
function that represents the nature of the problem, the network also
contains a training algorithm.[60] In each
layer, neurons are connected with other neurons by constant parameters
called weights and biases in the next layer.[61] For regression tasks, the (pure linear) transfer function used in
the output layer, in addition to log-sigmoid and tan-sigmoidal, is
a common type of transfer function.[62]AI has recently been widely used in the field of fluids for drilling.
Some of these applications involve optimizing drilling,[63] optimizing hydraulics,[64] and predicting rheological characteristics of invert emulsion mud[65] water-based KClmud[66] drilling liquid CaCl2,[67] and
water-based NaCl drill-in fluid.[31]After data purification and quality checks, the next step is to
choose the artificial intelligence technique that would approximate
functions for predicting the rheological parameters from mud weight
and Marsh funnel viscosity. The neural networks technique was chosen
that helped us to derive ANN-based equations in this study to make
them available for usage in automated systems or simple comparison
with other research. The data set was prepared for the training process
within the code developed using the Matlab program. The data set was
used for predicting a single rheological parameter in time.Several trials were made to obtain the optimum parameters for the
neural network used for the prediction of each rheological parameter
and tuning of the artificial neural network parameters. Each rheological
property, including plastic viscosity and yield point, was considered
as a separate problem that needed to be defined in a separate neural
network. A file containing the inputs, which were mud weight and Marsh
funnel viscosity, and the output, which was a single rheological property,
was loaded and the parameters were defined.To have an improved
generalization of the developed models, the
data set was divided into a training set, which would be used in training,
and a testing set, which is separate from training and will not be
seen by the neural network while training. The testing set is used
to check the strength of the trained model.A feedforward neural
network was used with a single hidden layer,
which was powerful enough to have excellent accuracy. Training function
of a network updates weights and bias values according to certain
optimization. A backpropagation Levenberg–Marquardt algorithm
was used, which is the fastest method with medium-sized networks,
and it is the most efficient when used with Matlab software. For each
rheological parameter, the number of neurons in the hidden layer had
a significant effect on the accuracy of the trained model and was
considered to be the main hyperparameter. Other hyperparameters were
selected and tested for their results. Not only the trained model
was evaluated with the accuracy of training, but also the testing
stage was included in the evaluation. The correlation coefficient
between the values obtained for the output from the developed artificial
neural networks model and the measured values was used as an indication
of the quality of the models. Average absolute percentage error was
used also as another indicator for the amount of error resulting from
the model compared to the recorded rheological parameters. The process
was like building four different models or dealing with four different
problems. Those four models were successfully developed for predicting
the plastic viscosity, apparent viscosity, yield point, and flow behavior
index.
Results
For all
of the four parameters investigated in this study, the
number of neurons in the hidden layer that produced the most accurate
models was found to be 32, which is the same for all. The transfer
function was changing as well in the trials to choose between the
log-sigmoid function and the tan sigmoid function and also for all
of the four parameters. The tan sigmoid function is found to be the
best transfer function. This made the architecture of the artificial
neural networks for all of the four developed models the same. The
weights and biases were then extracted from the code for all of the
models. The neural networks have internal normalization for the input
and output values between (1) maximum and (−1) minimum. For
any simple program or automation process, eqs and 4 for normalization
of the inputs must be used, where the normalized parameters would
have a subscript (n) added to their symbols.The equations derived from the
neural networks
used in the optimization process would be used for the normalized
inputs, and a table of weights and biases was used for each output. Eqs –8 were used to denormalize the output to get the predicted
valueThe
normalized outputs had their equations
related to the inputs according to the transfer function used with
all of the four networks for the four parameters (tansig). The training
set had 223 points, which constitute 58% of the total data set that
is cleaned purified and checked for quality.
Plastic
Viscosity Model
The artificial
neural network architecture of a single hidden layer extracted the
inputs as mud weight and Marsh funnel viscosity while the output was
defined as plastic viscosity only. Several automatic trials through
a loop were running the learning algorithm with changing the number
of neurons starting from 5 neurons up to 50. Regarding the trials,
they included loops for different randomization of the data with training
data set percent at minimum 50–80%. The trials included changing
the training function from the following: trainlm, trainbr, trainscg,
trainrp, trainbfg, traincgb, traincgf, traincgp, trainoss, traingdx,
traingdm, and traingda, and also the transfer function was chosen
from several trials for the following different transfer functions:
tansig, logsig, elliotsig, purelin, satlin, satlins, and poslin. The
optimization process included the testing stage with 160 points. The
values of correlation coefficient and average absolute percentage
error for training and testing with each number of neurons tried were
recorded, and the whole process was evaluated according to that. The
optimum number of neurons on the hidden layer was 32 neurons that
achieved an R of 0.96 and an AAPE of 4.59% for the
training phase between the model results and the actual values (Figure a). The correlation
coefficient of the testing set for the plastic viscosity model was
lower but still accurate enough to have a robust model as it was 0.93
along with a low AAPE of only 5.31% (Figure b). Eq was extracted from the resulted artificial neural networks
model.
Figure 3
Plastic viscosity ANN-based model results vs actual measurements:
(a) training data set and (b) testing data set.
Plastic viscosity ANN-based model results vs actual measurements:
(a) training data set and (b) testing data set.A table containing the weights and biases was extracted from the
network with the number of neurons (N) and neuron
index (i). The weights (w1 and w2) are presented in Table along with the values of the
biases (b1). For the bias (b2), it was found to be (−1.40).
Table 2
Weights and Biases
for Plastic Viscosity
Model
i
w1i,1
w1i,2
b1i
w2i
1
1.33
–9.42
–6.60
–7.39
2
–2.17
9.12
6.80
7.71
3
0.58
4.08
0.87
–21.32
4
–1.30
3.97
0.26
–25.99
5
–1.59
7.00
0.73
12.50
6
21.75
–25.02
–16.43
24.50
7
–51.37
–22.45
24.45
–0.28
8
–13.74
27.31
7.78
20.04
9
–0.98
3.89
–0.17
20.48
10
–25.38
–12.95
27.79
0.45
11
–1.74
–4.21
1.15
2.19
12
2.88
8.99
1.53
7.89
13
–12.97
7.67
10.95
0.92
14
83.37
62.30
–39.01
–0.15
15
–1.61
21.59
–3.63
–0.22
16
5.81
–14.21
3.51
0.50
17
–10.99
–3.34
–0.84
0.56
18
0.05
4.16
4.07
2.32
19
–4.81
–16.99
3.72
–0.32
20
53.55
24.65
22.20
–0.41
21
3.58
1.57
0.82
5.55
22
–4.53
–12.69
–2.20
3.38
23
–69.70
49.28
–35.31
0.16
24
–17.97
–9.71
–4.14
8.91
25
–7.77
–24.01
–6.48
–12.37
26
21.10
11.73
4.85
7.32
27
–10.03
3.69
–9.53
12.05
28
–9.05
–28.79
–7.42
7.26
29
10.03
–1.85
9.24
12.42
30
–5.09
–12.83
–4.44
6.40
31
3.87
5.39
9.08
0.10
32
–1.69
–6.64
–8.99
1.83
Yield Point Model
By following the
same approach, the results of the yield point model showed that R was 0.91 for both training and testing data sets as shown
in Figure . AAPE was
4.85 and 4.98% for training and testing processes, respectively. The
model equation derived for normalized yield point is eq with the bias (b2) of 15.90, and the remaining weights and biases are
listed in Table .
Figure 4
Yield point
ANN-based model results vs actual measurements: (a)
training data set and (b) testing data set.
Table 3
Weights and Biases for Yield Point
Model
i
w1i,1
w1i,2
b1i
w2i
1
–8.96
–8.25
13.10
–7.59
2
11.67
–5.97
–11.34
–5.84
3
11.16
18.61
–18.65
–2.01
4
–11.72
–0.21
9.01
–4.04
5
15.47
–13.44
–9.78
–0.75
6
1.59
–6.08
2.36
0.40
7
–26.20
–22.20
18.88
–0.09
8
–11.97
1.36
8.69
4.34
9
39.19
15.14
–5.63
0.15
10
–2.09
8.52
2.02
–4.54
11
–14.66
4.78
4.11
–1.40
12
0.86
2.81
–0.81
2.81
13
–0.66
1.55
1.08
–20.42
14
3.37
–64.51
12.18
0.03
15
–5.67
2.52
1.50
3.25
16
15.06
–7.76
2.23
–0.06
17
28.67
10.46
–2.17
0.14
18
–8.58
–3.87
1.29
0.86
19
–5.66
–3.90
–0.90
–4.15
20
–1.61
–3.36
–0.59
–2.77
21
5.15
3.12
0.90
–6.51
22
5.03
0.34
4.54
–12.18
23
–36.30
43.15
–46.10
–8.20
24
–30.67
–2.51
–11.63
0.21
25
14.83
–0.52
12.53
1.18
26
5.42
0.73
2.98
–8.41
27
–4.57
–0.22
–2.56
–9.21
28
–6.77
–4.78
–5.97
–1.77
29
–0.82
6.75
2.18
13.43
30
–1.15
4.40
–10.74
–7.58
31
4.14
–0.89
4.06
7.92
32
60.64
–75.65
77.30
–25.77
Yield point
ANN-based model results vs actual measurements: (a)
training data set and (b) testing data set.
Flow Behavior Index Model
Figure shows that the results
of the flow behavior index model were 0.91 and 0.94 for R, while AAPEs were 1.68 and 1.66% for the training and testing data
sets, respectively. Weights and biases to normalize the flow behavior
index equation (eq ) are listed in Table , and the bias (b2) was −11.80.
Figure 5
Flow behavior
index ANN-based model results vs actual measurements:
(a) training data set and (b) testing data set.
Table 4
Weights and Biases for Flow Behavior
Index Model
i
w1i,1
w1i,2
b1i
w2i
1
–10.44
–22.29
17.44
0.30
2
3.98
–3.12
–2.07
26.42
3
2.79
6.77
–6.28
–10.81
4
–5.49
–11.62
7.49
0.89
5
4.77
–3.59
–1.87
–16.65
6
–2.62
–11.46
6.91
–0.99
7
–9.99
–14.17
7.81
0.70
8
–5.93
2.16
4.43
8.51
9
0.08
19.03
–9.44
0.52
10
–12.18
18.22
4.31
–5.59
11
–11.19
10.72
2.95
–2.42
12
9.82
9.20
–2.51
–0.54
13
–10.10
14.90
3.65
8.31
14
–0.31
–6.39
1.75
–2.65
15
–1.07
4.70
–1.46
–3.02
16
55.36
–2.96
–4.77
0.14
17
68.35
97.62
–12.16
0.07
18
–21.34
–8.67
–5.16
0.38
19
–95.59
–75.21
–18.50
–0.23
20
–5.08
–4.72
–2.53
–3.38
21
51.58
–14.56
25.76
0.91
22
56.68
1.81
26.98
–0.90
23
–26.53
51.01
–32.09
–0.30
24
–4.56
0.72
–3.15
15.06
25
6.49
12.62
5.26
14.43
26
8.68
16.82
8.10
20.01
27
–5.53
2.04
–3.94
–9.35
28
–4.36
–11.25
–4.05
18.64
29
8.50
13.19
7.34
–12.94
30
1.63
4.21
–4.25
21.03
31
42.48
–53.25
54.61
24.22
32
32.07
–40.70
40.84
–2.17
Flow behavior
index ANN-based model results vs actual measurements:
(a) training data set and (b) testing data set.
Apparent Viscosity Model
The apparent
viscosity model performed well for training and testing phases, and
the results showed R values of 0.97 and 0.93 and
AAPEs of 3.51 and 4.67% for the training and testing data sets, respectively
(Figure ). Table presents the weights
and biases for the apparent viscosity equation (eq ) while bias (b2) was 9.96.
Figure 6
Apparent viscosity
ANN-based model results vs actual measurements:
(a) training data set and (b) testing data set.
Table 5
Weights and Biases for Apparent Viscosity
Model
i
w1i,1
w1i,2
b1i
w2i
1
–30.20
–31.64
35.35
8.63
2
2.93
–0.85
–8.30
–8.11
3
–0.38
17.62
–13.69
–0.08
4
–32.52
–33.64
37.85
–7.90
5
10.90
–6.99
–7.60
13.86
6
–5.95
–7.72
7.41
–1.09
7
–29.97
–17.05
15.10
0.39
8
–12.75
8.86
8.89
11.49
9
3.33
17.20
–6.35
0.26
10
–9.54
10.62
4.54
25.60
11
–10.99
3.08
4.16
–2.46
12
33.41
68.75
–23.10
–0.20
13
–8.81
10.66
3.93
–24.29
14
–38.69
–156.60
8.64
0.07
15
–8.95
8.48
2.54
3.10
16
27.95
–4.76
0.45
–0.17
17
5.90
–0.43
1.34
19.38
18
–6.39
0.52
–1.43
18.22
19
–16.54
–18.43
–3.52
5.95
20
–23.38
2.93
–9.92
–8.94
21
21.81
–2.68
9.22
–9.70
22
37.14
10.01
25.67
–2.65
23
–67.91
27.82
–26.97
–0.11
24
–16.20
–17.94
–3.45
–6.08
25
16.30
9.66
11.10
9.80
26
15.36
16.58
10.25
–24.79
27
–27.36
30.42
–33.45
–15.53
28
–15.74
–18.78
–10.45
–17.88
29
15.80
–14.48
14.89
0.57
30
–25.31
81.48
–38.20
–0.14
31
6.54
–4.40
5.83
–1.08
32
31.46
–30.37
37.95
–33.55
Apparent viscosity
ANN-based model results vs actual measurements:
(a) training data set and (b) testing data set.
Cross-Validation of the
Four Models
The training data set used for developing the
four models went through
rigorous checking using the cross-validation technique. The training
data were distributed over five portions. Each partition is used to
test the developed model with the results recorded and compare to
each other as in Table , which lists the correlation coefficients (R) for
the testing fold of the four rheological parameters and in Table , which lists the
AAPEs. It was found that the accuracy of the models was assured according
to the evaluation that needed several runs for each rheological parameter.
Table 6
Correlation Coefficient (R) for the
Testing Fold for the Four Rheological Parameters
μp
γ
η
μa
R1
0.97
0.91
0.97
0.96
R2
0.97
0.81
0.92
0.97
R3
0.96
0.91
0.92
0.98
R4
0.98
0.81
0.92
0.97
R5
0.96
0.88
0.94
0.97
Table 7
AAPE for the Testing Fold for the
Four Rheological Parameters
μp
γ
η
μa
AAPE1%
4.7
6.5
1.4
4.1
AAPE2%
3.9
7.0
1.9
3.2
AAPE3%
4.7
4.9
1.7
3.0
AAPE4%
4.3
7.6
1.6
3.7
AAPE5%
4.6
5.4
1.7
3.6
Discussion
In this
study, we successfully employed artificial intelligence
as an approach for better prediction of the mud rheology in real time
from only two inputs. In addition, the study enhanced the automation
process for tracking the mud rheological properties for better performance
in drilling operations. The developed models for the mud rheological
properties were compared with other conventional models[21,22] to check the prediction accuracy. Pitt[21] had developed an equation that can be used to calculate the apparent
viscosity depending on mud weight and Marsh funnel viscosity. This
correlation was updated by Almahdawi.[22] The correlations developed by Pitt[21] and
Almahdawi[22] were developed depending on
samples not representing all types of mud which makes it unreliable
when exposed to different types of mud.Studying the relation
between Marsh funnel viscosity and rheology
considering the type of mud is a more successful approach. Elktatny
et al.[68] succeeded in having highly accurate
models not only for apparent viscosity but also for plastic viscosity,
yield point, flow behavior index, and flow consistency index. However,
the study included the solid content measured in percentage as a parameter
on the developed models that involve an issue for measurement error.
The rheology of mud predicted from mud weight, Marsh funnel viscosity
in some studies, and solid percent in some other studies, it was possible
to omit the solid percent from inputs, which was revisited by researchers
many times manipulating data for different types of mud.Elkatatny[65] dealt with invert emulsion
mud using artificial neural networks, but including the solid percent
on the inputs besides mud weight and Marsh funnel viscosity. This
type of mud was revisited by Alsabaa et al.[33] using an adaptive network-based fuzzy inference system (ANFIS) into
having highly accurate models predicting rheological properties but,
this time without solid percent, which is an advantage that allows
for high resolution of rheology tracking with no time consumed in
determining the solid percent on mud sample.Elkatany et al.[69] have used a simple
nonlinear regression technique for developing models to predict the
rheology of invert emulsion mud using mud weight and Marsh funnel
viscosity as inputs, and the developed equations were included in
that research. The equations developed by Elkatatny et al.[69] for invert emulsion mud indicate the logarithmic
relationships between Marsh funnel viscosity (μF)
in seconds and plastic viscosity (μp) (eq ) measured in (cP), yield point
(γ) (eq ) measured
in (lb/100ft2), flow behavior index (η) (eq ), and apparent viscosity
(μa) (eq ) measured in (cP). The mud weight is used as the input in eqs –16 and was measured in (g/cm3), which needed conversion
for values of data used in this study as mud weight was in (pcf).
Comparison with Published
Studies
One of the earliest studies on the relationship between
Marsh funnel
viscosity and mud rheology was done by Pitt.[21] The formula that Pitt[21] developed for
predicting the apparent viscosity depending on mud weight and Marsh
funnel viscosity can be used with the 383 data points to evaluate
the value of the work done here compared to previous studies. It was
found that the correlation coefficient for the apparent viscosity
obtained from Pitt’s equation (eq ) was 0.74, which is fairly good, but the model developed
from this study is much more accurate as it had a correlation coefficient
of 0.96 and the values resulted from this model had higher quality
when checked for average absolute percentage error that was extremely
low, i.e., 3.99%, which is far less than the average absolute percentage
error from Pitt’s equation (eq ) that was 78.44%. Even the modified version of Pitt’s
equation, that is, Almahdawi’s equation (eq ), is still outperformed by the model developed
by this study for predicting apparent viscosity when tested against
the 383 points used with a correlation coefficient of 0.73 and high
error in terms of average absolute percentage error that was 73.87%
(Figure ). The results
from this comparison confirmed the success and high accuracy of the
developed ANN models.
Figure 7
Actual values of apparent viscosity versus predicted values
from
the equation developed by this study, Pitt’s equation, and
Almahdawi’s equation.
Actual values of apparent viscosity versus predicted values
from
the equation developed by this study, Pitt’s equation, and
Almahdawi’s equation.The whole data set used for training and testing for the Max-bridge
oil-based mud models was used for comparison with other models.[69] Generally, the developed models for the Max-bridge
oil-based mud outperformed all of the models developed by Elkatatny
et al.[69] in terms of R (Figure a) and AAPE
(Figure b).
Figure 8
Accuracy comparison
between Elkatatny et al. equations and the
developed models in this paper for Max-bridge oil-based mud: (a) R and (b) AAPE.
Accuracy comparison
between Elkatatny et al. equations and the
developed models in this paper for Max-bridge oil-based mud: (a) R and (b) AAPE.
Conclusions
This work facilitates the monitoring
of rheological parameters
in real time with an automated approach using the ANN. High-frequency
measured data like mud weight and Marsh funnel viscosity are used
directly to predict the rheological parameters of Max-bridge oil-based
mud. The following conclusion can be drawn:Four ANN models were developed for predicting the rheological
properties such as plastic viscosity (μp), yield
point (γ), flow behavior index (η), and apparent viscosity
(μa) in real time with a high accuracy.Each model has its optimized parameters; however, 32
neurons in the hidden layer and tan sigmoid (tansig) function transfer
function were the best parameters for all models.The models’ training and testing phases showed
a high performance with R greater than 0.91 and AAPE
less than 5.31%.The models outperformed
other published studies in terms
of R and AAPE between the actual and predicted values.This study provided empirical equations
for estimating
the mud rheological parameters to be employed for estimation in real
time with a high accuracy.