Solar Radiation Prediction Using ML & DL
Solar Radiation Prediction Using ML & DL
View Export
Online Citation
Development of a solar radiation measuring instrument for building energy management system
Rev. Sci. Instrum. (May 2025)
Optimized solar power forecasting: A multi-decomposition framework using VMD and swarm techniques
AIP Advances (September 2025)
C Vanlalchhuanawmi,1 Subhasish Deb,1,a) Md. Minarul Islam,2,a) and Taha Selim Ustun3
AFFILIATIONS
1
Department of Electrical Engineering, Mizoram University, Aizawl, Mizoram-796004, India.
2
Department of Electrical and Electronic Engineering, University of Dhaka, Dhaka 1000, Bangladesh
3
Fukushima Renewable Energy Institute, AIST (FREA), Koriyama 9630298, Japan
a)
Authors to whom correspondence should be addressed: subhasishdeb30@[Link] and mimislam-eee@[Link]
ABSTRACT
The increasing integration of renewable energies into electrical grids necessitates accurate forecasting of meteorological variables, particu-
larly solar irradiance. This study presents a novel long-term solar irradiance forecasting approach, utilizing meteorological data from the
National Renewable Energy Laboratory spanning 1988–2022. Focusing on five input variables—solar irradiance, dew point, temperature,
I. INTRODUCTION impact on leaf size, growth rate, flower and fruit development, soil
temperature, and moisture content.1 Although working on numeri-
A vital renewable energy source for many uses, including agri- cal estimating models is a necessary substitute because it is difficult
culture, climate modeling, and the design of solar energy systems, to obtain measurements of solar energy directly, due to both tech-
is solar radiation (SR). Engineers may determine the best kind, nological and economic constraints, such as the high expense of
size, and solar panel orientation through the use of SR data in the installing and calibrating recording equipment and the requirement
development and optimization of solar energy systems for specific for continuous maintenance, direct measurements of SR are uncom-
environments. The understanding of how Earth’s temperature and mon in most places. As a result, modeling strategies for SR are
weather patterns are affected is crucial for climate modeling, which regarded as important.
likewise largely depends on SR. Since photosynthesis, the process With an emphasis on sensor networks for forecasting, some
by which plants turn sunlight into energy depends on sunshine, review research investigates solar irradiance resources and solar
SR is essential to agricultural plant development and crop produc- forecasting. An overview of forecasting techniques, forecast error
tion. Plant growth and agricultural operations can be impacted by measures, radiometers, sensor network datasets, and sun irradiance
the kind and amount of sunshine received, which can also have an resources is provided. Three primary categories may be used to
group solar forecasting techniques: data-driven approaches, image- for solar forecasting and, giving considerable gains in accuracy and
based methods, and numerical weather predictions (NWPs). While efficiency over older techniques.11 Projecting the amount of solar
image-based approaches are favored for intra-hour and 0.5–6-h energy that photovoltaic (PV) systems will produce over a range of
forecasting, NWPs are appropriate for predicting 6 to 48 h in periods, from minutes to days, is known as solar forecasting. For
advance.2 Based on input data, data-driven approaches may be used solar power to be successfully integrated into the electrical grid,
for a broad variety of forecast horizons. Self-powered sensors are grid stability to be increased, and the operation and maintenance
now a part of wireless sensor technology, allowing for real-time of solar power plants to be optimized, accurate solar projections
parameter adjustments. A vastly dispersed limitless supply is offered are essential. DL substantially boosts solar forecasting by apply-
by energy harvesting technologies, including piezoelectricity, solar ing sophisticated techniques including recurrent neural networks
light, electromagnetic fields, radio frequency, and physical move- (RNNs), long short-term memory networks (LSTMs), convolu-
ments.1 The best ambient source of solar energy is thought to be tional neural networks (CNNs), artificial neural networks (ANN),
photovoltaic cell modules because of their high-power density, effec- and hybrid models. These models employ multiple data sources,
tiveness of conversion, and interoperability with integrated circuit including historical solar output, weather data, satellite photos, sky
technologies. Since the energy sector in the EU contributes to more cameras, and NWP models. Applications of DL in solar forecasting
than 75% of greenhouse gas emissions, improving the contribution include grid management, energy trading, operational optimization,
of renewable energy in all sectors is essential to attaining a climate- and microgrid integration, all of which benefit from better accuracy
neutral continent by 2050 and a net reduction of emissions by at least and efficiency. However, issues such as data quality, model inter-
55% by 2030.3 pretability, and computational needs persist. Future developments
Complex non-linear correlations may be found by using in the field focus on transfer learning, explainable artificial intel-
machine learning (ML) algorithms to examine vast datasets and ligence, and real-time forecasting to further boost the usefulness
find patterns and interactions between SR and the input parameters. of DL in solar energy applications. Researchers categorize the esti-
Several ML models, such as support vector regression, random for- mates of solar power and irradiance according to several elements,
est (RF), and k-nearest neighbor algorithm (KNN), have been used including satellite imagery, regional and meteorological features,
for SR estimation.4–6 The electromagnetic waves that the sun emits and cloud imaging.12 Although for solar forecasting, there are not
are known as solar radiation, which include visible light, ultraviolet any recognized categorization standards, forecast scales, historical
(UV) rays, and infrared (IR) radiation. Solar irradiance measures the data, and meteorological data models form the basis of the majority
of research produces forecasting models that suffer from inaccuracy, PV performance.24 To provide more accurate predictions of solar
especially during harsh weather. The generated model was tested radiation, researchers are still examining various machine learn-
using data from 34 meteorological stations, and the coefficient of ing and deep learning techniques, despite the enormous body of
determination was determined to be 0.98.20 Some studies lay the literature already available on the subject. Various approaches,
groundwork for future research in several areas, including energy including machine learning and deep learning, have been pro-
consumption forecasting across medium and long timeframes, solar posed as the best for forecasting GSR in a variety of situations
power, and wind power.21 It emphasizes the production and bal- with short-term data that contains the majority of just around ten
ancing of meteorological data to enhance prediction performance. years.25
However longer-term models currently lack training data and the This research investigates many patterns in three DL and ten
majority of research focuses on short-term estimates.22 Therefore, ML models. Alongside more standard ML methods such as lin-
a lot of research has been done on neural networks and DL mod- ear regression, Lasso, ridge, elastic net, random forest, Extra Trees,
els for forecasting solar irradiance. Nevertheless, there is a dearth XGBoost, LightGBM, K-Neighbors, and GBR, it examines the effi-
of thorough analyses about the importance of DL in this context. cacy of numerous DL approaches such as LSTM, RNN, and Gated
The research employs an ensemble feature selection method based Recurrent Unit (GRU). This work is the first to analyze the perfor-
on Pearson’s correlation coefficient and assesses prediction accu- mance of machine learning and deep learning models, even though
racy with multiple metrics. It highlights the limitations of existing earlier studies in the literature have incorporated all the models
methods, identifies key factors affecting forecasting accuracy, and taken into consideration for solar radiance prediction. To the best
suggests directions for future research, emphasizing the importance of the authors’ knowledge, no prior research has taken into account
of advanced ML and DL techniques in enhancing solar irradiance their uncertainties on ML and DL models, or the forecast of the
predictions.23 DL techniques were shown to be appropriate for the optimal prediction model for both short- and long-term model
different prediction tasks connected to solar energy. In addition, a predictions. The majority of earlier work has only addressed SR pre-
quick and effective DL method for solar irradiance prediction was diction in machine learning. Considering that the data use is spread,
proposed, including multi-reservoir echo state computation. When the resulting models are tested and trained on hourly data collected
compared to Elman neural networks, the model was shown to be over 20 years, and their performance is verified using 4-year data,
better appropriate for solar prediction tasks. The various systems’ outperforming that of previous research datasets. It identifies GBR as
methods of measuring solar energy in solar energy-based techno- the best ML model for long-term forecasting and RNN as the top DL
A. Focus and potential of the work included the years 2011–2021. A few figures show solar irradiance
The manuscript highlights the development of a hybrid fore- information.27,28 The Jupyter and Scikit–learn libraries are used to
casting model (GBR-RNN) aimed at enhancing the accuracy and generate the forecasting model for each period. This study’s dataset
reliability of long-term solar irradiance and energy demand pre- is divided into training and testing groups. The data are used to
dictions. To ensure clarity from the outset, the core focus of the calculate solar irradiance, dew point, temperature, relative humid-
study—namely, the integration of ML and DL models for improved ity and wind speed. Some of the calculations establish the optimal
forecasting—and to emphasize the potential of this approach in input variables to employ in model training.
advancing energy management strategies with the advance ML-DL
model. B. Characteristics of solar irradiation forecasting
From a practical standpoint, different prediction horizons serve
B. Motivation specific needs in decision-making within smart grids and micro-
grids. For activities such as PV storage control and power selling,
This research is motivated by the need to address key gaps in very short-term forecasting—from seconds to minutes—is essential.
solar irradiance forecasting, including limited model generalization, This timeframe has gained heightened importance in today’s smart
lack of uncertainty quantification, and narrow evaluation across grid and microgrid environments. To make decisions on energy
forecasting horizons. While previous studies have often focused markets and power system operations, such as unit commitment
on either ML or DL models in isolation and used small or local- and economic load dispatch, short-term forecasting, which lasts up
ized datasets, this work provides a comprehensive comparison of to two or three days, is crucial. Predicting for the medium term,
13 ML and DL models using more than 20 years of hourly data, up to seven days ahead, aids in scheduling maintenance for various
with performance validated on a separate 4-year dataset. By iden- power generation and transmission assets. Long-term forecasting,
tifying GBR as the best model for long-term prediction and RNN spanning from months to years, supports planning for solar energy
for short-term prediction, and incorporating quantile regression to projects and PV plant development.29,30 Both the prediction hori-
assess uncertainty, this study delivers a robust, accurate, and practi- zon and the choice of input variables have an impact on a prediction
cal forecasting framework. The goal is to offer a deployable solution model’s accuracy. Typically, important variables such as historical
suitable for consumer-level systems, advancing both the reliability data on PV generation and meteorological factors such as solar irra-
and applicability of solar forecasting models. diance, dew point, temperature, relative humidity, and wind speed
Paper no. 1 12 17 18 25 26
© Author(s) 2025
Year 2023 2020 2023 2022 2023 2022
Field Focuses on improving Long-term or Energy load forecasting Forecasting direct solar The field of this study Time-horizons are
AIP Advances
solar forecasting large-scale error: and optimization using radiation and global falls under ML applied considered: 1, 2, and
through advanced MAE,MBE, RMSE, machine learning and solar radiation (GSR) to solar energy systems 3 h ahead n Pearson
methodologies, data Kolmogrov, forecast deep learning using machine learning and solar radiation coefficient, random
processing techniques, skill-Smimov test techniques for smart and deep learning forecasting. Error: forest, mutual
and emerging integral buildings and smart models across multiple RMSE and R2 information, and relief;
technologies such as grids geographic locations errors: RMSE, R2 and
5 G and AI. MAE, MAPE
Approach 128 algorithms used. Solar irradiance such Random forest (RF), Machine learning: PR, Models: multivariate Models: support vector
pre-processing, and the comparisons, broader effectiveness. and broader time scales vs interpretability, and adapt the
use of emerging uncertainty analysis, Future work should for improved solar requires high approach for broader
technologies such as and real-world validate the methods in radiation forecasting computational applications such as
5 G and AI. However, integration insights real-time systems and resources, and needs wind speed and load
it lacks concrete investigate advanced further validation and forecasting
solutions or architectures for better benchmarking
methodologies to forecasting and
address these integration
challenges
[Link]/aip/adv
15, 055201-5
26 December 2025 13:17:38
AIP Advances ARTICLE [Link]/aip/adv
is gathered by a surface per unit area and travels omnidirection- ical variables. It highlights the challenges of traditional regression
ally to the Earth’s surface through atmospheric particle scattering. models, such as overfitting and optimism bias, which occur when
It is utilized in GHI redundancy estimates and permanent PV sys- models are overly complex and over-estimate their explanatory
tems.32 DHI is the shadow-free solar energy that is gathered by a power. To address these issues, regularized regression techniques are
surface per unit area and travels omnidirectionally to the Earth’s employed. This study evaluates ten different ML models and three
surface through atmospheric particle scattering. It is utilized in DL models, selected based on their effectiveness for the task at hand.
GHI redundancy estimates and permanent PV systems. A revolv- The aim of these ML algorithms is to develop predictive models
ing shadow-band irradiometer and a pyranometer mounted in a sun that accurately estimate specific types of data. This process requires
tracker are used to measure it.33 a large dataset to help the algorithms understand system behav-
ior.34 The ML workflow includes several phases: data acquisition,
data cleaning, and data segregation. The collected data are divided
D. Pre-processing into training, testing, and blind sets. The models are trained on the
Imputation is a technique used by the forecasting model to fill training set, evaluated and optimized on the testing set, and finally
in missing values in time series and adjust model hyperparameters. validated on the blind set. The research employs a technique called
80% of the data from 1998 to 2018 is covered by the training set and endogenous forecasting, which utilizes ML-based time series mod-
10% is covered by the test set from 2019 to 2022. Due to data par- els and DL. This approach uses previously recorded solar irradiance
titioning based on the training and testing sets for the model, the data as input parameters for forecasting future values. The ten fore-
validation and training sets are not continuous. This method over- casting models examined in this study, along with the methodologies
estimates the performance of the model while reducing prediction employed, are detailed in the sub sections.
error.
1. Linear regressor to shrink some components of the solution in ̂ β(lasso) to zero for
LR is the most basic and often used type of regression algo- appropriately chosen values of λ, while simultaneously regulariz-
rithm. Through the use of linear predictor functions, linear regres- ing the least squares fit. In comparison with the well-known LARS
sion is used to display the correlation between the input and output method,37 the cyclical coordinate descent approach computes the
variables. The unknown model parameters are estimated using the complete lasso solution routes for λ for the lasso estimator more
least squares method using the given data. Either a set of linear equa- quickly and efficiently. The lasso is a visually beautiful and widely
tions may be solved or iterative techniques such as gradient descent used variable selection technique because of these qualities.
can be used to estimate the values of the parameters. With a probability that tends to 1, the subset of real parameters
LR, a supervised ML method, generates continuous output pre- with zero coefficients may be estimated using an oracle approach
dictions with a consistent slope. Instead of categorizing data, it as precisely zero, just as if the subset model itself were known
focuses on predicting values within a continuous range, such as in advance. In addition, the nonzero coefficients are estimated by
prices or sales. Early studies on time series predominantly operated using an Oracle estimator in a normally distributed and asymptot-
under the assumption of a deterministic world, particularly in the ically unbiased manner and selects variables in an asymptotically
19th century. Yule proposed in 1927 that any time series may be consistent and efficient manner. The super-efficiency phenomena
seen as a manifestation of a stochastic process, thereby introduc- are strongly associated with the oracle characteristic.17 In addi-
ing stochasticity to time series analysis. This basic idea has since tion to possessing the oracle quality, optimal estimators also need
served as the foundation for the development of other time series to meet several crucial additional regularity requirements, namely,
approaches. The World’s decomposition theorem made it easier to continuous shrinkage. The lasso lacks the oracle characteristic, even
formulate and solve linear forecasting issues.35 yet it estimates the larger nonzero coefficients with asymptotically
Time series analysis has since produced a large body of lit- non-ignorable bias and can only pick variables correctly provided
erature covering a wide range of subjects, including identification, the predictor matrix (or the design matrix) fits a fairly rigorous
forecasting, model validation, and parameter estimation. As shown condition.
in Eq. (2), in this study, the equation for LR demonstrates how one or
more independent variables are correlated linearly and the outcome 3. Ridge regressor
of the dependent variable that is numerical, A kind of linear regression called ridge regression penalizes big
coefficients in order to keep the loss function from overfitting. Ridge
y = α + βx,
Eq. (5) and employs a combination of the ℓ1 (lasso) and ℓ2 (ridge collection of weak prediction models—usually decision trees—to
regression) penalties: produce a more reliable model when generating predictions. If a
GBR has Q trees, where γT represents the scaling factor and hT
̂
β(enet) = arg min1 ∥y − Xβ∥22 , denotes the weak learner, then the following prediction equation is
(5)
subject to Pα (β) = (1 − α)∣β∣ + λ∥β∥22 ≤ s, provided in Eq. (7):7
Q
where Pα (β) is the ENET penalty; α = 1, the ENET simulates basic f Q (P j ) = ∑ hT γT (x j ). (7)
ridge regression; and when α = 0, it simulates the lasso. Automatic T
variable selection is carried out by the ENET’s ℓ1 portion, whereas
grouped selection is encouraged and solution routes are stabilized in 7. XGBoost
relation to random sampling by the ℓ2 portion, which enhances pre- XGBoost, also known as Extreme Gradient Boosting, is a scal-
diction. The ENET may choose groups of correlated features when able ML system specifically designed for tree boosting. It efficiently
the groups are unknown in advance by inducing a grouping effect handles distributed gradient boosting, quickly determining the sig-
during variable selection, which increases the likelihood that a set of nificance of all input characteristics. This approach has been refined
highly connected variables would have comparable magnitude coef- and enhanced by subsequent re searchers. By consolidating mul-
ficients. In contrast to the lasso, the elastic net chooses more than tiple low-accuracy prediction models into a single high-accuracy
n variables when p >> n. The elastic net does not, yet, possess the model, boosting improves ML models. The XGBoost model excels
oracle quality.37 at achieving acceptable prediction accuracy even with extensive
5. Random forest (RF) regressor or complex datasets, potentially requiring fewer iterations or rep-
etitions to achieve the desired accuracy level compared to other
RF regression mixes numerous decision trees to categorize or
approaches. Overall, XGBoost is recognized as an efficient and reli-
predict variable values using bagging to create varied subsets of
able gradient-boosting machine approach and is expressed as in
training data. This boosts tree variety and captures correlations,
Eq. (8),39
making RF successful for both regression and classification prob-
lems, especially with many variables relative to data. RF incorporates N
(T−1)
randomized decision trees and averages their predictions, making it obj (XGb)(T) = ∑ l(y j , ŷ j + f T (x j ) + Ω( f T ) + constant, (8)
j=1
ideal for large-scale issues. It is adaptive and gives valuable feature
9. K-Nearest neighbor algorithm (KNN) where xT represents the input at time (T), hT is the hidden neu-
A well-liked supervised learning technique for problems ron at time t, U is the weight matrix for the hidden layer at time t,
involving regression and classification is the KNN algorithm. By pre- and W represents the transition weights between hidden layers. The
dicting the relationship between previously unknown data points RNN merges the current input and the previous hidden state, using
and the dataset, it places newly discovered data in the most related the tanh function to process this information. The result is a brand-
category. The carefully chosen “k” value, which is established by new hidden state that stores information from previous inputs and
repeatedly running the algorithm with various “k” values and choos- functions as a memory.
ing the configuration that performs best on the training dataset, Gradient disappearance and explosion are common challenges
has a direct impact on how successful the method is. A distance for RNNs during training. Gradient explosion may be solved by
function determines the majority decision of nearest neighbors in halting backpropagation at a certain moment, yet, since not all
the classification process, which is based on the Pearson correla- weights are updated, this yields subpar results. The vanishing gra-
tion analysis between meteorological variables. Various variations dient problem can be lessened with the help of proper weight
can employ distinct distance functions, including the Minkowsky, initialization.38
Euclidean, and Mahalanobis distances. The Euclidean distance func- 2. Long-short term memory (LSTM)
tion was selected for the estimate procedure in this investigation.
The vanishing gradient and gradient explosion problems that
The KNN method, shown in Eq. (10), is renowned for being straight-
cause long-term data dependencies and time-series forecasting are
forward, simple to use, and flexible enough to adjust to changes in
addressed by the LSTM network, an enhanced version of the RNN.
the data. Its drawbacks include noisy and high-dimensional data
LSTMs are widely utilized in power systems for forecasting renew-
affecting performance, susceptibility to outliers, and the compu-
able power generation, load, and demand response. In order to
tational expense of forecasting new instances, particularly for big
overcome the drawbacks of a diminishing gradient, the LTSM net-
datasets where calculating distances to all data points is necessary,38
work concept was presented. Information flow is controlled by the
√ inputs, outputs, forget gates, and memory cells that make up the
y
aij = (axij )2 + (aij )2 , (10)
network. While the input gate updates cells and decides their next
where the axial distances in the x- and y-axis directions between the concealed state, the forget gate divides data between deleted and
y
centroids of departments i and j are denoted by (axij )2 and (aij )2 , preserved data. The activation function of the gates is the sigmoid
function, which produces values between 0 and 1 to allow infor-
CT = IT ∗ CT′ + f T ∗ CT−1 ,
the variety among the trees, this method may improve the model’s
(13)
generalization and robustness when compared to conventional RFs.
The algorithm, shown in Eq. (11), builds B decision trees using
dataset D. It selects split points randomly for each tree split and then OT = σ(w0 ⋅ hT−1 , w0 ⋅ xT + b0 ), (14)
chooses the best split point from these random selections, instead of
searching for the optimal split point,
hT = tan h(CT ).OT . (15)
Eb (y) = ag ⋅ [{t(x; θy,i )∣i = 1, 2, . . . , n}]. (11)
Here, t(x; θy,i ) indicates the ith tree in the yth ensemble, which is 3. Gated recurrent unit (GRU)
specified by θ. The aggregation method used is usually the average Compared to LSTM, GRU is a less complex RNN that offers
for regression tasks.12 greater computation and learning efficiency and simplicity. Long-
term dependencies can be recalled and captured by using both
B. Deep learning models, but because GRU contains fewer features, it can compute
1. Recurrent neural network more quickly and has a lower complexity. It can solve vanish-
An artificial neural network type called a recurrent neural ing gradients by efficiently learning long-term dependency data.
network (RNN) is particularly good at training on sequential or Because of the functional mechanism and design similarities, GRU
time-series data, which contains temporal information that ordi- is regarded as an LSTM variation. Although the gate mechanism is
nary neural networks cannot detect. Sequence data are divided into used by both GRU and LSTM to govern information flow, GRU only
components using RNNs, which also preserve a state that allows the has two gates: the reset gate (rT ) and the update gate (ZT ). These
data to be represented at various times. As shown in Eq. (12), RNN gates establish what data should be removed and kept for later use,
include inputs, hidden neurons, and an activation function, accordingly.26 GRU models require a lot of training and underfitting
because of their poor learning efficiency and delayed convergence.
hT = tan h (U ⋅ xT + W ⋅ hT − 1), (12) Even with their advantages, GRUs might have low learning efficiency
and delayed convergence, which can result in long training times 2. Coefficient of determination (R2)
and possible underfitting. As shown in Eqs. (16)–(19), the reset gate As expressed in Eq. (21), high R2 value indicates good model
is represented by RT , the update gate by zt, the memory component performance,41
by AT , the activation function by tanh, and the final memory by hT
at the current time step (T),41 N
∑ (xi − yi )
2
V. PREDICTED RESULTS AND DISCUSSION assumed by Pearson correlation, the association may not be effec-
tively represented in directions. Subsequently, the following sections
A. Sensitivity test
will elucidate the ongoing research efforts. The Pearson correla-
One of the most important steps in using ML models is select- tion matrix shown in Fig. 3 indicates that temperature has a strong
ing features using filters. It assists in determining which input positive correlation with solar irradiance, suggesting that higher
dataset columns have the highest predictive potential. The filter temperatures are associated 10 with higher levels of solar radiation.
selection parameter in this investigation was the Pearson correlation. Conversely, relative humidity shows a strong negative correlation
The accuracy of a model or technique usually hinges on how care- with solar irradiance, meaning that higher humidity is linked to
fully suitable input parameters are chosen. To do this, a Pearson cor- lower solar radiation. Other variables, such as dew point and wind
relation analysis was carried out between the output variable—solar speed, have weaker correlations with solar irradiance, with dew
radiance—and the meteorological input variables—dew point, tem- point showing a slight positive relationship and wind speed show-
perature, relative humidity, and wind speed. Pearson correlation, ing a moderate negative relationship. These insights are useful for
often known as Pearson’s or the Pearson correlation coefficient, is predicting solar irradiance based on meteorological conditions.
a measurement of the linear relationship between two continuous Based on the Fig. 3 matrix, temperature is strongly positively
variables.43 correlated with solar irradiance (0.74), making it a strong predic-
The strength and direction of the linear relationship between tor. Relative humidity has a strong negative correlation (−0.82),
the variables are both measured. A Pearson correlation value that indicating that it might also be a significant predictor but with an
ranges from −1 to 1 shows a weak or non-existent linear link; a inverse relationship. These variables can be prioritized when build-
positive correlation indicates a perfect positive linear relationship; ing predictive models due to their strong associations with the target
a negative correlation indicates a perfect negative linear relation- variable. Wind speed shows a moderate negative correlation with
ship. The degree of the linear relationship between the variables is solar irradiance (0.51), which might be useful but not as strong as
indicated by the correlation coefficient’s proximity to +1 or −1; a temperature or relative humidity. Dew point and wind speed have
close correlation of 0 indicates a weak or non-existent linear rela- low correlations, suggesting both might be less useful predictors on
tionship. If the connection between the variables is not linear, as their own.
B. Performance evaluation models Similarly, the figures in the following represent the final month’s
in machine learning record for the year 2022.
Every experiment has been conducted on a single platform. The baseline models serve as a benchmark to assess how
Several experimental results were described in the current section. machine learning techniques can enhance prediction accuracy.
Training has made use of historical data from NREL over the last Figures 4–8 illustrate the comparison between the baseline and
six years. With considerable caution, the tests were conducted using actual values for dew point, temperature, relative humidity, wind
Python 3.0 and the Scikit learn (sklearn) module to use machine speed, and solar irradiance, respectively. This baseline approach
learning methods. The Lenovo workstation, which included an Intel helps identify the most and least accurate models among the ten
Core i5 1235U CPU with 10 cores and 16 GB RAM, was used for the machine learning models. Several criteria influence which model
experiment. 80% of the data from 1998 to 2018 are covered by the is best: overfitting, complexity, interpretability, and performance
training set and 10% are covered by the test set from 2019 to 2022. measures such as RMSE, MAE, MAPE, and R-squared on the test
FIG. 6. Comparison of baseline prediction and real value for relative humidity.
FIG. 8. Comparison of baseline prediction and real value for solar irradiance.
set. Higher R-squared values imply better fit, whereas performance as random forest, extra trees, XGB regressor, and LGBM regressor
measurements such as RMSE, MAE, and MAPE suggest greater also have low RMSE and MAE. The choice depends on prioritizing
performance.44 When a model outperforms the test set on the train- simplicity or predictive performance. Validating the chosen model’s
ing set, it is said to be overfitting. Another thing to think about performance is crucial before making a final decision. Table II sum-
is complexity; simpler models, such lasso or linear regression, are marizes a comparison of the current machine-learning methods with
favored over more intricate models, such as random forest or gra- other approaches in the solar irradiance forecast. Based on the low-
dient boosting. Finally, interpretability is a criterion that should be est errors (RMSE, MAE, and MAPE) and the greatest R2 values,
taken into account. Elastic net and gradient boosting regressor are the best-performing models are identified for each target variable
potential models for predicting data and has a low RMSE and MAE illustrated in Figs. 5–7 Figs. 4–8. The best model for solar irradi-
on the test set, indicating a good predictive performance. GBR has ance is gradient boosting, which has the highest R2 (0.607) and the
the lowest RMSE but higher MAE and MAPE. Other models such lowest RMSE (0.685), MAE (0.530), and MAPE (0.0217). Gradient
Model Target variable RMSE test MAE test MAPE test R2 test
Model Target variable RMSE test MAE test MAPE test R2 test
FIG. 9. RMSE values of optimum models for various input combinations in a train and test dataset.
FIG. 10. MAE values of optimum models for various input combinations in a train and test dataset.
FIG. 11. MAPE values of optimum models for various input combinations in a train and test dataset.
FIG. 12. R2 values of optimum models for various input combinations in a train and test dataset.
TABLE III. Performance of different DL prediction models. Minimal overfitting or underfitting for all models is suggested by the
2 tight alignment of training and validation losses.
MODEL RMSE MAE R Overall, the RNN, LSTM, and GRU models demonstrate sim-
RNN 0.300 610 965 0.266 959 38 0.008 343 347 ilar performance in terms of loss reduction and final loss values,
LSTM 0.302 093 561 0.268 533 459 −0.001 462 363 indicating that any of these models could be suitable for the fore-
GRU 0.301 453 221 0.268 708 013 0.002 778 684 casting task with minor differences in learning stability. Based on
the provided loss curves, the LSTM model appears to be the best
performer. It shows the most stable and consistent validation loss,
indicating better generalization to unseen data compared to the
LSTM, and GRU, to solar irradiance forecasting. In addition, this RNN and GRU models, which exhibit more fluctuations.
study addressed the problem of overfitting and highlighted improve- Thus, the LSTM model is likely the most reliable for the fore-
ments in model training by augmenting the training data. The table casting task. Based on RMSE and MAE, RNN performs the best
further provides details about the models’ architecture, advantages, overall because its values are the lowest for both measures. In addi-
and disadvantages. tion, compared to the other models, RNN has the highest (but still
The RNN has superior prediction accuracy, as evidenced by extremely low) R2 value, meaning it explains a little bit more vari-
its lowest RMSE and MAE. Among the three models, i.e., RNN, ance in the data. As a result, of the three models, RNN performs the
LSTM, and GRU models, the RNN performs best with the low- best in terms of accuracy. Therefore, RNN shows the different time
est RMSE (0.3006) and MAE (0.2670), indicating the most accurate horizons predictions (1, 8, 16, and 24 h), as is depicted in Fig. 16.
predictions. However, its R2 value (0.0083) is very low, showing Although the RNN model achieves low RMSE and MAE values, its
limited ability to explain data variability. The LSTM model has high MAPE and negative or near-zero R2 values suggest poor over-
slightly higher RMSE (0.3021) and MAE (0.2685) and a negative R2 all predictive performance, particularly over longer time horizons
(−0.0015), suggesting poorer performance. The GRU model’s per- Fig. 17.
formance is similar to LSTM but with a slightly positive R2 (0.0028), The model has difficulty providing accurate and reliable predic-
indicating marginally better variance explanation shown in Table III. tions, as indicated by the high percentage errors and low explained
However, all models show limited effectiveness in capturing data variance. The RNN model performs consistently when evaluated
patterns. over a range of time horizons in terms of RMSE and MAE, but its
However, the MAPE values show a large percentage divergence it comes to longer-term projections when it is unable to produce
from the actual values, particularly for the 8 h (933.09%) and 24 h accurate and dependable predictions.
(867.32%) projections, which are noticeably high. This implies that When comparing the best-performing machine learning and
the RNN model has trouble forecasting real values accurately, even deep learning models—GBR and RNN, respectively—Tables II and
if it can maintain a constant error margin. Furthermore, a weak fit IV reveal that each model is suited to different forecasting horizons.
is shown by the negative or almost zero R2 values, which show that The model optimized for short-term forecasts excels in predicting
the model explains little to none of the variation in the data. In sum- the immediate future (1 h ahead) but does not perform as well for
mary, the RNN model performs less well than ideal, especially when longer-term predictions (24 h ahead). For short-term prediction, the
TABLE IV. Various time prediction performances of RNN error metrics. predictions, while the GBR model is preferable for accurate and
2 stable long-term forecasting.
Time horizon RMSE MAE MAPE (%) R
1h 0.28 0.24 197.06 −0.03
8h 0.28 0.24 933.09 −0.01 D. Performance of the hybrid model
16 h 0.28 0.24 574.25 −0.01 The proposed hybrid GBR-RNN model effectively combines
24 h 0.28 0.22 867.32 0.01 the strengths of GBR and RNN to enhance forecasting accuracy.
GBR excels at capturing complex patterns in structured, non-
linear data and is robust to outliers with fast convergence, while
RNN specializes in modeling sequential data, learning temporal
RNN model has a significantly lower RMSE and MAE for short- dependencies, and capturing short-term patterns.
term predictions compared to the GBR, which suggests that it may By integrating these two approaches, the hybrid model com-
be more effective for immediate (1-h) forecasts. However, the nega- pensates for the limitations of each when used alone. This syn-
tive R2 value and extremely high MAPE indicate that its predictive ergy makes the GBR-RNN model particularly well-suited for time-
accuracy and consistency are poor. For longer-term forecasts (8, 16, series forecasting tasks such as solar irradiance prediction, offer-
and 24 h), the GBR model is superior. It exhibits higher R2 values, ing improved reliability and performance. Figure 18 illustrates the
indicating a better fit to the data, and its MAPE is significantly lower, pseudo-code of the Hybrid GBR-RNN model, detailing the step-
demonstrating greater accuracy in predictions relative to actual val- by-step flow from GBR training and prediction to RNN sequence
ues. Overall, the RNN model may offer more precise short-term modeling and final output generation.
The hybrid GBR-RNN model is a two-stage forecasting the other two models. The R2 values indicate that both the GBR
approach designed to improve the accuracy of solar irradiance pre- and hybrid models explain 77% of the variance in the data, while
diction. First, GBR is used to capture the complex non-linear trends the RNN explains slightly less at 75%. This shows that GBR and the
in historical data by combining multiple weak learners (usually deci- hybrid model are equally effective in capturing the variability in the
sion trees). The GBR model is trained on input features such as data, while the RNN is slightly less effective.
weather parameters and previous irradiance values. It builds an Therefore the hybrid model performs similarly to the GBR
ensemble of decision trees where each new tree corrects the errors model, with slight advantages in MAE. Both models outperform
of the previous ones. The final prediction from GBR is given by the RNN in terms of RMSE, MAE, and R2 , indicating that these
are more reliable for this particular forecasting task. The hybrid
Q
model’s performance being nearly identical to GBR suggests that
f Q (x j ) = ∑ γT ⋅ hT (x j ), (26)
T=1
while the hybridization does not drastically improve the metrics, it
maintains strong performance across all evaluated aspects. There-
where fQ (xj ) is the predicted value at input xj , Q is the number of fore, the hybrid model offers a balanced approach that combines the
trees, hT is the weak learner at iteration T, and γT is the learning rate strengths of both GBR and RNN, without sacrificing accuracy. They
or scaling factor. improve accuracy and reliability of solar irradiance forecasting.
In the second stage, the RNN takes the sequence of GBR
outputs as its input to learn temporal patterns over time. RNNs E. Uncertainity
maintain a hidden state that is updated at each time step using The performance of SR, which may be a statistical or ML model,
the current input and the previous hidden state. This allows RNNs is evaluated using the Prediction Interval Coverage Probability
to effectively model dependencies across time, which is crucial for (PICP) and the Mean Prediction Interval (MPI).
time-series forecasting such as solar irradiance. The hidden state
update in the RNN is calculated as (a) PICP: measures the likelihood that the actual outcome of an
input falls within the predicted boundaries. It is calculated
hT = tanh (U ⋅ xT + W ⋅ hT−1 ), (27) based on a frequency formula.
(b) MPI: quantifies the ability to capture target values within pre-
where xT is the input at time T, hT−1 is the previous hidden state, diction bounds and is determined for all points in the test
U and W are weight matrices, and tanh is the activation function. data.
The linear models, including linear regression, lasso, ridge, the NREL (1988–2022). Focusing on the five input variables—solar
and elastic net, exhibit similar MPI values of ∼58.4. This consis- irradiance, dew point, temperature, relative humidity, and wind
tency indicates that these models generate relatively wide prediction speed—with a primary emphasis on solar irradiance, this study sys-
intervals, suggesting a conservative approach that accounts for a tematically evaluates the predictive capabilities of three DL and ten
significant level of uncertainty in their predictions. ML algorithms.
In addition, the PICP for these models is around 0.95, mean- Through an extensive comparative analysis, this study not only
ing that 95% of the actual observations fall within the prediction identifies the top-performing individual models—GBR, XGBoost,
intervals. This balance demonstrates that the prediction intervals are and elastic net for ML, and RNN for DL—but also demonstrates
neither excessively wide nor too narrow, effectively capturing the how ensemble methods can significantly enhance forecasting accu-
variability present in the data. racy. The incorporation of Pearson correlation for feature selection
In contrast, tree-based models such as random forest, gradi- and the use of quantile regression to account for uncertainty further
ent boosting, extra trees, XGBoost, and LightGBM generally display underscore the robustness and depth of this work.
lower MPI values, ranging from about 30 to 37, with gradient boost- A standout contribution of this research is the development
ing and LightGBM showing particularly low MPI values. These of a hybrid GBR-RNN model, combining the strengths of the best-
lower MPI values suggest that tree-based models produce nar- performing ML and DL models. This hybrid approach consistently
rower prediction intervals, reflecting greater confidence in their outperforms individual models across key performance metrics (R2 ,
predictions. However, the PICP for these models is slightly reduced RMSE, and MAE), particularly for long-term solar irradiance fore-
compared to the linear models, falling between 0.90 and 0.91, with casting, affirming its superior predictive capabilities. The hybrid
LightGBM having the lowest PICP at 0.90. This indicates that while model not only improves accuracy but also enhances the reliability
tree-based models are more confident, they may occasionally under- and efficiency of energy management in hybrid renewable systems.
estimate the uncertainty. This results in fewer actual values being Moreover, this study sets a new benchmark in solar irradiance fore-
captured within the prediction interval. casting, showcasing clear superiority over conventional techniques.
The KNN model has an MPI of 33.18, which signifies a moder- By comparing the proposed hybrid method with four other exist-
ate level of confidence in its predictions. The PICP for KNN is 0.91, ing approaches, it is evident that the developed model significantly
suggesting that the model does a reasonable job of capturing the enhances prediction quality and operational decision-making in
actual observations within its prediction intervals, although there is energy systems.
21
Investigation (equal); Writing – original draft (equal); Writing – K. Sudharshan et al., “Systematic review on impact of different irradi-
review & editing (equal). ance forecasting techniques for solar energy prediction,” Energies 15(17), 6267
(2022).
22
M. Alizamir et al., “A new insight for daily solar radiation prediction by meteo-
DATA AVAILABILITY rological data using an advanced artificial intelligence algorithm: Deep extreme
The data that support the findings of this study are available learning machine integrated with variational mode decomposition technique,”
Sustainability 15(14), 11275 (2023).
within the article. 23
M. K. Behera, I. Majumder, and N. Nayak, “Solar photovoltaic power fore-
casting using optimized modified extreme learning machine technique,” Eng. Sci.
Technol. Int. J. 21(3), 428–438 (2018).
24
REFERENCES H. M. Khalid et al., “Dust accumulation and aggregation on PV panels: An
integrated survey on impacts, mathematical models, cleaning mechanisms, and
1
Bo. Yang et al., “Classification and summarization of solar irradiance and power possible sustainable solution,” Sol. Energy 251, 261–285 (2023).
25
forecasting methods: A thorough review,” CSEE J. Power Energy Syst. 9, 978 H. Hissou et al., “A novel machine learning approach for solar radiation
(2021). estimation,” Sustainability 15(13), 10609 (2023).
2 26
C. Voyant et al., “Machine learning methods for solar radiation forecasting: A E. S. Solano, P. Dehghanian, and C. M. Affonso, “Solar radiation forecasting
review,” Renewable Energy 105, 569–582 (2017). using machine learning and ensemble feature selection,” Energies 15(19), 7049
3
S. Vadivel, S. Ramasamy, S. Mikkili, M. Ahsan, J. Haider et al., “Hybrid social (2022).
27
grouping algorithm-perturb and observe power tracking scheme for partially M. S. Alam et al., “Ensemble machine-learning models for accurate prediction
shaded photovoltaic array,” Int. J. Energy Res. 2023, 1–8. of solar irradiation in Bangladesh,” Processes 11(3), 908 (2023).
4 28
T. Zahid, K. Xu, and W. Li, “Machine learning an alternate technique to estimate J. Avanija et al., “Prediction of house price using XGBoost regression
the state of charge of energy storage devices,” Electron. Lett. 53(25), 1665–1666 algorithm,” Turk. J. Comput. Math. Educ. 12(2), 2151–2155 (2021).
(2017). 29
R. Chang, L. Bai, and C.-H. Hsu, “Solar power generation prediction
5
T. S. Ustun, S. M. S. Hussain, A. Ulutas, A. Onen, M. M. Roomi, and D. Mashima, based on deep learning,” Sustainable Energy Technol. Assess. 47, 101354
“Machine learning-based intrusion detection for achieving cybersecurity in smart (2021).
grids using IEC 61850 GOOSE messages,” Symmetry 13, 826 (2021). 30
H. Zheng and Y. Wu, “A XGBoost model with weather similarity analysis and
6
T. S. Ustun, S. M. S. Hussain, L. Yavuz, and A. Onen, “Artificial intelligence based feature engineering for short-term wind power forecasting,” Appl. Sci. 9(15), 3019
intrusion detection system for IEC 61850 sampled values under symmetric and (2019).
asymmetric faults,” IEEE Access 9, 56486–56495 (2021). 31
M. Rana, “Overview of data warehouse architecture, big data and green
7
Y. Zhou et al., “A review on global solar radiation prediction with machine computing,” J. Comput. Sci. Technol. Stud. 5, 213–217 (2024).