An Integrated Explainable COD and BOD Predictive Modeling Framework for Oxygen Uptake Rate Estimation and Feedforward PI Aeration Control in Municipal Wastewater Treatment Plants

The aeration process in an activated sludge wastewater treatment plant (WWTP) is the most energy-demanding process, consuming about 45–60% of the total energy consumption. Most traditional dissolved oxygen (DO) control methods rely on a feedback proportional–integral (PI) controller, which responds only after a disturbance affects the biological process and may lead to delayed response, excessive aeration, and higher energy consumption. Accurate prediction of chemical oxygen demand (COD) and biological oxygen demand (BOD) offers a chance to manage aeration proactively. Laboratory COD and BOD tests are laborious and time-consuming and cannot be implemented for online operation, which challenges real-time process optimization. This research study proposes an integrated framework that combines predictive models with explainable artificial intelligence (XAI), oxygen uptake rate (OUR) estimation, and feedforward (FF) PI aeration control for a municipal WWTP. Based on the proposed method, we compare Atrous Neural Network (Atrous NN), artificial neural network (ANN), and random forest (RF) models for COD and BOD prediction and then use the predicted values of the best model for OUR estimation, which gives an FF signal together with a PI controller to control the DO response. The predictive models were developed and evaluated using Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R2). The comparative analysis showed that the Atrous NN model exhibited the best predictive ability, with R2 values of 0.9941 and 0.9868 and RMSE of 0.4397 and 0.2285 and MAE of 0.3413 and 0.1797 for COD and BOD, respectively, showing good correlation between predicted and measured values. Additionally, SHapley Additive exPlanations (SHAP) analysis revealed that Nitro-Ratio, TSS-Nitro-Ratio, and Madiwala STP-avg-TSS interaction were identified as the most important features influencing model performance. Consequently, five DO control architectures, i.e., PI-Only control, FF-Only control, FF(COD) + PI control, FF(BOD) + PI control, and FF(COD + BOD) + PI control, were also developed and evaluated using rise time (RT), settling time (ST), peak time (PT), percentage overshoot (%OS), steady-state error (SSE), Integral Absolute Error (IAE), Integral Squared Error (ISE), and Integral Time Absolute Error (ITAE). The results obtained show that the FF(COD + BOD) + PI control strategy achieved the best performance among the rest, with the lowest RT (146s), ST (1292s), PT (11832s), %OS (0.93), SSE (0.00), IAE (534), and ISE (759). Furthermore, the power and energy analyses showed that the FF(COD + BOD) + PI control strategy achieved the highest energy reduction rate of 13.69%. However, the estimated decrease in aeration energy consumption is a theoretical improvement in simulated control performance, as the effluent concentrations of COD, BOD, and NH-N were not evaluated. Hence, experimental validation is required to verify the effectiveness of the treatment and meet the relevant statutory discharge restrictions.

Authors

Institutions

Publication Details

Journal
Electronics
Published
2026-11-24
DOI
https://doi.org/10.3390/electronics15235486
Primary Topic
Water Quality Monitoring and Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

An Integrated Explainable COD and BOD Predictive Modeling Framework for Oxygen Uptake Rate Estimation and Feedforward PI Aeration Control in Municipal Wastewater Treatment Plants

Kamil Dimililer, Ismaila Abubakar Bobboi
Electronics
Water Quality Monitoring and Analysis
article

An Integrated Explainable COD and BOD Predictive Modeling Framework for Oxygen Uptake Rate Estimation and Feedforward PI Aeration Control in Municipal Wastewater Treatment Plants

Kamil Dimililer, Ismaila Abubakar Bobboi
article en

Abstract

The aeration process in an activated sludge wastewater treatment plant (WWTP) is the most energy-demanding process, consuming about 45–60% of the total energy consumption. Most traditional dissolved oxygen (DO) control methods rely on a feedback proportional–integral (PI) controller, which responds only after a disturbance affects the biological process and may lead to delayed response, excessive aeration, and higher energy consumption. Accurate prediction of chemical oxygen demand (COD) and biological oxygen demand (BOD) offers a chance to manage aeration proactively. Laboratory COD and BOD tests are laborious and time-consuming and cannot be implemented for online operation, which challenges real-time process optimization. This research study proposes an integrated framework that combines predictive models with explainable artificial intelligence (XAI), oxygen uptake rate (OUR) estimation, and feedforward (FF) PI aeration control for a municipal WWTP. Based on the proposed method, we compare Atrous Neural Network (Atrous NN), artificial neural network (ANN), and random forest (RF) models for COD and BOD prediction and then use the predicted values of the best model for OUR estimation, which gives an FF signal together with a PI controller to control the DO response. The predictive models were developed and evaluated using Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R2). The comparative analysis showed that the Atrous NN model exhibited the best predictive ability, with R2 values of 0.9941 and 0.9868 and RMSE of 0.4397 and 0.2285 and MAE of 0.3413 and 0.1797 for COD and BOD, respectively, showing good correlation between predicted and measured values. Additionally, SHapley Additive exPlanations (SHAP) analysis revealed that Nitro-Ratio, TSS-Nitro-Ratio, and Madiwala STP-avg-TSS interaction were identified as the most important features influencing model performance. Consequently, five DO control architectures, i.e., PI-Only control, FF-Only control, FF(COD) + PI control, FF(BOD) + PI control, and FF(COD + BOD) + PI control, were also developed and evaluated using rise time (RT), settling time (ST), peak time (PT), percentage overshoot (%OS), steady-state error (SSE), Integral Absolute Error (IAE), Integral Squared Error (ISE), and Integral Time Absolute Error (ITAE). The results obtained show that the FF(COD + BOD) + PI control strategy achieved the best performance among the rest, with the lowest RT (146s), ST (1292s), PT (11832s), %OS (0.93), SSE (0.00), IAE (534), and ISE (759). Furthermore, the power and energy analyses showed that the FF(COD + BOD) + PI control strategy achieved the highest energy reduction rate of 13.69%. However, the estimated decrease in aeration energy consumption is a theoretical improvement in simulated control performance, as the effluent concentrations of COD, BOD, and NH-N were not evaluated. Hence, experimental validation is required to verify the effectiveness of the treatment and meet the relevant statutory discharge restrictions.

ElectronicsVol. 15(23)
Near East University (CY)
Clean water and sanitation
Water Quality Monitoring and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon