Water

From Text to Simulation: Building EPANET Models from Formalized Network Descriptions with a Local Language Model

Michał Gorawski

Computational

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