Learning physics and temporal dependencies: real-time modeling of water distribution systems via Kolmogorov–Arnold attention networks
Real-time modeling is vital for the intelligent management of urban water distribution systems (WDSs), enabling proactive decision-making, rapid anomaly detection, and efficient operational control. In comparison with traditional mechanistic simulators, data-driven models offer faster computation and reduced calibration demands, making them more suitable for real-time applications. However, existing models often accumulate long-term prediction errors and fail to capture the strong temporal dependencies in measured time series. To address these challenges, this study proposes the Kolmogorov–Arnold Attention Network for the real-time modeling of WDSs (KANSA), which combines Kolmogorov–Arnold Networks with attention mechanisms to extract temporal dependency features through bidirectional spatiotemporal processing. Additionally, a multi-equation soft-constraint formulation embeds mass and energy conservation laws into the loss function, mitigating cumulative errors and enhancing physical consistency. Evaluations on a benchmark network and a real-world system demonstrate that KANSA achieves high-accuracy real-time estimation and pattern fidelity while maintaining engineering-grade hydraulic balance.
Authors
- Tingchao Yu (ORCID: https://orcid.org/0000-0002-3230-0249)
- Gang Xu (ORCID: https://orcid.org/0000-0002-3721-9597)
- Zhong‐Mei Zou (ORCID: https://orcid.org/0000-0002-2466-3146)
- Raziyeh Farmani (ORCID: https://orcid.org/0000-0001-8148-0488)
- Shipeng Chu (ORCID: https://orcid.org/0000-0003-2678-992X)
- Zhihong Long
Institutions
- University of Exeter (GB)
- Guangzhou Chemistry (China) (CN)
- Zhejiang University (CN)
Publication Details
- Journal
- npj Clean Water
- Published
- 2025-08-08
- DOI
- https://doi.org/10.1038/s41545-025-00505-y
- Citations
- 1
- Primary Topic
- Gaussian Processes and Bayesian Inference
- Type
- article
- Field-Weighted Citation Impact
- 2.48
Funders
- National Natural Science Foundation of China
- National Key Research and Development Program of China