Submitted:
13 August 2026
Posted:
14 August 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Unified hydraulics–quality hybrid: a single end to end trainable architecture coupling a conservation aware hydraulic GNN with a spatio temporal graph PINN for reactive transport (addresses RQ1).
- Physics guided message passing for hydraulics: explicit conservation laws in GNN updates to reconstruct flows, heads, and pressures with low model depth and cost (addresses RQ2).
- Virtual node pipe discretization inside GNN PINN: scalable virtual node discretization with PDE losses that preserve advection–reaction dynamics for thousands of nodes (addresses RQ3).
- Multitask training and consistency coupling: supervised + physics loss enforcing junction mass/flux balance and flow–transport coupling for robust partial observability performance (addresses RQ4).
- Scalability and deployment focus: emulator level hydraulic accuracy and state of the art water quality error with orders of magnitude speedups vs. conventional simulators, suitable for edge capable digital twins and real time decision support.
2. Materials and Methods
2.1. Graph Representation of Water Distribution Systems
2.2. Conservation-Aware Hydraulic GNN
2.2.1. Governing Equations
2.2.2. Physics-Guided Message Passing
2.3. Spatio-Temporal Graph PINN for Water Quality
2.3.1. Advection–Reaction PDE
2.3.2. Virtual Node Pipe Discretization
2.3.3. GNN-PINN Architecture
- Encoder: embeds node/edge features
- Processor: message passing over physical topology
- Decoder: predicts concentration
2.4. Coupled Multi-Task Training
2.4.1. Supervised Loss
2.4.2. Hydraulic Physics Loss
2.4.3. Water-Quality PDE Loss2.4.4. Coupling Consistency Loss
2.4.5. Total Loss
2.5. Training Workflow
3. Experimental Setup
3.1. Networks and Data
3.1.1. Small Network (≈10–100 nodes)
3.1.2. Medium Network (≈300–500 nodes)
3.1.3. Large Network (≈4,000–10,000 nodes)
3.2. Scenario Design
3.2.1. Model Configuration
3.2.2. Training
3.2.3. Evaluation Metrics
3.2.4. Baselines and Ablations
3.2.5. Dynamic Transient Testing (Addresses RQ1 and RQ3 )
4. Results
4.1. Hydraulic Accuracy
4.2. Water-Quality fidelity
4.3. Computational Performance
4.4. Generalization and Robustness
4.5. Ablation Studies
4.5.1. Effect of Physics Losses
4.5.2. Virtual-Node Resolution
4.6. Uncertainty and Sensitivity
4.6.1. Flow Noise
4.6.2. Hyperparameter Stability
4.6.3. Effect of Pipe Segment Length
- Diminishing returns: accuracy gains flatten at the smallest σ values, indicating a point beyond which further refinement yields limited benefit relative to cost.
- Training cost increases as σ decreases training time rises substantially for both Medium (panel b) and Large (panel d) networks (e.g., ~2.1k → ~5.4k s for Medium; ~5k → ~14k s for Large), reflecting higher compute for more virtual nodes and longer sequences.
- Recommended operating point: the marked σ = 30.48 m (100 ft) balances accuracy and cost — it lies near the knee where error improvements begin to taper while training time remains moderate.
- Variability across runs shaded bands (±1 std) show modest run-to-run variability; trends are robust across independent runs. Taken together, these results highlight a clear precision–compute trade-off. Very fine discretizations (σ ≈ 15–20 m) deliver the highest fidelity but impose heavy training overhead, which may be impractical for frequent retraining or deployment on resource-limited hardware. A more balanced choice lies near σ ≈ 30.48 m, which still achieves RMSE ≤ 0.0121 mg/L while keeping training time below roughly 3,941 s in our experiments (answering RQ2). In practice, σ should be tuned to the intended use case: finer discretization for offline high-accuracy studies, and coarser discretization for near-real-time emulation or operational settings where computational efficiency is paramount.
4.7. Effect of Embeddings and GNN Layers on the Hydraulics and the Quality Simulation
4.8. Dynamic Transient Events
5. Discussion
5.1. Key Findings
5.2. Limitations
5.3. Practical Implications
5.4. Future Work
6. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Acknowledgments
Abbreviations
| MOC | Method of Characteristics |
| PINN-WDS-FQ | Physics-Informed Neural Network Modelling of Water Distribution Systems for Integrated Flow and Quality Simulation |
| GNN | Graphical Neural Network |
| PINN | Physics-Informed Neural Network |
References
- Rossman LA. EPANET 2: users manual, Tech. rep., US Environmental Protection Agency. Office of Research and Development. National Risk Management Research Laboratory (2000). https://nepis.epa.gov/Adobe/PDF/P1007WWU.pdf (accessed 06.06. 2026).
- Ostfeld, A.; Salomons, E.; Ormsbee, L.; Uber, J.G.; Bros, C.M.; Kalungi, P.; Burd, R.; Zazula-Coetzee, B.; Belrain, T.; Kang, D.; Lansey, K.; Shen, H.; McBean, E.; Wu, Z.Y.; Walski, T.; Alvisi, S.; Franchini, M.; Johnson, J.P.; Ghimire, S.R.; Barkdoll, B.D.; Koppel, T.; Vassiljev, A.; Kim, J.H.; Chung, G.; Yoo, D.G.; Diao, K.; Zhou, Y.; Li, J.; Liu, Z.; Chang, K.; Gao, J.; Qu, S.; Yuan, Y.; Prasad, T.D.; Laucelli, D.; Lyroudia, L.; Kapelan, Z.; Savic, D.; Berardi, L.; Barbaro, G.; Giustolisi, O.; Asadzadeh, M.; Tolson, B.A.; McKillop, R. Battle of the water calibration networks. J. Water Resour. Plan Manag. 2012, 138(5), 523–32. [Google Scholar] [CrossRef]
- Ashraf, I.; Strotherm, J.; Hermes, L.; Hammer, B. Physics-informed graph neural networks for water distribution systems. 2024. [Google Scholar] [CrossRef]
- Zou, X.Y.; Lin, Y.L.; Xu, B.; Guo, Z.B.; Xia, S.J.; Zhang, T.Y.; Wang, A.Q.; Gao, N.Y. A novel event detection model for water distribution systems basesd on data-driven estimation and support vector machine classification. Water Resour. Manag. 2019, 33, 4569–81. Available online: https://link.springer.com/article/10.1007/s11269-019-02317-5. [CrossRef]
- Djemel, C., Piller, O., Horsin, T., Mimeau, C., & Mortazavi, I. (2024). Review of Reduced-Order Models for Online Protection of Water Distribution Networks. The 3rd International Joint Conference on Water Distribution Systems Analysis & Computing and Control for the Water Industry (WDSA/CCWI 2024).
- Wu, Yuandi; Sicard, Brett; Gadsden, Stephen Andrew. Physics-informed machine learning: A comprehensive review on applications in anomaly detection and condition monitoring. Expert Syst. Appl. 2024, 255, PC. [Google Scholar] [CrossRef]
- Raissi, M.; Perdikaris, P.; Karniadakis, G. E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
- Dong, Chenghao. Solving Differential Equations with Physics-Informed Neural Networks. Theor. Nat. Sci. 2025, 87, 137–146. [Google Scholar] [CrossRef]
- Xing, L.; Sela, L. Graph Neural Networks for State Estimation in Water Distribution Systems: Application of Supervised and Semisupervised Learning. J. Water Resour. Plan. Manag. 2022, 148(5). [Google Scholar] [CrossRef]
- Sun, L.; Zhang, H.; Tartakovsky, A. M. PINN-GNN hybrids for spatio-temporal transport: A physics-informed graph neural network approach for reactive transport. J. Comput. Sci. 2022, 64, 101789. [Google Scholar]
- Li, Z.; Sun, X.; Zhou, Y. Spatio-temporal graph PINNs for chlorine transport prediction in water networks. Water Res. 2023, 231, 119349. [Google Scholar]
- Mu, T.; Duan, F.; Ning, B.; et al. ST-GPINN: a spatio-temporal graph physics-informed neural network for enhanced water quality prediction in water distribution systems. npj Clean. Water 2025, 8, 74. [Google Scholar] [CrossRef]
- Zheng, Y.; et al. Deep representation learning enables cross-basin water quality prediction under data-scarce conditions. npj Clean. Water 2025, 8, 33. [Google Scholar] [CrossRef]
- Yan, H.; Li, S.; Tian, W.; Wang, J.; Li, F.; Duan, H.; et al. A hybrid model coupling data and hydraulic transient laws for water distribution systems. Water Resour. Res. 2025, 61, e2023WR036641. [Google Scholar] [CrossRef]
- Kovachki, Nikola; Li, Zongyi; Liu, Burigede; Azizzadenesheli, Kamyar; Bhattacharya, Kaushik; Stuart, Andrew; Anandkumar, Anima. „Neural Operator: Learning Maps Between Function Spaces”. arXiv 2021. [Google Scholar] [CrossRef]
- Ruff, E.; Russell, R.; Stoeckle, M.; Miotto, P.; How, J. P. Surrogate Neural Networks for Efficient Simulationbased Trajectory Planning Optimization. arXiv 2023, arXiv:2303.17468. [Google Scholar]
- Horie, M.; Mitsume, N. Physics-embedded neural networks: graph neural PDE solvers with mixed boundary conditions. Adv. Neural Inf. Process Syst. 2022, 35, 23218–29. Available online: https://proceedings.neurips.cc/paper_files/paper/2022/hash/93476ae409ae3246e22a9d4b931f84ed-Abstract-Conference.html. [CrossRef]
- Faroughi, S.A.; Pawar, N.M.; Fernandes, C.; Raissi, M.; Das, S.; Kalantari, N.K.; Kourosh Mahjour, S. Physics-guided, physics-informed, and physics-encoded neural networks and operators in scientific computing: fluid and solid mechanics. J. Comput Inf. Sci. Eng. 2024, 24(4), 040802. [Google Scholar] [CrossRef]
- Dalton, D.; Husmeier, D.; Gao, H. Physics-informed graph neural network emulation of soft-tissue mechanics. Comput Methods Appl. Mech. Eng. 2023, 417, 116351. Available online: https://www.sciencedirect.com/science/article/pii/S0045782523004759. [CrossRef]
- Xiang, Z.; Peng, W.; Yao, W.; Liu, X.; Zhang, X. Solving spatiotemporal partial differential equations with Physics-informed Graph Neural Network. Appl. Soft Comput. 2024, 155, 111437. [Google Scholar] [CrossRef]
- Mileiko, S.; Karim, H.; Balsamo, D. Machine Learning Approaches for Leak Detection in Water Distribution Systems: A Comparative Study. 2025 IEEE Sensors Applications Symposium (SAS), Newcastle, United Kingdom, 2025; pp. 1–6. [Google Scholar] [CrossRef]
- Artelt, A.; Kyriakou, M.S.; Vrachimis, S.G.; Eliades, D.G.; Hammer, B.; Polycarpou, M.M. EPyT-flow: a toolkit for generating water distribution network data. 2024. Available online: https://github.com/WaterFutures/EPyT-Flow. [CrossRef]
- Zhou, F.; Yang, Yongwei; Wu, Xiang; Fang, Peng; Liang, Qiuying; Lai, Hanghui; Guo, Yuyao; Zhu, Yanling; Yang, Lei. Research on spherical harmonics method based on the MOC neutron transport code OpenMOC. Ann. Nucl. Energy 2024, Volume 208(2024), 110759. [Google Scholar] [CrossRef]















| Model / Ablation | Hydraulic MAE | Quality MAE | Contribution (%) |
| EPANET (ground truth) | 0.0000 | 0.0000 | – |
| Supervised GNN surrogate | 0.0048 | 0.0125 | 42% |
| Decoupled PINN transport | 0.0039 | 0.0152 | 51% |
| Hybrid PINN–GNN (prior work) | 0.0031 | 0.0110 | 63% |
| Full PINN-WDS-FQ (ours) | 0.0024 | 0.0081 | 100% |
| Ablation: remove continuity loss | 0.0036 | 0.0109 | 74% |
| Ablation: remove momentum loss | 0.0033 | 0.0104 | 79% |
| Ablation: remove advection–dispersion loss | 0.0027 | 0.0128 | 68% |
| Ablation: remove reaction-kinetics loss | 0.0025 | 0.0102 | 84% |
| Ablation: low virtual-node density (σ = 60 m) | 0.0038 | 0.0135 | 58% |
| Ablation: high virtual-node density (σ = 10 m) | 0.0023 | 0.0079 | 103% |
| Single-task: hydraulics only | 0.0026 | 0.0141 | 55% |
| Single-task: quality only | 0.0068 | 0.0087 | 71% |
| Multi-task (ours) | 0.0024 | 0.0081 | 100% |
| Metric | MOC Baseline | Standard GNN (No Physics Loss) | PINN-WDS-FQ (Proposed) |
| Flow RateRMSE (L/s) | Reference | 4.82 | 0.21 |
| ConcentrationMAE (mg/L) | Reference | ||
| Mass Balance Violation (MBV) | 0.00% | 8.45% | 0.02% |
| Inference Runtime per Timestep | 145.0 ms | 1.1 ms | 1.4 ms |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).