Environmental science & technology

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

Yu-Qi Wang, Hao-Lin Yang, Jia-Ji Chen, Wen-Zhe Wang, Yun-Peng Song, Ai-Jie Wang, Hong-Cheng Wang

State Key Laboratory of Urban-Rural Water Resource and Environment, School of Eco-Environment, Harbin Institute of Technology, Shenzhen518055, China. · Key Laboratory of Environmental Biotechnology, Research Center for Eco-Environmental Sciences, Chinese Academy of Sciences, Beijing100085, China.

Key points

From the paper's conclusion
  • 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.

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.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

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