Sequence to sequence deep learning models for solar irradiation forecasting
Bhaskar Pratim Mukhoty, Vikas Maurya, Sandeep Kumar Shukla

TL;DR
This paper explores deep learning sequence-to-sequence models, especially LSTM, for short-term solar irradiation forecasting, demonstrating improved accuracy over traditional machine learning methods by incorporating spatio-temporal features.
Contribution
It introduces deep learning models for GHI prediction, highlighting the effectiveness of LSTM and the importance of spatio-temporal features for improved accuracy.
Findings
LSTM outperforms other models in GHI forecasting.
Spatio-temporal features significantly enhance prediction accuracy.
Deep learning models outperform traditional techniques like GBRT and FFNN.
Abstract
The energy output a photo voltaic(PV) panel is a function of solar irradiation and weather parameters like temperature and wind speed etc. A general measure for solar irradiation called Global Horizontal Irradiance (GHI), customarily reported in Watt/meter, is a generic indicator for this intermittent energy resource. An accurate prediction of GHI is necessary for reliable grid integration of the renewable as well as for power market trading. While some machine learning techniques are well introduced along with the traditional time-series forecasting techniques, deep-learning techniques remains less explored for the task at hand. In this paper we give deep learning models suitable for sequence to sequence prediction of GHI. The deep learning models are reported for short-term forecasting hour along with the state-of-the art techniques like Gradient Boosted Regression…
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8| T= 1 hr | T=24 hr | 24 hr avg | ||||
|---|---|---|---|---|---|---|
| Model | MAE | RMSE | MAE | RMSE | MAE | RMSE |
| FFNN-1 | 21.3 | 57.9 | 32.4 | 86.0 | 31.1 | 81.1 |
| RNN-1 | 20.9 | 59.3 | 32.7 | 87.4 | 30.9 | 83.0 |
| LSTM-1 | 20.6 | 58.5 | 31.9 | 85.3 | 30.3 | 81.1 |
| GBRT-1 | 21.5 | 58.0 | 32.7 | 82.9 | 31.3 | 79.2 |
| FFNN-17 | 17.8 | 49.6 | 31.5 | 84.7 | 30.0 | 80.2 |
| RNN-17 | 17.7 | 49.6 | 32.4 | 83.8 | 29.9 | 80.0 |
| LSTM-17 | 18.1 | 50.3 | 31.7 | 83.8 | 29.9 | 80.0 |
| GBRT-17 | 19 | 50.7 | 31.9 | 81.3 | 30.9 | 78.2 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsSPEED: Separable Pyramidal Pooling EncodEr-Decoder for Real-Time Monocular Depth Estimation on Low-Resource Settings · Sigmoid Activation · Tanh Activation · Long Short-Term Memory
Sequence to sequence deep learning models for solar irradiation forecasting
Bhaskar Pratim Mukhoty, Vikas Maurya, Sandeep Kumar Shukla
Department of CSE
*Indian Institute of Technology Kanpur
*Kanpur, India
{bhaskarm, vikasmr, sandeeps}@cse.iitk.ac.in
Abstract
The energy output a photo voltaic(PV) panel is a function of solar irradiation and weather parameters like temperature and wind speed etc. A general measure for solar irradiation called Global Horizontal Irradiance (GHI), customarily reported in Watt/meter2, is a generic indicator for this intermittent energy resource. An accurate prediction of GHI is necessary for reliable grid integration of the renewable as well as for power market trading. While some machine learning techniques are well introduced along with the traditional time-series forecasting techniques, deep-learning techniques remains less explored for the task at hand. In this paper we give deep learning models suitable for sequence to sequence prediction of GHI. The deep learning models are reported for short-term forecasting hour along with the state-of-the art techniques like Gradient Boosted Regression Trees(GBRT) and Feed Forward Neural Networks(FFNN).
We have checked that spatio-temporal features like wind direction, wind speed and GHI of neighboring location improves the prediction accuracy of the deep learning models significantly. Among the various sequence-to-sequence encoder-decoder models LSTM performed superior, handling short-comings of the state-of-the-art techniques.
Index Terms:
GHI forecast, RNN, LSTM
I Introduction
Renewable energy is gradually becoming the future of power resource driven by reasons like climate change, energy independence and security. In the year 2017, the global power share of renewables were after experiencing a growth of which remained approximately same over the last decade.[1]
Among the renewables solar irradiation is a globally popular source of energy, possibly due to it’s very low carbon foot-print, abundant availability and rapid advancement of photo-voltaic (PV) technology. [2, 3]. Several fronts of research have propelled dramatic decrease in unit cost PV panels and concentrated solar power (CSP) technology. Energy efficiency of the panels has also been improved. The combining effect have resulted in exponential decrease of cost per watt of solar power. In the year the production of solar power has increased by world-wide, although having a global power share of , the steady growth rate for past several years has projected solar power as the largest contributor of renewable energy in near-future.
However integrating solar energy to existing infrastructure brings major challenges. The traditional power infrastructure used load forecasting for efficient utility management, as there were random variability in the load and conventional power source had to produce a steady energy to compensate the same. After introduction of weather dependent source of energies like solar or wind in the grid, the weather introduced variability is significant on both demand and production side. Hence, in order forecast net demand of conventional energy at producer side, a load forecast must be accompanied by accurate prediction of the intermittent power[4]. Predicting solar power availability at a particular time is also important for power trading market as cost of energy at real-time is often several times higher than day-ahead market; moreover solar energy producers are often penalized if supplied power is outside the tolerance interval of the committed power. Thus accurate solar forecasting has become a building block for power industry along with load forecasting.
Solar forecasting essentially have two parts, first is the forecasting of the weather variables like solar irradiation, wind speed, temperature etc. and the second is the prediction of the final power output or efficiency of a photo-voltaic panel. We will focus our efforts towards improving the former, as modeling device characteristics is separately handled given accurate prediction of weather parameters and age of the device. An extensive study of existing PV forecasting methods is present in [5].
There are mainly two measurements of solar irradiation, the direct normal irradiation (DNI) measures the irradiation coming from sun in a straight line, and direct horizontal irradiation (DHI) accounts to the irradiation due to scattering coming from other directions. Together they are measured by global horizontal irradiation (GHI), the amount of energy received at unit surface area. Forecasting GHI is divided into short-term and long-term forecasting according to the lead time. Short-term forecast predicts the irradiation from an hour ahead to an week ahead while long-term forecast generally tries to predict seasonal effects on the irradiation. While the short-term forecasting is important for utility management, long-term forecasting is more relevant for revenue generation and financial planning.
In this paper we show how sequence-to-sequence deep learning models compare with respect to the state of the art models in hour ahead solar irradiation forecasting. Specifically, we implement encoder-decoder networks of Long Short Term Memory (LSTM), bidirectional LSTM, Recurrent Neural Network(RNN), GRU models and compare them with respect to existing Feed-forward neural network(FNN), Gradient Boosted Regression Trees(GBRT). We show that using state-of-art GBRT and FNN has certain short-coming which we can overcome using deep learning techniques.
Additionally, we present deep learning models which uses meteorological data of neighborings locations, that resulted in significantly improving prediction accuracy for hour ahead predictions.
II Related Work
Traditionally time series forecasting was under the scope of statistics and models like Auto Regression Integrated Moving Average (ARIMA), Seasonal ARIMA were extensively used linear models[6]. But due to possible non-linearity in the data Artifical Neural Networks[7] were introduced and subsequently hybrid ARIMA models were used[8, 9]. Random Forest based methods were reported used in forecasting.[10], however the above were outperformed by Gradient Boosted Regression Tree (GBRT) while used for forecasting problem in Global Energy Forecasting Competition 2014 [4]. A summary of related PV power forecasting models is available in [11].
If additional weather data of neighboring locations are available, it can improve forecasting accuracy of a location. Features like wind speed, temperature of the neighboring loactions were used in Vector Auto Regression (VAR) and conditional VAR models, to improve the short-term wind forecast accuracy upto hours[12, 13]. However for larger lead time spatial data do not improve accuracy as local weather data cease to become a determining factor for the same.
In deep learning encoder-decoder network using LSTM and RNN were first used for machine translation as a sequence-to-sequence learning problem, where length of the input and output sequence is not fixed. [14, 15]. However it was then applied to forecasting problems where the lengths were known, yet they are not reported to be used in solar irradiation forecasting so far.[16][17]. In this paper we implement such model both with and without neighboring location.
III Data Source and Preparation
National Renewable Energy Laboratory (NREL), US Department of Energy and Ministry of New and Renewable Energy (MNRE) India, have made available solar resource maps and related meteorological data on a -kilometer grid across India. The data was captured through weather satellites in hourly basis from the year to and is available through National Solar Radiation Data Base (NSRDB)[18]. Experiments reported in the paper are based on Kharagpur, however relative performance of the models are not location specific, as experiments with other places given similar results.
The forecasting models are trained on year data and tested on year data. Although the NSRDB data set carries several meteorological features, for single location based forecasting, only past GHI values of the target location were used to predict future GHI. However for multiple location based models wind speed, wind direction and GHI of each neighboring locations were used along with past GHI values of target location, in order to predict future GHI of target location. Below is a formal description of the problem setting:
III-1 Single location based forecasting:
Let GHI of the target location at time is denoted by . We want to predict the GHI of location after a time , called the lead time. In this setting the future irradiation after time , is imagined as a function of past irradiations with respect to current time , , where is the lag time, set to by validation.
Hence training data is a pair , where , and row of is given by,
[TABLE]
Observe, for each value we have different model learned. Hence, length of the output sequence is always one, giving . Although this is not necessary for sequence-to-sequence models, it gives us flexibility to choose different kind model for different lead time.
III-2 Multiple location based forecasting
In this setting we take GHI values of neighboring locations along with the target location, since the future GHI of a target location is likely to have dependency on the recent past GHIs of the neighboring locations. The lag of GHI feature for target location is and that of the neighboring locations is . We do not use same lag for the neighboring locations because that would result in a heavier model which would require more data to train. However, we additionally use current hour wind speed and wind direction of all locations as input. Hence each sequence of input data has a dimension , while the output is a scaler , GHI of the target location after time .
Let, and denote the wind direction and wind speed of location at the time , then training data can be represented as a pair , where , and row of is given by,
[TABLE]
The intuition behind using GHI, wind speed and wind direction of the neighboring locations is that a sudden drop in GHI at a neighboring location due to cloud cover, would affect the target location if the wind direction is towards it. Figure 1 shows the choice of neighbors in our experiments.
IV Model Design
IV-A RNN and LSTM model architecture:
Recurrent Neural Networks(RNN) are generalized neural network with a memory cell which is updated at each time step. This enables simple RNNs with a short term memory. To cater long term dependency in the input and output of the network Long Short Term Memory (LSTM) were introduced[19]. However for a machine translation problem, the length of input and output sequence does not remain fixed, so an encoder network translates the variable length input to a fixed length representation, which is then translated back to a variable length output sequence[15]. However encoder-decoder architectures are also used to capture long term dependency in the data, which is common in time series forecasting, although here the length of the sequences remains fixed.
We first construct encoder-decoder networks with simple RNN as encoder and decoder with a dense layer in between them to capture the fixed representation. The final single dimensional output goes through a dense layer since the GHIs have to be appropriately scaled. For both the single and multiple location we used the same architecture, but the number of RNN units changes according to the input dimension. Figure 2, describes both model in a single diagram. For all layer except final layer we have used activation function Scaled Exponential Linear Units (SELU), which has self normalizing property and robustness to outliers[20]. In the final dense layer we have used traditional Rectified Linear Unit (ReLU) as activation function[21].
For single location based model, the input sequence is dimensional, for multiple location it is dimensional, given lag for target location , lag for neighboring location and total number of neighbors . Observe that the representation layer has dimension twice than that of the input layer, such a architecture is found in visual network of flies, the higher dimesional representation helps in generalization.
The LSTM encoder-decoder architecture is similar, only LSTMs are used instead of RNNs as encoder and decoder. Figure 3 described the combined architecture of single and multi location based model as before. Models are trained with MAE loss function and Adam[22] optimizer upto maximum 100 epochs.
IV-B Feed Forward Neural Nets:
FFNNs are common for classification and regression task. For the task at hand we have stacked -dense layers, where the two hidden layers have dimension twice than the input layer. The final dense layer uses activation function ReLU, while hidden layes use SELU[20]. Experiments with deeper layers does not improve the forecasting accuracy. Figure 4 shows our the architecture with both single and multi location together. Models are trained with MAE loss function and Adam[22] optimizer upto maximum 100 epochs.
IV-C Gradient Boosted Regression Trees:
Adaptive Boosting(AdaBoost) algorithm was introduced as an ensemble of method, where successive models were introduced to decrease the loss by re-weighting the data points[23]. Later it was recognized as a gradient descent on a special loss function and successively generalized for other loss functions as gradient boosting algorithm[24, 25]. It works as an ensemble of models where successive weak learners are introduced to minimize existing errors in the training set. Gradient boosting on regression trees immediately propossed[26].
In the experiments we have used Huber loss function for training, as using MAE as training loss had very high RMSE. Huber is strikes a balance between these two losses, as it treats higher residual linearly and smaller residuals quadratically. The maximum tree depth was set to for single location based models and multiple location based models, as to minimize validation error.
V Results and Discussion
Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) are standard loss functions for quantifying model test performance for regression. For a target location, let be actual GHI and be predicted GHI, then the metrics are defined as follows:
[TABLE]
however in presence of corrupted data or outliers, RMSE is dominated by large deviations as errors get squared. As solar irradiation data often gets corrupted because of sensor errors or sudden change in weather, it is usually quantified using MAE, to reduce it’s susceptibility to outliers.
We compare FFNN and GBRT methods with LSTM and RNN encoder-decoder for forecasting future irradiation upto -hour for both single-location (FFNN-1, RNN-1, LSTM-1, GBRT-1) and multi-locaton (FFNN-17, RNN-17, LSTM-17, GBRT-17) based models. Here stands for the total number of locations consisting one target location and neighboring locations. Table I reports the MAE and MSE of the models in , for lead time , and a average taken over all . The minimum error in each setting is highlighted in bold.
The average performance indicates that for single location experiments LSTM minimizes the MAE () better than other models. The same can be visualized in figure 5, where LSTM is better than other models for all 24 hour. A similar trend is there for multiple locations, where LSTM and RNN both gives minimum MAE (). Figure 6 shows their detailed performance.
The advantage of using multi-location based models over single locations do not look significant when average performance over 24 hours are observed, however multi-location based model reduces GHI errors by minimum to maximum for 1 hour ahead prediction, across the models under consideration.
With respect to RMSE, GBRT gives minimum average error for both single () and multi location () based models. Figure 7 and 8 depicts their performance for all 24 hours, and it’s superior performance over other models justifies it’s place current literature. It can be seen than for initial hours, FFNN has slight edge over GBRT with respect to RMSE.
However it is worth re-iterating, that if GBRT is trained using MAE loss, it results smaller MAE but very high RMSE, which forces us to choose Huber as training loss.
VI Conclusion
We introduced deep encoder-decoder models for solar irradiation forecasting and compare it with state-of-art models. It was found that LSTM models are suitable to minimize MAE loss, also they don’t have very high RMSE error ( higher). The experimental result also shows that GBRT is not suitable for reducing both MAE and RMSE loss simultaneously. We additionally give the multi-location based deep learning models, and show performance improvement over single location based models.
Acknowledgment
The authors would like to thank Dr. Purushottam Kar, Indian Institute of Technology Kanpur for his valuable suggestions in setting up the models. This work is supported by UK-India Clean Energy Research Institute project jointly funded by Department of Science and Technology (DST), Govt. of India and Engineering and Physical Sciences Research Council (EPSRC), UK
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Bp statistical review of world energy 2018, 2018.
- 2[2] Ehsanul Kabir, Pawan Kumar, Sandeep Kumar, Adedeji A Adelodun, and Ki-Hyun Kim. Solar energy: Potential and future prospects. Renewable and Sustainable Energy Reviews , 82:894–900, 2018.
- 3[3] Global citizen reaction to the fukushima nuclear plant disaster, 2011.
- 4[4] Tao Hong, Pierre Pinson, Shu Fan, Hamidreza Zareipour, Alberto Troccoli, and Rob J Hyndman. Probabilistic energy forecasting: Global energy forecasting competition 2014 and beyond, 2016.
- 5[5] Javier Antonanzas, Natalia Osorio, Rodrigo Escobar, Ruben Urraca, FJ Martinez-de Pison, and F Antonanzas-Torres. Review of photovoltaic power forecasting. Solar Energy , 136:78–111, 2016.
- 6[6] Peter J Brockwell, Richard A Davis, and Matthew V Calder. Introduction to time series and forecasting , volume 2. Springer, 2002.
- 7[7] Alberto Dolara, Francesco Grimaccia, Sonia Leva, Marco Mussetta, and Emanuele Ogliari. Comparison of training approaches for photovoltaic forecasts by means of machine learning. Applied Sciences , 8(2):228, 2018.
- 8[8] G Peter Zhang. Time series forecasting using a hybrid arima and neural network model. Neurocomputing , 50:159–175, 2003.
