| Literature DB >> 35755391 |
Ahmed Alsaihati1, Mahmoud Abughaban2, Salaheldin Elkatatny1, Dhafer Al Shehri1.
Abstract
Fluid losses into formations are a common operational issue that is frequently encountered when drilling across naturally or induced fractured formations. This could pose significant operational risks, such as well control, stuck pipe, and wellbore instability, which, in turn, lead to an increase in well time and cost. This research aims to use and evaluate different machine learning techniques, namely, support vector machine (SVM), random forest (RF), and K nearest neighbor (K-NN) in predicting the loss of circulation rate (LCR) while drilling using solely mechanical surface parameters and interpretation of the active pit volume readings. Actual field data of seven wells, which had suffered partial or severe loss of circulation, were used to build predictive models with an 80:20 training-to-test data ratio, while Well No. 8 was used to compare the performance of the developed models. Different performance metrics were used to evaluate the performance of the developed models. The root-mean-square error (RMSE) and correlation coefficient (R) were used to evaluate the performance of the models in predicting the LCR while drilling. The results showed that K-NN outperformed other models in predicting the LCR in Well No. 8 with an R of 0.90 and an RMSE of 0.17.Entities:
Year: 2022 PMID: 35755391 PMCID: PMC9218981 DOI: 10.1021/acsomega.2c00970
Source DB: PubMed Journal: ACS Omega ISSN: 2470-1343
Applications of AI Related to the Loss of Circulation Problems
| refs | model | input variables | output variable | data | statistical metric |
|---|---|---|---|---|---|
| Jeirani and
Mohebbi[ | ANN | pressure drop across filter cake and water/NACL weight percent | permeability of filter cake | not available | |
| filtrate volume | |||||
| Moazzeni et
al.[ | ANN | current depth of the well related to the ground elevation; current depth of the well related to the sea level, drilled depth, time of drilling, length of open hole, formation’s top depth, the north and east coordinates of the well, hole size, pumping rate, pump pressure, mud density, solid content percentage, viscosity readings, fluid loss, and the mud losses before the considered day | volume of losses | 32 wells from an oil field | |
| severity of losses (seepage, severe, complete) | |||||
| Jahanbakhshi et al.[ | ANN | Young’s modulus, fracture orientation, tensile strength, unconfined compressive strength, minimum horizontal stress, API fluid loss, mud filtrate viscosity, solids percent, mud gel strength, plastic viscosity, yield point, temperature across the loss of circulation zone, pump pressure, drilling speed, equivalent circulation density, porosity, formation permeability, the differential pressure between formation and wellbore hydrostatic pressure, and hole depth | volume of losses | not available | |
| Jahanbakhshi and Keshavarzi[ | SVM | daily drilling reports, geological information, and geomechanical properties | volume of losses | 260 data sets | |
| Toreifi et al.[ | multilayer perceptron | east and north coordinates of the well, current depth, formation’s tip angle, drilling speed, formation type, annulus capacity, pump pressure, hydrostatic pressure, pumping rate, filter cake viscosity, plastic viscosity, and yield point | volume of losses | 1756 data points collected from 38 wells | |
| particle swarm optimization algorithm | severity of losses | ||||
| Manshad et
al.[ | SVM | north and east coordinates, loss volume one day prior to the day of interest, and loss volume during the two days prior to the day of interest | volume of losses | 30 wells | not available |
| RBF | |||||
| Far and Hosseini[ | ANN | pumping rate, pump pressure, and mud weight | volume of losses; genetic algorithm was used to minimize the severity of losses | not available | |
| Solomon et al.[ | ANN | Poisson’s ratio, horizontal stress, Young’s modulus, well depth, and well pressure | width of the induced fracture | 30 data points | |
| Li et al.[ | RF | depth, drilling speed, circulating pressure, pumping rate, mud weight, plastic viscosity, yield point, gel strength, API filtration, lithology, pore pressure, stresses | loss of circulation occurrence (losses, no losses) | 6976 data points collected from an oil field | accuracy of predicting points with losses correctly= 56% |
| Abbas et al.[ | ANN | lithology, mud weight, pumping rate, drilling speed, circulating pressure, inclination, solids content, fluid loss, pipe rotation, weight exerted on the drilling bit, yield point, plastic viscosity, marsh funnel viscosity, gel strength, azimuth, measured depth, and hole size | corrective treatment for curing losses in vertical and deviated wells | 385 wells | |
| Abbas et al.[ | SVM | lithology, mud weight, pumping rate, drilling speed, circulating pressure, inclination, solids content, fluid loss, pipe rotation, weight exerted on the drilling bit, yield point, plastic viscosity, marsh funnel viscosity, gel strength, azimuth, measured depth, and hole size | likelihood of lost circulation occurrences | 385 wells | accuracy = 0.91% |
| Shi et al.[ | SVM | inlet flow, outlet flow, annuals pressure, annulus temperature, hook load, well depth, bit depth, pit volume, pumping pressure, pipe rotation, fluid outlet density, and fluid outlet temperature | type of event (influx, losses, normal) | 4 wells | accuracy = 93.72% |
| Ahmed et al.[ | ANN | pumping rate, pump pressure, weight exerted on the drilling bit, rotary torque, and drilling speed | loss of circulation zones | 3 wells | |
| Hou et al.[ | ANN | mud weight, yield point, solid content%, plastic viscosity, pumping rate, drilling speed, weight exerted on the drilling bit, pumping pressure, nozzles flow area, measured depth, lithology, fracture and pore pressure, and unconfined compressive strength | type of losses | 50 wells |
Figure 1Methodology flowchart.
Dummy Example of How to Identify Loss Occurrence at Each Time Step
| time (min.) | depth (ft.) | SPP (psi) | WOB (kIbf) | ROP (ft/h) | RS (RPM) | APV (bbl.) | APVa (bbl.) | APVTH (bbl.) | ΔAPV (bbl.) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | ### | ### | ### | ### | ### | ### | 600 | ||||
| 1 | 10 | ### | ### | ### | ### | ### | ### | 597 | 3 | 3 | 0 | 0 |
| 2 | 20 | ### | ### | ### | ### | ### | ### | 592 | 5 | 2 | 3 | 3 |
| ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |
| ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |
| 100 | 1000 | ### | ### | ### | ### | ### | ### | 420 | 7 | 7 | 0 | 0 |
These values are assumed, not calculated, in this particular example.
Dummy Modified Data Set with the New Continuous Variable
| SPP (psi) | WOB (kIbf) | ROP (ft/h) | RS (RPM) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|
| ### | ### | ### | ### | ### | ### | |
| ### | ### | ### | ### | ### | ### | 0 |
| ### | ### | ### | ### | ### | ### | 3 |
| ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
| ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
| ### | ### | ### | ### | ### | ### | 0 |
Descriptive Statistics of the Training Set (11,022 Data Points)
| statistical parameters | ROP (ft/h) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|
| min | 466.9 | 4.9 | 35.7 | 566.6 | 3.3 | 3.5 | 0.0 |
| max | 1105.7 | 149.9 | 186.7 | 3964.2 | 25.3 | 65.2 | 12.9 |
| range | 638.8 | 145.0 | 151.0 | 3397.6 | 22.1 | 61.6 | 12.9 |
| mean | 832.5 | 44.1 | 118.7 | 2184.3 | 15.1 | 39.2 | 1.0 |
Descriptive Statistics of the Testing Set (2872 Data Points)
| statistical parameters | ROP (ft/h) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|
| min | 466.6 | 5.0 | 39.4 | 577.9 | 3.4 | 4.6 | 0.0 |
| max | 1104.6 | 149.6 | 186.3 | 3963.5 | 25.0 | 65.1 | 12.7 |
| range | 638.0 | 144.6 | 146.9 | 3385.6 | 22.0 | 60.5 | 12.7 |
| mean | 832.4 | 43.4 | 118.6 | 2180.3 | 15.0 | 39.0 | 0.9 |
Figure 2Comparison of the dependency between the input variables and the output.
Performance of the SVM Model with the RBF Kernel Function
| model parameters | training set | testing set | |||
|---|---|---|---|---|---|
| γ | RMSE | RMSE | |||
| 0.001 | auto | 1.62 | 0.43 | 1.56 | 0.42 |
| 0.01 | 1.61 | 0.42 | 1.56 | 0.41 | |
| 0.1 | 1.5 | 0.12 | 1.49 | 0.27 | |
| 0.91 | 0.79 | 1.22 | 0.53 | ||
| 10 | 0.14 | 0.97 | 1.1 | 0.65 | |
| 100 | 0.1 | 0.98 | 1.11 | 0.64 | |
| 1000 | 0.1 | 0.98 | 1.11 | 0.63 | |
| 0.001 | scale | 1.55 | 0.29 | 1.49 | 0.27 |
| 0.01 | 1.46 | 0.18 | 1.42 | 0.18 | |
| 0.1 | 1.45 | 0.22 | 1.41 | 0.21 | |
| 1 | 1.44 | 0.25 | 1.4 | 0.23 | |
| 10 | 1.42 | 0.29 | 1.39 | 0.26 | |
| 100 | 1.41 | 0.31 | 1.39 | 0.27 | |
| 1000 | 1.42 | 0.31 | 1.39 | 0.25 | |
Best results.
Figure 3Cross-plots of the actual LCR versus the predicted LCR of the optimum SVM model. (a) Training set. (b) Testing set.
Performance of the RF Model with Different Maximum Depth Values
| model parameter | training set | testing set | ||
|---|---|---|---|---|
| maximum depth | RMSE | RMSE | ||
| 1 | 1.4 | 0.39 | 1.37 | 0.36 |
| 2 | 1.36 | 0.44 | 1.33 | 0.41 |
| 3 | 1.31 | 0.49 | 1.3 | 0.45 |
| 4 | 1.26 | 0.55 | 1.26 | 0.49 |
| 5 | 1.21 | 0.6 | 1.22 | 0.54 |
| 6 | 1.15 | 0.65 | 1.18 | 0.59 |
| 7 | 1.09 | 0.7 | 1.13 | 0.63 |
| 8 | 1.03 | 0.74 | 1.09 | 0.67 |
| 9 | 0.96 | 0.78 | 1.04 | 0.71 |
| 10 | 0.88 | 0.83 | 0.98 | 0.75 |
| 11 | 0.81 | 0.86 | 0.93 | 0.78 |
| 12 | 0.75 | 0.88 | 0.87 | 0.81 |
| 13 | 0.67 | 0.91 | 0.82 | 0.84 |
| 14 | 0.58 | 0.94 | 0.78 | 0.86 |
| 15 | 0.54 | 0.95 | 0.74 | 0.87 |
| 16 | 0.46 | 0.96 | 0.71 | 0.88 |
| 17 | 0.42 | 0.97 | 0.68 | 0.89 |
| 18 | 0.37 | 0.98 | 0.66 | 0.9 |
| 19 | 0.34 | 0.98 | 0.64 | 0.9 |
Best results.
Figure 4Cross-plots of the actual LCR versus the predicted LCR of the optimum RF model. (a) Training set. (b) Testing set.
Performance of the K-NN Model with the Manhattan Distance
| model
parameters | training set | testing set | |||
|---|---|---|---|---|---|
| K | distance | RMSE | RMSE | ||
| 2 | 0.35 | 0.97 | 0.69 | 0.94 | |
| 3 | 0.44 | 0.95 | 0.73 | 0.88 | |
| 4 | 0.52 | 0.94 | 0.75 | 0.87 | |
| 5 | 0.57 | 0.92 | 0.78 | 0.85 | |
| 6 | 0.62 | 0.91 | 0.83 | 0.83 | |
| 7 | 0.66 | 0.9 | 0.86 | 0.82 | |
| 8 | Manhattan | 0.7 | 0.88 | 0.89 | 0.8 |
| 9 | 0.74 | 0.87 | 0.92 | 0.79 | |
| 10 | 0.77 | 0.86 | 0.95 | 0.77 | |
| 11 | 0.8 | 0.84 | 0.97 | 0.76 | |
| 12 | 0.82 | 0.83 | 1 | 0.75 | |
Best results.
Performance of the K-NN Model with the Euclidian Distance
| model
parameters | training set | testing set | |||
|---|---|---|---|---|---|
| distance | RMSE | RMSE | |||
| 2 | 0.37 | 0.97 | 0.73 | 0.88 | |
| 3 | 0.47 | 0.95 | 0.75 | 0.87 | |
| 4 | 0.54 | 0.93 | 0.78 | 0.86 | |
| 5 | 0.61 | 0.91 | 0.81 | 0.84 | |
| 6 | 0.65 | 0.9 | 0.85 | 0.82 | |
| 7 | 0.69 | 0.89 | 0.89 | 0.8 | |
| 8 | 0.73 | 0.87 | 0.91 | 0.79 | |
| 9 | 0.77 | 0.86 | 0.94 | 0.78 | |
| 10 | Euclidian | 0.8 | 0.84 | 0.97 | 0.76 |
| 11 | 0.83 | 0.83 | 0.99 | 0.75 | |
| 12 | 0.85 | 0.82 | 1.01 | 0.74 | |
Figure 5Cross-plots of the actual LCR versus the predicted LCR of the optimum K-NN model. (a) Training set. (b) Testing set.
Optimum Design Parameters of the Developed Models
| SVM | RF | K-NN | |||
|---|---|---|---|---|---|
| Kernel function | RBF | number of estimators | 100 | 2 | |
| 1 | maximum depth | 13 | distance | Manhattan | |
| γ | auto | maximum features | sqrt or Log2 | ||
Figure 6Stack plot of the dependent variables and the output variable (i.e., LCR) versus the adjusted well depth. The SVM-based model (dashed purple curve), the RF-based model (dashed green curve), and the K-NN-based model (dashed orange curve) are superimposed onto the actual LCR (blue curve) for Well No. 8 (1123 unseen data points).
Figure 7William’s plot for identifying the application area of the K-NN model and doubtful data.
Figure 8Flowchart that describes how the developed LCR model can be used for the drilling optimization process.
Descriptive Statistics of Well No. 1 (2379 Data Points)
| statistical parameters | ROP (fph) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|
| min | 609.1 | 4.9 | 60.3 | 682.8 | 7.3 | 7.1 | 0.0 |
| max | 1105.7 | 135.2 | 186.7 | 3045.7 | 23.0 | 63.1 | 8.1 |
| range | 496.5 | 130.3 | 126.4 | 2362.9 | 15.8 | 56.1 | 8.1 |
| mean | 814.5 | 39.9 | 144.0 | 2260.4 | 16.1 | 42.2 | 0.5 |
Descriptive Statistics of Well No. 2 (2117 Data Points)
| statistical parameters | ROP (fph) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|
| min | 635.9 | 8.9 | 50.5 | 566.6 | 8.8 | 12.3 | 0.0 |
| max | 1086.8 | 126.7 | 157.5 | 3161.9 | 25.3 | 65.2 | 8.1 |
| range | 450.9 | 117.7 | 106.9 | 2595.3 | 16.6 | 52.9 | 8.1 |
| mean | 942.8 | 43.3 | 112.7 | 2436.3 | 17.6 | 58.0 | 0.9 |
Descriptive Statistics of Well No. 3 (2143 Data Points)
| statistical parameters | Q (gal/min) | ROP (fph) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | |
|---|---|---|---|---|---|---|---|
| min | 653.9 | 12.2 | 60.5 | 791.5 | 10.9 | 5.4 | 0.0 |
| max | 1104.4 | 91.9 | 134.7 | 2837.7 | 23.2 | 59.3 | 8.0 |
| range | 450.5 | 79.8 | 74.2 | 2046.2 | 12.3 | 53.8 | 8.0 |
| mean | 816.7 | 33.7 | 112.1 | 1493.4 | 18.7 | 36.0 | 1.7 |
Descriptive Statistics of Well No. 4 (1800 Data Points)
| statistical parameters | ROP (fph) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|
| min | 466.6 | 24.5 | 35.7 | 845.9 | 3.3 | 8.0 | 0.0 |
| max | 1044.1 | 215.1 | 159.8 | 3446.0 | 16.4 | 55.4 | 10.0 |
| range | 577.5 | 190.6 | 124.2 | 2600.1 | 13.1 | 47.4 | 10.0 |
| mean | 705.3 | 63.7 | 117.1 | 1927.6 | 10.7 | 34.7 | 1.6 |
Descriptive Statistics of Well No. 5 (2375 Data Points)
| statistical parameters | ROP (fph) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|
| min | 633.7 | 9.0 | 59.2 | 797.4 | 9.6 | 8.5 | 0.0 |
| max | 967.7 | 90.7 | 160.0 | 2980.0 | 19.2 | 50.5 | 12.9 |
| range | 333.9 | 81.7 | 100.8 | 2182.6 | 9.6 | 42.0 | 12.9 |
| mean | 758.0 | 35.0 | 102.8 | 2068.9 | 14.5 | 30.1 | 0.7 |
Descriptive Statistics of Well No. 6 (996 Data Points)
| statistical parameters | ROP (fph) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|
| min | 700.2 | 17.4 | 62.0 | 857.6 | 3.3 | 19.2 | 0.0 |
| max | 1010.3 | 140.0 | 157.5 | 3964.2 | 18.8 | 53.5 | 9.9 |
| range | 310.0 | 122.5 | 95.5 | 3106.7 | 15.5 | 34.3 | 9.9 |
| mean | 900.7 | 75.1 | 139.1 | 3125.9 | 13.1 | 43.5 | 0.9 |
Descriptive Statistics of Well No. 7 (2084 Data Points)
| statistical parameters | ROP (fph) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|
| min | 662.3 | 13.8 | 55.6 | 998.9 | 3.9 | 3.5 | 0.0 |
| max | 1003.1 | 72.0 | 130.9 | 2953.3 | 17.2 | 56.3 | 12.2 |
| range | 340.8 | 58.2 | 75.4 | 1954.4 | 13.3 | 52.8 | 12.2 |
| mean | 929.7 | 45.2 | 114.1 | 2433.3 | 13.2 | 32.0 | 0.8 |
Descriptive Statistics of Well No. 8 (1123 Data Points)
| statistical parameters | ROP (fph) | RS (RPM) | SPP (psi) | WOB (klbf) | LCR (bbl/min) | ||
|---|---|---|---|---|---|---|---|
| min | 584.9 | 9.7 | 68.7 | 1345.4 | 3.4 | 20.4 | 0.00 |
| max | 988.4 | 93.0 | 151.2 | 3523.4 | 21.1 | 55.0 | 2.79 |
| range | 403.5 | 83.3 | 82.5 | 2177.9 | 17.7 | 34.6 | 2.79 |
| mean | 889.3 | 27.4 | 128.4 | 2953.5 | 12.9 | 41.1 | 0.15 |