A clustering-guided feature enhancement and Bayesian-optimized LSTM approach for LC temporal anomaly detection
Yating Lei , He Zhang , Haibo Liang , Yihui Han , Jialing Zou
Petroleum ›› 2026, Vol. 12 ›› Issue (3) : 509 -522.
Lost circulation (LC), as one of the high-risk accidents in drilling, usually occurs when the wellbore pressure is greater than the formation pressure, causing a large amount of drilling fluid to seep into the formation and resulting in a significant decrease in the flow rate at the wellhead. Currently, existing LC prediction studies mainly rely on logging parameters for time series prediction, ignoring the problem of the inherent imbalance in the ratio of positive and negative samples in the LC dataset and geological information. To address these issues, this study proposes a clustering-guided feature enhancement and Bayesian optimization Long Short-Term Memory (BO-LSTM) method for LC time series anomaly detection. This method, based on the mud logging and geological structural information of faults and lithology risks, leverages clustering algorithms to uncover the latent structural information within samples to construct enhanced features, which combine with the selected key features, forming a joint representation that is fed into the LSTM model. At the same time, the BO algorithm is introduced to adaptively optimize the LSTM hyperparameters, and finally outputs the LC occurrence's probability. The results show that the proposed method performs well in LC prediction, with an average false negative rate of 0.825%, an average false positive rate of 1.525%, and an average lead time of 4.825 min for effective early warnings, significantly improving the accuracy and timeliness of early LC identification.
LC early warning / Long short-term memory network / Bayesian optimization / Clustering / Feature enhancement
| [1] |
B. Cao, Q. Yin, Y. Guo, J. Yang, L. Zhang, Z. Wang, M. Tyagi, T. Sun, X. Zhou, Field data analysis and risk assessment of shallow gas hazards based on neural networks during industrial deep-water drilling, Reliab. Eng. Syst. Saf. 232 (2023) 109079, https://doi.org/10.1016/j.ress.2022.109079. |
| [2] |
Z. Li, Q. Yin, Y. Guo, Y. Long, M. Li, X. Zhou, S. Guo, F. Meng, A special thread design based on TC4 titanium alloy and its successful application in offshore extended-reach drilling, in: ASME 2022 41st International Conference on Ocean, Offshore and Arctic Engineering (OMAE 2022), Hamburg, Germany, June 5-10, 2022, https://doi.org/10.1115/OMAE2022-80261.V010T11A091. |
| [3] |
|
| [4] |
F. Agin, R. Khosravanian, M. Karimifard, A. Jahanshahi, Application of adaptive neuro-fuzzy inference system and data mining approach to predict lost circulation using DOE technique (case study: maroon oilfield), Petroleum 6 (4) (2020) 423-437, https://doi.org/10.1016/j.petlm.2018.07.005. |
| [5] |
X. An, H. Meng, Z. Yin, J. Wen, X. Liu, A knowledge transfer-based method for risk analysis and procedure optimization of emergency schemes, Process Saf. Environ. Prot. 182 (2024) 652-677, https://doi.org/10.1016/j.psep.2023.11.041. |
| [6] |
R. Alouhali, M. Aljubran, S. Gharbi, A. Al-yami, Drilling through data: automated kick detection using data mining, in: SPE International Heavy Oil Conference and Exhibition, Kuwait City, Kuwait, December 10-12, 2018. SPE-193710-MS. |
| [7] |
S. Liu, Development of drilling fluid level monitoring and automatic grouting device, Pet. Mach. 2 (2006) 29-30+78. |
| [8] |
D. Tan, Research and Application of Overflow Monitoring Methods in pressure-sensitive Formation Drilling, Master's Thesis, Southwest Petroleum University, Chengdu, China, 2018. |
| [9] |
B. Liu, X. Li, S. Li, J. Tan, G. Wang, H. Liu, Well leakage prediction based on support vector regression, Drill. Prod. Tech 42 (2019) 17-20+1-2. |
| [10] |
Z. Li, M. Chen, Y. Jin, Y. Lu, H. Wang, Z. Geng, S. Wei, Study on intelligent prediction for risk level of lost circulation while drilling based on machine learning, in: 52nd U.S. Rock Mechanics/Geomechanics Symposium, Seattle, WA, USA, June 17-20, 2018. |
| [11] |
X. Tu, L. Yu, Z. Geng, Z. Xue, B. Zhang, Research on intelligent warning of loss circulation based on large-scale time series data, Inf. Technol. 42 (2018) 1-4. |
| [12] |
L. Wu, X. Wang, Z. Zhang, G. Zhu, Q. Zhang, P. Dong, J. Wang, Z. Zhu, Intelligent monitoring model for lost circulation based on unsupervised time series autoencoder, Processes 12 (7) (2024) 1297, https://doi.org/10.3390/pr12071297. |
| [13] |
H. Li, D. Wang, S. Bu, J. Kuang, Intelligent lost circulation monitoring with unbalanced data samples, in: 2023 5th International Conference on Intelligent Control, Measurement and Signal Processing (ICMSP), May 19-21, 2023. Chengdu, China. |
| [14] |
M. Sabah, M. Mehrad, S.B. Ashrafi, D.A. Wood, S. Fathi, Hybrid machine learning algorithms to enhance lost-circulation prediction and management in the Marun oil field, J. Pet. Sci. Eng. 198 (2021) 108125, https://doi.org/10.1016/j.petrol.2020.108125. |
| [15] |
F. Jafarizadeh, B. Larki, B. Kazemi, M. Mehrad, S. Rashidi, J.G. Neycharan, M. Gandomgoun, M.H. Gandomgoun, A new robust predictive model for lost circulation rate using convolutional neural network: a case study from Marun Oilfield, Petroleum 8 (2022) 468-485. |
| [16] |
S. Wu, Y. Hu, L. Zhang, S. Liu, R. Xie, Z. Yin, Intelligent risk identification for drilling lost circulation incidents using data-driven machine learning, Reliab. Eng. Syst. Saf. 252 (2024) 110407, https://doi.org/10.1016/j.ress.2024.110407. |
| [17] |
X. Liu, W. Jia, Z. Li, C. Wang, F. Guan, K. Chen, L. Jia, Prediction of lost circulation in southwest Chinese oil fields applying improved WOA-BiLSTM, Processes 11 (9) (2023) 2763, https://doi.org/10.3390/pr11092763. |
| [18] |
D. Fang, Y. Zeng, J. Qian, Fault diagnosis of hydro-turbine via the incorporation of bayesian algorithm optimized CNN-LSTM neural network, Energy 290 (2024) 130326, https://doi.org/10.1016/j.energy.2024.130326. |
| [19] |
G. Yang, Q. Zhu, D. Wang, Y. Feng, X. Chen, Q. Li, Method and validation of coal mine gas concentration prediction by integrating PSO algorithm and LSTM network, Processes 12 (5) (2024) 898, https://doi.org/10.3390/pr12050898. |
| [20] |
K. Wang, X. Fan, X. Yang, Z. Zhou, An AQI decomposition ensemble model based on SSA-LSTM using improved AMSSA-VMD decomposition reconstruction technique, Environ. Res. 232 (2023) 116365, https://doi.org/10.1016/j.envres.2023.116365. |
| [21] |
L. Cheng, H. Mao, Y. Zhang, C. Ma, P. Pan, Z. Xu, A BO-LSTM-based rapid evaluation method of PCCP structural safety under falling rock impacts, KSCE J. Civ. Eng. 28 (9) (2024) 3768-3781, https://doi.org/10.1007/s12205-024-1436-2. |
| [22] |
H. Ding, L. Li, G. Jia, C. Zhao, J. Li, S. Yan, X. Hu, Y. Yan, Y. Zhang, F. Wang, Research on coal spontaneous combustion temperature prediction model based on BO-LSTM, Process Saf. Environ. Prot. 201 (2025) 107570, https://doi.org/10.1016/j.psep.2025.107570. |
| [23] |
D. Zhou, C. Zhou, Z. Zhang, M. Zhou, C. Zhang, L. Zhu, Q. Li, C. Wang, Intelligent lost circulation monitoring method based on data augmentation and temporal models, Processes 12 (10) (2024) 2184, https://doi.org/10.3390/pr12102184. |
| [24] |
W. Sun, W. Li, D. Zhang, K. Liu, C. Wang, Y. Dai, W. Huang, Lost circulation monitoring using bi-directional LSTM and data augmentation, Geoenergy Sci. Eng. 225 (2023) 211660, https://doi.org/10.1016/j.geoen.2023.211660. |
| [25] |
S. Hochreiter, J. Schmidhuber, Long short-term memory, Neural Comput. 9 (8) (1997) 1735-1780, https://doi.org/10.1162/neco.1997.9.8.1735. |
| [26] |
|
| [27] |
S. Wen, B. Wei, J. You, Y. He, J. Xin, |
| [28] |
H. Khataei Maragheh, F.S. Gharehchopogh, K. Majidzadeh, A.B. Sangar, A new hybrid based on long short-term memory network with spotted hyena optimization algorithm for multi-label text classification, Mathematics 10 (3) (2022) 488, https://doi.org/10.3390/math10030488. |
| [29] |
Y. Luo, Y. Zhang, C. Du, H. Zhang, Y. Liu, Handover algorithm based on Bayesian-optimized LSTM and multi-attribute decision making for heterogeneous networks, Ad Hoc Netw. 157 (2024) 103454, https://doi.org/10.1016/j.adhoc.2024.103454. |
| [30] |
|
| [31] |
H. Huang, Z. Wang, Y. Liao, W. Gao, C. Lai, X. Wu, Z. Zeng, Improving the explainability of CNN-LSTM-based flood prediction with integrating SHAP technique, Ecol. Inform. 84 (2024) 102904, https://doi.org/10.1016/j.ecoinf.2024.102904. |
| [32] |
V. Suresh, P. Janik, J. Rezmer, Z. Leonowicz, Forecasting solar PV output using convolutional neural networks with a sliding window algorithm, Energies 13 (3) (2020) 723, https://doi.org/10.3390/en13030723. |
| [33] |
T. Blachowicz, J. Wylezek, Z. Sokol, M. Bondel, Real-time analysis of industrial data using the unsupervised hierarchical density-based spatial clustering of applications with noise method in monitoring the welding process in a robotic cell, Information 16 (2) (2025) 79, https://doi.org/10.3390/info16020079. |
| [34] |
|
| [35] |
H. Wang, Y. Xu, S. Tang, L. Wu, W. Cao, X. Huang, Z. Chen, J. Liu, Well log prediction while drilling using seismic impedance with an improved LSTM artificial neural network, Front. Earth Sci. 11 (2023) 1153619, https://doi.org/10.3389/feart.2023.1153619. |
| [36] |
H. Pan, Y. Takefuji, Enhancing heart disease feature analysis with Spearman's correlation with p-values, Int. J. Cardiol. 430 (2025) 133207, https://doi.org/10.1016/j.ijcard.2025.133207. |
| [37] |
V. Kushwah, P. Agrawal, Hybrid model for air quality prediction based on LSTM with random search and Bayesian optimization techniques, Earth Sci. Inform. 18 (2025) 32, https://doi.org/10.1007/s12145-024-01514-0. |
/
| 〈 |
|
〉 |