Skip to content

Auditable Automation of Activated Sludge Modeling for Wastewater Treatment Diagnosis Using LLM-Agents

Sep 2026 · Environmental Science & Technology · Vol 60, pp. 27879-27892 · 0 citations · 54 references
Wastewater Treatment and Nitrogen Removal

Abstract

Wastewater treatment plants (WWTPs) need mechanistic models that explain carbon, nitrogen, and phosphorus transformations under changing operating conditions. Building activated sludge models (ASMs) still depends heavily on expert choices about boundaries, components, and reactions. We developed AutoWWTP-ASM, an auditable large-language-model agent (LLM-Agent) workflow for library-constrained ASM configuration, execution, and calibration. The workflow converts wastewater-process descriptions into structured configurations and combines a predefined ASM library with boundary specification and optional human review. In a coupled carbon−nitrogen−phosphorus task, AutoWWTP-ASM instantiated a model containing 21 state components and 41 biochemical reactions. Across 37 evaluation tasks, the average accuracy scores of ten LLM backbones ranged from 0.596 to 0.627, indicating a narrow range of backbone-level performance within the tested workflow. Ablation experiments evaluated the knowledge, planning, and reflection modules. Comparisons with a single agent, an 8B LLM, and human modelers assessed deployment and efficiency trade-offs. Additional evaluations using six IWA BSM1 scenarios and data from a full-scale WWTP provided further evidence of applicability under standardized and real-data conditions. We provide open-source LangGraph code, together with Codex, Claude Code, and Agent Skill implementations, to support the reproducible development of auditable LLM-Agent workflows for environmental modeling.

View source

Similar papers

Review Aug 2026

Machine-learning modeling and optimization of electro-osmotic dewatering of wastewater sludge: Current status and challenges.

Electro-osmotic dewatering (EOD) is a promising technology for enhanced sludge dewatering and volume reduction. However, its engineering application is constrained by multiphysics coupling, partially observed internal states, sludge variability, and trade-offs among dewatering efficiency, energy consumption, treatment...

Xing Zhang, Yu Huang, Ya-Fei Shi et al. · 0 citations
#federated learning Review Oct 2026

Artificial intelligence in wastewater treatment: critical review of predictive performance, explainability and deployment readiness

Artificial intelligence (AI) has been increasingly adopted in wastewater treatment to support soft sensing, effluent prediction, nutrient removal assessment, membrane monitoring, anomaly detection, greenhouse-gas emission modeling, and anaerobic digestion optimization. This critical review synthesizes approximately 5...

Wael S. Al-Rashed · 0 citations
Oct 2026

A process-resolved risk prioritization framework reveals hidden antibiotic control deficiencies in wastewater treatment trains.

Antibiotic prioritization in wastewater treatment plants (WWTPs) commonly relies on influent-effluent changes. Such assessments may mask differences among configurations, treatment contexts, and endpoint media. Here, we established a process-resolved antibiotic Environmental Health Prioritization index (PA-EHPi). At th...

Xin-Yang Lu, Xin-Yue Wu, Sai-Yong Zhu et al. · 0 citations
Open access Nov 2026

Evaluating aeration savings and ammonium exceedances through complete-state matching in a wastewater treatment benchmark

We combined complete-state matching with direct ammonium excursion analysis to assess the effluent consequences of interventions that save aeration energy. Fixed dissolved oxygen (DO) references of 2.00, 1.90 and 1.80 mg O₂/L were compared in Benchmark Simulation Model No. 2 (BSM2) from 42 restored plant states, with i...

Aymen Zegnouni, A. Benmansour · 0 citations
Open access Sep 2026

Machine Learning for Effluent Forecasting at a Full-Scale Municipal Wastewater Treatment Plant: Seasonal Performance Deterioration and the Decisive Role of Prediction Horizon

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. · 0 citations

Related blog posts

Microsoft Research Blog Oct 12, 2026

Simulating student learning for better AI tutoring

StudentSim is a research system for evaluating and improving AI tutoring tools before they are tested with learners. It models how individuals may engage with tutors, giving feedback to improve tutor performance across subjects like chess, writing, and mathematics. The post Simulating student learning for better AI tutoring appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.