alphaFeedback

WorksComputer Science

RATSIFT: Resolution-Adaptive Transformer for Solar Irradiance Forecasting and Temporal Downscaling

AI contributions
Not recorded for this paper
View details

Abstract

Accurate forecasting and temporal downscaling of solar irradiance is critical for reliable renewable energy integration and grid management. Traditional methods often struggle to capture rapid irradiance variability. In this work, we develop a Transformer-based architecture for simultaneous forecasting and temporal downscaling. The model takes input data at arbitrary resolutions and generates outputs at any resolutions represented within the training data, leveraging both global and local contextual information. To improve training efficiency, a genetic algorithm-based optimization framework is implemented to identify suitable model hyperparameters, while reducing the computational cost of exhaustive grid search. The effectiveness of the proposed model is shown by analyzing real data in Dallas, Texas. The proposed model achieved root mean square error (RMSE) values of 28.785, 29.544, 30.157, 32.132~W/m2^2 for 15-, 30-, 60-minute, and irregularly spaced global input and producing forecast at 5-minutes resolution, respectively. Furthermore, this model produced reliable uncertainty estimates, exhibiting wider prediction intervals for high-resolution inputs during volatile solar conditions, whereas coarser-resolution inputs result in narrower intervals and significantly lower training time and computational cost. Our approach provides a scalable and efficient framework for multi-resolution solar irradiance forecasting and temporal downscaling, suitable for practical energy forecasting and grid management applications.

Introduction

Rapid expansion of photovoltaic (PV) power has made solar energy a cornerstone of the global transition toward sustainable electricity generation Wang et al. [ [53], Cameron et al. [ [7]. As renewable energy and distributed energy resources (DERs) make up a larger share of electricity generation, keeping the grid stable and reliable becomes more challenging Lew et al. [ [24], Bright et al. [ [4]. These challenges are increasingly important as DERs are integrated into bulk power system operations and wholesale electricity markets, including through regulatory efforts such as FERC Order No. 2222 Federal Energy Regulatory Commission [2020]. Therefore, accurate solar irradiance forecasting is essential for PV power prediction, grid stability analysis, DER aggregation, energy market participation, and long-term resource assessment van der Meer et al. [ [49], Dou et al. [ [12], Sudharshan et al. [ [48].

A key challenge is that solar irradiance is influenced by multiple sources, making it volatile at high temporal resolutions. Consequently, temporal resolution plays a crucial role in solar irradiance modeling, as relying on hourly averaged data can bias PV system design and operational conclusions compared with high-frequency measurements [31], [8]. This variability in solar irradiance requires forecasting models to capture both longer-term temporal structure and short-lived fluctuations [6]. To address these challenges, a wide range of solar irradiance forecasting methodologies have been developed. These methods can be classified into four main categories: numerical weather prediction models (NWP; [58]), image-based models [33], data-driven models [34], and hybrid frameworks [19]. The NWPs remain widely used in application, however they are often computationally expensive and their accuracy can be sensitive to configuration choices and model-chain components [12], [31]. Image-based forecasting methods can better capture rapid cloud evolution because sky images provide direct, high-resolution information on cloud changes, but they also face practical challenges in image acquisition, pre-processing, cloud tracking, and forecast-model design [27]. Data-driven forecasting methods can achieve high predictive accuracy by learning complex nonlinear and long-range dependencies directly from historical irradiance and meteorological data, but their performance is often constrained by substantial data requirements, high computational cost, and sensitivity to data quality and operational conditions [21]. Hybrid solar irradiance forecasting models aim to improve predictive accuracy by combining complementary techniques to handle the non-stationary and highly variable nature of solar radiation, but their greater architectural complexity can make model design, tuning, and deployment more challenging [17].

Recently, increasing attention has shifted toward attention-based Transformer architectures, which are designed to model long-range dependencies efficiently [23], [55], Su et al. [2025]. In renewable-energy contexts, Transformers models have shown strong performance for capturing complex spatiotemporal patterns [20]. Furthermore, Transformer-based models have shown to outperform recurrent and statistical baselines, particularly for longer horizons, and improve robustness under rapidly varying atmospheric conditions [3], [43], Li et al. [2025]. Despite these advances, two major issues remain for practical deployment: First, Transformer forecasters assume fixed input/output temporal resolutions, and second, performance is often highly sensitive to hyperparameter choices [9]. The fixed-resolution assumption becomes especially restrictive when measurements are available at heterogeneous temporal resolutions or when forecasts are required at a higher resolution than the input data [11]. In this paper, we propose a resolution-adaptive Transformer framework for one-shot solar irradiance forecasting and downscaling. Our proposed model uses the global irradiance at arbitrary coarse resolutions (e.g., 15, 30, or 60 minutes, while also supporting irregular time series inputs) and generates downscaled high-resolution local forecasts (e.g., 5-minute intervals) for the next 24 hours. To reduce the computational burden, we integrate a genetic algorithm (GA) to efficiently search the model configuration space, using evolutionary optimization for large hyperparameter spaces [54]. The GAs naturally handle mixed-type search spaces, explore large, non-convex, and multi-modal landscapes; and reduce the risk of premature convergence by maintaining population diversity throughout the optimization process [5]. Our approach provides a flexible forecasting-and-downscaling pipeline designed for heterogeneous-resolution data. To evaluate its performance against established forecasting approaches, the proposed framework is compared with four state-of-the-art Transformer-based models: Informer [60], Autoformer Wu et al. [2021], FEDformer [61], and the Non-stationary Transformer [29]. These models were selected because they employ encoder–decoder architectures comparable to that of the proposed framework while using distinct mechanisms to capture temporal patterns in time-series data. Informer uses ProbSparse attention, Autoformer combines series decomposition with an Auto-Correlation mechanism, FEDformer models temporal patterns in the frequency domain, and the Non-stationary Transformer incorporates series stationarization and de-stationary attention.

The remainder of this paper is organized as follows. Section 2 introduces the datasets and preprocessing procedures used in the study. The relevant Transformer architecture and GA concepts are reviewed in Section 3. Section 4 then develops the proposed forecasting model and optimization framework. Experimental results and performance comparisons are reported in Section 5. Finally, Section 6 summarizes the key findings and outlines future research directions. Additional results are provided in the Appendix.

Data

This study utilizes two solar irradiance datasets: a global dataset obtained from the National Solar Radiation Database (NSRDB; [42]) and a local ground-measured dataset Ambient Weather Network. The global dataset provides Global Horizontal Irradiance (GHI) for Dallas, Texas, with 4 km24\ \mathrm{km}^2 gridded spatial resolution and a temporal resolution of 15-minutes, obtained from 1 January 2024 to 31 December 2024. The local dataset consists of 5-minute solar irradiance measurements collected at a weather station located at Camp David, Dallas, Texas, over the same time period. The goal is to downscale the coarser data using finer-resolution observations as reference and to simultaneously forecast future values at the finer scale.

The global GHI dataset contains 35,136 observations, while the local solar irradiance dataset contains 103,744 observations. The global dataset had no missing observations. In contrast, the local dataset contained 12 duplicate timestamps and 1,910 missing observations, including gaps where the timestamps were not evenly spaced at 5-minute intervals. Duplicate timestamps were handled by retaining the first occurrence. The missing values were then imputed using Piecewise Cubic Hermite Interpolating Polynomial interpolation (PCHIP; Fritsch and Carlson [16]). The PCHIP is a shape-preserving interpolation technique that avoids overshooting and prevents the introduction of artificial oscillations between data points. This property is essential for solar irradiance data, where zero-irradiance periods (e.g., nighttime) must remain zero. A representative snapshot of the local 5-minute and global 15-minute solar irradiance datasets is shown in Figure 1, highlighting the presence of interpolated points in the local measurements for the period of June 1, 2024 to June 10, 2024.

Solar irradiance comparison between local 5-minute and global 15-minute datasets

Figure 1. Solar irradiance comparison between local 5-minute and global 15-minute datasets from June 1, 2024 to June 10, 2024. PCHIP interpolated local points for filling missing values are highlighted in red.

The nature of the data raises several challenges. First, the global and local irradiance measurements are recorded at different temporal resolutions, with global irradiance data available at 15-, 30-, 60-minute, and irregular intervals, while the local irradiance measurements are consistently recorded at a 5-minute resolution. This requires careful alignment of input and target pairs during pre-processing to maintain temporal continuity. Second, the local dataset contains missing observations, some occurring during daytime, where accurate interpolation is essential due to rapid irradiance fluctuations. Additionally, satellite-derived GHI tends to smooth high-frequency cloud-induced variability that local ground sensors captures, resulting in mismatches in both variability and amplitude between the local and global data.

To address these challenges, the proposed framework leverages a Transformer architecture with cross-attention, which allows input and target sequences of different lengths. Missing local observations are filled using PCHIP interpolation, while Informer-style temporal embeddings provide time-related context that helps the model learn relationships between satellite-derived GHI and local ground observations despite differences in temporal resolution, variability, and magnitude. The data were used in their raw form without applying standardization or normalization.

Brief Review

Transformers

Transformers are attention-based architectures originally developed for sequence-to-sequence learning Vaswani et al. [ [50]. Compared to traditional architectures such as Recurrent Neural Networks (RNNs; Schmidt, [41]), Long Short-Term Memory networks (LSTMs; Hochreiter and Schmidhuber, [18]), and Convolutional Neural Networks (CNNs; O’Shea and Nash, [35]), Transformers offer superior handling of long-range dependencies and irregular events through attention mechanisms and adaptive receptive fields. Furthermore, their parallel computation significantly improves training efficiency, and the architecture naturally supports the integration of exogenous features for complex, multi-horizon forecasting Lim et al. [ [26], Wen et al. [ [55], Sanford et al. [ [40]. Further details on the attention mechanism, computational complexity, and practical adjustments of Transformers for time series can be found in the Appendix.

Hyperparameter Optimization via Genetic Algorithms

Hyperparameters such as learning rate, batch size, and network depth strongly influence model behavior, generalization, and computational efficiency; poor choices can cause underfitting, overfitting, or wasted resources, making optimal hyperparameter selection essential for validation performance Shanthi and Chethan [ [44]. However, because hyperparameters cannot be optimized directly through gradient-based learning Raiaan et al. [ [39], and common methods such as grid search, random search, and Bayesian optimization have computational and theoretical limitations Yu and Zhu [ [57], increasingly complex models motivate more efficient alternative optimization strategies. In this paper, we use a Genetic Algorithm (GA), a population-based optimization method inspired by natural selection and commonly applied to hyperparameter tuning Katoch et al. [ [22], Mehdary et al. [ [32]. The GA begins with a randomly sampled population of candidate hyperparameter sets, trains and evaluates each model using RMSE on a held-out test set, selects the top nn lowest-RMSE candidates at each generation, and iteratively applies crossover and mutation until RMSE convergence, with the final configuration chosen as the one achieving the lowest RMSE across all generations.

Methodology

Proposed Transformer

The proposed Transformer model performs day-ahead forecasting and downscaling of the local irradiance measurments using the GHI (and potentially other features). An overview of the resolution-adaptive Transformer architecture is shown in Figure 2. For a batch of input-target pairs (XX, YY), let the global irradiance input tensor be denoted by

Resolution-adaptive Transformer architecture for one-shot solar irradiance forecasting and downscaling

Figure 2. Resolution-adaptive Transformer architecture for one-shot solar irradiance forecasting and downscaling.

X∈RB×Tin×f,(1)X \in\mathbb{R}^{B \times T_{\mathrm{in}} \times f}, \tag*{(1)}

where BB is the batch size, TinT_{\mathrm{in}} is the input sequence length, and ff is the number of input features in the global dataset. The ithi^{\mathrm{th}} input sample in the batch is

Xi=(xi1,xi2,…,xiTin)∈RTin×f;i=1,…,B,X_i = (x_{i1}, x_{i2}, \ldots, x_{iT_{\mathrm{in}}}) \in\mathbb{R}^{T_{\mathrm{in}} \times f}; i = 1, \ldots, B,

where each xit∈Rfx_{it} \in\mathbb{R}^{f} denotes the feature vector at time step tt, containing all ff input features observed at that timestamp. In our case f=1f = 1 and xit∈R1x_{it} \in\mathbb{R}^{1}, since we have only GHI as our input feature.

Similar to Informer-based architecture Zhou et al. [ [60], the XX is projected into a higher-dimensional space using token, temporal, and positional embeddings before feeding it to the encoder. The process involves the following steps:

  1. Token Embedding: The input tensor X∈RB×Tin×fX \in\mathbb{R}^{B \times T_{\mathrm{in}} \times f} is first mapped into a dd-dimensional representation using a one-dimensional convolution applied along the temporal axis. Specifically, the convolution uses ff input channels, dd output channels, kernel size 3, circular padding, and stride 1. Thus, each embedded token is obtained from a local temporal neighborhood around time step tt rather than from xitx_{it} alone:

Etoken(X)=Conv1D⁡(X)∈RB×Tin×d.E^{\mathrm{token}}(X) = \operatorname{Conv1D}(X) \in\mathbb{R}^{B \times T_{\mathrm{in}} \times d}.

Because padding is used, the temporal length is preserved, so the output has the same sequence length TinT_{\mathrm{in}}.

  1. Temporal Embedding: To encode calendar information, a temporal feature tensor Xmark∈RB×Tin×5X_{\mathrm{mark}} \in\mathbb{R}^{B \times T_{\mathrm{in}} \times5} is constructed from the timestamps associated with the input sequence, where the five components at each time step are month (mon), day (d), weekday (w), hour (h), and minute (min). The iith sample in the batch is

Xmark,i∈RTin×5,i=1,…,B,X_{\mathrm{mark},i} \in\mathbb{R}^{T_{\mathrm{in}} \times5}, \qquad i=1,\ldots,B,

with

Xmark,i=(xi1mark,xi2mark,…,xiTinmark),X_{\mathrm{mark},i} = \left(x^{\mathrm{mark}}_{i1},x^{\mathrm{mark}}_{i2},\ldots,x^{\mathrm{mark}}_{iT_{\mathrm{in}}}\right),

where xitmark=[monit,dit,wit,hit,minit]∈R5x^{\mathrm{mark}}_{it} = [\mathrm{mon}_{it},d_{it},w_{it},h_{it},\mathrm{min}_{it}] \in\mathbb{R}^{5}, for t=1,…,Tint=1,\ldots,T_{\mathrm{in}}. In our implementation, five separate fixed embedding layers are used for the temporal features month, day, weekday, hour, and minute. Each layer maps the corresponding integer calendar value to a dd-dimensional vector whose values are learned jointly with the other model parameters during training. The resulting vectors are then summed to obtain the temporal embedding:

Etemp(xitmark)=Emon(monit)+Ed(dit)+Ew(wit)+Eh(hit)+Emin(minit),E^{\mathrm{temp}}(x^{\mathrm{mark}}_{it}) = E^{\mathrm{mon}}(\mathrm{mon}_{it}) + E^{\mathrm{d}}(d_{it}) + E^{\mathrm{w}}(w_{it}) + E^{\mathrm{h}}(h_{it}) + E^{\mathrm{min}}(\mathrm{min}_{it}),

where Etemp(xitmark)∈RdE^{\mathrm{temp}}(x^{\mathrm{mark}}_{it}) \in\mathbb{R}^{d}. Applying this across all samples and time steps gives the temporal embedding tensor Etemp(Xmark)∈RB×Tin×dE^{\mathrm{temp}}(X_{\mathrm{mark}}) \in\mathbb{R}^{B \times T_{\mathrm{in}} \times d}.

  1. Positional Embedding (PE): A fixed sinusoidal PE is used to inject sequential information into the Transformer input, i.e. for j=0,…,(d/2)−1j=0,\ldots,(d/2)-1, we have

PEt,2j=sin⁡(t100002jd),PEt,2j+1=cos⁡(t100002jd).\mathrm{PE}_{t,2j} = \sin\left(\frac{t}{10000^{\frac{2j}{d}}}\right), \qquad\mathrm{PE}_{t,2j+1} = \cos\left(\frac{t}{10000^{\frac{2j}{d}}}\right).

where dd is the embedding dimension. Instead of applying the same relative positional encoding to each sequence in the mini-batch, the implementation generated shifted positional encoding windows across the mini-batch. For an input batch of size BB and sequence length TinT_{\mathrm{in}}, the first batch row received positions 0,…,Tin−10,\ldots,T_{\mathrm{in}}-1, the second row received positions 1,…,Tin1,\ldots,T_{\mathrm{in}}, and so on. Since mini-batches were shuffled during training, this shift corresponded to the row position within the mini-batch rather than the true temporal position of the original time-series window.

The final combined embedding at time step tt for the iith sample is

Embed⁡(xit)=Etoken(xit)+Etemp(xitmark)+PEt,t=1,…,Tin,\operatorname{Embed}(x_{it}) = E^{\mathrm{token}}(x_{it}) + E^{\mathrm{temp}}(x^{\mathrm{mark}}_{it}) + \mathrm{PE}_{t}, \qquad t=1,\ldots,T_{\mathrm{in}},

where Embed⁡(xit)∈Rd\operatorname{Embed}(x_{it}) \in\mathbb{R}^{d}. When the full input tensor X∈RB×Tin×fX \in\mathbb{R}^{B \times T_{\mathrm{in}} \times f} is passed through the final embedding layer (Embed⁡(⋅)\operatorname{Embed}(\cdot)), the input feature vector is mapped to a dd-dimensional representation, E=Embed⁡(X)∈RB×Tin×dE=\operatorname{Embed}(X) \in\mathbb{R}^{B \times T_{\mathrm{in}} \times d}.

The encoder consists of LL stacked layers, each with multi-head self-attention (MHA), a ReLU-based feed-forward network (FFN), and residual connections. For layer l=1,…,Ll=1,\ldots,L, the computations are given by

H~(l)=LayerNorm⁡(H(l−1)+MHA⁡(H(l−1))),H(l)=LayerNorm⁡(H~(l)+FFN⁡(H~(l))).(2)\begin{aligned} \widetilde{H}^{(l)} &= \operatorname{LayerNorm}\left(H^{(l-1)}+\operatorname{MHA}\left(H^{(l-1)}\right)\right),\\ H^{(l)} &= \operatorname{LayerNorm}\left(\widetilde{H}^{(l)}+\operatorname{FFN}\left(\widetilde{H}^{(l)}\right)\right). \tag*{(2)} \end{aligned}

where LayerNorm(⋅)(\cdot) denotes the layer normalization. In Equation (2), H(0)=EH^{(0)}=E denotes the embedded input sequence. The encoder output after final layer is H(L)∈RB×Tin×dH^{(L)} \in\mathbb{R}^{B \times T_{\mathrm{in}} \times d}.

Let Y∈RB×Tout×1Y \in\mathbb{R}^{B \times T_{\mathrm{out}} \times1} denote the target tensor where BB is the batch size and ToutT_{\mathrm{out}} is the target sequence length. To construct the decoder input for one-shot forecasting, the first TlabelT_{\mathrm{label}} time steps of YY are retained as observed values (denoted by YlabelY_{\mathrm{label}}), where Tlabel≤ToutT_{\mathrm{label}} \leq T_{\mathrm{out}}. The remaining Tforecast=Tout−TlabelT_{\mathrm{forecast}}=T_{\mathrm{out}}-T_{\mathrm{label}} positions are filled by repeating the last observed value in YlabelY_{\mathrm{label}} (denoted by YpadY_{\mathrm{pad}}). Accordingly, the observed part is Ylabel=Y[:,0:Tlabel,:]∈RB×Tlabel×1Y_{\mathrm{label}}=Y_{[:,0:T_{\mathrm{label}},:]} \in\mathbb{R}^{B \times T_{\mathrm{label}} \times1}, and the padded part is Ypad=(Y[:,Tlabel,:],…,Y[:,Tlabel,:])∈RB×Tforecast×1Y_{\mathrm{pad}}=\left(Y_{[:,T_{\mathrm{label}},:]},\ldots,Y_{[:,T_{\mathrm{label}},:]}\right) \in\mathbb{R}^{B \times T_{\mathrm{forecast}} \times1}.

The decoder input is then formed by concatenating these two parts:

Ydecoder=concat⁡(Ylabel,Ypad)∈RB×Tout×1Y_{\mathrm{decoder}} = \operatorname{concat}(Y_{\mathrm{label}}, Y_{\mathrm{pad}}) \in\mathbb{R}^{B \times T_{\mathrm{out}} \times1}

The decoder input YdecoderY_{\mathrm{decoder}} is subsequently mapped into the same dd-dimensional embedding space as the encoder input using the embedding function Embed⁡(⋅)\operatorname{Embed}(\cdot),

D=Embed⁡(Ydecoder)∈RB×Tout×d.D = \operatorname{Embed}(Y_{\mathrm{decoder}}) \in\mathbb{R}^{B \times T_{\mathrm{out}} \times d}.

The decoder consists of LL stacked Transformer decoder layers. Each layer includes a multi-head self-attention sublayer (MHAself_{\mathrm{self}}), a cross-attention sublayer (MHAcross_{\mathrm{cross}}), and a ReLU-based feed-forward network (FFN). Residual connections and layer normalization are applied after each sublayer. For layer l=1,…,Ll = 1, \ldots, L, the computations are given by

D~(l)=LayerNorm⁡(D(l−1)+MHA⁡self(D(l−1))),D^(l)=LayerNorm⁡(D~(l)+MHA⁡cross(D~(l),H(l))),D(l)=LayerNorm⁡(D^(l)+FFN⁡(D^(l))).\begin{aligned} \widetilde{D}^{(l)} &= \operatorname{LayerNorm}\left(D^{(l-1)} + \operatorname{MHA}_{\mathrm{self}}\left(D^{(l-1)}\right)\right), \\ \widehat{D}^{(l)} &= \operatorname{LayerNorm}\left(\widetilde{D}^{(l)} + \operatorname{MHA}_{\mathrm{cross}}\left(\widetilde{D}^{(l)}, H^{(l)}\right)\right), \\ D^{(l)} &= \operatorname{LayerNorm}\left(\widehat{D}^{(l)} + \operatorname{FFN}\left(\widehat{D}^{(l)}\right)\right). \end{aligned}

where D(0)=DD^{(0)} = D. The cross-attention mechanism enables the decoder to attend to the encoder representations, which is central to the downscaling task. In cross-attention, the decoder hidden states provide the query representations, while the encoder outputs supply the corresponding key and value representations. By attending to encoder-derived keys and values computed from coarser-resolution GHI, and processing decoder queries derived from finer-resolution local irradiance, the model learns cross-scale dependencies without explicit resampling or manual temporal alignment. After the final decoder layer, the output has dimensions D(L)∈RB×Tout×dD^{(L)} \in\mathbb{R}^{B \times T_{\mathrm{out}} \times d}. No causal masking is applied in the decoder self-attention. Unlike autoregressive approaches, predictions are generated simultaneously rather than stepwise (one-shot forecasting), making masking unnecessary and allowing the model to capture full-sequence dependencies more efficiently.

To capture fine-grained variations in the local irradiance, the decoder output is further processed through a stack of feed-forward layers arranged in a funnel-shaped architecture. The decoder output D(L)D^{(L)}, is first reshaped by merging the batch and temporal dimensions: Z(0)=Reshape⁡(D(L))∈R(B⋅Tdecoder)×dZ^{(0)} = \operatorname{Reshape}(D^{(L)}) \in\mathbb{R}^{(B \cdot T_{\mathrm{decoder}}) \times d}. Then, it is passed through a sequence of six fully connected layers with dimensions: 1024, 512, 256, 128, 64 and 1. Each layer has ReLU activation enabling the model to learn non-linear patterns in the forecasted sequence. The final layer corresponds to the predicted local solar irradiance. The output is then reshaped back to recover the original batch and temporal structure, yielding a tensor of shape B×Tout×1B \times T_{\mathrm{out}} \times1, where BB is the batch size and ToutT_{\mathrm{out}} is the target sequence length. The last time steps of ToutT_{\mathrm{out}}, denoted by TforecastT_{\mathrm{forecast}}, are retained as the final forecast.

Model Training and Computational Environment

The model is trained by minimizing the mean squared error (MSE) on the training set and using the AdamW optimizer for optimization. To improve training stability and convergence, we employ the ReduceLROnPlateau learning rate scheduler, which adaptively reduces the learning rate when the training loss ceases to improve. During training, dropout with a rate of 0.1 is applied uniformly across the encoder, decoder, and embedding layers to mitigate overfitting. Core architectural components of the Transformer are treated as tunable hyperparameters. In addition, parameters such as input sequence length, batch size, learning rate, and decoder label length are also optimized.

The GA algorithm is employed to obtain the best hyperparameter combination. A selection rate of 0.5 is used, meaning that parents are chosen from the top 50% of individuals in each generation. Offspring are generated using a crossover probability of 0.8, while a mutation rate of 0.2 introduces random mixing to maintain population diversity. In addition, an elitism rate of 0.2 ensures that a fraction of the best-performing individuals is preserved across generations, helping to retain high-quality solutions throughout the evolutionary process. During the GA search, all candidate models are trained for a 100 epochs, which substantially reduces computational cost while allowing reliable comparison across the large hyperparameter space. The best-performing hyperparameter configuration is selected based on the minimum RMSE on the test set. The corresponding best models are re-trained for 300 epochs using the same hyperparameters and identical initialization conditions. The final 300 epoch rerun is to assess whether extended training yields additional performance improvements beyond those observed during the proxy training stage.

All models are implemented in PyTorch and trained on a GPU-enabled cluster node equipped with an Intel Xeon Gold 6342 CPU @ 2.80 GHz, up to 200 GB of system memory, and an NVIDIA A100 GPU with 80 GB of memory. CUDA version 11.8 is used for acceleration, with up to 15 CPU cores allocated for data loading and preprocessing.

Uncertainty Estimates

To evaluate the robustness and consistency of the proposed model, we conducted a series of retraining experiments for each of the best-performing models corresponding to the four input-resolution scenarios. Specifically, each of the best model is retrained hundred times using the same optimal hyperparameter configuration identified by the genetic algorithm, while allowing all sources of randomness to vary freely across runs. This analysis isolates the variability in predictive performance attributable solely to random training effects. The uncertainty estimates are then constructed using two complementary approaches:

  1. Performance-based uncertainty bounds: After retraining the selected best model 100 times, the retrained models are ranked based on their RMSE values. The predictions from the 3rd-best and 97th-best retrained models are then selected and plotted along with the prediction from the best-performing model.

  1. Pointwise variance-based uncertainty estimates: Since each 24-hour forecast consists of 288 prediction points at 5-minute intervals, each forecast time step has 100 predicted values obtained from the 100 independent retraining runs. For each time step tt, where t=1,…,288t = 1, \ldots, 288, a pointwise sample variance is computed across the 100 predictions. However, instead of centering the variance around the mean prediction at time step tt, the variance is computed relative to the prediction from the best-performing model at the same time step. Specifically, if y^r,t\hat{y}_{r,t} denotes the prediction from retraining run rr at time step tt, and y^best,t\hat{y}_{\mathrm{best},t} denotes the prediction from the best-performing model (from the GA trained models) at the same time step, the pointwise variance is calculated as

st2=1n−1∑r=1n(y^r,t−y^best,t)2,n=100.s_t^2 = \frac{1}{n-1}\sum_{r=1}^{n}\left(\hat{y}_{r,t}-\hat{y}_{\mathrm{best},t}\right)^2,\qquad n=100.

This allows us to capture timestep-specific variability in the model outputs.

Benchmark Models and Comparative Setup

To evaluate the proposed framework against established forecasting methods, four Transformer-based encoder–decoder models were implemented as benchmarks: Informer, Autoformer, FEDformer, and the Non-stationary Transformer. Custom PyTorch implementations were constructed following the main architectural components of the original models and were adapted to the same global-to-local forecasting and downscaling setting used by the proposed framework.

To ensure a consistent comparison, all benchmark models were trained and optimized using the same loss function, optimizer, learning-rate scheduler, GA settings, and number of training epochs as the proposed Transformer framework. In addition to the common hyperparameters, model-specific hyperparameters were included in the search space where required to account for the distinct architectural components of each benchmark model.

The principal model-specific components were retained in each implementation. Informer used ProbSparse self-attention, encoder distillation, and full cross-attention in the decoder. Autoformer used progressive seasonal–trend decomposition and the Auto-Correlation mechanism. Because the encoder and decoder operate on different irradiance series, the Autoformer decomposition was initialized using the known local decoder history rather than the global encoder series. FEDformer followed a similar decomposition-based structure but replaced the Auto-Correlation mechanism with Fourier-domain self- and cross-attention. Its decomposition was also initialized from the known local history, and the GA factor parameter was mapped to the number of Fourier modes. The Non-stationary Transformer applied series stationarization and de-stationary attention, with the scaling and shifting factors learned from the raw global encoder sequence. Its predictions were restored using statistics from the local decoder history because the forecasting target was local irradiance. In Autoformer and FEDformer, boundary values were repeated only within the moving-average decomposition to preserve the original sequence length. For the Non-stationary Transformer, the learned attention-shift vector was padded with zeros or truncated when necessary to match the encoder or decoder key length. These operations were internal architectural adjustments and did not modify the input datasets.

Results and Discussion

The complete dataset spans the full year of 2024. Two evaluation settings were considered: (1) a controlled comparison of four model variants using the May–June subset and (2) a rolling monthly evaluation of the 60-minute input model across the full year.

For the controlled comparison, four variants of the proposed model were trained using global GHI inputs with different temporal sampling characteristics: 15-minute GHI (Model 1), 30-minute GHI (Model 2), 60-minute GHI (Model 3), and irregularly sampled GHI (Model 4). The 30-minute and 60-minute datasets were derived from the original 15-minute global GHI series by retaining every second and fourth observation, respectively. To construct the irregular-input case, observations were randomly removed without replacement from the 15-minute May–June series. The original series contained 5,856 observations, of which 3,800 were removed, leaving 2,056 observations with irregular temporal spacing.

All four models generate local solar irradiance forecasts at a fixed 5-minute resolution using a one-shot, full-day forecasting strategy. Although the output resolution is fixed at 5 minutes in the present study, the proposed architecture can be adapted to generate forecasts at other temporal resolutions.

The June 30, 2024 forecasting scenario was used for the direct comparison among the four model variants. Because the input datasets have different sampling intervals, the exact 24-hour output windows differ slightly among the models:

  • Model 1: June 29, 2024 at 23:50 to June 30, 2024 at 23:45,

  • Model 2: June 29, 2024 at 23:35 to June 30, 2024 at 23:30,

  • Model 3: June 29, 2024 at 23:05 to June 30, 2024 at 23:00, and

  • Model 4: June 29, 2024 at 23:50 to June 30, 2024 at 23:45.

To assess performance across different seasonal conditions, an additional full-year evaluation was conducted using only the 60-minute input configuration (Model 3). A rolling monthly prediction scheme was applied in which the final day of each month served as the testing period and the preceding training window extended over approximately two months, ending on the day before the test date. For example, the prediction for April 30, 2024 was generated using observations from March 1 through April 29, 2024 for training. For January, because earlier observations were unavailable, the model was trained using data from January 1 through January 30 and evaluated on January 31. The monthly forecasting results for Model 3 are provided in the Appendix.

Training and Evaluation Setting

For the controlled comparison, the dataset was split chronologically into a training period from May 1 to June 29, 2024, and a testing period consisting of June 30, 2024. The solar irradiance time series exhibits short-range dependence. Hence we do not use a separate validation split because removing a continuous segment would break the temporal continuity most relevant for forecasting the test day. To construct training samples, we generate paired sequences of GHI inputs and corresponding local irradiance targets. The global input and local target sequences are temporally aligned to ensure continuity across the different input resolutions. Each sample is defined by three parameters: the input sequence length (TinT_{\mathrm{in}}), the label length (TlabelT_{\mathrm{label}}), and the forecasting horizon (TforecastT_{\mathrm{forecast}}).

For each scenario, The GA searches over the following ranges: input sequence length from 48 to 384 time steps, embedding dimension from 16 to 512, number of attention heads from 1 to 16, and feed-forward network dimension from 64 to 2048. The number of encoder and decoder layers is varied from 1 to 4, batch size from 16 to 256, learning rate from 10−610^{-6} to 10−210^{-2}, and decoder label length from 24 to 144 time steps. The GA runs for 10 generations with a population size of 100, resulting in approximately 1000 models evaluated per resolution. These settings were chosen based on the available computational resources and the observed convergence of the search, as the later generations did not produce solutions that outperformed the best configuration identified earlier. Table 2 summarizes the GA results.

ModelRMSETrain. TimePred. TimeResidual VarianceGA Gen.
Model 128.78516.60 min0.0119 sec829.5804
Model 229.5446.52 min0.0074 sec846.0989
Model 330.1573.14 min0.009 sec898.9167
Model 432.1324.07 min0.0054 sec1025.7026

Table 2. The RMSE, training and prediction time, variance of residual and generation of the Genetic Algorithm (GA Gen.) that produced the best results for each scenario. Input resolution is 15 minutes, 30 minutes, 60 minutes, and irregular time series for Models 1, 2, 3, and 4, respectively, with day ahead forecast at 5 minutes resolution. The random seeds are 1316889585, 3794230437, 1186702747 and 2359100063 for Models 1, 2, 3, and 4, respectively.

For consistency, the benchmark models were evaluated under the same controlled May–June setting used for Models 1–4. All models were trained and tested using the same preprocessed datasets, chronological data split, calendar features, and timestamp-alignment procedure. This common experimental setup ensured that the observed performance differences were primarily attributable to the forecasting architectures rather than variations in data preparation.

Forecasting Results

Table 1 shows the hyperparameter configurations corresponding to these best-performing models as well as the total training time to complete the GA process for each resolution scenario. The total computational training time was greatest for Model 1 and lowest for Model 3. In specific, Model 1 required 10 days, 9 hours, 24 minutes, and 32 seconds to complete the full genetic algorithm search. In comparison, Model 2 and Model 3 required 2 days, 21 hours, 22 minutes, and 35 seconds, and 1 day, 16 hours, 26 minutes, and 50 seconds, respectively. Best architecture for Model 1 also has the largest sequence length, batch size, and learning rate. Models 2 and 3 have larger embedding size and larger or equal dimension for feed-forward neural network. These patterns are attributable to differences in the size of the input data across model configurations.

The extended training with 300 epochs did not yield performance gains. Consequently, the 100-epoch training configuration used during the GA search was retained as the final training setup for all four scenarios. Table 2 summarizes the performance of the best models in each scenario. Among the four scenarios, the model trained with 15-minute GHI inputs achieves the lowest RMSE. This outcome aligns with expectations, as the finer-resolution global input provides richer temporal information, enabling the model to better capture short-scale variations in local solar irradiance Zhang et al. [2018]. Similar to total training time, the computational training time for Model 1 is the longest and Model 3 required shorter training time for best architecture. As seen in Table 1, although the difference in runtime for a single model run was approximately 10 minutes, the cumulative effect was substantial because the full training procedure required approximately 1000 model runs for each scenario. Model 1 produces smallest residual variance and converges in the earlier GA generation. Therefore, the choice of model depends on the desired trade-off between accuracy, computational time, and memory requirements. Model 1 is preferable when predictive accuracy is the primary goal, whereas Model 3 is advantageous when computational efficiency and reduced memory use are prioritized. Model 2 represents a compromise, offering reduced computational cost while preserving accuracy closer to that of Model 1.

HyperparameterModel 1Model 2Model 3Model 4
Sequence Length1444896144
Embedding Size32256256128
Attention Heads1616164
Feed-forward Dim5121024512256
Number of Layers4342
Batch Size128329616
Learning Rate0.0010.00010.00010.0001
Label Length242424144
Total Training Time10d/9h/24m/32s2d/21h/22m/35s1d/16h/26m/50s2d/10h/38m/37s

Table 1. The hyperparameters of the best model and total time to complete the full GA search for each scenario. The training time is in days (d)/hours (h)/minutes (m)/seconds. The input resolution is 15 minutes, 30 minutes, 60 minutes, and irregular time series for Models 1, 2, 3, and 4, respectively, with day ahead forecast at 5 minutes resolution.

For the irregular time series scenario, the training time for the best model was 4.07 minutes. Furthermore, the full genetic algorithm search required 2 days, 10 hours, 38 minutes, and 37 seconds to complete. These times are slightly greater than those observed in the 60-minute input scenario but remain lower than the other configurations. This may be attributable to the reduced number of available training points resulting from missing time steps. Notably, the presence of missing values was associated with the highest RMSE and residual variance across all scenarios. This degradation in predictive performance is consistent with prior deep learning time-series studies, which have shown that missing observations disrupt temporal dependencies, reduce the effective information available for model training, and can negatively affect downstream forecasting accuracy unless appropriately handled through imputation or missingness-aware modeling approaches Fang and Wang [2020], Cini et al. [2022], Wang et al. [2025]. These findings highlight the importance of complete and regularly sampled information for accurate forecasting.

Figure 3 illustrates the performance of the each model and highlights the trade-off between input temporal resolution and forecasting accuracy. The observed local irradiance is shown in blue, while the corresponding best-model predictions are shown in red. To assess model consistency under random initialization the grey curves represent the 3rd-best and 97th-best retrained models, ranked according to RMSE, among the 100 independent retraining runs, with the light green shaded region indicating the variability between these bounds. All models successfully capture the overall pattern of solar irradiance. They closely track the low-variability periods such as sunrise and sunset. The largest discrepancies occur during peak solar hours, 10:00 to 18:00, when irradiance exhibits rapid fluctuations. Although Model 1 achieves the lowest RMSE, it still exhibits noticeable errors in tracking sharp dips and spikes. Nevertheless, its predictions follow the observed trends more closely than those of Models 2, 3 and 4. Across all scenarios, the models exhibit a tendency to smooth high-frequency variations, reflecting a common limitation in capturing instantaneous irradiance variability during temporal downscaling Zhang et al. [ [59].

Observed and predicted 5-minute local solar irradiance at Camp Davis, Dallas, from June 29 to June 30, 2024, using GHI inputs at 15-, 30-, 60-minute, and irregular temporal resolutions

Figure 3. Observed and predicted 5-minute local solar irradiance at Camp Davis, Dallas, from June 29 to June 30, 2024, using GHI inputs at 15-, 30-, 60-minute, and irregular temporal resolutions. Blue lines indicate observed irradiance, red lines indicate best-model predictions, and the shaded region represents the uncertainty band between the 3rd-best and 97th-best retrained models.

Uncertainty Evaluation

The prediction intervals, visualized in Figure 3, remain narrow during early morning and late evening hours, indicating high confidence when irradiance is low or smoothly varying, but widen substantially during peak solar hours, reflecting increased uncertainty under highly variable conditions. The longest period for wide interval belongs to Model 1. The irregular-input scenario, Model 4, does not accurately capture the morning irradiance pattern and produces a wider range of predictions in the late afternoon. Nevertheless, its best-performing configuration mimics the overall temporal pattern of the local irradiance observations.

To further assess the impact of stochastic training on forecast stability, we also compute a pointwise measure of variability for each 24-hour forecast horizon for the best models obtained in Table 2. For each forecast time step, the pointwise mean squared deviation from the best-model prediction was computed across the 100 independently retrained models. Figure 4 show the best-model forecast with an uncertainty interval defined by ±2\pm2 pointwise standard deviations. For Models 1 and 4, noticeable fluctuations appear in the uncertainty bounds during early morning and nighttime hours, when solar irradiance should be approximately zero. The lower bound also occasionally falls below zero, which is not physically meaningful because irradiance cannot be negative. These fluctuations reflect stochastic variability among repeated retraining runs under near-zero irradiance conditions, rather than real solar irradiance behavior. It is also observed that the models with coarser input resolution, Models 2 and 3, have narrower prediction interval compared to the finer input resolution model.

Uncertainty quantification for predicted local solar irradiance at Camp Davis, Dallas, over a 24-hour period

Figure 4. Uncertainty quantification for predicted local solar irradiance at Camp Davis, Dallas, over a 24-hour period (June 29–30, 2024). The red line shows the best model prediction and the blue line represents the observed irradiance. The shaded region represents the uncertainty interval (best model ±2\pm2 pointwise standard deviations), quantifying prediction variability due to randomness in the training process at each forecast timestep.

Comparison with State-of-the-Art Forecasting Models

For a consistent comparison and to limit computational cost, all benchmark models were evaluated using the 60-minute-to-5-minute forecasting setting. Each model received 60-minute global GHI as the encoder input and generated a one-shot 24-hour local irradiance forecast at 5-minute resolution. Table 3 compares the proposed RATSIFT model with the Non-stationary Transformer, FEDformer, Autoformer, and Informer. Lower values indicate better performance for RMSE, MAE, prediction time, training time, and residual variance.

ModelRMSEMAEPred. TimeTrain. TimeResidual Var.GA Gen.
RATSIFT30.15717.1190.0090 sec3.14 min898.9167
Non-stationary43.42231.2810.0243 sec6.40 min1793.04010
FEDformer46.97932.7710.1352 sec43.98 min2212.6587
Autoformer60.73246.9130.0268 sec13.14 min3657.48510
Informer189.902113.3970.0347 sec14.27 min24307.4889

Table 3. Performance comparison of RATSIFT and the benchmark Transformer models. The best value in each performance metric is shown in bold.

RATSIFT achieved the lowest RMSE, MAE, and residual variance, indicating both greater forecasting accuracy and lower dispersion of the prediction errors. It was also the most computationally efficient model, requiring only 3.14 minutes for training and 0.009 seconds for prediction. The Non-stationary Transformer produced the second-best results, followed by FEDformer and Autoformer, whereas Informer exhibited substantially larger errors.

Figure 5 further illustrates the differences among the models. RATSIFT most closely reproduced the observed daily irradiance profile, including the morning increase, midday variation, and rapid evening decline. The Non-stationary Transformer and FEDformer captured the general daily pattern but showed larger deviations during the afternoon and near sunset. Autoformer tended to overestimate midday irradiance and produced unstable predictions during nighttime hours. Informer generated an overly smooth forecast and substantially underestimated the daytime irradiance magnitude, resulting in the largest forecasting errors.

Comparison of RATSIFT Model with Benchmark Models (60min to 5min)

Figure 5. Observed and predicted 5-minute local solar irradiance profiles for June 30, 2024, obtained from 60-minute global GHI inputs. The proposed RATSIFT model is compared with the Non-stationary Transformer, FEDformer, Autoformer, and Informer, with the corresponding RMSE values reported in the legend.

The improved performance of RATSIFT may be attributed to its direct cross-resolution encoder–decoder formulation, which learns the relationship between coarse global GHI and fine-resolution local irradiance without imposing the explicit seasonal-trend decomposition used by Autoformer and FEDformer or the stationarization and de-stationarization framework used by the Non-stationary Transformer Wu et al. [2021], Zhou et al. [ [61], Liu et al. [ [29]. This flexibility appears to help the model reproduce the morning increase, short-term daytime variability, and evening decline more accurately.

Conclusion

This study introduced a resolution-adaptive Transformer framework for one-shot forecasting and downscaling of solar irradiance, with model configurations optimized using a genetic algorithm. The proposed framework uses global horizontal irradiance at multiple temporal resolutions as input and generates high-resolution 5-minute local irradiance forecasts. The results demonstrate that coarser-resolution inputs can achieve competitive predictive accuracy while substantially reducing computational cost. The GA-based hyperparameter optimization revealed a clear trade-off between temporal resolution and computational efficiency. Models trained on coarser-resolution inputs required significantly less optimization and training time, enabling the use of larger training datasets. In contrast, finer-resolution inputs retained greater temporal detail and produced marginally more accurate forecasts, consistent with previous research showing that substantial irradiance variability occurs at finer temporal scales Zhang et al. [ [59], but at the expense of increased computational overhead.

Repeated retraining experiments further showed that the framework produced reasonably accurate predictions and reliable uncertainty estimates. Prediction intervals remained narrow during stable irradiance periods and widened during highly variable peak solar hours, reflecting increased forecast uncertainty under rapidly changing conditions. The framework also performed effectively when the input consisted of an irregularly sampled time series. The proposed framework also outperformed the four benchmark Transformer architectures.

Overall, the proposed resolution-adaptive Transformer offers a scalable, flexible, and computationally efficient solution for multi-resolution solar irradiance forecasting and downscaling. Its ability to balance accuracy and efficiency makes the proposed approach well suited for practical applications such as photovoltaic power forecasting and grid operations, where accurate forecasts are important for managing spatially distributed solar generation Visser et al. [ [51]. Future work will extend the framework to spatial and spatiotemporal settings using multi-site and/or satellite data. Previous studies have demonstrated the value of incorporating spatial context, geographically distributed stations, and satellite information into solar irradiance forecasting models Boussif et al. [ [3], Li et al. [2025]. Additional architectural enhancements may also improve robustness under highly variable weather conditions while preserving computational efficiency. Further improvements to the hyperparameter optimization process will be explored, including Bayesian optimization Snoek et al. [ [45], Latin hypercube sampling for GA population initialization Preekakul and Kheawhom [2009], and adaptive crossover strategies that adjust genetic-operator probabilities according to model fitness Srinivas and Patnaik [ [46]. These extensions are currently under investigation.

Disclosure statement

The authors have no conflicts of interest.

Data Availability Statement

Data sharing is not applicable to this article as no new data were created or analyzed in this study. The source code for the proposed models will be available upon acceptance.

Attention Mechanism

The attention mechanism was introduced to enable capturing long-range dependencies in sequential data. Rather than compressing all past information into a single hidden representation, attention asks: Given a current query, which elements of the sequence are most relevant for the prediction? This formulation allows the model to assign importance to different time steps based on content rather than position alone. The attention operation computes a weighted aggregation of input representations

Attention⁡(Q,K,V)=softmax⁡(QKTdk)V,(3)\operatorname{Attention}(Q,K,V) = \operatorname{softmax}\left(\frac{QK^{\mathsf{T}}}{\sqrt{d_k}}\right)V, \tag*{(3)}

where QQ, KK, and VV denote the query, key, and value matrices, respectively, and dkd_k is the dimension of the key vectors. In this formulation, similarity between a query and all keys determines how much attention each input position receives. The scaling factor, dk\sqrt{d_k}, stabilizes gradients, and the softmax function converts similarity scores into normalized weights. Multiplying these weights by the value matrix produces a context vector, which is a weighted summary of the sequence that emphasizes the most informative elements. This mechanism enables the model to integrate information from both nearby and distant time steps in a flexible manner.

Transformer architecture stacks multiple self-attention and feed-forward layers to model complex sequence relationships without relying on recurrence or convolution. Due to Transformers’ lack of inherent notion of order, positional encodings are added to input embeddings to preserve temporal structure Vaswani et al. [ [50]. The encoder-decoder architecture further extends this framework by allowing the decoder to selectively attend to encoder outputs during prediction. This combination of flexibility, scalability, and parallelism has established Transformers as a foundation for state-of-the-art models across natural language processing, computer vision, and time-series forecasting Lin et al. [ [28], Wen et al. [ [55].

Computational Complexity and Practical Adjustments of Transformers for Time-Series

Self-attention requires quadratic computational and memory complexity in terms of the number of time steps in the input sequence. Thus, it could be computationally expensive for a long time-series. There exist many Transformer variants for time-series forecasting that use sparse, low-rank, or probabilistic attention to reduce computation and memory while still capturing important patterns in the data. Systematic surveys on Transformers provide comprehensive comparisons of different Transformer variants, highlighting their architectural trade-offs and relative performance across diverse forecasting tasks Wen et al. [ [55], Shan et al. [ [43]. Zhou et al. [ [62] showed that attention models do not beat classical linear predictors. However, this claim might not hold for nonlinear scenarios such as the one considered in this study. Attention based model have shown promising results in similar forecasting problems Baghaei et al. [ [2], Peter et al. [ [37], El-Saieed [2025].

Genetic Algorithm Convergence Results

Figure 6 shows the evolution of the best RMSE obtained within each GA generation for the four input-resolution scenarios. Generation 0 represents the initial population, while subsequent generations correspond to models produced through the GA selection, crossover, and mutation process. For each generation, the lowest RMSE is reported to show how the best-performing candidate model changes across the optimization process.

Best Model in each Genetic Algorithm Generation

Figure 6. Best RMSE obtained in each genetic algorithm generation for different modeling scenarios. Generation 0 represents the initial population, and the red marker denotes the overall best-performing model in each case.

The results indicate that the GA is able to identify improved model configurations over successive generations, although the improvement is not strictly monotonic. This non-monotonic behavior is expected because each generation contains a new set of candidate models, and the best model within a later generation is not always guaranteed to outperform the best model from an earlier generation. The best models are obtained in generation 4 for the 15-minute input model, generation 9 for the 30-minute input model, generation 7 for the 60-minute input model and, generation 6 for the irregular time series input model.

The figure shows that the GA search is able to identify improved configurations beyond the initial population, demonstrating its usefulness for optimizing the Transformer hyperparameters.

Monthly Forecasting and Uncertainty Results

This section presents the monthly forecasting results for the year 2024 to further evaluate the performance of the proposed model across different seasonal conditions. For each month, the model was trained using the two months of

historical data preceding the test date and was then used to predict the selected test day at a 5-minute resolution. The only exception is January, where only January data were available for training. The results for the predictions along with their uncertainty bounds are shown in Figure 7 and 8.

Monthly 5-minute local solar irradiance forecasts for 2024

Figure 7. Monthly 5-minute local solar irradiance forecasts for 2024 using the proposed model. The observed values, best-model predictions, and uncertainty band between the 3rd-best and 97th-best retrained models are shown for each monthly test day.

All missing values in the dataset were filled using PCHIP interpolation, as described in § 2. For November, five consistent periods of missing values were observed. In this case, the nighttime and early morning missing values were first set to zero because solar irradiance is expected to be zero during those periods, and the remaining missing values were then interpolated.

The monthly results show that the model is generally able to reproduce the overall daily pattern of local solar irradiance across the year. In most months, the predicted curves follow the observed irradiance reasonably well. However, the model has more difficulty capturing severe and abrupt spikes and dips in irradiance, particularly in months such as February, April, May, and August. These sharp fluctuations are likely caused by rapid cloud movement or short-term atmospheric changes. As a result, the predicted curves are often smoother than the observed curves and may underestimate sudden peaks or fail to fully capture rapid drops in irradiance.

The uncertainty bands provide additional insight into the stability of the predictions across repeated retraining runs. Figure 7 represents the range between the 3rd-best and 97th-best models from the 100 retraining runs, while Figure 8 represents the pointwise uncertainty band based on variance around the best model. Wider uncertainty bands are generally observed during daytime and peak irradiance periods, where the irradiance values are higher and more variable. In contrast, the uncertainty is usually narrower during nighttime, when irradiance is expected to remain close to zero.

Monthly 5-minute local solar irradiance forecasts for 2024

Figure 8. n. Monthly 5-minute local solar irradiance forecasts for 2024 using the proposed model. The observed values, best-model predictions, and the pointwise uncertainty band around the best model are shown for each monthly test day.

These monthly results show that the proposed model can capture the broad seasonal and diurnal behavior of solar irradiance, but its performance decreases when the observed irradiance contains sudden, high-frequency fluctuations. This suggests that future improvements may require additional meteorological or cloud-related predictors to better capture abrupt irradiance spikes and drops.

References

  1. [2]I. Baghaei, A. Shirazizadeh, R. Ahmadi, A. Zahedi, and M. Mirhosseini. A transformer-based deep neural network long-term forecasting of solar irradiance and temperature: A multivariate multistep multitarget approach. Engineering Applications of Artificial Intelligence, 174:114517, 2026. ISSN 0952-1976. doi: https://doi.org/10.1016/j.engappai.2026.114517. URL https://www.sciencedirect.com/science/article/pii/S0952197626007980.
  2. [3]O. Boussif, G. Boukachab, D. Assouline, S. Massaroli, T. Yuan, L. Benabbou, and Y. Bengio. Improving day-ahead solar irradiance time series forecasting by leveraging spatio-temporal context. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 2342–2367. Curran Associates, Inc., 2023. doi: 10.52202/075280-0109. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/070a57c5ef1e58cc90201b11d369b3c2-Paper-Conference.pdf.DOI
  3. [4]J. M. Bright, O. Babacan, J. Kleissl, P. G. Taylor, and R. Crook. A synthetic, spatially decorrelating solar irradiance generator and application to a lv grid model with high pv penetration. Solar Energy, 147:83–98, 2017. ISSN 0038-092X. doi: https://doi.org/10.1016/j.solener.2017.03.018. URL https://www.sciencedirect.com/science/article/pii/S0038092X17301780.
  4. [5]B. Brzęk, B. Probierz, and J. Kozak. Exploration-driven genetic algorithms for hyperparameter optimisation in deep reinforcement learning. Applied Sciences, 15(4), 2025. ISSN 2076-3417. doi: 10.3390/app15042067. URL https://www.mdpi.com/2076-3417/15/4/2067.DOI
  5. [6]M. Camacho, J. Maldonado-Correa, J. Torres-Cabrera, S. Martín-Martínez, and E. Gómez-Lázaro. Short-medium-term solar irradiance forecasting with a ceemdan-cnn-att-lstm hybrid model using meteorological data. Applied Sciences, 15 (3), 2025. ISSN 2076-3417. doi: 10.3390/app15031275. URL https://www.mdpi.com/2076-3417/15/3/1275.
  6. [7]D. R. Cameron, L. Crane, S. S. Parker, and J. M. Randall. Solar Energy Development and Regional Conservation Planning, pages 66–75. Island Press/Center for Resource Economics, Washington, DC, 2017. ISBN 978-1-61091-723-0. doi: 10.5822/978-1-61091-723-0_5. URL https://doi.org/10.5822/978-1-61091-723-0_5.
  7. [8]S. Cao and K. Sirén. Impact of simulation time-resolution on the matching of pv production and household electric demand. Applied Energy, 128:192–208, 2014. ISSN 0306-2619. doi: https://doi.org/10.1016/j.apenergy.2014.04.075. URL https://www.sciencedirect.com/science/article/pii/S0306261914004383.
  8. [9]A. A. Chowdhury, A. Das, K. K. S. Hoque, and D. Karmaker. A comparative study of hyperparameter optimization techniques for deep learning. In M. S. Uddin, P. K. Jamwal, and J. C. Bansal, editors, Proceedings of International Joint Conference on Advances in Computational Intelligence, pages 509–521, Singapore, 2022. Springer Nature Singapore. ISBN 978-981-19-0332-8.DOI
  9. [11]G. Deep and J. Verma. Deep Learning Models for Fine-Scale Climate Change Prediction: Enhancing Spatial and Temporal Resolution Using AI, pages 81–100. Springer Nature Singapore, Singapore, 2024. ISBN 978-981-97-1685-2. doi: 10.1007/978-981-97-1685-2_5. URL https://doi.org/10.1007/978-981-97-1685-2_5.
  10. [12]W. Dou, K. Wang, S. Shan, K. Zhang, and H. Wei. Day-ahead correction of numerical weather prediction solar irradiance forecasts based on similar day analysis. In 2023 35th Chinese Control and Decision Conference (CCDC), pages 2554–2559, 2023. doi: 10.1109/CCDC58219.2023.10327305.DOI
  11. [16]F. N. Fritsch and R. E. Carlson. Monotone piecewise cubic interpolation. SIAM Journal on Numerical Analysis, 17(2):238–246, 1980. doi: 10.1137/0717021. URL https://doi.org/10.1137/0717021.
  12. [17]M. Guermoui, F. Melgani, K. Gairaa, and M. L. Mekhlafi. A comprehensive review of hybrid models for solar radiation forecasting. Journal of Cleaner Production, 258:120357, 2020. ISSN 0959-6526. doi: https://doi.org/10.1016/j.jclepro.2020.120357. URL https://www.sciencedirect.com/science/article/pii/S0959652620304042.
  13. [18]S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Computation, 9(8):1735–1780, 1997. doi: 10.1162/neco.1997.9.8.1735.DOI
  14. [19]X. Huang, Q. Li, Y. Tai, Z. Chen, J. Zhang, J. Shi, B. Gao, and W. Liu. Hybrid deep neural model for hourly solar irradiance forecasting. Renewable Energy, 171:1041–1060, 2021. ISSN 0960-1481. doi: https://doi.org/10.1016/j.renene.2021.02.161. URL https://www.sciencedirect.com/science/article/pii/S0960148121003402.
  15. [20]U. Hussan, H. Wang, J. Peng, H. Jiang, and H. Rasheed. Transformer-based renewable energy forecasting: A comprehensive review. Renewable and Sustainable Energy Reviews, 226:116356, 2026. ISSN 1364-0321. doi: https://doi.org/10.1016/j.rser.2025.116356. URL https://www.sciencedirect.com/science/article/pii/S1364032125010299.
  16. [21]X. Jiao and W. Xiao. Review of data-driven approaches applied to time-series solar irradiance forecasting for future energy networks. Energies, 18(21), 2025. ISSN 1996-1073. doi: 10.3390/en18215823. URL https://www.mdpi.com/1996-1073/18/21/5823.DOI
  17. [22]S. Katoch, S. S. Chauhan, and V. Kumar. A review on genetic algorithm: past, present, and future. Multimedia tools and applications, 80(5):8091–8126, 2021.DOI
  18. [23]P. Kumari and D. Toshniwal. Deep learning models for solar irradiance forecasting: A comprehensive review. Journal of Cleaner Production, 318:128566, 2021. ISSN 0959-6526. doi: https://doi.org/10.1016/j.jclepro.2021.128566. URL https://www.sciencedirect.com/science/article/pii/S0959652621027736.
  19. [24]D. Lew, G. Brinkman, E. Ibanez, A. Florita, M. Heaney, B.-M. Hodge, M. Hummon, G. Stark, J. King, S. A. Lefton, et al. Western wind and solar integration study phase 2. Technical report, National Renewable Energy Lab.(NREL), Golden, CO (United States), 2013.
  20. [26]B. Lim, S. Ö. Arik, N. Loeff, and T. Pfister. Temporal fusion transformers for interpretable multi-horizon time series forecasting. International Journal of Forecasting, 37(4):1748–1764, 2021. ISSN 0169-2070. doi: https://doi.org/10.1016/j.ijforecast.2021.03.012. URL https://www.sciencedirect.com/science/article/pii/S0169207021000637.
  21. [27]F. Lin, Y. Zhang, and J. Wang. Recent advances in intra-hour solar forecasting: A review of ground-based sky image methods. International Journal of Forecasting, 39(1):244–265, 2023. ISSN 0169-2070. doi: https://doi.org/10.1016/j.ijforecast.2021.11.002. URL https://www.sciencedirect.com/science/article/pii/S016920702100176X.
  22. [28]T. Lin, Y. Wang, X. Liu, and X. Qiu. A survey of transformers. AI Open, 3:111–132, 2022. ISSN 2666-6510. doi: https://doi.org/10.1016/j.aiopen.2022.10.001. URL https://www.sciencedirect.com/science/article/pii/S2666651022000146.
  23. [29]Y. Liu, H. Wu, J. Wang, and M. Long. Non-stationary transformers: Exploring the stationarity in time series forecasting. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems, volume 35, pages 9881–9893. Curran Associates, Inc., 2022. doi: 10.52202/068431-0718. URL https://proceedings.neurips.cc/paper_files/paper/2022/file/4054556fcaa934b0bf76da52cf4f92cb-Paper-Conference.pdf.DOI
  24. [31]M. J. Mayer and G. Gróf. Extensive comparison of physical models for photovoltaic power forecasting. Applied Energy, 283:116239, 2021. ISSN 0306-2619. doi: https://doi.org/10.1016/j.apenergy.2020.116239. URL https://www.sciencedirect.com/science/article/pii/S0306261920316330.
  25. [32]A. Mehdary, A. Chehri, A. Jakimi, and R. Saadane. Hyperparameter optimization with genetic algorithms and xgboost: A step forward in smart grid fraud detection. Sensors, 24(4), 2024. ISSN 1424-8220. doi: 10.3390/s24041230. URL https://www.mdpi.com/1424-8220/24/4/1230.DOI
  26. [33]T. M. Mercier, A. Sabet, and T. Rahman. Vision transformer models to measure solar irradiance using sky images in temperate climates. Applied Energy, 362:122967, 2024. ISSN 0306-2619. doi: https://doi.org/10.1016/j.apenergy.2024.122967. URL https://www.sciencedirect.com/science/article/pii/S0306261924003507.
  27. [34]C. N. Obiora, A. N. Hasan, and A. Ali. Predicting solar irradiance at several time horizons using machine learning algorithms. Sustainability, 15(11), 2023. ISSN 2071-1050. doi: 10.3390/su15118927. URL https://www.mdpi.com/2071-1050/15/11/8927.DOI
  28. [35]K. O’Shea and R. Nash. An introduction to convolutional neural networks. ArXiv, abs/1511.08458, 2015. URL https://api.semanticscholar.org/CorpusID:9398408.arxiv.org/abs/1511.08458
  29. [37]J. Peter, A. Suvedi, T. M. Hansen, and H. M. Rekabdarkolaee. Forecasting and downscaling solar irradiance using transformer models. In 2025 IEEE Kiel PowerTech, pages 1–6, 2025b. doi: 10.1109/PowerTech59965.2025.11180240.
  30. [39]M. A. K. Raiaan, S. Sakib, N. M. Fahad, A. A. Mamun, M. A. Rahman, S. Shatabda, and M. S. H. Mukta. A systematic review of hyperparameter optimization techniques in convolutional neural networks. Decision Analytics Journal, 11:100470, 2024. ISSN 2772-6622. doi: https://doi.org/10.1016/j.dajour.2024.100470. URL https://www.sciencedirect.com/science/article/pii/S2772662224000742.
  31. [40]C. Sanford, D. Hsu, and M. Telgarsky. Transformers, parallel computation, and logarithmic depth. In Proceedings of the 41st International Conference on Machine Learning, ICML’24. JMLR.org, 2024.arxiv.org/abs/2402.09268
  32. [41]R. M. Schmidt. Recurrent neural networks (rnns): A gentle introduction and overview. ArXiv, abs/1912.05911, 2019. URL https://api.semanticscholar.org/CorpusID:209324034.arxiv.org/abs/1912.05911
  33. [42]M. Sengupta, Y. Xie, A. Lopez, A. Habte, G. Maclaurin, and J. Shelby. The national solar radiation data base (nsrdb). Renewable and Sustainable Energy Reviews, 89:51–60, June 2018.DOI
  34. [43]S. Shan, V. Sreeram, C. Li, W. Dou, K. Wang, K. Zhang, and H. Wei. Investigation of transformer-based models performance on solar irradiance forecast: Empirical results and analysis. Journal of Renewable and Sustainable Energy, 17(3):036104, 06 2025. ISSN 1941-7012. doi: 10.1063/5.0254162. URL https://doi.org/10.1063/5.0254162.
  35. [44]D. Shanthi and N. Chethan. Genetic algorithm based hyper-parameter tuning to improve the performance of machine learning models. SN Computer Science, 4(2):119, 2022.DOI
  36. [45]J. Snoek, H. Larochelle, and R. Adams. Practical bayesian optimization of machine learning algorithms. In F. Pereira, C. Burges, L. Bottou, and K. Weinberger, editors, Advances in Neural Information Processing Systems, volume 25. Curran Associates, Inc., 2012. URL https://proceedings.neurips.cc/paper_files/paper/2012/file/05311655a15b75fab86956663e1819cd-Paper.pdf.arxiv.org/abs/1206.2944
  37. [46]M. Srinivas and L. Patnaik. Adaptive probabilities of crossover and mutation in genetic algorithms. IEEE Transactions on Systems, Man, and Cybernetics, 24(4):656–667, 1994. doi: 10.1109/21.286385.DOI
  38. [48]K. Sudharshan, C. Naveen, P. Vishnuram, D. V. S. Krishna Rao Kasagani, and B. Nastasi. Systematic review on impact of different irradiance forecasting techniques for solar energy prediction. Energies, 15(17), 2022. ISSN 1996-1073. doi: 10.3390/en15176267. URL https://www.mdpi.com/1996-1073/15/17/6267.DOI
  39. [49]D. van der Meer, M. Shepero, A. Svensson, J. Widén, and J. Munkhammar. Probabilistic forecasting of electricity consumption, photovoltaic power generation and net demand of an individual building using gaussian processes. Applied Energy, 213:195–207, 2018. ISSN 0306-2619. doi: https://doi.org/10.1016/j.apenergy.2017.12.104. URL https://www.sciencedirect.com/science/article/pii/S0306261917318275.
  40. [50]A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. u. Kaiser, and I. Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf.arxiv.org/abs/1706.03762
  41. [51]L. Visser, T. Alskaf, and W. van Sark. Operational day-ahead solar power forecasting for aggregated pv systems with a varying spatial distribution. Renewable Energy, 183:267–282, 2022. ISSN 0960-1481. doi: https://doi.org/10.1016/j.renene.2021.10.102. URL https://www.sciencedirect.com/science/article/pii/S0960148121015688.
  42. [53]Z. Wang, R. Wennersten, and Q. Sun. Outline of principles for building scenarios – transition toward more sustainable energy systems. Applied Energy, 185:1890–1898, 2017. ISSN 0306-2619. doi: https://doi.org/10.1016/j.apenergy.2015.12.062. URL https://www.sciencedirect.com/science/article/pii/S0306261915016359.
  43. [54]D. Waysi, B. T. Ahmed, and I. M. Ibrahim. Optimization by nature: A review of genetic algorithm techniques. The Indonesian Journal of Computer Science, 14(1), 2025.DOI
  44. [55]Q. Wen, T. Zhou, C. Zhang, W. Chen, Z. Ma, J. Yan, and L. Sun. Transformers in time series: A survey. arXiv preprint arXiv:2202.07125, 2022.arxiv.org/abs/2202.07125
  45. [57]T. Yu and H. Zhu. Hyper-parameter optimization: A review of algorithms and applications. arXiv preprint arXiv:2003.05689, 2020.arxiv.org/abs/2003.05689
  46. [58]G. Zhang, D. Yang, G. Galanis, and E. Androulakis. Solar forecasting with hourly updated numerical weather prediction. Renewable and Sustainable Energy Reviews, 154:111768, 2022. ISSN 1364-0321. doi: https://doi.org/10.1016/j.rser.2021.111768. URL https://www.sciencedirect.com/science/article/pii/S1364032121010364.
  47. [59]W. Zhang, W. Kleiber, A. R. Florita, B.-M. Hodge, and B. Mather. A stochastic downscaling approach for generating high-frequency solar irradiance scenarios. Solar Energy, 176:370–379, 2018. ISSN 0038-092X. doi: https://doi.org/10.1016/j.solener.2018.10.019. URL https://www.sciencedirect.com/science/article/pii/S0038092X1830999X.
  48. [60]H. Zhou, S. Zhang, J. Peng, S. Zhang, J. Li, H. Xiong, and W. Zhang. Informer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 11106–11115, 2021.arxiv.org/abs/2012.07436
  49. [61]T. Zhou, Z. Ma, Q. Wen, X. Wang, L. Sun, and R. Jin. FEDformer: Frequency enhanced decomposed transformer for long-term series forecasting. In K. Chaudhuri, S. Jegelka, L. Song, C. Szepesvari, G. Niu, and S. Sabato, editors, Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 27268–27286. PMLR, 17–23 Jul 2022. URL https://proceedings.mlr.press/v162/zhou22g.html.arxiv.org/abs/2201.12740
  50. [62]Y. Zhou, Y. Wang, S. Goel, and A. Zhang. Why do transformers fail to forecast time series in-context?, 2026. URL https://openreview.net/forum?id=eBCk0nXzI7.arxiv.org/abs/2510.09776

Paper details

vlnc:W_py37tb7z
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents