TY - JOUR
T1 - Comparing different Physics-Informed Neural Network models for chlorine modeling in EPANET under varying initial and boundary conditions
AU - Komarovsky, Shimon
AU - Shamaly, Raghad
AU - Abhijith, Gopinathan R.
AU - Cominola, Andrea
AU - Ostfeld, Avi
N1 - Publisher Copyright:
© 2025 The Author(s)
PY - 2026/1/1
Y1 - 2026/1/1
N2 - Accurate water quality modeling in water distribution systems (WDS) is essential for ensuring safe and reliable drinking water. While numerical solvers such as EPANET provide robust simulations, their computational cost increases substantially for real-time or large-scale applications, particularly when boundary and initial conditions vary over time. Existing Physics-Informed Neural Network (PINN) approaches face limitations in handling such changing conditions, despite their prevalence in real WDS operations. This study focuses on enhancing the adaptability of PINNs for chlorine modeling under diverse and dynamic scenarios. The proposed framework embeds the governing Advection–Reaction (AR) equation into a deep learning architecture and introduces targeted modifications to the formulation of boundary and initial condition losses. Training data are generated using EPANET simulations, and the framework is evaluated under multiple scenarios, including constant and time-varying velocities as well as fixed and dynamic boundary and initial conditions. Results demonstrate that a PINN model explicitly designed for boundary-condition adaptability can accurately reproduce EPANET water quality simulations while reducing computational demands. Key factors influencing performance, such as proper PDE specification, loss balancing, and data preprocessing, are identified. Although the analysis is conducted on a single-pipe testbed to isolate these effects, the findings establish an essential foundation for extending adaptive PINNs to full WDS networks. The primary contribution of this work is the development and demonstration of a PINN architecture capable of reliably adapting to varying boundary and initial conditions, addressing a critical gap in current PINN-based water quality modeling research.
AB - Accurate water quality modeling in water distribution systems (WDS) is essential for ensuring safe and reliable drinking water. While numerical solvers such as EPANET provide robust simulations, their computational cost increases substantially for real-time or large-scale applications, particularly when boundary and initial conditions vary over time. Existing Physics-Informed Neural Network (PINN) approaches face limitations in handling such changing conditions, despite their prevalence in real WDS operations. This study focuses on enhancing the adaptability of PINNs for chlorine modeling under diverse and dynamic scenarios. The proposed framework embeds the governing Advection–Reaction (AR) equation into a deep learning architecture and introduces targeted modifications to the formulation of boundary and initial condition losses. Training data are generated using EPANET simulations, and the framework is evaluated under multiple scenarios, including constant and time-varying velocities as well as fixed and dynamic boundary and initial conditions. Results demonstrate that a PINN model explicitly designed for boundary-condition adaptability can accurately reproduce EPANET water quality simulations while reducing computational demands. Key factors influencing performance, such as proper PDE specification, loss balancing, and data preprocessing, are identified. Although the analysis is conducted on a single-pipe testbed to isolate these effects, the findings establish an essential foundation for extending adaptive PINNs to full WDS networks. The primary contribution of this work is the development and demonstration of a PINN architecture capable of reliably adapting to varying boundary and initial conditions, addressing a critical gap in current PINN-based water quality modeling research.
KW - Differential equation
KW - PINN
KW - Water distribution systems
KW - Water quality model
UR - https://www.scopus.com/pages/publications/105025440401
U2 - 10.1016/j.wroa.2025.100471
DO - 10.1016/j.wroa.2025.100471
M3 - ???researchoutput.researchoutputtypes.contributiontojournal.article???
AN - SCOPUS:105025440401
VL - 30
JO - Water Research X
JF - Water Research X
M1 - 100471
ER -