{"title":"Learning physics and temporal dependencies: real-time modeling of water distribution systems via Kolmogorov–Arnold attention networks","authors":"Zekun Zou, Zhihong Long, Gang Xu, Raziyeh Farmani, Tingchao Yu, Shipeng Chu","doi":"10.1038/s41545-025-00505-y","DOIUrl":null,"url":null,"abstract":"<p>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.</p>","PeriodicalId":19375,"journal":{"name":"npj Clean Water","volume":"289 1","pages":""},"PeriodicalIF":11.4000,"publicationDate":"2025-08-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"npj Clean Water","FirstCategoryId":"5","ListUrlMain":"https://doi.org/10.1038/s41545-025-00505-y","RegionNum":1,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, CHEMICAL","Score":null,"Total":0}
引用次数: 0
Abstract
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.
npj Clean WaterEnvironmental Science-Water Science and Technology
CiteScore
15.30
自引率
2.60%
发文量
61
审稿时长
5 weeks
期刊介绍:
npj Clean Water publishes high-quality papers that report cutting-edge science, technology, applications, policies, and societal issues contributing to a more sustainable supply of clean water. The journal's publications may also support and accelerate the achievement of Sustainable Development Goal 6, which focuses on clean water and sanitation.