journal article·2025-01-14Open access

An Integrated Stacking Ensemble Model for Natural Gas Purchase Prediction Incorporating Multiple Features

Junjie Wang, Lei Jiang, Le Zhang, Yaqi Liu, Qihong Yu, Yuheng Bu

Applied Sciences· Volume 15· Issue 2

Abstract

Accurate prediction of natural gas purchase volumes is crucial for both the economy and the environment. It not only facilitates the rational allocation of resources for companies but also helps to reduce operational costs. Although existing prediction methods have achieved some success in addressing the nonlinear relationships in natural gas purchases, there remains potential for further improvement. To address this issue, a stacking ensemble learning model was developed to enhance the ability to handle complex nonlinear problems. This model integrates diverse algorithms and incorporates weather factors, while regionalizing characteristics of natural gas usage, thereby achieving accurate forecasts of natural gas purchase volumes. We selected three distinctly different base models—Informer, multiple linear regression (MLR), and support vector regression (SVR)—for our research. By conducting four different feature combination experiments for each base model, including weather, time, regional, and usage features, we constructed 12 foundational models. Subsequently, we integrated these base models using a meta-learner to form the final stacking ensemble model. The experimental results indicate that the stacking ensemble model outperforms individual models across key metrics, including R2, MRE, and RMSE. Notably, the R2 values improved by 4–15% compared to the 12 base models. The model was subsequently applied to predict natural gas purchase volumes in Pi County, Chengdu, China. In November 2024, a side-by-side comparison of the predicted and actual data revealed a maximum error of just 5.39%. This exceptional accuracy effectively meets forecasting requirements, underscoring the model’s predictive strength in the energy sector.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Energy Load and Power Forecasting · Atmospheric and Environmental Gas Dynamics · Market Dynamics and Volatility

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Computer Science and Engineering, Hunan University of Science and Technology, Xiangtan 411201, China

Chengdu Pidu District Xingneng Natural Gas Co., Ltd., Pidu District, Chengdu 611730, China

References (40)

Show source-provided references
1. Di Bella, G., Flanagan, M., Foda, K., Maslova, S., Pienkowski, A., Stuermer, M., and Toscani, F. (2024). Natural gas in europe: The potential impact of disruptions to supply. Energy Econ., 138.10.1016/j.eneco.2024.107777 ↗
2. Natural gas consumption and economic growth in pakistan10.1016/j.rser.2012.09.029 ↗
3. Lim, B., and Zohren, S. (2021). Time-series forecasting with deep learning: A survey. Philos. Trans. R. Soc., 379.10.1098/rsta.2020.0209 ↗
4. Schaffer, A.L., Dobbins, T.A., and Pearson, S.-A. (2021). Interrupted time series analysis using autoregressive integrated moving average (arima) models: A guide for evaluating large-scale health interventions. BMC Med. Res. Methodol., 21.10.1186/s12874-021-01235-8 ↗
5. Khotanzad, A., and Elragal, H. (1999, January 10–16). Natural gas load forecasting with combination of adaptive neural networks. Proceedings of the IJCNN’99, International Joint Conference on Neural Networks, Proceedings (Cat. No. 99CH36339), Washington, DC, USA.
6. Forecasting of natural gas consumption with artificial neural networks10.1016/j.energy.2015.03.084 ↗
7. Neuroevolution in deep neural networks: Current trends and future challenges10.1109/TAI.2021.3067574 ↗
8. An emotional learning-neuro-fuzzy inference approach for optimum training and forecasting of gas consumption estimation models with cognitive data10.1016/j.techfore.2014.01.009 ↗
9. Ding, J., Zhao, Y., and Jin, J. (2023). Forecasting natural gas consumption with multiple seasonal patterns. Appl. Energy, 337.10.1016/j.apenergy.2023.120911 ↗
10. Energy demand in pakistan: A disaggregate analysis
11. Modeling and forecasting industrial end-use natural gas consumption10.1016/j.eneco.2007.01.015 ↗
12. Backpropagation neural networks for modeling gasoline consumption10.1016/S0196-8904(02)00087-0 ↗
13. Modelling and forecasting the demand for natural gas in pakistan10.1016/j.rser.2015.04.154 ↗
14. Zhao, H., Zhou, Z., and Zhang, P. (2023). Forecasting of the short-term electricity load based on woa-bilstm. Int. J. Pattern Recognition Artif. Intell., 37.10.1142/S0218001423590188 ↗
15. Zhang, Y., Liu, J., and Shen, W. (2022). A review of ensemble learning algorithms used in remote sensing applications. Appl. Sci., 12.10.3390/app12178654 ↗
16. A comparative analysis of gradient boosting algorithms10.1007/s10462-020-09896-5 ↗
17. Svoboda, R., Kotik, V., and Platos, J. (2021). Short-term natural gas consumption forecasting from long-term data collection. Energy, 218.10.1016/j.energy.2020.119430 ↗
18. Ensemble methods: Bagging and random forests10.1038/nmeth.4438 ↗
19. Evolutionary bagging for ensemble learning10.1016/j.neucom.2022.08.055 ↗
20. Meira, E., Oliveira, F.L.C., and de Menezes, L.M. (2022). Forecasting natural gas consumption using bagging and modified regularization techniques. Energy Econ., 106.10.1016/j.eneco.2021.105760 ↗
21. Divina, F., Gilson, A., Goméz-Vela, F., Torres, M.G., and Torres, J.F. (2018). Stacking ensemble learning for short-term electricity consumption forecasting. Energies, 11.10.3390/en11040949 ↗
22. Zhou, Z.-H. (2014). Ensemble methods. Combining Pattern Classifiers, Wiley.
23. Zhou, Z.-H. (2012). Ensemble Methods: Foundations and Algorithms, CRC Press.10.1201/b12207 ↗
24. Papageorgiou, K.I., Poczeta, K., Papageorgiou, E., Gerogiannis, V.C., and Stamoulis, G. (2019). Exploring an ensemble of methods that combines fuzzy cognitive maps and neural networks in solving the time series prediction problem of gas consumption in greece. Algorithms, 12.10.3390/a12110235 ↗
25. Yang, Z., Keung, J., Kabir, M.A., Yu, X., Tang, Y., Zhang, M., and Feng, S. (2021). Acomnn: Attention enhanced compound neural network for financial time-series forecasting with cross-regional features. Appl. Soft Comput., 111.10.1016/j.asoc.2021.107649 ↗
26. Probabilistic residential load forecasting based on micrometeorological data and customer consumption pattern10.1109/TPWRS.2021.3051684 ↗
27. Exploring key weather factors from analytical modeling toward improved solar power forecasting10.1109/TSG.2017.2766022 ↗
28. Modeling and forecasting natural gas demand in bangladesh10.1016/j.enpol.2011.08.066 ↗
29. Tong, M., Qin, F., and Dong, J. (2023). Natural gas consumption forecasting using an optimized grey bernoulli model: The case of the world’s top three natural gas consumers. Eng. Appl. Artif. Intell., 122.10.1016/j.engappai.2023.106005 ↗
30. Omuya, E.O., Okeyo, G.O., and Kimwele, M.W. (2021). Feature selection for classification using principal component analysis and information gain. Expert Syst. Appl., 174.10.1016/j.eswa.2021.114765 ↗
31. Zhou, W., Liu, C., Yuan, P., and Jiang, L. (2024). An undersampling method approaching the ideal classification boundary for imbalance problems. Appl. Sci., 14.10.3390/app14135421 ↗
32. Shao, P., Zheng, B., Tang, X., Chen, C., and Hou, X. (2024). Diagnostic method for demagnetization fault of elevator synchronous traction machine based on informer. Int. J. Pattern Recognit. Artif.10.1142/S0218001424510078 ↗
33. Shams, S.R., Jahani, A., Kalantary, S., Moeinaddini, M., and Khorasani, N. (2021). The evaluation on artificial neural networks (ann) and multiple linear regressions (mlr) models for predicting so2 concentration. Urban Clim., 37.10.1016/j.uclim.2021.100837 ↗
34. An improved grid search algorithm to optimize svr for prediction10.1007/s00500-020-05560-w ↗
35. State of health prediction for lithium-ion batteries using multiple-view feature fusion and support vector regression ensemble10.1007/s13042-018-0865-y ↗
36. Lee, T., Kim, J.-H., Lee, S.-J., Ryu, S.-K., and Joo, B.-C. (2023). Improvement of concrete crack segmentation performance using stacking ensemble learning. Appl. Sci., 13.10.3390/app13042367 ↗
37. Abdellatif, A., Mubarak, H., Ahmad, S., Ahmed, T., Shafiullah, G., Hammoudeh, A., Abdellatef, H., Rahman, M., and Gheni, H.M. (2022). Forecasting photovoltaic power generation with a stacking ensemble model. Sustainability, 14.10.3390/su141711083 ↗
38. Erickson, B.J., and Kitamura, F. (2021). Magician’s corner: 9. performance metrics for machine learning models. Radiol. Artif. Intell., 3.10.1148/ryai.2021200126 ↗
39. Error metrics and performance fitness indicators for artificial intelligence and machine learning in engineering and sciences10.1007/s44150-021-00015-8 ↗
40. Xu, G., Chen, Y., Yang, M., Li, S., and Marma, K.J.S. (2023). An outlook analysis on china’s natural gas consumption forecast by 2035: Applying a seasonal forecasting method. Energy, 284.10.1016/j.energy.2023.128602 ↗