Next Article in Journal
Economy or Climate? Impact of Policy Uncertainty on Price Volatility of China’s Carbon Emission Trading Markets
Previous Article in Journal
Design and Simulation of an Integrated Process for the Co-Production of Power, Hydrogen, and DME by Using an Electrolyzer’s System
Previous Article in Special Issue
On the Dynamics of Spot Power Prices across Western Europe in Pandemic Times
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Spatiotemporal Downscaling Model for Solar Irradiance Forecast Using Nearest-Neighbor Random Forest and Gaussian Process

by
Shadrack T. Asiedu
1,†,
Abhilasha Suvedi
1,†,
Zongjie Wang
2,
Hossein Moradi Rekabdarkolaee
3 and
Timothy M. Hansen
1,*
1
McComish Department of Electrical Engineering and Computer Science, South Dakota State University, Brookings, SD 57007, USA
2
Department of Electrical and Computer Engineering, University of Connecticut, Storrs, CT 06268, USA
3
Department of Mathematics and Statistics, South Dakota State University, Brookings, SD 57007, USA
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Energies 2025, 18(10), 2447; https://doi.org/10.3390/en18102447
Submission received: 5 March 2025 / Revised: 21 April 2025 / Accepted: 4 May 2025 / Published: 10 May 2025
(This article belongs to the Special Issue Forecasting and Risk Management Techniques for Electricity Markets II)

Abstract

:
Accurate solar photovoltaic (PV) capacity estimation requires high-resolution, site-specific solar irradiance data to account for localized variability. However, global datasets, such as the National Solar Radiation Database (NSRDB), provide regional averages that fail to capture the fine-scale fluctuations critical for large-scale grid integration. This limitation is particularly relevant in the context of increasing distributed energy resources (DERs) penetration, such as rooftop PV. Additionally, it is critical to the implementation of the U.S. Federal Energy Regulatory Commission (FERC) Order 2222, which facilitates DER participation in U.S. bulk power markets. To address this challenge, this study evaluates Nearest-Neighbor Random Forest (NNRF) and Nearest-Neighbor Gaussian Process (NNGP) models for spatiotemporal downscaling of global solar irradiance data. By leveraging historical irradiance and meteorological data, these models incorporate spatial, temporal, and feature-based correlations to enhance local irradiance predictions. The NNRF model, a machine-learning approach, prioritizes computational efficiency and predictive accuracy, while the NNGP model offers a level of interpretability and prediction uncertainty by numerically quantifying correlations and dependencies in the data. Model validation was conducted using day-ahead predictions. The results showed that the average Goodness of Fit (GoF) of the NNRF model of 90.61% across all eight sites outperformed the GoF of the NNGP of 85.88%. Additionally, the computational speed of NNRF was 2.5 times faster than the NNGP. Finally, the NNGP displayed polynomial scaling while the NNRF scaled linearly with increasing number of nearest neighbors. Additional validation of the model on five sites in Puerto Rico further confirmed the superiority of the NNRF model over the NNGP model. These findings highlight the robustness and computational efficiency of NNRF for large-scale solar irradiance downscaling, making it a strong candidate for improving PV capacity estimation and real-time electricity market integration for DERs.

1. Introduction

The global push for decarbonization has driven regulatory developments such as the U.S. Federal Energy Regulatory Commission (FERC) Order 2222 [1], which enables the participation of distributed energy resources (DERs), including rooftop solar photovoltaic (PV) systems, in wholesale electricity markets. This regulatory shift is accelerating the integration of renewable energy resources and reshaping both power system operations and market dynamics [2]. However, integrating variable renewable energy resources (VREs) like solar PV presents significant challenges for grid stability, reliability, and dispatch [3]. Unlike conventional generators, VREs exhibit volatile output due to rapid fluctuations in cloud cover, humidity, and other localized weather conditions. As a result, accurate and high-resolution solar irradiance forecasting is essential for managing DERs effectively within the power grid. However, existing global irradiance models typically operate at coarse spatial and temporal resolutions, limiting their utility for site-specific forecasting and real-time grid operations.
Advances in power electronic converter (PEC) technology, such as improved dynamic models [4] and virtual inertia solutions [5], address some stability concerns. However, accurate solar PV forecasting remains a critical challenge for grid operators and market participants. Existing approaches for solar PV forecasting primarily rely on numerical weather prediction (NWP) models [6,7], statistical methods and machine-learning techniques [8,9,10,11], deep learning algorithms [12,13], and hybrid approaches [9,14,15]. Some studies incorporate probabilistic methods to quantify uncertainty [16,17,18], while others consider the spatial influence of neighboring sites on a target location [12,19]. Although these methods have demonstrated success, many rely on an implicit assumption that global solar irradiance datasets provide accurate site-specific representations. This assumption introduces inaccuracies because global datasets, such as those from the National Solar Radiation Database (NSRDB) [20], provide irradiance values averaged over large spatial scales (e.g., 4 km × 4 km), which fail to capture fine-grained local variability at individual DERs.
A key challenge in solar PV forecasting is the need for high-resolution, site-specific solar irradiance data. Current datasets from sources like NSRDB and Open Meteo [21] cover broad spatial regions, with some reaching resolutions as coarse as 11 km × 11 km. This leads to approximation errors that can undermine accurate capacity estimation and power system operations such as dispatch and balancing. While the ideal solution would involve deploying weather stations at every prospective PV site to obtain direct irradiance measurements, this approach is impractical due to cost, maintenance, and logistical constraints. Furthermore, it would be infeasible for forecasting irradiance at prospective solar PV sites where physical measurements are not yet available. Therefore, there is a pressing need for advanced downscaling techniques that can transform coarse global irradiance data into high-resolution, site-specific estimates suitable for real-time market operations and DER integration.
By leveraging historical data on both global and local solar irradiance measurements, models can be developed to learn the mapping of the global values to the local values. Additionally, by incorporating spatial correlations, the dependencies of neighboring sites could be captured to infer forecast values for sites whose local solar irradiance measurements are unknown. As promising as downscaling is for power system operations, there is a dearth of literature on this method. Most solar irradiance downscaling studies focused on generating high-resolution time-scale measurements from coarse-grained solar irradiance forecast values [22,23,24,25,26]. Some of the studies that focused on spatial downscaling include [27], where coarse resolution downward shortwave radiation is disaggregated into a 30 m scale using an atmospheric transmittance-based weighting technique. Although the proposed model achieves reliable downscaling results, especially for mountainous areas, the model heavily depends on a satellite-derived dataset. Similarly, artificial neural networks (ANNs) were used to downscale weather variables from a 1.2 km spatial resolution to a 240 m resolution [28]. The study, however, used a simulated dataset generated from the Weather Research and Forecasting (WRF) model in Large Eddy Simulation mode with a 240 grid, which may bring into question the practical implementation of their model. The study in [29] adopted the nearest-neighbor Gaussian process (NNGP) to downscale solar irradiance from global resolution to a more fine-grained local resolution. However, the model in [29] performed interpolation instead of extrapolation (i.e., forecasting) to obtain day-ahead predictions. By evaluating the NNGP model on a temporal point within the training temporal space, the study failed to validate the capability of the NNGP to accurately forecast downscaled irradiance for time points beyond the training temporal space.
The main contribution of this paper is the development of an accurate, scalable spatiotemporal downscaling model for day-ahead solar irradiance forecast. Our study designs a novel approach to spatiotemporal downscaling of solar irradiance for modeling and forecasting using a Nearest-Neighbor Random Forest (NNRF). The NNRF approach is compared to the performance of NNGP updated from [29] to properly perform forecasting.
In the rest of the paper, the methodology is presented in Section 2, which describes the NNGP and NNRF spatiotemporal models. The simulation setup and data collection are presented in Section 3. Section 4 of this paper discusses the results. Finally, conclusions are made in Section 5, alongside future research directions. Additionally, the data preprocessing steps are shown in Appendix A.

2. Downscaling Theory and Methods

2.1. Spatiotemporal Models

Time series data, used in many forecasts, contains information about when each data element was observed. Spatial data, on the other hand, reveals information about where each data element was collected [30]. Spatiotemporal forecast models, combining these two dependencies, predict target variables by analyzing the dataset in both space and time dimensions [31]. The combination of temporal and spatial features enables the model to capture both the influence of nearby locations and past observations on the prediction outcome. Such integration of spatial components into temporal forecasts is demonstrated in the literature to improve forecast accuracy [32]. Mathematically, a spatiotemporal model for predicting a variable y can be expressed as:
y i , t = f ( y i , t 1 , , y i , t n , X i , t , Y neighbors , ϵ i , t ) ,
where, at time t and location i, y i , t R n is the target variable, y i , t 1 , , y i , t n represents n past values (i.e., temporal dependency), X i , t are exogenous variables (e.g., weather features in the case of solar irradiance forecast), Y neighbors are target variable values from neighboring locations (i.e., spatial dependency), and ϵ i , t R n is the model error term. The spatiotemporal model is then represented as the function f (e.g., statistical, machine learning, deep learning).

2.2. Methods for Downscaling Solar Irradiance

Global solar irradiation data, like those provided by the NSRDB, cover a 4 km by 4 km spatial resolution and mostly in a coarse temporal resolution [33]. The low resolution of the NSRDB poses two significant challenges to the accurate estimation of solar PV output. First, the 30 min time resolution is not suitable for real-time dispatch of solar PV, where output forecasts are needed on a shorter time scale (e.g., 5 min for real-time electricity markets). Second, due to the erratic variability of weather, the averaged solar irradiance over the 4 km by 4 km space does not reflect the individual site-specific measurements, which can contain many different solar PV installations in the 16 km2 area. Figure 1 shows that the inherent variation between the global solar irradiance and the ground measurements (i.e., the local solar irradiance) can range from very small, negligible deviations to significantly high disparities in a day. Such significant margins could misinform the forecast of solar PV output and lead to inefficient market dispatch or, in the worst case, grid failure and blackouts. These spatiotemporal resolution issues necessitate the development of accurate models to map global irradiance to site-specific solar irradiance for better PV capacity estimation and electricity market integration.
To better estimate the ground measurements, the Gaussian copula is used to downscale global to local global horizontal irradiance (GHI) clear sky indices in [24]. The same method is used in [23] to spatiotemporally downscale solar irradiance from hourly resolution to a 15 s resolution. This method models dependencies between variables with potentially different marginal distributions by transforming them into a common Gaussian space using a copula function. The study in [24] is improved by adopting the T-copula method to downscale the GHI clear sky index in [25]. This improved method offered the advantage of better simulation of binary events caused by the movement of clouds of adjustable frequency. Furthermore, a nearest-neighbor (NN) approach is combined with a Gaussian process (GP) in [29] to downscale solar irradiance from the global level to local resolution. The GP simplifies the Gaussian copula method by assuming the marginal distributions of the variables within the dataset to be uniform or Gaussian. Such an assumption makes the GP model very suitable for a sparse dataset. However, this process still involves the inversion of large covariance matrices, making its application computationally intensive. Based on the concept of the NNGP, our proposed NNRF resolves this challenge by replacing the GP with a random forest (RF) model, eliminating the need to invert a large covariance matrix. Instead, an ensemble of decision trees is used to capture the temporal and spatial relationship between neighboring sites and past observations. We will next describe the underlying theory and application of NNGP and NNRF to spatiotemporal downscaling.

2.3. Nearest-Neighbor Gaussian Process (NNGP)

NNGP is an efficient approximation of the traditional GP, designed for large-scale datasets. Traditional GPs involve a covariance matrix of size n × n , where n is the number of training points. This leads to computational complexities of O ( n 3 ) for matrix inversion and O ( n 2 ) for storage. NNGP mitigates this limitation using only the k-nearest neighbors for each data point, resulting in a sparse precision matrix. This approximation reduces the computational complexity from O ( n 3 ) to O ( k 3 n ) , while preserving local dependencies. As k is a constant parameter, the scaling of NNGP becomes linear with n.
For a random process f ( x ) , a GP is defined as:
f ( x ) GP m ( x ) , k ( x , x ) ,
where m ( x ) is the mean function, and k ( x , x ) is the covariance kernel function that models the similarity between points x and x . A common kernel is the squared exponential kernel [34,35], given as:
k ( x , x ) = σ 2 exp x x 2 2 l 2 ,
where σ 2 is the variance and is the length scale controlling smoothness. NNGP approximates the full GP by considering only the k nearest neighbors (k-NNs) for each data point. The covariance matrix is sparsified as:
K NN ( x i , x j ) = k ( x i , x j ) , if x j N i , 0 , otherwise ,
where N i denotes the set of k-NNs of x i . This informs the computation of the covariance matrices, which incorporate spatial, temporal, and feature-based distances. Thus:
k ( x , x ) = σ 2 exp d s 2 2 l s 2 exp d t 2 2 l t 2 exp d g 2 2 l g 2 ,
where
  • d s = x spatial x spatial is the spatial distance,
  • d t = | t t | is the temporal distance, and
  • d g = x global features x global features is the feature-based distance.
Using the GP kernel in (5), we compute the covariance matrix between the test point and its neighbors ( K test , train ), as well as the covariance matrix among the neighboring points themselves ( K train , train ). The final downscaled prediction is obtained as:
y ^ = X test T β ^ + K test , train K train , train 1 y train X train T β ^ ,
where
β ^ = X T X 1 X T y .
In the above equation, X test represents the input features of the target site, while X train denotes the input features of the neighboring sites. The matrix K test , train is the covariance matrix between the test site and its neighbors, and K train , train is the covariance matrix among the neighboring sites. The vector y train contains the target values of the neighboring sites. More generally, X and y denote the input features and target values for all sites, respectively, and β ^ is the estimated coefficient vector obtained from the linear regression model. Finally, y ^ is the predicted downscaled solar irradiance of the target site. The pseudo algorithm for the implementation of this model is described in Algorithm 1.
Algorithm 1 Pseudo Algorithm for Nearest-Neighbor Gaussian Process (NNGP).
  • Require: • Training data D = { ( x i , y i ) } i = 1 n with spatial coordinates s i and global features f i
    • Hyperparameters σ , l s , l t , l g (spatial, temporal, and feature length scales, and signal variance)
    • Regularization term ϵ and number of neighbors k
  • Ensure: Predictions y ^ for test points x
1:
Step 1: Data Preprocessing
2:
Construct input features X for training points:
X i { t i , s i , f i } i { 1 , 2 , , n }
3:
Step 2: Kernel Function
4:
Define the combined kernel function:
K ( x i , x j ) = σ 2 exp d s 2 2 l s 2 exp d t 2 2 l t 2 exp d g 2 2 l g 2 ,
where:
  • d s = s i s j is the spatial distance
  • d t = | t i t j | is the temporal distance
  • d g = f i f j is the feature distance
5:
Step 3: Hyperparameter Selection
6:
Select hyperparameters that minimize the validation Mean Absolute Error:
l ^ s , l ^ t , l ^ g , σ ^ = arg min l s , l t , l g , σ MAE val
7:
Step 4: Nearest-Neighbor Selection
8:
for each test point x  do
9:
     Compute spatial distances d s , temporal distances d t , and feature distances d g between x and all training points
10:
    Identify k-NN based on combined distances
11:
end for
12:
Step 5: Covariance Computation
13:
Compute the covariance matrix among neighbors for training points:
K train , train = K ( x i , x j ) + ϵ I ,
where:
  • ϵ I is a penalty term to prevent singularity of the covariance matrix
14:
Compute the covariance vector between the test point and neighbors:
K test , train = K ( x , x j ) j neighbors
15:
Step 6: Prediction
16:
Estimate the coefficients of the linear regression model
β ^ = X T X 1 X T y
17:
Predict the output for the test point:
y ^ = X test T β ^ + K test , train K train , train 1 y train X train T β ^
18:
Step 7: Evaluation
19:
Calculate metrics such as Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and Goodness of Fit (GoF) for predictions
20:
Step 8: Output
21:
Return trained NNGP predictions for each site and evaluation results

2.4. Nearest-Neighbor Random Forest (NNRF)

The RF algorithm is formed by bagging random samples of decision trees to produce an ensemble model that improves the predictions of each tree [36]. RFs are well known for their ability to learn complex non-linear patterns while efficiently handling high-dimensional features and large datasets [37,38]. This makes RF well-suited for scalability as the number of neighbors and data points increases.
An RF model minimizes the Mean Squared Error (MSE) of the ensemble decision trees over the training points such that:
MSE = 1 N i N s y i 1 T t = 1 T h t ( f i ) 2 ,
where T is the total number of trees in the forest and h t ( f i ) is the prediction from the t-th tree for input f i . Each decision tree, h t , is trained by recursively splitting the training data to minimize the impurity. A common type of impurity is the entropy, which quantifies the amount of uncertainty or information disorder at each splitting node. The RF model seeks to minimize the average entropy of the decision tree as:
min H ( S ) = i P i ( S ) l o g 2 P i ( S ) ,
where S represents the set of samples at a particular node in the decision tree, H is the entropy of S, and P i measures the probability of class i in sample S.
For a given test point X test , the RF model predicts the normalized local irradiance as:
y ^ test = 1 T t = 1 T h t ( X test ) ,
where h t ( X test ) is the prediction from the t-th tree for test input X test .
The NNRF approach enhances traditional RF by incorporating an NN framework, ensuring both spatial and temporal locality in predictions. NNs are selected based on spatial coordinates, allowing the model to capture local dependencies more effectively while maintaining computational efficiency. For a target site s, the k-NNs are determined using the Euclidean distance [39]:
d spatial ( s , n ) = x s x n 2 ,
where x s and x n are the spatial coordinates of the target site s and the n-th neighbor, respectively. The k-NNs are stored in the set:
N s = { n 1 , n 2 , , n k } .
For a target site s with spatial coordinates x s , the k-NNs are identified as:
N s = arg min S i S x s x i 2 ,
where | S | = k and S is the set of all sites. For each site s, the training data consists of its feature vectors in addition to the global irradiance of the neighboring sites. The target variable for each site is the local irradiance of that particular test site. The pseudo algorithm for the implementation of NNRF is described in Algorithm 2.
Algorithm 2 Pseudo Algorithm for Nearest-Neighbor Random Forest (NNRF).
Require: Training data D = { ( x i , y i ) } i = 1 n , spatial coordinates s i , number of neighbors k, features F , target variable y
Ensure: Trained random forest model for predicting y
  1:
Step 1: Preprocessing
  2:
Combine data from all sites into a single dataset D
  3:
Normalize feature values using MinMaxScaler
  4:
Step 2: Nearest-Neighbor Identification
  5:
for each site s in spatial coordinates s i  do
  6:
     Compute spatial distances d s between site s and all other sites
  7:
     Identify k-NNs based on d s
  8:
end for
  9:
Step 3: Training Data Preparation
10:
for each site s do
11:
    Extract training data D s for site s from D
12:
    for each neighbor s neighbor of site s do
13:
        Extract neighbor’s data D s neighbor
14:
        Align neighbor’s data by datetime with D s
15:
        Add neighbor’s GHI as a new feature: G H I neighbor
16:
    end for
17:
end for
18:
Step 4: Random Forest Training
19:
for each site s do
20:
    Define features F , including G H I neighbor for each neighbor
21:
    Split data into X train (features) and m a t h b f y train (target variable G H I _ l o c a l )
22:
    Train Random Forest Regressor on X train and y train with n estimators trees
23:
end for
24:
Step 5: Prediction
25:
for each test point x at site s do
26:
    Align neighbor data by datetime and add G H I neighbor as features
27:
    Predict y ^ using trained random forest model
28:
end for
29:
Step 6: Evaluation
30:
Calculate metrics such as Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and Goodness of Fit (GoF) for predictions
31:
Step 7: Output
32:
Return trained NNRF predictions for each site and evaluation results

3. Simulation Setup

In this study, we trained the NNGP and NNRF models on datasets from eight different sites and compared their performances in terms of accuracy and computational speed. The datasets were first cleaned of outliers and missing data. Details of the preprocessing steps are provided in the appendix. The temporal features were engineered to capture the periodic patterns in the dataset. The Euclidean distances between the sites were computed to determine the nearest neighboring sites. The NNGP model was first built using the squared exponential kernel, followed by the replacement of the GP with RF to form the NNRF model. Both models were developed in Python version 3.11.7. Major packages used in the code implementation include scikit-learn, mainly for the machine-learning modeling, and geopandas for the spatial analysis of the sites’ coordinates. Both models were executed on a local desktop equipped with an Intel® Core processor featuring 16 CPUs, each operating at a clock speed of 2.0 GHz and 16 GB of RAM. The rest of the simulation setup describes the dataset used in the study, the implementation details of NNGP and NNRF, the scalability test of the models, and the evaluation metrics.

3.1. Data Collection

Texas has significant solar energy potential and deployed solar resources, with annual average global tilt solar radiation ranging from 4.76 kWh/m2/day to 6.58 kWh/m2/day across the state [40]. Its abundant solar resources, combined with the unique characteristics of the isolated ERCOT grid, make it an ideal region for this study. Eight sites across Texas were selected for analysis, with their locations and coordinates listed in Table 1, and their spatial distribution illustrated in Figure 2. In this study, Sites 2 and 7 share the same global 4 km2 grid space, while each other site has a distinct global region.
The spatial distribution of the selected sites, shown in Figure 2, indicates that most of the sites are sparsely distributed across the region. However, certain locations—specifically Sites 3, 4, 5, and 8 form a relatively close cluster, while Sites 2 and 7 share the same global space as shown by the inset plot in Figure 2. Understanding this spatial arrangement is essential for accurately capturing the influence of neighboring sites on local conditions. Table 2 presents the ground distances between the sites in km, further illustrating their relative proximity and separation.
The global dataset for each site was obtained from the NSRDB website [20], while the local dataset was sourced from Ambient Weather [41]. The global dataset consists of 5-min interval data on solar irradiance, temperature, pressure, wind speed, and dew point, spanning the period from 1 January 2022 to 31 December 2022. During the same period and with the same temporal resolution, ground-measured solar irradiance data were collected as the local irradiance dataset. The dataset for each site has 105,120 data points, enough to effectively train a machine-learning model.
Figure 3 and Figure 4 present the annual profiles of global and local irradiance, respectively, for Site 1 in 2022. The plots show significant differences between the global and local irradiance. This is confirmed by the residual plot in Figure 5, which shows the numerical deviations of the global and local irradiance at each time point for Site 1. The global irradiance, being forecast values by NSRDB, does not accurately represent the ground measurements. In the same manner, the datasets of the other seven sites have similar distribution and deviation between the global and local irradiance. This observation reveals that the use of global solar irradiance for solar PV estimation could result in inaccurate solar PV forecasting, posing risks to power dispatch reliability and even network stability. This affirms the need to downscale the forecast global irradiance to more accurate site-specific values.

3.2. Feature Engineering

Solar irradiance is influenced by temporal and meteorological factors. Therefore, critical temporal features such as the hour of the day and day of the year were encoded using sine and cosine transformations to capture cyclical trends accurately. This cyclical encoding ensures continuity across periodic boundaries, such as midnight to midnight or December to January transitions. Capturing these cyclical temporal variations is crucial in reducing predictive errors, particularly during transitional periods with rapid changes in solar angles. Meteorological parameters such as temperature, atmospheric pressure, wind speed, and dew point from the global dataset were incorporated to reflect weather-dependent variability in irradiance. Integrating meteorological data provides essential contextual information that improves the model’s ability to generalize under diverse weather conditions and thus enhances its robustness. The Hour_sin and Hour_cos features were computed using equations:
Hour _ sin = sin 2 π · Hour 24 ,
Hour _ cos = cos 2 π · Hour 24 .
Similarly, the DayOfYear_sin and DayOfYear_cos features were computed as:
DayOfYear _ sin = sin 2 π · DayOfYear 365 ,
DayOfYear _ cos = cos 2 π · DayOfYear 365 .
The input data to the models are the encoded hour and day values, temperature, pressure, wind speed, dew point, and the global solar irradiance of the target and neighboring sites. These features were scaled using scikit-learn’s MinMax Scaler. The model was then trained to predict local solar irradiance as the output.

3.3. NNGP Implementation

The NNGP model was implemented to predict site-specific GHI values using a combination of spatial, temporal, and feature-based distances. For each site, its k-NNs were identified based on Euclidean distance in the spatial domain, with geographic coordinates serving as inputs. By focusing solely on these neighbors, the NNGP framework effectively localized the GP. This significantly reduced the dimensionality of the covariance matrices. Temporal dependencies were incorporated by considering the time difference between the current observation and historical data from neighboring sites. Temporal distances were calculated in minutes to ensure fine-grained temporal resolution suitable for solar irradiance modeling. Furthermore, feature-based distances were included to account for meteorological conditions such as temperature, pressure, wind speed, and dew point. These feature-based distances were computed in the feature-space to capture similarities and differences in environmental conditions across sites.
The squared exponential kernel in (5), used for the computation of the covariances incorporated spatial, temporal, and feature-based distances, with separate length-scale parameters ( l s , l t , l g , σ ) for each distance type. Larger values of these parameters implied that distance neighbors and observations had a significant influence on the prediction outcome. These parameters, including the variance ( σ ), were tuned to balance their influence on the predictions. The final values of the hyperparameters used for the results in this paper are presented in Table 3.
To enhance the predictive capacity of the model, cyclical encoding of time was applied to represent the periodic nature of hours and days of the year. The covariance matrix among training points ( K train , train ) was regularized for numerical stability during inversion. Regularization was achieved by adding a small offset penalty term to the training covariance matrix to prevent singularities. Predictions were made using the GP regression formula provided in (6). This was achieved by combining the computed covariance matrices to scale the residuals between the neighbors’ local GHI and their predicted values from the linear regression model computed in (7). The resulting scaled residuals, known as the Gaussian correction term, were added to the linear regression estimated values of the target site to obtain the final downscaled GHI.

3.4. NNRF Implementation

Similar to the NNGP model, the NNRF model was developed to predict site-specific GHI values by leveraging spatial, temporal, and meteorological information. For each site, the model utilized its k-NNs, determined using Euclidean distances computed from the geographic coordinates of the sites. A k value of 3 was used in this model. This nearest-neighbor framework enabled the model to incorporate local spatial relationships, ensuring that predictions were informed by the most relevant neighboring data. Temporal dependencies were integrated by incorporating the encoded Hour and Day as part of the input features. This was carried out to ensure that training data reflected consistent diurnal and seasonal patterns. Additionally, meteorological features such as temperature, pressure, wind speed, and dew point were included to capture the environmental factors influencing solar irradiance variability.
The global GHI values of neighboring sites were also included as additional features to provide spatial context for each prediction. These neighbor features were aligned temporally to ensure consistency between the target site and its neighbors. The RF model, comprising an ensemble of decision trees, was trained using these features to predict the local GHI values. The model was initialized with 150 estimators to balance accuracy and computational efficiency. The ensemble approach enabled the RF model to handle complex non-linear relationships between input features and the target variable.

3.5. Scalability Test

Additionally, we investigated how well both models scale in terms of accuracy and computational speed with varying numbers of k-NNs. We achieved this by adding seven more sites to the existing ones to make fifteen, and retrained the models on a new dataset. To ensure adequate evaluation of the model’s scaling performance, the new training dataset was collected from 1 January to 30 December 2023, different from the former training dataset. Similar to earlier simulations, the dataset for 31 December 2023 was excluded to validate the accuracy of the scaled models. The k-NNs were varied from 2 to 14 for each of the sites. As a result of the increased data size, the scalability test was performed on one compute node of the South Dakota State University’s Innovator’s Cluster equipped with 2 Intel Xeon Gold 6342 CPUs with 48 cores. Each processor operated at a clock speed of 2.80 GHz and was supported by 256 GB of RAM.

3.6. Evaluation of Models

After the initial training of the two models on the dataset from 1 January 2022 to 30 December 2022, the models were validated by making day-ahead predictions of the downscaled local GHI for all eight sites for 31 December 2022. The evaluation of the model’s performance was achieved using Mean Absolute Error (MAE) and the Goodness of Fit (GoF). The MAE was computed as:
MAE = 1 N i = 1 n | y i y ^ i | ,
where y i is the actual or true value of the i-th observation, y ^ i is the predicted value corresponding to the i-th observation, and N denotes the sample size in the testing set. To measure how well the estimated models capture the patterns of the dataset, the GoF is computed using the normalized Root Mean Squared Error (NRMSE), such that:
GoF ( P e r c e n t ) = ( 1 NRMSE ) 100 ,
where NRMSE is given by:
NRMSE = 1 n i = 1 n ( y i y ^ i ) 2 y max y min .
The use of the NRMSE to compute the GoF offers the advantage of normalizing the error to make it dimensionless, allowing easier comparison of the model’s performance across the dataset with different units. Additionally, while MAE, NRMSE, and GoF measure the effectiveness of the model, we assessed the model’s efficiency by measuring the computational time, as this is required for real-time power system operations.

3.7. Case Study on Puerto Rico

To evaluate the generalizability of the proposed data-driven models, it is essential to test their performance not only on unseen data but also across distinct climate zones. To this end, we conduct an additional validation using a new dataset from Puerto Rico, which represents a markedly different climatic environment compared to Texas. Puerto Rico was chosen due to its highly variable and erratic weather patterns, providing a test of the models’ robustness. Successful performance in this setting demonstrates the models’ ability to adapt to diverse environmental conditions. As with the Texas simulation, comparable datasets including global and local solar irradiance, as well as meteorological variables, were collected for this analysis. The data spans from 1 February 2023 to 31 December 2023, across five geographically distributed sites in Puerto Rico. Figure 6 presents the map of the selected locations.
Both the NNGP and the NNRF were trained on the dataset from Puerto Rico from 1 February 2023 to 31 December 2023. Similar to the earlier simulations, predictions were made for 31 December 2023. The hyperparameters of both models were maintained, but the number of decision trees for the RF was tuned from 100 trees to 150 trees.

4. Results and Discussion

4.1. Training Performance of NNRF and NNGP

Both the NNGP and NNRF perform very well during the training phase; however, the NNRF shows slightly superior accuracy over the NNGP. The performance of NNRF is consistently higher than NNGP across all eight sites, as could be seen from Table 4. The NNRF records an average GoF of 97.63% across all sites, compared to 95.87% of the NNGP. This superior performance of the NNRF model can be attributed to RF’s ability to learn non-linear patterns in the dataset, in contrast to the NNGP’s inherent linearity. Furthermore, averaging the predictions of several decision trees makes the RF model robust to noise and outliers. This makes it comparatively more suitable for non-smooth data such as solar irradiance. Visual displays of the training performance of both models for Site 8 are shown in Figure 7a,b.
A careful observation of the two plots reveals how the NNRF model accurately captures the variability of the local irradiance better than the NNGP model. However, even though the RF model gives some partial interpretability in terms of the number of decision tree estimators and tree depth, the GP offers a better interpretability in terms of the correlation and influence of neighboring sites on predictions. The interpretability of NNRF can be further explored using explainable AI (xA), such as SHapley Additive exPlanations (SHAP) values [42]. The GP’s hyperparameters, such as the temporal, spatial, and feature length scales, and the variance, give visibility of how far in time-space or feature-space the model looks for correlations. Similarly, the covariance matrix’s structure reveals how points influence each other’s predictions.
This improved interpretability of the NNGP, however, comes with increased computational cost. The NNGP took 1004.19 s to train on the eight sites, compared to 407.63 s of the NNRF model. By avoiding the computation and inversion of covariance matrices, the NNRF model speeds up computational speed by 2.5 times more than the NNGP model. While these results are promising, validation is required to confirm how well they generalize and scale with an increasing number of neighboring sites, which is discussed later in the results.

4.2. Validation Performance of NNRF and NNGP

The final evaluation of the NNRF was made by predicting the downscaled local solar irradiance for the next day to be used in day-ahead power system operations. The dataset for 31 December 2022, used for this validation, was excluded from the training. The features of the global data and the global solar irradiance of the selected neighboring sites were used as input variables for the predictions. The day-ahead forecast was made for each site in a 5 min time step, and compared to the actual local solar irradiance of each site. The plots of the predicted downscaled solar irradiance for Sites 1, 2, 7, and 8 are presented in Figure 8. The orange line represents the NNGP’s predictions, and the red line depicts the predictions of the NNRF. Table 5 displays the model’s evaluation results for each site.
Once again, the NNRF performed better across all eight sites with an average GoF of 90.61 % , compared to 86.31% of the NNGP model. This is confirmed by the plots in Figure 8, where the NNRF’s predictions closely follow the trajectory of the local GHI better than the NNGP model. The boxplots in Figure 9 show the residuals of the actual and predicted values. While each model’s residual has an approximate mean of 0, the variance of the NNGP is much larger than the NNRF (which appears in the other error metrics). Additionally, there are larger outliers predicted by NNGP, such as the −400 point in Site 1. All these observations confirm the superior performance of the NNRF model over the NNGP model.
Aside from these observations, the NNGP predictions show an interesting trend where it performed better for sites with less rapid variation in the local irradiance profile. Likewise, its performance is relatively lower for sites with rapid local irradiance variation, which deviates more from the shape of the global solar irradiance. For instance, as can be seen in Figure 8, Site 1 and Site 7, which recorded the lowest GoF, also display higher deviations from the profile of the global irradiance. This can be seen from Table 6, where they show relatively lower correlation values of 0.7635 and 0.5797, respectively. Similarly, with the exception of Site 3, it is observed that the more the shape of the local and global irradiance is highly correlated, the higher the NNRF prediction’s accuracy. This implies that, generally, the alignment of the shape profiles of the global and local irradiance has a higher impact on the accuracy of prediction than the value of their variance. The MAE and the NRMSE also follow a similar pattern, where Site 7, whose profile’s shape deviates most from that of the global irradiance, recorded the highest prediction error. In sharp contrast, Site 8 records the minimum prediction error due to its high correlation value of 0.9707 between the global and local GHI.
This high correlation makes the global solar irradiance a good predictor of the local solar irradiance. However, when the local irradiance differs significantly from the global profile due to localized weather conditions such as cloud cover, terrain shading, or microclimate effects, the global irradiance features are unable to fully explain these local variations. The departure of Site 3 from this trend could be the result of a lower influence of the other features, such as wind, temperature, pressure, and dew point, on the predictions.
While the models’ performances are satisfactory, the variability in solar irradiance demands quantification of prediction uncertainty to improve grid planning. The NNRF model, though robust and more accurate, produces point estimates only. This makes it unable to give any insight into the prediction tolerance for effective planning or operation under uncertainties. The NNGP model, however, displays high strength in this regard. By using the values of the Gaussian corrections as variance, upper and lower bound prediction values could be generated by addition and subtraction with the mean values. These upper and lower bounds give some insight into the accompanying uncertainties of the predicted values. The results of the NNGP’s predictions for Site 3 and Site 4 are shown in Figure 10. This makes the NNGP model very suitable for probabilistic forecasts. Based on these results, the decision to choose NNRF or NNGP does not depend solely on factors such as accuracy, computational speed, and interpretability, but also, whether point forecasts or probabilistic forecasts are desirable.

4.3. Scalability of the NNGP and NNRF Models

The scalability results as presented in Figure 11 reveal how the NNRF consistently performs better than the NNGP model for different numbers of k-NNs. These accuracy values are the GoF of the day-ahead predictions of the NNGP and NNRF for 31 December 2023. It can be seen from Figure 11a that the NNRF requires as few as 3 k-NNs to achieve very good accuracy. Beyond 3 k-NNs, the NNRF model does not seem to record any significant improvement in prediction accuracy. Conversely, the NNGP accuracy scales linearly from 2 to 6 k-NNs, beyond which the accuracy shows very minimal improvement. If we select 3 k-NNs and 6 k-NNs as the local optimum values for the NNRF and NNGP, respectively, the corresponding accuracy is 90.13% for NNRF and 88.74% for NNGP. The equivalent computational time is 582.92 s for the NNRF and 1578.60 s for the NNGP. This clearly shows that besides requiring a smaller number of k-NNs to achieve a locally optimum accuracy, the NNRF also takes comparably less computational time (in this case, almost three times as fast as the NNGP model). Additionally, based on the results presented in Figure 11b, the NNRF scales linearly, whiles the NNGP displays a polynomial scaling with increasing number of k-NNs. This implies the NNRF responds to a step increase in the number of k-NNs with a scalar multiple of the computational time, while the NNGP responds with an exponential increase in the computational time. This further proves the effectiveness and efficiency of the NNRF model for large-scale solar irradiance downscaling tasks, making it more suitable for real-time grid integration of DERs.

4.4. Results of Puerto Rico Case Study

The NNRF model continued to outperform the NNGP model in both predictive accuracy and computational efficiency. Validation results yielded a Goodness of Fit (GoF) of 85.83% for NNRF compared to 84.79% for NNGP. Although the NNRF performance showed a slight decrease relative to its results in the Texas simulation, this reduction may be attributed to the increased volatility and rapid fluctuations in local solar irradiance observed in Puerto Rico. Nevertheless, the NNRF maintained a significant advantage in computational speed, completing the simulation in 276.1 s—nearly half the time required by the NNGP model, which took 530.8 s. These results further underscore the effectiveness of the proposed NNRF model in achieving comparable or superior accuracy while substantially reducing computational overhead. Figure 12 presents a visual comparison of the prediction performance of both models.
The results displayed in Figure 12 above are the point estimates of NNRF and NNGP. However, as stated earlier, the NNGP has the advantage of giving a probabilistic forecast that shows the prediction uncertainties to be expected. These are displayed in Figure 13 for Site 1 and Sites 5 in Puerto Rico.
Finally, we present the residual plot in Figure 14 to once again demonstrate how the NNRF gives lower prediction errors compared to the NNGP model.

5. Conclusions

This study evaluates the performance of the NNRF and NNGP models in downscaling solar irradiance to localized measurements. The NNRF model performs better than the NNGP model in terms of accuracy and computational time during both training and validation. The NNRF recorded an average validation accuracy of 90.61% which outperformed the 85.88% recorded by the NNGP model. The NNRF model also improved computational speed by 2.5 times over the NNGP model. A case study on five sites in Puerto Rico further confirmed the superior performance of the NNRF model over the NNGP model in terms of accuracy and computational speed. Although the NNGP lags behind in terms of accuracy and computational speed, it shows strength in terms of interpretability and prediction uncertainty quantification. Its hyperparameters, such as the variance ( σ ), temporal ( l t ), spatial ( l s ), and feature-based ( l g ) scale parameters, give insight into how far in time and space past observations and neighboring sites influence the prediction outcome. This makes the NNGP more suitable for probabilistic estimates, which demands more transparency of the modeling process.
Furthermore, scalability tests that measured both models’ performance and computational speed with varying numbers of k-NNs from 2 to 14 showed a linear scaling for NNRF and a polynomial scaling for NNGP in terms of computational time. Similarly, the NNRF achieved a local optimal accuracy with 3 k-NNs, while the NNGP took 6 k-NNs to obtain a local optimal accuracy. Irrespective of the increased number of k-NNs, the NNGP still could not outperform the NNRF, which had a scaling accuracy of 90.13% compared to 88.74% of the NNGP. These findings prove the superiority of the NNRF for large-scale solar irradiance downscaling tasks. Further studies could investigate improving the NNRF’s accuracy by combining the nearest-neighbor model with either artificial neural networks, the extreme gradient boosting (XGboost) method, or other advanced machine-learning models.
These findings could be very useful in the implementation of the FERC order 2222, by enabling real-time, accurate estimation of solar PV capacity for day-ahead dispatch. Additionally, due to the improved accuracy and computational speed of the NNRF model, its application can be extended to the real-time electricity market with accurate PV estimates on a 5 min rolling basis. Finally, the use of downscaled solar irradiance forecasts reduces the level of solar PV generation uncertainties with its associated reserve requirements and instability issues in power dispatch planning.

Author Contributions

Conceptualization: S.T.A., H.M.R. and T.M.H.; methodology: S.T.A., A.S., H.M.R. and T.M.H.; software: S.T.A. and A.S.; validation: S.T.A., A.S. and T.M.H.; formal analysis: S.T.A. and A.S.; data curation: S.T.A. and A.S.; writing—original draft preparation: S.T.A., A.S. and T.M.H.; writing—review and editing: Z.W., H.M.R. and T.M.H.; visualization: S.T.A. and A.S.; supervision: Z.W., H.M.R. and T.M.H.; funding acquisition: T.M.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the SDSU Richard McComish, Ph.D. Fellowship in Energy Infrastructure, the U.S. Department of Energy Office of Science, Office of Electricity Microgrid R&D Program, and Office of Energy Efficiency and Renewable Energy Solar Energy Technology Office under the EPSCoR grant number DE-SC0020281, and the U.S. National Science Foundation grant no. 2316400.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The dataset utilized in this study, along with the corresponding code, results, and visualizations, are publicly accessible on GitHub. Interested readers can access these resources at the following link: https://github.com/ShadrackTAsiedu/Downscaling-NNGP-NNRF, accessed on 3 May 2025.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ANNArtificial Neural Network
CPUCentral Processing Unit
DERDistributed Energy Resource
ERCOTElectric Reliability Council of Texas
FERCFederal Energy Regulatory Commission
GBGiga Bytes
GHIGlobal Horizontal Irradiance
GHzGigahertz
GoFGoodness of Fit
GPGaussian Process
MAEMean Absolute Error
NNNearest-Neighbor
NNGPNearest-Neighbor Gaussian Process
NNRFNearest-Neighbor Random Forest
NRMSENormalized Root Mean Squared Error
NSRDBNational Solar Radiation Database
NWPNumerical Weather Prediction
PECPower Electronic Converter
PVPhotovoltaic
RAMRandom Access Memory
RFRandom Forest
RMSERoot Mean Squared Error
VREsVariable Renewable Energy Resources

Appendix A. Data Preprocessing

The preprocessing steps include handling raw data inconsistencies, ensuring uniform temporal resolution, addressing missing data, and engineering features critical for downstream modeling. Below, we detail each stage of the data preprocessing pipeline.

Appendix A.1. Raw Data Cleaning

The raw irradiance data from eight sites were provided as individual CSV files. Each dataset contained a timestamp and solar irradiance measurements, with inconsistencies in date formats and row order. To address these challenges, each dataset was loaded, and the Date column was converted to a standardized datetime format for uniformity. The rows were reversed to ensure chronological order, starting from the earliest date, and the indices were reset to sequential integers starting from 1. The column containing solar irradiance data, originally named inconsistently across files, was renamed to GHI_local for uniformity. The cleaned datasets were stored in a dictionary, with site names as keys for efficient access.

Appendix A.2. Temporal Alignment and Missing Data Handling

Global solar irradiance data are often recorded at irregular intervals, leading to temporal misalignment and missing values. For accurate spatiotemporal modeling, a complete time series with a 5-min resolution was generated for the entire year (2022), yielding a total of 105,120 expected timestamps. Each site’s dataset was reindexed to align with the expected date range, and missing timestamps were identified by comparing the reindexed dataset to the complete time series. Missing irradiance values in the local irradiance data were imputed using a trend-based approach. For each missing value, data from the same time of day in the previous or subsequent valid days were averaged over a 7-day window. If sufficient historical data were unavailable, forward imputation was used as a fallback. Additionally, the cleaned datasets were capped at a maximum irradiance value of 1200 W/m2 to avoid outliers resulting from sensor anomalies.

Appendix A.3. Data Validation and Visualization

To verify the integrity of the cleaned data, temporal trends in solar irradiance were visualized for each site. The local irradiance datasets were plotted over time for the entire year, revealing daily and seasonal variability across the sites. Each site’s dataset was inspected for remaining inconsistencies, such as abrupt changes in irradiance values, which could indicate potential anomalies. The annual local solar irradiance for Site 1, before and after cleaning and filling missing data, is shown in Figure A1 and Figure A2.
Figure A1. Raw Data on Local Solar Irradiance for Site 1 (2022).
Figure A1. Raw Data on Local Solar Irradiance for Site 1 (2022).
Energies 18 02447 g0a1
Figure A2. Cleaned Data on Local Solar Irradiance for Site 1 (2022).
Figure A2. Cleaned Data on Local Solar Irradiance for Site 1 (2022).
Energies 18 02447 g0a2

References

  1. National Renewable Energy Laboratory (NREL). Technical Report NREL/TP-5C00-80166; Technical Report; U.S. Department of Energy Office of Energy Efficiency & Renewable Energy: Golden, CO, USA, 2021.
  2. Eldridge, B.C.; Somani, A. Impact of FERC Order 2222 on DER Participation Rules in US Electricity Markets; Technical Report; Pacific Northwest National Laboratory (PNNL): Richland, WA, USA, 2022.
  3. Garg, S.; Tyagi, S. A Comprehensive Review on Opportunities and Challenges of Grid Integration of Renewable Energy Resources. In Proceedings of the 2024 Second International Conference on Smart Technologies for Power and Renewable Energy (SPECon), Ernakulam, India, 2–4 April 2024; pp. 1–6. [Google Scholar] [CrossRef]
  4. Subedi, S.; Poudel, B.; Aslami, P.; Fourney, R.; Rekabdarkolaee, H.M.; Tonkoski, R.; Hansen, T.M. Automated Data–Driven Model Extraction and Validation of Inverter Dynamics with Grid Support Function. E-Prime—Adv. Electr. Eng. Electron. Energy 2023, 6, 100365. [Google Scholar] [CrossRef]
  5. Tamrakar, U.; Shrestha, D.; Maharjan, M.; Bhattarai, B.P.; Hansen, T.M.; Tonkoski, R. Virtual Inertia: Current Trends and Future Directions. Appl. Sci. 2017, 7, 654. [Google Scholar] [CrossRef]
  6. Tiwari, S.; Sabzehgar, R.; Rasouli, M. Short Term Solar Irradiance Forecast Using Numerical Weather Prediction (NWP) with Gradient Boost Regression. In Proceedings of the 2018 9th IEEE International Symposium on Power Electronics for Distributed Generation Systems (PEDG), Charlotte, NC, USA, 25–28 June 2018; pp. 1–8. [Google Scholar] [CrossRef]
  7. Dou, W.; Wang, K.; Shan, S.; Zhang, K.; Wei, H. Day-Ahead Correction of Numerical Weather Prediction Solar Irradiance Forecasts Based on Similar Day Analysis. In Proceedings of the 2023 35th Chinese Control and Decision Conference (CCDC), Yichang, China, 20–22 May 2023; pp. 2554–2559. [Google Scholar] [CrossRef]
  8. De Giorgi, M.G.; Congedo, P.M.; Malvoni, M. Photovoltaic power forecasting using statistical methods: Impact of weather data. IET Sci. Meas. Technol. 2014, 8, 90–97. [Google Scholar] [CrossRef]
  9. Asiedu, S.T.; Nyarko, F.K.; Boahen, S.; Effah, F.B.; Asaaga, B.A. Machine learning forecasting of solar PV production using single and hybrid models over different time horizons. Heliyon 2024, 10, e28898. [Google Scholar] [CrossRef] [PubMed]
  10. Gayathry, V.; Kaliyaperumal, D.; Salkuti, S.R. Seasonal solar irradiance forecasting using artificial intelligence techniques with uncertainty analysis. Sci. Rep. 2024, 14, 17945. [Google Scholar] [CrossRef] [PubMed]
  11. Garg, S.; Agrawal, A.; Goyal, S.; Verma, K. Day Ahead Solar Irradiance Forecasting using Different Statistical Techniques. In Proceedings of the 2020 IEEE International Conference on Power Electronics, Drives and Energy Systems (PEDES), Jaipur, India, 16–19 December 2020; pp. 1–4. [Google Scholar] [CrossRef]
  12. Ziyabari, S.; Du, L.; Biswas, S. A Spatio-temporal Hybrid Deep Learning Architecture for Short-term Solar Irradiance Forecasting. In Proceedings of the 2020 47th IEEE Photovoltaic Specialists Conference (PVSC), Calgary, AB, Canada, 15 June–21 August 2020; pp. 0833–0838. [Google Scholar] [CrossRef]
  13. Hari, N.G.; G, J. Solar Irradiance Prediction using Deep Learning-Based Approaches. In Proceedings of the 2022 IEEE Asia-Pacific Conference on Computer Science and Data Engineering (CSDE), Gold Coast, Australia, 18–20 December 2022; pp. 1–5. [Google Scholar] [CrossRef]
  14. Kartini, U.T.; Hariyati; Aribowo, W.; Wardani, A.L. Development Hybrid Model Deep Learning Neural Network (DL-NN) For Probabilistic Forecasting Solar Irradiance on Solar Cells To Improve Economics Value Added. In Proceedings of the 2022 Fifth International Conference on Vocational Education and Electrical Engineering (ICVEE), Surabaya, Indonesia, 10–11 September 2022; pp. 151–156. [Google Scholar] [CrossRef]
  15. Zafar, R.; Chung, I.Y. Day-Ahead Solar Irradiance Forecasting using a Hybrid Weather-Based Attention BiLSTM Approach for Power System Operation Scheduling. In Proceedings of the 2023 IEEE PES Innovative Smart Grid Technologies Europe (ISGT EUROPE), Grenoble, France, 23–26 October 2023; pp. 1–5. [Google Scholar] [CrossRef]
  16. Panamtash, H.; Zhou, Q. Coherent Probabilistic Solar Power Forecasting. In Proceedings of the 2018 IEEE International Conference on Probabilistic Methods Applied to Power Systems (PMAPS), Boise, ID, USA, 24–28 June 2018; pp. 1–6. [Google Scholar] [CrossRef]
  17. 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]
  18. Opoku, K.; Lucemo, S.; Zhou Sun, Q.; Dimitrovski, A. A Bayesian Approach to Probabilistic Solar Irradiance Forecasting. In Proceedings of the 2022 North American Power Symposium (NAPS), Salt Lake City, UT, USA, 9–11 October 2022; pp. 1–6. [Google Scholar] [CrossRef]
  19. Ziyabari, S.; Du, L.; Biswas, S.K. Multibranch Attentive Gated ResNet for Short-Term Spatio-Temporal Solar Irradiance Forecasting. IEEE Trans. Ind. Appl. 2022, 58, 28–38. [Google Scholar] [CrossRef]
  20. National Renewable Energy Laboratory (NREL). National Solar Radiation Database (NSRDB); 2024. Available online: https://nsrdb.nrel.gov/ (accessed on 2 December 2024).
  21. Zippenfenig; Patrick. Open-Meteo.com Weather API. 2023. Available online: https://zenodo.org/records/14582479 (accessed on 22 January 2025).
  22. Yang, J.; Sengupta, M.; Bailey, M.; Nychka, D.; Habte, A.; Bandyopadhyay, S.; Xie, Y. Bias Correction and Statistical Downscaling of Future Solar Irradiance Projections Using the NSRDB. In Proceedings of the 2024 IEEE 52nd Photovoltaic Specialist Conference (PVSC), Seattle, WA, USA, 9–14 June 2024; pp. 793–795. [Google Scholar] [CrossRef]
  23. Widén, J.; Munkhammar, J. Spatio-Temporal Downscaling of Hourly Solar Irradiance Data Using Gaussian Copulas. In Proceedings of the 2019 IEEE 46th Photovoltaic Specialists Conference (PVSC), Chicago, IL, USA, 16–21 June 2019; pp. 3172–3178. [Google Scholar]
  24. Huang, J.; Perez, M.; Perez, R.; Yang, D.; Keelin, P.; Hoff, T. Nonparametric Temporal Downscaling of GHI Clear-sky Indices using Gaussian Copula. In Proceedings of the 2022 IEEE 49th Photovoltaics Specialists Conference (PVSC), Philadelphia, PA, USA, 5–10 June 2022; pp. 0654–0657. [Google Scholar]
  25. Huang, J.; Perez, M. Temporal Downscaling of GHI Clear-Sky Indices Using T-Copula. In Proceedings of the 2023 IEEE 50th Photovoltaic Specialists Conference (PVSC), San Juan, PR, USA, 11–16 June 2023; pp. 1–3. [Google Scholar] [CrossRef]
  26. Munkhammar, J.; Widén, J. Downscaling global, beam and diffuse horizontal irradiance based on hour resolution global horizontal irradiance using Markov mixture distribution modeling. In Proceedings of the 21st Wind & Solar Integration Workshop (WIW 2022), The Hague, The Netherlands, 12–14 October 2022; Volume 2022, pp. 662–667. [Google Scholar] [CrossRef]
  27. Wang, W.; Yin, G.; Zhao, W.; Wen, F.; Yu, D. Spatial Downscaling of MSG Downward Shortwave Radiation Product Under Clear-Sky Condition. IEEE Trans. Geosci. Remote Sens. 2020, 58, 3264–3272. [Google Scholar] [CrossRef]
  28. Di Paola, F.; Cimini, D.; De Natale, M.P.; Gallucci, D.; Geraldi, E.; Gentile, S.; Genzano, N.; Larosa, S.; Nilo, S.T.; Ricciardelli, E.; et al. Weather Forecast Downscaling for Applications in Smart Agriculture and Precision Farming using Artificial Neural Networks. In Proceedings of the IGARSS 2023—2023 IEEE International Geoscience and Remote Sensing Symposium, Pasadena, CA, USA, 16–21 July 2023; pp. 2791–2794. [Google Scholar] [CrossRef]
  29. Wright, T.; Aslami, P.; Dentlinger, M.P.; Hansen, T.M.; Kimn, J.H.; Andrade, F.; Rekabdarkolaee, H.M. Nearest-Neighbor Gaussian Process to Downscale Solar Forecasting at the Grid-Edge for Increased Situational Awareness. In Proceedings of the 2023 North American Power Symposium (NAPS), Asheville, NC, USA, 15–17 October 2023; pp. 1–6. [Google Scholar] [CrossRef]
  30. Berkani, S.; Guermah, B.; Zakroum, M.; Ghogho, M. Spatio-Temporal Forecasting: A Survey of Data-Driven Models Using Exogenous Data. IEEE Access 2023, 11, 75191–75214. [Google Scholar] [CrossRef]
  31. Xu, L.; Chen, N.; Chen, Z.; Zhang, C.; Yu, H. Spatiotemporal forecasting in earth system science: Methods, uncertainties, predictability and future directions. Earth-Sci. Rev. 2021, 222, 103828. [Google Scholar] [CrossRef]
  32. Tascikaraoglu, A.; Sanandaji, B.M.; Chicco, G.; Cocina, V.; Spertino, F.; Erdinc, O.; Paterakis, N.G.; Catalão, J.P. Compressive Spatio-Temporal Forecasting of Meteorological Quantities and Photovoltaic Power. IEEE Trans. Sustain. Energy 2016, 7, 1295–1305. [Google Scholar] [CrossRef]
  33. Buster, G.; Rossol, M.; Maclaurin, G.; Xie, Y.; Sengupta, M. A physical downscaling algorithm for the generation of high-resolution spatiotemporal solar irradiance data. Sol. Energy 2021, 216, 508–517. [Google Scholar] [CrossRef]
  34. Ulapane, N.; Thiyagarajan, K.; Kodagoda, S. Hyper-Parameter Initialization for Squared Exponential Kernel-based Gaussian Process Regression. In Proceedings of the 2020 15th IEEE Conference on Industrial Electronics and Applications (ICIEA), Kristiansand, Norway, 9–13 November 2020; pp. 1154–1159. [Google Scholar] [CrossRef]
  35. Rasmussen, C.E.; Williams, C.K.I. Gaussian Processes for Machine Learning; MIT Press: Cambridge, MA, USA, 2006. [Google Scholar]
  36. Cutler, A.; Cutler, D.; Stevens, J. Random Forests; Springer: New York, NY, USA, 2011; Volume 45, pp. 157–176. [Google Scholar] [CrossRef]
  37. Ahmed, H.; Nandi, A.K. Decision Trees and Random Forests. In Condition Monitoring with Vibration Signals: Compressive Sampling and Learning Algorithms for Rotating Machines; John Wiley & Sons: Hoboken, NJ, USA, 2019; pp. 199–224. [Google Scholar] [CrossRef]
  38. Ramasamy, S.; Kantharaju, H.C.; Bindu Madhavi, N.; Haripriya, M.P. 8 Meta-learning through ensemble approach: Bagging, boosting, and random forest strategies. In Toward Artificial General Intelligence: Deep Learning, Neural Networks, Generative AI; De Gruyter: Berlin, Germany, 2024; pp. 167–188. [Google Scholar]
  39. Putro Dirgantoro, G.; Soeleman, M.A.; Supriyanto, C. Smoothing Weight Distance to Solve Euclidean Distance Measurement Problems in K-Nearest Neighbor Algorithm. In Proceedings of the 2021 IEEE 5th International Conference on Information Technology, Information Systems and Electrical Engineering (ICITISEE), Purwokerto, Indonesia, 24–25 November 2021; pp. 294–298. [Google Scholar] [CrossRef]
  40. Kjellsson, J.; Webber, M. The Energy-Water Nexus: Spatially-Resolved Analysis of the Potential for Desalinating Brackish Groundwater by Use of Solar Energy. Resources 2015, 4, 476–489. [Google Scholar] [CrossRef]
  41. Ambient Weather. Ambient Weather Data and Tools. 2024. Available online: https://ambientweather.com/ (accessed on 2 December 2024).
  42. Das, A.; Rad, P. Opportunities and challenges in explainable artificial intelligence (xAI): A survey. arXiv 2020, arXiv:2006.11371. [Google Scholar]
Figure 1. Daily Global and Local Solar Irradiance.
Figure 1. Daily Global and Local Solar Irradiance.
Energies 18 02447 g001
Figure 2. Spatial representation of selected sites in Texas. The inset provides a zoomed-in view of Site 2 and Site 7, located in the same 4 km by 4 km global space.
Figure 2. Spatial representation of selected sites in Texas. The inset provides a zoomed-in view of Site 2 and Site 7, located in the same 4 km by 4 km global space.
Energies 18 02447 g002
Figure 3. Heatmap of Global Irradiance Profile for Site 1 (2022).
Figure 3. Heatmap of Global Irradiance Profile for Site 1 (2022).
Energies 18 02447 g003
Figure 4. Heatmap of Local Irradiance Profile for Site 1 (2022).
Figure 4. Heatmap of Local Irradiance Profile for Site 1 (2022).
Energies 18 02447 g004
Figure 5. Heatmap of Deviation Between Global and Local Solar Irradiance for Site 1 (2022).
Figure 5. Heatmap of Deviation Between Global and Local Solar Irradiance for Site 1 (2022).
Energies 18 02447 g005
Figure 6. Spatial representation of selected sites in Puerto Rico. The inset provides a zoomed-in view of Site 4 and Site 5 located in the same 4 km by 4 km global space.
Figure 6. Spatial representation of selected sites in Puerto Rico. The inset provides a zoomed-in view of Site 4 and Site 5 located in the same 4 km by 4 km global space.
Energies 18 02447 g006
Figure 7. Training performance comparison for Site 8.
Figure 7. Training performance comparison for Site 8.
Energies 18 02447 g007
Figure 8. Day-Ahead GHI Prediction at Different Sites.
Figure 8. Day-Ahead GHI Prediction at Different Sites.
Energies 18 02447 g008
Figure 9. Boxplots of NNGP and NNRF Prediction Residuals for Sites 1, 2, 7, and 8.
Figure 9. Boxplots of NNGP and NNRF Prediction Residuals for Sites 1, 2, 7, and 8.
Energies 18 02447 g009
Figure 10. NNGP’s Day-Ahead GHI Predictions with Gaussian Uncertainty.
Figure 10. NNGP’s Day-Ahead GHI Predictions with Gaussian Uncertainty.
Energies 18 02447 g010
Figure 11. Scalability Performance of NNGP and NNRF.
Figure 11. Scalability Performance of NNGP and NNRF.
Energies 18 02447 g011
Figure 12. Day-Ahead GHI prediction for 5 sites in Puerto Rico.
Figure 12. Day-Ahead GHI prediction for 5 sites in Puerto Rico.
Energies 18 02447 g012
Figure 13. NNGP’s Day-Ahead GHI Predictions with Gaussian Uncertainty for Sites in Puerto Rico.
Figure 13. NNGP’s Day-Ahead GHI Predictions with Gaussian Uncertainty for Sites in Puerto Rico.
Energies 18 02447 g013
Figure 14. Boxplots of NNGP and NNRF Prediction Residuals for Sites 1, 2, 3, 4, and 5 in Puerto Rico.
Figure 14. Boxplots of NNGP and NNRF Prediction Residuals for Sites 1, 2, 3, 4, and 5 in Puerto Rico.
Energies 18 02447 g014
Table 1. Selected Sites and their Locations.
Table 1. Selected Sites and their Locations.
NameSiteLatitudeLongitude
3-Door, Ovalo132.154290−99.81891
Camp David Dallas232.776600−96.79706
Hermitage Austin330.26726−97.74281
Kruckenland San Antonio429.5213−98.5101
Misty Morn Cedar Park530.49450−97.82257
Roof Station Houston629.7554−95.37575
Weather Toy Dallas732.78709−96.79605
Wiley, Leander830.58262−97.86712
Table 2. Distances between sites (in km).
Table 2. Distances between sites (in km).
Site12345678
10.00291.81219.76318.32264.60500.59292.17254.71
2 291.810.00190.04396.97271.69362.071.17264.13
3 219.76190.040.00207.6286.26282.26191.1177.05
4 318.32396.97207.620.00126.86304.03398.07133.25
5 264.60271.6986.26126.860.00249.26272.8110.69
6 500.59362.07282.26304.03249.260.00363.12256.55
7 292.171.17191.11398.07272.81363.120.00265.25
8 254.71264.1377.05133.2510.69256.55265.250.00
Table 3. Values of Hyperparameters for the NNGP model.
Table 3. Values of Hyperparameters for the NNGP model.
HyperparameterValue
number of neighbors (k)3
σ 2.0
l s 0.1
l t 288 (1 day)
l g 0.5
penalty term0.2
Table 4. Comparison of NNRF and NNGP Training Performance.
Table 4. Comparison of NNRF and NNGP Training Performance.
SiteNNRFNNGP
MAE NRMSE GoF (%) MAE NRMSE GoF (%)
113.64800.027897.2219.88860.047995.21
28.16930.017898.2212.76510.030396.97
313.50030.025697.4420.50840.044695.54
411.98000.027197.2919.03940.047595.25
512.05390.024597.5520.71140.044195.59
613.62360.025097.5020.46960.043295.68
75.96890.018398.179.22960.031696.84
812.40450.023597.6519.63150.041095.90
Table 5. Validation Results of NNRF and NNGP for Day-Ahead Forecast.
Table 5. Validation Results of NNRF and NNGP for Day-Ahead Forecast.
SiteNNRFNNGP
MAE NRMSE GoF (%) MAE NRMSE GoF (%)
132.44470.116288.3836.41480.119788.03
222.12260.098690.1450.88430.221677.84
335.80970.111588.8543.95360.138586.15
421.43880.072892.7225.20550.083591.65
526.03420.104789.5329.82210.118788.13
618.89500.074892.5228.38730.118588.15
714.41130.120987.9129.43290.230476.96
816.35200.059494.0625.81500.094690.54
Table 6. Correlations Between Global and Local Solar Irradiance.
Table 6. Correlations Between Global and Local Solar Irradiance.
Site12345678
Correlation0.76350.93460.95430.92260.64870.96860.57970.9707
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.

Share and Cite

MDPI and ACS Style

Asiedu, S.T.; Suvedi, A.; Wang, Z.; Rekabdarkolaee, H.M.; Hansen, T.M. Spatiotemporal Downscaling Model for Solar Irradiance Forecast Using Nearest-Neighbor Random Forest and Gaussian Process. Energies 2025, 18, 2447. https://doi.org/10.3390/en18102447

AMA Style

Asiedu ST, Suvedi A, Wang Z, Rekabdarkolaee HM, Hansen TM. Spatiotemporal Downscaling Model for Solar Irradiance Forecast Using Nearest-Neighbor Random Forest and Gaussian Process. Energies. 2025; 18(10):2447. https://doi.org/10.3390/en18102447

Chicago/Turabian Style

Asiedu, Shadrack T., Abhilasha Suvedi, Zongjie Wang, Hossein Moradi Rekabdarkolaee, and Timothy M. Hansen. 2025. "Spatiotemporal Downscaling Model for Solar Irradiance Forecast Using Nearest-Neighbor Random Forest and Gaussian Process" Energies 18, no. 10: 2447. https://doi.org/10.3390/en18102447

APA Style

Asiedu, S. T., Suvedi, A., Wang, Z., Rekabdarkolaee, H. M., & Hansen, T. M. (2025). Spatiotemporal Downscaling Model for Solar Irradiance Forecast Using Nearest-Neighbor Random Forest and Gaussian Process. Energies, 18(10), 2447. https://doi.org/10.3390/en18102447

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop