A Hybrid Stacking Model for Enhanced Short-Term Load Forecasting
Abstract
:1. Introduction
- Based on different AI models’ complementary strengths in handling nonlinear relationships, long-term dependencies, and temporal feature extraction, our model outperformed five single AI models (ANN, XgBoost, LSTM, two-layer LSTM, and Bi-LSTM) and two hybrid models (ANN-WNN and LSTM-XgBoost).
- To address the varying load characteristics in different regions, we enhanced the prediction accuracy under both stable and unstable load conditions.
- We integrated external factors to simulate real-world conditions and maintain high accuracy, such as minimum and maximum temperature, electricity price, and rainfall level.
- We validated the novel application of the stacking technique by integrating a broader diversity of AI models, thus demonstrating its superior capability in improving prediction accuracy.
2. Literature Review
2.1. Statistical Models
2.2. Artificial Intelligence Models
2.3. Hybrid Models
3. Methodology and Framework
3.1. Related Methodology
3.1.1. XgBoost
- 1:
- The sample weights and model parameters are first initialized by assigning the same weights to all samples in the training set.
- 2:
- We need to use Equation (1) to calculate the classification error rate at each iteration:
- 3:
- In the iteration, we need to calculte the weight of the sample using Equation (2):
- 4:
- Training XgBoost involves reducing the loss of the dataset’s goal function. To balance the decay of the goal function with the model’s complexity, a second-order Taylor expansion is performed on the loss function, and a regular term is added to the objective function to prevent overfitting. Equation (3) is used to compute the objective function:
- 5:
- As for the complexity, we use Equation (4) to calculate it:
3.1.2. LSTM
- Forget Gate:
- Input Gate:
- Cell Status:
- Output Gate:
3.1.3. Stacked LSTM
3.1.4. Bi-LSTM
3.1.5. Lasso Regression
3.1.6. Stacking Technique
3.2. The Framework of the Proposed Model
- Transforming the training dataset using the min–max normalization. Standardizing the scaling of data is essential for reducing the likelihood of irregularities caused by heterogeneous data ranges.
- Individually applying the four fundamental models to generate predictive outputs. These outputs are then merged to produce a comprehensive set of input features for the metamodel to train.
- Adopting the min–max normalization for combined input features. It ensures that the input features presented to the metamodel are scaled appropriately, thereby improving the accuracy and reliability of final output predictions.
- Utilizing the metamodel to generate the final prediction. The prediction is based on the input features that have been processed.
- Validating the final prediction result according to the MAPE based on the testing dataset. It is helpful for evaluating the accuracy of the proposed model.
3.3. Measurement Method
4. Performance Evaluation
4.1. Data Exploration and Preprocessing
4.2. Experimental Results
4.2.1. Australia Dataset Experiments
4.2.2. Spain Dataset Experiments
5. Discussion
5.1. The Effect on Economy
5.2. The Effect on Power Grid
5.3. Limitations and Recommendations
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
STLF | Short-Term Load Forecasting |
AI | Artificial Intelligence |
ARIMA | Autoregressive Integrated Moving Average |
ARIMAX | Autoregressive Integrated Moving Average with Explanatory Variable |
KF | Kalman Filter |
GOA | Grasshopper Optimization Algorithm |
LSTM | Long Short-Term Memory Network |
MAPE | Mean Absolute Percentage Error |
SARIMA | Seasonal Autoregressive Integrated Moving Average |
GRNN | Generalized Regression Neural Network |
ELM | Extreme Learning Machine |
ANN | Artificial Neural Network |
WNN | Wavelet Neural Network |
SVM | Support Vector Machine |
SVN | Support Vector Network |
SVR | Support Vector Regression |
DNN | Deep Neural Network |
PCR | Principal Component Regression |
References
- Peng, L.; Lv, S.X.; Wang, L.; Wang, Z.Y. Effective electricity load forecasting using enhanced double-reservoir echo state network. Eng. Appl. Artif. Intell. 2021, 99, 104132. [Google Scholar] [CrossRef]
- Fan, G.F.; Zhang, L.Z.; Yu, M.; Hong, W.C.; Dong, S.Q. Applications of random forest in multivariable response surface for short-term load forecasting. Int. J. Electr. Power Energy Syst. 2022, 139, 108073. [Google Scholar] [CrossRef]
- Yang, D.; e Guo, J.; Sun, S.; Han, J.; Wang, S. An interval decomposition-ensemble approach with data-characteristic-driven reconstruction for short-term load forecasting. Appl. Energy 2022, 306, 117992. [Google Scholar] [CrossRef]
- Habbak, H.; Mahmoud, M.; Metwally, K.; Fouda, M.M.; Ibrahem, M.I. Load Forecasting Techniques and Their Applications in Smart Grids. Energies 2023, 16, 1480. [Google Scholar] [CrossRef]
- Maldonado, S.; González, A.; Crone, S. Automatic time series analysis for electric load forecasting via support vector regression. Appl. Soft Comput. 2019, 83, 105616. [Google Scholar] [CrossRef]
- Sharma, S.; Majumdar, A.; Elvira, V.; Chouzenoux, E. Blind Kalman filtering for short-term load forecasting. IEEE Trans. Power Syst. 2020, 35, 4916–4919. [Google Scholar] [CrossRef]
- Sheshadri, G.S. Electrical load forecasting using time series analysis. In Proceedings of the 2020 IEEE Bangalore Humanitarian Technology Conference, Vijiyapur, India, 8–10 October 2020; pp. 1–6. [Google Scholar]
- Nepal, B.; Yamaha, M.; Yokoe, A.; Yamaji, T. Electricity load forecasting using clustering and ARIMA model for energy management in buildings. Jpn. Archit. Rev. 2020, 3, 62–76. [Google Scholar] [CrossRef]
- Ye, N.; Liu, Y.; Wang, Y. Short-term power load forecasting based on SVM. In Proceedings of the World Automation Congress 2012, Puerto Vallarta, Mexico, 24–28 June 2012; pp. 47–51. [Google Scholar]
- Xu, J. Research on power load forecasting based on machine learning. In Proceedings of the 2020 7th International Forum on Electrical Engineering and Automation (IFEEA), Heifei, China, 25–27 September 2020; pp. 562–567. [Google Scholar]
- Deng, X.; Ye, A.; Zhong, J.; Xu, D.; Yang, W.; Song, Z.; Zhang, Z.; Guo, J.; Wang, T.; Tian, Y.; et al. Bagging–XGBoost algorithm based extreme weather identification and short-term load forecasting model. Energy Rep. 2022, 8, 8661–8674. [Google Scholar] [CrossRef]
- Hossain, M.S.; Mahmood, H. Short-term load forecasting using an LSTM neural network. In Proceedings of the 2020 IEEE Power and Energy Conference at Illinois (PECI), Champaign, IL, USA, 27–28 February 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–6. [Google Scholar]
- Mughees, N.; Mohsin, S.A.; Mughees, A.; Mughees, A. Deep sequence to sequence Bi-LSTM neural networks for day-ahead peak load forecasting. Expert Syst. Appl. 2021, 175, 114844. [Google Scholar] [CrossRef]
- Atef, S.; Eltawil, A.B. Assessment of stacked unidirectional and bidirectional long short-term memory networks for electricity load forecasting. Electr. Power Syst. Res. 2020, 187, 106489. [Google Scholar] [CrossRef]
- Ren, H.; Li, Q.; Wu, Q.; Zhang, C.; Dou, Z.; Chen, J. Joint forecasting of multi-energy loads for a university based on copula theory and improved LSTM network. Energy Rep. 2022, 8, 605–612. [Google Scholar] [CrossRef]
- Zhao, X.; Li, Q.; Xue, W.; Zhao, Y.; Zhao, H.; Guo, S. Research on ultra-short-term load forecasting based on real-time electricity price and window-based XGBoost model. Energies 2022, 15, 7367. [Google Scholar] [CrossRef]
- Aly, H.H. A proposed intelligent short-term load forecasting hybrid models of ANN, WNN and KF based on clustering techniques for smart grid. Electr. Power Syst. Res. 2020, 182, 106191. [Google Scholar] [CrossRef]
- Li, C.; Chen, Z.; Liu, J.; Li, D.; Gao, X.; Di, F.; Li, L.; Ji, X. Power load forecasting based on the combined model of LSTM and XGBoost. In Proceedings of the 2019 the International Conference on Pattern Recognition and Artificial Intelligence, Wenzhou China, 26–28 August 2019; PRAI ’19; Association for Computing Machinery: New York, NY, USA, 2019; pp. 46–51. [Google Scholar]
- Tan, Z.; Zhang, J.; He, Y.; Zhang, Y.; Xiong, G.; Liu, Y. Short-term load forecasting based on integration of SVR and stacking. IEEE Access 2020, 8, 227719–227728. [Google Scholar] [CrossRef]
- Moon, J.; Jung, S.; Rew, J.; Rho, S.; Hwang, E. Combination of short-term load forecasting models based on a stacking ensemble approach. Energy Build. 2020, 216, 109921. [Google Scholar] [CrossRef]
- Barman, M.; Dev Choudhury, N.; Sutradhar, S. A regional hybrid GOA-SVM model based on similar day approach for short-term load forecasting in Assam, India. Energy 2018, 145, 710–720. [Google Scholar] [CrossRef]
- El-Hendawi, M.; Wang, Z. An ensemble method of full wavelet packet transform and neural network for short term electrical load forecasting. Electr. Power Syst. Res. 2020, 182, 106265. [Google Scholar] [CrossRef]
- Li, J.; Deng, D.; Zhao, J.; Cai, D.; Hu, W.; Zhang, M.; Huang, Q. A novel hybrid short-term load forecasting method of smart grid using MLR and LSTM neural network. IEEE Trans. Ind. Inform. 2021, 17, 2443–2452. [Google Scholar] [CrossRef]
- Tayab, U.B.; Zia, A.; Yang, F.; Lu, J.; Kashif, M. Short-term load forecasting for microgrid energy management system using hybrid HHO-FNN model with best-basis stationary wavelet packet transform. Energy 2020, 203, 117857. [Google Scholar] [CrossRef]
- Azeem, A.; Ismail, I.; Jameel, S.M.; Harindran, V.R. Electrical load forecasting models for different generation modalities: A review. IEEE Access 2021, 9, 142239–142263. [Google Scholar]
- Akhtar, S.; Shahzad, S.; Zaheer, A.; Ullah, H.S.; Kilic, H.; Gono, R.; Jasiński, M.; Leonowicz, Z. Short-Term Load Forecasting Models: A Review of Challenges, Progress, and the Road Ahead. Energies 2023, 16, 60. [Google Scholar] [CrossRef]
- Yin, C.; Mao, S. Fractional multivariate grey Bernoulli model combined with improved grey wolf algorithm: Application in short-term power load forecasting. Energy 2023, 269, 126844. [Google Scholar] [CrossRef]
- Massaoudi, M.; Refaat, S.S.; Chihi, I.; Trabelsi, M.; Oueslati, F.S.; Abu-Rub, H. A novel stacked generalization ensemble-based hybrid LGBM-XGB-MLP model for short-term load forecasting. Energy 2021, 214, 118874. [Google Scholar] [CrossRef]
- Moradzadeh, A.; Mansour-Saatloo, A.; Nazari-Heris, M.; Mohammadi-Ivatloo, B.; Asadi, S. Introduction and literature review of the application of machine learning/deep learning to load forecasting in power system. In Application of Machine Learning and Deep Learning Methods to Power System Problems; Springer: Berlin/Heidelberg, Germany, 2021; pp. 119–135. [Google Scholar]
- Ni, H.; Meng, S.; Geng, X.; Li, P.; Li, Z.; Chen, X.; Wang, X.; Zhang, S. Time Series Modeling for Heart Rate Prediction: From ARIMA to Transformers. arXiv 2024, arXiv:2406.12199. [Google Scholar]
- Xiao, X.; Mo, H.; Zhang, Y.; Shan, G. Meta-ANN—A dynamic artificial neural network refined by meta-learning for short-term load forecasting. Energy 2022, 246, 123418. [Google Scholar] [CrossRef]
- Solyali, D. A comparative analysis of machine learning approaches for short-/long-term electricity load forecasting in Cyprus. Sustainability 2020, 12, 3612. [Google Scholar] [CrossRef]
- Wu, Z.; Zhao, X.; Ma, Y.; Zhao, X. A hybrid model based on modified multi-objective cuckoo search algorithm for short-term load forecasting. Appl. Energy 2019, 237, 896–909. [Google Scholar] [CrossRef]
- Moradzadeh, A.; Zakeri, S.; Shoaran, M.; Mohammadi-Ivatloo, B.; Mohammadi, F. Short-term load forecasting of microgrid via hybrid support vector regression and long short-term memory algorithms. Sustainability 2020, 12, 7076. [Google Scholar] [CrossRef]
- Chen, T.; Guestrin, C. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; KDD ’16; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
- Suo, G.; Song, L.; Dou, Y.; Cui, Z. Multi-dimensional short-term load forecasting based on XGBoost and fireworks algorithm. In Proceedings of the 2019 18th International Symposium on Distributed Computing and Applications for Business Engineering and Science (DCABES), Xuzhou, China, 8–10 November 2019; pp. 245–248. [Google Scholar]
- Nobre, J.; Neves, R.F. Combining principal component analysis, discrete wavelet transform and XGBoost to trade in the financial markets. Expert Syst. Appl. 2019, 125, 181–194. [Google Scholar] [CrossRef]
- Lv, L.; Wu, Z.; Zhang, J.; Zhang, L.; Tan, Z.; Tian, Z. A VMD and LSTM based hybrid model of load forecasting for power grid security. IEEE Trans. Ind. Inform. 2022, 18, 6474–6482. [Google Scholar] [CrossRef]
- Li, Z.; Yu, H.; Xu, J.; Liu, J.; Mo, Y. Stock market analysis and prediction using LSTM: A case study on technology stocks. Innov. Appl. Eng. Technol. 2023, 2, 1–6. [Google Scholar] [CrossRef]
- Patterson, J.; Gibson, A. Deep Learning: A Practitioner’s Approach; O’Reilly Media, Inc.: Sebastopol, CA, USA, 2017. [Google Scholar]
- Tibshirani, R. Regression shrinkage and selection via the Lasso. J. R. Stat. Soc. Ser. B 1996, 58, 267–288. [Google Scholar] [CrossRef]
- Kozlov, A. Daily Electricity Price and Demand Data. 2020. Available online: https://www.kaggle.com/datasets/aramacus/electricity-demand-in-victoria-australia (accessed on 1 January 2024).
- Jhana, N. Hourly Energy Demand Generation and Weather. 2019. Available online: https://www.researchgate.net/profile/Riyas-Hamsath-Mohammed-Khan/publication/374415434_Hourly_energy_demand_generation_and_weather_Electrical_demand_generation_by_type_prices_and_weather_in_Spain/links/651c5388b0df2f20a20ae18a/Hourly-energy-demand-generation-and-weather-Electrical-demand-generation-by-type-prices-and-weather-in-Spain.pdf (accessed on 1 January 2024).
- Li, S.; Kong, X.; Yue, L.; Liu, C.; Khan, M.A.; Yang, Z.; Zhang, H. Short-term electrical load forecasting using hybrid model of manta ray foraging optimization and support vector regression. J. Clean. Prod. 2023, 388, 135856. [Google Scholar] [CrossRef]
- Son, J.; Cha, J.; Kim, H.; Wi, Y.M. Day-ahead short-term load forecasting for holidays based on modification of similar days’ load profiles. IEEE Access 2022, 10, 17864–17880. [Google Scholar] [CrossRef]
- Ribeiro, M.H.D.M.; da Silva, R.G.; Moreno, S.R.; Canton, C.; Larcher, J.H.K.; Stefenon, S.F.; Mariani, V.C.; Coelho, L.d.S. Variational mode decomposition and bagging extreme learning machine with multi-objective optimization for wind power forecasting. Appl. Intell. 2024, 54, 3119–3134. [Google Scholar] [CrossRef]
- Li, Y.; Ni, M.; Lu, Y. Insulator defect detection for power grid based on light correction enhancement and YOLOv5 model. Energy Rep. 2022, 8, 807–814. [Google Scholar] [CrossRef]
Features | Description |
---|---|
Min-temperature | Minimum temperature during the day (°C) |
Max-temperature | Maximum temperature during the day (°C) |
Rainfall | Daily rainfall in mm |
Daily price | The average price per MWh/$ |
Load | The total daily electricity demand in MWh |
Models | MAPE (%) |
---|---|
ANN | 10.98 |
XgBoost | 7.45 |
LSTM | 7.37 |
Stacked LSTM | 6.70 |
Bi-LSTM | 6.60 |
LSTM–XgBoost | 7.07 |
ANN–WNN | 11.02 |
Proposed | 5.99 |
Models | MAPE (%) |
---|---|
ANN | 10.27 |
XgBoost | 9.87 |
LSTM | 9.43 |
Stacked LSTM | 8.10 |
Bi-LSTM | 8.14 |
LSTM–XgBoost | 9.33 |
ANN–WNN | 8.83 |
Proposed | 7.80 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Guo, F.; Mo, H.; Wu, J.; Pan, L.; Zhou, H.; Zhang, Z.; Li, L.; Huang, F. A Hybrid Stacking Model for Enhanced Short-Term Load Forecasting. Electronics 2024, 13, 2719. https://doi.org/10.3390/electronics13142719
Guo F, Mo H, Wu J, Pan L, Zhou H, Zhang Z, Li L, Huang F. A Hybrid Stacking Model for Enhanced Short-Term Load Forecasting. Electronics. 2024; 13(14):2719. https://doi.org/10.3390/electronics13142719
Chicago/Turabian StyleGuo, Fusen, Huadong Mo, Jianzhang Wu, Lei Pan, Hailing Zhou, Zhibo Zhang, Lin Li, and Fengling Huang. 2024. "A Hybrid Stacking Model for Enhanced Short-Term Load Forecasting" Electronics 13, no. 14: 2719. https://doi.org/10.3390/electronics13142719
APA StyleGuo, F., Mo, H., Wu, J., Pan, L., Zhou, H., Zhang, Z., Li, L., & Huang, F. (2024). A Hybrid Stacking Model for Enhanced Short-Term Load Forecasting. Electronics, 13(14), 2719. https://doi.org/10.3390/electronics13142719