A novel hybrid GRU-XGBoost model for day-ahead photovoltaic generation forecasting in microgrids

The global transition toward renewable energy has made photovoltaic (PV) technology a key component in sustainable microgrid operations. However, the inherent variability of PV generation (PVGen), influenced by changing weather conditions, presents significant challenges for efficient energy management and grid integration. Accurate day-ahead PVGen forecasting is crucia8l for optimizing energy storage, load balancing, and minimizing reliance on conventional energy sources. This study introduces a novel hybrid forecasting model, combining Gated Recurrent Units (GRU) and Extreme Gradient Boosting (XGBoost), to address the challenges of PVGen forecasting in microgrids. The proposed model employs a two-stage approach: GRU captures temporal patterns in historical weather and PV data, while XGBoost refines these forecasts by modeling non-linear relationships. Particle Swarm Optimization (PSO) is utilized to fine-tune hyperparameters in both stages, ensuring optimal performance. Evaluations under various weather conditions, using RMSE, MAE, nRMSE, and R² metrics, demonstrate the model’s effectiveness. The proposed model achieved a notably low nRMSE of 4.17 %, outperforming existing models, such as GRU-Informer-SVR (33.9 % improvement) and LSTM-Informer (54.5 % improvement). Under sunny conditions, the model achieved an nRMSE of 2.67 % (38.3 % lower than standalone GRU) and an R² of 0.9956, while on overcast days, it maintained robust performance with an nRMSE of 5.12 % (63.9 % improvement over GRU) and R² of 0.9670. The proposed GRU–XGBoost hybrid model significantly advances day-ahead PV generation forecasting, providing a reliable, adaptable, and efficient solution for microgrid applications. Its strong performance across diverse weather conditions underscores its potential as solution for optimizing PVGen management in real-world energy systems.

Authors

Publication Details

Journal
Scientific African
Published
2025-08-08
DOI
https://doi.org/10.1016/j.sciaf.2025.e02884
Citations
1
Primary Topic
Energy Load and Power Forecasting
Type
article
Field-Weighted Citation Impact
0.73
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A novel hybrid GRU-XGBoost model for day-ahead photovoltaic generation forecasting in microgrids

Abdelhadi Raihani, Lhoussain Bahatti, Mohammed Kissaoui, Youness Atifi et al.
1 citations
Scientific African
Energy Load and Power Forecasting
0.73
article

A novel hybrid GRU-XGBoost model for day-ahead photovoltaic generation forecasting in microgrids

Abdelhadi Raihani, Lhoussain Bahatti, Mohammed Kissaoui, Youness Atifi, Khalid Errakkas, Ahmed Khayat
article en
1 citations

Abstract

The global transition toward renewable energy has made photovoltaic (PV) technology a key component in sustainable microgrid operations. However, the inherent variability of PV generation (PVGen), influenced by changing weather conditions, presents significant challenges for efficient energy management and grid integration. Accurate day-ahead PVGen forecasting is crucia8l for optimizing energy storage, load balancing, and minimizing reliance on conventional energy sources. This study introduces a novel hybrid forecasting model, combining Gated Recurrent Units (GRU) and Extreme Gradient Boosting (XGBoost), to address the challenges of PVGen forecasting in microgrids. The proposed model employs a two-stage approach: GRU captures temporal patterns in historical weather and PV data, while XGBoost refines these forecasts by modeling non-linear relationships. Particle Swarm Optimization (PSO) is utilized to fine-tune hyperparameters in both stages, ensuring optimal performance. Evaluations under various weather conditions, using RMSE, MAE, nRMSE, and R² metrics, demonstrate the model’s effectiveness. The proposed model achieved a notably low nRMSE of 4.17 %, outperforming existing models, such as GRU-Informer-SVR (33.9 % improvement) and LSTM-Informer (54.5 % improvement). Under sunny conditions, the model achieved an nRMSE of 2.67 % (38.3 % lower than standalone GRU) and an R² of 0.9956, while on overcast days, it maintained robust performance with an nRMSE of 5.12 % (63.9 % improvement over GRU) and R² of 0.9670. The proposed GRU–XGBoost hybrid model significantly advances day-ahead PV generation forecasting, providing a reliable, adaptable, and efficient solution for microgrid applications. Its strong performance across diverse weather conditions underscores its potential as solution for optimizing PVGen management in real-world energy systems.

Scientific AfricanVol. 29
Affordable and clean energy
Openalex Percentile: Top 25%
Energy Load and Power Forecasting
0.73
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.