Pipeline Leakage Detection Using Machine Learning Techniques in Multiphase Flow Systems
Pipelines remain the primary mode of oil and gas transportation but are vulnerable to leaks that pose environmental and safety risks, particularly in two-phase flow systems. Conventional detection methods often struggle under transient multiphase conditions, while many data-driven studies rely on static evaluation metrics that do not reflect continuous monitoring requirements. This study develops a machine learning framework for leak detection using OLGA-simulated datasets from a previously published study, comprising approximately 180,000 labelled samples across nine leak scenarios and one no-leak case. Pressure, temperature, and mass-flow variables were enhanced through feature engineering to capture nonlinear leak behaviour. Random forest and extreme gradient boosting (XGBoost) classifiers were trained using an 80/20 stratified split with synthetic minority oversampling technique (SMOTE)-based balancing applied only to training data. XGBoost achieved 99.2% accuracy and reduced false positives by 53% relative to random forest while maintaining near-zero false negatives. A sliding-window suspicion framework extended static classification into time-dependent detection, producing delays of between 9.81 s and 82.04 s with zero false alarms in the no-leak scenario. Physical validation using pressure, flow, and fast Fourier transform (FFT) analysis confirmed that detections correspond to genuine hydraulic disturbances, demonstrating the reliability and physical credibility of the proposed framework.