Abstract

This paper presents a solar power modelling method using artificial neural networks (ANNs). Two neural network structures, namely, general regression neural network (GRNN) feedforward back propagation (FFBP), have been used to model a photovoltaic panel output power and approximate the generated power. Both neural networks have four inputs and one output. The inputs are maximum temperature, minimum temperature, mean temperature, and irradiance; the output is the power. The data used in this paper started from January 1, 2006, until December 31, 2010. The five years of data were split into two parts: 2006–2008 and 2009-2010; the first part was used for training and the second part was used for testing the neural networks. A mathematical equation is used to estimate the generated power. At the end, both of these networks have shown good modelling performance; however, FFBP has shown a better performance comparing with GRNN.

1. Introduction

The sun is one of the primary sources of energy for most of the natural processes such as heat, wind, and rain. The most effective conversion of sunlight into chemical energy can be seen in photosynthesis procedure. Currently human kind is using fossil fuels as their primary energy source but the fossil fuels are not an appropriate source of energy. This leads to the usage of sunlight as a renewable source of energy to produce electricity, called solar power. Moreover, solar energy is green energy and it is environmentally friendly. Photovoltaic panel and solar thermal are the main sources for electricity generation from solar energy. The prediction of power generation from solar energy is gaining considerable attention due to the increment of power generation from solar energy [1]. Numerical models have been developed to forecast weather and solar power; however, they require a powerful computing system [2, 3].

An artificial neural network assimilates human brain learning system and is able to find an input-output relationship for linear and nonlinear systems with less computational effort. This leads to the wide usage of artificial neural networks to forecast various criteria such as irradiance and temperature [4, 5]. In general, neural networks are universal approximators [6]. The original of ANN was introduced by McCulloch and Pitts [7]. Although there has been research into the prediction of some parameters such as temperature and solar radiation, there has not been comprehensive research into the power prediction. A forecasting method using ANN has been proposed for solar radiation in [8]. The power generation of photovoltaic panels depends on solar radiation, temperature, humidity, and so on [913]. These parameters are naturally variable and nonschedulable; thus, the amount of generated power is generally unknown. Feedforward back propagation (FFBP) and the general regression neural network (GRNN) have been affirmed as two effective methods in modelling and prediction by previous researchers [14]. These two models are employed for the prediction of PV output power in this research since they have shown their effectiveness compared to statistical and autoregression approaches. [15]. PV plant modelling has become an active research field in the last few years, with the development of new models based on artificial intelligence techniques [16]. Also, solar radiation forecasting methods are presented in [4, 17] and a method for solar power forecasting is discussed in [18]. On the other hand, power planning is necessary for cost efficiency of power generation in which power forecasting is an essential part [14, 19]. Some data is required in order to predict a solar panel generated power. However, sometimes such data is not available due to the lack of related databases [8]. Therefore, forecasting is required for sizing and meteorological data prediction [19, 20] to achieve an increase in the efficiency [21] and to schedule the operation of the system [18]. The artificial neural network (ANN) is widely used for solar data prediction in previous research work. AbdulAzeez [17] evaluated an artificial neural network for global solar radiation in Nigeria. Chen et al. [18] improved the neural network to forecast the power of PV panels. They mentioned that this method is accurate and efficient in the operation of a PV system. Linares-Rodríguez et al. [20] explained a multilayer perceptron feedforward neural network. These authors applied a trial process to find a suitable number of hidden layers for the prediction of daily global solar radiation. They concluded that although there are small changes in the results for a different number of hidden layers, the cost of computing is different and 25 neurons in the hidden layers is assumed as the best number. Paoli et al. [21] used a MLP to develop a methodology for solar radiation prediction. The author emphasized that the ability of an ANN for prediction is high. The application of ANN has some advantages such as the following: the mapping function in neural network is very flexible and neural network have the ability of generalizing form a limit set of data points and giving a good results at new data points [22]. Only a few describe forecasting models used to predict directly the daily energy production of the PV plant [23].

2. Background of Research

ANN [18, 21] and its related models such as FFBP [4, 18, 19, 24] and GRNN [8] are shown to be popular methods among authors. ANN is a model based on interconnected neurons to create an output by processing information based on the input. The relationship between the input and the output is based on the weight of the neurons and the input data for which the neurons have to be trained to the system [8]. Naini [25] discussed the application of three different neural networks structures such as radial basis function network, FFBP, and GRNN for prediction of the characteristics of the scour hole geometry. Vigneswaran and Dhivya [26] applied five accurate neural network models including FFBP and GRNN and concluded that GRNN has better results. The work discussed in [27] considered wind speed forecasting by using FFBP. In another work [28], the authors used FFBP to predict the velocity of crude oil. In [29] the authors applied FFBP for temperature forecasting and concluded that this model had the proper potential for complex modelling of the relation between various factors. The authors in [30] mentioned that FFBP is the best model of neural network for real-time forecasting due to least training time and fast response. In [31] the authors stated that FFBP is one of the most popular configurations of an ANN. The authors in [14] undertook load forecasting using FFBP. Zhao et al. [32] employed GRNN as one of the models employed to forecast wind power density. Some researchers have used many types of ANN for comparison and analysis of issues related to solar panels. Khatib et al. [8] applied four types of ANN for forecasting solar radiation forecasting. Their research was based on GRNN, FFNN, cascade forward back propagation neural network (CFNN), and Elman back propagation (ELMNN) scheme. Based on their research, the GRNN is better than the other models with a high level of accuracy and efficiency. One of the major advantages of a GRNN is defined as the effective relation of the model and the input [33].

3. Artificial Neural Network

3.1. Feedforward Back Propagation (FFBP)

Among the different forms of ANN, feedforward back propagation and general regression neural networks are proposed in this research. A feedforward neural network is defined as a simple type of neural network in which the information flow is in the forward direction. Corani   [34] utilized a feedforward neural network (FFNN) for air prediction in Milan. He described the structure of the FFNN in different three layers. An input layer was used for data collection, a hidden layer for data processing by neurons and the output layer for the results. Back propagation (BP) is assumed as a popular learning technique for feedforward  [12] neural networks. Therefore the FFBP is defined as a model for forecasting parameters and the diagram of prediction using FFBP shown in Figure 1.

The FFNN is defined as a type of MLP network with special input values. These values that are multiplied by their weight are led to the hidden layer by neurons. In separate work, Khatib et al. [35] developed an artificial neural network for solar prediction in Malaysia. He provided a feedforward multilayer perception model with four inputs for the calculation. The training process for the back propagation algorithm includes a few steps. First, the weights are initialized for the neurons and the measured output is compared with the desired value to calculate the error. In the second step the weights are changed based on the error. In this way, the error is propagated backward to update the weights of the previous layers [19]. Kumari et al. [15] used a neural network for temperature prediction in India.

Mellit and Pavan [4] provided a feedforward neural network for solar radiance forecasting in Italy. They proposed a multilayer perceptron (MLP) model with a back propagation training algorithm. Therefore, the 24-hour solar irradiance can be forecasted by using a MLP neural network. Ahmed and Adam [24] explored a prediction model for solar radiation by use of an artificial neural network. The ANN in that study was a feedforward back propagation model. The results proved that this method is precise and suitable for forecasting solar radiation.

3.2. General Regression Neural Network (GRNN)

A GRNN is defined as a probabilistic neural network that is definitely useful for prediction and performance comparison. GRNN is a new kind of neural network that Specht put forward in 1991 [36]. The network of a GRNN is the same as an FFNN with input, hidden, and output layers. The values from the hidden layer are led to a pattern layer. The pattern layer works as a summation layer with denominator summation and numerator summation neurons. The values of the hidden neurons are added by the denominator summation part and the values from the multiplication of the weights of the actual values of the hidden neurons are added by the numerator summation part. The output will be the division of the values from these two parts as shown in Figure 2.

4. Methodology

Meteorological data such as the temperature and solar irradiance were collected from the Malaysian Meteorological Department (MMD) that includes the daily minimum, mean average, and maximum temperature and solar irradiance starting from January 1, 2006, to December 31, 2010. All data was collected from the Kuala Lumpur International Airport (KLIA) station and the sample data for modelling of PV is shown in Table 4. However, a solar panel was not placed at this center and therefore the generated power data is not available. The solar irradiance measured is presented in units of . The most commonly used unit for solar irradiation in photovoltaic system calculations is . Thus, these data are converted according to the following equation: In order to convert the to the data values should be divided by the hours (). In this case is considered to be the time in which the solar irradiance is available. In other words, the day length (DL) is required to be substituted by in the calculation where DL can be calculated as [8] where is the latitude and δ is defined as the declination angle. The value δ is given by [8] In (3), is the number of days and for the first day of January (), the solar day is considered to be 284.

The next step is to calculate the two important parameters of solar panel which are the open circuit voltage () and the short circuit current [37]. Both of these essential parameters are a function of the solar irradiance and temperature. However, in the datasheet of the solar panel [38] which is used in this research, the and are given at two certain points of () and (). However, in modelling calculations and at different irradiance and temperatures are needed. In other words, the mathematical relation between these two parameters and the environmental factors of temperature and irradiance is required for solar panel modelling.

Accordingly the maximum power point voltage at the operating temperature and irradiance is calculated as follows: where is the voltage at the maximum power point and is the normal thermal coefficient.

The value of 0.78 is an estimated coefficient. It is estimated that the maximum power point voltage can be considered as 0.78 of the open circuit voltage at a different working point. This value is the average ratio of   to the that is calculated based on the available data in the cell data sheet. Table 1 shows the cell open circuit voltage and maximum power point voltage at different irradiance.

Finally, the power can be estimated as in the following equation: Therefore the power for the minimum, maximum, and mean temperature can be estimated based on (5).

4.1. FFBP Method

The feedforward back propagation method is used as a first neural network model for this study. The applied flowchart of FFBP is shown in Figure 3.

As shown in Figure 3, the prediction results are based on reading the testing and training data and using FFBP.

Before the training process, all the data must be normalized. Various normalization methods are used for neural networks to increase the reliability of the trained network [39]. The Min-Max normalization is applied in this research as follows: where is the normalized value and is a nonnormalized value. For this work, and .

After obtaining the result, the normalized values must become normal by using the following formula: The mean squared error (MSE) is used for evaluation of predictive power as follows [15]: Where   is a vector of the prediction and is the vector of the real values.

4.2. GRNN Method

GRNN as a probabilistic model can perform classification and regression for definite and continuous targets [8]. For the purpose of normalization, (6) and (7) are used in this model with some differences.

The values and are applied in (6) and (7). The error calculation is the same as in Section 4.1 and (8).

5. Result and Discussion

A trial for investigation of the number of nodes in the hidden layer is evaluated to find the MSE of the FFBP neural network. Table 2 represents the training MSE, testing MSE, and regression value for different numbers of hidden nodes for FFBP. In addition, a graphical visualization of MSE and regression based on the number of nodes in the hidden layer is shown in Figure 4.

The comparison between the simulated results of the FFBP and the real data for the power of the solar panel in 2010 is provided in Figures 5, 6, and 7. These figures illustrate these comparisons for January, February, and March of 2010.

The results for these three months demonstrate that the results are accurate for the FFBP model. The hidden neurons and the number of epochs in this calculation are 10 and 1000, respectively. The same comparison for one year (2010) is provided in Figure 8 with six hidden neurons and 1000 epochs.

Figure 8 shows that the differences of predicted power and real power are very low and a high level of accuracy is achieved by using FFBP. A number of hidden neurons and the number of epochs are changed to examine the result as shown in Figure 9.

Although the number of hidden layers is increased from 6 hidden neurons to 10 hidden neurons in Figure 9, the level of accuracy is very close by considering Figures 8 and 9. Figure 10 presents the regression of calculating data and the real data. As shown in this figure, the measured error is very low.

According to Figure 11 the best validation performance is at epoch 199.

GRNN network has only one free parameter as spread which is the distance of an input from a neuron’s weight [40]. Different spread values have been examined to find the best fit as shown in Table 3. The monthly measured testing data are presented in Figures 12, 13, and 14 based on a spread of 0.04.

Comparing the results of FFBP and GRNN shows that FFBP is more accurate compared with GRNN.

Figure 15 demonstrates that the applied methodology and process have been right. There are a few changes between measured and predicted power. The prediction of power using FFBP was more accurate compared to GRNN. Figure 16 provides information about variation of measured data and predicted values. The predicted values are around the real one and show the level of accuracy.

6. Conclusion

Power prediction for photovoltaic panels is needed for accurate power planning. In this paper, the generated power of a solar panel has been estimated using mathematical equations. Afterward, the meteorological data and estimated power have been used for training GRNN and FFBP. Both of these neural networks have shown good modelling performance; however, FFBP has shown a better performance compared to GRNN.

Conflict of Interests

The authors declare no conflict of interests regarding the publication of this paper.