Abstract
Energy and climate challenges have led to significant growth in solar power generation, and because of this, smart grids are increasingly utilizing solar power. The solar power is intermittent because solar energy is mainly dependent on radiation and other atmospheric factors. To ensure the reliable economic operation of micro grids and smart grids, precise forecasting of solar radiation is crucial. Deep learning techniques are proposed in this study to model the solar radiation production. Four artificial intelligence and deep learning-based forecasting models, the fully connected artificial neural network (ANN), the convolutional neural network (CNN), the long short-term memory network (LSTM), and the bidirectional neural network (Bi-LSTM) were examined for this study. To compare the prediction accuracy of all models, three performance evaluation metrics RSME, MAE, and R2 are used. The results obtained indicate that all four methods produce reasonable estimates of solar radiation generation. As a result of RMSE, MSE, and R2, the Bi-LSTM forecasting model offers the best estimate of forecasting accuracy.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
- Solar power
- Solar radiation
- Long short-term memory
- Convolutional neural network
- Fully connected Artificial Neural Network Bi-Directional Neural Network
1 Introduction
There has been a rapid increase in energy demand in recent decades, and because of this, a major threat to our future is global warming, since it affects the natural world in harmful ways. Energy demand is one of the major players in world trade, and it is a major factor in global warming because of its dependence on fossil fuels [1]. The alternative solution to this problem is renewable energy sources, which are highly dependent on metrological conditions and, for this reason, are dynamic in nature. Several forms of renewable energy can be used to meet energy demand, including nuclear power, geothermal hydropower, wind power, and solar power. In recent years, solar power has been attracting the attention of researchers due to its abundant, renewable, and sustainable nature [2]. In addition, solar power is mainly dependent on solar radiation, temperature, humidity, and other meteorological factors. Solar power systems face new challenges as a result of these characteristics, including complexity and difficulty [3].
Accurate estimation of solar radiation is strongly associated with effective planning, management, and implementation of solar power systems. The term “solar radiation” is used to refer to “horizontal global solar radiation”. A number of studies use solar radiation to forecast solar power [4, 5]. Although other literature proposes direct solar power generation forecasting using historical values of solar power [6].
According to number of literatures, there are four types of solar power forecasting methods, namely physical, statistical, machine learning, and deep learning. Methods based on deep learning and machine learning gain advantages due to non-linearity, logical thinking like human brain and strong computer simulation [7].
A horizon for forecasting is a period of time into the future over which the forecast is desired. In order to design a forecasting model, it is necessary to select a suitable time horizon. In turn, it will help to maintain the accuracy of forecasts of solar power output at a satisfactory level. The forecasting horizon for solar power output includes very short term by one minute to 60 min, short term by 60 min to 24 h, medium term by one day to one year; and the long term by one year to five years or more [8, 9]. The purpose of every forecasting horizon is mentioned in Table 1.
Our major contributors include a literature review of solar power and solar radiation forecasting using deep learning, implementation of all four proposed deep learning methods in Python, and a comparative performance analysis based on evaluation metrics. Because of this, the paper is arranged as follows: Sect. 2 discusses different literature on solar power and irradiance forecasting using deep learning. A detailed discussion of the framework for the proposed models is provided in Sect. 3, and the experimental results are presented in Sect. 4. Finally, conclusive remarks are provided in Sect. 5.
2 Related Work
The increase in demand for renewable energy and its incorporation into the power grid creates a viable and sustainable future. The nature of renewable energy like solar is volatile and, because of this, it creates significant challenges to the secure and reliable operation of renewable energy integrated power grid [10, 11]. A machine learning model can extract and map nonlinear, complex features efficiently. To take advantage of this, machine learning-based predictions are among the most commonly used methods for making predictions [12,13,14]. In the research, an artificial neural network-based model was developed using meteorological data including humidity, temperature, pressure, and wind speed as inputs. Estimation of solar irradiation is directly related to solar power and in [15] for predicting solar irradiance, the author proposes a model based on artificial neural network and the proposed method performs better than the other prediction models.
The deep neural networks perform better in extracting features than simple neural networks, and they can solve the gradient disappearance problem more significantly than neural networks [16]. With convolutional neural networks (CNN), hidden features are extracted from data through hidden layers, and regression is performed with the final fully connected layer. With solar data measured at photovoltaic plants as input, Wang et al. developed a new hybrid prediction model based on a conventional neural network and a long short-term memory neural network [17]. A hybrid model was proposed by Zeng et al. and Ray et al. to obtain better short-term forecasting accuracy for solar power by using frequency subseries that were decomposed into different frequencies by variational mode decomposition and a convolutional neural network with long short-term memory [18, 19].
Solar irradiance is directly related to solar power generation. A time series-based forecast for short-term solar power generation is proposed by Sharadga et al. using a Long Short-Term Memory model with solar irradiance as a key input parameter [20]. Mishra et al. proposed a model for short-term solar power forecast using a long short-term memory neural network at different time horizons using metrological factors with similar characteristics as input parameters [8]. Gao et. al. used weather time series classification data as input to LSTM for short-term solar power forecasting [21]. Day ahead solar irradiation prediction is required for reliable electrical grid operation and for this historical weather data as input in the LSTM network for forecasting [22].
The LSTM and Bi-LSTM are among the best deep learning models for time series prediction, since they can handle correlations in time series better than other models. For time series analysis, the Bi-LSTM provides better accuracy and a faster learning rate due to utilizing bidirectional learning capabilities. Zhen et al. developed a prediction model using the framework of Bi–LSTM for short-term solar power output that takes solar power output time series as an input [23]. Using bidirectional LSTM, Solar power prediction is always an important part of grid scheduling and, for this, Sharadga et al. developed a model that outperforms traditional neural network models and statistical models for predicting solar power output at large scales [20].
3 Methodology
3.1 Fully Connected Neural Network
As an artificial intelligence subset, neural networks are based on the biological structure of human neurons. Neurons are simple processing elements that make up each neural network, which are organized according to a particular type of neural network. The neural networks can be trained properly to identify trends and models relating to datasets. Artificial neural networks work in two steps: learning and recalling. The weights and bias of artificial neural networks are adjusted recursively in training steps to reduce the error associated with generating output. Neural networks have input and output layers that are related, as shown in Eq. 1 [24].
where W is the weight, X is input for the neuron at layer I and Bias is \({\varnothing }_{r}\).
3.2 Convolutional Neural Network
Convolutional neural network is one type of deep learning neural network and have been implemented in many fields to achieve successful performance. It is an effective technology for extracting features automatically. In addition, they also exhibit a high degree of potential for dealing with time series, for example, automatic speech recognition and wind speed forecasting. Layers in convolutional neural networks include pooling, convolutional, and fully connected layers. The following is the summary of tasks performed by each layer.
Convolutional Layer: In a Convolutional neural network, the convolutional layer is used to generate new feature maps using convolutional kernels. As kernel weights in convolution are shared among all input maps, this operation is useful for local feature extraction.
Pooling Layer: The pooling layer reduces the dimensionality of input maps in-plane, thereby reducing the number of parameters that can be learned and reducing the probability of overfitting. Pooling can take different forms, such as average and maximum pooling.
Excitation Layer: As the final layer of the convolutional neural network, the fully connected layer functions as a “classifier.” Every neuron between two layers is connected [17].
3.3 Long Short-Term Memory Neural Network
Hochreiter and Schmidhuber analyzed and the solved vanishing gradient problem for prediction using time series data [25]. An LSTM is an upgraded version of recurrent neural network that solves the problem of long-term dependency of past information and gradient vanishing. As shown in Fig. 1. LSTM has forward propagation memory blocks for information.
Memory cell, input, forget, and output gates are the core elements of the long short-term memory network. As in Fig. 1 the input gates are (X1,…Xt), and the output gates are (H1,…Ht) [26].
3.4 Bi-Directional Long Short-Term Memory
In Bi-directional Long Short-Term Memory (Bi-LSTM), the network is not only connected to previous generations, but to potential future generations as well. Bi-directional long short-term memory (Bi-LSTM) is characterized by two time directions. In comparison to LSTM, Bi-LSTM has more learning capabilities. Previous and future information uses as inputs in Bi-LSTM. The backward and forward layers in Bi-LSTM are used to input information to every hidden layers. The α activation function is used to calculate the output of the Bi-LSTM network [27].
3.5 Performance Measures
Three accuracy performance indices, Mean Squared Error (MSE), Root Mean Square Error (RMSE), and coefficient of determination (R2), were utilized to assess the effectiveness of the suggested model for the short-term forecast [28]. The following are brief descriptions of these indices.
The RMSE is a measure of the variance of prediction errors in a sample. The difference in values indicates how far apart errors are, i.e., a higher value indicates a wider error spread. To calculate the RMSE value, use the following Eq. 2
Mean squared error (MSE) is used to measure the error distribution. For forecast f and target t using N steps use the following Eq. 3.
\({R}^{2}\) is a measurement that gives the information about the accuracy of a model with training and testing data.
4 Experimental Analysis
The required metrological data for research is downloaded from [29]. The time series dataset contains 11 variables with a resolution of 5 min, including pressure, temperature, radiation, wind speed, direction, and humidity. A total of 327,00 measurements were selected in the four months from September to December 2016 as part of the experiment.
As part of the data preprocessing step, it is always important to select input parameters for proposed models. A correlation coefficient was first used to find correlation indexes for parameters associated with solar radiation. The correlation coefficient index values are computed using the Pearson correlation coefficient. Table 2 shows the influential promoters. Based on Table 2, wind speed, pressure, and temperature are the most influential parameters.
The datasets must then be prepared for training and testing. As part of the standardization process, the dataset is prepared so that it fits better and the deviations are kept as low as possible. By removing the mean from the data and scaling it to unit variance, the standard scaler can be used to achieve this task. 80% of the data is used for training and the remaining 20% is used for testing.
Based on simulations, the effectiveness of deep learning models in this study, including fully connected neural networks, CNN, LSTM, and Bi-LSTM, was evaluated. We determine the error parameters of the proposed deep learning models based on trial and error. Table 3 depicts the parameters of various deep learning models. The epoch for training and validation is 100 for each deep learning model for this paper.
The values of RMSE, MSE, and R2 are determined for each model and are shown in Table 4. Our findings show that the Bi-LSTM forecasting model performs better than other techniques for forecasting short-term solar power. In all forecasting models, the Bi-LSTM model demonstrates a lower value of RMSE, MSE, and higher value of R2 than the other models. Accordingly, the MSE of the Bi-LSTM model is 0.05121, which is best among CNN, LSTM, and Fully Connected Neural Network respectively, at 0.07883, 0.07102, 0.06431, and 39,744.4. Additionally, the Bi-LSTM model's RMSE is lower than that of other forecasting models. According to the forecasting results, Bi-LSTM outperforms the other models even if all of them have acceptable forecasting abilities.
Figure 2 shows a comparison between observed solar radiation and predicted solar radiation for CNN, LSTM, Bi-LSTM, and fully connected neural network.
As per Fig. 1 it shows that the convolutional neural network gives some negative results when it comes to predicting the output. By comparison, the fully connected neural network predicts different outcomes from what is expected. It is almost identical between the expected and predicted output values for LSTM and Bi-LSSTM, but in Bi-LSTM it is more similar than LSTM.
5 Conclusion
Future prospects for sustainable solar power are very promising. When constructing a model for forecasting, accuracy, and stability should be taken into account. Therefore, it is necessary to create an accurate and precise short-term solar energy forecasting technique. A comparison of deep learning-based forecasting approaches is presented in this paper, using RMSE, MSE, and R2 error metrics to assess their forecasting performance. By using RMSE, MSE, and R2 values, the deep learning model Bi-LSTM produces fewer statistical performance errors. In light of the numerical experimental results and analysis, the BI-LSTM model has a good degree of accuracy and precision. In this study, deep learning models were used to forecast solar radiation output. This domain will therefore be subject to further study in the future.
References
Poudyal R, Loskot P, Nepal R, Parajuli R, Khadka SK (2019) Mitigating the current energy crisis in Nepal with renewable energy sources. Renew Sustain Energy Rev 116:109388
Sobri S, Koohi-Kamali S, Rahim N (2018) A Solar photovoltaic generation forecasting methods: a review. Energy Convers Manage 156:459–497
Li J, Ward J, Tong J, Collins L, Platt G (2016) Machine learning for solar irradiance forecasting of photovoltaic system. Renew Energy 90:542–553
Dong Z, Yang D, Reindl T, Walsh WM (2014) Satellite image analysis and a hybrid ESSS/ANN model to forecast solar irradiance in the tropics. Energy Convers Manage 79:66–73
Gao B, Huang X, Shi J, Tai Y, Zhang J (2020) Hourly forecasting of solar irradiance based on CEEMDAN and multi-strategy CNN-LSTM neural networks. Renew Energy 162:1665–1683
Lin KP, Pai PF (2016) Solar power output forecasting using evolutionary seasonal decomposition least-square support vector regression. J Clean Prod 134:456–462
Voyant C, Notton G, Kalogirou S, Nivet M, Paoli C, Fouilloy F (2017) Machine learning methods for solar radiation forecasting: a review. Renew Energy 105:569–582
Mishra M, Dash PB, Nayak J, Naik B, Swain SK (2020) Deep learning and wavelet transform integrated approach for short-term solar PV power prediction. Measurement 166:108250
Jordehi A (2018) How to deal with uncertainties in electric power systems? A review. Renew Sustain Energy Rev 96:145–155
Pan M, Li C, Gao R, Huang Y, You H, Gu T, Qin F (2020) Photovoltaic power forecasting based on a support vector machine with improved ant colony optimization. J Clean Prod 277:123948
VanDeventer W, Jamei E, Thirunavukkarasu GS, Seyedmahmoudian M, Soon TK, Horan B, Mekhilef S, Stojcevski A (2019) Short-term PV power forecasting using hybrid GASVM technique. Renew Energy 140:367–379
Yagli GM, Yang D, Srinivasan D (2019) Automatic hourly solar forecasting using machine learning models. Renew Sustain Energy Rev 105:487–498
Mellit A, Sağlam S, Kalogirou SA (2013) Artificial neural network-based model for estimating the produced power of a photovoltaic module. Renew Energy 60:71–78
Chen C, Duan S, Cai T, Liu B (2011) Online 24-h solar power forecasting based on weather type classification using artificial neural network. Sol Energy 85(11):2856–2870
Yadav AK, Malik H, Chandel SS (2015) Application of rapid miner in ANN based prediction of solar radiation for assessment of solar energy resource potential of 76 sites in Northwestern India. Renew Sustain Energy Rev 52:1093–1106
Shi C, Pun CM (2018) Superpixel-based 3D deep neural networks for hyperspectral image classification. Pattern Recogn 74:600–616
Wang K, Qi X, Liu H (2019) A comparison of day-ahead photovoltaic power forecasting models based on deep learning neural network. Appl Energy 251:113315
Zang H, Cheng L, Ding T, Cheung KW, Wei Z, Sun G (2020) Day-ahead photovoltaic power forecasting approach based on deep convolutional neural networks and meta learning. Int J Electr Power Energy Syst 118:105790
Ray B, Shah R, Islam MR, Islam S (2020) A new data driven long-term solar yield analysis model of photovoltaic power plants. IEEE Access 8:136223–136233
Sharadga H, Hajimirza S, Balog RS (2020) Time series forecasting of solar power generation for large-scale photovoltaic plants. Renew Energy 150:797–807
Gao M, Li J, Hong F, Long D (2019) Day-ahead power forecasting in a large-scale photovoltaic plant based on weather classification using LSTM. Energy 187:115838
Qing X, Niu Y (2018) Hourly day-ahead solar irradiance prediction using weather forecasts by LSTM. Energy 148:461–468
Zhen H, Niu D, Wang K, Shi Y, Ji Z, Xu X (2021) Photovoltaic power forecasting based on GA improved Bi-LSTM in microgrid without meteorological information. Energy 231:120908
Gupta Y, Saraswat A (2021) Machine learning techniques for short-term forecasting of wind power generation. In: Hassanien A, Bhatnagar R, Darwish A (eds) Advanced machine learning technologies and applications. AMLTA 2020. Advances in intelligent systems and computing, vol 1141. Springer, Singapore
Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput 9(8):1735–1780
Peng T, Zhang C, Zhou J, Nazir MS (2021) An integrated framework of Bi-directional long-short term memory (BiLSTM) based on sine cosine algorithm for hourly solar radiation forecasting. Energy 221:119887
Singla P, Duhan M, Saroha S (2021) An ensemble method to forecast 24-h ahead solar irradiance using wavelet decomposition and BiLSTM deep learning network. Earth Sci Inf 15(1):291–306
Luo X, Zhang D (2022) An adaptive deep learning framework for day-ahead forecasting of photovoltaic power generation. Sustain Energy Technol Assess 52:102326
Munawar U, Wang Z (2020) A framework of using machine learning approaches for short-term solar power forecasting. J Electr Eng Technol 15(2):561–569
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Singh, P.K., Saraswat, A., Gupta, Y., Goyal, S.K., Gupta, Y. (2024). A Comparative Study of Deep Learning Methods for Short-Term Solar Radiation Forecasting. In: Goyal, S.K., Palwalia, D.K., Tiwari, R., Gupta, Y. (eds) Flexible Electronics for Electric Vehicles. FLEXEV 2022. Lecture Notes in Electrical Engineering, vol 1065. Springer, Singapore. https://doi.org/10.1007/978-981-99-4795-9_53
Download citation
DOI: https://doi.org/10.1007/978-981-99-4795-9_53
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-99-4794-2
Online ISBN: 978-981-99-4795-9
eBook Packages: EnergyEnergy (R0)