Next Article in Journal
Functional Nanostructured Materials in the Cosmetics Industry: A Review
Next Article in Special Issue
Simultaneous Environmental Waste Management through Deep Dewatering of Alum Sludge Using Waste-Derived Cellulose
Previous Article in Journal
Development of Mosquito-Repellent Camouflage Fabric Using Eucalyptus Oil with Moringa oleifera Gum
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Process Optimization of Biodiesel from Used Cooking Oil in a Microwave Reactor: A Case of Machine Learning and Box–Behnken Design

Department of Materials Science and Engineering, Faculty of Engineering and Industrial Technology, Silpakorn University, Nakhon Pathom 73000, Thailand
*
Authors to whom correspondence should be addressed.
Submission received: 21 June 2023 / Revised: 13 July 2023 / Accepted: 19 July 2023 / Published: 21 July 2023

Abstract

:
In the present investigation, response surface methodology (RSM) and machine learning (ML) are applied to the biodiesel production process via acid-catalyzed transesterification and esterification of triglyceride (TG). In order to optimize the production of biodiesel from used cooking oil (UCO) in a microwave reactor, these models are also compared. During the process, Box–Behnken design (BBD) and an artificial neural network (ANN) were used to evaluate the effect of the catalyst content (3.0–7.0 wt.%), methanol/UCO mole ratio (12:1–18:1), and irradiation time (5.0–9.0 min). The process conditions were adjusted and developed to predict the highest biodiesel yield using BBD with the RSM approach and an ANN model. With optimal process parameters of 4.94 wt.% catalyst content, 16.76:1 methanol/UCO mole ratio, and 8.13 min of irradiation time, a yield of approximately 98.62% was discovered. The coefficient of determination (R2) for the BBD model was found to be 0.9988, and the correlation coefficient (R) for the ANN model was found to be 0.9994. According to the findings, applying RSM and ANN models is advantageous when optimizing the biodiesel manufacturing process as well as making predictions about it. This renewable and environmentally friendly process has the potential to provide a sustainable route for the synthesis of high-quality biodiesel from waste oil with a low cost and high acid value.

Graphical Abstract

1. Introduction

In recent years, the consumption of energy has significantly increased as a result of a shift toward less traditional ways of living as well as a general rise in the world’s population. The upward trend in energy demand has been met by an increase in the utilization of petroleum fuels, which is having a devastating effect on the environment in the form of increased temperatures caused by global warming and a reduction in the amount of forest cover. The use of fossil fuels as a source of energy is fraught with constraints. Because of this, there has been a quest for an alternative fuel that can be replenished, such as biofuel, because the demand for energy is growing at such a rapid rate [1].
Biodiesel’s appeal as a replacement fuel source has increased as a result of the ongoing petroleum product crisis. Biodiesel is a renewable fuel that is also biodegradable, is environmentally friendly, has low emissions, and is non-toxic; it may be used in conventional diesel engines [2]. The production of biodiesel can be carried out through either a homogenous or a heterogenous process. Homogeneous synthesis, which exhibits high levels of catalytic activity, typically involves the employment of chemical catalysts. However, there are several drawbacks, such as the inevitability of the generation of wastewater during the washing process, which cannot be recycled, and the fact that when homogeneous catalysts are employed, a one-step procedure is typically insufficient to create high-quality biodiesel [3]. Environmental restrictions and streamlining of current processes are driving a shift away from homogeneous catalysts toward predominantly heterogeneous catalysts. There is no longer any need to remove water from the commercial biodiesel production process or neutralize homogeneous catalysts when using heterogeneous catalysts. In addition, solid catalysts are simple to recycle, since they can be filtered out of the reaction mixture [4]. There are a variety of methods that could be used to increase the quantity and quality of biodiesel production from biomass sources. These primarily depend on the synthesis and quality monitoring of the production, with esterification and transesterification being the most common and cost-effective techniques [5].
The processes of transesterification and esterification are both dependent on the conditions of the reaction. The values of these reaction parameters have a direct impact on the biodiesel production process as well as the amount of fatty acid methyl ester (FAME) produced. Response surface methodology (RSM) was applied to conduct a thorough evaluation of the effects that input parameters have on output values. Utilizing this method will allow producing experiment matrices that are dependent on the input parameters one provides. This will allow attaining the best possible outcomes. RSM has been utilized by a number of studies for the purpose of optimizing yields by collecting appropriate comparisons of reaction parameters, which has finally resulted in lower costs, material reductions, and time savings [6].
An artificial neural network (ANN) is a method of prediction and modeling that has shown to be effective. It is a machine learning (ML) technique that was developed by simulating the functioning of the human brain. An ANN is a useful tool for problem-solving in the fields of engineering and research, particularly in situations where traditional modeling methods are ineffective, such as when a problem is nonlinear or complex. The performance of biodiesel-based fuels may be predicted by an ANN that has been trained, tested, and verified using data. This type of ANN could also be used to increase biodiesel production by increasing the yield of FAME through optimization [7].
This study describes a method for producing biodiesel from used cooking oil (UCO) in a microwave reactor using heterogeneous catalysts made from acid-activated forms of palm seed cake (PSC). To improve the biodiesel production process, RSM based on Box–Behnken design (BBD) and ML based on ANN algorithms are used. They are utilized to assess a wide range of variables (including catalyst content, methanol/UCO mole ratio, and irradiation time), as well as their interactions, and to reduce the number of required experimental trials in order to carry out the experiment more quickly and accurately. Because of this, BBD and ANN are superior to other systems in terms of their ability to forecast, effectiveness at parameter adjustment, and number of required repetitions. That is, the novelty of this research is that it applies BBD and ANN analytical tools to the UCO biodiesel process with a sulfonated palm seed cake (SPSC) catalyst by making useful models and judging how well those models work.

2. Methodology for Research

2.1. Materials

The UCO feedstock, which had a high free fatty acid (FFA) concentration, was received for free from a number of eateries located in the vicinity of Silpakorn University in Nakhon Pathom, Thailand. It was first filtered to remove any contaminants, and then, it was heated in an oven at a temperature of 100 °C for 0.5 h in order to evaporate any remaining moisture. The palm seed cake (PSC) was acquired from Absolute Palm Co., Ltd., Bangkok, Thailand. Sulfonic acid (SO3H), zinc chloride (ZnCl2) and methanol were all analytical-grade chemicals (Merck Ltd., Bangkok, Thailand, better than 99% purity) that were utilized precisely as supplied. In our previous publication [8], we described the preparation and characterization of the SPSC catalyst used in this study for biodiesel production.

2.2. Biodiesel Synthesis from UCO in a Microwave Reactor

The following is a description of the experimental procedure that was employed for the synthesis of biodiesel as displayed in Figure 1. The processes of transesterification and esterification of triglyceride (TG) were carried out in a glass reactor with a capacity of 250 mL, which was fitted with a condenser and a mechanical stirrer and put inside of a home microwave oven manufactured by Samsung in Korea. The pressure in the microwave reactor was kept at atmospheric level. Following the addition of the constant 50 g of UCO and the required amount of the synthesized SPSC catalysts (at catalyst content of 3.0, 5.0, and 7.0 wt.%), the methanol was then added to the waste oil at varied methanol/UCO molar ratios of 12:1, 15:1, and 18:1. Under the influence of microwave irradiation, the reaction was carried out at 800 W for varying amounts of time in the range of 5.0–9.0 min before it was abruptly terminated by being rapidly cooled in an ice bath [9]. Gas chromatography–mass spectrometry (GC-MS, QP2010 Plus, Shimadzu Corporation, Japan) was utilized to determine the biodiesel’s composition. The instrument was fitted with a flame ionization detector and a capillary GC column (DB-WAX, Carbowax 20M, 30 m × 0.32 mm × 0.25 μm) utilizing the inner standard method described by Buasri et al. [10]. The temperature ranged from approximately 60 °C to 325 °C. The yield of UCO biodiesel was determined by first calculating the weight of UCO biodiesel, then dividing that weight by the weight of UCO, and finally multiplying that number by 100 to obtain the %yield of biodiesel.

2.3. Design of Experiments (DoE) by BBD Modeling

In order to obtain the highest quality biodiesel yield from the transesterification and esterification process, it is necessary to take into account a variety of process parameters [11]. Some of these factors include the amount of catalyst content, the mole ratio of methanol to UCO, and the amount of time spent under irradiation. As a result, the tests were carried out in accordance with a DoE that was created using Design-Expert® Software, version 13 (Stat-Ease, Inc., Minneapolis, Minnesota, United States of America), as demonstrated in Table 1. The RSM optimization strategy was used with aid from BBD, and 20 trials were carried out in a randomized way by adjusting the values of the process variables in accordance with the DoE. To assess the model’s fit, the analysis of variance (ANOVA) test was used [12].

2.4. Improvement of Biodiesel Process by ANN Modeling

ANN are a subfield of artificial intelligence (AI) or ML, two branches of computer science that aim to create technology that mimics human intellect. AI is being applied across a wide variety of industries to find solutions to difficult and nonlinear issues. ANN is a type of algorithm that attempts to mimic the working of the neurological central systems of animals, most notably the brain. An ANN is able to learn from previous experiences, is fault-tolerant, and can process data that is noisy and complex. After being trained, an ANN is able to improve upon the information it was initially created to anticipate while also making accurate predictions of new data [13]. For modeling of the process parameters of the acid-catalyzed transesterification and esterification reaction, a feed-forward back-propagation (BP) multi-layer perception (MLP) neural network analysis is performed using the Levenberg–Marquardt (LM) algorithm [14]. MATLAB® software R2020b 9.9.0.1467703 (MathWorks, Inc., Natick, MA, USA) employs the neural network utility for this purpose. The training parameters of the ANN are presented in Table 2. The application of the ANN with the LM algorithm consisted of 3 stages based on a set of input and output data of the DoE with replication. These stages were then subdivided into 3 subsets and referred to as training, testing, and validation, respectively [15]. In addition to analyzing the interactive effects of input variables on yield of biodiesel, suitable models were also developed [16]. The procedure for manufacturing biodiesel utilizing an SPSC catalyst from UCO and methanol in a microwave reactor is depicted in Figure 2. This procedure was improved using BBD and ANN modeling.
The data in ANN modeling were randomly partitioned into 3 subsets: training, validation, and testing data. During the first step, 70% of the data from the experimental dataset were randomly selected, and the weighted parameters of the connections were refined until the mean squared error (MSE) between experimental and expected biodiesel yield was reached. In the second step, 15% of the data were chosen at random to test the “trained”, and the ANN employed the weighted parameters computed in the previous stage. Finally, in the third stage, 15% of the remaining data subsets were utilized to validate the final estimation of biodiesel yield using the previously mentioned ANN constructed in two steps [17,18]. The experimental data that have been gathered may be utilized to make predictions about the yield for datasets that have not yet been collected, as well as about the experimental conditions that will provide the highest yield. The training dataset typically comprises the experimental values or data that are input, as well as the experimental findings that are output. This type of dataset is used to understand the relation between the input and output functions. A portion of the experimental dataset is used for training, and this portion, which is referred to as the training dataset, is used [19].

3. Results and Discussion

3.1. Modeling and Optimization of Biodiesel Process Using RSM

The BBD was used in a total of 20 different tests in order to optimize the three most important transesterification and esterification variables. These factors were the catalyst content, the methanol-to-oil mole ratio, and the irradiation time. The experimental design is presented in Table 3, together with the actual and predicted %FAME content values.
The maximum yield of biodiesel was achieved with a catalyst loading of 7.0 wt.% and a methanol/UCO mole ratio of 18:1 after a reaction time of 7 min. Nevertheless, the lowest biodiesel yield was obtained with a methanol/UCO mole ratio of 12:1, an irradiation period of 5 min, and a catalyst component of 5 wt.%. In order to provide an accurate forecast of the amount of biodiesel that may be generated, the experimental data were put through a series of nonlinear regression analyses, which led to the development of a quadratic model (Equation (1)).
Y = 89.68 + 0.975A + 22.81B + 4.37C − 5.47A2 − 13.32B2 − 4.64C2 + 3.71AB − 1.14AC − 2.28BC
where Y denotes the responses (biodiesel yield) that have been forecasted, and the letters A, B, and C stand for the code values that have been assigned to the test variables of catalyst content, methanol/UCO mole ratio, and irradiation time, respectively. The interaction terms are denoted by the letters AB, AC, and BC, whereas the quadratic terms are denoted by the letters A2, B2, and C2. A synergistic impact is indicated by a positive parameter in a regression equation.
This type of impact occurs when the result grows as the amount of input from independent variables increases. On the other hand, a negative sign indicates the opposite effect, which is a situation in which the response improves as the number of input factors decreases [20].
The results of an ANOVA testing the BBD model’s appropriateness and suitability are presented in Table 4. The fact that the model has an F-value of 909.89 indicates that it is significant. A noise level of this magnitude would only have a 0.01% probability of producing an F-value of this magnitude. According to the results of the regression analysis, all three of the parameters had a substantial influence on the FAME content. This conclusion is supported by the p-values. If the p-value for a model term is less than 0.0500, then it can be considered significant. The F-value for the Lack of Fit is 681.75, which indicates that the Lack of Fit is significant. There is just a 0.01% possibility that a Lack of Fit F-value that high might be caused by noise. This probability is extremely low. The regression model gives an accurate description of the experimental data, demonstrating that there is a successful correlation between the three transesterification/esterification process parameters that affect the amount of biodiesel produced [21].
Figure 3 presents the results of a comparison between the data obtained through experimentation and the data that the empirical BBD model predicted. The determination coefficient (R2), the adjusted determination coefficient (R2adj), and the predicted determination coefficient (R2pred), each came in at 0.9988, 0.9977, and 0.9805, respectively. The high values for all of the determination coefficients provide evidence that the BBD modeling has a high level of significance, and they provide support for the existence of an outstanding correlation between the independent variables. During this time period, the coefficient of variation (C.V.) was equal to 1.04%. The C.V. had a value that was quite low, which is an indication that this fitted model is more predictable [22].
The three-dimensional (3D) surface plots and interaction plots shown in Figure 4 were used to explore the interactions that occurred between the three parameters (catalyst content, methanol/UCO mole ratio, and irradiation time) that were studied during the transesterification and esterification of the UCO. This allowed for the possibility of visual observations being made. Using Design-Expert® Software (version 13), we were able to create the 3D response surface as well as the interaction plots between parameters of biodiesel yield for all of the design circumstances.
The surface plot reveals an interaction between the amount of catalyst present and the mole ratio of methanol to UCO, which has a major impact on the amount of biodiesel produced. The conversion of TG rose from more than 44% to more than 98% throughout this time period. The amount of biodiesel produced is proportional to the mole ratio of methanol to oil and can greatly rise. The catalyst level of 7.0 wt.% and a methanol/UCO mole ratio of 12:1 were found to produce the lowest yield. Based on the data presented, it appears that the mole ratio of methanol to oil had a more substantial impact on the generation of biodiesel than the catalyst content did. The equilibrium of the reaction determines whether a transesterification and esterification reaction may be reversed or not. Reversible reactions are controlled by equilibrium. For this reason, the mole ratio of methanol to UCO needs to be greater than the stoichiometric amount in order to achieve a satisfactory level of final TG conversion [23].
From graphs, it can be determined that biodiesel yield is dependent on input variables. Reaction time under irradiation is a crucial factor in the production of UCO biodiesel, as it influences the rate of transesterification and esterification reaction. According to the 3D surface responses, biodiesel production increases rapidly during the initial phases of the manufacturing process but then levels off to a negligible level. This process can be characterized by the fact that, in the early stages, microwave irradiation facilitated the thermal collection of the reaction mixture, which led to the efficient production of biodiesel. Following that, the production of biodiesel decreases abruptly. The concentration of the catalyst can have an effect on biodiesel production. In accordance with the results, increasing the concentration of the catalyst accelerates production. This is attributable to the fact that a higher concentration of catalyst results in the formation of stronger nucleophiles in the system through the deportation of alcohol, thereby increasing biodiesel production. The significance of catalyst concentration is evidently demonstrated by these results [24].
The elliptical contour of the surface response map indicates that there is a significant relationship between the surface response chart’s components. In addition to lowering yield, a catalyst concentration that is too high (more than 5.0 wt.%) can make it difficult to separate the aqueous layers while washing. An excessive amount of catalyst will also result in the production of biodiesel that is extremely viscous and cannot be used as a fuel for motors. At a catalyst concentration of 5.0 wt.%, the production of biodiesel results in the highest possible yield. In addition, there was an insufficient concentration of the catalyst used in the reaction, which led to a reduction in the amount of FAME that was produced [6].
Increases in both the methanol/UCO mole ratio and the irradiation time resulted in a greater percentage yield of FAME when the catalyst content was held constant. Also, increasing the alcohol/oil molar ratio initially improved the UCO biodiesel yield significantly in a shorter reaction time. Raising the percentage of methanol in the reaction medium with longer reaction times has minimal influence on biodiesel yield, and doing so decreases biodiesel production even more. Since the reaction is complete and equilibrium has been reached, the %yield of FAME has declined, since too much alcohol destroyed the catalyst activity, reducing its effectiveness. In addition, increasing the irradiation time has a significant impact on biodiesel yield, provided that the mole ratio of methanol to waste oil remains unchanged [25].
Using the numerical optimization capability of Design-Expert® Software, it was possible to determine the ideal values for three variables: the catalyst content (A), the methanol/UCO mole ratio (B), and the irradiation time (C). With the assistance of RSM consisting of three components and three levels of BBD, the optimization of reaction variables was successfully accomplished. The optimization module found in Design-Expert will seek a combination of factor levels that will simultaneously satisfy the criteria that have been imposed on each of the replies and the factors [26]. According to the information presented in Figure 5, each of the variables and the responses pertaining to the upper- and lower-limit experimental range need to be in accordance with the creations defined for the best operating environment [27]. The regression model of the numerical technique predicted that a catalyst concentration of 4.94 wt.%, a methanol/UCO mole ratio of 16.76:1, and an irradiation time of 8.13 min would result in the highest possible biodiesel production of 98.62%.
The desirability contour plots and the percentage yield of FAME in the synthesis of UCO biodiesel under optimal reaction conditions are depicted in Figure 6, which makes use of BBD modeling. Each estimated response is then converted into a unitless utility that is bounded by a desirability value that is between 0 and 1, according to the desirability approach. A response value that is higher on the desirability scale suggests that it is more desirable [1]. In order to verify that this particular combination is the most effective one, there were three distinct tests conducted [28]. According to the findings, the overall response effectiveness was 98%, which is extremely similar to the predictions that were given by the model. As a consequence of this, the model that BBD modeling generated was assessed, and it was found to be accurate and effective for estimating the percentage yield of biodiesel that was obtained from UCO in a microwave reactor. This was accomplished through the use of a model that was shown to be accurate and efficient [29].
Model validation, which serves the dual function of checking the accuracy of the model as well as the interpretation of the experimental data, often makes use of an adequacy check as one of its methods of data analysis. A mathematical model that has been shown to be accurate to a very high degree can be used to design an acceptable strategy for the actual process [30]. The DoE and the implications of any residual data from the biodiesel synthesis process are graphically represented in Figure 7, which is also included in this report. This demonstrates that the BBD modeling does not contain any errors that were not foreseen by the designers. According to the plot findings that are adequate, which can be seen in diagnostic plots for BBD modeling adequacy, the empirical model is acceptable for describing and optimizing the biodiesel production process of UCO utilizing solid catalyst in a microwave reactor and BBD-based RSM. This is because the empirical model utilizes solid catalyst in a microwave reactor.

3.2. Modeling and Regression of Biodiesel Process Using ANN

In the present investigation, a feed-forward BP of an ANN model was built for the conversion of UCO to biodiesel using MATLAB® software. The input parameters for this model include the amount of catalyst present, the mole ratio of methanol to UCO, and the amount of irradiation time. There are 3 neurons in the network’s input layer, 1 neuron in the network’s output layer, and 10 neurons in the network’s hidden layer. The transfer functions known as TANSIG and PURELIN are used to model the neurons in the hidden layer and output layer, respectively. In order to train the network, the LM training algorithm was utilized, and the MSE was chosen to serve as the performance function that needed to be minimized (the default). There were 20 data points utilized for the ANN modeling, of which 70% was used for training, 15% was utilized for validation, and 15% was utilized for testing. For the purpose of converting UCO into biodiesel in a microwave reactor, the MSE and correlation coefficient (R) were used to assess the performance of the ANN modeling [31]. Training and learning are integral parts of the network’s operational procedure in its entirety [11]. For the purpose of this inquiry, a feed-forward BP network model with three layers was used. As can be seen in Figure 8, this model includes input, hidden, and output layers. Through a process of trial and error, the ideal number of hidden neurons was carefully determined. In order to accomplish this goal, investigation into the number of hidden neurons was conducted in order to design the network architecture. After that, every single one of these hidden neurons underwent training on multiple occasions, and they were further instructed to produce the highest value of R and the lowest output error based on MSE [32]. The ANN topology network (3-10-1) was determined to be the most effective one for the estimation of the amount of biodiesel that can be produced from UCO in a microwave reactor.
The connection between the output and target data is demonstrated in Figure 9. As can be seen, a correlation may be drawn between the data using the straight lines. The training R is 1, while the validation R is 0.9999, and the testing R is 0.9989. In addition, R values for regression are used to determine how closely outputs and goals are correlated with one another. A close association can be shown by a R value of 1, while a random relationship can be indicated by a R value of 0. As a result, in terms of correlation, the prediction made using ANN modeling is significant, with an overall R value of 0.9994. The trainlm algorithm often takes a greater amount of memory but significantly less processing time. When there is no longer any generalization improvement, which may be determined by an increase in the MSE of the validation samples, training will automatically come to an end. The average squared deviation from the targets in terms of the outputs is what is meant by the term MSE. Lower values are better, and zero signifies no error [33]. Figure 10 is a representation of the best validation performance, which was generated from the curve of a different period. According to what has been demonstrated, the best validation performance is 0.0085 at the fifth of six epochs (green circle). The performance plot demonstrates no overfitting. The validation (green) and test (red) curves are comparable and near the best-fitting curve. In addition, it is notable that as the MSE value approaches zero, the prediction performance is enhanced [34]. Furthermore, the error histogram is one of the tools that may be utilized in order to gain further information on the neural network. The error histogram that was obtained for the regression curves pertaining to the selected network is depicted in Figure 11. An accurate signal of the values of the outliers was acquired, as can be shown.
Figure 12 shows a graph plot comparing the experimental data for biodiesel yields with the value calculated by the BDD and ANN modeling. This comparison can be found in the chart. It demonstrates that the results of both BDD and ANN modeling match the experimental values with a low amount of error. The BBD and ANN models’ predicted values were within 3% of the actual value of the experiment, showing that the established models had good accuracy and were able to accurately forecast the obtained yield of biodiesel [35].
In addition, the efficiency of the generated BBD and ANN models in predicting biodiesel yield was assessed using mean absolute error (MAE) and average absolute deviation (AAD). MAE and AAD evaluate the precision and accuracy of a model. Low values were obtained for both MAE and AAD, indicating that the models fit well. The lower these statistical indicators are, the greater the model’s performance [23,36]. RSM models had MAE and AAD values of 0.3995 and 0.5485, respectively, whereas ANN models had lower MAE and AAD values than RSM, which were 0.0460 and 0.0570, respectively. Based on the results of the statistical indices, the ANN model performed better than the RSM model.
Furthermore, the model prediction was carried out using the ANN model, which obtained a high R value. This confirmed that the ANN modeling had a superior generalization ability to forecast biodiesel yield than the BBD modeling. The findings described here are in agreement with those discovered by previous researchers [11,18,37]. Therefore, it can be stated that RSM and ML techniques are effective methods for predicting the amount of biodiesel produced under various transesterification and esterification reaction conditions in a microwave reactor.
Table 5 displays the experimental findings that were validated for BBD and ANN models. The biodiesel yield was predicted by the BBD modeling to be 98.62%, whereas it was 98.53% under different circumstances when using ANN modeling. It was found that 98% biodiesel yield was achieved at the two optimum conditions of 4.94 wt.% catalyst content (A), 16.76:1 methanol/UCO mole ratio (B), and 8.13 min of irradiation time (C) for the BBD model and 7 wt.% catalyst content, 18:1 methanol/UCO mole ratio, and 7 min of irradiation time for the ANN model. For the examination of the catalyst’s reusability, the same BBD-model-optimized conditions are employed.
The reusability of the heterogeneous solid acid catalyst is one of the most important advantages of employing this type of catalyst. A catalyst that can go through more reuse cycles without needing to be reactivated is considered to be more stable [38]. Figure 13 depicts the outcome of the experiment, which shows that the SPSC catalyst was successful in completing up to five cycles, with a final biodiesel yield of 90%, under optimal reaction conditions (4.94 wt.% catalyst content, 16.76:1 methanol/UCO mole ratio, and 8.13 min of irradiation time). As a result, it was demonstrated that the PSC is an excellent use of bio-based material as a precursor for acid catalyst synthesis, which may be utilized for the esterification and transesterification of UCO. Because sulfonated bio-based catalysts are able to complete multiple reaction cycles while maintaining their stability [39], their cost-effectiveness is highlighted.
The agricultural, food, chemical, and energy industries could all stand to benefit economically from the possibility of producing biofuel and heterogeneous catalysts through the utilization of waste oil and agricultural biomass [40].

4. Conclusions

In the present study, the BBD of RSM and ANN of ML approaches were successfully employed for the purpose of predicting and optimizing the process parameters for the synthesis of biodiesel from UCO in a microwave reactor. The optimal results of the biodiesel manufacturing process were 4.94 wt.% of catalyst content, a mole ratio of 16.76:1 between methanol and UCO, and 8.13 min of irradiation time spent. This allowed for the conversion of 98.62% of waste oil to biodiesel to be achieved. Error analysis was conducted between anticipated and experimental values for both the BDD and ANN modeling, and it was discovered that the error % was too low. To produce a rigorous study in the near future, (i) additional reaction variables such as stirring speed, temperature, and reaction time, (ii) different chemical reactors in relation to biodiesel production, and (iii) the leaching of SPSC catalyst in biofuel should be considered.

Author Contributions

The present work was produced through a collaborative effort involving all of the authors. A.B. was responsible for the conceptualization of the experiments, data analysis, and the initial drafting of the manuscript, which was subsequently revised thoroughly. The experiments in the laboratory were conducted by P.S., S.P. and O.B. and V.L. made contributions to the conceptual approach and results discussion and provided approval for the final version of the revised manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.

Acknowledgments

The authors would also like to express their appreciation to the Department of Materials Science and Engineering, Faculty of Engineering and Industrial Technology at Silpakorn University for their assistance and support with this undertaking. In addition, the corresponding author would like to express his thanks to his daughter, who has always been his power and inspiration.

Conflicts of Interest

The authors have declared no conflict of interest.

References

  1. Bobadilla, M.C.; Lorza, R.L.; García, R.E.; Gómez, F.S.; González, E.P.V. An improvement in biodiesel production from waste cooking oil by applying thought multi-response surface methodology using desirability functions. Energies 2017, 10, 130. [Google Scholar] [CrossRef] [Green Version]
  2. Lin, C.-H.; Chang, Y.-T.; Lai, M.-C.; Chiou, T.-Y.; Liao, C.-S. Continuous biodiesel production from waste soybean oil using a nano-Fe3O4 microwave catalysis. Processes 2021, 9, 756. [Google Scholar] [CrossRef]
  3. Gaide, I.; Makareviciene, V.; Sendzikiene, E.; Kazancev, K. Snail shells as a heterogeneous catalyst for biodiesel fuel production. Processes 2023, 11, 260. [Google Scholar] [CrossRef]
  4. Buasri, A.; Loryuenyong, V. The new green catalysts derived from waste razor and surf clam shells for biodiesel production in a continuous reactor. Green Process. Synth. 2015, 4, 389–397. [Google Scholar] [CrossRef]
  5. Fatimah, I.; Fadillah, G.; Sagadevan, S.; Oh, W.-C.; Ameta, K.L. Mesoporous silica-based catalysts for biodiesel production: A review. ChemEngineering 2023, 7, 56. [Google Scholar] [CrossRef]
  6. Razzaq, L.; Abbas, M.M.; Miran, S.; Asghar, S.; Nawaz, S.; Soudagar, M.E.M.; Shaukat, N.; Veza, I.; Khalil, S.; Abdelrahman, A.; et al. Response surface methodology and artificial neural networks-based yield optimization of biodiesel sourced from mixture of palm and cotton seed oil. Sustainability 2022, 14, 6130. [Google Scholar] [CrossRef]
  7. Mahfouz, A.B.; Ali, A.; Crocker, M.; Ahmed, A.; Nasir, R.; Show, P.L. Neural-network-inspired correlation (N2IC) model for estimating biodiesel conversion in algal biodiesel units. Fermentation 2023, 9, 47. [Google Scholar] [CrossRef]
  8. Buasri, A.; Sirikoom, P.; Pattane, S.; Buachum, O.; Loryuenyong, V. RSM process optimization of biodiesel production from waste cooking palm oil in the presence of SO3H-PSC catalyst. Eng. Proc. 2023, 37, 73. [Google Scholar]
  9. Buasri, A.; Rattanapan, T.; Boonrin, C.; Wechayan, C.; Loryuenyong, V. Oyster and Pyramidella shells as heterogeneous catalysts for the microwave-assisted biodiesel production from Jatropha curcas oil. J. Chem. 2015, 2015, 578625. [Google Scholar] [CrossRef] [Green Version]
  10. Buasri, A.; Lukkanasiri, M.; Nernrimnong, R.; Tonseeya, S.; Rochanakit, K.; Wongvitvichot, W.; Masa-ard, U.; Loryuenyong, V. Rapid transesterification of Jatropha curcas oil to biodiesel using novel catalyst with a microwave heating system. Korean J. Chem. Eng. 2016, 33, 3388–3400. [Google Scholar] [CrossRef]
  11. Kolakoti, A.; Setiyo, M.; Rochman, M.L. A green heterogeneous catalyst production and characterization for biodiesel production using RSM and ANN approach. Int. J. Renew. Energy Dev. 2022, 11, 703–712. [Google Scholar] [CrossRef]
  12. El-Khashab, N.A.; Marwa Mohamed Naeem, M.M.; Roushdy, M.H. Optimum biodiesel production using ductile cast iron as a heterogeneous catalyst. ChemEngineering 2022, 6, 40. [Google Scholar] [CrossRef]
  13. Matei, D.; Doicin, B.; Cursaru, D.; Ezeanu, D.S. Yield optimization using artificial neural networks in biodiesel production from soybean oil. Rev. Chim. 2020, 71, 132–140. [Google Scholar] [CrossRef]
  14. Thoai, D.N.; Tongurai, C.; Prasertsit, K.; Kumar, A. Predictive capability evaluation of RSM and ANN in modeling and optimization of biodiesel production from palm (Elaeisguineensis) oil. Int. J. Appl. Eng. Res. 2018, 13, 7529–7540. [Google Scholar]
  15. Milić, P.S.; Rajković, K.M.; Stamenković, O.S.; Veljković, V.B. Kinetic modeling and optimization of maceration and ultrasound-extraction of resinoid from the aerial parts of white lady’s bedstraw (Galium mollugo L.). Ultrason. Sonochem. 2013, 20, 525–534. [Google Scholar] [CrossRef]
  16. Ayoola, A.A.; Hymore, F.K.; Omonhinmin, C.A.; Babalola, P.O.; Fayomi, O.S.I.; Olawole, O.C.; Olawepo, A.V.; Babalola, A. Response surface methodology and artificial neural network analysis of crude palm kernel oil biodiesel production. Chem. Data Collect. 2020, 28, 100478. [Google Scholar] [CrossRef]
  17. Farobie, O.; Hasanah, N.; Matsumura, Y. Artificial neural network modeling to predict biodiesel production in supercritical methanol and ethanol using spiral reactor. Procedia Environ. Sci. 2015, 28, 214–223. [Google Scholar] [CrossRef] [Green Version]
  18. Haryanto, A.; Saputra, T.W.; Telaumbanua, M.; Gita, A.C. Application of artificial neural network to predict biodiesel yield from waste frying oil transesterification. Indones. J. Sci. Technol. 2020, 5, 62–74. [Google Scholar] [CrossRef]
  19. Hariram, V.; Bose, A.; Seralathan, S. Dataset on optimized biodiesel production from seeds of Vitis vinifera using ANN, RSM and ANFIS. Data Br. 2019, 25, 104298. [Google Scholar] [CrossRef]
  20. Weldeslase, M.G.; Benti, N.E.; Desta, M.A.; Mekonnen, Y.S. Maximizing biodiesel production from waste cooking oil with lime based zinc doped CaO using response surface methodology. Sci. Rep. 2023, 13, 4430. [Google Scholar] [CrossRef]
  21. Sarve, A.N.; Varma, M.N.; Sonawane, S.S. Response surface optimization and artificial neural network modeling of biodiesel production from crude mahua (Madhuca indica) oil under supercritical ethanol conditions using CO2 as co-solvent. RSC Adv. 2015, 5, 69702–69713. [Google Scholar] [CrossRef]
  22. Buasri, A.; Lertnimit, S.; Nisapruksachart, A.; Khunkha, I.; Loryuenyong, V. Box-Behnken design for optimization on esterification of free fatty acids in waste cooking oil using modified smectite clay catalyst. ASEAN J. Chem. Eng. 2023, 23, 40–51. [Google Scholar] [CrossRef]
  23. Betiku, E.; Odude, V.O.; Ishola, N.B.; Bamimore, A.; Osunleke, A.S.; Okeleye, A.A. Predictive capability evaluation of RSM, ANFIS and ANN: A case of reduction of high free fatty acid of palm kernel oil via esterification process. Energy Convers. Manag. 2016, 124, 219–230. [Google Scholar] [CrossRef]
  24. Kumar, S.; Singh, J.; Fore, V.; Kumar, A. Performance evaluation of ANFIS, ANN and RSM in biodiesel synthesis from Karanja oil with domestic microwave set up. Multimed. Tools Appl. 2023; in press. [Google Scholar]
  25. Ezekannagha, C.B.; Ude, C.N.; Onukwuli, O.D. Optimization of the methanolysis of lard oil in the production of biodiesel with response surface methodology. Egypt. J. Pet. 2017, 26, 1001–1011. [Google Scholar] [CrossRef]
  26. Attari, A.; Abbaszadeh-Mayvan, A.; Taghizadeh-Alisaraei, A. Process optimization of ultrasonic-assisted biodiesel production from waste cooking oil using waste chicken eggshell-derived CaO as a green heterogeneous catalyst. Biomass Bioenerg. 2022, 158, 106357. [Google Scholar] [CrossRef]
  27. Laskar, I.B.; Deshmukhya, T.; Biswas, A.; Paul, B.; Changmai, B.; Gupta, R.; Chatterjee, S.; Rokhum, S.L. Utilization of biowaste-derived catalysts for biodiesel production: Process optimization using response surface methodology and particle swarm optimization method. Energy Adv. 2022, 1, 287. [Google Scholar] [CrossRef]
  28. Dhawane, S.H.; Kumar, T.; Halder, G. Central composite design approach towards optimization of flamboyant pods derived steam activated carbon for its use as heterogeneous catalyst in transesterification of Hevea brasiliensis oil. Energy Convers. Manag. 2015, 100, 277–287. [Google Scholar] [CrossRef]
  29. Mostafaei, M.; Ghobadian, B.; Barzegar, M.; Banakar, A. Optimization of ultrasonic assisted continuous production of biodiesel using response surface methodology. Ultrason. Sonochem. 2015, 27, 54–61. [Google Scholar] [CrossRef]
  30. Ansori, A.; Mahfud, M. Box-Behnken design for optimization on biodiesel production from palm oil and methyl acetate using ultrasound assisted interesterification method. Period. Polytech. Chem. Eng. 2022, 66, 30–42. [Google Scholar]
  31. Sai Bharadwaj, A.V.S.L.; Singh, M.; Niju, S.; Meera Sheriffa Begum, K.M.; Anantharaman, N. Biodiesel production from rubber seed oil using calcium oxide derived from eggshell as catalyst—Optimization and modeling studies. Green Process. Synth. 2019, 8, 430–442. [Google Scholar] [CrossRef]
  32. Kumar, S.; Aggrawal, M.; Kumar, N.; Deswal, V. Optimisation and prediction of Karanja oil transesterification with domestic microwave by RSM and ANN. Int. J. Ambient Energy 2022, 43, 3744–3751. [Google Scholar] [CrossRef]
  33. Samuel, O.D.; Okwu, M.O.; Tartibu, L.K.; Giwa, S.O.; Sharifpur, M.; Jagun, Z.O.O. Modelling of Nicotiana tabacum L. oil biodiesel production: Comparison of ANN and ANFIS. Front. Energy Res. 2021, 8, 612165. [Google Scholar] [CrossRef]
  34. Adizue, U.L.; Nwanya, S.C.; Ozor, P.A. Artificial neural network application to a process time planning problem for palm oil production. Eng. Appl. Sci. Res. 2020, 47, 161–169. [Google Scholar]
  35. Huang, J.; Wang, J.; Huang, Z.; Liu, T.; Li, H. Photothermal technique-enabled ambient production of microalgae biodiesel: Mechanism and life cycle assessment. Bioresour. Technol. 2023, 369, 128390. [Google Scholar] [CrossRef]
  36. Matei, P.L.; Busuioc, C.; Ionescu, N.; Stoica-Guzun, A.; Chira, N.-A. Cnicus benedictus oil as a raw material for biodiesel: Extraction optimization and biodiesel Yield. Sustainability 2021, 13, 13193. [Google Scholar] [CrossRef]
  37. Farobie, O.; Hasanah, N. Artificial neural network approach to predict biodiesel production in supercritical tert-butyl methyl ether. Indones. J. Sci. Technol. 2016, 1, 23–36. [Google Scholar] [CrossRef] [Green Version]
  38. Akinfalabi, S.-I.; Rashid, U.; Yunus, R.; Taufiq-Yap, Y.H. Synthesis of biodiesel from palm fatty acid distillate using sulfonated palm seed cake catalyst. Renew. Energ. 2017, 111, 611–619. [Google Scholar] [CrossRef]
  39. Akinfalabi, S.-I.; Rashid, U.; Shean, T.Y.C.; Nehdi, I.A.; Sbihi, H.M.; Gewik, M.M. Esterification of palm fatty acid distillate for biodiesel production catalyzed by synthesized kenaf seed cake-based sulfonated catalyst. Catalysts 2019, 9, 482. [Google Scholar] [CrossRef] [Green Version]
  40. Buasri, A.; Loryuenyong, V. Continuous production of biodiesel from rubber seed oil using a packed bed reactor with BaCl2 impregnated CaO as catalyst. Bull. Chem. React. Eng. Catal. 2018, 13, 320–330. [Google Scholar] [CrossRef]
Figure 1. Experimental setup for biodiesel synthesis from UCO in a microwave reactor.
Figure 1. Experimental setup for biodiesel synthesis from UCO in a microwave reactor.
Chemengineering 07 00065 g001
Figure 2. Schematic of making biodiesel from UCO and methanol with an SPSC catalyst in a microwave reactor using BBD and ANN modeling.
Figure 2. Schematic of making biodiesel from UCO and methanol with an SPSC catalyst in a microwave reactor using BBD and ANN modeling.
Chemengineering 07 00065 g002
Figure 3. Actual vs. predicted biodiesel yield using BBD modeling.
Figure 3. Actual vs. predicted biodiesel yield using BBD modeling.
Chemengineering 07 00065 g003
Figure 4. Three-dimensional response surface and interaction plots of biodiesel yield for all design conditions using BBD modeling.
Figure 4. Three-dimensional response surface and interaction plots of biodiesel yield for all design conditions using BBD modeling.
Chemengineering 07 00065 g004aChemengineering 07 00065 g004b
Figure 5. Optimized process condition using BBD modeling.
Figure 5. Optimized process condition using BBD modeling.
Chemengineering 07 00065 g005
Figure 6. The desirability contour plots and %biodiesel yield at optimal reaction conditions using BBD modeling.
Figure 6. The desirability contour plots and %biodiesel yield at optimal reaction conditions using BBD modeling.
Chemengineering 07 00065 g006
Figure 7. Diagnostic plots for BBD modeling adequacy.
Figure 7. Diagnostic plots for BBD modeling adequacy.
Chemengineering 07 00065 g007
Figure 8. Topology network of 3-10-1 for ANN modeling. Weights (W) and biases (b) are neural network classification parameters.
Figure 8. Topology network of 3-10-1 for ANN modeling. Weights (W) and biases (b) are neural network classification parameters.
Chemengineering 07 00065 g008
Figure 9. Regression plots of training, validation, test, and overall data for ANN modeling.
Figure 9. Regression plots of training, validation, test, and overall data for ANN modeling.
Chemengineering 07 00065 g009
Figure 10. Performance plot of MSE with respect to number of iterations for ANN modeling.
Figure 10. Performance plot of MSE with respect to number of iterations for ANN modeling.
Chemengineering 07 00065 g010
Figure 11. Error histogram of the selected network for ANN modeling.
Figure 11. Error histogram of the selected network for ANN modeling.
Chemengineering 07 00065 g011
Figure 12. Comparison of experimental and predicted biodiesel yield using BBD and ANN modeling.
Figure 12. Comparison of experimental and predicted biodiesel yield using BBD and ANN modeling.
Chemengineering 07 00065 g012aChemengineering 07 00065 g012b
Figure 13. Reusability of SPSC catalyst under optimal reaction conditions (catalyst content of 4.94 wt.%, methanol/UCO mole ratio of 16.76:1, and irradiation time of 8.13 min).
Figure 13. Reusability of SPSC catalyst under optimal reaction conditions (catalyst content of 4.94 wt.%, methanol/UCO mole ratio of 16.76:1, and irradiation time of 8.13 min).
Chemengineering 07 00065 g013
Table 1. Process variables and code levels of BBD modeling for biodiesel production.
Table 1. Process variables and code levels of BBD modeling for biodiesel production.
Process VariablesSymbolUnitsLevels
Low
−1
Mid
0
High
+1
Catalyst contentAwt.%3.05.07.0
Methanol/UCO mole ratioBmol/mol12:115:118:1
Irradiation timeCMin5.07.09.0
Table 2. Process parameters of ANN training, modeling, and optimization for biodiesel production [15].
Table 2. Process parameters of ANN training, modeling, and optimization for biodiesel production [15].
PropertyValue/Comment
Training algorithmLevenberg-Marquardt (LM) or trainlm
Back-propagation (BP)
LearningSupervised
Input layerNo transfer function is used
Hidden layerTANSIG transfer function
Output layerPURELIN transfer function
Number of best iterations/epoch5
Number of input neurons3
Number of hidden neurons10
Number of output neurons1
Table 3. Experimental and predicted biodiesel yield of 20 runs using BBD modeling.
Table 3. Experimental and predicted biodiesel yield of 20 runs using BBD modeling.
RunA
Catalyst Content
(wt.%)
B
Methanol/UCO Mole Ratio
(mol/mol)
C
Irradiation Time
(min)
Experimental
Biodiesel Yield
(%)
Predicted
Biodiesel Yield
(%)
151579089.68
251254342.25
351579089.68
451579089.68
551579089.68
631275150.82
771274445.34
851295655.56
951579089.68
1051579089.68
1131879089.01
1251579089.68
1331598484.11
1471557777.31
1571598583.78
1651899696.62
1771879998.39
1851579089.68
1951859292.44
2031557273.08
Table 4. ANOVA for the fitted polynomial quadratic model of biodiesel yield using BBD modeling.
Table 4. ANOVA for the fitted polynomial quadratic model of biodiesel yield using BBD modeling.
SourceSum of SquaresDfMean SquareF-Valuep-Value
Model5758.989639.89909.89<0.0001
A—Catalyst content7.6117.6110.810.0082
B—Methanol/UCO mole ratio4162.8314162.835919.32<0.0001
C—Irradiation time153.041153.04217.61<0.0001
AB55.20155.2078.50<0.0001
AC5.2015.207.390.0216
BC20.84120.8429.630.0003
A2136.631136.63194.27<0.0001
B2811.001811.001153.20<0.0001
C298.39198.39139.91<0.0001
Residual7.03100.7033
Lack of fit7.0132.34681.75<0.0001
Pure error0.024070.0034
Cor. total5766.0219
Table 5. Validation of experimental results for BBD and ANN modeling.
Table 5. Validation of experimental results for BBD and ANN modeling.
ModelA
Catalyst Content
(wt.%)
B
Methanol/UCO Mole Ratio
(mol/mol)
C
Irradiation Time
(min)
Predicted
Biodiesel Yield
(%)
Validation
Biodiesel Yield
(%)
BBD4.9416.768.1398.6298
ANN718798.5398
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Buasri, A.; Sirikoom, P.; Pattane, S.; Buachum, O.; Loryuenyong, V. Process Optimization of Biodiesel from Used Cooking Oil in a Microwave Reactor: A Case of Machine Learning and Box–Behnken Design. ChemEngineering 2023, 7, 65. https://0-doi-org.brum.beds.ac.uk/10.3390/chemengineering7040065

AMA Style

Buasri A, Sirikoom P, Pattane S, Buachum O, Loryuenyong V. Process Optimization of Biodiesel from Used Cooking Oil in a Microwave Reactor: A Case of Machine Learning and Box–Behnken Design. ChemEngineering. 2023; 7(4):65. https://0-doi-org.brum.beds.ac.uk/10.3390/chemengineering7040065

Chicago/Turabian Style

Buasri, Achanai, Phensuda Sirikoom, Sirinan Pattane, Orapharn Buachum, and Vorrada Loryuenyong. 2023. "Process Optimization of Biodiesel from Used Cooking Oil in a Microwave Reactor: A Case of Machine Learning and Box–Behnken Design" ChemEngineering 7, no. 4: 65. https://0-doi-org.brum.beds.ac.uk/10.3390/chemengineering7040065

Article Metrics

Back to TopTop