Professional Documents
Culture Documents
Copyright 2022, IADC/SPE International Drilling Conference and Exhibition DOI 10.2118/208778-MS
This paper was prepared for presentation at the IADC/SPE International Drilling Conference and Exhibition held in Galveston, Texas, USA, 8–10 March 2022.
This paper was selected for presentation by an IADC/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 International Association of Drilling Contractors or the Society of Petroleum Engineers and are subject to correction
by the author(s). The material does not necessarily reflect any position of the International Association of Drilling Contractors or 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 International Association of Drilling
Contractors or 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 IADC/SPE copyright.
Abstract
One of the most common issues faced in the Drilling industry is a Stuck Pipe situation. Stuck Pipes lead to
huge losses in cost, energy and productive time. The objective of this paper is to predict stuck pipe incidents
prior to their occurrence by harnessing the power of machine learning and deep learning models.
Stuck incidents are some of the most difficult and challenging situations. The proposed method uses
a two-step model and available historical data from prior drilling operations to predict the occurrence of
such an incident well in advance so that it can be avoided. The first step of the model performs time series
predictions using a Recurrent Neural Network (RNN) with Walk Forward Validation. The second part of
the model uses a Random Forest Classifier to classify the predictions from the previous step and determine
if a stuck situation is likely. The classification model is pre-trained using historical drilling operational data
collected from old wells. It is possible to determine how far back the model should look at the data and
how far ahead it should predict. For the purpose of this paper, the model looks back 5000 timesteps and
predicted 3000 timesteps ahead. One timestep is 2 seconds in this case.
This model would be able to reduce nonproductive time, and help make drilling operations cleaner, faster
and greener. The biggest benefit of such a model is that it can learn on the go and would not require manual
intervention. Also, the model can upgrade and modify itself to changes in the drilling operations.
Introduction
Stuck pipes occur when the drill string cannot be moved from the well during the drilling operation. There
are a variety of reasons due to which a stuck pipe can occur. Broadly speaking, there could be mechanical,
and formation related sticking or differential sticking. In differential sticking, pressure differences cause the
drill pipe to be pinned against the wall of the hole being drilled and the force times coefficient of friction
becomes too large for the rig to pull the drill string out. Poor hole cleaning, collapsed casing, wellbore
geometry, geopressured formations and mobile formations are some of the reasons that can cause mechanical
or formation related stuck pipes. They can vary in severity from being minor to being so severe that they
bring drilling operations to a pause. (Bailey, Louis, et al.1991)
2 IADC/SPE-208778-MS
Stuck pipes are a major hassle to the drilling industry in terms of losses in drilling times, costs and energy.
They are estimated to cost the drilling industry millions of dollars in losses and in some cases can result in
loss of the drill string or wells. Stuck pipes incidents still happen often enough that they cannot be ignored.
Due to this, there has been an increased effort in the past few years to determine the occurrence of a stuck
pipes before they happen. (Bailey, Louis, et al.1991) In several cases, stuck pipe situations can be avoided
as there are signs leading up to such an event which may be spread out sporadically over weeks or days.
However, the human eye may not be able to pick up on these signs or correlate them to the occurrence of a
For the models designed the paper, the whole pipeline from start to finish can be divided into four major
steps.
the log into something that the algorithms will accept as input. Principal component Analysis (PCA) was
carried out to determine which features are the most essential in predicting a stuck pipe situation. PCA is
a dimensionality reduction technique that projects high dimensional data in a lower dimensional space. It
captures the variance in the dataset as seen in Figure 2 with minimum error. The premise of feature selection
is that variables that show higher variance would have a bigger influence on the output as the data set is
more sensitive to changes in the values of these features. (Martinez et al. 2001)
A set of 12 features namely Bit Depth, Well Depth, Block Position, Hook Load, Mud Density, Flow in
rate, flow out rate, Mud Temperature, Rate of Penetration (ROP), Standpipe Pressure (SPP), Torque, Weight
on Bit (WOB) and pit volume change were selected. The collected data is then labeled by drilling experts
and referencing operational drilling reports for historical wells. There are two purposes for this. Firstly, it
is to have an accurately labeled data set to train the classification model on. Secondly it is used to test the
model to have a benchmark to compare the model's performance to.
Deep Neural Network for Time Series Prediction. This step of the model performs time series analysis.
The model uses a Recurrent Neural Network (RNN) architecture with walk forward validation. An RNN
is a type of neural network architecture that allows the input from the previous step to be the input for
the next step. They are great at dealing with sequential data such as time series data. A Long Short Term
Memory Network (LSTM) which is a type of RNN is used. LSTMs have memory blocks which help it retain
time dependent information making them suitable for a time series problem. Each LSTM unit comprises of
three components, an input gate, output gate and a forget gate, which it uses to conditionally decide which
information should be retained and carried forward and which information should be forgotten as shown
in Figure 3. (Mohajerin et al.2019)
IADC/SPE-208778-MS 5
The input to the RNN used here is a data set of each individual feature along with corresponding
timestamps. The output from the model is the predicted value of each feature 3000 time-steps which is
approximately 1 hour into the future from the input timestamp fed into the model for the feature. Multi-
threading is used to predict the values of the selected features in parallel. The system works as 12 recurrent
neural networks working simultaneously to generate results quicker. These predicted values are consolidated
into a new data frame which becomes the input for the next step. (Tokgöz et al, 2018.)
it is not able to accurately identify stuck pipe situations. Under-sampling is used to balance data. In this
technique, all the data from the minority class, which is the stuck situation data, is kept while the data from
the majority class is truncated so that the resulting data set has an even distribution of both classes. The
balanced data set is then scaled and labeled using labels provided by drilling experts. This data is then used
to train the Classification model. Decision Trees are the building blocks of the random forest classifier. It
is an ensemble learning method that uses a collection of decision trees. Each tree randomly samples from
the data set and makes its own decision. A majority vote is performed, and the most voted class is selected
Figure 8—Well 1: Plot of feature values on day 3 of Drilling: Red and blue highlighted
portions Are overlapped indicating that model aligns with predictions made by experts.
IADC/SPE-208778-MS 9
For the second well, drilling operations took place for 26 days and the stuck pipe situation was
encountered on the 8th day of drilling as seen in Figure 14. Testing is done on a section of the well with a
dataset size of 810000. The model achieves an accuracy of 98.81%, precision of 100% and recall of 98.77%.
Portions of the plot which are empty are because the drilling operators were not collecting data during those
periods.
Downloaded from http://onepetro.org/SPEDC/proceedings-pdf/22DC/2-22DC/D022S005R002/2650651/spe-208778-ms.pdf/1 by U. of Alberta Library user on 15 September 2023
IADC/SPE-208778-MS
The final well encountered no stuck pipe situation. Portions of the well were taken and tested in a rolling
fashion and the model correctly predicted the absence of a stuck pipe situation.
Conclusions
1. The model can detect Stuck pipe situations with high accuracy and sufficiently ahead of time so that
it can be avoided.
2. Model updates and learns with time.
3. Model can be updated to an online model so that it can be adapted to run in real time.
4. Model reduces Non-Productive Time and costs. It enables an energy-efficient and safer drilling
process.
5. Model is shown to perform well on a wide array of different wells and not on any specific cluster
of wells.
IADC/SPE-208778-MS 13
6. Model will be integrated with the existing eDrilling wellAhead platform and work in unison with it
to give real time predictions and diagnostic messages. Eventually model will be expanded to use AI/
ML models to automatically change parameter values without needing human intervention.
7. This model moves us one step closer to Automatic drilling control.
References
Bailey, Louis, et al. "Stuck pipe: causes, detection and prevention." Oilfield Review;(Netherlands) 3.4 (1991).