Near Real-Time Photovoltaic Power Forecasting Through Recurrent Neural Network Using Timely Open-Access Data
Abstract
1. Introduction
- Both input data for the training phase and for the near real-time application can be freely accessed as they come from open repositories, and this guarantees the complete reproducibility of the model. Hence, the algorithm can be trained for other PV plants and, after proper re-training, can be used to effectively forecast PV power production also on other plants. Further, this aspect makes it possible to avoid relying on forecasts of meteorological variables whose availability is limited (e.g., NWP models);
- Input data are available with a timeliness adequate to allow for hourly forecast updates. Consequently, the proposed algorithm is suitable for practical deployment, since it can be used in near real-time, for instance, to input reliable and updated power production forecasts into EMSs.
2. Methodology
2.1. Input Data
- During each iteration of the inner loop, both the seasonal and trend components are updated once. First, seasonal smoothing is applied to update the seasonal term, subsequently the trend smoothing updates the trend component. Smoothing is performed utilizing the LOESS regression, i.e., a methodology to estimate a smooth function that captures the underlying relationship between a variable and a response variable , given a set of noisy observations . The core idea is that, for each point , LOESS fits a weighted least squares regression using nearby points. Therefore, points closer to receive higher weights, and distant points receive lower weights. To compute a positive integer , representing the bandwidth, i.e., the maximum distance for which points are included in the local regression, is first chosen. The values of that are closest to are selected, and each is given a weight based on its distance from , assigned using the tricube function. Then a polynomial of degree is fitted to the data, with . The estimated value at is .
- By applying this procedure to every data point, the resulting output is the smoothed curve .
- Each iteration of the outer loop includes a complete execution of the inner loop, followed by the computation of robustness weights. These weights are then utilized in the inner-loop run to lessen the impact of irregularities on the trend and seasonal components. Such weights indicate how extreme the residual term is.
2.2. Algorithm
3. Case Study
3.1. Input Data
3.2. Model Selection
4. Results
4.1. Algorithm Performance on the Test Set
4.2. Algorithm Performance in near Real-Time
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- IEA World Energy Outlook 2024. Available online: https://www.iea.org/reports/world-energy-outlook-2024 (accessed on 24 March 2025).
- European Commission Directive (EU). 2023/2413 of the European Parliament and of the Council of 18 October 2023 Amending Directive (EU) 2018/2001, Regulation (EU) 2018/1999 and Directive 98/70/EC as Regards the Promotion of Energy from Renewable Sources, and Repealing Council Directive (EU) 2015/652 2023. Available online: https://eur-lex.europa.eu/eli/dir/2023/2413/oj/eng (accessed on 24 March 2025).
- Al-Dahidi, S.; Madhiarasan, M.; Al-Ghussain, L.; Abubaker, A.M.; Ahmad, A.D.; Alrbai, M.; Aghaei, M.; Alahmer, H.; Alahmer, A.; Baraldi, P. Forecasting Solar Photovoltaic Power Production: A Comprehensive Review and Innovative Data-Driven Modeling Framework. Energies 2024, 17, 4145. [Google Scholar] [CrossRef]
- Tahir, M.F.; Yousaf, M.Z.; Tzes, A.; El Moursi, M.S.; El-Fouly, T.H. Enhanced Solar Photovoltaic Power Prediction Using Diverse Machine Learning Algorithms with Hyperparameter Optimization. Renew. Sustain. Energy Rev. 2024, 200, 114581. [Google Scholar] [CrossRef]
- Fusco, A.; Gioffrè, D.; Castelli, A.F.; Bovo, C.; Martelli, E. A Multi-Stage Stochastic Programming Model for the Unit Commitment of Conventional and Virtual Power Plants Bidding in the Day-Ahead and Ancillary Services Markets. Appl. Energy 2023, 336, 120739. [Google Scholar] [CrossRef]
- Rosini, A.; Minetti, M.; Denegri, G.B.; Invernizzi, M. Reactive Power Sharing Analysis in Islanded AC Microgrids. In Proceedings of the 2019 IEEE International Conference on Environment and Electrical Engineering and 2019 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe), Genova, Italy, 11–14 June 2019; pp. 1–6. [Google Scholar]
- Moretti, L.; Martelli, E.; Manzolini, G. An Efficient Robust Optimization Model for the Unit Commitment and Dispatch of Multi-Energy Systems and Microgrids. Appl. Energy 2020, 261, 113859. [Google Scholar] [CrossRef]
- Eyimaya, S.E.; Altin, N. Review of Energy Management Systems in Microgrids. Appl. Sci. 2024, 14, 1249. [Google Scholar] [CrossRef]
- Moazzen, F.; Hossain, M. A Two-Layer Strategy for Sustainable Energy Management of Microgrid Clusters with Embedded Energy Storage System and Demand-Side Flexibility Provision. Appl. Energy 2025, 377, 124659. [Google Scholar] [CrossRef]
- Hategan, S.-M.; Stefu, N.; Petreus, D.; Szilagyi, E.; Patarau, T.; Paulescu, M. Short-Term Forecasting of PV Power Based on Aggregated Machine Learning and Sky Imagery Approaches. Energy 2025, 316, 134595. [Google Scholar] [CrossRef]
- Pereira, S.; Canhoto, P.; Oozeki, T.; Salgado, R. Comprehensive Approach to Photovoltaic Power Forecasting Using Numerical Weather Prediction Data and Physics-Based Models and Data-Driven Techniques. Renew. Energy 2025, 251, 123495. [Google Scholar] [CrossRef]
- Sapundzhi, F.; Chikalov, A.; Georgiev, S.; Georgiev, I. Predictive Modeling of Photovoltaic Energy Yield Using an ARIMA Approach. Appl. Sci. 2024, 14, 11192. [Google Scholar] [CrossRef]
- Li, P.; Luo, Y.; Xia, X.; Shi, W.; Zheng, J.; Liao, Z.; Gao, X.; Chang, R. Advancing Photovoltaic Panel Temperature Forecasting: A Comparative Study of Numerical Simulation and Machine Learning in Two Types of PV Power Plant. Renew. Energy 2024, 237, 121602. [Google Scholar] [CrossRef]
- Kothona, D.; Spyropoulos, K.; Valelis, C.; Koutsis, C.; Chatzisavvas, K.C.; Christoforidis, G.C. Deep Learning Forecasting Tool Facilitating the Participation of Photovoltaic Systems into Day-Ahead and Intra-Day Electricity Markets. Sustain. Energy Grids Netw. 2023, 36, 101149. [Google Scholar] [CrossRef]
- Aslam, M.; Lee, S.-J.; Khang, S.-H.; Hong, S. Two-Stage Attention over LSTM with Bayesian Optimization for Day-Ahead Solar Power Forecasting. IEEE Access 2021, 9, 107387–107398. [Google Scholar] [CrossRef]
- Hu, Z.; Gao, Y.; Ji, S.; Mae, M.; Imaizumi, T. Improved Multistep Ahead Photovoltaic Power Prediction Model Based on LSTM and Self-Attention with Weather Forecast Data. Appl. Energy 2024, 359, 122709. [Google Scholar] [CrossRef]
- Zhai, C.; He, X.; Cao, Z.; Abdou-Tankari, M.; Wang, Y.; Zhang, M. Photovoltaic Power Forecasting Based on VMD-SSA-Transformer: Multidimensional Analysis of Dataset Length, Weather Mutation and Forecast Accuracy. Energy 2025, 324, 135971. [Google Scholar] [CrossRef]
- Gao, X.; Zang, Y.; Ma, Q.; Liu, M.; Cui, Y.; Dang, D. A Physics-Constrained Deep Learning Framework Enhanced with Signal Decomposition for Accurate Short-Term Photovoltaic Power Generation Forecasting. Energy 2025, 326, 136220. [Google Scholar] [CrossRef]
- Amin, M.A.; La Fata, A.; Procopio, R.; Invernizzi, M.; Petronijevic, M.; Mitic, I.R. Photovoltaic Power Nowcasting Using Decision-Trees Based Algorithms and Neural Networks. In Proceedings of the 2024 11th International Conference on Electrical, Electronic and Computing Engineering (IcETRAN), Nis, Serbia, 3–6 June 2024; pp. 1–6. [Google Scholar]
- La Fata, A.; Amin, M.A.; Invernizzi, M.; Procopio, R. Structurally Tuned LSTM Networks to Nowcast Photovoltaic Power Production. In Proceedings of the 2024 IEEE International Conference on Environment and Electrical Engineering and 2024 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe), Rome, Italy, 17–20 June 2024; pp. 1–6. [Google Scholar]
- Xiao, Z.; Huang, X.; Liu, J.; Li, C.; Tai, Y. A Novel Method Based on Time Series Ensemble Model for Hourly Photovoltaic Power Prediction. Energy 2023, 276, 127542. [Google Scholar] [CrossRef]
- DKA Solar Centre. Available online: https://dkasolarcentre.com.au/download?location=alice-springs (accessed on 21 November 2025).
- Bonfiglio, A.; Delfino, F.; Pampararo, F.; Procopio, R.; Rossi, M.; Barillari, L. The Smart Polygeneration Microgrid Test-Bed Facility of Genoa University. In Proceedings of the 2012 47th International Universities Power Engineering Conference (UPEC), Uxbridge, UK, 4–7 September 2012; pp. 1–6. [Google Scholar]
- Xiang, X.; Li, X.; Zhang, Y.; Hu, J. A Short-Term Forecasting Method for Photovoltaic Power Generation Based on the TCN-ECANet-GRU Hybrid Model. Sci. Rep. 2024, 14, 6744. [Google Scholar] [CrossRef]
- Yan, J.; Lin, R.; Liu, B.; Guo, Y.; Zhou, X.; Chen, D.; He, Y.; Zhang, R. Fine-Grained Simulation Model for PV Power Output Interval Based on Two-Stage Scenario Clustering and Dual-Ensemble Compatible Learning. Energy Rep. 2024, 12, 6023–6035. [Google Scholar] [CrossRef]
- Cleveland, R.B.; Cleveland, W.S.; McRae, J.E.; Terpenning, I. STL: A Seasonal-Trend Decomposition. J. Off. Stat 1990, 6, 3–73. [Google Scholar]
- Mohanasundaram, V.; Rangaswamy, B. Photovoltaic Solar Energy Prediction Using the Seasonal-Trend Decomposition Layer and ASOA Optimized LSTM Neural Network Model. Sci. Rep. 2025, 15, 4032. [Google Scholar] [CrossRef]
- Gong, J.; Qu, Z.; Zhu, Z.; Xu, H. Parallel TimesNet-BiLSTM Model for Ultra-Short-Term Photovoltaic Power Forecasting Using STL Decomposition and Auto-Tuning. Energy 2025, 320, 135286. [Google Scholar] [CrossRef]
- Hyndman, R.J.; Athanasopoulos, G. Forecasting: Principles and Practice; OTexts: Melbourne, VIC, Australia, 2018; ISBN 0-9875071-1-7. [Google Scholar]
- Li, G.; Ding, C.; Zhao, N.; Wei, J.; Guo, Y.; Meng, C.; Huang, K.; Zhu, R. Research on a Novel Photovoltaic Power Forecasting Model Based on Parallel Long and Short-Term Time Series Network. Energy 2024, 293, 130621. [Google Scholar] [CrossRef]
- Yu, J.; Li, X.; Yang, L.; Li, L.; Huang, Z.; Shen, K.; Yang, X.; Yang, X.; Xu, Z.; Zhang, D. Deep Learning Models for PV Power Forecasting. Energies 2024, 17, 3973. [Google Scholar] [CrossRef]
- Kim, J.; Obregon, J.; Park, H.; Jung, J.-Y. Multi-Step Photovoltaic Power Forecasting Using Transformer and Recurrent Neural Networks. Renew. Sustain. Energy Rev. 2024, 200, 114479. [Google Scholar] [CrossRef]
- Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning. 2016. Available online: https://aikosh.indiaai.gov.in/static/Deep+Learning+Ian+Goodfellow.pdf (accessed on 24 March 2025).
- Murphy, K.P. Probabilistic Machine Learning: An Introduction; MIT Press: Cambridge, MA, USA, 2022; ISBN 0-262-04682-2. [Google Scholar]



| Variable Description | Variable | |
|---|---|---|
| Target | PV power production | |
| Features | PV power production | |
| Solar radiation | ||
| Height of the sun | ||
| Temperature | ||
| Wind speed | ||
| Month | ||
| Day | ||
| Hour | ||
| Solar radiation trend component | ||
| Height of the sun trend component | ||
| Temperature trend component | ||
| Wind speed trend component | ||
| Solar radiation seasonal component | ||
| Height of the sun seasonal component | ||
| Temperature seasonal component | ||
| Wind speed seasonal component | ||
| Solar radiation residual component | ||
| Height of the sun residual component | ||
| Temperature residual component | ||
| Wind speed residual component | ||
| Parameter | Values |
|---|---|
| Layers | 1, 2, 3, 4 |
| Batch Size | 256, 512 |
| Neurons | 100, 150, 200 |
| Epochs | 100, 150, 200, 500 |
| Learning Rate | 0.01 |
| RNN | [kW] | [kW] | Neurons | Batch Size | Epochs | |
|---|---|---|---|---|---|---|
| 1-layer LSTM | 3.83 | 6.99 | 0.85 | 200 | 512 | <100 |
| 2-layer LSTM | 3.63 | 7.17 | 0.85 | 150 | 512 | <100 |
| 3-layer LSTM | 3.68 | 7.12 | 0.86 | 100 | 512 | <100 |
| 4-layer LSTM | 3.71 | 7.10 | 0.85 | 200 | 512 | <100 |
| RNN | [kW] | [kw] | |
|---|---|---|---|
| 1-layer LSTM | 1.11 | 1.58 | 0.74 |
| 2-layer LSTM | 0.55 | 1.13 | 0.85 |
| 3-layer LSTM | 0.53 | 1.13 | 0.86 |
| 4-layer LSTM | 0.58 | 1.19 | 0.85 |
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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
La Fata, A.; Moser, G.; Ribeiro de Moura, R.A.; Procopio, R. Near Real-Time Photovoltaic Power Forecasting Through Recurrent Neural Network Using Timely Open-Access Data. Energies 2025, 18, 6220. https://doi.org/10.3390/en18236220
La Fata A, Moser G, Ribeiro de Moura RA, Procopio R. Near Real-Time Photovoltaic Power Forecasting Through Recurrent Neural Network Using Timely Open-Access Data. Energies. 2025; 18(23):6220. https://doi.org/10.3390/en18236220
Chicago/Turabian StyleLa Fata, Alice, Gabriele Moser, Rodolfo Antonio Ribeiro de Moura, and Renato Procopio. 2025. "Near Real-Time Photovoltaic Power Forecasting Through Recurrent Neural Network Using Timely Open-Access Data" Energies 18, no. 23: 6220. https://doi.org/10.3390/en18236220
APA StyleLa Fata, A., Moser, G., Ribeiro de Moura, R. A., & Procopio, R. (2025). Near Real-Time Photovoltaic Power Forecasting Through Recurrent Neural Network Using Timely Open-Access Data. Energies, 18(23), 6220. https://doi.org/10.3390/en18236220

