Manuscript Offprint

arXiv:2611.07444

Two-stage residual learning for calibrated uncertainty in solar irradiance forecasts

RR Flanagan, E Kasha, PW Talbot, AS Epiny, MR Deinert

RR Flanagan 1^{1}, E Kasha 1^{1}, PW Talbot 2^{2}, AS Epiny 2^{2}, MR Deinert 1∗^{1*}

1^{1} Department of Mechanical Engineering, Colorado School of Mines

2^{2} Idaho National Laboratory

∗^{*}Corresponding author. MR Deinert, Department of Mechanical Engineering, Colorado School of Mines.

mdeinert@mines.edu

Abstract. Accurate forecasting of renewable generation requires not only point predictions but also reliable estimates of the uncertainty attached to them, particularly at extended horizons. Machine learning models are increasingly used to predict solar output, but they typically report a single value and capture the associated uncertainty poorly. The standard remedy is to train a model to predict the parameters of an assumed probability distribution directly. Here we develop an alternative two-stage method, motivated by synthetic solar signal generation, in which the forecast error is modeled separately from the expected irradiance. A first long short-term memory (LSTM) network predicts the expected global horizontal irradiance, and a second network models the distribution of the forecast error, which is added back to the mean to give both the forecast and its uncertainty. Using historical weather data from the National Solar Radiation Database and a probability integral transform evaluation, we show that explicitly modeling the error brings the predicted standard deviation markedly closer to the historical value, reducing the deviation between the two by 34.6 percent for a standalone LSTM and by 56.5 percent when the LSTM is coupled to Gaussian process regression, the most reliable of the configurations tested. Because the method models the total forecast error directly, it captures the full predictive uncertainty that matters for decisions, rather than only the model contribution that dropout-based approaches estimate.

Introduction

As the penetration of renewable generators on electrical grids increases, their variability places growing stress on grid operations [1]. Accurate forecasts of renewable generation tell operators how much compensatory generation will be needed [2,3] and support efficient bidding in electricity markets. The field has moved steadily from point forecasts toward probabilistic forecasts that report a full distribution of outcomes [4], a shift that is now well established for solar and photovoltaic power in particular [5]. Solar and wind signals have historically been predicted with statistical methods. The autoregressive moving-average model (ARMA) and its integrated extension (ARIMA) have shown promise for forecasting [6–8]. The inertia in these models makes them well suited to short horizons, but their accuracy falls as the horizon grows. Numerical weather prediction has also been used widely for wind and solar forecasting, though its computational cost can be significant [9].

Machine learning offers another route to predicting solar output [10,11]. A least absolute shrinkage and selection operator (LASSO) approach has been used to forecast solar power generation from five-minute weather data in Massachusetts [12]. Several reviews report that the best machine learning method often depends on the geographic area [13,14]. Others combine statistical and machine learning techniques. Xie and colleagues combined variational mode decomposition, deep belief networks, and ARMA to predict solar signals, and reported improvements over each method used alone [15]. Long short-term memory (LSTM) networks have been used for hour-ahead and day-ahead solar irradiance prediction and can outperform feedforward neural networks [16], and an LSTM trained partly on non-local data has been used to predict the next day of hourly irradiance from local weather forecasts [17]. Reviews of deep learning for solar forecasting find that hybrid models such as the convolutional LSTM can outperform a standalone LSTM, although the strongest results in those reviews came from notably dry, clear-sky locations [18].

Neural networks have also been applied to other natural signals. A discrete wavelet transform combined with an LSTM has outperformed wavelet combinations with regression and backpropagation networks for short-term wind power [19]. An LSTM has also outperformed a moving-average approach and a multilayer perceptron on mean square error in turbine SCADA data [20]. Whatever the forecasting approach, the uncertainty attached to a prediction is both essential and too often missing. This is a recognized problem for machine learning models generally [21]. One way to estimate uncertainty is to assume the modeled quantity is Gaussian and to train a network to predict the mean and standard deviation of that Gaussian for a given set of weather inputs [22], which gives both an expected value and a distribution. A network can also be trained to output the parameters of a richer conditional distribution, as in a mixture density network [23]. This family of methods has been used widely, including for the estimation of nuclear cross sections [24]. Gaussian process models provide another route to uncertainty [25]. Gaussian process regression has been used to predict hour-ahead solar panel output with attached confidence intervals [26]. For solar power, coupling an LSTM to a Gaussian process reduced the uncertainty in the result relative to an LSTM alone [27], and the same pairing has been applied to short-term wind speed [28]. Gaussian process models are, however, computationally expensive and scale poorly.

Despite these advances, current methods remain limited in their ability to capture uncertainty fully. Traditional machine learning often fails to account for both aleatoric uncertainty, which arises from irreducible randomness, and epistemic uncertainty, which reflects gaps in knowledge and is in principle reducible [21]. Most methods address aleatoric uncertainty by modeling noise in the data but rarely capture the model's own ignorance, so predictions can appear overconfident where data are sparse or unrepresentative [21]. Several approaches target the epistemic part directly. Monte Carlo dropout deactivates connections at random during both training and inference, producing an ensemble of stochastic forward passes whose spread estimates uncertainty [29]. Deep ensembles train several networks from different initializations and combine their predictions [30]. A single network can also be trained to output both the data noise and a measure of model uncertainty at once [31], or to return the parameters of an evidential distribution from one forward pass [32]. Each of these mainly captures one component, and the spread they report is a proxy rather than a direct measure of the total error.

Isolating the uncertainty in a prediction would allow the aleatoric and epistemic contributions to be measured together. This is difficult for time series forecasts of probability distributions, because there is usually no ground truth distribution to compare against, only single realized outcomes. Earlier work on synthetic solar signals showed that isolating and modeling the noise component, separately from the clear-sky irradiance, improves signal generation [33]. Building on that result, we combine noise modeling with machine learning for solar forecasting and compare two approaches. In the first, an LSTM predicts the parameters of a modified Gaussian for the irradiance directly. In the second, the expected value is subtracted from the ground truth to build a dataset of forecast errors, and a second LSTM predicts the distribution of that error, which is added back to the expected value to give both the forecast and its distribution. Both approaches use historical weather data from the National Solar Radiation Database [34]. The difference is that the two-stage method gives an explicit estimate of the error distribution, whereas the single-stage method gives only an implicit one. We evaluate both with the probability integral transform [35], and we extend the comparison to configurations that couple each method to Gaussian process regression. A standalone LSTM was chosen for the core comparison so that the benefit of the two-stage method could be isolated, though hybrid architectures such as the convolutional LSTM have shown promise for solar forecasting [18].

References (41)