Related Experiment Video
Updated: Sep 17, 2025

Watershed Planning within a Quantitative Scenario Analysis Framework
Published on: July 24, 2016
Enhancing energy consumption prediction and interpretability in wastewater treatment plants: A novel temporal
Kangrong Tang1, Anlei Wei1, Hanxiao Shi1
1Xi'an Key Laboratory of Environmental Simulation and Ecological Health in the Yellow River Basin, College of Urban and Environmental Sciences, Northwest University, Xi'an, 710127, China; Institute of Environmental Sciences, Northwest University, Xi'an, Shaanxi, 710127, China.
Abstract:
Accurate prediction of energy consumption is crucial for optimizing wastewater treatment plant (WWTP) operations. However, imbalanced data caused by variable influent conditions often compromises machine learning (ML) model accuracy. This study proposes a novel ML framework to address the imbalanced regression problem using three temporal difference-weighted resampling (TDWR) methods: Threshold under-sampling (TUS), Stochastic under-sampling (SUS), and Inverse histogram under-sampling (IHS). Internal validation used an 80/20 training/testing split within each dataset, and external validation involved cross-testing among different resampled and original datasets to ensure robust assessment. Among the methods, SUS with a sampling factor of 6 (SUS-6) achieved the best performance. When combined with XGBoost, it attained an R2 of 0.9998, an RMSE of 0.0833, and a MAPE of 0.14 %. Compared to the original data, R2 was improved by up to 27.6 %, RMSE was reduced by nearly 87 %, and MAPE was reduced by 96.07 %. The 95 % confidence interval of residuals narrowed to (-1.24, 1.25), shrinking by approximately 70 %. Similar improvements were observed across support vector regression (84 % narrower), artificial neural network (45 %), and random forest (63 %) models. SHAP (SHapley Additive exPlanations)-based interpretability analysis revealed that aeration-related features such as BOD, COD, and NH3-N were the main contributors to energy consumption, providing practical guidance for process optimization. Overall, the proposed TDWR framework enhances both prediction accuracy and interpretability, offering an effective tool for intelligent, low-carbon energy management in WWTPs.
Related Concept Videos
Multiple Regression
Farmers can use multiple regression to determine the crop yield based on more than one factor, such as water availability, fertilizer, soil properties, etc. Here, the crop yield is the response or dependent variable as it depends on the other independent variables. The analysis requires the construction of a scatter plot...
Regression Toward the Mean

