A multi-institutional research team has developed a physics-guided mixture density network (PgMDN) that significantly enhances the forecasting of lateral offtake discharges in large canal systems, a critical factor in managing inter-basin water transfers. The study, published in Environmental Science and Ecotechnology on May 7, 2026 (DOI: 10.1016/j.ese.2026.100703), addresses the challenge of unpredictable water diversions that often compromise reliable water supply.
Lateral offtake discharges—flows diverted from main canals through side channels—frequently deviate from planned targets due to real-time hydraulic states and unplanned gate operations. These deviations produce multi-peaked, highly uncertain flow distributions that traditional physics-based methods struggle to model efficiently, while purely data-driven approaches fail to capture complex patterns, especially under data-scarce conditions. The new PgMDN integrates physical hydraulic laws into a probabilistic deep-learning framework to improve both point-prediction accuracy and uncertainty quantification.
Unlike standard mixture density networks that rely solely on data fitting, the PgMDN incorporates two physical constraints directly into its loss function. First, it promotes local mass-balance consistency by aligning predicted mean discharges with inflow-minus-outflow values derived from a simplified hydraulic model. Second, it imposes a consistency rule: when predicted mean flows change rapidly—indicating operational shifts or abrupt gate movements—the model's uncertainty increases accordingly, preventing overconfident predictions during unstable conditions.
Tested on real-world data from two reaches of China's South-to-North Water Diversion Project, the PgMDN reduced mean absolute error (MAE) by more than 25% and root mean square error (RMSE) by over 25% compared to standard MDNs. Reliability improved from 0.45 to 0.82 at the 90% confidence level. The model maintained stable performance even when training data were intentionally reduced, demonstrating strong generalization under data-scarce conditions. Using SHapley Additive exPlanations (SHAP) analysis, the team identified water level fluctuations and boundary inflows as the dominant drivers of predictive uncertainty, adding interpretability to the model's predictions.
According to the authors, "We wanted a model that doesn't just give a single number but actually tells operators how much to trust that number. By embedding two simple physical rules into the learning process—promoting local mass-balance consistency and linking sudden flow changes to wider uncertainty—we got much more reliable forecasts, even when data were limited. It's like teaching the AI some basic hydraulics so it doesn't make physically impossible guesses."
This approach enables more adaptive water allocation in real time. Operators can use probabilistic forecasts to adjust safety margins, optimize gate operations, and respond more effectively to unexpected events such as unplanned withdrawals. The framework is scalable and can be integrated into existing hydrodynamic models to estimate plausible water-level ranges under different scenarios. By bridging physical understanding with data-driven learning, the PgMDN offers a practical pathway toward resilient management of large-scale water systems, especially in regions facing increasing hydrological variability. It also opens the door for similar hybrid models in other environmental infrastructure applications, from flood control to water distribution networks.
The research was conducted by teams from Wuhan University in China, the Construction and Administration Bureau of the Middle-Route of the South-to-North Water Diversion Project, the University of Exeter in the United Kingdom, and the KWR Water Research Institute in the Netherlands. Funding was provided by the National Key Research and Development Program of China [Grant No. 2024YFC3211800] and the China Scholarship Council (CSC) [Grant No. 202406270118].

