Biogas is a renewable energy source that comes from biological waste. In the biogas generation process, various factors such as feedstock composition, digester volume, and environmental conditions are vital in ensuring promising production. Accurate prediction of biogas yield is crucial for improving biogas operation and increasing energy yield. The purpose of this research was to propose a novel approach to improve the accuracy in predicting biogas yield using the stacking ensemble machine learning approach. This approach integrates three machine learning algorithms: light gradient-boosting machine (LightGBM), categorical boosting (CatBoost), and an evolutionary strategy to attain high performance and accuracy. The proposed model was tested on environmental data collected from biogas production facilities. It employs optimum parameter selection and stacking ensembles and showed better accuracy and variability. A comparative analysis of the proposed model with others such as k-nearest neighbor (KNN), random forest (RF), and decision tree (DT) was performed. The study’s findings demonstrated that the proposed model outperformed the existing models, with a root-mean-square error (RMSE) of 0.004 and a mean absolute error (MAE) of 0.0024 for the accuracy metrics. In conclusion, an accurate predictive model cooperating with a fermentation control system can significantly increase biogas yield. The proposed approach stands as a pivotal step toward meeting the escalating global energy demands.
Recently, the significance and demand for biogas energy has dramatically increased. However, biogas operators lack automated and intelligent mechanisms to produce optimization. The Internet of Things (IoT) and Machine Learning (ML) have become key enablers for the real-time monitoring of biogas production environments. This paper aimed to implement an IoT framework to gather environmental parameters for biogas generation. In addition, data analysis was performed to assess the effect of environmental parameters on biogas production. The edge-based computing architecture was designed comprising sensors, microcontrollers, actuators, and data acquired for the cloud Mongo database via MQTT protocol. Data were captured at a home digester on a time-series basis for 30 days. Further, Pearson distribution and multiple linear regression models were explored to evaluate environmental parameter effects on biogas production. The constructed regression model was evaluated using R2 metrics, and this was found to be 73.4% of the variability. From a correlation perspective, the experimental result shows a strong correlation of biogas production with an indoor temperature of 0.78 and a pH of 0.6. On the other hand, outdoor temperature presented a moderated correlation of 0.4. This implies that the model had a relatively good fit and could effectively predict the biogas production process.