Document Type : Original Research Paper
Graphical Abstract
Highlights
EFB-derived biochar showed strong potential for methylene blue removal through batch adsorption.
Random Forest provided the best AI-based prediction of adsorption performance with R² = 0.912.
Pyrolysis temperature was identified as the dominant factor controlling adsorption efficiency.
⚠️ THE FOLLOWING SECTION IS TEXT-ONLY
No equations, tables, figures, or color graphics are shown below. For the complete version, please use the free PDF available on this page (top right).
1.0 Introduction
The rapid expansion of the global population and industrialisation has led to a significant increase in synthetic dye production and discharge, posing a severe threat to aquatic ecosystems due to the toxicity and persistence of dye wastewater. Adsorption is one of the widely recognised technologies used for dye-containing wastewater remediation due to its efficiency and sustainable approach, specifically when low-cost biochar is utilised [1, 2]. Beyond traditional adsorption, some advanced TiO2 had been developed for the photodegradatin of azo dyes [3], while sonochemical synthesis had enabled the developemnt of stabilised nanoparticles for specialised sensing and remidation [4] Palm oil empty fruit bunch (EFB) represents a significant agricultural waste by-product in Southeast Asia, especially Malaysia and Indonesia; thus, transforming this biomass into biochar offers a dual solutions which are agricultural waste management and environmental protection [2].
The synthesis of EFB-derived biochar is commonly achieved through a pyrolysis process, which dictates key physicochemical properties such as surface area and porosity [5, 6]. Conventionally, response surface methodology (RSM) employs mathematical and statistical techniques to model the quadratic interaction between variables, which provides a visual surface for optimisation [2]. However, pyrolysis and subsequent adsorption of complex pollutants are commonly non-linear and multidimensional, which can result in model structure uncertainty in mechanism or purely statistical models [7]. While much research has been done on EFB biochar synthesis, a significant gap exists in understanding the reliability for decoding the nonlinear relationship between the pyrolysis process and adsorption efficiency through traditional quadratic models and data-driven AI models. The novelty of this manuscript focuses on an integrated comparative framework bridging classical response surface methodology (RSM) statistics with modern ensemble machine learning to address this gap.
Thus, as a way to address these limitations, Artificial Intelligence (AI) and Machine Learning (ML) have emerged as powerful paradigms for predictive modelling in environmental engineering [6]. Various advanced algorithms, including Random Forest (RF) and Support Vector (SV), allow for the generalisation of complex data patterns without the requirement of explicit physical or mathematical formulae [8, 9]. AI models, especially RF, are uniquely suited for adsorption applications due to the ability to capture complex threshold behaviours, such as the thermodynamic plateau, while simple quadratic models may oversmooth. This allows a deeper understanding of the significance of algorithms’ parameters, identifying how specific variables like temperature dominate the adsorption process. While RSM is highly efficient for small and structured experimental designs, AI and ML models are able to offer superior flexibility in capturing non-linear fluctuations in absorption capacity [10, 11]. Thus, this study aims to bridge the gap between traditional and computational modelling by providing a comprehensive comparison of RSM and AI-integrated frameworks, utilising specific experimental data from dye adsorption of pyrolysed biochar to predict the efficiency of dye adsorption.
2.0 Materials and Methods
2.1 Biochar Synthesis
The raw EFB was sampled from Southern Malay Palm Oil Mill, Simpang Renggam, Johor, Malaysia. EFB was pyrolysed in a muffle furnace based on a defined experimental space where temperature, X1 range was 400 – 800 °C, and residence time, X2, was 1 – 3 hours. A total of 12 experiment designs were generated using Design Expert Software, and all experiments were conducted to train the training datasets. Specifically, each sample of 0.05g of pyrolysed biochar was immersed in 0.05mg/ml of methylene blue solution to measure the dye adsorption efficiency (R1, %). The adsorption was conducted using an orbital shaker (PROTECH) with 150rpm at room temperature for 24 hours to ensure the adsorption equilibrium was reached.
2.2 Response Surface Methodology (RSM) Modelling
The experimental data were analysed through RSM to form a second-order polynomial equation, which in the form:
Where Y was the predicted adsorption response. Analysis of Variance (ANOVA) was utilised to determine the statistical significance of the model terms, where the coefficient of determination, R2, acts as the primary measure of fit [2].
2.3 Artificial Intelligence (AI) and Machine Learning Framework
Six supervised learning algorithms were selected to develop the AI-integrated model, which, due to the proven performance in small-to-medium environmental datasets [8, 12]. Those models included:
· Linear: as the parametric baseline, assuming a direct proportional relationship between pyrolysis factors and biochar performance
· Ridge and Lasso: These regularised linear models introduce L2 and L1 penalties, respectively. Ridge is designed to mitigate multicollinearity, while Lasso provides embedded feature selection by driving irrelevant coefficients to zero, which is useful to evaluate the relative impact of temperature against time [8].
· Random Forest (RF): A bagging algorithm that constructs a multitude of decision trees in training and outputs the mean prediction. RF is noted due to its robustness against outliers and its ability to handle non-linear interactions without overfitting [6]
· Gradient Boosting (GB): A boosting ensemble technique that minimises loss functions by adding weak learners or decision trees sequentially. In each iteration will correct the residues of previous models, which often result in higher accuracy for complex adsorption trends [10].
· Support Vector (SV) is a model that utilises a kernel function (Radial Basis Function) to map input features into a high-dimensional space, which identifies the optimal hyperplane for prediction. SV is particularly effective for small datasets where the relationship between factors is smooth and nonlinear [8].
2.4 Computational Processing and Validation
The data processing was conducted using a Python environment, where the Python library involved included Pandas, Numpy, Matplotlib, seaborn, and sklearn, where Pandas and numpy were used for raw data processing, seaborn was used for data visualisation, and sklearn for prediction of data analysis by applying algorithms such as RF, GF, and SV. As the input features differed in magnitude, which is five for temperature and three for time, standardisation, or called Z-score normalisation, was applied to ensure the model was not biased toward the temperature feature [6]. The normalisation formula is as follows, where x is the investigated independent variable, µ is the mean, and σ is the standard deviation.
As the sample size, n = 12, was limited, Leave-One-Out Cross-Validation (LOO-CV) was utilised to maximise the training utility. In LOO-Cv, each data point acted as a test set exactly once while the model was trained on the remaining n-1 points [8].
2.5 Model Evaluation and Feature Importance
The performance of AI models was compared to the RSM baseline using R2, Root Mean Square Error (RMSE), and Mean Absolute Error (MAE) [9]. While the Gini Importance for Mean Decrease Impurity was calculated within the Random Forest model to determine the relative influence of Temperature vs Time on the biochar properties. This computational approach provided an “Algorithmic Significance” to complement the p-values derived from the RSM ANOVA [1, 2].
3.0 Results and Discussion
3.1 RSM ANOVA Result of Pyrolysis
The statistical reliability of the pyrolysis process was evaluated through Analysis of Variance (ANOVA), as summarised in Table 1. The statistical result confirmed that the methylene blue experimental data fit a second-order quadratic model with the model’s p-value less than 0.0001, indicating a high level of statistical significance, where the investigated variables, temperature and residence time, were able to describe the fluctuation of adsorption capacity accurately. This is further confirmed by the Lack-of-Fit test, where the P-value is 0.3813; the exceedance of the 0.05 threshold on this lack-of-fit P-value signifies that the model’s residual error is negligible compared to the experimental error.
Additionally, both investigated variables, temperature and residence time, exhibited individual P-values below 0.05, indicating the independent role of both variables in determining the biochar surface properties. This result aligns with a study done by Moosavi et al. [13], where the emphasised thermal properties are dominant drivers of pore development in transforming agricultural waste to carbon. However, the interesting part is that the interaction part X1X2 showed a P-value exceeding 0.05, which suggests that the influence of temperature on pore development is not significantly altered by variations in the residence time within the investigated range. The linear relationship of the quadratic temperature term, X12, had been proven by the P-value below 0.05, which indicated that the adsorption efficiency approaches a maximum temperature increase before reaching a plateau, which is often due to the saturation of surface-active sites. The quadratic model of adsorption is described as:
The integrity of the model is reflected by a significant coefficient of determination, R2 of 0.9869, which suggests that over 98% of the total variation in the adsorption data is explained. The narrow difference between adjusted R2 and predicted R2, which are 0.9756 and 0.8166, respectively, underscores the model’s capacity to generalise beyond the training sets. A high predictive R2 value is essential for transitioning localised experimental data to a broader concentration prediction framework [14]. Furthermore, a low coefficient of variance (CV) of 0.2994% is observed, which confirms that the deviation between experimental data points and values from predicted data is minimal. This high degree of agreement validation has proven that RSM is a powerful predictive engine for the estimation of biochar performance, ensuring the stable foundation for further integration with AI-driven modelling techniques.
3.2 Statistical Characteristics of the Dataset
A descriptive statistic of experimental variables with AI model inputs is summarised in Table 2, which reveals the fundamental divergence between the behaviour of the target response and the investigated factor. The temperature range within 400 to 800 °C covers a significant operational window for assessing the effect of temperature on biochar performance; however, the narrow residence time from 1 to 3 hours potentially limits the explanatory power within the regressor-based framework, which is commonly observed in small-scale laboratory optimisation.
The key finding from Table 2 was the minimal variability of adsorption response, where the coefficient of variance (CV) was around 1.9% with a narrow interquartile range from 97.41% to 99.13%. The flatness of this statistical result suggests that the EFB-derived biochar reaches a performance plateau relatively quickly within the investigated temperature range. A recent computational review had emphasised that a plateau often signifies rapid development of surface functional groups and porous structure that are key requirements for the adsorption of dye [2, 7].
From a modelling perspective, the low dispersion implies that the adsorption behaviour may be governed by a threshold effect instead of continuous gradients, which is supported by the findings of Moosavi et al. [13] and Hassan & Kazemi [6], who emphasised that traditional models may struggle with flat high-performance data, while an ensemble machine learning method can identify.
3.3 Comparative Performance for Adsorption Prediction
Table 3 summarises the predictive performance of the evaluated ML model for methylene blue adsorption and visualised through comparative metrics in Fig. 1. In a marked contrast to the trend observed on biochar adsorption efficiency, nonlinear ensemble-based models demonstrated significant advantages in capture of adsorption dynamics, where Random Forest (RF) was identified as the most superior model with cross-validation R2 of 0.912 ± 0.020, along with the lowest error metrics of RMSE and MAE with 0.303 and 0.231, respectively. Following Gradient Boosting with an R2 of 0.893 demonstrated high stability across validation folds.
The poor performance of linear regression is observed with an R2 value of 0.345, which suggests that the adsorption of dye on biochar does not simply follow a linear equation of pyrolysis temperature and residence time. Even with regularisation, Ridge and Lasso only achieve modest improvements of R2 approximately 0.48, which suggests the underlying adsorption mechanism is primarily driven by intricate, localised interactions and threshold behaviours. As mentioned by Moosavi et al. [13], adsorption involves multifaceted relationships between pore development and surface chemical activation, which are often non-monotonic. The superior performance of tree-based ensembles such as RF and GB confirms that the rule-based partitioning is uniquely suited to decode these structured nonlinear patterns, particularly when high-performance plateaus are reached [6, 10].
Additionally, Support Vector Regression (SV) with RBF kernel achieved R2 of 0.809, which confirmed that a smooth nonlinear mapping can represent a significant proportion of variance; however, the inferior performance compared to RF had suggested that adsorption response may be better approximated by localised rule-based partitioning than by global kernel-based transformations, especially dealing with experimental datasets exhibiting saturation behaviour [6, 14]. Consistent trend across high-capacity models can demonstrate that while the pyrolysis process follows a predictable path, the resulting adsorption performance reaches an optimised threshold that simple parametric models cannot adequately track.
3.4 Feature Importance and Sensitivity Analysis
The relative influence of investigated synthesis parameters on adsorption performance was quantified by feature importance analysis, which was derived from high-performing ensemble models as summarised in Table 4 and visualised in Fig. 2. It is observed that pyrolysis temperature emerged as the dominant parameter in methylene blue adsorption, accounting for 91.88% of the model’s predictive weight. This result aligns with findings from Han et al. [2] and Moosavi et al. [13], which support the conclusion that thermal intensity is critical for driving the dehydration and decarboxylation reaction for developing a high-surface area carbon matrix.
In contrast, a significantly low importance score of 8.12% is observed for residence time, which suggests that for EFB-derived biochar, structural evolution and functional group activation occur relatively quickly once the target temperature is reached. Consequently, extended residence time offers diminishing returns for pore development, which is a phenomenon also observed in a recent computational study done by Zhang et al. [1] and Jaffari et al. [10].
In a mechanistic perspective, this sensitivity distribution confirms that adsorption capacity is governed by a temperature-dependent threshold rather than time-dependent kinetic progression. According to Duarte et al. [7] and Lv & Wang [14], this sensitivity ranking is crucial for an industrial setup that enables the optimisation of energy consumption by prioritising temperature control over prolonged heating cycles. These algorithm insights quantitatively validate RSM ANOVA results, indicating that the chemical environment of the pyrolysis chamber is dominantly shaped by thermal activation. Additionally, the statistical insignificance of the X1X2 interaction observed in RSM ANOVA with a P value above 0.05 justifies the absence of complex interaction effects in the subsequent AI interpretations, confirming that temperature and time act as independent physical driver rather than synergistic ones in biochar adsorption efficiency.
3.5 Model Performance and Response Surface Analysis
To ensure the predictive accuracy of the optimised modelling framework, the regression analysis of experimental and predicted data is required as evidenced. As visualised in Fig. 3, the AI model had demonstrated exceptional correlation of dye adsorption with R2 of 0.981, where the data point was tightly clustered around the ideal 1:1 parity line, which confirms the ensemble-based approach accurately captures the functional relationships within the investigated parameter space with prediction error below 1%. The high degree of alignment indicates the localised rule-based partitioning effectively mirrors the physical reality of the adsorption process [2].
Fig. 4 further elucidates the parametric dependencies, which reveal distinct asymptotic behaviour beyond 600 °C. The surface indicates significant sensitivity along the temperature axis, where the adsorption increases sharply as thermal activation drives the dehydration and decarboxylation reaction to develop biochar’s porous structure; however, the geometric flatness shown by the residence time axis indicates that, once a threshold is reached, biochar’s maximal adsorption potential is achieved relatively quickly. Identification of such plateaus is critical to achieve operational efficiency [7, 14]. The rapid establishment of the thermodynamic equilibrium in surface activation suggests that energy consumption can be significantly reduced by limiting the residence time without compromising the quality or performance of the adsorbent. Consequently, this result has justified quantitatively that for a more energy-efficient industrial scale-up, temperature is prioritised as the primary control level [7].
3.6 Comparative Discussion: RSM Anova vs AI Models
The integration of conventional statistical modelling (RSM) and AI reveals a high degree of concordance, specifically regarding the dominant influence of pyrolysis temperature on dye adsorption efficiency. The RSM ANOVA had identified a highly significant quadratic model with a p-value smaller than 0.0001 with an R2 value of 0.9867, as in Table 1, which aligns closely with the performance of Random Forest and Gradient Boosting models, which achieved R2 of 0.912 and 0.893, respectively, as in Table 3. The significantly high value of R2 across both frameworks indicates that the adsorption of methylene blue on biochar is highly predictable and follows a structured relationship within the studied parameters [1].
Additionally, the ANOVA result indicated that the temperature, X1, is the most significant factor that affects the adsorption efficiency with an F-value of 271.81, which can independently verify the importance analysis by AI models, where temperature accounted for 91.88% as in Table 4. The quadratic term for temperature X12 in ANOVA is highly significant, with a p-value of less than 0.0001, while the interaction term X1X2 is not, with a p-value of 0.1402. This result indicates statistical evidence where a nonlinear relationship without interaction perfectly explains the performance of the Random Forest model. Different from linear regression, AI models are designed to capture the nonlinearity identified by the X12 term without a requirement for a mathematical equation [6, 8].
The lack of fit test in ANOVA was not significant with a p-value of 0.3813, which indicates that the quadratic equation can represent the experimental data points, while in the AI framework, this is proven by the low RMSE value of 0.303 in Random Forest models. Unlike RSM, which provides a definitive mathematical optimum through a regression equation, an AI-integrated model provides a layer of generalisation robustness. The narrow standard deviation in the AI cross-validation metric with R2 of 0.912 ± 0.020 proves that identified adsorption trends are not artefacts of experimental runs but represent robust and repeatable physical behaviour of biochar and dye adsorption system [10]. Thus, by utilising RSM and an AI framework, this study leverages the statistical significance of RSM and the predictive stability of AI models. This dual validation approach ensures the optimisation of EFB biochar synthesis is based on both rigorous classical statistics and modern algorithms.
4.0 Conclusion
This study has successfully proven the integration of RSM and AI as a robust dual-paradigm for the prediction and optimisation of synthesis and adsorption of EFB-derived biochar. The statistical result reveals that dye adsorption exhibited complex and nonlinear dynamics that were most accurately captured by the Random Forest ensemble model with an R2 of 0.912, which aligns with the RSM ANOVA and confirms the significant quadratic relationships for adsorption with a p-value and R2 of <0.0001 and 0.9867, respectively. The observation of an asymptotic plateau beyond 600 °C suggests that biochar reaches a thermodynamic equilibrium for surface activation early in the carbonisation process. Ultimately, the hybrid approach in this study provides a scalable template for the development of high-performance adsorbents from agricultural biomass, which ensures both economic and operational efficiency in wastewater treatment.
5.0 Future Perspectives and Directions
While this study has established a robust dual-modelling framework for biochar synthesis and adsorption, several avenues for future research remain to be explored to enhance the scalability and precision of AI-integrated solutions:
· This study only focuses primarily on pyrolysis temperature and time, while expansion of future space, such as biomass particle size or heating rate, would allow a more holistic and reliable optimisation. Though utilising deep learning architectures, including artificial Neural Networks (ANN), could then be used to navigate high-dimensional datasets.
· The combination of modelling with the life cycle assessment (LCA) framework would also be useful in determining the true environmental benefit of optimised conditions. As higher temperatures may be optimised for adsorption, however, the increased consumption of energy should be balanced against the performance of the adsorbent to ensure the process remains net zero carbon.
Acknowledgment
The authors gratefully acknowledge Universiti Teknologi Malaysia and the financial support from Higher Institution Centres of Excellence (HICoE), R.J130000.7801.4J664), the Ministry of Higher Education Malaysia under the Fundamental Research Grant Scheme, R.J130000.7846.5F645 (FRGS/1/2023/TK09/UTM/02/1), R.J130000.7851.5F379 (FRGS/1/2020/TK0/UTM/03/8), and UTM Fundamental Research, Q.J130000.3846.24H14. The authors are appreciative of the opportunity and financial support provided by the Ministry of Higher Education (MOHE) and Universiti Teknologi Malaysia (UTM) to conduct this study. The authors would also like to thank the Research Management Centre (RMC) and Pusat Pengurusan Makmal Universiti (PPMU), Universiti Teknologi Malaysia, for the technical support and services provided.
Data Availability
The data that support the findings of this study are available from the corresponding author [Hasrinah Hasbullah] upon reasonable request.
Funding
This study was not supported by any funding.
AI Statement
The authors confirm that no AI tools or services were used during the
preparation of this work.
Conflict of Interest
The authors declare no conflict of interest.