Journal Article

·2025 OPEN ACCESS

AI-driven wastewater management through comparative analysis of feature selection techniques and predictive models

Faruk Dikmen YTU , Ahmet Demir YTU , Bestami Özkaya YTU , Muhammad Owais Raza , Jawad Rasheed , Tunç Aşuroğlu , Shtwai Alsubai

Scientific Reports

Abstract

The integration of artificial intelligence (AI) in wastewater treatment management offers a promising approach to optimizing effluent quality predictions and enhancing operational efficiency. This study evaluates the performance of machine learning models in predicting key wastewater effluent parameters Chemical Oxygen Demand (COD), Biochemical Oxygen Demand (BOD), Total Suspended Solids (TSS), Total Effluent Nitrogen and Total Effluent Phosphorus. Three feature selection techniques were applied: SelectKBest, Mutual Information, and Recursive Feature Elimination (RFE) using Random Forest to identify the most significant predictors. The study leveraged ensemble learning models, including XGBoost, Random Forest, Gradient Boosting, and LightGBM, and compared them with Decision Tree models. The results demonstrate that effluent volatile suspended solids (VSS) consistently held the highest predictive importance across all feature selection methods. Ensemble models significantly outperformed Decision Trees, with Gradient Boosting achieving the best predictive accuracy for TSS and total nitrogen (Mean Absolute Error (MAE): 3.667 [Formula: see text]: 97.53), XGBoost excelling in COD prediction with MAE and [Formula: see text] of 6.251 and 83. 41%, respectively, and XGBoost showing superior performance for BOD (MAE: 1.589 [Formula: see text]:79.64%). LightGBM yielded the highest precision in predicting total phosphate with MAE and a [Formula: see text] score of 0.230 and 28. 68%, respectively. Decision tree models consistently underperformed, exhibiting the highest error rates. These findings highlight the potential of AI-driven approaches in wastewater management to improve decision-making, regulatory compliance, and resource efficiency. However, limitations such as operational irregularities and seasonal variations remain challenges for further refinement.

Keywords

Random forest Biochemical oxygen demand Decision tree Effluent Gradient boosting Chemical oxygen demand Feature selection Total suspended solids Predictive modelling Boosting (machine learning) Wastewater Ensemble learning Computer science Mean squared error Ensemble forecasting Machine learning Artificial intelligence Environmental science Statistics Environmental engineering Mathematics

Subject Areas

Water Quality Monitoring Technologies ·Water Science and Technology ·Physical Sciences
Hydrological Forecasting Using AI ·Environmental Engineering ·Physical Sciences
Water Quality Monitoring and Analysis ·Industrial and Manufacturing Engineering ·Physical Sciences

Citations by Year

OpenAlex SDG Match

SDGs auto-classified by OpenAlex (score ≥ 0.4 shown).

Clean water and sanitation 82%