RSM and ANN
RSM and ANN
Abstract
In this study prediction and optimization of biodiesel yield synthesized from cottonseed oil were carried out using response
surface methodology (RSM) and artificial neural network (ANN) techniques. Box-Behnken Design (BBD) of RSM was used to
create the experimental design matrix. The ANN model was established with three input layers, ten hidden layers, and one output
neuron layer (3-10-1). Three process variables were reaction time (40, 60, and 80 min.), catalyst concentration (0.5, 1, and 1.5wt.
%), and methanol-to-oil molar ratio (1:4, 1:6, and 1:8). The findings of the experiment demonstrated that biodiesel produced
with a catalyst of 1 wt. %, a reaction duration of 60 min., and a molar ratio 1:6 have a maximum yield of 94.66%. The findings
of the experiments were contrasted with the predictions made by the RSM and ANN models. The biodiesel yield was represented
as a quadratic model from the RSM analysis, with a determination coefficient (R2) and adjusted R2 of 0.953 and 0.95, respectively.
The Levenberg-Marquardt approach was used in ANN modeling to train model networks for biodiesel yield prediction. At epoch
3, the observed mean squared error (MSE) was 4.963e-18, and the observed R-value was 0.9957. Gas chromatography–mass
spectroscopy (GC-MS) analysis was used to determine the fatty acid methyl ester (FAME) concentration in the biodiesel.
Furthermore, the important physicochemical characteristics of the biodiesel comply with the specifications set forth by the Amer-
ican Society of Testing and Material (ASTM) D6751 and European norms (EN) 14214 standards.
Keywords: Optimization, Response surface methodology, Artificial neural network, Biodiesel, Gas chromatography–mass
spectroscopy
1. Introduction
Global energy demands are growing daily because of population expansion, industrialization, and technological advancements.
Approximately 80% of the global energy requirements might be satisfied by petroleum-based fuels and 20% by renewable energy
[1]. Climate change, global warming, and environmental harm are mostly caused by a continuing rise in emissions from the
combustion of fossil fuels [2]. However, the necessity for energy security and environmental preservation becomes imperative
due to limited fossil fuel supplies, environmental degradation, and fluctuating fuel prices. In other words, it is necessary to search
for alternate sources, particularly oil seeds [3]. Oil from raw vegetable sources is the subject of recent technological advance-
ments in both domestic and commercial applications. This is explained by their suitability as bio-oil for the industrial production
of products such as biodiesel, bio-lubricants, bio-transformers fluids, as biodiesel can serve as an alternative to petroleum-based
fuels [4]. Biodiesel (methyl ester) is, therefore, considered a viable alternative renewable fuel to reduce the problems associated
with energy and air pollution [5,6]. Biodiesel is the most promising option for widespread implementation with indigenous raw
materials and a degree of technological maturity and production readiness that satisfies essential biofuel requirements [7]. Owing
due to its enhanced fuel qualities such as its lubricity, high cetane index, inherent molecular, and minimal sulfur content, biodiesel
is a viable substitute for conventional petro-diesel fuel [8–10]. Owing to its poor atomization and high viscosity (> 40 cSt),
biodiesel is not recommended for use in diesel engines [11,12]. The transesterification method was used to lower the viscosity,
in addition to thermal cracking, micro-emulsification, and blending techniques [13,14]. The transesterification method has at-
tracted considerable interest because of its high biodiesel conversion efficiency. The triglycerides in raw oils react with alcohol
and catalysts during the process of transesterification to produce methyl or ethyl esters. Methanol produced reduced viscosity
compared to ethanol [7]. A catalyst is used to accelerate the reaction rate and improve the quality of the methyl ester [15]. Base
catalysts are preferred over acid catalysts because they can complete the reaction more quickly, have a greater conversion effi-
ciency, and require a lower reaction temperature [16]. As a base catalyst, KOH has the following characteristics: it reacts at low
temperature, takes little time to react, works at atmospheric pressure, generates no intermediate products, and converts raw
materials at a high rate [7]. Numerous investigations have been carried out to optimize biodiesel production from different types
of feedstocks. Among those studies, RSM and Taguchi were the most frequently used methods for methyl ester optimization.
Despite the differences in methodologies and challenges encountered, all approaches aim to optimize the requirements for pro-
ducing biodiesel [1]. Özgür C. [17] utilized a sodium hydroxide catalyst to optimize the synthesis of biodiesel from pomegranate
seed oil. The individual and combined effects of the process factors were investigated using a central composite design (CCD).
The investigation revealed that a reaction temperature of 70 °C, a methanol-to-oil ratio of 1:8.01, catalyst concentration of 1.08
wt.%, and a duration of 45 minutes produced a maximum yield of 95.68%. The most significant effect on the yield of methyl
esters was the methanol to oil ratio. In addition, with an R2 value of 0.9887, the RSM model provided an excellent prediction of
the experimental results. Yussuf et al. [18] developed a barium-modified zeolite catalyst for the production of methyl esters from
waste cooking using a co-precipitation method and thermal treatment. CCD was used to optimize the biodiesel process factors.
According to the study, a reaction temperature of 65° C, a 1:12 molar ratio, and 3 wt.% catalyst concentration were all necessary
to obtain a 92% maximum yield. Jimoh et al. [19] optimized biodiesel produced from used cottonseed oil (CSO) using RSM.
The studies found the optimum yield of biodiesel (93.60%) at a 1:10 methanol to oil ratio, 80 min of reaction duration, a reaction
temperature of 60oC, and 2.5 wt.% catalyst loading. Abdullah et al. [8] produced biodiesel from Allamanda seed oil (ASO). The
methyl ester process variables were optimized using the Box-Behnken Design (BBD). The investigation showed maximum bio-
diesel yield of 90.67% was obtained at 52.5 oC, 180 min reaction time, 0.5wt.% concentration of catalyst and fixed methanol to
ASO ratio of 5:1. Razzaq et al. [20] Produced the biodiesel from a palm oil and CSO mixture via an ultrasound-assisted trans-
esterification process. The maximum biodiesel (P60C40) yield predicted using response surface methodology was 96.41%. The
optimum operating variables were methanol to oil ratio (47.5 %v/v), time (35 min), and catalyst (1wt.%). They revealed a strong
correlation between the predicted and experimental findings.
Among various optimization techniques, artificial neural network (ANN) and RSM are reliable due to their accuracy and minimal
error [1]. Vinoth et al. [21] The process factors were optimized using the ANN and RSM approaches. Levenberg-Marquardt
analysis was performed on the backpropagation network. According to the study, the R 2 values for ANN and RSM were deter-
mined to be 0.97 and 0.87, respectively. Garg et al. [22] utilized ANN and RSM techniques to optimize biodiesel synthesis from
algal oils. According to the study's findings, ANN is more predictable than RSM. For both ANN and RSM, a significant quadratic
regression model was found, with R2 values of 0.99 and 0.96, respectively. Ayoola et al. [23] compared the relationship between
the process variables and the yield of methyl esters from waste soybean oil by applying ANN and RSM optimization methods.
They discovered that the ANN and RSM have determination coefficients (R2) of 0.98 and 0.93, respectively. Soj-Adekunle [24]
Investigated RSM and ANN modeling techniques to forecast the biodiesel yield from waste cooking. They computed the average
absolute deviation (AAD) and coefficient of determination values (R 2). They discovered that for ANN the AAD was 0.4930
while R2 was 0.9950 and for RSM the AAD and R2 were 0.9376 and 0.9843, respectively.
This study aims to apply RSM based on a Box-Behnken Design and ANN to predict and optimize the factors that affect cotton-
seed oil biodiesel production and explore the effects of production factors on biodiesel yield. The factors investigated were the
reaction duration, catalyst concentration, and methanol-to-oil ratio. Additionally, the accuracy and generalization capacity of the
RSM and ANN predictions were evaluated by comparing them with experimental values.
Where Y is biodiesel yield; 𝐴𝑖 , 𝐵𝑖 and 𝐶𝑖 are the input factors (independent variables); 𝑋0 and 𝑋𝑖 represent intercept and first-
order regression coefficient, respectively; k is total number process factors and 𝑋𝑖𝑖 is quadratic regression coefficient.
TABLE 1: Range of input process factors for biodiesel yield optimization
∑n (𝑋𝑒 −𝑋𝑝𝑖 )2
R2 = 1 − ∑ni=1 2 (5)
i=1(𝑋𝑒𝑖 −𝑋𝑎𝑣 )
Where n is the total number of experiments; 𝑋𝑒 and 𝑋𝑝 are the observed value and predicted value, respectively and 𝑋𝑎𝑣 is an
average value.
FIGURE 7: Input layer, hidden layer, and output layer of the artificial neural network model
FIGURE 8: Artificial neural network model performance
100
90
80
70
Yield (%)
60
50
40
30
20
10
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Experiment Run
FIGURE 10: Comparison of experimentally yield with RSM and ANN model
Conclusions
This study describes a transesterification reaction used to synthesize and optimize biodiesel derived from cottonseed oil (CSO)
using a KOH catalyst. Three factors (reaction duration, catalyst concentration, and methanol-to-oil ratio) were used to determine
the optimum conditions. Minitab 20.3 and MATLAB R2020a software were used to modeling and predict the biodiesel yield.
The highest yield of biodiesel 94.66% was predicted using RSM and 94.65% using ANN under operating conditions of reaction
duration (60 min.), catalyst concentration (1wt.%), and molar ratio (1:6) while the biodiesel yield experimentally obtained was
94.66%. The values of R2, MSE, and RMSE using the ANN were 0.9957, 0.384, and 0.590 respectively. In contrast, the R2, MSE,
and RMSE values obtained using the RSM were 0.953, 0.769, and 0.877, respectively. Compared to RSM, ANN demonstrated
high precision and effectiveness. Owing to their high correlation concentration, both the models showed good agreement with
the experimental findings. It was discovered that ANN was more efficient than RSM in terms of R 2, MSE, and RMSE. These
findings imply that the artificial neural network has a superior predictive capacity for to maximizing the production of biodiesel
from cottonseed oil. To determine the FAME content of CSO biodiesel, GC-MS analysis was performed. GC-MS analysis was
also used to assess the saturated and unsaturated fatty acid contents. The main types of fatty acids found in biodiesel are linoleic,
palmitic, myristic, and oleic acids. Analyzing the most important fuel properties of the synthesized methyl ester, it was discovered
that its viscosity, density, cloud point, acid value, flash point, moisture content, iodine value, and saponification value all matched
ASTM D6751 and EN 14214 standards.
Data Availability
The data used to support the findings of this study are included within the article.
Conflicts of interest
The authors declare that there is no conflict of interest.
Author Contributions
Negasa Tesfaye: Conceptualization, Data curation, Formal analysis, and Writing-original draft.
Ramesh Babu Nallamothu: Data curation, Formal analysis, Investigation, and Editing.
Getachew Alemayehu: Conceptualization, Methodology, Supervision and Visualization
Teshome Kumsa: Resources, Software and Validation
Funding Statement
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
Acknowledgments
The authors would like to thank the department of Chemistry of Adama Science md Technology University for providing the
material and equipments used in this study.
References
[1] Dharmalingam B, Balamurugan S, Wetwatana U, Tongnan V, Sekhar C, Paramasivam B, et al. Comparison of neural
network and response surface methodology techniques on optimization of biodiesel production from mixed waste cook-
ing oil using heterogeneous biocatalyst. Fuel 2023; 340:127503. https://doi.org/10.1016/j.fuel.2023.127503.
[2] Agu CM, Menkiti MC, Nwabanne JT, Onukwuli OD. Comparative assessment of chemically modified Terminalia
catappa L. kernel oil samples–a promising ecofriendly transformer fluid. Ind Crops Prod 2019; 140:111727.
https://doi.org/10.1016/j.indcrop.2019.111727.
[3] Agu CM, Orakwue CC, Menkiti MC, Agulanna AC, Akaeme FC. RSM/ANN based modeling of methyl esters yield
from Anacardium occidentale kernel oil by transesterification, for possible application as transformer fluid. Current Re-
search in Green and Sustainable Chemistry 2022; 5:100255. https://doi.org/10.1016/j.crgsc.2021.100255.
[4] Agu CM, Kadurumba CH, Agulanna AC, Aneke OO, Agu IE, Eneh JN. Nonlinear Kinetics, Thermodynamics, and par-
ametric studies of Colocynthis vulgaris Shrad seeds oil extraction. Ind Crops Prod 2018; 123:386–400.
https://doi.org/10.1016/j.indcrop.2018.06.074.
[5] Dehghani Madvar M, Aslani A, Ahmadi MH, Karbalaie Ghomi NS. Current status and future forecasting of biofuels
technology development. Int J Energy Res 2019; 43:1142–60. https://doi.org/10.1002/er.4344.
[6] Mahlia TMI, Syazmi Z, Mofijur M, Abas AEP, Bilad MR, Ong HC, et al. Patent landscape review on biodiesel produc-
tion: Technology updates. Renewable and Sustainable Energy Reviews 2020; 118:109526.
https://doi.org/10.1016/j.rser.2019.109526.
[7] Kolakoti A, Setiyo M, Rochman ML. A Green Heterogeneous Catalyst Production and Characterization for Biodiesel
Production using RSM and ANN Approach. International Journal of Renewable Energy Development 2022; 11:703–12.
https://doi.org/10.14710/ijred.2022.43627.
[8] Abdullahi K, Ojonugwa SS, Yusuff AS, Umaru M, Mohammed IA, Olutoye MA, et al. Optimization of biodiesel pro-
duction from Allamanda Seed Oil using design of experiment. Fuel Communications 2023; 14:100081.
https://doi.org/10.1016/j.jfueco.2022.100081.
[9] Azizzadeh Hajlari S, Najafi B, Faizollahzadeh Ardabili S. Castor oil, a source for biodiesel production and its impact on
the diesel engine performance. Renewable Energy Focus 2019; 28:1–10. https://doi.org/10.1016/j.ref.2018.09.006.
[10] Malla FA, Bandh SA, Wani SA, Hoang AT, Sofi NA. Biofuels: Potential Alternatives to Fossil Fuels. Biofuels in Circular
Economy, Springer; 2023, p. 1–15.
[11] KOLAKOTİ A. Optimization of biodiesel production from waste cooking sunflower oil by taguchi and ann techniques.
Journal of Thermal Engineering 2020;6:712–23. https://doi.org/10.18186/thermal.796761.
[12] Supriyadi S, Purwanto P, Anggoro DD, Hermawan H. The effects of sodium hydroxide (naoh) concentration and reaction
temperature on the properties of biodiesel from Philippine Tung (Reutealis Trisperma) Seeds. Automotive Experiences
2022; 5:57–67. https://doi.org/10.31603/ae.5986.
[13] Hariyanto RAB, Firmansyah RA, Burhan RYP, Zetra Y. Synthesis of bio-additive for low sulphur diesel: Transesterifi-
cation of soybean oil and ethylene glycol using K2CO3 catalyst. Automotive Experiences 2021; 4:44–50.
https://doi.org/10.31603/ae.4694.
[14] Zetra Y, Sholihah SMW, Burhan RYP, Firmansyah RA. Synthesis and characterization of diesel lubricity enhancer
through transesterification reaction of palm oil with 1, 2-ethanediol. Automotive Experiences 2021; 4:104–11.
https://doi.org/10.31603/ae.4664.
[15] Maheshwari P, Haider MB, Yusuf M, Klemeš JJ, Bokhari A, Beg M, et al. A review on latest trends in cleaner biodiesel
production: Role of feedstock, production methods, and catalysts. J Clean Prod 2022;355. https://doi.org/10.1016/j.jcle-
pro.2022.131588.
[16] Changmai B, Vanlalveni C, Ingle AP, Bhagat R, Rokhum L. Widely used catalysts in biodiesel production: A review.
RSC Adv 2020; 10:41625–79. https://doi.org/10.1039/d0ra07931f.
[17] ÖZGÜR C. Prediction and optimization of biodiesel production by using ANN and RSM. International Journal of Auto-
motive Engineering and Technologies 2022; 11:53–62. https://doi.org/10.18245/ijaet.1057170.
[18] Yusuff AS, Bhonsle AK, Bangwal DP, Atray N. Development of a barium-modified zeolite catalyst for biodiesel produc-
tion from waste frying oil: Process optimization by design of experiment. Renew Energy 2021; 177:1253–64.
https://doi.org/10.1016/j.renene.2021.06.039.
[19] Jimoh A, Agbaji EB, Ajibola VO, Uba S. Production of Methyl Ester from Used Cottonseed Oil Optimized Using Box
Behnken Design Approach. Advanced Journal of Chemistry, Section A 2023;6:1–16.
https://doi.org/10.22034/ajca.2023.359977.1327.
[20] Razzaq L, Abbas MM, Miran S, Asghar S, Nawaz S, Soudagar MEM, et al. Response Surface Methodology and Artificial
Neural Networks-Based Yield Optimization of Biodiesel Sourced from Mixture of Palm and Cotton Seed Oil. Sustaina-
bility (Switzerland) 2022;14. https://doi.org/10.3390/su14106130.
[21] Vinoth Arul Raj J, Praveen Kumar R, Vijayakumar B, Gnansounou E, Bharathiraja B. Modelling and process optimiza-
tion for biodiesel production from Nannochloropsis salina using artificial neural network. Bioresour Technol 2021;
329:124872. https://doi.org/10.1016/j.biortech.2021.124872.
[22] Garg A, Jain S. Process parameter optimization of biodiesel production from algal oil by response surface methodology
and artificial neural networks. Fuel 2020; 277:118254. https://doi.org/10.1016/j.fuel.2020.118254.
[23] Ayoola AA, Hymore FK, Omonhinmin CA, Babalola PO, Bolujo EO, Adeyemi GA, et al. Data on artificial neural net-
work and response surface methodology analysis of biodiesel production. Data Brief 2020; 31:105726.
https://doi.org/10.1016/j.dib.2020.105726.
[24] Soji-Adekunle AR, Asere AA, Ishola NB, Oloko-Oba IM, Betiku E. Modelling of synthesis of waste cooking oil methyl
esters by artificial neural network and response surface methodology. International Journal of Ambient Energy 2019;
40:716–25. https://doi.org/10.1080/01430750.2017.1423378.
[25] Muhammad G, Ngatcha ADP, Lv Y, Xiong W, El-Badry YA, Asmatulu E, et al. Enhanced biodiesel production from wet
microalgae biomass optimized via response surface methodology and artificial neural network. Renew Energy 2022;
184:753–64. https://doi.org/10.1016/j.renene.2021.11.091.
[26] Ijaz Malik MA, Usman M, Hayat N, Zubair SWH, Bashir R, Ahmed E. Experimental evaluation of methanol-gasoline
fuel blend on performance, emissions and lubricant oil deterioration in SI engine. Advances in Mechanical Engineering
2021; 13:16878140211025212.
[27] Alhassan FH, Rashid U, Taufiq-Yap YH. Optimization of simultaneous production of waste cooking oil based-biodiesel
using iron-manganese doped zirconia-supported molybdenum oxide nanoparticles catalyst. Journal of Renewable and
Sustainable Energy 2016;8. https://doi.org/10.1063/1.4953090.
[28] Yusuff AS, Popoola LT, Adeniyi DO, Olutoye MA. Coal fly ash supported ZnO catalyzed transesterification of Jatropha
curcas oil: Optimization by response surface methodology. Energy Conversion and Management: X 2022; 16:100302.
https://doi.org/10.1016/j.ecmx.2022.100302.
[29] Gupta S, Patel P, Mondal P. Biofuels production from pine needles via pyrolysis: Process parameters modeling and
optimization through combined RSM and ANN based approach. Fuel 2022; 310:122230.
https://doi.org/10.1016/j.fuel.2021.122230.
[30] Ahmad G, Imran S, Farooq M, Shah AN, Anwar Z, Rehman AU, et al. Biodiesel Production from Waste Cooking Oil
Using Extracted Catalyst from Plantain Banana Stem via RSM and ANN Optimization for Sustainable Development.
Sustainability (Switzerland) 2023;15. https://doi.org/10.3390/su151813599.