LSTM-Based Prediction of Solar Irradiance and Wind Speed for Renewable Energy Systems
Abstract
1. Introduction
- This research has presented a novel dual-forecasting approach by using two LSTM models to predict solar irradiance and wind speed. This framework supports more effective integration of renewable energy resources into the grid by addressing the forecasting challenges of hybrid RES systems.
- This study has provided efficient short-term prediction by using 100 hidden units and the Adam optimizer; the models achieve high accuracy with a small dataset, ideal for limited data scenarios.
- This study has demonstrated practical insights into the model accuracy by capturing solar day–night cycles and wind variability, which suggest a more reliable renewable resource at the studied location.
- Providing real-time applicability by predicting the 24 h horizon, which enables practical and real-time applications in power system planning and operation. The inherent temporal learning ability of LSTM networks enhances the reliability of grid management and decision-making processes.
- This study encourages exploration of adaptive LSTM models and hybrid approaches for improved forecasting precision.
2. Modelling and Research Design
2.1. LSTM Model
- 1.
- Forget gate: The forget gate determines how much of the previous cell state to retain or discard. It is computed as:
- 2.
- Input Gate: The input gate consists of two parts: the input gate activation , which decides how much new information to add, and the candidate cell state which proposes new information. These are computed as:
- 3.
- Cell State Update: The cell state , is updated by combining the retained information from the previous cell state (via the forget gate) and the new information (via the input gate and candidate cell state):
- 4.
- Output Gate: The output gate determines what parts of the cell state to output as the hidden state . It is computed as:
2.2. LSTM Model Implementation
2.2.1. Data Preparation
- First sequence: Input = hours 1 to 24, Output = hours 25 to 48.
- Second sequence: Input = hours 2 to 25, Output = hours 26 to 49.
- Last sequence: Input = hours 192 to 215, Output = hours 216 to 240.
- Total sequences = 193 (from hour 1 to hour 192 as starting points).
- The +1 in the formula accounts for including both the first and last possible starting positions in the count. Without it, it would undercount by one sequence.
- Input: A 2 × 24 matrix containing normalized wind speed and solar data over 24 time steps.
- Output: 1 × 24 vectors representing the next 24 h of wind speed and solar irradiance, respectively.
2.2.2. Define the LSTM Network
- Sequence input layer: accepts 2 features (wind speed and solar) over 24 time steps for each 193 sequences.
- LSTM layer: contains 100 hidden units to learn temporal patterns and output a prediction for each time step. This size was selected after testing a range (50, 100, 150, and 200), where 100 units achieved validation for RMSE, balancing model capacity and computational efficiency for the 240 h dataset’s 10-day span. Fewer units (e.g., 50) underfit the daily cycles, while more (e.g., 150) increase the overfitting risk with limited data.
- Fully connected layer: maps the LSTM output to one value per time step, producing a 1 × 24 sequence, aligning the prediction horizon with the input sequence length
- Regression layer: computes the loss for continuous predictions.
2.2.3. Training the Network
- Compute the gradient using (8) at time step t
- 2.
- Update the first moment by moving average of gradients using (9)
- 3.
- Update the second moment by moving average of squared gradients using (10)
- 4.
- Apply bias correction to account for initialization at zero using (11) and (12)
- 5.
- Update parameters θ using (13)
- Maximum epoch: 50
- Mini-batch size: 32
- Initial learning rate: 0.01
- Gradient threshold: 1
2.2.4. Make Predictions
- Normalized predictions are generated using predictions.
- These are denormalized to the original scale.
- This yields the 24 h wind speed and solar irradiance profiles.
2.2.5. Evaluate the Model
2.3. Renewables Output Power Model
2.3.1. PV Output Power Modeling
2.3.2. Wind Turbine Output Power Modeling
3. Results
3.1. Wind Speed Prediction Results
3.1.1. Training Progress Analysis for Wind Speed Prediction
3.1.2. Prediction Results Analysis for Wind Speed Prediction
3.2. Solar Irradiance Prediction Analysis
3.2.1. Training Progress Analysis for Solar Irradiance Prediction
3.2.2. Prediction Results Analysis for Solar Irradiance Prediction
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Huang, H.; Zhu, Q.; Zhu, X.; Zhang, J. An adaptive, data-driven stacking ensemble learning framework for the short-term forecasting of renewable energy generation. Energies 2023, 16, 1963. [Google Scholar] [CrossRef]
- Chen, Y.; Xu, J. Solar and wind power data from the Chinese State Grid renewable energy generation forecasting competition. Sci. Data 2022, 9, 1. [Google Scholar] [CrossRef]
- Sanjari, M.; Gooi, H.; Nair, N. Power generation forecast of hybrid PV–wind system. IEEE Trans. Sustain. Energy 2020, 11, 703–712. [Google Scholar] [CrossRef]
- Wang, Y.; Wu, L. On practical challenges of decomposition-based hybrid forecasting algorithms for wind speed and solar irradiation. Energy 2016, 112, 208–220. [Google Scholar] [CrossRef]
- Zuluaga, C.; Álvarez, M.; Giraldo, E. Short-term wind speed prediction based on robust Kalman filtering: An experimental comparison. Appl. Energy 2015, 156, 321–330. [Google Scholar] [CrossRef]
- Maatallah, O.; Achuthan, A.; Janoyan, K.; Marzocca, P. Recursive wind speed forecasting based on Hammerstein auto-regressive model. Appl. Energy 2015, 145, 191–197. [Google Scholar] [CrossRef]
- Jeon, H.-J.; Choi, M.-W.; Lee, O.-J. Day-Ahead Hourly Solar Irradiance Forecasting Based on Multi-Attributed Spatio-Temporal Graph Convolutional Network. Sensors 2022, 22, 7179. [Google Scholar] [CrossRef]
- Zafar, R.; Vu, B.H.; Husein, M.; Chung, I.-Y. Day-Ahead Solar Irradiance Forecasting Using Hybrid Recurrent Neural Network with Weather Classification for Power System Scheduling. Appl. Sci. 2021, 11, 6738. [Google Scholar] [CrossRef]
- Rabehi, A.; Guermoui, M.; Lalmi, D. Hybrid models for global solar radiation prediction: A case study. Int. J. Ambient. Energy 2018, 41, 31–40. [Google Scholar] [CrossRef]
- Yasin, Z.M.; Salim, N.A.; Aziz, N.F.A.; Mohamad, H.; Wahab, N.A. Prediction of solar irradiance using Grey Wolf Optimizer least square support vector machine. Indones. J. Electr. Eng. Comput. Sci. 2020, 17, 10–17. [Google Scholar] [CrossRef]
- Dong, Y.; Zhang, L.; Liu, Z.; Wang, J. Integrated forecasting method for wind energy management: A case study in China. Processes 2019, 8, 35. [Google Scholar] [CrossRef]
- Tanaka, Y.; Takahashi, M. Dynamic time warping-based cluster analysis and support vector machine-based prediction of solar irradiance at multi-points in a wide area. In Proceedings of the 47th ISCIE International Symposium on Stochastic Systems Theory and Its Applications, Honolulu, HI, USA, 5–8 December 2015; Volume 2016, pp. 210–215. [Google Scholar]
- Kakimoto, M.; Endoh, Y.; Shin, H.; Ikeda, R.; Kusaka, H. Probabilistic solar irradiance forecasting by conditioning joint probability method and its application to electric power trading. IEEE Trans. Sustain. Energy 2019, 10, 983–993. [Google Scholar] [CrossRef]
- Madhiarasan, M.; Louzazni, M.; Roy, P. Novel cooperative multi-input multilayer perceptron neural network performance analysis with application of solar irradiance forecasting. Int. J. Photoenergy 2021, 2021, 7238293. [Google Scholar] [CrossRef]
- Benti, N.E.; Chaka, M.D.; Semie, A.G. Forecasting Renewable Energy Generation with Machine Learning and Deep Learning: Current Advances and Future Prospects. Sustainability 2023, 15, 7087. [Google Scholar] [CrossRef]
- Zhang, H.; Liu, Y.; Zhang, C.; Li, N. Machine learning methods for weather forecasting: A survey. Atmosphere 2025, 16, 82. [Google Scholar] [CrossRef]
- Yang, N.; Cong, Y.; Xing, C.; Ye, D.; Jia, J.; Chen, D.; Shen, X.; Hunag, Y.; Zhang, L.; Zhu, B. Deep learning-based SCUC decision-making: An intelligent data-driven approach with self-learning capabilities. IET Gener. Transm. Distrib. 2021, 16, 629–640. [Google Scholar] [CrossRef]
- Huang, X.; Zhang, C.; Li, Q.; Tai, Y.; Gao, B.; Shi, J. A comparison of hour-ahead solar irradiance forecasting models based on LSTM network. Math. Probl. Eng. 2020, 2020, 4251517. [Google Scholar] [CrossRef]
- Madhiarasan, M.; Louzazni, M. Combined long short-term memory network-based short-term prediction of solar irradiance. Int. J. Photoenergy 2022, 2022, 1004051. [Google Scholar] [CrossRef]
- Qin, Q.; Lai, X.; Zou, J. Direct multistep wind speed forecasting using LSTM neural network combining EEMD and fuzzy entropy. Appl. Sci. 2019, 9, 126. [Google Scholar] [CrossRef]
- Van Houdt, G.; Mosquera, C.; Nápoles, G. A review on the long short-term memory model. Artif. Intell. Rev. 2020, 53, 5929–5955. [Google Scholar] [CrossRef]
- Lindemann, B.; Müller, T.; Vietz, H.; Jazdi, N.; Weyrich, M. A survey on long short-term memory networks for time series prediction. Procedia CIRP 2021, 99, 650–655. [Google Scholar] [CrossRef]
- Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
- Zhang, Z. Improved Adam optimizer for deep neural networks. In Proceedings of the 2018 IEEE/ACM 26th International Symposium on Quality of Service (IWQoS), Banff, AB, Canada, 4–6 June 2018. [Google Scholar]
- Alguhi, A.A.; Alotaibi, M.A.; Al-Ammar, E.A. Probabilistic Planning for an Energy Storage System Considering the Uncertainties in Smart Distribution Networks. Sustainability 2024, 16, 290. [Google Scholar] [CrossRef]
Parameters | Value |
---|---|
200 W/m2 | |
1000 W/m2 |
Parameters | Value |
---|---|
m/s | 3 |
m/s | 14 |
m/s | 25 |
Model | Strengths Compared to the Proposed Model | Accuracy | Complexity | RMSE for Solar Irradiance | Advantages of the Proposed Model Over This Model |
---|---|---|---|---|---|
ARIMA [7] | Better for sudden changes and linear trends. | Lower for non-linear data | Lower | 0.87 | Captures non-linear temporal dependencies, unlike ARIMA’s focus on linear trends and sudden changes. |
SVM [8] | Effective for general regression problems and small dataset | Moderate | Moderate | 0.0576 | Incorporate temporal information via recurrent connections, whereas SVM treats each input independently. |
GWO-LSSVM [10] | Improved accuracy via optimization. | Comparable with optimization | Higher | - | Offers streamlined sequential learning, reducing the computational overhead of optimization techniques. |
Hybrid Model [9] | Enhanced predictive power for complex patterns. | Potentially higher | Higher | 0.03537 | Provides a balanced design with moderate resource usage, avoiding the complexity of attention mechanisms. |
Proposed Model | - | High for non-linear data | Moderate | 0.055 | - |
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
Alguhi, A.A.; Al-Shaalan, A.M. LSTM-Based Prediction of Solar Irradiance and Wind Speed for Renewable Energy Systems. Energies 2025, 18, 4594. https://doi.org/10.3390/en18174594
Alguhi AA, Al-Shaalan AM. LSTM-Based Prediction of Solar Irradiance and Wind Speed for Renewable Energy Systems. Energies. 2025; 18(17):4594. https://doi.org/10.3390/en18174594
Chicago/Turabian StyleAlguhi, Ahmed A., and Abdullah M. Al-Shaalan. 2025. "LSTM-Based Prediction of Solar Irradiance and Wind Speed for Renewable Energy Systems" Energies 18, no. 17: 4594. https://doi.org/10.3390/en18174594
APA StyleAlguhi, A. A., & Al-Shaalan, A. M. (2025). LSTM-Based Prediction of Solar Irradiance and Wind Speed for Renewable Energy Systems. Energies, 18(17), 4594. https://doi.org/10.3390/en18174594