Professional Documents
Culture Documents
a r t i c l e i n f o a b s t r a c t
Keywords: In this study, two types of solar air collectors are constructed and examined experimentally. The types are
Solar air collector called as zigzagged absorber surface type and flat absorber surface type called Model I and Model II
Thermal performance respectively. Experiments are carried out between 10.00 and 17.00 h in August and September under
ANN the prevailing weather conditions of Karabuk (city of the Turkey) for 5 days. Then, thermal performances
Levenberg–Marquardt algorithm
belongs to experimental systems are calculated by using data obtained from experiments. To estimate
thermal performances of solar air collectors an artificial neural network (ANN) model is designed. The
measured data and calculated performance values are used at the design of Levenberg–Marquardt
(LM) based multi-layer perceptron (MLP) in Matlab nftool module. Calculated values of thermal perfor-
mances are compared to predicted values. Statistical error analysis is used to evaluate results. Comparing
and statistical results demonstrate effectiveness of the proposed ANN. Also reliability of ANN and mean-
ingfulness of input variables are tested via applying stepwise regression method to the data used in
designing ANN.
Ó 2010 Elsevier Ltd. All rights reserved.
0957-4174/$ - see front matter Ó 2010 Elsevier Ltd. All rights reserved.
doi:10.1016/j.eswa.2010.07.090
M. Caner et al. / Expert Systems with Applications 38 (2011) 1668–1674 1669
Karabuk in Turkey. Forty data are obtained from each experimental All temperature measurements are carried out by using Fe-con-
system. Thus, totally 80 data are formed. Each of the data includes stant type thermocouple material which has an accuracy of ±%0.25.
eight parameters. But only three parameters are used to calculate Solar radiation density has been measured by using a pyrnometer
thermal performances. Then ANN models have been developed (Instruments haemmi messgerate solar 118). And its accuracy is
by using measured and calculated data at experiments. Total data ±%1.5. Forced circulation of air in the both systems is provided
is classified into three groups as training, validation and testing. by fans. An anemometer (0.5–40 m/s and accuracy of ±%2) is used
This ANN structure has eight input and one output variables, and on the air velocity measurement. After both system collectors are
is a form of multi-layer perceptron (MLP) include single hidden exposed to sun during the 30 min, constant air stream is given to
layer. Proposed MLP trained with Levenberg–Marquardt (LM) systems by fans.
learning algorithm is used to predict the thermal performances
of solar air collectors. Predicted and measured values of thermal 3. Calculation of solar air collector performance
performances are compared. Comparing errors are evaluated via
statistical analysis according to model type and data groups. Pre- Calculation of the solar collector efficiency according to the first
diction errors are compared with stepwise regression analysis re- law is defined as the ratio of the energy gain to the solar radiation
sults, too. incident on the collector plane (Eq. (1)) (Karsli, 2007).
Q_
gI ¼ _ c ð1Þ
2. Experimental study Qs
where Q_ c is the rate of heat transfer to a working fluid in the solar
Two different solar air collectors are constructed by using same
collector, and Q_ s the solar energy absorbed by the solar collector
properties of materials. These models are called absorbing surface
surface and is given in Eq. (2).
model (Model I) and straight surface model (Model II) and they are
shown as schematically in Figs. 1 and 2 (Gedik, 2007). Experiments Q_ s ¼ IT ðsaÞAc ð2Þ
are carried out between 10.00 and 17.00 h of August and Septem-
ber under Karabuk weather conditions (41.12° latitude. and 32.38° where IT is the rate of incidence of radiation per unit area of the
longitude) and tests were carried out for 5 days. In both experi- tilted collector surface, Ac the collector area, and sa the effective
ments tilt of collector is 40°. During the experiments, the input product transmittance–absorptance. sa represents the fraction of
and output air temperatures of the heat exchanger, water temper- the solar radiation absorbed by the collectors and depends mainly
atures in tanks, ambient temperature, surface temperature of col- on the transmittance of the transparent covers and on the absor-
lectors and solar radiation density are measured. bance of the absorbent. The effective product transmittance–
absorptance can be evaluated by using Eq. (3).
sa
ðsaÞ ¼ qG ð3Þ
1 ð1 aÞ
Eq. (1) is the results of a first law analysis of flat plate solar col-
lectors because all energy fluxes are treated equally, regardless of
their potential usefulness.
The absorption heat-transfer rate by the solar collectors, Q_ c , can
be estimated by using Eq. (4).
Q_ c ¼ m
_ a cpa ðT a;out T a;in Þ ð4Þ
and output layers is determined according to the number of input Data time
and output variable.
Tout
Secondly, the network is trained to predict an output based on
input data in the training stage. Validation vectors are used to Tin
overcome overtraining problem in this stage. Some part of the η
whole training data is put aside for the purpose of validation and Tsw
not used in training. During the training process validation error Tamb
is calculated with training error after each training epoch. When
the ANN begins to overtrain, the validation error will rise although I
the training error decreases. If the validation error continuous ris-
Ts
ing for a specified number of epochs, the training process is
stopped and the ANN parameters at the minimum validation error
point are returned (Suzuki, Ovaska, Furuhashi, Roy, & Dote, 2000).
The back propagation (BP) network is the most commonly used as Input Layer Hidden Layer Output Layer
learning algorithm and the initial connection weights of the nodes
change during the training process to minimize the overall net- Fig. 3. The architecture of ANN used for this study.
work error. With the fault of easily being trapped in local minima,
and also because of the slow convergence rate, the BP network is
only suitable for those problems which require superior stability
and accuracy. The LM method is a modification of the classic New- tained from experimental studies. Eight input variables are ob-
ton algorithm for finding the optimum solution to a minimization tained via addition of model number and measuring time of data.
problem, and is often characterized as more stable and efficient Air flow velocity is not used as input variable because of its varia-
than a BP algorithm, except that a larger memory space is needed. tion is quite small. One output variable is performance of solar air
With the development of high speed computer technology, these collector (g).
shortcomings of the LM method are no longer the trouble. So LM Total data consists of 80 samples is obtained from two experi-
network was adopted here to reduce the time of learning, and also mental collector model. Half of them belong to Model I and other
to increase the rate of searching (Yuhong & Wenxin, 2009). During half with same time input data is obtained from Model II. Using
practical application, the number of hidden layers can be one or model number input variables as 1 or 2 the data of both models
two. Number of neurons in the hidden layer/layers is mostly deter- was combined.
mined via trial and error method. But an estimating method is used Aim of the network is to predict performance of the solar air
in the study of (Kurt et al., 2008) for calculation the number of hid- collector using data of input variables. To solve this problem; the
den layer. Determining of optimal number of hidden layer and the network is trained by using Matlab neural networks module
number of neurons in layer/layers are important structural prob- (nftool). Totally, 80% of this data is used for training, 10% is used
lems of MLP. ANN toolkits of some programs such as SPSS have for cross validation and 10% is used for testing. The data for each
ability to search the optimal number via inputting a maximum class are chosen uniformly from the total data set.
number using trial and error method. To finish training process a Number of neuron in hidden layer is chosen as twenty in this
few performance criteria are designated according to training algo- study. This number is obtained via trial and error. Because of the
rithm. When the training parameters reached one of them training nftool nature hyperbolic tansig function f(x) = 1/(1 + exp(x)) is ap-
is stop. Such as the network training process is stopped when the plied for the hidden layer, and the linear transfer function (purelin)
testing error is within a desired tolerance (Kurt et al., 2008). The is used in the output layer. Input data is applied after normaliza-
algorithm used in training ANN and the type of activation function tion process between 1 and +1.
used at the output of the neuron are the mathematical differences. Thus MLP with the neuron numbers (8, 20, 1) is set up in this
Activation functions involve exponential functions and thus non- paper. It is most widely used type of neural network.
linear modeling can be achieved (Yilmaz & Atik, 2007). In the network, we used LM back propagation function. This
Finally, in the testing stage, the network is tested. Predicting function is a network training function that updates weight and
output data are obtained via using input data that are not used bias values according to LM optimization method (Iseri & Karlik,
for training stage. If experimentally obtained predicting data is ex- 2009).
isted, they are compared with one another. If the results are not Training parameters used in trainlm algorithm are shown below
satisfactory network is retrained. If the test results are good en- with their values:
ough training parameters is saved. At the end of testing stage, cal-
culation different measures of error are used to show the
effectiveness of the well trained network.
In this study, first we take a number of data set that can have an
effect on the thermal performance of the solar air collector.
The three layers network structure is shown in Fig. 3. Six input
variables are input and output of collector temperatures (Tin, Tout),
solar radiation intensity (I), stored water (Tsw), ambient and surface
temperatures (Tamb, Ts) of collector. These six variables are ob- Fig. 4. Values of MSE and R according to data groups.
M. Caner et al. / Expert Systems with Applications 38 (2011) 1668–1674 1671
Fig. 5. Regression analysis with training, validation, test and all data.
The network was trained for eight epochs with LM back propaga-
tion function and showed the following error results and correlation
coefficients as it can be seen in Fig. 4. The mean square error of
training phase is 5.42683e6, cross validation phase is 2.00269e5
and testing phase is 7.44013e6.
In Fig. 5, the dashed line is the perfect fit line where outputs and
targets are equal to each other. The circles are the data points and
colored line represents the best fit between outputs and targets.
Here it is important to note that circles gather across the dashed Fig. 6. Variation of the gradient error, l and validation error.
line, so our outputs are not far from their targets. According to
these results we can say that used MLP structure of ANN is very
And the difference of both values is shown as bar chart in Fig. 8.
well to predict performance of the two type solar air collectors.
Red bars refer to Model I and blue bars refer to Model II.1
Variation of the gradient error, value of l and validation error
The mean absolute error (MAE) value is a linear score which
are shown in Fig. 6. Also stopping of training process is shown
means that all the individual differences are weighted equally in
due to reaching minimum gradient error at epoch 8.
the average. Absolute error is the absolute value of the difference
between target values and outputs. Mean absolute error of the pro-
6. Result and discussions
posed MLP is found as 0.9879.
1.4
Experimental data
1.2
Estimated data
thermal performance
0.8
0.6
0.4
0.2
-0.2
0 10 20 30 40 50 60 70 80
samples
0.06 reliability of model. The more the value of R-square is the more
the reliability of model is. Over fitting may also increase the value
0.04 of R-square. Adjusted R-square is calculated after removing outliers
from model hence is more reliable. Therefore value of adjusted R-
square is used for comparing.
0.02
The statistical coefficient of multiple determinations is com-
puted according to Eq. (7). The value of proposed network is found
0 as 0.997.
error
SSE
-0.02 R2 ¼ 1 Pn 2 ð7Þ
i¼1 oi
-0.04
To determine the effectiveness of the proposed network step-
wise regression analysis is applied using experimentally obtained
-0.06
total data. Results of this analysis are shown in Fig. 9. Here, we
can see the meaningfulness degrees of input variables. This degree
-0.08
10 20 30 40 50 60 70 80
of meaningfulness is determined via being value of p-val below 0.5.
samples Thus meaningfulness ranking of input variables is determined as 4,
3, 7, 8 and 1. That is, it is possible to predict performance value of
Fig. 8. Bar chart of individual errors. the solar air collectors with using these meaningful variables only.
And results of RMSE and R-square values are compared with pro-
The RMSE is a quadratic scoring rule which measures the aver- posed MLP in Table 1. It is shown that error results of the ANN pre-
age magnitude of the error. Root mean square of the error (RMSE) diction are very good according to stepwise regression method.
is computed via Eqs. (5) and (6). Where di is the desired or actual The individual relative errors are computed with Eq. (8) and
value, oi is the network output or predicted value, n is the number shown as a bar chart in Fig. 10. It is seen that most of the relative
of output data (Kurt et al., 2008). According to this equation RMSE errors are between 5% and +5%, and most of them smaller than
value of the proposed network is found as 1.73%. The RMSE will al- 2%. Normalized values are used at computing relative error values.
ways be larger or equal to the MAE; the greater difference between Because of a few actual performance values are zero, there is a
them, the greater the variance in the individual errors in the sam- infinitive problem to computing relative errors of MLP. To over-
ple. The MAE and the RMSE can be used together to diagnose the come this infinitive problem normalized input and output values
variation in the errors in a set of forecasts. Both the MAE and RMSE are used to find relative errors or MLP.
are negatively-oriented scores. That is, lower values are better.
n
1X jdi oi j
X
n MRE ð%Þ ¼ 100 ð8Þ
n i¼1 di
SSE ¼ ðdi oi Þ2 ð5Þ
i¼1
1=2 The histogram of the errors is shown in Fig. 11. As it is seen,
SSE
%RMSE ¼ 100 ð6Þ over the 45% of the errors accumulate across between 4 and +1.
n
That shows our network works very well.
R-square which is also known as coefficient of determination in Because of the total data is obtained via combining the data of
statistical language it is an indicator of how well chosen factors are Model I and Model II we can achieve error analysis based on the
explaining the result. You can also treat R-square as a measure of model. Model based error analysis results are shown in Table 2.
M. Caner et al. / Expert Systems with Applications 38 (2011) 1668–1674 1673
Table 1 50
Comparison of stepwise regression and proposed MLP.
45
RMSE (%) R2
Stepwise regression 6.49 0.875 40
Proposed MLP 1.73 0.997
35
30
samples
25
25
20
20
15
15
10
10
relative error
5
5
0
0
-25 -20 -15 -10 -5 0 5 10 15 20 25
-5
% error
-10
Fig. 11. Histogram of errors in proposed MLP.
-15
-20
Table 2
Comparison of model based error analysis results.
-25
10 20 30 40 50 60 70 80
MAE SSE RMSE (%) R2 MRE
samples
Model 1 (first 40 sample) 0.9204 0.0112 1.67 0.9984 2.5549
Fig. 10. Relative individual errors of total data. Model 2 (other 40 sample) 1.0554 0.0127 1.78 0.9994 3.5793
Total data (80 sample) 0.9879 0.0239 1.73 0.9967 3.0671
Gedik, E., Kecebas, A., & Sait, E. S. (2008). Effect to the performance of different type Sozen, A., Arcaklioglu, E., & Ozkaymak, M. (2005). Turkey’s net energy consumption.
absorber plates on the solar air collectors (in Turkish). Journal of the Faculty of Applied Energy, 81, 209–221.
Engineering and Architecture of Gazi University, 23(4), 777–784. Suzuki, Y., Ovaska, S., Furuhashi, T., Roy, R., & Dote, Y. (2000). Soft computing in
Iseri, A., & Karlik, B. (2009). An artificial neural networks approach on automobile industrial applications. Springer.
pricing. Expert Systems with Applications, 36, 2155–2160. Ucar, A., & Inalli, M. (2006). Thermal and exergy analysis of solar air collectors with
Kalogirou, S. A. (2001). Artificial neural networks in renewable energy systems passive augmentation techniques. International Communication in Heat and Mass
applications: a review. Renewable and Sustainable Energy Reviews, 5, 373–401. Transfer, 33, 1281–1290.
Kalogirou, S. A. (2006). Prediction of flat-plate collector performance parameters Williams, J. R. (1983). Design and installation of solar heating and hot water systems.
using artificial neural networks. Solar Energy, 80, 248–259. New York: Ann Arbor Science Publishers.
Karim, M. A., & Hawlader, M. N. A. (2006). Development of solar air collectors for Yang, I. H., Yeo, M. S., & Kim, K. W. (2003). Application of artificial neural network to
drying applications. Energy Conversion and Management, 45, 329–344. predict the optimal start time for heating system in building. Energy Conversion
Karsli, S. (2007). Performance analysis of new-design solar air collectors for drying and Management, 44, 2791–2809.
applications. Renewable Energy, 32, 1645–1660. Yuhong, Z., & Wenxin, H. (2009). Application of artificial neural network to predict
Kurt, H., Atik, K., Ozkaymak, M., & Recebli, Z. (2008). Thermal performance the friction factor of open channel flow. Communications in Nonlinear Science
parameters estimation of hot box type solar cooker by using artificial neural and Numerical Simulation, 14(5), 2373–2378.
network. International Journal of Thermal Sciences, 47, 192–200. Yilmaz, S., & Atik, K. (2007). Modeling of a mechanical cooling system with variable
Mellita, A., & Kalogirou, S. A. (2008). Artificial intelligence techniques for cooling capacity by using artificial neural network. Applied Thermal Engineering,
photovoltaic applications: A review. Progress in Energy and Combustion 27, 2308–2313.
Science, 34, 574–632.