CNN-Attention-Based Renewable Energy Generation and Load Forecasting Method for Stable Operation of Smart Grids

Authors

  • Wei Luo Nanjing University of Science and Technology ZiJin College image/svg+xml

DOI:

https://doi.org/10.4108/ew.13260

Keywords:

smart grid, renewable energy forecasting, load forecasting, CNN-Attention, hybrid energy storage, rolling optimization, grid stability

Abstract

High renewable penetration increases source-load uncertainty and challenges the stable operation of smart grids. This paper proposes a prediction-driven framework that integrates CNN-Attention-based joint renewable generation and load forecasting with rolling optimization of a battery–supercapacitor hybrid energy storage system. The main innovation lies in coupling source-load forecasting with hybrid energy storage dispatch, so that predicted renewable generation and load trajectories can directly support rolling scheduling decisions. Multi-source temporal inputs, including wind power, photovoltaic power, load demand, meteorological variables, electricity price, and periodic time encodings, are used to characterize source-load coupling. One-dimensional convolution extracts local fluctuation features, while temporal attention assigns adaptive weights to informative historical periods. In the dispatch stage, the battery mainly undertakes low-frequency energy balancing, whereas the supercapacitor suppresses high-frequency power fluctuations. The optimization objective jointly considers grid purchase cost, storage degradation cost, renewable curtailment penalty, load shedding penalty, and grid power fluctuation penalty. Experiments were conducted on one-year operational data from a regional wind–photovoltaic–storage microgrid, with a 15-min sampling interval and 35,040 time steps. Compared with LSTM, GRU, CNN, CNN-LSTM, and Transformer baselines, the proposed model achieved the lowest forecasting errors, with MAE/RMSE/MAPE of 6.692 kW/8.322 kW/3.288% for renewable generation and 3.747 kW/4.490 kW/0.406% for load forecasting. At the dispatch level, the proposed strategy reduced the total operating cost index to 360, decreased grid power fluctuation to 3.4%, improved renewable accommodation to 90.6%, and lowered curtailment to 2.8%.

Downloads

Download data is not yet available.

References

[1] Aslam S, Herodotou H, Mohsin S M, Javaid N, Ashraf N, Aslam S. A survey on deep learning methods for power load and renewable energy forecasting in smart microgrids[J]. Renewable and Sustainable Energy Reviews, 2021, 144: 110992.

[2] Alkhayat G, Mehmood R. A review and taxonomy of wind and solar energy forecasting methods based on deep learning[J]. Energy and AI, 2021, 4: 100060.

[3] Eren Y, Küçükdemiral İ B. A comprehensive review on deep learning approaches for short-term load forecasting[J]. Renewable and Sustainable Energy Reviews, 2024, 189: 114031.

[4] Ahmad N, Ghadi Y Y, Adnan M, Ali M. Load forecasting techniques for power system: Research challenges and survey[J]. IEEE Access, 2022, 10: 71054-71090.

[5] Wazirali R, Yaghoubi E, Abujazar M S S, Ahmad R, Vakili A H. State-of-the-art review on energy and load forecasting in microgrids using artificial neural networks, machine learning, and deep learning techniques[J]. Electric Power Systems Research, 2023, 225: 109792.

[6] Jurado Egas M F, Samper M E, Rosés R E. An improved encoder-decoder-based CNN model for probabilistic short-term load and PV forecasting[J]. Electric Power Systems Research, 2023, 217: 109153.

[7] Hochreiter S, Schmidhuber J. Long short-term memory[J]. Neural Computation, 1997, 9(8): 1735-1780.

[8] Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez A N, Kaiser Ł, Polosukhin I. Attention is all you need[C]//Advances in Neural Information Processing Systems. 2017, 30.

[9] Olabi A G, Onumaegbu C, Wilberforce T, Ramadan M, Abdelkareem M A, Al-Alami A H. Critical review of energy storage systems[J]. Energy, 2021, 214: 118987.

[10] Lin X, Zamora R. Controls of hybrid energy storage systems in microgrids: Critical review, case study and future trends[J]. Journal of Energy Storage, 2022, 47: 103884.

[11] Parisio A, Rikos E, Glielmo L. A model predictive control approach to microgrid operation optimization[J]. IEEE Transactions on Control Systems Technology, 2014, 22(5): 1813-1827.

[12] Hu J, Shan Y, Guerrero J M, Ioinovici A, Chan K W, Rodriguez J. Model predictive control of microgrids: An overview[J]. Renewable and Sustainable Energy Reviews, 2021, 136: 110422.

[13] Wang S, Ma C, Gao H, Deng D, Fernandez C, Blaabjerg F. Improved hyperparameter Bayesian optimization-bidirectional long short-term memory optimization for high-precision battery state of charge estimation[J]. Energy, 2025, 328: 136598.

[14] Wang S, Fu Y, Zhang W, Fernandez C, Blaabjerg F. Review on improved neural network algorithms for battery state of energy estimation in smart grids[J]. Renewable and Sustainable Energy Reviews, 2026, 231: 116797.

[15] Wang S, Gao H, Takyi-Aninakwa P, Guerrero J M, Fernandez C, Huang Q. Improved multiple feature-electrochemical thermal coupling modeling of lithium-ion batteries at low-temperature with real-time coefficient correction[J]. Protection and Control of Modern Power Systems, 2024, 9(3): 157-173.

[16] Al-Ismail F S. DC microgrid planning, operation, and control: A comprehensive review[J]. IEEE Access, 2021, 9: 36154-36172.

[17] Hirsch A, Parag Y, Guerrero J. Microgrids: A review of technologies, key drivers, and outstanding issues[J]. Renewable and Sustainable Energy Reviews, 2018, 90: 402-411.

[18] Tobajas J, Garcia-Torres F, Roncero-Sánchez P, Vázquez J, Bellatreche L, Nieto E. Resilience-oriented schedule of microgrids with hybrid energy storage system using model predictive control[J]. Applied Energy, 2022, 306: 118092.

[19] Li S, Zhu J, Dong H, Zhu H, Fan J. A novel rolling optimization strategy considering grid-connected power fluctuations smoothing for renewable energy microgrids[J]. Applied Energy, 2022, 309: 118441.

[20] LeCun Y, Bottou L, Bengio Y, Haffner P. Gradient-based learning applied to document recognition[J]. Proceedings of the IEEE, 1998, 86(11): 2278-2324.

[21] Lim B, Arik S Ö, Loeff N, Pfister T. Temporal fusion transformers for interpretable multi-horizon time series forecasting[J]. International Journal of Forecasting, 2021, 37(4): 1748-1764.

[22] Zhou H, Zhang S, Peng J, Zhang S, Li J, Xiong H, Zhang W. Informer: Beyond efficient transformer for long sequence time-series forecasting[C]//Proceedings of the AAAI Conference on Artificial Intelligence. 2021, 35(12): 11106-11115.

[23] Oreshkin B N, Carpov D, Chapados N, Bengio Y. N-BEATS: Neural basis expansion analysis for interpretable time series forecasting[J]. International Journal of Forecasting, 2020, 36(3): 1187-1204.

[24] Budiman F N, Ramli M A M, Milyani A H, Bouchekara H R E H, Rawa M, Muktiadji R F, Seedahmed M M A. Stochastic optimization for the scheduling of a grid-connected microgrid with a hybrid energy storage system considering multiple uncertainties[J]. Energy Reports, 2022, 8: 7444-7456.

[25] Mohseni S, Brent A C. Probabilistic sizing and scheduling co-optimisation of hybrid battery/super-capacitor energy storage systems in micro-grids[J]. Journal of Energy Storage, 2023, 73: 109172.

[26] Babaei M R, Ghasemi-Marzbali A, Abbasalizadeh S. Control of a combined battery/supercapacitor storage system for DC microgrid application[J]. Journal of Energy Storage, 2024, 96: 112675.

[27] Chekira O, Boujoudar Y, El Moussaoui H, Boharb A, Lamhamdi T, El Markhi H. An improved microgrid energy management system based on hybrid energy storage system using ANN NARMA-L2 controller[J]. Journal of Energy Storage, 2024, 98: 113096.

[28] Gugulothu R, Nagu B, Pullaguram D, Babu B C. Optimal coordinated energy management strategy for standalone solar photovoltaic system with hybrid energy storage[J]. Journal of Energy Storage, 2023, 67: 107628.

[29] Xu C, Chen G. Interpretable transformer-based model for probabilistic short-term forecasting of residential net load[J]. International Journal of Electrical Power & Energy Systems, 2024, 155: 109515.

[30] Fang B, Xu L, Luo Y, Luo Z, Li W. A method for short-term electric load forecasting based on the FMLP-iTransformer model[J]. Energy Reports, 2024, 12: 3405-3411.

[31] Salinas D, Flunkert V, Gasthaus J, Januschowski T. DeepAR: Probabilistic forecasting with autoregressive recurrent networks[J]. International Journal of Forecasting, 2020, 36(3): 1181-1191.

[32] 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[J]. Energies, 2023, 16(10): 4060.

Downloads

Published

13-08-2026

Issue

Section

AI-Powered Hybrid Energy Storage Optimization for Grid Cost-Efficiency and Stability

How to Cite

1.
Luo W. CNN-Attention-Based Renewable Energy Generation and Load Forecasting Method for Stable Operation of Smart Grids. EAI Endorsed Trans Energy Web [Internet]. 2026 Aug. 13 [cited 2026 Aug. 13];13. Available from: https://publications.eai.eu/index.php/ew/article/view/13260