Keywords

1 Introduction

Solar photovoltaic (SPV) systems are playing important role in moving toward low-carbon energy resources. Output of solar photovoltaic depends on availability of solar irradiance and other meteorological parameters. Output power forecasting of SPV plant helps in controlling of variables in advance and optimize the capacity of energy storage system. A reliable and efficient forecasting model helps in improving grid-integrated operations, advance planning and maintenance. Prediction of solar energy becomes utmost important from the utilities point of view to balance the supply and demand for an efficient operation. Intermittent nature of power from solar energy becomes significant challenge for successful and economically efficient integration of solar power generating plants into utility grid. Hence, the prediction of SPV power output plays a significant role in sustainable power generation, power system operation and control. A large number of mathematical models for prediction of solar PV output power for cloudless sky conditions are available in the literature [1, 2]. Broad classification of short-term solar PV forecasting approaches is available in two categories, namely statistical methods and artificial intelligence methods. Some of statistical models are multiple linear regression, stochastic time series, autoregressive integrated moving average with exogenous variables (ARIMAX) and general exponential smoothing, state-space model and support vector regression (SVR). Intelligent models like artificial neural network, fuzzy inference systems, etc., are also available in the literature. The solar PV power output prediction using statistical models was not satisfactory subjected to the cloudy sky constraints. Further, fuzzy logic, neural network-based models are proposed by researchers to estimate the solar irradiance to deal with large uncertainties associated with the weather conditions [3]. In this paper, a generalized neural network (GNN)-based model for 15 min ahead solar PV output power forecasting has been developed and presented. Proposed model has the advantage of fast convergence and stronger training and learning ability. The developed model has been compared with the artificial neural network (ANN)-based model for results validation. Further, the evaluation of proposed method has been performed on the basis of root mean square error (RMSE) and mean absolute error (MAE).

2 Forecasting Model

2.1 Data Collection and Weather Classification

Data for global solar irradiance, ambient temperature, average relative humidity and past data for PV output power has been collected from Jamia Millia Islamia (JMI), National Institute of Solar Energy (NISE) and Ministry of New and Renewable Energy (MNRE), Government of India for New Delhi location at 15 min time interval and used as input for short-term solar PV output power forecasting. According to Indian weather scenario, seasonal classification of available solar power generation data is done as summer, winter and rainy seasons to achieve more granularity can be achieved to perform clustering on available historical data set. Input and output variables from the data set are not of the same order of magnitude. So, it is necessary to normalize the data sets and convert it in the same order of magnitude. Normalization of the data within the range of (0.1–0.9) is used to convert actual monthly data, and this is done to improve convergence and learning process and given below:

$$ L_{\text{s}} = \frac{{Y_{ \hbox{max} } - Y_{ \hbox{min} } }}{{L_{ \hbox{max} } - L_{ \hbox{min} } }}\left( {L - L_{ \hbox{min} } } \right) + Y_{ \hbox{min} } $$
(1)

where \( L \) is the actual solar irradiance data, \( L_{\text{s}} \) is the scaled solar irradiance data being used as input to the GNN model, \( L_{ \hbox{max} } \) is maximum value of solar irradiance data in a particular column, \( L_{ \hbox{min} } \) is minimum value of solar irradiance data in a particular column, \( Y_{ \hbox{max} } \) is normalization upper range (0.9) and \( Y_{ \hbox{min} } \) is normalization lower range (0.1).

2.2 ANN Model

The nonlinearity and complexity are the problems can be easily handled with the neural network [4, 5]. The neural network takes past data as feedback and generalizes the set of equations from previous calculations to the new ones. ANN does not require any physical link between solar power output and input parameters. Inputs to the model are global solar irradiance, ambient temperature, average relative humidity and previous PV output power. Parameters of structure of ANN are provided in Table 1. ANN model for short-term solar PV power output forecasting can be developed using the steps: input parameter selection; neural network architecture selection; training algorithm; training parameter selection. Backpropagation training algorithm for training of ANN has been used which helps in adjustment of the weight and threshold coefficients. NN training parameters are shown in Table 2. A single layer ANN structure has been used to develop the ANN-based solar PV output power forecasting model.

Table 1 Neural network structure
Table 2 Neural network training

2.3 GNN Model

GNN is used to overcome problems associated with the performance, training and testing of ANN [6, 7]. It acts as a multi-layer feed-forward network in which each node performs a particular function on incoming signals as well as a set of parameters pertaining to this node. A common neuron structure has summation or product as the aggregation function with linear or nonlinear threshold function. A summation type GNN model is shown in Fig. 1, which shows the internal structure of GNN with summing up the outputs of the sigmoidal (f1) and Gaussian (f2) characteristic functions of product (Π) and summation (\( {\Sigma}_{1} \)) neuron [8].

Fig. 1
figure 1

Generalized neural network model

The development of GNN model consisting of two phases: development phase and testing phase. The GNN model for solar PV power forecasting has been developed using same number of input and output variables as in ANN model. The output calculations can be divided into two parts: forward calculations and reverse calculations.

  1. 1.

    Forward calculations:

    1. (i)

      Output of the Ʃ A part with a sigmoidal characteristic function can be calculated as

      $$ O_{\Sigma } = \frac{1}{{1 + e^{ - \lambda s*s\_net} }} $$
      (2)

      \( s\_net =\Sigma W_{{\Sigma i}} X_{i} + X_{{o\Sigma }} \)

      \( \lambda s \) = gain scale factor of ƩA.

    2. (ii)

      Output of the Π part with a sigmoidal characteristic function can be calculated as

      $$ O_{{\Pi} } = e^{{ - \lambda p*pi\_net^{2} }} $$
      (3)

      \( pi\_net =\Pi W_{{\Pi i}} X_{i} *X_{{o\Pi }} \) and \( \lambda p \) is the gain scale factor of ΠA.

    3. (iii)

      The output of the GNN is the function of two outputs and with the weights W and (1 − W), respectively

      $$ O_{pk} = O_{\Pi } *\left( {1 - W} \right) + O_{\Sigma } W $$
      (4)
  2. 2.

    Reverse calculations

    1. (iv)

      After the calculation of output in forward mode, as in the feed-forward neural network, the output compared with the desired output to find the error. Back-propagation training algorithm is used here to train the GNN. Error of ith set of input for a single GNN is calculated by comparing the GNN output and desired output.

      $$ {\text{Error}}\; E_{i} = \left( {Y_{i} - O_{i} } \right) $$
      (5)
    2. (v)

      Sum squared error for the convergence of all the pattern is

      $$ E_{p} = 0.5\sum Ei^{2} $$
      (6)

      Multiplication factor of 0.5 has been taken to simplify the calculations.

    3. vi)

      Weights associated with the Ʃ A and Ʃ B part of the summation type GN are:

      $$ W\left( k \right) = W\left( {k - 1} \right) + \Delta W $$
      (7)

      \( \Delta W = \eta \delta_{k} \left( {O_{\Sigma } - O_{\Pi } } \right)X_{i} + \alpha W\left( {k - 1} \right) \)

      And \( \delta_{k} = \sum {\left( {Y_{i} - O_{i} } \right)} \)

    4. (vii)

      Weights associated with the Ʃ A part of the summation type GN are:

      $$ W\sum\limits_{i} {\left( k \right)} = W\sum\limits_{i} {\left( {k - 1} \right)} + \sum {W_{{{\Sigma} i}} } $$
      (8)

      \( \Delta W_{{{\Sigma} i}} = \eta \delta_{{{\Sigma} i}} X_{i} + \alpha W_{{{\Sigma} i}} \left( {k - 1} \right) \)

      And \( \delta_{{{\Sigma} j}} = \sum {\delta_{k} W\left( {1 - O_{{\Sigma} } } \right)} *O_{{\Sigma} } \)

      α :

      momentum factor for better convergence and lies between 0 and 1

      η :

      learning rate and lies between 0 and 1

    5. (viii)

      Weights associated with the Π part of the summation type GN are:

      $$ W{\Pi}_{i} \left( k \right) = W{\Pi}_{i} \left( {k - 1} \right) + \Delta W_{{{\Pi} i}} $$
      (9)

      \( \Delta W_{{{\Pi} i}} = \eta \delta_{{{\Pi} i}} X_{i} + \alpha W_{{{\Pi} i}} \left( {k - 1} \right) \)

      And \( \delta_{{{\Pi} j}} = \sum \delta_{k} \left( {1 - W} \right)*\left( { - 2*pi\_net} \right)*O_{{\Pi} } \)

The output of summation part of generalized neural network can be obtained as:

$$ O_{\Sigma } = f_{1} \left( {\sum {W_{{\Sigma i}} X_{i} + X_{{o\Sigma }} } } \right) $$
(10)

The output of product part of generalized neural network can be obtained as:

$$ O_{\Pi } = f_{2} \left( {\Pi W_{{\Pi i}} X_{i} + X_{{o\Pi }} } \right) $$
(11)

The final output of generalized neuron will be the sum of summation part and product part and can be mathematically written as:

$$ O_{i} = O_{\Sigma } *W_{\Sigma } + O_{\Pi } \left( {1 - W_{\Sigma } } \right) $$
(12)

where OΣ is output of the summation part of the neuron, OΠ is output of the product part of the neuron and W denotes weights.

3 Results and Discussions

The testing results for short-term solar power output forecasting using proposed GNN model are presented in this section and compared with ANN results. Data has been chosen and classified according to the three season types, namely summer, winter and rainy. Testing performances of developed models for winter season, summer season and rainy season are given in Figs. 2, 3 and 4, respectively. The average RMSE and percentage MAE for different seasons are given in Table 3. It is observed from Table 3 that the average values of RMSE and percentage MAE are less for GNN model as compared to ANN model. The average RMSE and percentage MAE are large for the rainy season because of the large uncertainties associated with the data.

Fig. 2
figure 2

Testing performance of ANN and GNN model for the winter season

Fig. 3
figure 3

Testing performance of ANN and GNN model for the summer season

Fig. 4
figure 4

Testing performance of ANN and GNN model for the rainy season

Table 3 Comparison of testing performances

4 Conclusion

In this paper, 15 min ahead short-term solar PV output power forecasting models based on GNN has been developed and presented. The results of ANN and GNN are compared for solar power forecasting. The performance of the model is evaluated on the basis of statistical indicators such as MAE and RMSE. It is found that GNN performs better as compared to ANN in terms of learning time and convergence.