Stochastic Grey Wolf Optimization for Hyperparameter Tuning of LSTM and RNN Models in Energy Forecasting

Abstract Accurate photovoltaic (PV) power forecasts are required to support the stable and efficient incorporation of solar power into modern electric power grids. Even though the use of recurrent neural network models such as RNNs and LSTMs for time series forecasting has proven successful, these model’s ability to make accurate predictions is heavily influenced by proper hyper parameter selection. Therefore, the goal of this research is to introduce a stochastic grey wolf optimizer (SGWO) based hyper-parameter optimization system for RNN and LSTMs used for predicting PV power. A stochastic grey wolf optimizer will be added to the basic grey wolf optimizer to enhance the search capabilities of the algorithm. This new stochastic grey wolf optimizer introduces randomness into the optimization process which can help prevent premature convergence and increase exploration within the problem space. The performance of the proposed SGWO-based system will be tested on a real world PV data set. The comparison will include results from manual tuning, random searching, and standard GWO. Performance metrics will consist of root mean squared error (RMSE), mean absolute error (MAE), and coefficient of determination (R2) and will be used to evaluate how well each of the algorithms performed when making out-of-sample predictions. Results from testing showed that the SGWO-LSTM configuration produced the highest total out-of-sample prediction accuracy; MAE = 0.018, RMSE = 0.041, R 2 = 0.978.

Authors

Publication Details

Journal
Scientific Reports
Published
2026-06-13
DOI
https://doi.org/10.1038/s41598-026-56787-w
Primary Topic
Solar Radiation and Photovoltaics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Stochastic Grey Wolf Optimization for Hyperparameter Tuning of LSTM and RNN Models in Energy Forecasting

Ashraf Darwish, Mourad R. Mouhamed, Salma A. Shatta, Nasser H. Sweilem et al.
Scientific Reports
Solar Radiation and Photovoltaics
article

Stochastic Grey Wolf Optimization for Hyperparameter Tuning of LSTM and RNN Models in Energy Forecasting

Ashraf Darwish, Mourad R. Mouhamed, Salma A. Shatta, Nasser H. Sweilem, Omsaeed Ahmed Albser
article en

Abstract

Abstract Accurate photovoltaic (PV) power forecasts are required to support the stable and efficient incorporation of solar power into modern electric power grids. Even though the use of recurrent neural network models such as RNNs and LSTMs for time series forecasting has proven successful, these model’s ability to make accurate predictions is heavily influenced by proper hyper parameter selection. Therefore, the goal of this research is to introduce a stochastic grey wolf optimizer (SGWO) based hyper-parameter optimization system for RNN and LSTMs used for predicting PV power. A stochastic grey wolf optimizer will be added to the basic grey wolf optimizer to enhance the search capabilities of the algorithm. This new stochastic grey wolf optimizer introduces randomness into the optimization process which can help prevent premature convergence and increase exploration within the problem space. The performance of the proposed SGWO-based system will be tested on a real world PV data set. The comparison will include results from manual tuning, random searching, and standard GWO. Performance metrics will consist of root mean squared error (RMSE), mean absolute error (MAE), and coefficient of determination (R2) and will be used to evaluate how well each of the algorithms performed when making out-of-sample predictions. Results from testing showed that the SGWO-LSTM configuration produced the highest total out-of-sample prediction accuracy; MAE = 0.018, RMSE = 0.041, R 2 = 0.978.

Scientific ReportsVol. 16(1)
Affordable and clean energy
Openalex Percentile: Top 3%
Solar Radiation and Photovoltaics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Stochastic Grey Wolf Optimization for Hyperparameter Tuning of LSTM and RNN Models in Energy Forecasting — Ashraf Darwish, Mourad R. Mouhamed, et al. · Scientific Reports (2026) | TGRS Research Map | TGRS