Next Article in Journal
A Highly Efficient and Durable Kirigami Triboelectric Nanogenerator for Rotational Energy Harvesting
Next Article in Special Issue
Deep Learning-Based Approaches to Optimize the Electricity Contract Capacity Problem for Commercial Customers
Previous Article in Journal
Analysis of Technical Capabilities, Methodology and Test Results of a Light-Commercial Vehicle Conversion to Battery Electric Powertrain
Previous Article in Special Issue
A Review of Deep Learning Techniques for Forecasting Energy Use in Buildings
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning-Based Predictive Modelling of Biodiesel Production—A Comparative Perspective

by
Krishna Kumar Gupta
1,
Kanak Kalita
2,*,
Ranjan Kumar Ghadai
3,
Manickam Ramachandran
4 and
Xiao-Zhi Gao
5
1
Department of Mechanical Engineering, MPSTME, SVKM’s Narsee Monjee Institute of Management Studies (NMIMS), Shirpur Campus, Dhule 425 405, India
2
Department of Mechanical Engineering, Vel Tech Rangarajan Dr. Sagunthala R&D Institute of Science and Technology, Avadi 600 062, India
3
Department of Mechanical Engineering, Sikkim Manipal Institute of Technology, Sikkim Manipal University, Majitar 737 136, India
4
Data Analytics Lab, REST Labs, Kaveripattinam, Krishnagiri 635 112, India
5
School of Computing, University of Eastern Finland, FI-70211 Kuopio, Finland
*
Author to whom correspondence should be addressed.
Energies 2021, 14(4), 1122; https://doi.org/10.3390/en14041122
Submission received: 25 January 2021 / Revised: 12 February 2021 / Accepted: 14 February 2021 / Published: 20 February 2021
(This article belongs to the Special Issue Machine Learning Prediction Models in Energy Systems)

Abstract

:
Owing to the ever-growing impetus towards the development of eco-friendly and low carbon footprint energy solutions, biodiesel production and usage have been the subject of tremendous research efforts. The biodiesel production process is driven by several process parameters, which must be maintained at optimum levels to ensure high productivity. Since biodiesel productivity and quality are also dependent on the various raw materials involved in transesterification, physical experiments are necessary to make any estimation regarding them. However, a brute force approach of carrying out physical experiments until the optimal process parameters have been achieved will not succeed, due to a large number of process parameters and the underlying non-linear relation between the process parameters and responses. In this regard, a machine learning-based prediction approach is used in this paper to quantify the response features of the biodiesel production process as a function of the process parameters. Three powerful machine learning algorithms—linear regression, random forest regression and AdaBoost regression are comprehensively studied in this work. Furthermore, two separate examples—one involving biodiesel yield, the other regarding biodiesel free fatty acid conversion percentage—are illustrated. It is seen that both random forest regression and AdaBoost regression can achieve high accuracy in predictive modelling of biodiesel yield and free fatty acid conversion percentage. However, AdaBoost may be a more suitable approach for biodiesel production modelling, as it achieves the best accuracy amongst the tested algorithms. Moreover, AdaBoost can be more quickly deployed, as it was seen to be insensitive to number of regressors used.

1. Introduction

Biodiesel is a kind of nontoxic and biodegradable fuel, which is aromatic and sulfur free. The production of biodiesel is due to the transesterification reaction between the waste oil and different alcohols like methanol or ethanol [1,2]. In recent years, the importance of biodiesel has been increasing due to the reduction of total petroleum reserves in the world and the increase of global warming issues. It has been observed that each year, the use of petroleum is increasing exponentially, which can lead to complete depletion of its reserves by 2042 [3]. This alarming situation is boosting the interest of researchers to actively work on the substitute of petroleum products. Biodiesel can be considered as an alternative to fossil fuels used in the diesel engine without any major modification. Nowadays, researchers are showing interest in the use of vegetable oil to produce biodiesel, which is less polluting compared to petroleum. If biodiesels are used effectively for the generation of energy, it would be extremely beneficial for the environment as well as for the job creation of local people. Since many biodiesel sources are indigenous (for example, Calophyllum inophyllum is native to Asia [4]) or abundant (for example, Brazil and US leads in soybean production [5]) to specific regions, its usage will motivate the local farmers to cultivate such sources. In recent years, various processes have been used to produce biodiesel from different oils like soybean oil, canola oil, palm oil, sunflower seed oil etc. [6,7,8].
Various operating parameters such as reaction time, reaction temperature, the molar ratio of oil/alcohol, catalyst yield percentage etc. can significantly affect the yield of biodiesel using transesterification reaction [9]. The optimization of various factors of transesterification reaction needs the conduction of many experiments, as well as the suitable statistical tool which can predict the effect of each factor over the reaction and their interactions. A response surface methodology (RSM) approach has been used widely for the optimization of process factors to get the required output by conducting a smaller number of experiments [10,11]. Various designs of experiment (DOE), like Taguchi experimental design, factorial design, central composite design (CCD), box-banging design (BBD) etc., are used to perform the number of experiments. Different authors have used different DOE and statistical techniques to optimize process factors. Hameed et al. used central composite design (CCD) to optimize different operating factors such as reaction time, catalyst amount and methanol/oil molar ratio for making the biodiesel from palm oil. It is observed that 9.72 h of reaction time, 11.43% of methanol/oil ratio and 5.52% of catalyst amount can maximize the biodiesel yield to 89.23% [12]. Ahmad et al. [13] used the face-centred central composite design (FCCD) method to optimize the operating parameters, like reaction temperature, the volume ratio of methanol/oil, reaction time and catalyst weight percentage for getting the highest yield of biodiesel performing through a transesterification reaction. Their results showed that using flaxseed oil at 33 min reaction time, 0.51% catalyst, 59 °C reaction temperature and 1:5.9 molar ratio of flaxseed oil to methanol can maximize the yield of biodiesel to 99.5% [13]. Jayaprabakar et al. developed biodiesel by using sheepskin fat of New Zealand origin (SSFNO) and 7% free fatty acid (FFA) content and used the response surface methodology (RSM) to optimize the esterification of SSNFO. Around 92% yield of SSFNO was achieved by optimizing different operating factors like reaction temperature, methanol: SSFNO mole ratio and reaction time [14]. Matinja et al. used BBD technique to optimize the process factors like palm oil mill effluent (POME)/methanol ratio, the weight of the immobilized beads, reaction time and agitation speed to produce biodiesel from POME. The highest yield was achieved at a 300-rpm agitation speed, 5 h of incubation, methanol/oil molar ratio (6:1), and 2 kg weight of the immobilized beads [15].
In this work, three machine learning algorithms—linear regression, random forest regression and AdaBoost regression—are used to predict the biodiesel production process responses based on the process parameters. To illustrate the methodology and carry out a robust study, two separate examples from the literature are presented. In the first example, the biodiesel production yield is estimated based on the process parameters. In the second example, the biodiesel free fatty acid conversion percentage is estimated based on the production process parameters. The machine learning regression predictive models are comprehensively compared using several error metrics.

2. Materials and Methods

2.1. Machine Learning Algorithms

2.1.1. Linear Regression

The linear regression predicts the dependent variable ( y ) by expressing it as a linear function of the predictor variable ( x ). In general, for a single predictor variable regression problem, the y is monotonically linked to the x i.e., any change in x will increase/decrease y . A scatter plot between x and y reveals the general trend, on which then a best line fit is done of the following form [16],
The general formula for the linear regression is:
y = a + b x
where a and b represent y -intercept and slope of the fitting line of the linear regression, respectively. In case the best fit line passes through origin, the equation becomes
y = b x
Generalized linear regression model for any response ( y ) and its predictors ( x 1 , x 2 , , x n ), i.e., biodiesel production process parameters in this case can be stated as:
y = β 0 + β 1 x 1 + β 2 x 2 + β 3 x n

2.1.2. Random Forest Regression

Random forest regression is an ensemble technique based on the concept of bagging and random subspace methods. Bagging or bootstrap aggregation is responsible for creating an ensemble of learner trees. These learner trees are trained on separate and independent bootstrap samples drawn from the original training dataset. From an original training dataset, D with N examples a bootstrap sample (Db) is constituted by randomly drawing n examples from D with replacement. Db is approximately two-third of D, without any duplicate examples. K number of independent regression trees are created for the bootstrap samples with input vector x. These regression trees generally have low bias and high variance. The random forest ensemble prediction is then obtained by calculating the mean of the prediction of the K regression trees,   h k ( x ) [17].
Random   forest   prediction =   1 K k = 1 K h k ( x )
Bagging reduces the variance in the ensemble model as compared to the individual decision trees. It also prevents overfitting of the model. It is important that the regression trees are not correlated. Samples other than those selected for training the kth regression tree during bagging are grouped as another subset called out-of-bag data (OOB). OOB data constitute roughly one-third of D. The kth regression tree’s performance is evaluated using the OOB data using the following equation,
M S E O O B = 1 n i = i n ( y i y i ¯ O O B ) 2
where M S E O O B is the mean squared error, y i is the ith prediction and y i ¯ O O B is the mean of ith prediction from all the trees.
Similarly, the R 2 O O B is computed using the following equation,
R 2 O O B = 1 M S E O O B / V a r y
where V a r y is the total variance of the response.

2.1.3. Adaptive Boosting Regression

AdaBoost or adaptive boosting is a sequential ensemble technique which is based on the principle of developing several weak learners using different training sub-sets drawn randomly from the original training dataset. During each training, weights are assigned which is used when learning each hypothesis. The weights are used for computation of the error of the hypothesis on the dataset and is an indicator of the comparative importance of each instance. The weights are recalculated after every iteration, such that incorrectly classified instances by the last hypothesis receive higher weights. This enables the algorithm to focus on more difficult to learn instances. Assigning revised weights to the incorrectly classified instances is the most vital task of the algorithm. Unlike in classification, in regression, the instances are not correct or incorrect, rather they constitute a real-value error. By comparing the computed error to a predefined threshold prediction error, it can be labelled as an error or not error and thus, the AdaBoost classifier can be used. Instances with larger error on previous learners are more likely (i.e., higher probability) to be selected for training the subsequent base learner. Finally, weighted average or median is used to provide an ensemble prediction of the individual base learner predictions [17].

2.1.4. Predictive Model Performance Evaluation Metrics

The residue,   ε i between the ith original value,   y i and predicted value,   y i ^ is calculated as,
ε i = y i y i ^
The coefficient of determination, R 2 is computed using the y i ,   y i ^ and the mean of the dataset, y ¯ .
R 2 = 1 i = 1 n ( y i y i ^ ) 2 i = 1 n ( y i y ¯ ) 2
The mean-absolute-error, MAE, is computed based on the number of the samples, n as
MAE = i = 1 n | y i   y ^ i | n
The mean-squared-error, MSE, is computed as
MSE = i = 1 n ( y i   y ^ i ) 2 n
The root-mean-squared-error, RMSE, is computed as
RMSE = i = 1 n ( y i   y ^ i ) 2 n
The maximum error is computed as
Max .   Error   ( y ,   y ^ ) = max .   ( | y i   y ^ i | )
The median error is computed as
Med .   Error   ( y , y ^ ) = median   ( | y 1 y ^ 1 | , , | y n y ^ n | )

3. Results and Discussion

3.1. Example 1: Biodiesel Production Yield Estimation

The experimental data (presented in Appendix A, Table A1) are taken from Ahmad et al. [13,18], where alkali (KOH) is used as a catalyst. The production of biodiesel from flaxseed oil followed by two steps transesterification reaction. The flaxseed oil was purchased from Bale-Robe, Ethiopia. KOH, sulfuric acid (H2SO4) and methanol (CH3OH) were purchased from Sigma Aldrich. To remove the moisture content, the oil was pre-heated for 30 min at 110 °C. For the preparation of various percentage of catalyst, a certain amount of KOH pellets was dissolved in the methanol. The preheated flaxseed oil was cooled in a specific temperature (30, 50 and 65 °C) and after that potassium methoxide (CH3KO) solution was mixed. The CH3KO solution was mixed with the pre-heated oil in a 250 mL three-neck glass reactor and fixed over a magnetic stirrer with constant stirring at the above specific temperature. Then, the mixture was kept at three different reaction times (30, 45 and 60 min). For proper settling, the mixture was kept overnight in a different funnel. For the purification of the biodiesel, water washing method was considered. To prevent the formation of foam, the mixture was stirred slowly. After that, the mixture was put down overnight to settle into two different phases i.e., biodiesel phase and water impurity phase. To ensure the elimination of contaminates from the biodiesel, the above process was carried out for three times. After that, the biodiesel was heated for 1 h at 100 °C for the evaporation of residual water. For quantifying the biodiesel titration of biodiesel, fraction was used with 0.1 N sulphuric acid [19]. For the physicochemical characterization of flaxseed oil and biodiesel, standard procedures were considered, and it has been explained by Ahmad et al. [13,18]. For finding the fatty acid constituents, flaxseed oil was analysed, and the complete procedures have been discussed by Ahmad et al. [13,18]. In the present case, central composite design (CCD) has been considered for the design of experiments. Two different ways are there to perform CCD; one is face-centred central composite design (FCCD) and the other is rotatable central composite design (RCCD). Here, FCCD is used to find the influence of different process parameters for the maximum biodiesel yield. For the design of the experiment, two levels and four factors with five different centred point values have been considered. A total of 29 experiments have been performed by considering the FCCD. The process parameter chosen for the experiments is reaction time, methanol/oil molar ratio ( M r ), reaction temperature and catalyst weight percentage, and this has been discussed by Ahmad et al. [13,18].

3.1.1. Effect of Process Parameters

The training data based on the experiments conducted by Ahmad et al. [13,18] are shown in the form of scatter plots in Figure 1 and in Table A1. Since a central composite design was used for the experimental design, the process parameters for biodiesel production are seen to be distributed primarily across three levels in each case. The yield versus methanol/oil molar ratio ( M r ) scatter plot indicates that the yield is better at higher M r . However, from the other three scatter plots of yield versus process parameters, it is non-conclusive of the effect of various levels of the process parameters. The histogram of the yield indicates that the median of all the experimentally calculated yields is around 96%.
The correlation between the various process parameters and the yield is studied in Figure 2. There is a negligible correlation among the process parameters, which confirms the lack of multicollinearity. Multicollinearity, if present, could lower the statistical power of the regressions. The methanol/oil molar ratio ( M r ) shows a moderately strong positive correlation (0.68) to yield. The yield is also seen to have a negligible correlation with catalyst weight and reaction time. However, as seen from Figure 2, a very weak positive correlation (0.19) exists between the temperature and yield. This is indicative that low levels of temperature, on an average, will not lead towards very high biodiesel yield. Thus, the analysis of the experimental data on biodiesel yield, as shown in Figure 1 and Figure 2, suggests that a brute force approach to find the best process parameter combination to maximize the yield will be extremely cost intensive. Due to the lack of clear trend in the scatter plots in Figure 2, an exhaustive experimental analysis of all possible process parameter combinations may be needed. This justifies the need for advanced machine learning algorithms to build predictive models to quantify the yield as function of the process parameters.

3.1.2. Linear Regression Predictive Model

Based on the training data presented in Table A1, a linear regression predictive model of the yield % is developed. An empirical relation describing the yield % as a function of the methanol/oil molar ratio ( M r ), catalyst weight ( W c ), temperature ( T ) and reaction time ( T r ) is developed as shown in Equation (14).
Y i e l d   % = β 0 + β 1 M r + β 2 W c + β 3 T + β 4 T r
Figure 3 shows the predictive performance of the linear regression predictive model. The actual yield % is plotted against linear regression predictive model-based predicted yield % in Figure 3a. The data points lying above the identity line indicate that the linear regression predictive model has overpredicted the yield %, while data points lying below the identity line indicate underprediction. The best line fit for the data points is generated and the R 2 is calculated which indicates the goodness of fit of the predictive model on the training data. It is seen that the predictive power of the linear regression predictive model is moderate, with an R 2 of about 52%. The performance of the linear regression predictive model is further analysed by using a predicted versus residuals plot in Figure 3b. It is seen that at low predicted values, the residuals are highest.

3.1.3. Random Forest Regression Predictive Model

Using the training data, random forest regression predictive models are developed to quantify the yield % as a function of methanol/oil molar ratio ( M r ), catalyst weight ( W c ), temperature ( T ) and reaction time ( T r ). Since the number of regressors in the random forest has a significant effect on the accuracy and performance of the predictive model, a sensitivity study on the effect of regressors is carried out. The number of regressors in the random forest approach is varied from 100 to 900 and the various error metrics are recorded. Figure 4 shows the effect of regressors on R 2 , MAE, MSE, RMSE, Max. Error and MedAE. It is seen from Figure 4a that the R 2 is best for 800 regressors. Similarly, for 800 regressors, lowest MAE, MSE, RMSE and Max. Error are achieved. However, the MedAE is found to be lowest for the 900 regressors random forest predictive model.
Figure 5a shows the predictive pattern of the selected random forest predictive model. A high R 2 of approximately 89% is achieved with 800 regressors random forest predictive model. Most of the data points are seen to lie on the identity line, indicating the high correlation between actual and predicted results. The residuals plot is shown in Figure 5b, showing that the error in random forest predictive model is much lower than the linear regression predictive model.

3.1.4. AdaBoost Predictive Model

AdaBoost regression predictive model is developed using 100 regressors. A sensitivity study shows that the number of regressors has a negligible impact on the predictive power of the AdaBoost regression predictive model. Figure 6a shows that the R 2 of the AdaBoost regression predictive model is approximately 91%, indicating that the AdaBoost regression predictive model can successfully model 91% variance in the training data. The residuals plot in Figure 6b shows almost a similar pattern in negative and positive residuals, indicating a balanced prediction for most of the cases, without much underprediction or overprediction.

3.1.5. Comparison of Various ML Predictive Models

The comparison of the machine learning predictive models in Figure 7 shows that the AdaBoost predictive model performs a little better than the random forest regression and comprehensively outperforms the linear regression predictive model. The performance of the machine learning predictive models on various error metrics like MSE, MAE, Max. Error and MedAE are shown in Figure 7b. It is observed that the MSE and the MAE are lowest for AdaBoost regression predictive model. However, Max. Error and MedAE are least for the random forest regression predictive model. Thus, overall, the performance of random forest regression predictive model and AdaBoost regression predictive model is seen to be on par with each other. However, AdaBoost regression predictive model has a distinct advantage in this study over random forest regression predictive model that it is almost insensitive to the number of regressors.

3.2. Example 2: Biodiesel FFA Conversion Percentage Estimation

The experimental data (presented in Appendix A, Table A2) are taken from Karmakar et al. [20], where castor oil of commercial grade has been considered as a raw material to produce biodiesel. To remove the moisture and impurities, the oil was dried by using the hot air within the temperature range of 100–110 °C. Propan-2-ol, sulphuric acid, methanol and potassium hydroxide were considered as the solvent. To get the deionized water, Arium 611 DI ultra-pure water system of Sartorius A. G was used. By using ASTM standardized experiments, castor oil was characterized. ASTM Method D974 was used to estimate the acid value of castor. In the present case, L16 orthogonal array was used to experiment. The esterification of castor oil was done either by using a homogeneous acid catalyst (H2SO4) or heterogeneous sulfonated carbon catalyst. During esterification, one neck was fitted to the thermometer to measure the temperature. To decrease the evaporative loss of the methanol, the other neck was fixed with the reflux condenser. To add the reagent the middle neck was used. Then, the methanol was moved to the reactor after heating the oil up to the set temperature. Due to the transfer of methanol, the temperature within the reactor dropped. The adjustment of plate temperature and mixture temperature was done with the help of magnetic stirrer hotplate and the temperature was fixed according to the experimental design. The acid catalyst was added after getting the desired temperature and then the reaction was allowed for the fixed time duration for experimental design. The Whatman series 40 filter paper is used for the removal of sulfonated carbon catalyst. The distillation process is used to retrieve the unused methanol. After that, the mixture was kept for 10 h to separate it into two different layers. The top layer of the mixture is the FAME rich phase while the bottom layer of the mixture is an aqueous phase, which was drained out. Then, the FAME was washed several times in the deionized water to remove acid catalyst and residual alcohol. To purify the crude biodiesel according to international standard, refining was done.

3.2.1. Effect of Process Parameters

The training data presented in Table A2 are from the experiments conducted by Karmakar et al. [20] and are shown in the form of scatter plots in Figure 8. Since an L16 array was used for experimental design, the process parameters are considered at four equally spaced levels. The scatter of the response (i.e., FFA conversion percentage) is seen to be highly dependent on the levels of the process parameters. To further understand the effect of the process parameters on the biodiesel FFA conversion percentage, a correlation study is carried out as shown in Figure 9. It is seen that the process parameters do not correlate themselves, thus, multicollinearity is avoided. Correlation plot among the response and the process parameters show that methanol/oil molar ratio ( M r ) has a moderately high correlation with the response. Agitation speed is seen to have a moderately low effect on the biodiesel FFA conversion percentage.

3.2.2. Linear Regression Predictive Model

Based on the training data listed in Table A2 from Karmakar et al. [20], a linear polynomial regression model of the following form is developed,
F F A   c o n v . % = 23.62 0.0175 T 0.9485 T r 3.8585 W c + 1.5635 M r + 0.03407 S a
Figure 10a shows the scatter of the predicted versus the actual biodiesel FFA conversion percentage. The scatter of the residuals versus the predicted biodiesel FFA conversion percentage is shown in Figure 10b. It is seen that the model achieves moderately high accuracy in terms of R 2 . The scatter of the residuals is random, indicating no ties in the data. Moreover, the random underprediction and overprediction i.e., data points lying randomly under and over the identity line, indicate that the model is not biased in a certain direction.

3.2.3. Random Forest Regression Predictive Model

As established in Section 3.1.3, random forest regression is sensitive to the regressors. Thus, a pilot study is carried out to determine the optimal number of regressors, which in this case is 500. The predicted biodiesel FFA conversion percentage versus the actual one in Figure 11a shows that high accuracy is obtained by the random forest regression predictive model. However, Figure 11b shows that only baring a couple of datapoints, most other residues are within ± 4. This indicates that the three remaining outliers in Figure 11b are responsible for the loss in the prediction power of the predictive model.

3.2.4. AdaBoost Predictive Model

Before developing predictive models with AdaBoost, a sensitivity study is undertaken on the number of regressors which indicate a negligible change in the predictive power of AdaBoost Regression predictive model to the number of regressors. Figure 12a shows the performance of the AdaBoost regression predictive model. It is seen that the predictive model has almost ideal estimation. The residuals versus the predicted biodiesel FFA conversion percentage in Figure 12b reveals that the maximum residue is ±2. Moreover, baring a couple of data points, the remaining residuals are within ±0.5.

3.2.5. Comparison of Various ML Predictive Models

The comparison of the R 2 for the three predictive models in Figure 13a reveals that the AdaBoost regression predictive model has the best estimation power. The MSE of the AdaBoost regression predictive model is almost zero, whereas for random forest regression predictive model, it is around 13. Comparison of the predictive models based on all the error metrics, as shown in Figure 13b indicates that AdaBoost regression predictive model is comprehensively superior as compared to random forest regression predictive model and linear regression predictive model.

4. Conclusions

Building predictive models for the quantification of biodiesel yield based on the level of the process parameters is a realistic goal with a tremendous impact on sustainable development. In this paper, in one illustrative example, the biodiesel yield is modelled as a function of methanol/oil molar ratio ( M r ), catalyst weight ( W c ), reaction temperature ( T ) and reaction time ( T r ). Similarly, in another illustrative example, the free fatty acid conversion percentage is estimated based on reaction temperature ( T ) and reaction time ( T r ), catalyst weight ( W c ), methanol/oil molar ratio ( M r ) and agitation speed ( S a ). A comprehensive comparative analysis is carried out to ascertain the utility of three machine learning techniques (linear regression, random forest regression and AdaBoost regression) for developing predictive models in biodiesel production. A wide range of accuracy and error metrics is used to quantify the efficacy of the machine learning algorithms. Based on the analysis it is seen that the linear regression approach is only able to achieve moderate accuracy, whereas both random forest regression and AdaBoost regression show very high accuracy in predictive modelling of the biodiesel yield. However, a sensitivity study on the effect of the regressors on the predictive performance of random forest regression and AdaBoost regression show that while AdaBoost may be non-sensitive to the number of regressors, the random forest may be significantly affected by the change in the number of regressors. Thus, AdaBoost regression may be preferred for the predictive modelling of biodiesel yield. This would lead to a significant saving in time and effort in identifying the optimum process parameters to increase the yield or FFA conversion % of biodiesel production process.

Author Contributions

Conceptualization, methodology, software, writing—review and editing, K.K., R.K.G., X.-Z.G.; validation, formal analysis, investigation, K.K.G. and M.R.; data curation, writing, original draft preparation, visualization, K.K.G., K.K., R.K.G., M.R. K.K.G. and K.K. contributed equally to this work. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available in the article.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

The dataset used in Section 3.1 and Section 3.2 is presented in Table A1 and Table A2 respectively. The experimental data presented on biodiesel production process presented in Table A1 and Table A2 are taken from [18] and [20] respectively.
Table A1. Biodiesel production process parameters and experimental yield % [18].
Table A1. Biodiesel production process parameters and experimental yield % [18].
Methanol / Oil   Molar   Ratio   ( M r ) Catalyst   Weight   ( W c ) Reaction   Temperature   ( T ) Reaction   Time   ( T r ) Yield (%)
50.7354593.3
61653095.88
50.7503096.62
51504594.9
60.4353096.4
41656092.26
60.4356096.84
50.7504594.22
41356091.04
40.4356084.14
40.7504595.9
60.4656098.1
61353096.86
61356098.72
50.7504596.66
61656095.5
50.4504594.58
60.7504599.54
50.7506095.68
41353094.86
60.4653098.41
40.4353085.88
50.7504596.86
40.4653096.48
50.7654594.52
40.4656092.26
50.7504596.14
41653089.32
50.7504596.18
Table A2. Biodiesel production process parameters and experimental FFA conversion % [20].
Table A2. Biodiesel production process parameters and experimental FFA conversion % [20].
Reaction   Temperature   ( T ) Reaction   Time   ( T r ) Catalyst   Weight   ( W c ) Methanol / Oil   Molar   Ratio   ( M r ) Agitation   Speed   ( S a ) FFA
Conversion %
5022560046.6
501.50.52070084.66
70212050069.27
601.521550052.46
602.51570056.8
402.522080065.35
6020.51080054.3
4010.5550038.48
4021.51570060.1
6011.52060062.1
701.51.5580046.18
70121070054.6
702.50.51560055.06
401.511060052.5
50111580076.97
502.51.51050050.46

References

  1. Bastos, R.R.C.; Corrêa, A.P.D.L.; Da Luz, P.T.S.; Filho, G.N.D.R.; Zamian, J.R.; Da Conceição, L.R.V. Optimization of biodiesel production using sulfonated carbon-based catalyst from an amazon agro-industrial waste. Energy Convers. Manag. 2020, 205, 112457. [Google Scholar] [CrossRef]
  2. Junior, W.A.P.; Takeno, M.L.; Nobre, F.X.; Barros, S.D.S.; Sá, I.S.; Silva, E.P.; Manzato, L.; Iglauer, S.; De Freitas, F.A. Application of water treatment sludge as a low-cost and eco-friendly catalyst in the biodiesel production via fatty acids esterification: Process optimization. Energy 2020, 213, 118824. [Google Scholar] [CrossRef]
  3. Shafiee, S.; Topal, E. When will fossil fuel reserves be diminished? Energy Policy 2009, 37, 181–189. [Google Scholar] [CrossRef]
  4. Naveenkumar, R.; Baskar, G. Optimization and techno-economic analysis of biodiesel production from Calophyllum inophyllum oil using heterogeneous nanocatalyst. Bioresour. Technol. 2020, 315, 123852. [Google Scholar] [CrossRef] [PubMed]
  5. Martins, E.H.; Vilela, A.P.; Mendes, R.F.; Mendes, L.M.; Vaz, L.E.V.D.S.B.; Guimarães, J.B., Jr. Soybean waste in particleboard production. Ciência e Agrotecnologia 2018, 42, 186–194. [Google Scholar] [CrossRef]
  6. Lertsathapornsuk, V.; Pairintra, R.; Aryusuk, K.; Krisnangkura, K. Microwave assisted in continuous biodiesel production from waste frying palm oil and its performance in a 100 kW diesel generator. Fuel Process. Technol. 2008, 89, 1330–1336. [Google Scholar] [CrossRef]
  7. Leung, D.; Guo, Y. Transesterification of neat and used frying oil: Optimization for biodiesel production. Fuel Process. Technol. 2006, 87, 883–890. [Google Scholar] [CrossRef]
  8. Georgogianni, K.; Kontominas, M.; Pomonis, P.; Avlonitis, D.; Gergis, V. Conventional and in situ transesterification of sunflower seed oil for the production of biodiesel. Fuel Process. Technol. 2008, 89, 503–509. [Google Scholar] [CrossRef]
  9. Guo, M.; Jiang, W.; Chen, C.; Qu, S.; Lu, J.; Yi, W.; Ding, J. Process optimization of biodiesel production from waste cooking oil by esterification of free fatty acids using La3+/ZnO-TiO2 photocatalyst. Energy Convers. Manag. 2021, 229, 113745. [Google Scholar] [CrossRef]
  10. Ortega, M.F.; Donoso, D.; Bousbaa, H.; Bolonio, D.; Ballesteros, R.; García-Martínez, M.-J.; Lapuerta, M.; Canoira, L. Optimized Production of Fatty Acid Ethyl Esters (FAEE) from Waste Frying Oil by Response Surface Methodology. Waste Biomass Valorization 2020, 1–8. [Google Scholar] [CrossRef]
  11. Shin, H.-Y.; Lim, S.-M.; Kang, S.C.; Bae, S.-Y. Statistical optimization for biodiesel production from rapeseed oil via transesterificaion in supercritical methanol. Fuel Process. Technol. 2012, 98, 1–5. [Google Scholar] [CrossRef]
  12. Hameed, B.; Lai, L.; Chin, L. Production of biodiesel from palm oil (Elaeis guineensis) using heterogeneous catalyst: An optimized process. Fuel Process. Technol. 2009, 90, 606–610. [Google Scholar] [CrossRef]
  13. Ahmad, T.; Danish, M.; Kale, P.; Geremew, B.; Adeloju, S.B.; Nizami, M.; Ayoub, M. Optimization of process variables for biodiesel production by transesterification of flaxseed oil and produced biodiesel characterizations. Renew. Energy 2019, 139, 1272–1280. [Google Scholar] [CrossRef]
  14. Jayaprabakar, J.; Dawn, S.; Ranjan, A.; Priyadharsini, P.; George, R.; Sadaf, S.; Rajha, C.R. Process optimization for biodiesel production from sheep skin and its performance, emission and combustion characterization in CI engine. Energy 2019, 174, 54–68. [Google Scholar] [CrossRef]
  15. Matinja, A.I.; Zain, N.A.M.; Suhaimi, M.S.; Alhassan, A.J. Optimization of biodiesel production from palm oil mill effluent using lipase immobilized in PVA-alginate-sulfate beads. Renew. Energy 2019, 135, 1178–1185. [Google Scholar] [CrossRef]
  16. Hazra, A.; Gogtay, N. Biostatistics series module 6: Correlation and linear regression. Indian J. Dermatol. 2016, 61, 593–601. [Google Scholar] [CrossRef] [PubMed]
  17. Seo, D.K.; Kim, Y.H.; Eo, Y.D.; Park, W.Y.; Park, H.C. Generation of Radiometric, Phenological Normalized Image Based on Random Forest Regression for Change Detection. Remote Sens. 2017, 9, 1163. [Google Scholar] [CrossRef] [Green Version]
  18. Ahmad, T.; Danish, M.; Kale, P.; Geremew, B.; Adeloju, S.B.; Nizami, M.; Ayoub, M. Conversion of flaxseed oil into biodiesel using KOH catalyst: Optimization and characterization dataset. Data in Brief 2020, 29, 105225. [Google Scholar] [CrossRef]
  19. Kumar, R.; Tiwari, P.; Garg, S. Alkali transesterification of linseed oil for biodiesel production. Fuel 2013, 104, 553–560. [Google Scholar] [CrossRef]
  20. Karmakar, B.; Dhawane, S.H.; Halder, G. Optimization of biodiesel production from castor oil by Taguchi design. J. Environ. Chem. Eng. 2018, 6, 2684–2695. [Google Scholar] [CrossRef]
Figure 1. Scatter plot of the various biodiesel production process parameters and yield.
Figure 1. Scatter plot of the various biodiesel production process parameters and yield.
Energies 14 01122 g001
Figure 2. Correlation between the various biodiesel production process parameters and yield.
Figure 2. Correlation between the various biodiesel production process parameters and yield.
Energies 14 01122 g002
Figure 3. Predictive performance of the linear regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) predicted value versus residuals.
Figure 3. Predictive performance of the linear regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) predicted value versus residuals.
Energies 14 01122 g003
Figure 4. Effect of number of regressors in random forest regression on (a) R 2 ; (b) MAE; (c) MSE;(d) RMSE; (e) Max. Error; (f) MedAE.   R 2 : coefficient of determination; MAE: mean absolute error; MSE: mean squared error; RMSE: root mean squared error; Max. Error: maximum error; MedAE: median error.
Figure 4. Effect of number of regressors in random forest regression on (a) R 2 ; (b) MAE; (c) MSE;(d) RMSE; (e) Max. Error; (f) MedAE.   R 2 : coefficient of determination; MAE: mean absolute error; MSE: mean squared error; RMSE: root mean squared error; Max. Error: maximum error; MedAE: median error.
Energies 14 01122 g004
Figure 5. Predictive performance of the random forest regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) predicted value versus residuals.
Figure 5. Predictive performance of the random forest regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) predicted value versus residuals.
Energies 14 01122 g005
Figure 6. Predictive performance of the AdaBoost regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) predicted value versus residuals.
Figure 6. Predictive performance of the AdaBoost regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) predicted value versus residuals.
Energies 14 01122 g006
Figure 7. Performance of the machine learning predictive models in biodiesel production yield estimation (a) R 2 ; (b) MSE, MAE, Max. Error and MedAE.
Figure 7. Performance of the machine learning predictive models in biodiesel production yield estimation (a) R 2 ; (b) MSE, MAE, Max. Error and MedAE.
Energies 14 01122 g007
Figure 8. Scatter plot of the various biodiesel production process parameters and yield.
Figure 8. Scatter plot of the various biodiesel production process parameters and yield.
Energies 14 01122 g008
Figure 9. Correlation between the various biodiesel production process parameters and yield.
Figure 9. Correlation between the various biodiesel production process parameters and yield.
Energies 14 01122 g009
Figure 10. Predictive performance of the linear regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) predicted value versus residuals.
Figure 10. Predictive performance of the linear regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) predicted value versus residuals.
Energies 14 01122 g010
Figure 11. Predictive performance of the random forest regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) Predicted value versus residuals.
Figure 11. Predictive performance of the random forest regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) Predicted value versus residuals.
Energies 14 01122 g011
Figure 12. Predictive performance of the AdaBoost regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) Predicted value versus residuals.
Figure 12. Predictive performance of the AdaBoost regression predictive model in biodiesel production yield estimation (a) R 2 ; (b) Predicted value versus residuals.
Energies 14 01122 g012
Figure 13. Performance of the machine learning predictive models on (a) R 2 ; (b) MSE, MAE, Max. Error and MedAE.
Figure 13. Performance of the machine learning predictive models on (a) R 2 ; (b) MSE, MAE, Max. Error and MedAE.
Energies 14 01122 g013
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Gupta, K.K.; Kalita, K.; Ghadai, R.K.; Ramachandran, M.; Gao, X.-Z. Machine Learning-Based Predictive Modelling of Biodiesel Production—A Comparative Perspective. Energies 2021, 14, 1122. https://doi.org/10.3390/en14041122

AMA Style

Gupta KK, Kalita K, Ghadai RK, Ramachandran M, Gao X-Z. Machine Learning-Based Predictive Modelling of Biodiesel Production—A Comparative Perspective. Energies. 2021; 14(4):1122. https://doi.org/10.3390/en14041122

Chicago/Turabian Style

Gupta, Krishna Kumar, Kanak Kalita, Ranjan Kumar Ghadai, Manickam Ramachandran, and Xiao-Zhi Gao. 2021. "Machine Learning-Based Predictive Modelling of Biodiesel Production—A Comparative Perspective" Energies 14, no. 4: 1122. https://doi.org/10.3390/en14041122

APA Style

Gupta, K. K., Kalita, K., Ghadai, R. K., Ramachandran, M., & Gao, X. -Z. (2021). Machine Learning-Based Predictive Modelling of Biodiesel Production—A Comparative Perspective. Energies, 14(4), 1122. https://doi.org/10.3390/en14041122

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop