Published June - July 2026, Pg. 15-24
Section: Well drilling
UOT: 622.24:004.942:004.438
DOI: 10.37474/0365-8554/2026-06-07-15-24
Enhancing torque and drag modeling accuracy through Python-based workflow
G.V. Jabbarova PhD in Tech. Sc. - Azerbaijan State Oil and Industry University, “Geotechnological Problems of Oil, Gas and Chemistry” SRIThis paper presents a Python-based automated workflow developed to improve the accuracy of torque and drag (T&D) modeling during casing running operations in complex, high-pressure wells. Conventional approaches often rely on sparse, manually processed hook load measurements, resulting in limited friction factor calibration and increased operational risk. The proposed methodology leverages continuous mud logging data to extract pick-up (PU) and slack-off (SO) weights using advanced algorithms incorporating thresholding, rolling median filtering, and statistical outlier detection. The workflow consolidates raw data from multiple sources, performs automated cleaning, and generates high-resolution PU/SO profiles for interval-specific friction factor calibration.
Model validation against actual rig measurements demonstrated strong predictive performance, with Mean Absolute Percentage Error (MAPE) below 6 %, Root Mean Square Error (RMSE) within 11 tons, and coefficients of determination (R²) exceeding 0.96. These metrics confirm the robustness of the automated approach in accurately replicating field conditions. The case study highlights how calibrated friction factors significantly enhance T&D model reliability, reducing discrepancies between modeled and observed hook loads and mitigating risks such as overpull and stuck pipe.
By minimizing manual intervention and accelerating post-drilling analysis, this workflow enables precise friction factor calibration, optimizes casing running strategies, and supports safer well construction. The methodology represents a substantial advancement in T&D modeling practices and provides a foundation for real-time applications in future drilling projects.
References:
1. Zheng J., Zhang S., Sun H. Analysis of friction & torque and casing running measures in extended-reach well // Thermal Science, 2024, vol. 28, No. 4B, pp. 3499-3504.
2. Wilson A. Innovative tool improves hole-cleaning efficiency in extended-reach wells // Journal of Petroleum Technology, 2016, vol. 68, No. 5, pp. 80-82.
3. Salih F.R., Hadi F.A., Al Saba M.T. Analysis of surge and swab ECD of herschel bulkley fluids in rumaila iraqi oil field // Iraqi Journal of Chemical and Petroleum Engineering, 2024, vol. 25, No. 1, pp. 141-153.
4. Hui Z., Gao D., Tang H. Landing string design and strength check in ultra-deepwater condition // Journal of Natural Gas Science and Engineering, 2010, vol. 2, No. 4, pp. 178-182.
5. Samuel R. Friction factors: What are they for torque, drag, vibration, bottom hole assembly and transient surge/swab analyses? // Journal of petroleum science and engineering, 2010, vol. 73, pp. 258-266.
6. Gaurina-Međimurec N., Mesarić P. Application of Solid Expandable Tubulars in the Petroleum Industry // Rudarsko-geološko-naftni zbornik, 2022, vol. 37, No. 1, pp. 163-180.
7. Huang W.J., Gao D.L. Analysis of drilling difficulty of extended-reach wells based on drilling limit theory // Petroleum Science, 2022, vol. 19, No. 3, pp. 1099-1109.
8. Chen P., Gao D., Wang Z., Huang W. Study on multi-segment friction factors inversion in extended-reach well based on an enhanced PSO model // Journal of Natural Gas Science and Engineering, 2015, vol. 27, pp. 1780-1787.
9. Choi M., Garcia J., Ninokata H. Novel methodology to evaluate displacement efficiency of non-Newtonian fluids in primary cementing operations // Journal of Petroleum Science and Engineering, 2018, vol. 168, pp. 18-30.