Submitted:
11 January 2025
Posted:
14 January 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- The hybrid Transformer-based model combines the self-attention mechanism with recurrent neural networks, improving load prediction accuracy and capturing long-term dependencies effectively.
- The key factors influencing load prediction, such as temperature and solar radiation, are evaluated through random forest, feature ranking, and SHAP analysis, improving both prediction accuracy and model interpretability.
- The proposed high-precision prediction model facilitates renewable energy integration and demonstrates adaptability across various regions and energy conditions.
2. Methodology
2.1. Data Analysis
2.2. Data Preprocessing
2.2.1. Feature Selection
2.2.2. Normalisation
2.3. Hybrid Model Development
2.3.1. Transformer
2.3.2. Recurrent Neural Network
2.3.3. Long Short Term Memory
2.3.4. Gated Recurrent Unit
2.4. Model Validation
2.4.1. Mean Squared Error (MSE) & Root Mean Squared Error (RMSE)
2.4.2. Mean Absolute Error (MAE)
2.4.3. Symmetric Mean Absolute Percentage Error (sMAPE)
3. Results
3.1. Model Performance and Comparison
3.2. Feature Importance
3.2.1. Temperature
3.2.2. Solar Radiation
3.2.3. Humidity
3.2.4. Seasonal Trends
4. Conclusions
References
- Chandrasekaran, R.; Paramasivan, S.K. Advances in deep learning techniques for short-term energy load forecasting applications: A review. Archives of Computational Methods in Engineering 2024, 1–30. [Google Scholar] [CrossRef]
- Shobeiry, S.M. AI-Enabled Modern Power Systems: Challenges, Solutions, and Recommendations. In Artificial Intelligence in the Operation and Control of Digitalized Power Systems; Springer, 2024; pp. 19–67. [Google Scholar]
- Liang, X. Emerging power quality challenges due to integration of renewable energy sources. IEEE Transactions on Industry Applications 2016, 53, 855–866. [Google Scholar] [CrossRef]
- 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. [Google Scholar] [CrossRef]
- Casolaro, A.; Capone, V.; Iannuzzo, G.; Camastra, F. Deep learning for time series forecasting: Advances and open problems. Information 2023, 14, 598. [Google Scholar] [CrossRef]
- Wang, C.; Wang, Y.; Ding, Z.; Zheng, T.; Hu, J.; Zhang, K. A transformer-based method of multienergy load forecasting in integrated energy system. IEEE Transactions on Smart Grid 2022, 13, 2703–2714. [Google Scholar] [CrossRef]
- Ran, P.; Dong, K.; Liu, X.; Wang, J. Short-term load forecasting based on CEEMDAN and Transformer. Electric Power Systems Research 2023, 214, 108885. [Google Scholar] [CrossRef]
- Wang, C.; Wang, Y.; Ding, Z.; Zhang, K. Probabilistic multi-energy load forecasting for integrated energy system based on Bayesian transformer network. IEEE Transactions on Smart Grid 2023. [Google Scholar] [CrossRef]
- Huy, P.C.; Minh, N.Q.; Tien, N.D.; Anh, T.T.Q. Short-term electricity load forecasting based on temporal fusion transformer model. Ieee Access 2022, 10, 106296–106304. [Google Scholar] [CrossRef]
- Sarker, M.A.A.; Shanmugam, B.; Azam, S.; Thennadil, S. Enhancing smart grid load forecasting: An attention-based deep learning model integrated with federated learning and XAI for security and interpretability. Intelligent Systems with Applications 2024, 23, 200422. [Google Scholar] [CrossRef]
- AEMO. Aggregated Price and Demand Data. Retrieved October 21, 2024, from https://aemo.com.au/en/energy-systems/electricity/national-electricity-market-nem/data-nem/aggregated-data, n.d.
- Crossing, V. Historical Weather Data & Weather Forecast Data. Retrieved October 21, 2024, fromurlhttps://www.visualcrossing.com/weather-data, n.d.
- Vaswani, A. Attention is all you need. Advances in Neural Information Processing Systems 2017. [Google Scholar]
- Han, K.; Xiao, A.; Wu, E.; Guo, J.; Xu, C.; Wang, Y. Transformer in transformer. Advances in neural information processing systems 2021, 34, 15908–15919. [Google Scholar]
- Dan, H.C.; Huang, Z.; Lu, B.; Li, M. Image-driven prediction system: Automatic extraction of aggregate gradation of pavement core samples integrating deep learning and interactive image processing framework. Construction and Building Materials 2024, 453, 139056. [Google Scholar] [CrossRef]
- Liu, D.; Lai, Z.; Wang, Y.; Wu, J.; Yu, Y.; Wan, Z.; Lengerich, B.; Wu, Y.N. Efficient Large Foundation Model Inference: A Perspective From Model and System Co-Design. 2024, arXiv:2409.01990. [Google Scholar]
- Sherstinsky, A. Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network. Physica D: Nonlinear Phenomena 2020, 404, 132306. [Google Scholar] [CrossRef]
- Dey, R.; Salem, F.M. Gate-variants of gated recurrent unit (GRU) neural networks. In Proceedings of the 2017 IEEE 60th international midwest symposium on circuits and systems (MWSCAS); IEEE, 2017; pp. 1597–1600. [Google Scholar]
- Chicco, D.; Warrens, M.J.; Jurman, G. The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation. Peerj computer science 2021, 7, e623. [Google Scholar] [CrossRef]
- Zor, K.; Buluş, K. A benchmark of GRU and LSTM networks for short-term electric load forecasting. In Proceedings of the 2021 International Conference on Innovation and Intelligence for Informatics, Computing, and Technologies (3ICT); IEEE, 2021; pp. 598–602. [Google Scholar]
- Xia, M.; Shao, H.; Ma, X.; De Silva, C.W. A stacked GRU-RNN-based approach for predicting renewable energy and electricity load for smart grid operation. IEEE Transactions on Industrial Informatics 2021, 17, 7050–7059. [Google Scholar] [CrossRef]
- Kong, W.; Dong, Z.Y.; Jia, Y.; Hill, D.J.; Xu, Y.; Zhang, Y. Short-term residential load forecasting based on LSTM recurrent neural network. IEEE transactions on smart grid 2017, 10, 841–851. [Google Scholar] [CrossRef]
- Ortega-Vazquez, M.A.; Kirschen, D.S. Economic impact assessment of load forecast errors considering the cost of interruptions. In Proceedings of the 2006 IEEE power engineering society general meeting. IEEE; 2006; p. 8. [Google Scholar]
- Santamouris, M.; Cartalis, C.; Synnefa, A.; Kolokotsa, D. On the impact of urban heat island and global warming on the power demand and electricity consumption of buildings—A review. Energy and buildings 2015, 98, 119–124. [Google Scholar] [CrossRef]









| Model | MSE | RSME | MAE | sMAPE |
| LSTM-GRU | 0.0118 | 0.1086 | 0.0857 | 21.04 |
| GRU-RNN | 0.0091 | 0.0954 | 0.0722 | 18.57 |
| LSTM-RNN | 0.0076 | 0.0872 | 0.0622 | 15.94 |
| LSTM-TF | 0.0096 | 0.0978 | 0.0722 | 18.25 |
| GRU-TF | 0.0074 | 0.0859 | 0.0612 | 15.73 |
| RNN-TF | 0.0066 | 0.0811 | 0.0581 | 15.09 |
| Rank | Random Forest | Permutation Importance | SHAP |
|---|---|---|---|
| 1 | Temp | Temp | Temp |
| 2 | Tempmax | Solar Radiation | Tempmax |
| 3 | Solar Radiation | Tempmax | Solar Radiation |
| 4 | Humidity | Humidity | Humidity |
| 5 | Wind Direction | Cloud Cover | Precipitation |
| 6 | Cloud Cover | TempMin | Cloud Cover |
| 7 | TempMin | Precipitation | Wind Speed |
| 8 | Wind Speed | Wind Speed | TempMin |
| 9 | Precipitation | Wind Direction | Wind Direction |
| 10 | UV Index | UV Index | UV Index |
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. |
© 2025 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 (http://creativecommons.org/licenses/by/4.0/).