Document Type : Research Article
Authors
Department of Biosystems Engineering, Faculty of Agriculture, University of Tabriz, Tabriz, Iran
10.22067/jam.2026.100403.1517
Abstract
Introduction
Anaerobic digestion (AD) is a well-established biochemical process for organic waste valorisation and renewable energy generation. However, the inherent complexity, nonlinearity, and time-varying dynamics of AD pose significant challenges for process stability and optimisation. Conventional control strategies (ON/OFF, PID) often fail due to limited adaptability to complex microbial interactions and varying substrate characteristics. In Iran, despite abundant biomass resources, biogas technology remains underdeveloped due to low fossil fuel costs, insufficient technical expertise, and limited public awareness. This study aimed to design, construct, and evaluate a laboratory-scale AD system with an Adaptive Neuro-Fuzzy Inference System (ANFIS)-based intelligent controller. The core innovation lies in integrating fuzzy logic reasoning with neural network learning in real time and self-adaptive regulation of process variables. Additionally, a novel hybrid ANFIS-Gompertz model was developed as a proof-of-concept for dynamic kinetic parameter estimation, and the feasibility of using a low-cost optical sensor for early warning monitoring, along with theoretical scale-up analysis, was investigated.
Materials and Methods
Substrate and Reactor: Fresh cattle manure (1:1 with water) was characterised for moisture (90.54%), TS (9.46%), VS (78.21%), COD (910 mg L-1 O₂), and C/N ratio (21:1). A 2 L borosilicate glass reactor (H/D = 1) with variable-speed agitation (50–150 rpm) and a hot water jacket heating system was fabricated.
ANFIS Control System: The ANFIS controller had three inputs (temperature, pH, and pressure) and three outputs (agitation speed, heating power, and gas release), with two Gaussian membership functions per input (8 fuzzy rules) to prevent overfitting. It was implemented on an ESP32 microcontroller with sensors (LM35, MPX5700DP, E201C9, MQ4, and TCS34725) for turbidity monitoring.
Experimental Design: Response Surface Methodology (RSM) with a Box-Behnken design (17 runs) optimised temperature (30–40°C), agitation speed (50–150 rpm), and HRT (15–35 days). Kinetic models (modified Gompertz, logistic, and first-order) and a hybrid ANFIS-Gompertz model were developed. Model evaluation used R², RMSE, AIC, and BIC, with 5-fold cross-validation and three independent reproducibility runs. Theoretical scale-up to 330 L and 1,000 L was analysed based on hydrodynamic similarities.
Results and Discussion
ANFIS Control Performance: The ANFIS controller achieved 98.5% prediction accuracy, steady-state temperature error of 0.12 ± 0.03°C, settling time of 4.2 ± 0.5 min, and an overshoot of 2.1 ± 0.3%. Energy consumption was reduced by 28.9% compared to PID control (768 ± 25 W vs. 1,080 ± 38 W). pH error was maintained at ±0.02.
Biogas Production: Total biogas production over 30 days was 33.6 L (19% increase over simple control), with a maximum methane content of 62.5%. Average daily production was 1.12 ± 0.25 L day-1 (CV = 1.19% across replicates). Volatile fatty acids (VFAs) peaked at 1,800 mg L-1 (days 10–15), with the VFAs/alkalinity ratio reaching 1.8, indicating transient acidification followed by recovery. Ammonia remained below the inhibitory threshold (1,050 mg L-1 < 3,000 mg L-1 ).
Kinetic Modelling: The hybrid ANFIS-Gompertz model provided the best fit (R² = 0.960, RMSE = 0.85, AIC = 35.2, and BIC = 39.2), outperforming modified Gompertz (R² = 0.994, RMSE = 0.95), logistic (R² = 0.986, RMSE = 1.40), and first-order (R² = 0.950, RMSE = 2.55) models. Estimated Bₘ = 33.6 L, Rₘ = 0.132 L day-1, λ = 4 days. Five-fold cross-validation confirmed good generalisability (mean R² = 0.955 ± 0.006, RMSE = 0.92 ± 0.06). However, due to limited training data, this model is presented as a proof-of-concept requiring further validation with larger datasets for industrial applications.
RSM Optimisation: Optimal conditions were 36.6°C, 110 rpm, and 24 days HRT, achieving 33.6 ± 0.3 L (error < 0.6% vs. predicted 33.8 L). ANOVA confirmed model significance (F = 38.5, p < 0.001, R² = 0.972). Reproducibility was excellent (CV = 1.19% for biogas, 1.44% for hybrid model RMSE).
Scale-Up Analysis: Theoretical scale-up to 330 L (pilot) and 1,000 L (industrial) while maintaining a constant Reynolds number (0.27×10⁴) was analysed. Recommended pilot parameters: agitation speed 100 rpm, heating power 1,200 W, and insulation thickness 5 cm. Daily biogas production projections: 185 L day-1 (pilot) and 560 L day-1 (industrial). Experimental validation at pilot scale and CFD simulations are required for confirmation.
Conclusion
An automated laboratory-scale AD system with ANFIS-based control was successfully developed and evaluated. The key achievements include: (1) ANFIS control with 28.9% energy savings and superior stability compared to PID; (2) RSM-optimised conditions (36.6°C, 110 rpm, and 24 days) achieving 33.6 L biogas with 62.5% methane; (3) a proof-of-concept hybrid ANFIS-Gompertz model (R² = 0.960, RMSE = 0.85) demonstrating the potential of integrating intelligent systems with kinetic modelling; (4) a low-cost optical sensor (TCS34725) as an effective early warning system for process instability; and (5) theoretical feasibility of scale-up to 330 L based on hydrodynamic similarity.
Acknowledgement
This research was financially supported by the University of Tabriz. The authors sincerely thank the Department of Biosystems Engineering and the Vice-Presidency for Research and Technology for their support.
Keywords
Subjects