Professional Documents
Culture Documents
Energy
journal homepage: www.elsevier.com/locate/energy
a r t i c l e i n f o a b s t r a c t
Article history: ANN (artificial neural network) modeling is adopted along GA (genetic algorithm) optimization method
Received 11 April 2013 in order to investigate spray behavior as function of nozzle and engine variant parameters such as crank-
Received in revised form angle, nozzle tip mass flow rate, turbulence, and nozzle discharge pressure. Spray quality is measured in
18 April 2014
SMD (Sauter mean diameter) and spray liquid tip penetration prospective. Experimental data were used
Accepted 4 May 2014
at limited engine condition and elsewhere requisite data was acquired with the aid of curve fitting and
Available online xxx
extrapolation of CFD (computational fluid dynamics) numerical simulation results. Engine crank-angle,
vapor mass flow rate, turbulence, and nozzle outlet pressure were taken as input layer while spray
Keywords:
Artificial neural network
penetration and SMD were used as output layer. It is found out that LevenburgeMarquardt training
Diesel engine algorithm has the least mean square error for ANN and ANN-GA (artificial neural network-genetic al-
Group-hole injector gorithm) at 24, 30 neurons in hidden layer with the amount of 0.8994, 0.3348, respectively. The coef-
GA (genetic algorithm) ficient of determination (R2) for penetration equals 0.994 whereas SMD yields lower amount of 0.992. By
Spray application of GA to optimize the network's interconnecting weights, R2 values have been enhanced to
0.999 for SMD and to 0.998 for penetration (both values are close to unity). Results indicate that the
ANN-GA improved the spray specification modeling simply and with acceptable accuracy.
© 2014 Elsevier Ltd. All rights reserved.
http://dx.doi.org/10.1016/j.energy.2014.05.006
0360-5442/© 2014 Elsevier Ltd. All rights reserved.
Please cite this article in press as: Taghavifar H, et al., Diesel engine spray characteristics prediction with hybridized artificial neural network
optimized by genetic algorithm, Energy (2014), http://dx.doi.org/10.1016/j.energy.2014.05.006
2 H. Taghavifar et al. / Energy xxx (2014) 1e9
although great deal of work has been spent to evaluate the spray
Nomenclature features, the literature is poor regarding spray quality prediction
with hybridized ANN-GA approach as a useful approximation tool
ANN Artificial neural network to reduce computational time. Note that the majority of in-
ASOI After Start of injection vestigations are dedicated to ANN utilization as to explore engine-
CFD Computational Fluid Dynamics out emission and performance indices [18]. To this end, a thor-
CA Crank angle ough study was carried out in order to model spray evolution
GDX Gradient descent with momentum and adaptive based on the effective input variables such as CA, outlet mass flow
learning rate rate from nozzle exit tip, discharge pressure, and turbulence ki-
GA Genetic Algorithm netic energy.
LM Levenberg-Marquardt
MSE Mean squared error 2. Artificial neural network
RP Resilient propagation
R2 Determination coefficient (fraction of variance) An aggregate 468 data of group-hole nozzles are available each
SCG Scaled conjugate gradient consisted of four input parameters (i.e. crank-angle, out-mass flow,
SMD Sauter mean diameter pressure, and turbulence) forming four neurons in the first layer.
Note that the hidden layer can be varied by number of neurons,
contrary to the output layer, which contains two neurons, namely
Cay et al. [10] concluded that powerful learning process of ANN can penetration and SMD (Sauter mean diameter). For group-hole
well predict CO, HC, and BSFC of SI (spark ignition) engine. Other configuration, different networks were developed. Datasets in the
investigations have been focused on the engines fueled with bio- network were shuffled into three different sets of training, valida-
blended fuels that are used to improve the engine performance tion, and testing phases, which were randomly partitioned to 65%,
[11,12]. Moreover, Togun et al. [13] used artificial neural network in 10%, and 25%, respectively.
an attempt to predict the gasoline engine's torque and BSFC. A feed-forward with back-propagation algorithm was selected as
Group-hole injector layout was used in this study for simulation the network assessments function due to its documented ability in
purpose. Experimental data acquisition is performed at few typical dealing with great deal of stochastic problems. Topological config-
engine conditions due to difficulty in dealing with injector micro- uration of the network is a fundamental task in modeling since
metric dimension. Other dataset were obtained using CFD increasing number of hidden layers may increase the system effi-
(computational fluid dynamics) simulation methodology, curve ciency, however, may lead to over-fitting drawback, which decreases
fitting technique, and extrapolation. Required experimental setup the predictability as well as imposing the computational complexity.
and operational conditions are provided in Gao et al. investigation Thus, multilayered perceptron neural network with 4-x-2 architec-
[14]. The ANN modeling was exploited since the network applica- ture (wherein x typifies the number of neurons in the hidden layer
tion prevails to mathematical and numerical simulation in terms of changed from one to thirty) was chosen noting that the attempt is
reliability, accuracy, and simplicity when dealing with nonlinear put on finding the optimum number of neurons in the hidden layer.
and complex problems [11,15,16]. To achieve the best network structure, various training functions
The back-propagation algorithm is known as the most compe- were also tested and tried. For deletion of the effect of randomly
tent algorithm for multi-layered perceptron feed-forward net- chosen weights and biases by the network, implementation of each
works. The simplest implementation of back-propagation set was carried out fifty times and then the developed network with
technique updates the network weights and biases in the direction the minimum MSE (as the network quality index) was considered.
of more rapid decrement of the performance function, the negative MSE and coefficient of determination, R2, are as given:
of the gradient. The iteration can be expressed as following:
1X n 2
MSE ¼ Y Yj (2)
Xkþ1 ¼ Xk lr cg (1) n i¼1 i
Please cite this article in press as: Taghavifar H, et al., Diesel engine spray characteristics prediction with hybridized artificial neural network
optimized by genetic algorithm, Energy (2014), http://dx.doi.org/10.1016/j.energy.2014.05.006
H. Taghavifar et al. / Energy xxx (2014) 1e9 3
Table 2
Experimental operation condition and testing specifications (Ref. [14]).
Please cite this article in press as: Taghavifar H, et al., Diesel engine spray characteristics prediction with hybridized artificial neural network
optimized by genetic algorithm, Energy (2014), http://dx.doi.org/10.1016/j.energy.2014.05.006
4 H. Taghavifar et al. / Energy xxx (2014) 1e9
Fig. 2. (a). Penetration variation vs. CA for different discharge pressures. (b). SMD variation vs. CA for different discharge pressures.
decreases and spray further traverse into cylindrical chamber. Fig. 2 variation with respect to chamber pressure. Fig. 3a indicates lower
also shows discharge injection pressure impact on penetration and spray penetration when higher discharge pressure was applied in
SMD. As seen with pressure increase, both penetration and SMD spraying chamber due to lower spray droplet diffusion in higher gas
decrease. Increasing discharge pressure leads to gas resistance in density. Fig. 3b shows the overall SMD reduction when higher in-
vessel against injected fuel and subsequently better liquid jet at- jection discharge pressure was applied in the spray injection
omization was achieved, thereby decrease of droplet diameter was chamber, although a slight SMD increase was observed during
resulted. Fig. 3 illustrates SMD and liquid spray penetration 1e1.8 MPa discharge pressure increment.
Please cite this article in press as: Taghavifar H, et al., Diesel engine spray characteristics prediction with hybridized artificial neural network
optimized by genetic algorithm, Energy (2014), http://dx.doi.org/10.1016/j.energy.2014.05.006
H. Taghavifar et al. / Energy xxx (2014) 1e9 5
Fig. 3. (a). Penetration vs. discharge pressure after steady state injection is established at 3 ms ASOI. (b). SMD vs. discharge pressure after steady state injection is established at 3 ms
ASOI.
The objective of the current study is to demonstrate ANN of MSE. The minimum mean squared error values of each training
capability to predict spray characteristics in terms of SMD and trend was obtained to be 0.8894, 3.104, 3.541 and 4.084 for LM, SCG
penetration when treated with genetic algorithm. Fig. 4 implies (scaled conjugate gradient), RP (resilient propagation), GDX
that increasing neurons number in hidden layers for all training (gradient descent with momentum and adaptive learning rate)
algorithms caused the overall mean square error reduction. An algorithms at 24, 22, 25, 10 number of neurons in hidden layer,
optimum ANN structure was found to be 4-24-2 for LM (Lev- respectively (Fig. 4).
enbergeMarquardt) training algorithm since the lowest MSE of The equation can be generalized by learning a trend between
0.8894 is exhibited for LM training function together with 24 available data points of spray penetration and SMD based on the
neurons in hidden layer. R2 estimation is analyzed at the lowest rate time evolution (CA), outlet mass flow rate, discharge pressure, and
Please cite this article in press as: Taghavifar H, et al., Diesel engine spray characteristics prediction with hybridized artificial neural network
optimized by genetic algorithm, Energy (2014), http://dx.doi.org/10.1016/j.energy.2014.05.006
6 H. Taghavifar et al. / Energy xxx (2014) 1e9
Fig. 4. Mean squared error vs. number of neurons in hidden layer for different training algorithms.
turbulence. Under any iteration of ANN algorithm, the network The regression analysis is given in scatter plots denoting the
tries to correct the developed formulation for SMD and penetration correspondence of desired outputs between the network pre-
outputs, thus closer assessment can be obtained in relation to the dictions results and experimental values for both test and train
experimental data. portions. As seen in Fig. 5a, b at initial time during spray injection,
Fig. 5. (a). The ANN prediction for penetration vs. experimental values for test partition. (b). The ANN prediction for penetration vs. experimental values for training partition. (c).
The ANN prediction for SMD vs. experimental values for testing period. (d). The ANN prediction for SMD vs. experimental values for training period.
Please cite this article in press as: Taghavifar H, et al., Diesel engine spray characteristics prediction with hybridized artificial neural network
optimized by genetic algorithm, Energy (2014), http://dx.doi.org/10.1016/j.energy.2014.05.006
H. Taghavifar et al. / Energy xxx (2014) 1e9 7
Fig. 6. MSE values for different ANN-GA network training with respect to number of neurons in hidden layer.
the correspondence between modeled ANN and experimental partition. Accordingly, the highest discrepancy from the fitting line
values are poor. With spray penetration at subsequent times and occurs at 0.23 ms ASOI (after start of injection) equal to 27.6% in
spray stabilization, the network performs with higher accuracy in testing portion. According to Fig. 5c and d, the highest deviation
prediction. The highest deviation range from the fitting line in range from the fitting line of SMD happens within 34.5e90.56 mm
terms of penetration was observed during the initial penetration of for testing. Furthermore, the highest discrepancy for SMD occurred
10.68e26.29 mm for testing and 6.58e26.74 mm for training at 0.68 ms ASOI equal to 23.6% from the corresponding
Fig. 7. (a). The ANN-GA prediction for penetration vs. experimental values for test partition. (b). The ANN-GA prediction for penetration vs. experimental values for training
partition. (c). The ANN-GA prediction for SMD vs. experimental values for testing period. (d). The ANN-GA prediction for SMD vs. experimental values for training period.
Please cite this article in press as: Taghavifar H, et al., Diesel engine spray characteristics prediction with hybridized artificial neural network
optimized by genetic algorithm, Energy (2014), http://dx.doi.org/10.1016/j.energy.2014.05.006
8 H. Taghavifar et al. / Energy xxx (2014) 1e9
experimental value. Higher discrepancies from the fitting line have scientific research is proven. Current study's ANN structure is
been occurred for lower penetration and higher SMD data-points consisted of four input layers, a single hidden layer and two output
associated with the initial spray injection period. The highest tur- layers. SMD and penetration features of diesel spray were predicted
bulence amount and the stochastic behavior of fluid flow at primary through four sets of data processing elements including CA, injector
fuel injection caused the poor modeling ability of the network. The discharge pressure, injector outlet mass flow rate, and turbulence.
results, however, indicate that the selected input parameters Data gathering is achieved by experimental data, extrapolation
outperform when dealing with SMD and penetration at late injec- from a graph, curve fitting, and CFD simulation. R2 values are very
tion time coinciding with stabilized flow establishment. The tur- close to unity for testing and training data. Maximum determina-
bulence parameter takes effect during the late injection when tion coefficient was designated to penetration training period equal
secondary breakup is initiated; hence, more powerful model based to 0.994 and 0.999 for ANN and ANN-GA, respectively. Lower MSE
on effective input variables is able to generate spray characteristics rate in network modeling demonstrates that the network structure
with less error propagation. As shown in Fig. 7, the GA acts upon the is able to predict accurately. The lowest amount of error is achieved
high deviation range of data-points generated by ANN and by by using LM training algorithm. Every neural network modeling
correcting the network results, maps the scatter plot points on the can lead to an optimization problem where its weights have to be
unity slope line. The optimization by GA is through handling the such optimized for the best efficiency of network. GA optimization
allocated weights for turbulence during early spray injection period in current investigation yielded 62.77% MSE reduction. The novelty
that regulates the importance of each parameter at any spray in- of research covers the new horizon of spray quality prediction with
jection time. It was shown that determination coefficient for the the aid of ANN-GA modeling successfully.
test and train phasing are close to unity (an excellent indicator of
ANN's predictive merit). In the training period, for SMD and
penetration, the mean square error was within the range of References
0.8894e6.933. A general conclusion can be drawn from Fig. 5;
penetration modeling is more accurate than SMD results. This [1] Payri F, Bermudez V, Payri R, Salvador FJ. The influence of cavitations on the
phenomenon can be traced back to the accuracy of data acquisition internal flow and spray characteristics in diesel injection nozzles. Fuel
2004;83:419e31.
measurement for penetration in comparison to SMD. It was [2] Tatschl R, v.Künsberg-Sarre C, Alajbegovic A, Winklhofer E. Diesel Spray
deduced that the increment of neuron number leads to decrement modeling including multidimensional cavitations nozzle flow effects. In: Proc.
of modeling error. However, there is a limit in the number of of ILASS-Europe Conference; Sept. 2000. pp. 11e3.
[3] Siddhartha, Sharma M, Varun. A particle swarm optimization algorithm for
neurons to avoid over-fitting drawback. Since LM method prevails,
optimization of thermal performance of a smooth flat plate solar air heater.
its predictive ability for spray quality was taken into account. The Energy 2012;38:406e13.
overall MSE evaluation yields that GDX algorithm has poor accuracy [4] Rashidi MM, Ali M, Freidoonimehr N, Nazari F. Parametric analysis and opti-
by 71.78% difference with LM at 20 neuron numbers. It can be mization of entropy generation in unsteady MHD flow over a stretching
rotating disk using artificial neural network and particle swarm optimization
appreciated that higher correlation with respect to experimental algorithm. Energy 2013;55:497e510.
data (R2 values are closer to 1) is achieved for training phasing. [5] Rashidi MM, Galanis N, Nazari F, Basiri Parsa A, Shamekhi L. Parametric
Obtained R2 coefficient for test and train session for penetration analysis and optimization of regenerative Clausius and organic Rankine cycles
with two feedwater heaters using artificial bees colony and artificial neural
and SMD are 0.992, 0.994, 0.975, 0.992, accordingly. network. Energy 2011;36:5728e40.
Genetic algorithm was employed to improve neural network [6] Zhang Z, Zeng Y, Kusiak A. Minimizing pump energy in a wastewater pro-
performance so that better agreement between predicted and cessing plant. Energy 2012;47:505e14.
[7] Taghavifar H, Taghavifar H, Mardani A, Mohebbi A. Exhaust emissions prog-
experimental data can be obtained. As shown in Fig. 6, MSE values nostication for DI diesel group-hole injectors using a supervised artificial
are plotted with respect to neuron numbers in hidden layer for neural network approach. Fuel. http://dx.doi.org/10.1016/j.fuel.2014.02.016;
hybridized ANN-GA methodology. MSE values were further 2014.
[8] Roy S, Banerjee R, Bose PK. Performance and exhaust emissions prediction of a
reduced by optimization of neural network weights, implemented
CRDI assisted single cylinder diesel engine coupled with EGR using artificial
by genetic algorithm. The best performance in terms of mean neural network. Appl Energy 2014;119:330e40.
square error was achieved at 30 neurons, which denotes higher [9] Alonso JM, Alvarruiz F, Desantes JM, Hernandez L, Hernandez V, Molto G.
Combining neural networks and genetic algorithms to predict and reduce
number of neurons in hidden layer is conducive to more MSE
diesel engine emission. IEEE Trans Evol Comput 2007;11:46e55.
reduction with ANN-GA application. Scatter plots of ANN-GA pre- [10] Çay Y, Korkmaz I, Çiçek A, Kara F. Prediction of engine performance and
dicted data versus experimental data according to 4-30-2 archi- exhaust emissions for gasoline and methanol using artificial neural network.
tecture trained by LevenbergeMarquardt are shown in Fig. 7. It is Energy 2013;50:177e86.
[11] Ghobadian B, Rahimi H, Nikbakht AM, Najafi G, Yusaf TF. Diesel engine per-
clear from Figs. 5 and 7 that data point are well mapped to the formance and exhaust emission analysis using waste cooking biodiesel fuel
fitting line in the case of ANN-GA that illustrates its superior per- with an artificial neural network. Renew Energy 2009;34:976e82.
formance, and accuracy compared with ANN. Table 4 summarizes a [12] Kiani Deh Kiani M, Ghobadian B, Tavakoli T, Nikbakht AM, Najafi G. Appli-
cation of artificial neural networks for the prediction of performance and
global comparison between ANN and ANN-GA hybrid model. exhaust emissions in SI engine using ethanol- gasoline blends. Energy
2010;35:65e9.
[13] Togun NK, Baysec S. Prediction of torque and specific fuel consumption of a
6. Conclusion
gasoline engine by using artificial neural networks. Appl Energy 2010;87:
349e55.
Neural network modeling is a powerful tool for data processing [14] Gao J, Park SW, Wang Y, D.Reitz R, Moon S, Nishida K. Simulation and analysis
in order to predict the results based on given series of input pa- of group-hole nozzle sprays using a gas jet superposition model. Fuel
2010;89:3758e72.
rameters, and therein its applicability in broad spectrum of [15] Taghavifar H, Mardani A. A comparative trend in forecasting ability of artificial
neural networks and regressive support vector machine methodologies for
energy dissipation modeling of off-road vehicles. Energy. http://dx.doi.org/10.
Table 4 1016/j.energy.2014.01.022; 1 March 2014.
ANN-GA and ANN performance comparison. [16] Taghavifar H, Mardani A. Applying a supervised ANN (artificial neural network)
approach to the prognostication of driven wheel energy efficiency indices.
ANN-GA ANN Energy. http://dx.doi.org/10.1016/j.energy.2014.01.048; 15 April 2014.
2
R (SMD-training) 0.998 0.992 [17] MathWorks. Neural networks toolbox user's guide, for the use of Matlab. The
MSE 0.3348 0.8994 Math Works Inc; 2008. 2013/7/24, www.mathworks.com.
[18] Hao Z. Combining neural network and genetic algorithms to optimize low
Structure 4-30-2 4-24-2
NOx pulverised coal combustion. Fuel 2001;80:2163e9.
Please cite this article in press as: Taghavifar H, et al., Diesel engine spray characteristics prediction with hybridized artificial neural network
optimized by genetic algorithm, Energy (2014), http://dx.doi.org/10.1016/j.energy.2014.05.006
H. Taghavifar et al. / Energy xxx (2014) 1e9 9
[19] Graupe D. Principles of artificial neural networks. In: Circuits and systems. [25] Gao J, Matsumoto Y, Nishida K. An experimental study on spray and
2nd ed. USA: World Scientific; 2007. p. 303. mixture properties of group-hole nozzle for direct-injection diesel engines
[20] Perini F, Brakora JL, Reitz RD, Cantore G. Development of reduced and opti- part I: a comparative analysis with single-hole nozzle. At Sprays 2009;19:
mized reaction mechanisms based on genetic algorithms and element flux 321e37.
analysis. Combust Flame 2012;159:103e19. [26] Nishida K, Gao J, Matsumoto Y. An experimental study on spray and mixture
[21] Lee CW, Ge HW, Reitz RD, Kurtz E, Willems W. Computational optimization of properties of group-hole nozzle for direct-injection diesel engines part II:
a down-scaled diesel engine operating in the conventional diffusion com- effects of included-angle and interval between orifices. At Sprays 2009;19:
bustion regime using a multi-objective genetic algorithm. Combust Sci 339e55.
Technol 2012;184:78e96. [27] Suzuki S, Nishida K, Hiroyasu H. Simultaneous concentration measurement of
[22] Verma R, Lakshminarayanan PA. A case study on the application of a genetic vapor and liquid in an evaporating diesel spray. SAE Paper No. 930863; 1993.
algorithm for optimization of engine parameters. In: Proc. IMechE. Part D: J http://dx.doi.org/10.4271/930863.
automobile, engineering, vol. 220; 2006. pp. 471e9. [28] Zhang YY, Yoshizaki T, Nishida K. Imaging of droplets and vapor distributions
[23] Goldberg D. Genetic algorithms in search, optimization and machine learning. in a diesel fuel spray by means of a laser absorption-scattering technique.
Reading, Massachusetts: Addison-Wesley; 1989. Appl Opt 2000;39:6221e9.
[24] Hiroyasu H, Miao H, et al. Genetic algorithms optimization of diesel engine
emissions and fuel efficiency with air swirl, EGR, injection timing and multiple
injections. In: SAE Paper no. 2003-01-1853.
Please cite this article in press as: Taghavifar H, et al., Diesel engine spray characteristics prediction with hybridized artificial neural network
optimized by genetic algorithm, Energy (2014), http://dx.doi.org/10.1016/j.energy.2014.05.006