Artificial intelligence-driven modeling of biodiesel production from fats, oils, and grease (FOG) with process optimization via particle swarm optimization
Badril Azhar, Muhammad Ikhsan Taipabu, Cries Avian, Karthickeyan Viswanathan, Wei Wu, Raymond Y.K. Lau
Abstract
• CSTR reactors achieved up to 97 % conversion for transesterification and 94 % for esterification under optimized conditions. • XGBoost, Extra Trees, Gradient Boosting, LGBM, and Random Forest demonstrate exceptional performance, reflecting their high prediction accuracy and consistency. • PSO fine-tuned process parameters, achieving a 99.4 % conversion rate under optimal conditions. • Heat integration reduced pre-heating energy by 80.9 %, cutting total heat duties by 19.9 %. This study presents the design and optimization of a biodiesel production process, emphasizing the integration of machine learning (ML) models and process optimization techniques. The biodiesel production process involves multiple stages, including feedstock preparation, esterification, and transesterification, with catalysts Amberlyst-15 and KOH used in continuous stirred-tank reactors (CSTRs). Sensitivity analysis reveals that high conversions of free fatty acids (94 %) and triglycerides (97 %) are achievable under optimized operating conditions. To enhance process efficiency, adjustments to reaction temperature, time, and methanol-to-oil ratios are proposed, resulting in lower energy consumption and material costs. A ML model evaluation, using various algorithms, identify XGBoost, Extra Trees, Gradient Boosting, LGBM, and Random Forest demonstrate the best performer for predicting process parameters, achieving an R 2 value of nearly to 1. Particle Swarm Optimization (PSO) is then employed to optimize the selected ML model (XGBoost), leading to the identification of optimal input parameters for biodiesel production. The optimized process, combined with heat integration, reduces pre-heating energy requirements by 80.9 % and total heat duties by 19.9 %. The findings demonstrate the effectiveness of combining ML and optimization techniques to enhance biodiesel production efficiency while reducing costs and energy consumption.