Skip to main content

ORIGINAL RESEARCH article

Front. Energy Res., 06 November 2024
Sec. Advanced Clean Fuel Technologies

Innovative machine learning for drilling fluid density prediction: a novel central force search-adaptive XGBoost in HPHT environments

G. ShanmugasundarG. Shanmugasundar1R. ManjunathaR. Manjunatha2Robert CepRobert Cep3K. LogeshK. Logesh4Vikas KaushikVikas Kaushik5S. Srinadh RajuS. Srinadh Raju6Muniyandy Elangovan,
Muniyandy Elangovan7,8*
  • 1Department of Mechanical Engineering, Sri Sai Ram Institute of Technology, Chennai, India
  • 2Department of Data analytics and Mathematical Sciences, School of Sciences, JAIN (Deemed to be University), Bangalore, Karnataka, India
  • 3Department of Machining, Assembly and Engineering Metrology, Faculty of Mechanical Engineering, VSB-Technical University of Ostrava, Ostrava, Czechia
  • 4Department of Mechanical Engineering, Vel Tech Rangarajan Dr. Sagunthala R&D Institute of Science and Technology, Avadi, India
  • 5Department of Mechanical Engineering, Chandigarh Engineering College, Chandigarh Group of Colleges-Jhanjeri, Mohali, Punjab, India
  • 6Department of Computer Science and Engineering, Raghu Engineering College, Visakhapatnam, India
  • 7Department of Biosciences, Saveetha School of Engineering, Saveetha Institute of Medical and Technical Sciences, Chennai, India
  • 8Applied Science Research Center, Applied Science Private University, Amman, Jordan

Oil and gas industries are facing a special dilemma when it comes to high-pressure, high-temperature (HPHT) drilling as the accurate forecasting of the drilling fluid density (DFD) is a vital factor for safe and efficient operations. Complicated relationships and inconsistencies in HPHT situations are rarely mapped by current forecasting models, while their buggy performance and safety risks during drilling can be underestimated. In this research, we propose a novel machine learning (ML) approach to enhance the accuracy of DFD anticipation under HPHT conditions: central force search-adaptive extreme gradient boosting (CFS-XGB). This paper uses a dataset that has drilling variables together with the DFD for HPHT situations to examine the accuracy of the CFS-XGB model. Excluding the abnormalities of data or mistakes, the reliability of the original data is maintained by applying min–max normalization. After that, finding the important features with the help of the boosted principal component analysis (BPCA) approach to the normalized data will ensure a major improvement in the CFS-XGB methodology’s prediction efficacy. This research is experimented in the Python platform, and the performance of the proposed CFS-XGB method is analyzed in terms of MSE, R2, and AAPRE metrics. The suggested approach performs better than the current methods in forecasting the drilling fluid concentration in HPHT settings, according to the experimental data. This development in predictive modeling helps increase the productivity and safety of drilling operations, which will eventually help the oil and gas sector manage the challenges posed by HPHT drilling settings.

1 Introduction

Drilling fluid is created and maintained in surface pits or tanks and is a mixture of water, chemicals, bentonite, and weighting additives that circulate throughout the borehole during drilling operations. Apart from cleaning the wellbore by removing bit cuttings on the outside, circulation of drilling fluid also keeps the bottom of the wellbore hydrostatically pressured to cool and lubricate the drill bit string while drilling proceeds, preventing the formation fluids from entering the wellbore (Davoodi et al., 2023). In reservoir zones, which can occur several kilometers below the surface, a vertical borehole is required to safely generate hydrocarbons, for which rotating rigs equipped with subsystems to facilitate safe drilling processes are used. Bit nozzles pull up drilling fluid for recirculation and maintenance; this fluid is then filtered by the solid’s control systems and pushed back into tanks (Gul, 2021). Because of safety measures and well control difficulties that affect workers’ lives along with the high expense of the operations, drilling operations are regarded as the most crucial among the oil and gas operations. Controlling of the activities will be aided by several sensors monitoring the drilling processes alongside downhole sensors on the surface (Abdelaal et al., 2023a). When drilling narrow window zones, where the difference between the hole and formation fracture pressures is not large, equivalent circulation density (ECD), one of the characteristics, should be taken into particular consideration (Bashir et al., 2021). Drilling HPHT oil wells is a relatively new frontier in hydrocarbon deposit discovery and development. According to Highoose Limited, there is yet a higher risk of breakdown in HPHT wells because of the intense pressure of the surroundings (Okonkwo and Joel, 2023).

Drilling and filling of wells are not carried out in the energy field as they were performed over a century ago because oil is not found in the exact same favorable areas. It is also presumed that the industry’s perspective has changed during the past 10 years (Agwu et al., 2020). A downward or wider bore design has been influenced by drilling fluid hydraulics. For engineers to effectively design a good profile and increase the drilling efficiency while lowering hazards and cutting non-productive time (NPT), a reliable model with optimum drilling fluid hydraulic systems is consequently essential (Alsaihati et al., 2020). Geothermal power stations are a dependable energy source with low environmental impact, yet the cost of the drilling procedure accounts for approximately 25% of the total investment. Drilling involves rotary, circulation, and hoisting systems (Mengich et al., 2022). Viscose mixes known as drilling fluids or muds are used in drilling circulation systems for cooling and lubricating the drill bit as well as to transport rock cuttings to the surface (Pedrosa et al., 2021). Hydrocarbon extraction in the petroleum sector involves a difficult process called oil and gas well drilling. These issues are caused by the uncontrolled movement of drilling fluid through the rock during drilling. For the purposes of reinforcing the drilled formations, moving cuttings more easily, maintaining a steady pressure in the borehole, and chemically regulating the borehole, drilling fluid is utilized (Krishna et al., 2020). Due to the rise in temperature and pressure inside the formation owing to continuous drilling, the rheology of a drilling fluid changes. This inability of the rheology to be accurately represented by surface conditions itself has an effect on the accuracy of drilling hydraulics computation. The research aim is enhancing the prediction of DFD in the HPHT environment by developing CFS-XGB.

1.1 Contribution

The principal undertaking for this study is to employ ML techniques to create the notion of DFD prediction in an HPHT context.

✓ Used dataset that has drilling variables together with the DFD for HPHT situations to examine the accuracy.

✓ The introduction of the central force search-adaptive extreme gradient boosting model has greatly improved the predictive accuracy for DFD in HPHT conditions.

✓ Min–max normalization will add no anomalies or inconsistencies to the data, thus assuring reliability. This preprocessing step is very critical to maintain data integrity and increase the CFS-XGB model’s efficiency.

✓ Boosted principal component analysis can extract only relevant features from the normalized data. This refines the input variables and considerably raises the accuracy of prediction for the CFS-XGB model.

The CFS-XGB model is applicable to the remaining studies’ following categories: Section 2 examines the related works. Section 3 presents our suggested methodology. Section 4 presents the results of the study. Section 5 presents the subject of debate, while Section 6 presents the conclusions of the study.

2 Related works

The prediction of the density of drilling fluids using different machine learning and artificial intelligence models was evaluated by Syah et al. (2021) for establishing the best model that can be applied in the field. The least-square support vector machine-genetics algorithms (LSVM-GA), the radial basis function method (RBF), and the particle swarm optimization-adaptive neuro-fuzzy inferences system (PSO-ANFIS) were some of the models created at the programming stage. Al-Rubaii et al. (2023) designed the “equivalent circulation density and mud weight” specialized models, specifically ECDeffc.m and MWeffc.m, to perform the optimization of drilling performance and analysis of various real-time drilling parameters. Such models not only contribute to the aversion of problems such as blowouts and mistakes related to trapped pipes but also offer very accurate estimations of drilling conditions that are capable of detecting problems in real-time. The particle swarm optimization–least-squares support vector machine (PSO-LSSVM) technique was the most accurate, with the maximum accuracy and the lowest variation factor. Gamal et al. (2021) tested whether machine learning algorithms could provide an exact ECD with only data from the drilling. Some of these techniques were an artificial neural network (ANN) and adaptable network-based fuzzy inference system (ANFIS). The research utilized the actual motion of the drilling variables “of the horizontal drilling segment, including penetration rate, rotation acceleration, torque and standpipe volume.” Samnejad et al. (2020) suggested a new model in which the mechanical properties of drilling fluids in pre-API conditions were explained with a combination of physics, API data gathered at a site, and from laboratory testing, along with machine learning algorithms.

Abdelaal et al., 2023b developed an ML architecture that can be used to predict the rheological properties of the drilling fluids during the drilling process. The structure forecasts the viscometer values by frequent mud readings, and then it uses pre-existing algorithms to estimate additional mud characteristics with the use of mud density (MD) and mud flow viscometer (MFV). Ghamdi et al. (2021) sought to enhance ROP by incorporating MPD with AI analysis. Kandil et al. (2023) used machine learning methods such as an “artificial neural network (ANN), passive-aggressive regressor and K-nearest neighbours” based on the Levenberg–Marquardt back-propagation algorithm in predicting ECD. All these models were based on a few key operational variables that have been obtained during drilling operations using downhole sensors. Al-Rubaii (2024) developed a borehole clean index, HCI, to improve drill hole cleaning as a way of improving well drillability. These were the properties of the holes and drilling fluids, together with the majority of the drilling parameters affecting it. In understanding how drill hole cleaning works, both the engineering parameters and chemistry involved have to be considered.

Alkinani et al. (2020) proposed a new method of ECD prediction prior to drilling that utilized artificial neural networks. After the ECD had been predicted, it can then be kept within the allowable window through manipulation of the critical drilling parameters affecting ECD. The results of the research have indicated that the developed network had very small error tolerance in ECD prediction globally before drilling. Gautam et al. (2021) suggested a simple principle of momentum transfer of liquids to estimate the viscosity of the drilling fluids at HPHT conditions. The model was relatively straightforward yet able to reproduce the rheology of many drilling fluids at least on a predictive basis. Quitian-Ardila et al. (2024) developed a constitutive equation for modeling rheological data at an HPHT condition and carried out the rheological characterization of the “water-based drilling fluid, WBDF” with xanthan gum. The fluid showed shear-thinning behavior. Temperature had a stronger effect compared to pressure; however, their correlation was extremely strong. Tariq et al. (2024) suggested an ML technique for the forecast of the fluid linear swell pattern of shale wafers based on sodium bentonite. The shale wafers were exposed to various WBDFs, which were reconstituted in the presence of a few inorganic salts such as potassium chloride, KCl; sodium chloride, NaCl; and magnesium chloride, MgCl2, which are the three types of chloride.

3 Methodology

Initially, the data were gathered, normalized using min–max normalization, and then analyzed using boosted PCA to identify significant characteristics and create a flexible prediction model. It includes DFD prediction in HPHT situations using a new CFS-XGB technique. Figure 1 depicts the proposed overview.

Figure 1
www.frontiersin.org

Figure 1. Overview of the proposed workflow (source: author).

3.1 Dataset gathering

The current research gathered more than 880 datasets with varying fluid kinds, beginning densities (densities at standard pressure and temperature), temperature, and pressure (Alizadeh et al., 2021). The dataset is divided into two major groups for the proper creation of the model. In building the model, approximately 80% of real data points were used in the training phase, and the remaining, 20%, were test data used to test the performance. Table 1 summarizes key statistical parameters of input and output variables that are used in the drilling fluid density forecasting model. It contains the minimum, maximum, mean, standard deviation, skewness, and kurtosis with regard to initial density, temperature, pressure, and the resulting DFD. The initial density ranges from 0.8 to 2.2 g/cm³, with a mean of 1.5 g/cm³. Temperature ranges from 50°C to 150°C, with a mean of 100°C. Pressure ranges from 1,000 psi to 5,000 psi, with a mean of 3,000 psi. DFD varies from 1.0 to 2.5 g/cm³, with a mean of 1.8 g/cm³.

Table 1
www.frontiersin.org

Table 1. Variability of input influencing the variable and output.

3.2 Data preprocessing

Min–max normalization data convert the density data of the drilling fluid into a constant range, such as [0,1], by converting the value of each feature in relation to the minimum and maximum values in the dataset. This way, all the features will equally contribute to the prediction model in ensuring that the improvement in the rate of convergence will be the same in both normal and HPHT wells. By using min–max normalization (Equations 1, 2), the original data, x, is transformed linearly into the specified interval NEWmaxNEWmin.

wJ=NEWmin+NEWmaxNEWmin×wjwminwmaxwmin.(1)
wmax=maxwj,wmin1jM=minwj,wmax1jM.(2)

Using this approach, the data get properly scaled from wmax,wmin to NEWmaxNEWmin. The advantages of this approach are that all interactions among data elements are perfectly maintained. This approach never corrupts the data. Min–max normalization has simple rules along with an adjustable range. It works better than other approaches.

3.3 Feature extraction using boosted principal component analysis (BPCA)

Boosted principal component analysis is a relatively new technique to enhance the DFD prediction accuracy in capturing the high-pressure, high-temperature drilling environment. BPCA improves traditional PCA by adding a boosting mechanism to the model that can better handle variance in the data and select principal components more robustly, thus leading to better feature representation for predictive modeling. For the purpose of feature extraction, a boosted principal component analysis was used. This technique can be referred to as multi-linear principal component analysis (MPCA). The orthonormal projection of the input from feature information to MPCA was focused similarly to that of PCA, and the predicted feature was a tensor of the same order as the feature samples with reduced dimensions. The groupings of unified characteristics were denoted as follows in Equation 3:

w=w1,w2,,wn.(3)

In this case, w1Qt1*.*tL represents the Nth L-mode input-feature key-points with size t1.tL. In order to transfer the primary featured scaled space Qt1*.*tL into the scalar space Qev1*ev2*evlevl<=tL, the MPCA describes the multi-linear modification of the features. The multi-linear feature transformation projects out nonlinear high-dimensional features of this type and produces the best low-dimensional linear feature set. The following modification of multi-linear features was identified as per Equation 4:

VlQtl*.*evl,l=1,,L.(4)

Then, the definition of this variable x1Qev1**evL is given as per Equation 5 follows:

x1=w1V1SV2SLVLSQev1*ev2*evl,n=1,,N.(5)

The goal of MPCA is to control the L-projection matrices to make use of the entire tensor scatter, represented by φx. This is done as per Equations 6, 7.

VlQtl*evl,l=1,,N.(6)
φx=n=1Nx12.(7)

This time, eigenvectors evl that correspond to the biggest eigenvalues of the evl matrix were the initial-projection matrices as show in Equation 8.

φn=n=1NW1l..W1nSl=1,L.(8)

According to the following ratio in Equation 9, dimensionality evl might be constant for every l.

Qn=il=1evlγillil=1tlγill0.96.(9)

In the above equation, the l-model total-scatter matrix’s ilth eigenvalues are represented by the variable γill. The ideal linear collection of features converted improves the classification accuracy, and this improved method yields the most accurate results.

3.4 Predicting DFD

CFS-XGB represents a novel machine learning methodology that would improve the accuracy for drilling fluid density prediction under HPHT conditions. It combines the central force with extreme gradient boosting to provide an optimized feature selection method for model performance in complex drilling environments.

3.4.1 Central force search optimization (CFS)

CFS optimization is a fine-tuned optimization technique for predictive models to improve their accuracy in the prediction of DFD under high-pressure, high-temperature (HPHT) conditions. This approach is deeply entrenched in the idea of simulating a central force field that guides the search process toward optimal solutions. CFS, concerning its application in DFD forecasting, fine-tunes model parameters for best performance and feature selection for better predictive accuracy. CFS is used to find an Mc-dimensional goal function ew specified on a decision set of potential solutions.

Ω:{wwjminwjwjmax,1jMc,wjR; here w=w1,w2,..,wMc.  is enclosed by the 2Mc planesOjl:{ww=w1,..,wj1,Wjl,wj+1,..,wMc. Whereas Wjl=wjmin,l=1wjmax,l=2notice that j=1,.,Mc;l=1,2 throughout.

It is sampled by CFS by flying “probes” across it over several “time” increments (iterations). The exact position of every probe, represented by the vector, is used to incrementally calculate a measure for ew capability.

At step i1, “probe p” is located at Qi1o=j=1Mcwjo,i1f^j,

where 0iMs is the iteration index, f^j is the unit matrix along the jth vector axis, and Ms is the overall number of steps (notice that step 0 is the first). The probe number is 1iMo, and the overall number of probes is Mo. Probe o departs at step from the position Qi1o.

i1 to Qi1o=j=1Mcwjo,if^j at step i due to the (constant) acceleration bi1o=j=1Mcbjo,i1f^j produced at step i1 by the CFO “masses” discovered by the probe distributions.

The trajectory and acceleration of the probe, respectively, are determined using the following two stochastic “equations of motion” to determine the probe’s motion in “CFO space” as show in Equations 10, 11:

Qio=Qi1o+bi1o.(10)
bi1o=m=1moMoVNi1mNi1o.Ni1mNi1o×Qi1mQi1o)Qi1mQi1o.(11)

The objective function’s fitness at probe o’s position at time step i1 is represented by Ni1o=ew1o,i1,w2o,i1,,wMco,i1. At that particular step (iteration), every other probe has a fitness value associated with it: Ni1m,m=1,..,o1,o+1,..,Mo. “V. is the unit step function,” which is derived as Vy=1,y00otherwise. It should be noted that for Qi1m=Qi1o,, mo r, as probe m has then fused with probe o and it is unable to apply any gravitational force to o. Since Ni1m=Ni1o, the acceleration equation in this instance is uncertain, and it is set to 0.

3.4.2 Extreme gradient boosting method (XGBoost)

The XGBoost method has been used to develop an effective model with fast computing times. The accurate prediction of the drilling fluid density is very critical for wellbore stability and optimization of drilling performance, especially in a high-pressure, high-temperature drilling environment. The high-end gradient boosting method—XGBoost—utilizes this strength and ability to deal with the complex nonlinear relationship in drilling data to boost the prediction accuracy of DFD. The equation models use a blending approach for predicting decision tree losses, which optimizes future forecasts. Still, another part of the model creation process reports the importance of the influence of each feature on the final prediction of the efficiency score of the building. This feature value indicates the general predictive power of each attribute toward learning outcomes. XGBoost produces decision trees concurrently, which makes parallelization easier. The algorithm has the important property of distributed computing, which allows it to process large and complex models efficiently. The examination of extensive and varied datasets defines it as out-of-core computing. This analytical technique is used to control resource use in an efficient manner. Every iteration should involve the introduction of a new model to reduce errors.

Equation 12 is the objective of the XGBoost function at step t:

Ks=j=1K(youti,youtjs1+eswj+hgs.(12)

By using data from the training dataset, the variable youti denotes a known real value. It is possible to represent the combined component as ew+dw, where x=yOut1js1. Using the Taylor approximation is essential. The function fw can be approximated in the simplest linear form as show in Equation 13 follows:

ew=ea+e(awadw=fswj.(13)

This evaluation is being done in relation to the loss equation K, which is represented by ew. The variables dx and a represent the new learning that must be incorporated into step s and the projected output s1 from the prior method, respectively (Equations 14, 15).

ew=ea+eawa+0.5eaxa2.(14)
Ks=j=1Kyouti,youtjs1+gjeswj+0.5ljes2wj+hes.(15)

Following the removal of the constant components, the removed objectives that require reduction at step s also exist as show in Equation 16.

K1s=j=1gjeswj+0.5ljes2wj+hes.(16)

3.4.3 Central force search-adaptive XGBoost (CFS-XGB)

CFS-XGB is a novel methodology applied for the estimation of key variable DFD in HPHT settings for drilling operations. In the approach presented herein, central force search will be used with the effective machine learning method of XGBoost. The central force search models simulate the motion of celestial objects borne out of the idea of gravitational force to produce the most accurate results within a multifunctional environment. With the help of CFS, the program efficiently searches through the search space and, therefore, easily identifies optimum model parameters for precise density prediction. A revised version of the very famous and efficient gradient boosting algorithm, called XGBoost, is integrated within the CFS framework. Due to the reciprocal advantages between central force search and XGBoost, this CFS-XGB could competently search through the vast solution space by enhancing the prediction accuracy and optimizing model parameters. CFS-XGB provides iterative improvements that deliver an improved performance and accurate density forecasts in varied drilling circumstances. The advantages associated with the CFS-XGB in this DFD forecasting exercise are many. First, it is efficient for drilling since real-time density estimation will enable supporting of decision-making throughout the operation. Second, its flexibility to change drilling circumstances ensures that it yields reliable performance in different conditions and, hence, improves the general safety and reliability of the operation. Details of the central force search adaptive XGBoost methodology are shown in pseudocode 1.

4 Result

The performance was evaluated by comparing the proposed method with existing methods. The performance was estimated in various metrics such as MSE, AAPRE, and R2. The existing papers include ABR-DT (adaptive boosting regression with decision tree) (Hashemizadeh et al., 2021), SVM (support vector machine) (Hashemizadeh et al., 2021), PSO-ANN (particle swarm optimization with artificial neural network) (Ahmadi et al., 2018), FIS (fuzzy inference system) (Ahmadi et al., 2018), DT (decision tree) (Hashemizadeh et al., 2021), and GA-FIS (genetic algorithm with fuzzy inference system) (Ahmadi et al., 2018).

The Python 3.11.8 version was implemented with the help of a Windows 11 laptop, which was equipped with Intel i7 11th Gen CPU and a 64 GB RAM, which had been used for testing.

Figure 2A plots a temperature histogram in the range of minimum 50°C to maximum 150°C, with the mean temperature equal to 100°C. This will depict the distribution of a set of temperatures and the frequency of their occurrence within various ranges of temperature. Figure 2B plots a histogram of pressure from minimum 1,000 psi to maximum 5,000 psi, with a mean pressure of 3,000 psi. This will graph the distribution of the values of pressure so that one can see how often pressures of different magnitudes are represented in the dataset.

Figure 2
www.frontiersin.org

Figure 2. Histograms showing the distribution of (A) temperature (50°Cto150°C,mean=100°C) and (B) pressure (1000psito5000psi,mean=3000psi) in the dataset.

The mean squared error is an often-used statistic to evaluate the performance of the regression model. The error is the distinction between the actual and anticipated numbers, and its simple formula is the average of the squares of the errors. The disparity between the predicted and actual densities of the drilling fluids across the dataset, for example, would be measured by MSE when computing DFD. Figure 3 shows the MSE values of our suggested approach versus the MSE values of current approaches. PSO-ANN, FIS, and GA-FIS have MSE values of 0.0001374, 67.0907, and 0.091, respectively. The recommended CSF-XGB approach yields an MSE value of 0.0001134. It demonstrates that our suggested approach outperforms the existing methods.

Figure 3
www.frontiersin.org

Figure 3. Result of MSE (source: author).

The percentage of the variance in the dependent variable that can be predicted from the independent variable is represented by the statistical measure known as R2. R2 would show the rate at which the selected framework predicts the variability in DFD in the context of DFD prediction. The R2 value of our recommended and proposed strategy is displayed in Figure 4. The R2 values of PSO-ANN, FIS, and GA-FIS are 0.9964, 0.7273, and 0.9397, respectively. The R2 value obtained with the suggested CSF-XGB method is 0.9999. It proves that our proposed method works better than the existing approaches. Table 2 displays the MSE and R2 results.

Figure 4
www.frontiersin.org

Figure 4. Result of R2 (source: author).

Table 2
www.frontiersin.org

Table 2. Result of MSE and R2.

The average absolute percent relative error (AAPRE) measures the average of the absolute percentage errors relative to the true values and gives a sense of the accuracy of the predictions in percentage terms. AAPRE provides information on the average percentage difference between the projected and actual densities in the context of DFD prediction. Figure 5; Table 3 shows the AAPRE value for our suggested approach in addition to the AAPRE values of the existing approaches. AAPRE values for ABR-DT, DT, and SVM are 0.5, 0.8, and 0.9, respectively. The AAPRE value obtained using the suggested CSF-XGB method is 0.3. It proves that our proposed method works better than the existing approaches.

Figure 5
www.frontiersin.org

Figure 5. Result of AAPRE (source: author).

Table 3
www.frontiersin.org

Table 3. Result of AAPRE.

Sensitivity analysis was done to find out if the inputs affected the result (DFD, for example). Then, the quantitative effects of the parameters were determined using a relevance factor as follows:

s=j=1mYl,iYl¯XjX¯j1mYl,iYl¯2j=1mXjX¯2,(17)

where m is the total number of data points, Xj is the output, Yl is the mean of input l, and X is the mean output. Yl,i stands for input j of variable l. The relevance factor is a scale that ranges from 1to+1; a greater effect on the related parameter is indicated by a larger relevance factor. A negative influence suggests that an improved parameter would cause the goal to decrease, whereas a positive influence suggests that boosting a specific input will enhance the target parameters. The temperature and initial density were two of the characteristics with a direct effect on the results. Furthermore, an inverse relationship between DFD and the pressure was discovered, meaning that increase in pressure results in a decrease in DFD. Table 4 presents the sensitivity analysis findings. As shown with a relevance factor of −0.04, pressure was determined to have the biggest negative effects.

Table 4
www.frontiersin.org

Table 4. Result of sensitivity analysis.

To depict the performance of generated models, graphical error analyses were used with statistical parameter assessments. Cross-plots show the predicted and experimental values. A more compact area around the unit slope line (X = Y) indicates an improved model. Figure 6 shows cross-plots for the proposed models. The suggested CFS-XGB model performs well, as evidenced by the fact that the bulk of points are positioned around the unit slope line. During the training phase, 80% of the real data points were used to develop the model, with the remaining 20% serving as test data for assessing performance.

Figure 6
www.frontiersin.org

Figure 6. Cross-plots of CFS-XGB fluid density (source: author).

For the most precise model, CFS-XGB, Figure 6 displays the cross-plots in addition to the error distribution plot. It plots a relative error value with respect to the fluid density test results. In the case of an accurate model, the points lie around the zero error line in such a plot. Figure 7 shows that the CFS-XGB method could predict with very high accuracy, as can be noticed from the proximity of the points to the zero-error line.

Figure 7
www.frontiersin.org

Figure 7. Error distribution plot for the CFS-XGB method (source: author).

Figure 8 displays cumulative frequency error graphs for comparing model performance. The supplied chart demonstrates that the CFS-XGB model is more effective than the DT, SVM, and ABR-DT models.

Figure 8
www.frontiersin.org

Figure 8. Result of the cumulative frequency error (source: author).

5 Discussion

The traditional methods to predict the drilling fluid density (DFD) for the HPHT environment, such as DT, ABR-DT, SVM, PSO-ANN, FIS, and GA-FIS, have their limitations. Although DT (Hashemizadeh et al., 2021) models are interpretable, they can inherently be weak in attaining the power to model the complex, nonlinear relationships in HPHT settings, which could, in turn, lead to overfitting due to noise pollution. ABR-DT (Hashemizadeh et al., 2021) improved the predictive power of models or weak learners by reducing the variance. However, it might be prone to overfitting due to high-dimensional data and might require much parameter tuning. While SVMs (Hashemizadeh et al., 2021) can be useful to deal with small to medium data, they become expensive, less efficient, and are not suitable for large data with high dimensions that are often associated with HPHT drilling. Both PSO-ANN and GA-FIS (Ahmadi et al., 2018) were integrated optimization techniques with neural networks and fuzzy systems, respectively, to enhance the predictive accuracy, though they might be computational consumers, and hence would need high computational resources and more time to have converged. In addition, these models may not be robust and generalized under different drilling conditions. FIS (Ahmadi et al., 2018) was capable of handling uncertainty and imprecise data, but it may be less capable in a highly dynamic or complex HPHT environment where the ability to define precise membership functions and rules becomes too difficult. Furthermore, PSO-ANN and GA-FIS models are less interpretable in nature, and hence, not much actionable insight could be drawn from the predictions, which is very important in HPHT scenarios because decisions are to be made in real-time. The problem is overcome by introducing the CFS-XGB model, which outperforms traditional methods in forecasting DFD, leading to better productivity and safety in HPHT drilling operations. This advancement can help the oil and gas industry better manage the complexities and risks associated with HPHT environments.

6 Conclusion

DFD regulation is essential in HPHT drilling environments. To provide safe and effective drilling operations while limiting formation damage, this entails maintaining the proper fluid weight to offset harsh downhole conditions. This paper proposes a new machine learning methodology of central force search-based adaptive XGBoosting for improving DFD detection in HPHT drilling environments. The data gathered are preprocessed using min–max normalization. The key features are identified using BPCA, which may improve the effectiveness of the prediction. The Python platform is used to simulate our proposed method. It reveals better results with reduced MSE along with increased R-square and reduced RMSE metrics. Compared to existing methods, this technique outperforms the state-of-the-art models for the density forecasting of drilling fluid in HPHT scenarios. Under HPHT scenarios, the CFS-XGB method faces an issue with high-dimensional data management and may require further fine-tuning for execution in real-time applications. Future developments are oriented toward advanced optimization methods, enhancing its scalability, integration, and robustness.

Data availability statement

The original contributions presented in the study are included in the article/Supplementary Material; further inquiries can be directed to the corresponding author.

Author contributions

GS: conceptualization, data curation, investigation, methodology, resources, validation, visualization, writing–original draft, and writing–review and editing. RM: formal analysis, investigation, methodology, resources, software, supervision, validation, writing–original draft, and writing–review and editing. RC: conceptualization, funding acquisition, investigation, methodology, supervision, validation, visualization, writing–original draft, and writing–review and editing. KL: data curation, investigation, methodology, resources, software, validation, visualization, writing–original draft, and writing–review and editing. VK: data curation, formal analysis, investigation, methodology, software, validation, visualization, writing–original draft, and writing–review and editing. SR: data curation, investigation, methodology, resources, validation, visualization, writing–original draft, and writing–review and editing. ME: methodology, resources, supervision, validation, visualization, writing–original draft, and writing–review and editing.

Funding

The author(s) declare that financial support was received for the research, authorship, and/or publication of this article. This article was co-funded by the European Union under the REFRESH—Research Excellence For Region Sustainability and High-tech Industries project number CZ.10.03.01/00/22_003/0000048 via the Operational Program Just Transition.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

Abdelaal, A., Elkatatny, S., Gamal, H., and Ziadat, W. (2023a). “Drilling data based approach for equivalent circulation density prediction while drilling,,” in Paper presented at the 57th U.S. Rock Mechanics/Geomechanics Symposium, Atlanta, GA, June, 2023. doi:10.56952/ARMA-2023-0722

CrossRef Full Text | Google Scholar

Abdelaal, A., Ibrahim, A. F., and Elkatatny, S. (2023b). Data-driven framework for real-time rheological properties prediction of flat rheology synthetic oil-based drilling fluids. ACS omega 8 (16), 14371–14386. doi:10.1021/acsomega.2c06656

PubMed Abstract | CrossRef Full Text | Google Scholar

Agwu, O. E., Akpabio, J. U., and Dosunmu, A. (2020). Artificial neural network model for predicting the density of oil-based muds in high-temperature, high-pressure wells. J. Petroleum Explor. Prod. Technol. 10, 1081–1095. doi:10.1007/s13202-019-00802-6

CrossRef Full Text | Google Scholar

Ahmadi, M. A., Shadizadeh, S. R., Shah, K., and Bahadori, A. (2018). An accurate model to predict drilling fluid density at wellbore conditions. Egypt. J. Petroleum 27 (1), 1–10. doi:10.1016/j.ejpe.2016.12.002

CrossRef Full Text | Google Scholar

Alizadeh, S. M., Alruyemi, I., Daneshfar, R., Mohammadi-Khanaposhtani, M., and Naseri, M. (2021). An insight into the estimation of drilling fluid density at HPHT condition using PSO-ICA-and GA-LSSVM strategies. Sci. Rep. 11 (1), 7033. doi:10.1038/s41598-021-86264-5

PubMed Abstract | CrossRef Full Text | Google Scholar

Alkinani, H. H., Al-Hameedi, A. T. T., Dunn-Norman, S., and Lian, D. (2020). Application of artificial neural networks in the drilling processes: can equivalent circulation density be estimated prior to drilling? Egypt. J. Petroleum 29 (2), 121–126. doi:10.1016/j.ejpe.2019.12.003

CrossRef Full Text | Google Scholar

Al-Rubaii, M., Al-Shargabi, M., Aldahlawi, B., Al-Shehri, D., and Minaev, K. M. (2023). A developed robust model and artificial intelligence techniques to predict drilling fluid density and equivalent circulation density in real-time. Sensors 23 (14), 6594. doi:10.3390/s23146594

PubMed Abstract | CrossRef Full Text | Google Scholar

Al-Rubaii, M. M. (2024). “A new automated carrying capacity index model optimizes hole cleaning efficiency and rate of penetration by applying machine learning technique,” in International petroleum technology conference. doi:10.2523/IPTC-23896-MS

CrossRef Full Text | Google Scholar

Alsaihati, A., Elkatatny, S., and Abdulraheem, A. (2020). Real-time prediction of equivalent circulation density for horizontal wells using intelligent machines. ACS omega 6 (1), 934–942. doi:10.1021/acsomega.0c05570

PubMed Abstract | CrossRef Full Text | Google Scholar

Bashir, M. N., Naseer, M. N., Quazi, M. M., Wakeel, M. S., Ali, I., Soudagar, M. E. M., et al. (2021). Systematic review of drilling problems and their solutions in petroleum engineering. Pet. Eng. 5. doi:10.33150/JITDETS-5.2.1

CrossRef Full Text | Google Scholar

Davoodi, S., Mehrad, M., Wood, D. A., Ghorbani, H., and Rukavishnikov, V. S. (2023). Hybridized machine learning for prompt prediction of rheology and filtration properties of water-based drilling fluids. Eng. Appl. Artif. Intell. 123, 106459. doi:10.1016/j.engappai.2023.106459

CrossRef Full Text | Google Scholar

Gamal, H., Abdelaal, A., and Elkatatny, S. (2021). Machine learning models for equivalent circulating density prediction from drilling data. ACS omega 6 (41), 27430–27442. doi:10.1021/acsomega.1c04363

PubMed Abstract | CrossRef Full Text | Google Scholar

Gautam, S., Guria, C., and Gope, L. (2021). Prediction of high-pressure/high-temperature rheological properties of drilling fluids from the viscosity data measured on a coaxial cylinder viscometer. SPE J. 26 (05), 2527–2548. doi:10.2118/206714-PA

CrossRef Full Text | Google Scholar

Ghamdi, A., Saihati, A., Abdelrahman, M., Omar, M., and Abdulraheem, A. (2021). “Improving rate of penetration in high-pressure high-temperature gas wells by utilization of managed pressure drilling and artificial intelligence,” in SPE/IADC Middle East drilling technology conference and exhibition. doi:10.2118/202159-MS

CrossRef Full Text | Google Scholar

Gul, S. (2021). Machine learning applications in drilling fluid engineering: a review. Int. Conf. Offshore Mech. Arct. Eng. 85208, V010T11A007. doi:10.1115/OMAE2021-63094

CrossRef Full Text | Google Scholar

Hashemizadeh, A., Maaref, A., Shateri, M., Larestani, A., and Hemmati-Sarapardeh, A. (2021). Experimental measurement and modeling of water-based drilling mud density using adaptive boosting decision tree, support vector machine, and K-nearest neighbors: a case study from the South Pars gas field. J. Petroleum Sci. Eng. 207, 109132. doi:10.1016/j.petrol.2021.109132

CrossRef Full Text | Google Scholar

Kandil, A., Khaled, S., and Elfakharany, T. (2023). Prediction of the equivalent circulation density using machine learning algorithms based on real-time data. AIMS Energy 11 (3), 425–453. doi:10.3934/energy.2023023

CrossRef Full Text | Google Scholar

Krishna, S., Ridha, S., Vasant, P., Ilyas, S. U., and Sophian, A. (2020). Conventional and intelligent models for detection and prediction of fluid loss events during drilling operations: a comprehensive review. J. Petroleum Sci. Eng. 195, 107818. doi:10.1016/j.petrol.2020.107818

CrossRef Full Text | Google Scholar

Mengich, H., Kabugu, M., and Ondiaka, M. N. (2022). Prediction of rheological properties of recirculating water-based drilling mud in geothermal exploration using artificial neural networks with tensor Flow. Eur. J. Energy Res. 2 (4), 49–56. doi:10.24018/ejenergy.2022.2.4.77

CrossRef Full Text | Google Scholar

Okonkwo, S. I. F., and Joel, O. F. (2023). Modelling the effects of temperature and pressure on equivalent circulating density (ECD) during drilling operations using artificial neural networks. J. Eng. Res. Rep. 25 (9), 70–82. doi:10.9734/jerr/2023/v25i9982

CrossRef Full Text | Google Scholar

Pedrosa, C., Saasen, A., and Ytrehus, J. D. (2021). Fundamentals and physical principles for drilled cuttings transport—cuttings bed sedimentation and erosion. Energies 14 (3), 545. doi:10.3390/en14030545

CrossRef Full Text | Google Scholar

Quitian-Ardila, L. H., Andrade, D. E., and Franco, A. T. (2024). A proposal for a constitutive equation fitting methodology for the rheological behavior of drilling fluids at different temperatures and high-pressure conditions. Geoenergy Sci. Eng. 233, 212570. doi:10.1016/j.geoen.2023.212570

CrossRef Full Text | Google Scholar

Samnejad, M., Gharib Shirangi, M., and Ettehadi, R. (2020). “A digital twin of drilling fluids rheology for real-time rig operations,” in Paper presented at the Offshore Technology Conference, Houston, TX, May, 2020. doi:10.4043/30738-MS

CrossRef Full Text | Google Scholar

Syah, R., Ahmadian, N., Elveny, M., Alizadeh, S. M., Hosseini, M., and Khan, A. (2021). Implementation of artificial intelligence and support vector machine learning to estimate the drilling fluid density in high-pressure high-temperature wells. Energy Rep. 7, 4106–4113. doi:10.1016/j.egyr.2021.06.092

CrossRef Full Text | Google Scholar

Tariq, Z., Murtaza, M., Alrasheed, S. A., Kamal, M. S., Yan, B., and Mahmoud, M. (2024). An experimental study and machine learning modeling of shale swelling in extended reach wells when exposed to diverse water-based drilling fluids. Energy and Fuels 38, 4151–4166. doi:10.1021/acs.energyfuels.3c05129

CrossRef Full Text | Google Scholar

Keywords: drilling, oil and gas sector, fluid density, machine learning, high

Citation: Shanmugasundar G, Manjunatha R, Cep R, Logesh K, Kaushik V, Raju SS and Elangovan M (2024) Innovative machine learning for drilling fluid density prediction: a novel central force search-adaptive XGBoost in HPHT environments. Front. Energy Res. 12:1411751. doi: 10.3389/fenrg.2024.1411751

Received: 05 April 2024; Accepted: 23 September 2024;
Published: 06 November 2024.

Edited by:

Jianchun Xu, China University of Petroleum (East China), China

Reviewed by:

Hu Guo, Sinopec Research Institute of Petroleum Engineering (SRIPE), China
Yong Wang, China University of Petroleum, China

Copyright © 2024 Shanmugasundar, Manjunatha, Cep, Logesh, Kaushik, Raju and Elangovan. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Muniyandy Elangovan, bXVueWFuZHkuZUBnbWFpbC5jb20=

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.