Proceedings of NIlE 2010 Conference PERFORMANCE RANKING OF ARTIFICIAL NEURAL NETWORK LEARNING ALGORITHlVIS IN SOLAR RADIATIO!\ FORECAST D. A. Fadare", T. Olugasa and A. Falana Department of Mechanical Engineering, Faculty of Technology, University of Ibadan, Ibadan, Nigeria ABSTRACT Artificial Neural Networks (ANNs) area prormsing alternative to conventional tools in modeling and prediction of complex and non-linear parameters. However, the selection of appropriate network parameters for optimum performance pose application challenges In this study, the modeling and predictive performances of six backpropagation learning algorithms: Levenberg-Marquardt (LM), BFGS Quasi-Newton (BFG), Resilient Backpropagation (RP), Fletcher-Powell Conjugate Gradient (CGF), Variable Learning Rate Backpropagation (GDX) and Bayesian Reglarization (BR) in solar radiation forecast were investigated. Multilayer perceptron (MPL) neural network with five, ten and one nc.uronfs) in the input, hidden and output layers, respectively was designed with MATLAB® neural network toolkit and trained with the six learning algorithms using the daily global solar radiation data of Ibadan (Lat. 7.40 N; Long. 3.90 E; Alt. 227.2m), Nigeria. The network performance was ranked based on the number of iterations required for convergence, and coefficient of correlation (r-value), mean square error (MSE) and mean absolute percentage error (MAPE) between the actual and predicted values of the training and testing datasets. Results showed that the LM and BR learning algorithms are the two best algorithms to be considered for use in modeling and forecasting of solar radiation data. Keywords: Artificial neural network; Learning algorithm; Performance evaluation, Modeling and forecasting; Solar radiation. 1.0 INTRODUCTION Artificial Neural Networks (ANNs) are a prormsmg alternative to conventional tools in modeling and prediction of complex and non-linear system variables such as pattern recognition and function approximation. They are information processing paradigms inspired by biological nervous systems. ANNs, like human-being, can learn by example, associate data and recall information. As learning in biological systems involve adjustments of synaptic connections that exist between the neurons, so are ANN.; made up of simple processing units which are linked by adjustable weight connections to form structures that are able to learn relationships between sets of variables. After being sufficiently trained, ANNs can perform predictions at very high speed (Mellit et al, 2006). They are able to deal with non-linear problems such as multivariate time series prediction. However, the accuracy of the model is a function of the network parameters utilised. Hence, the selection of appropriate network parameters for optimum network performance poses great chal enges in application of ANN models . •. Correspondence author. Tel.: +234 802 3838 593; E-mail address:fadareJa@yahoo.com (D. A. Fadare) 104 UNIVERSITY OF IBADAN LIBRARY Proceedings of NIlE 2010 Conference The network designer chooses the network parameters such as topology, performance function, learning algorithm, learning rate, etc based mainly on previous experience or on iterative processes. Solar radiation forecast constitutes an essential component of weather forecast and a major design input parameter in solar energy application systems. For efficient conversion and utilization of solar energy resource, accurate, detailed and timely knowledge of the available solar radiation is required. Different ANN models with wide range of network structure and learning algorithm have been developed by many researchers and applied with varying degrees of success to modeling and forecasting of solar radiation data (Mellit et al., 2006; Elizondo et al., 1996; Al-Alawi and Al-Hinai, 1998; Fadare, 2009; Fadare and Olugasa 2009). In particular, Fadare and Olugasa (2009) reported the effect of network structure such as type and number of neurons in the input and hidden layer, and number of layers in the hidden layer on the network performance for time series forecast of daily solar radiation data. The effect of network parameters on the performance of neural network in forecasting of electricity demand has been reported by Azadeh and Behshtipour (2008), while the effect of network learning algorithm on network performance for modeling and prediction of a wide range of engineering and medical data has been reported by Demuth and Beale (2000). The results of their study showed that networks trained with different learning algorithms performed better for different datasets depending on the nature of the data. Thus, indicating thatthe selection of the best learning algorithm for network training is data specific. Some of the commonly used algorithms for function approximation model are: Hebb's rule, Hopfield law, delta rule, Gradient Descent rule, Kohonen's learning law and the backpropagation algorithm. The backpropagation learning algorithms are the most used for training the multilayer perceptron (MLP) networks. It has been shown to perform adequately in many applications (Gardner and Dorling, 1998; Foresee and Hagan, 1997). Some examples ofbackpropagation algorithms are: Batch Gradient (GD), One-step-secant Algorithm (OOS), Levenberg-Marquardt (LM), BFGS Quasi-Newton (BFG), Bayesian Regularization (BR), Resilient Backpropagation (RP), Fletcher-Powell Conjugate Gradient (CGF), Variable Learning Rate Backpropagation (GDX), etc (Demuth and Beale, 2000; MacKay, 1992a; 1992b). The backpropagation learning algorithms are supervised learning method, implemented based on the Delta rule (Gill et al., 1981). The summary of the backpropagation technique is as follows: A training sample is presented to the network; the network output is compared to the desired output from that sample; what the output should have been, and a scaling factor of how much lower or higher the output must be adjusted. to match the desired output- the local error for each neuron is calculated and the weights of each neuron is adjusted to lower the local error. There exist a considerable volume of literature on the effect of learning algorithm on network performance for modeling and prediction of wide range of datasets, However, it appears that no study has reported the effect of learning algorithm on the network performance for solar radiation forecast. The aim of this study was to investigate the effect of six backpropagation learning algorithms on modeling and predictive performances of MLP network in solar radiation forecast with a view to achieving error minimisation. 105 UNIVERSITY OF IBADAN LIBRARY Proceedings of NIlE 2010 Conference MATERIALS AND METHODS The basic steps adopted in the study are: (1) Selection of optimum network structure; (2) Design of the neural network model; (3) Collection of sample dataset; (4) Pre-processing and partitioning of data; (5) Training of the selected neural network with different learning algorithms; and (6) Testing of the neural network performance. Selection of optimum network structure The selection of the optimum network structure was based the previous study of the authors on the effect of network structure on the network performance for forecasting of solar radiation data (Fadare and Olugasa, 2009). Based on this study, the optimum network structure with 5 neurons in the input layer, 10 neurons in the single hidden layer, and 1 neuron in the output layer was selected. For this structure, daily solar radiation values for 5 previous days (t-5, t-4, t-3, t-2 and t-1) were used as input parameters to forecast the value for the current day (t). Hyperbolic tangent sigmoid transfer function 'tansig' was used in the hidden layer, while linear transfer function 'purelin' was used in the output layer. Design of the ANN model eural Network Toolbox for MATLAB® was used to design the model. The structure of the MPL network model is shown in Figure 1. ~=~~~_. M§E (te:Sti~gdalaset) e . ranking I Mea.'1 IJ Mihimum : Maximum . Standard ,,- .",' -",.:ri~)i:: . I I, II J Deviation, BFG, "• J. _~ '\C" 3 20.10 12.49 33.00 8.31 ~BR ~.;', ,rJ~)' ,.1 ,,' 1 13.06 12.13 15.02 1.35" -"-C,-G--p-t· ."" ~!'~".lL. '';'' 1 5 24.67 14.64 41.06 11.96;. . GDX ·:A:..•••· 6 48.98 16.45 117.29 46.56 ·LM ? 2 17.26 13.41 23.06 I 4.53 RP ,/'\--:f .'1 4 21.~O I 12.46 I 40.31 12.82 Similarly, the ranking of the performance of the learning algorithms based on the MAPE for the training and testing datasets are shown in Tables 6 and 7, respectively. As shown in the tables, the network trained with LM algorithm gave the lowest MAPE f r training dataset (Table 6), while BR algorithm-trained network gave the lowest MAPE for testing dataset (Table 7). The network trained with GDX algorithm has the highest MAPE for both training' and testing datasets. The LM algorithm has the lowest MSE and MAPE for the training 110 UNIVERSITY OF IBADAN LIBRARY Proceedings of NIlE 2010 Conference dataset. Thus, indicating the high modelling accuracy of the network trained with LM algorithm, while the network trained with BR algorithm with the lowest MSE and MAPE for testing dataset showed a high predictive accuracy in solar radiation forecast. Table 6: Performance ranking of the learning algorithms based on the mean absolute ercenta e error (MAPE) for the trainin dataset Table 7: Performance ranking of the learning algorithms based on the mean absolute ercentage error (MAPE) for the testin dataset CONCLUSION In this study, the modeling and predictive performances of a multilayer percetron artificial neural network trained with six backpropagation learning algorithms for solar radiation forecast were ranked based on the highest r-value and lowest MSE and MAPE values. The solar radiation data for Ibadan, Nigeria was used as case study. The network trained with the LM algorithm has the fastest speed of convergence during the training process, highest r- value and lowest values of MSE and MAPE for the training dataset. Thus, indicating the high accuracy of the LM algorithms in modeling the solar radiation data. Based on the testing dataset, the BR algorithm-trained, network has the highest r-value and the corresponding lowest values ofMSE and MAPE. These showed the superiority of the BR algorithm in predicting or forecasting of the solar radiation data compared to other algorithms investigated in this study. Hence, in terms of speed and accuracy, the LM and BR learning algorithms are the two best algorithms to be considered for use in modeling and forecasting of solar radiation data. REFERENCES Al-Alami, S.M. and H.A. Al-Hinai (1998) An ANN-based approach for predicting global radiation in locations with no direct measurement instrumentation. Renewable Energy, 14(1- 4): 199-204. 111 UNIVERSITY OF IBADAN LIBRARY Proceedings oJNIlE 2010 ConJerence Azadeh, A. and B. Behshtipour (2008) The effect of neural network parameters on ~e performance of neural network forecasting. IEEE International Conference on Industna1 Informatics (INDIN), 1498-1505. Demuth, H. and M. Beale (2000) Neural network toolbox manual. Mathworks Inc. USA. 850pp. Elizondo, D., G. Hoogenboom and R. Me Clendon (1996) Development of neural network to predict daily solar radiation. Agric. Forest Meteoro1. 71: 115-32. Fadare, D.A. and T.T. Olugasa (2009) An artificial neural network model for forecasting daily global solar radiation in Ibadan, Nigeria. Global Journal of Engineering and Technology, 2(2):123-131. Fadare, D.A. (2009) Modelling of solar energy potential in Nigeria using an artificial neural network model. Applied Energy, 86(9): 1410-1422. Fadare, D.A. (2010) The application of artificial neural networks to mapping of wind speed profile for energy application in Nigeria. Applied Energy, 87(3):934-942. Foresee, F.D. and M.T. Hagan (1997) Gauss-Newton approximation to Bayesian learning. Proceedings of the 1997 International Joint Conference on Neural Networks. Gardner, M.W. and S.R. Dorling (1998) Artificial neural networks (the multilayer perceptron) - a review of applications in the atmospheric sciences. Atmospheric Environment 32 (14/15):2627-2636. Gill, P.E., W. Murray, and M.H. Wright (1981) Practical Optimization, Academic Press, London. MacKay, D.J.C. (1992a) Bayesian interpolation. Neural Computation, 4(3): 415-447. MacKay, DJ.C. (1992b) A practical Bayesian framework for backpropagation networks. Neural Computation, 4(3): 448-472. Meliit, A., M. Benghanen and S.A. Kalogirou (2006) An adaptive wavelet network model for forecasting daily total solar radiation. Applied Energy, 83:705-722. Oyawale, F.A. (2006) Statistical methods- an introduction. International Publishers Ltd, Nigeria,213pp. 112 UNIVERSITY OF IBADAN LIBRARY