利用麻雀算法优化随机森林提高持液率预测精度
Using Sparrow Algorithm to Optimize Random Forest to Improve the Accuracy of Liquid Holdup Prediction and Identification
DOI: 10.12677/me.2025.135112, PDF,    科研立项经费支持
作者: 王亚宁*, 许 梅, 张永才, 王 鑫, 于庆印, 吝少康, 陈丹琳:重庆科技大学石油与天然气工程学院,重庆;王 珍:中国石油化工股份有限公司江汉油田分公司,湖北 潜江
关键词: 机器学习气液两相流管道优化算法持液率Machine Learning Gas-Liquid Two-Phase Flow Pipeline Optimization Algorithm Liquid Holdup
摘要: 为提高气液两相流持液率的预测精度,本文提出一种基于麻雀搜索算法(SSA)优化随机森林(RF)模型的持液率预测方法。通过整合1219组来自不同学者多源实验数据,构建了包含管径、气相折算速度、液相折算速度、压力、温度及管道倾角等多维特征的高质量持液率数据库。采用3σ法则进行异常值处理,确保模型训练数据的稳健性。利用SSA算法自动优化RF模型的关键超参数,避免传统调参的主观性和局限性,提升模型拟合能力与泛化性能。实验结果表明,SSA-RF模型在训练集与测试集上分别实现了R2为0.935和0.913,RPD值分别为3.81和3.18。研究成果可为复杂气液两相流工况下持液率的高精度预测及工程优化设计提供重要技术支持。
Abstract: To improve the prediction accuracy of the liquid holding rate of gas-liquid two-phase flow, this paper proposes a liquid holding rate prediction method based on the Sparrow Search algorithm (SSA) to optimize the random forest (RF) model. By integrating 1219 sets of multi-source experimental data from different scholars, a high-quality liquid holdup database was constructed, which includes multi-dimensional features such as pipe diameter, gas phase conversion rate, liquid phase conversion rate, pressure, temperature and pipe inclination Angle. The 3σ rule is adopted for outlier handling to ensure the robustness of the model training data. The SSA algorithm is utilized to automatically optimize the key hyperparameters of the RF model, avoiding the subjectivity and limitations of traditional parameter adjustment, and enhancing the model’s fitting ability and generalization performance. The experimental results show that the SSA-RF model achieves R2 of 0.935 and 0.913 respectively on the training set and the test set, and the RPD values are 3.81 and 3.18 respectively. The research results can provide important technical support for the high-precision prediction of liquid holdup and engineering optimization design under complex gas-liquid two-phase flow conditions.
文章引用:王亚宁, 许梅, 王珍, 张永才, 王鑫, 于庆印, 吝少康, 陈丹琳. 利用麻雀算法优化随机森林提高持液率预测精度[J]. 矿山工程, 2025, 13(5): 981-991. https://doi.org/10.12677/me.2025.135112

参考文献

[1] Kokal, S.L. and Stanislav, J.F. (1989) An Experimental Study of Two-Phase Flow in Slightly Inclined Pipes—II. Liquid Holdup and Pressure Drop. Chemical Engineering Science, 44, 681-693. [Google Scholar] [CrossRef
[2] Mandhane, J.M., Gregory, G.A. and Aziz, K. (1974) A Flow Pattern Map for Gas-Liquid Flow in Horizontal Pipes. International Journal of Multiphase Flow, 1, 537-553. [Google Scholar] [CrossRef
[3] Hughmark, G.A. and Pressburg, B.S. (1961) Holdup and Pressure Drop with Gas‐liquid Flow in a Vertical Pipe. AIChE Journal, 7, 677-682. [Google Scholar] [CrossRef
[4] Minami, K. and Brill, J.P. (1987) Liquid Holdup in Wet-Gas Pipelines. SPE Production Engineering, 2, 36-44. [Google Scholar] [CrossRef
[5] Kokal, S.L. (1987) An Experimental Study of Two-Phase Flow in Inclined Pipes.
[6] Beggs, H.D. (1972) An Experimental Study of Two-Phase Flow in Inclined Pipes. The University of Tulsa.
[7] Mukherjee, H. (1979) An Experimental Study of Inclined Two-Phase Flow. The University of Tulsa.
[8] Abdul-Majeed, G.H. (1996) Liquid Holdup in Horizontal Two-Phase Gas-Liquid Flow. Journal of Petroleum Science and Engineering, 15, 271-280. [Google Scholar] [CrossRef
[9] Ajani, A., Kelkar, M., Sarica, C. and Pereyra, E. (2016) Foam Flow in Vertical Gas Wells under Liquid Loading: Critical Velocity and Pressure Drop Prediction. International Journal of Multiphase Flow, 87, 124-135. [Google Scholar] [CrossRef
[10] Kong, W., Li, S., Hao, H., Yan, P., Zhuo, C. and Li, H. (2024) Measurement Method of Gas Holdup in Horizontal Gas-Liquid Two-Phase Flow Based on Fiber-Optic Probe Array. Flow Measurement and Instrumentation, 97, Article ID: 102588. [Google Scholar] [CrossRef
[11] Alsarkhi, A. and Fdleseed, A. (2024) Unmasking the Mystery: The Path to Accurate Liquid Slug Holdup Prediction. Geoenergy Science and Engineering, 243, Article ID: 213331. [Google Scholar] [CrossRef
[12] Al-Safran, E., Kora, C. and Sarica, C. (2015) Prediction of Slug Liquid Holdup in High Viscosity Liquid and Gas Two-Phase Flow in Horizontal Pipes. Journal of Petroleum Science and Engineering, 133, 566-575. [Google Scholar] [CrossRef
[13] Zhang, X., Hou, L., Zhu, Z., Yang, M., Hu, Z. and Liu, J. (2024) Prediction of Liquid Holdup and Pressure Drop in Gas-Liquid Two-Phase Flow Based on Integrating Mechanism Analysis and Data Mining. Geoenergy Science and Engineering, 239, Article ID: 212971. [Google Scholar] [CrossRef
[14] He, H., Zhou, Z., Sun, B., Li, X. and Sun, X. (2025) Study on the Prediction Method of Oil-Water Two-Phase Flow Pattern and Oil Holdup. Geoenergy Science and Engineering, 246, Article ID: 213627. [Google Scholar] [CrossRef
[15] Azizi, S., Awad, M.M. and Ahmadloo, E. (2016) Prediction of Water Holdup in Vertical and Inclined Oil-Water Two-Phase Flow Using Artificial Neural Network. International Journal of Multiphase Flow, 80, 181-187. [Google Scholar] [CrossRef
[16] Xu, L., Zhang, W., Zhao, J., Cao, Z., Xie, R., Liu, X., et al. (2017) Support-Vector-Regression-Based Prediction of Water Holdup in Horizontal Oil-Water Flow by Using a Bicircular Conductance Probe Array. Flow Measurement and Instrumentation, 57, 64-72. [Google Scholar] [CrossRef
[17] El-Sebakhy, E.A. (2010) Flow Regimes Identification and Liquid-Holdup Prediction in Horizontal Multiphase Flow Based on Neuro-Fuzzy Inference Systems. Mathematics and Computers in Simulation, 80, 1854-1866. [Google Scholar] [CrossRef
[18] Wei, X., Huang, W., Liu, L., Wang, J., Cui, Z. and Xue, L. (2024) Low-Rank Coalbed Methane Production Capacity Prediction Method Based on Time-Series Deep Learning. Energy, 311, Article ID: 133247. [Google Scholar] [CrossRef
[19] 薛建凯. 一种新型的群智能优化技术的研究与应用——麻雀搜索算法[D]: [硕士学位论文]. 上海: 东华大学, 2020.
[20] 贾立山, 许海军. 基于改进麻雀算法的机器人路径规划[J]. 信息与控制, 2025(3): 536-544.
[21] Breiman, L. (2001) Random Forests. Machine Learning, 45, 5-32. [Google Scholar] [CrossRef
[22] 江铭, 邹清腾, 肖壮, 等. 浅层页岩气井间压窜影响因素与防治优化[J]. 石油实验地质, 2025, 47(3): 693-704.
[23] 胡秋嘉, 刘春春, 张建国, 等. 基于机器学习的煤层气井产能预测与压裂参数优化[J]. 油气藏评价与开发, 2025, 15(2): 266-273+299.
[24] 费世祥, 崔越华, 李小锋, 等. 鄂尔多斯盆地中、东部深层煤岩气水平井高效开发主控因素[J]. 石油与天然气地质, 2025, 46(1): 273-287.