Natural gas pipeline leakage prediction and risk assessment based on machine learning algorithms
Cheng Qinglin
Liang Tao
Yang Jinwei
Liu Yue
Lu Lu
Qu Zezhong
Abstract:To address the demand for risk prevention and control of natural gas pipeline leakage,this study develops a pipeline leakage prediction and risk assessment model based on machine learning algorithms.Multi-source heterogeneous data from the main natural gas pipeline network in a specific region during 2023-2024 were collected,covering 17 feature factors including operational monitoring,pipeline attributes,and environmental risks.After preprocessing including wavelet denoising,missing value imputation,and Geographic Information System(GIS)spatial interpolation,a spatiotemporal dataset containing 3 760 records was constructed.Five algorithms including Extreme Gradient Boosting(XGBoost)and Light Gradient Boosting Machine(LightGBM)were compared,hyperparameters were optimized using Optuna,and model performance was evaluated through 5-fold cross-validation.Results show that the XGBoost model achieves the best performance,with an accuracy of 92.15%and an area under the cure of 0.974.Pressure gradient,flow difference,and historical leakage frequency are identified as key driving features.Based on feature importance,four risk levels-low,relatively low,relatively high,and high-are classified,and general measures such as hierarchical prevention and control strategies and the development of digital twin systems are proposed.The study result provides a data-driven scientific solution for pipeline leakage early warning and risk management,effectively enhancing operational efficiency and safety levels.
Keywords:Pipeline leakage predictionMachine learningRisk assessmentFeature engineeringXGBoost
Publication Date:2026-02-25
Online Publishing Date:2026-11-11(First online date of this platform, not the publication date of the document)
Pages:9( 124-132 )
