Natural Gas Flow Metering Error Compensation Model Based on XGBoost-Stacking Ensemble Learning

Authors

  • Jianfu Ren National Pipeline Corporation Beijing Pipeline Co, Ltd, Beijing, 100101, China,
  • Jiaxu Shi National Pipeline Corporation Beijing Pipeline Co, Ltd, Beijing, 100101, China,
  • Huayu Yuan National Pipeline Corporation Beijing Pipeline Co, Ltd, Beijing, 100101, China,
  • Gencai Zhang National Pipeline Corporation Beijing Pipeline Co, Ltd, Beijing, 100101, China,
  • Haitao Li National Pipeline Corporation Beijing Pipeline Co, Ltd, Beijing, 100101, China,
  • Zeyu Wang National Pipeline Corporation Beijing Pipeline Co, Ltd, Beijing, 100101, China,

DOI:

https://doi.org/10.62051/gkkzwx65

Keywords:

Natural Gas Flow Measurement; Error Compensation; XGBoost; Stacking; Ensemble Learning.

Abstract

With the rapid growth of natural gas consumption in my country, flow metering accuracy is crucial for energy trade settlement and transmission and distribution loss control. However, metering errors caused by multiple factors, such as liquefied natural gas vaporization, metering equipment failures, and improper parameter settings, pose challenges to traditional compensation methods that rely on simple mathematical models. This study aims to construct a high-precision natural gas flow metering error compensation model to intelligently improve metering accuracy and reduce economic losses caused by errors. Based on multi-source data from the natural gas pipeline network, after data cleaning and standardization preprocessing, this study combines the advantages of XGBoost in handling nonlinear relationships with the Stacking ensemble strategy, supplemented by Bayesian optimization and random search for parameter tuning. Ultimately, an XGBoost-Stacking ensemble learning error compensation model is constructed. Experimental results show that the proposed model achieves a mean absolute error of 0.0298, a root mean square error of 0.0451, and a coefficient of determination of 0.9432, significantly outperforming traditional regression models and single XGBoost models. The compensation accuracy meets the industry requirement of ≤0.5%, and generalization capability is stable. This model provides an effective technical path for resolving natural gas metering errors, reducing transmission losses, ensuring trade fairness, and promoting the intelligent development of the natural gas industry.

Downloads

Download data is not yet available.

References

[1] Wu Dan, Shi Shengnan, Luo Zaiyang. Measurement Analysis of Liquefied Natural Gas Custody Transfer [J]. Petrochemical Energy Conservation and Measurement, 2024.

[2] Niu Qiaoping, Han Fangling, Zhang Lili. Error Analysis and Improvement Measures of Energy Metering Instruments [J]. Modern Industrial Economy and Informatization, 2024.

[3] Gao Sheng. Control and Analysis of Transmission Difference in Long-Distance Natural Gas Pipelines[J]. Petrochemical Technology, 2024.

[4] Sha Tong, Dai Li. Research on Commodity Sales Forecasting Based on Stacking Ensemble Learning[J]. Logistics Engineering and Management, 2024.

[5] Liu Wei, Yang Kaining. Short-Term Photovoltaic Power Forecasting in Cold and Alpine Regions Based on Numerical Weather Prediction Factor Expansion and Improved Ensemble Learning[J]. Electrical Technology, 2024.

[6] Fan Junchuan, Lian Yaoshan, Cai Yaqi, Lu Qi, Guo Hao, Zhang Tan. Research on Improving the Value of Postal Finance Mass Customers Based on Digitalization [J]. Postal Research, 2024.

[7] Ma Shidong, Gong Wenbin, Wan Anping. Main Bearing Fault Diagnosis of Offshore Wind Turbines Based on Transfer Learning[J]. Electric Power Big Data, 2024.

[8] Cai Kunpeng, Ma Lijuan. Analysis and Research on XGBoost Based on Consumer Behavior [J]. Journal of Guangxi University for Nationalities (Natural Science Edition), 2024.

[9] Yu Xin, Jiang Hong, Lin Jing, Xu Jiaqi. Research on Wildfire Risk Assessment in Fuzhou City Based on CatBoost [J]. Journal of Hainan University (Natural Science Edition), 2024.

[10] Li Shuo, Cui Lan, Fu Pei. Research on nonlinear dimensionality reduction and classification modeling methods for hyperspectral inkjet printing ink data[J]. Journal of Analysis and Measurement, 2024.

[11] He Zijun, Huang Chuan, Jiang Yuanyan. Machine Learning Prediction Model for Leachate Odor Concentration Based on Odor Measurement Values[J]. Journal of Environmental Sciences, 2024.

Downloads

Published

09-04-2026

How to Cite

Ren, J., Shi, J., Yuan, H., Zhang, G., Li, H., & Wang, Z. (2026). Natural Gas Flow Metering Error Compensation Model Based on XGBoost-Stacking Ensemble Learning. Transactions on Computer Science and Intelligent Systems Research, 12, 193-202. https://doi.org/10.62051/gkkzwx65