Smarter Chemical Oxygen Demand (COD) Prediction in Urban Wastewater Treatment Based on Post-Hoc Residual-Correction: A Comparative Machine Learning Analysis
Aug 2026· Water, Air and Soil Pollution· Vol 237· 0 citations· 44 references
TL;DR
The proposed Post-Hoc Residual Correction (PHRC) framework is presented and its performance against various ML models in predicting the effluent chemical oxygen demand (E-COD) of an urban sewage WWTP is evaluated.
Abstract
Accurate prediction of water quality is essential for the sustainable management of water resources. The composition and concentration of pollutants in urban sewage vary significantly and are highly complex, making it challenging to control the process parameters in wastewater treatment plants (WWTPs). To meet effluent regulatory standards, increasing the input of chemicals and aeration becomes necessary, resulting in higher treatment costs and energy consumption. In this context, machine learning models (ML) have proven effective in predicting and controlling the performance of WWTPs using historical data. The dataset for this study was collected from an urban sewage WWTP in Saudi Arabia over a 17-month period, with a daily record. The main goal of this work is to present the proposed Post-Hoc Residual Correction (PHRC) framework and evaluate its performance against various ML models in predicting the effluent chemical oxygen demand (E-COD) of an urban sewage WWTP. The PHRC framework is a targeted ensemble refinement approach that aims to improve the accuracy of the best-performing base model by learning and correcting its systematic prediction errors. The mean squared error (MSE), root mean squared error (RMSE), mean absolute error (MAE), and the coefficient of determination (R2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$^{2}$$\end{document}) were used to evaluate the models’ performance. The performance of PHRC framework was compared to the performance of multiple ML models, including Decision Tree, LightGBM, Random Forest (RF), XGBoost, Gradient Boosting, CatBoost, and Linear Stack. The PHRC model demonstrated the highest predictive performance for urban sewage treatment plants, achieving an R2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$R^2$$\end{document} of 0.9498 between observed and predicted values in the test dataset. In contrast, the other models yielded lower R2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$R^2$$\end{document} values: Decision Tree (0.6825), LightGBM (0.8219), Random Forest (0.8543), XGBoost (0.8892), Gradient Boosting (0.8987), CatBoost (0.9205), and Linear Stack (0.9259). Error density comparisons further emphasized the robustness of this stacked architecture in real-world applications. Overall, this study presents a suite of predictive tools suitable for industrial use in urban sewage treatment plants. Notably, our proposed PHRC model not only aligns with core wastewater chemistry but also shows potential for broader application across various sewage sources. Its strong predictive capability, achieved by learning and correcting systematic errors, offers significant practical advantages.
Machine learning is widely proposed as a basis for smart wastewater treatment plant (WWTP) management, yet reported performance is rarely benchmarked against trivial alternatives. This study uses six years of monitoring from a municipal WWTP in Serbia serving 18,000 population equivalents, comprising 1017 fully measure...
Ana Vukmirović, Nikola Jovišić, Slobodan Ilić et al.· Clean Technology· 0 citations
The Haraz River faces serious environmental and ecological threats due to pollution, especially leachate generated from a nearby landfill. This study assesses water quality in the Haraz River by comparing samples collected upstream and downstream of landfill and mining sites along the river. The finding reveals increas...
A. Mohammadpour, R. Dara, Majid Amiri Gharaghani et al.· Environmental Research· 0 citations
Morocco’s structural water scarcity has increased interest in treated-wastewater reuse for phosphate processing. This study evaluates the 2025 performance and energy intensity of the Khouribga activated-sludge wastewater treatment plant using 365 daily operator records. Concentration removal, inlet and outlet mass load...
M. El Hannani, Insaf Nori, Abdelkrim Mohtadi et al.· Ecological Engineering &...· 0 citations
Industrial effluents are a major source of water pollution, often leading to ecological imbalance and human health risks. Among these, paper mill effluent is particularly challenging to manage due to its high pollution load. This study aimed to evaluate the phytoremediation potential of Lemna minor for paper mill efflu...
M. Goala, Vinod Kumar, A. Bachheti· Journal of Applied and Natur...· 0 citations
This study quantified the occurrence, multi-stage removal, and controlling factors of micro-organic pollutants in two large surface-water treatment systems in Saigon (WTP1) and Dong Nai (WTP2) rivers, using experiments and predictive machine learning models across 219 samples from raw water intake to peripheral distrib...
H. Nguyen, Phuoc-Dan Nguyen, K. Huynh et al.· JOIV: International Journal...· 0 citations
Anaerobic digestion (AD) is a key process for sludge treatment, volume reduction, and energy recovery in wastewater treatment plants (WWTPs). Therefore, the use of artificial intelligence methods in ED is recommended for better sludge and wastewater management. With the development of artificial intelligence, this...
Ayeh Karami, A. Karimi-Jashni, M. Nikoo et al.· Scientific Reports· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.