Abstract

Achieving the highly accurate and generic prediction of solar irradiance is arduous because solar irradiance possesses intermittent randomness and is influenced by meteorological parameters. Therefore, this paper endeavors a new combined long short-term memory network (CLSTMN) with various influence meteorological parameters as inputs. We investigated the proposed predictive model applicability for short-term solar irradiance prediction application and validated it in the real-time metrological dataset. The proposed prediction model is combined and accumulated by various inputs, incurring six individual long short-term memory models to improve solar irradiance prediction accuracy and generalization. Thus, the CLSTMN-based solar irradiance prediction can be generic and overcome the metrological parameters concerning variability. The experimental results ensure good prediction accuracy with minimal evaluation metrics of the proposed CLSTMN for solar irradiance prediction. The RMSE, MAPE, and MSE achieved based on the proposed CLSTMN one-hour-ahead prediction are,, andand for six-hour-ahead prediction are 0.0157, 0.0017, andfor sunny days, and for cloudy days, the RMSE, MAPE, and MSE achieved based on the proposed CLSTMN one-hour-ahead prediction are,, andand for six-hour-ahead prediction are 0.0176, 0.0043, and, respectively. Finally, we investigate the CLSTMN performance effectiveness by comparative analysis with well-known baseline models. The investigative study shows the surpassing prediction performance of the proposed CLSTMN for short-term solar irradiance prediction.

1. Introduction

Nowadays, much attention pays to solar energy systems because of increased energy crises and CO2 emissions. Unfortunately, we do not have consistent sunshine for 24 hours. Sometimes we have sunny and cloudy days despite the seasons. The most frequently changing tendency of solar irradiance creates a challenging task to integrate the PV system into the power system. Short-term solar irradiance prediction is aimed at predicting the solar irradiance for 30 minutes to 6 hours. The short-term prediction of solar irradiance requires making effective operational decisions, automatic generation control, energy commercialization, maintenance, scheduling, economic dispatch, and unit commitment [1, 2]. The multivariate problem and dependence of inputs can learn more effectively by the artificial neural network than by statistical and NWP-based prediction models. The recurrent neural network belongs to the feedback artificial neural network. LSTM is a variant of recurrent neural networks. A tremendous amount of interest has been received in the long short-term memory (LSTM) of time series and sequence database applications. Recently, LSTM was used for a wide range of applications [36]. The prediction model’s performance depends not only on the selection of the input but also on the model framework playing an essential role in prediction accuracy. Through the use of data-driven models, it is possible to capture the underlying mapping of solar irradiance. BRT (boosted regression trees) and other data-driven method-based solar irradiance were analyzed in [7] but suggested model error increases with the horizon. However, the computations and costs are high for the data-driven method. Prediction model validation using uncertainty quantification was carried out in [8]. By optimizing the parameters and selecting features, the predictive model accuracy improves. Using feature selection and interpretable methods tried to increase the forecasting accuracy in [9, 10], but it is a complex and high computation burden task.

Sometimes, the individual model performance is not satisfactory, which pays attraction towards an ensemble predictive model. The best way to conquer the limitation of the individual prediction model is to combine the various models into averaged models to achieve high accuracy [11]. This paper presents a novel combined long short-term memory network to predict solar irradiance in short-term horizons. The proposed model comprises six individual LSTMs with various input and framework structures. The primary aim of the proposed CLSTMN model is to improve the generalization and prediction ability.

The significant contributions of the proposed prediction CLSTMN models are described as follows: (1)A novel short-term solar irradiance prediction model is proposed using six individual input LSTMs(2)A unique combinational framework is proposed(3)Real-time actual sunny and cloudy day datasets are applied to verify the proposed CLSTMN model performance(4)The proposed framework improves the generalization and accuracy(5)The problem of input data based uncertain can overcome the use of the proposed CLSTMN(6)The proposed prediction model versatile capability proved on sunny and cloudy weather dataset based on prediction of solar irradiance for one-hour- to six-hour-ahead prediction(7)Carry out the performance comparison with other baseline prediction models

Section 1 describes the introduction and the prior works related to solar irradiance prediction discussed in Section 2. Section 3 presents the proposed combined long short-term memory network framework and mathematical modeling. Section 4 covers the experimental details, and Section 5 presents the results and discussion on sunny and cloudy days. Finally, Section 6 summarizes the conclusion, and Section 7 discusses the proposed predictive model limitations and future research.

Several short-term prediction models were developed in the field of solar irradiance prediction applications. Xiang et al. [12] carried out the persistence extreme learning machine-based solar power forecasting for the short-term horizon. Ferrari et al. [13] presented solar radiation prediction using the statistical approach and stated that ARIMA has minimum parameters compared to the AR and ARMA. de Araujo [14] investigated the WRF (Weather Research Forecasting) and LSTM performance to forecast solar radiation. A-Sbou and Alawasa [15] performed prediction of solar radiation in Mutah city with NARX (Nonlinear Autoregressive RNN with exogenous). El Alani et al. studied multilayer perceptron neural network based on global horizontal irradiance for short-term horizon [16]. Madhiarasan and Deepa [17] developed a solar irradiance forecasting model with an innovative neural network, and apt hidden neurons are identified with the use of the deciding standard. Gutierrrez-Corea et al. [18] pointed out various inputs associated with artificial neural networks based on global solar irradiance forecasting for short-term horizons. Halpern-Wight et al. [19] analyzed LSTM with one and five hidden layers for the solar forecasting application. The investigation stated that for over five hidden layers, LSTM single LSTM-based forecasting model provides the lowest errors.

Kartini and Chen [20] presented a combinational forecasting model that used k-NN (k-nearest neighbour) and BPLNN (multilayer backpropagation learning neural network) for one-hour-ahead GSI (global solar irradiance) forecasting. Mishra and Palanisamy [21] suggested RNN (recurrent neural network) based on solar irradiance forecasting for multitime horizons. Bae et al. [22] suggested K-mean clustering associated support vector machine based on one-hour-ahead prediction of solar irradiance. Complex structured hybrid prediction model requires more computation, which leads to increase the training time. We still need a reliable and robust prediction model to address the solar irradiance prediction. Although more research exists on solar irradiance prediction, a generalization issue still needs to be addressed. This paper overcomes the deficiencies of the individual LSTM models and meteorological parameters’ impact on solar irradiance. This research work used combinations of various inputs and frameworks based on the LSTM model to enhance the generalization ability for the short-term solar irradiance prediction.

Using the combination of individual long short-term memory networks with various inputs, we accomplish the following benefits than the prior predictive models: (i)By compromising variance and bias, the proposed model can reach a better generalized solution in most cases(ii)Ability to resolve underfitting and overfitting issues(iii)Network stability issue gets rid of the proposed combination approach based on CLSTMN(iv)In contrast to a single LSTM model approach, the proposed CLSTMN is an average of numerous input-associated LSTM models that can overcome the limitations and uncertainties associated with a single LSTM model(v)Occurrence of local minima is avoided(vi)Able to manage seasonal and cyclical changes(vii)The suggested model is more useful, easier to use, and more accurate in the prediction of short-term solar irradiance than the current model

3. Proposed Combined Long Short-Term Network

This paper presents a novel combined LSTM network-based prediction for the short-term solar irradiance prediction. The concept, framework, and mathematical modeling of the proposed CLSTMN are detailed in this section.

3.1. Long Short-Term Memory Network

In 1997, Hochreiter and Schmidhuber [23] devised a long short-term memory network that can overcome the vanishing gradient issue and handle the long-term dependence. Therefore, LSTM is suitable for time series prediction applications. It is a particular variant of the recurrent neural network. The CEC (constant error carousel) is used to store the long-term dependence. It is a linear unit self-connected recurrently. The LSTM network comprises a cell state and three gates: input, forget, and output. The steps incurred in the LSTM network are as follows:

Step 1. Forget gate identifies the irrelevant information from the pastime step and passes it to the cell state.

Step 2. With the help of the input gate, it updates the cell state with the new input information.

Step 3. The critical information passed to the next hidden state is determined using the output gates.

Step 4. Cell state is used to have the knowledge of the past relevant over a long time.

3.1.1. Mathematical Model of LSTM

where is the Hadamard Product, is weights of the respective gates, is the time stamp past LSTM block output, is the current timestamp input, and is the bias of the respective gates.

3.2. Combined-Long Short-Term Memory Network

Under different inputs, model architecture, and uncertainties, maintaining stable performance is the aim of generalization. The six LSTM models with various inputs and hidden neurons (framework) are used to develop the proposed model. We can overcome the uncertain irregularity present in solar irradiance with the help of atmospheric input features. Using the combinations of the LSTM model can reduce the error values and improve the network stability. The selected inputs to the proposed model are high influenced parameters on solar irradiance. We fix hidden neurons by a trial-and-error approach [24, 25] and the identified optimal hidden neurons for each individual LSTM are used for the development of the proposed CLSTMN structure. Figure 1 shows the proposed CLSTMN framework.

The proposed CLSTMN mathematical model is as follows:

Let, the number of LSTMs.

Steps of the proposed CLSTMN algorithm are as follows:

Step 1. Collect the solar irradiance and meteorological parameters for sunny and cloudy days.

Step 2. Normalize the data.

Step 3. Divide the data into training and testing.

Step 4. Design the individual LSTM models with various inputs.

Step 5. Train the designed LSTM model and predict the solar irradiance on test data.

Step 6. Average all LSTM models predict the final solar irradiance.

Step 7. Compute the evaluation metric and compare it again with the other baseline prediction models.

The proposed CLSTMN model parameters and values are as follows:

.

.

.

.

.

.

Moreover, the individual model generalization inability can be improved by averaging the various framework-based LSTM prediction models. We improved the accuracy in terms of a reduction in prediction error. The proposed model could manage the model stability and convergence.

4. Experimental Details

The proposed solar irradiance prediction approach runs on the MATLAB platform using a hp laptop with AMD Ryzen 5 3550 H processor, 8 GB RAM, 2100 Mhz, and 4 GB NVIDIA GeForce GTX 1650. Achieving the desired prediction accuracy is crucial because of solar irradiance’s randomness characteristics. This paper attempts to predict solar irradiance over a period of a few minutes to 6 hours. Various inputs and different frameworks incurred in LSTM models were used to develop the proposed model. Averaging the six individual LSTM models improved accuracy and reduced error.

4.1. Dataset and Input Parameter Details

We got the sunny day and cloud day dataset from the NOAA. The dataset was collected from the latitude 40.05° N and longitude 88.37° W during the period of 2021. The following parameters are used as inputs to the proposed CLSTMN model. (1)Solar irradiance in W/m2(2)Temperature in °C(3)Wind speed in m/s(4)Wind direction in degrees(5)Pressure in mb(6)Relative humidity in %(7)Cloud cover in Oktas

4.2. Normalization

Normalization improves the prediction performance based on the training efficiency improvement.

The actual inputs are normalized based on the Min–Max normalization. The Min–Max formulation is as follows:

where is the actual input value, is the minimum input value, and is the maximum input value.

4.3. Training and Testing Datasets

We carried out the proposed model training using a two-day data sample of 2800 and testing with 6 hours of data samples of 360. Figures 2 and 3 depict the sunny day dataset training and testing samples and cloudy day dataset training and testing samples, respectively. We validate the proposed prediction model on the sunny and cloudy day datasets.

4.4. Evaluation Metric

We used the RMSE, MAPE, and MSE as an evaluation metric to evaluate the proposed CLSTMN model performance. Stated evaluation metric formulations are as follows:

where is the total number of data samples, is the actual output, is the average actual output, and is predicted output.

5. Results and Discussion

We report the proposed CLSTMN model-based simulation results for short-term solar irradiance prediction on sunny and cloudy days. We tested the proposed CLSTMN model on a testing dataset (360 data samples of each cloudy day and sunny day), tabulating the achieved results reported in Tables 1 and 2.

5.1. Short-Term Prediction of Solar Irradiance on Sunny Days

The performance of the proposed CLSTMN model was evaluated on sunny day datasets.

The achieved results for short-term solar irradiance prediction such as one hour ahead, 2 hours ahead, 3 hours ahead, 4 hours ahead, 5 hours in Table 1 and Figures 421. Consequently, the predicted solar irradiance for sunny days is accurately matched with the actual solar irradiance, it is noted in Figures 4, 7, 10, 13, 16, and 19. Figures 5, 8, 11, 14, 17, and 20 show that the prediction on sunny days exactly matches the actual solar irradiance; thus, the prediction errors are near to zero. The predicted solar irradiance is linear matched with the actual solar irradiance, and it is clearly perceived from Figures 6, 9, 12, 15, 18, and 21.

The prediction errors for one-hour-ahead prediction are the lowest RMSE , MAPE , and MSE , and the predictions are better than other hour-ahead-based predictions. The sunny day-based results from the proposed 6-hour-ahead CLSTMN prediction model have the evaluation metrics as RMSE 0.0157, MAPE 0.0017, and MSE . The performance of the proposed CLSTMN model on the sunny day dataset based on short-term solar irradiance prediction results in better prediction accuracy on one-hour, two-hour, three-hour, four-hour, five-hour, and six-hour-ahead prediction of solar irradiance.

5.2. Short-Term Prediction of Solar Irradiance on Cloudy Days

The proposed CLSTMN model performance is further evaluated on the cloudy day dataset, and the achieved results for short-term solar irradiance prediction such as one hour ahead, 2 hours ahead, 3 hours ahead, 4 hours ahead, 5 hours ahead, and 6 hours ahead are tabulated in Table 2 and Figures 2239. From Figures 22, 25, 28, 31, 34, 37, for cloudy days, the predicted solar irradiance is matched accurately with the actual solar irradiance perceived clearly. Therefore, the prediction errors are the lowest. It was noticed in Figures 23, 26, 29, 32, 35, and 38. The prediction on the cloudy day dataset exactly matches the actual solar irradiance with the predicted solar irradiance. Thus, the linear relationship between actual vs. predicted solar irradiance for the cloudy day dataset depicts in Figures 24, 27, 30, 33, 36, and 39.

For the cloudy day dataset, the proposed CLSTMN model is based on 6-hour-ahead prediction result RMSE 0.0176, MAPE 0.0043, and MSE . One-hour-ahead prediction of solar irradiance results is more precise than the other hour-ahead-based predictions with RMSE , MAPE , and . The proposed CLSTMN model evaluation on cloudy day datasets results in better accuracy for short-term solar irradiance prediction (one to 6 hours ahead).

Sunny days have a higher solar irradiance than cloudy days. The sunny day-based prediction using the CLSTMN is competing with the cloudy day-based prediction. The proposed CLSTMN model can generalize well to the model and input uncertainty and accurately predict the actual solar irradiance with the minor evaluation metrics. Based on the analysis of the obtained result, we identify the proposed CLSTMN prediction model achieved improved prediction accuracy and generalization ability on both sunny and cloudy day datasets. Through the precise prediction of the solar irradiance using the proposed CLSTMN makes benefits and effective planning and scheduling of solar energy systems.

5.3. Comparative Analysis with the Baseline Model

In addition, the comparative analysis was carried out to prove the predictive model’s ability with the baseline models. The persistence model and other well-known predictive models (ARIMA, WRF, RNN, k-NN-BPLNN, SVM, MLP, NARX, and LSTM) were used as a baseline model to verify and compare the performance of the proposed CLSTMN prediction model. We kept the considered baseline model set parameters the same as mentioned in the respective research papers but validated on our collected datasets. For sunny and cloudy day datasets, the proposed CLSTMN model provides a consistent result for one hour, two hours, three hours, four hours, five hours, and six hours ahead the prediction of solar irradiance. Thus, the proposed CLSTMN model can accurately predict the solar irradiance that matches the actual solar irradiance on the short-term horizon.

The compared baseline predictive model was less accurately predicting the solar irradiance in short-term horizons on the considered datasets. This is clearly observed in Table 3, for a better understanding of the 3D column chart depicted in Figure 40. The baseline model-based predicted solar irradiance is not almost the same as the actual values in both datasets; hence, the performance evaluation metrics are increasing, and the accuracy decreased.

In summary, the highly accurate short-term prediction model is proposed using the combined long short-term memory network, and it makes it easy to adapt to climatic conditions and model framework variations. The proposed model-based predicted solar irradiance values are a good fit for the actual values. The proposed model can handle the changes in inputs and model framework; thus, it is well generalized to both datasets and results in the best progress than the other compared predictive models.

6. Conclusion

The amalgamation of various input and framework-based individual LSTM models may help increase the prediction accuracy and learning ability and make it suitable for general application. The relationship among various inputs is handled effectively with the proposed CLSTMN model. Six different input and framework-based LSTM model ensembles enable the proposed model to extract the solar irradiance and meteorological parameter dependencies accurately. Thus, the uncertainties about the model framework and inputs are managed effectively, which makes the better prediction results of the proposed model concerned with short-term solar irradiance prediction. The learning ability of the proposed model is highly improved, and this makes the proposed model can predict 1 hour, 2 hours, 3 hours, 4 hours, 5 hours, and 6 hours ahead of solar irradiance precisely.

In addition, sunny day and cloudy day datasets based on performance validation were performed to verify the prediction ability of the proposed CLSTMN model for 1-hour to 6-hour ahead prediction. The evaluation of sunny day- and cloudy day-based datasets shows that the proposed model can cause better performance in a greatly uncertain situation. Thus, we attain the best prediction results on sunny and cloudy days for 1-hour- to 6-hour-ahead predictions regarding the proposed CLSTMN model. The proposed CLSTMN model, compared with the baseline predictive models and result analysis, has proved the prediction effectiveness of the proposed CLSTMN model for sunny and cloudy days based on short-term solar irradiance with the lowest evaluation metrics. Risk of solar energy integration to the electric grid is eliminated through the simple and workable proposed CLSTMN short-term prediction model.

7. Proposed Predictive Model Limitations and Future Research

This model has limitations of higher computational cost than the individual model, despite its improved prediction accuracy.

The future works are as follows: (i)This paper extends the applicability of the proposed CLSTMN and further investigates by performing the multihorizon-based solar irradiance prediction(ii)The authors intend to use an optimization algorithm to identify the optimal hyperparameters of the LSTM network(iii)Develop the FPGA model, and apply the model to real-world scenarios

Data Availability

We derived these datasets from the following domain resources https://www.noaa.gov/ upon request links to access their ordered data from an FTP site and so such as third-party right authors that are not provided the data openly.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The authors express a token of gratitude to the NOAA for help with data provision.