Professional Documents
Culture Documents
Arturo Magana-Mora, Salem Gharbi, Abrar Alshaikh, and Abdullah Al-Yami, Drilling Technology Team, EXPEC
ARC, Saudi Aramco
This paper was prepared for presentation at the SPE Middle East Oil and Gas Show and Conference held in Manama, Bahrain, 18-21 March 2019.
This paper was selected for presentation by an SPE program committee following review of information contained in an abstract submitted by the author(s). Contents
of the paper have not been reviewed by the Society of Petroleum Engineers and are subject to correction by the author(s). The material does not necessarily reflect
any position of the Society of Petroleum Engineers, its officers, or members. Electronic reproduction, distribution, or storage of any part of this paper without the written
consent of the Society of Petroleum Engineers is prohibited. Permission to reproduce in print is restricted to an abstract of not more than 300 words; illustrations may
not be copied. The abstract must contain conspicuous acknowledgment of SPE copyright.
Abstract
Thorough preplanning and best drilling practices are effective in reducing stuck pipe incidents, data analytics
offer additional insight into further reducing the significant non-productive time (NTP) that results from
this unplanned event. The severity of the stuck pipe problem may stop the drilling operations for a short
time, or in more difficult cases, the drill string has to be cut and the borehole is sidetracked or plugged and
abandoned. Consequently, detecting the early signs of this problem, in order to take the right actions, may
considerably or entirely reduce the risk of a stuck pipe.
Although computational models have been proposed for the early detection of the stuck pipe incidents,
the models are derived from a reduced set of wells with stuck pipe incidents, which may result in under-
trained models that predict a large number of false positive alarms. A sufficient amount of data or wells
that statistically represent the parameters surrounding stuck pipe incidents under different circumstances
is required in order to derive a generalizable and accurate prediction model. For this, we first derived a
framework to automatically and systematically extract relevant data from the historical data. As such, our
framework searches through the historical data and localizes the surface drilling and rheology parameters
surrounding the stuck pipe incidents. Moreover, we performed feature selection by selecting the top-ranked
parameters from the analysis of variance, which measures the capability of the drilling and rheology
parameters to discriminate between stuck pipe incidents and normal drilling conditions, such as, weight on
bit, revolutions per minute, among others.
Using the relevant features selected by the analysis of variance, we derived a robust and fast classification
model based on random forests that is able to accurately detect stuck pipe incidents. The implemented
framework, which includes the automated data extraction module, the analysis of variance for feature
selection, and prediction, is designed to be implemented in the real-time drilling portal as an aid to the
drilling engineers and the rig crew in order to minimize or avoid the NTP due to a stuck pipe.
Introduction
Stuck pipe incidents occur routinely during drilling operations, and are mainly due to one of three
mechanisms, which are: differential sticking, packoff, and wellbore geometry. Sometimes, stuck pipe
2 SPE-194980-MS
incidents occur due to a combined effect of differential pressure and mechanical restrictions. In general,
however, mechanical sticking, due to either packoff or wellbore geometry, accounts for more that 70% of
stuck pipe incidents according to a 2012 study by Muqeem et al (Muqeem et al. 2012).
Despite all the effort to optimize drilling practices to avoid stuck incidents or to free the string with the
minimum lost time (LT) possible, stuck pipe incidents remain as one of the major causes of non-productive
time during drilling operations. Several studies have been published since 1987 about the use of discriminant
analysis, artificial neural networks and other techniques in order to build stuck pipe classifiers, on other
Methods
Datasets
In this study, we identified a statistically representative number of stuck pipe incidents and extracted the
surface drilling parameters, rheology parameters, and the inclination and dogleg severity from the survey
data. Table 1 shows the list of the selected parameters and their units. From the drilling parameters, we
considered WOB, flow-in rate, and RPM as these are the variables controlled by the driller and which
have a significant effect on the drilling performance. We have considered HKL, SPP, ROP, and torque to
capture the drilling performance. Concerning the drilling fluid, we considered the fluid density and viscosity
as they are the determinant factors in maintaining the pressure overbalance between the wellbore and the
formation and for maintaining proper hole cleaning throughout the operation, which can lead to stuck pipe
incidents. Finally, we have also included the inclination and dogleg severity from the survey data as these
are indicatives of the well profile complexity and wellbore misconfiguration, which are critical in predicting
mechanical stuck pipe incidents, mainly due to wellbore geometry, i.e. a conflict between the wellbore shape
and the BHA configuration (Mitchell 2002).
SPE-194980-MS 3
where μ and σ refer to the mean and standard deviation for the i-th parameter from Table 1 and x is the
parameter value that will be normalized. The z-score converts the original inputs into unitless variables and
indicates the signed number of standard deviations by which the value of an observation is above (positive
number) or below (negative number) the mean.
SPE-194980-MS 5
We computed the ANOVA F-value using Scikit-learn in Python (Pedregosa et al. 2011) for each of the
663 considered parameters to measure the significance of each of these parameters to discriminate between
stuck pipe incidents and normal operations. The F-value is the ratio of the variances from the classes and
assigns higher scores to relevant parameters. It is important to note that the F-value measures the relevance
of each parameter alone and does not consider combinations of parameters. However, it allows us to identify
the relevant parameters for detecting stuck pipe incidents and to remove those that do not contribute to the
model. In this study, we show the results obtained by deriving a model with the entire parameter set (663
Table 2—Statistical measures used to evaluate the performance of machine-learning models. TP and TN represent the number
of true positive predictions (true stuck incidents), true negative predictions (true normal operations), respectively. FP and FN
refer to the incorrectly predicted samples by the model, i.e., false positive predictions (normal operations incorrectly predicted
as stuck incidents), and false negative predictions (stuck incidents incorrectly predicted as normal operations), respectively.
Table 3—Feature ranking based on the ANOVA F-value. The table shows the considered
parameters based on the averaged F-value for all time steps to avoid listing the 663 parameters.
Table 4—Results obtained from 10-fold cross-validation. The ‘subset’ column shows the results
of the model derived by considering the top 66% parameters ranked based on the F-value.
From Table 4 we can observe the tradeoff of the model between precision and sensitivity. In other words,
if the model is set to detect most of the stuck pipe incidents (higher sensitivity), the number of false alarms
SPE-194980-MS 9
would also increase (lower precision). For this, we show the results in terms of the ROC curve to better
understand this tradeoff in Fig. 3. In this ROC plot, the top left corner represents an ideal model that is able
to achieve a false positive rate of zero and a true positive rate of one. In our case, however, we can observe
that if we set the model to predict 0 false alarms, then the model would simply predict everything as normal
operations (with a true positive rate of 0%). A middle point would be to set the model to achieve a true
positive rate of 80% while predicting on average 20% false alarms. It is important to note that since the
stuck pipe incidents are obtained from few hundred completely different wells, the results achieved in this
incident. Clearly, the farther the model gets from the stuck incident the harder it will be for the model to
detect the stuck pipe incident, as the parameters will resemble normal operations.
Acknowledgment
The authors would like to thank Eric Moellendick, Chief Technologist of the Drilling Technology Team,
for his continuous support for the team's research.