Explainable machine learning methods for predicting electricity consumption in a long distance crude oil pipeline

Accurate prediction of electricity consumption in crude oil pipeline transportation is of significant importance for optimizing energy utilization, and controlling pipeline transportation costs. Currently, traditional machine learning algorithms exhibit several limitations in predicting electricity consumption. For example, these traditional algorithms have insufficient consideration of the factors affecting the electricity consumption of crude oil pipelines, limited ability to extract the nonlinear features of the electricity consumption-related factors, insufficient prediction accuracy, lack of deployment in real pipeline settings, and lack of interpretability of the prediction model. To address these issues, this study proposes a novel electricity consumption prediction model based on the integration of Grid Search (GS) and Extreme Gradient Boosting (XGBoost). Compared to other hyperparameter optimization methods, the GS approach enables exploration of a globally optimal solution by exhaustively evaluating all hyperparameter combinations, thereby enhancing the model's predictive performance. To improve the interpretability of the model's predictions, SHapley Additive exPlanations (SHAP) is employed to quantify the contribution of input parameters to the model's predictive outcomes. Experimental results demonstrate that the GS-XGBoost hybrid model outperforms Multilayer Perceptron, Support Vector Machine, Extreme Learning Machine, Random Forest, and Gradient Boosting Regression Tree, achieving the best predictive performance with mean absolute percentage error (MAPE) and coefficient of determination (R<sup>2</sup>) values of 4.1% and 0.98, respectively. SHAP analysis identifies the key determinants of electricity consumption in descending order of importance: daily transport volume, average pump-out pressure, next station inlet pressure, average converging pressure, ground temperature, next station inlet temperature, and average output temperature. The proposed model holds substantial practical significance for improving energy utilization efficiency, optimizing cost management, and accelerating digital transformation in pipeline operations.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-12-08
DOI
https://doi.org/10.1038/s41598-025-27285-2
Primary Topic
Water Systems and Optimization
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Explainable machine learning methods for predicting electricity consumption in a long distance crude oil pipeline

Liang Wang, Tao Gao, Ping Guo, Hanlin Chen
Scientific Reports
Water Systems and Optimization
article

Explainable machine learning methods for predicting electricity consumption in a long distance crude oil pipeline

Liang Wang, Tao Gao, Ping Guo, Hanlin Chen
article en

Abstract

Accurate prediction of electricity consumption in crude oil pipeline transportation is of significant importance for optimizing energy utilization, and controlling pipeline transportation costs. Currently, traditional machine learning algorithms exhibit several limitations in predicting electricity consumption. For example, these traditional algorithms have insufficient consideration of the factors affecting the electricity consumption of crude oil pipelines, limited ability to extract the nonlinear features of the electricity consumption-related factors, insufficient prediction accuracy, lack of deployment in real pipeline settings, and lack of interpretability of the prediction model. To address these issues, this study proposes a novel electricity consumption prediction model based on the integration of Grid Search (GS) and Extreme Gradient Boosting (XGBoost). Compared to other hyperparameter optimization methods, the GS approach enables exploration of a globally optimal solution by exhaustively evaluating all hyperparameter combinations, thereby enhancing the model's predictive performance. To improve the interpretability of the model's predictions, SHapley Additive exPlanations (SHAP) is employed to quantify the contribution of input parameters to the model's predictive outcomes. Experimental results demonstrate that the GS-XGBoost hybrid model outperforms Multilayer Perceptron, Support Vector Machine, Extreme Learning Machine, Random Forest, and Gradient Boosting Regression Tree, achieving the best predictive performance with mean absolute percentage error (MAPE) and coefficient of determination (R<sup>2</sup>) values of 4.1% and 0.98, respectively. SHAP analysis identifies the key determinants of electricity consumption in descending order of importance: daily transport volume, average pump-out pressure, next station inlet pressure, average converging pressure, ground temperature, next station inlet temperature, and average output temperature. The proposed model holds substantial practical significance for improving energy utilization efficiency, optimizing cost management, and accelerating digital transformation in pipeline operations.

Scientific ReportsVol. 15(1)
Zhejiang Industry Polytechnic College (CN), Daqing Oilfield General Hospital (CN), China National Petroleum Corporation (China) (CN)
Natural Science Foundation of Chongqing, Chongqing Municipal Education Commission, Centre Scientifique et Technique du Bâtiment
Openalex Percentile: Top 60%
Water Systems and Optimization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.