Yue Wang , Tan Li , Langming Bai , Huarong Yu , Fangshu Qu
{"title":"Comparison of interpretable machine learning models and mechanistic model for predicting effluent nitrogen in WWTP","authors":"Yue Wang , Tan Li , Langming Bai , Huarong Yu , Fangshu Qu","doi":"10.1016/j.jwpe.2025.108344","DOIUrl":null,"url":null,"abstract":"<div><div>Accurate prediction of effluent nitrogen is crucial for optimizing operations of wastewater treatment plants (WWTPs). This study systematically compared the performance of a mechanistic model, i.e., the Activated Sludge Model (ASM), with six machine learning (ML) models in predicting effluent total nitrogen (TN), by using one year of high-resolution full-scale operational data obtained from a municipal wastewater treatment plant (WWTP). Notably, the integration of Shapley Additive Explanations (SHAP) into the ML models enabled transparent interpretation of model predictions. ASM was dynamically calibrated through sensitivity analysis, which identified key parameters such as μ<sub>AOB</sub> and <em>η</em><sub>OHO,anox</sub> related to nitrification and denitrification. Despite capturing TN trends, the ASM model showed limited accuracy (<em>R</em><sup><em>2</em></sup> = 0.26 for training and 0.06 for validation). In contrast, ML models, particularly Random Forest, XGBoost, and LightGBM, demonstrated superior predictive performance (highest <em>R</em><sup><em>2</em></sup> = 0.79, lowest MRE = 7.5 %). The ML can directly learn complex relationships from a large amount of running data, while ASM relies on simplified mechanism equations and has difficulty reflecting the dynamic changes in actual operation. SHAP analysis further revealed that return sludge rate, MLSS, influent ammonia, and nitrate concentrations were the most influential features determining TN removal. These findings were consistent with the ASM sensitivity analysis, verifying the ML model's capacity to uncover biologically meaningful insights. This study demonstrated that interpretable ML models not only outperformed traditional ASM in prediction accuracy but also provide transparent and actionable explanations, marking a significant advancement in the application of AI for wastewater process modeling.</div></div>","PeriodicalId":17528,"journal":{"name":"Journal of water process engineering","volume":"77 ","pages":"Article 108344"},"PeriodicalIF":6.7000,"publicationDate":"2025-07-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of water process engineering","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2214714425014163","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, CHEMICAL","Score":null,"Total":0}
引用次数: 0
Abstract
Accurate prediction of effluent nitrogen is crucial for optimizing operations of wastewater treatment plants (WWTPs). This study systematically compared the performance of a mechanistic model, i.e., the Activated Sludge Model (ASM), with six machine learning (ML) models in predicting effluent total nitrogen (TN), by using one year of high-resolution full-scale operational data obtained from a municipal wastewater treatment plant (WWTP). Notably, the integration of Shapley Additive Explanations (SHAP) into the ML models enabled transparent interpretation of model predictions. ASM was dynamically calibrated through sensitivity analysis, which identified key parameters such as μAOB and ηOHO,anox related to nitrification and denitrification. Despite capturing TN trends, the ASM model showed limited accuracy (R2 = 0.26 for training and 0.06 for validation). In contrast, ML models, particularly Random Forest, XGBoost, and LightGBM, demonstrated superior predictive performance (highest R2 = 0.79, lowest MRE = 7.5 %). The ML can directly learn complex relationships from a large amount of running data, while ASM relies on simplified mechanism equations and has difficulty reflecting the dynamic changes in actual operation. SHAP analysis further revealed that return sludge rate, MLSS, influent ammonia, and nitrate concentrations were the most influential features determining TN removal. These findings were consistent with the ASM sensitivity analysis, verifying the ML model's capacity to uncover biologically meaningful insights. This study demonstrated that interpretable ML models not only outperformed traditional ASM in prediction accuracy but also provide transparent and actionable explanations, marking a significant advancement in the application of AI for wastewater process modeling.
期刊介绍:
The Journal of Water Process Engineering aims to publish refereed, high-quality research papers with significant novelty and impact in all areas of the engineering of water and wastewater processing . Papers on advanced and novel treatment processes and technologies are particularly welcome. The Journal considers papers in areas such as nanotechnology and biotechnology applications in water, novel oxidation and separation processes, membrane processes (except those for desalination) , catalytic processes for the removal of water contaminants, sustainable processes, water reuse and recycling, water use and wastewater minimization, integrated/hybrid technology, process modeling of water treatment and novel treatment processes. Submissions on the subject of adsorbents, including standard measurements of adsorption kinetics and equilibrium will only be considered if there is a genuine case for novelty and contribution, for example highly novel, sustainable adsorbents and their use: papers on activated carbon-type materials derived from natural matter, or surfactant-modified clays and related minerals, would not fulfil this criterion. The Journal particularly welcomes contributions involving environmentally, economically and socially sustainable technology for water treatment, including those which are energy-efficient, with minimal or no chemical consumption, and capable of water recycling and reuse that minimizes the direct disposal of wastewater to the aquatic environment. Papers that describe novel ideas for solving issues related to water quality and availability are also welcome, as are those that show the transfer of techniques from other disciplines. The Journal will consider papers dealing with processes for various water matrices including drinking water (except desalination), domestic, urban and industrial wastewaters, in addition to their residues. It is expected that the journal will be of particular relevance to chemical and process engineers working in the field. The Journal welcomes Full Text papers, Short Communications, State-of-the-Art Reviews and Letters to Editors and Case Studies