From Text to Simulation: Building EPANET Models from Formalized Network Descriptions with a Local Language Model
Michał Gorawski
Key points
From the paper's conclusion- On canonical descriptions, the verbal path gave a model equal in value to the description in all 52 runs on six networks, including a real distribution zone.
Abstract
Hydraulic models of water distribution networks are the basis of a digital twin, but they are still built mostly by hand. HydraKG is a software pipeline that constructs an EPANET model from a network description and checks the result against that description. In the tabular path, a deterministic parser reads GIS-style attribute tables. In the verbal path, a local large language model (LLM) reads a formalized natural-language description. The network is then checked by validators, by the EPANET solver and by a comparison with the description, none of which uses the source model; code repairs every fact with a single correct value, and the LLM corrects the rest in up to three rounds before the final model is simulated. On seven networks with 11 to 785 nodes, the tabular path reproduces the junction pressures of the source models, as represented internally, with a root-mean-square error (RMSE) of at most 2.1×10−4 m, which is the rounding limit. On canonical descriptions, the verbal path gave a model equal in value to the description in all 52 runs on six networks, including a real distribution zone. On the larger networks, the first extraction omitted groups of elements in every run, and correction rounds restored them.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- EPANET-Agentic: A multi-agent system for natural language-controlled simulations of water distribution networksWater Research · 2026
- TwinAI: A digital twin and graph reinforcement learning framework for real-time management of water distribution networksInternet of Things · 2026
- LeakAgent: a multi-agent system for leak detection using multi-modal large language model coordination in water distribution networkCommunications AI & Computing · 2026
- Hydrant-Guided Water Distribution System Reconstruction from OpenStreetMap via Constraint ProgrammingInfrastructures · 2026
- OpenAqua: An automated multi-agent framework for early-stage water treatment train design with retrieval augmentation and critic-based refinement.Water research · 2026
- Knowledge-Augmented Large Language Model for Autonomous MODFLOW 6 Input File Generation.Ground water · 2026