A Deep Reinforcement Learning Framework for Leak Detection and Localisation in Water Distribution Networks

Leakage from water distribution networks reduces the water available to consumers, wastes the energy used for treatment and pumping, and places avoidable pressure on already stressed sources. Reducing these losses is central to sustainable water resources management and to Sustainable Development Goal 6 (clean water and sanitation). Existing data-driven approaches for leak detection and localisation typically rely on labelled leak datasets and treat detection and localisation as separate tasks. This paper presents a simulation-driven deep reinforcement learning framework that jointly addresses both tasks within a single sequential policy without requiring static labelled leak data. The problem is formulated as a finite-horizon Markov decision process, and a custom gymnasium-compatible environment is developed by integrating EPANET with the Water Network Tool for Resilience under Pressure-Dependent Analysis. Within this environment, a deep Q-network agent is trained on the Anytown benchmark water network to detect and localise leaks directly at the junction level from hydraulic observations across three independent random seeds. The agent achieved a cross-seed mean detection accuracy and F1 score of 99.9%, an exact junction-level localisation accuracy of 98.2%, and a mean average topological distance of 0.029 pipe hops, with over 99.9% of predictions falling within three pipe hops of the true leak node. These results demonstrate the feasibility of leak detection and localisation through sequential reward-based interactions with a physics-based hydraulic environment, without dependence on pre-collected scenario datasets, offering a route towards faster leak response and reduced water loss.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-12-01
DOI
https://doi.org/10.21203/rs.3.rs-11244701/v1
Primary Topic
Water Systems and Optimization
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A Deep Reinforcement Learning Framework for Leak Detection and Localisation in Water Distribution Networks

Jinlin Gao, Quanbin Sun, Awais Javed, Wenyan Wu
Research Square
Water Systems and Optimization
preprint

A Deep Reinforcement Learning Framework for Leak Detection and Localisation in Water Distribution Networks

Jinlin Gao, Quanbin Sun, Awais Javed, Wenyan Wu
preprint en

Abstract

Leakage from water distribution networks reduces the water available to consumers, wastes the energy used for treatment and pumping, and places avoidable pressure on already stressed sources. Reducing these losses is central to sustainable water resources management and to Sustainable Development Goal 6 (clean water and sanitation). Existing data-driven approaches for leak detection and localisation typically rely on labelled leak datasets and treat detection and localisation as separate tasks. This paper presents a simulation-driven deep reinforcement learning framework that jointly addresses both tasks within a single sequential policy without requiring static labelled leak data. The problem is formulated as a finite-horizon Markov decision process, and a custom gymnasium-compatible environment is developed by integrating EPANET with the Water Network Tool for Resilience under Pressure-Dependent Analysis. Within this environment, a deep Q-network agent is trained on the Anytown benchmark water network to detect and localise leaks directly at the junction level from hydraulic observations across three independent random seeds. The agent achieved a cross-seed mean detection accuracy and F1 score of 99.9%, an exact junction-level localisation accuracy of 98.2%, and a mean average topological distance of 0.029 pipe hops, with over 99.9% of predictions falling within three pipe hops of the true leak node. These results demonstrate the feasibility of leak detection and localisation through sequential reward-based interactions with a physics-based hydraulic environment, without dependence on pre-collected scenario datasets, offering a route towards faster leak response and reduced water loss.

Research Square
Birmingham City University (GB), Harbin Institute of Technology (CN)
Water Systems and Optimization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
A Deep Reinforcement Learning Framework for Leak Detection and Localisation in Water Distribution Networks — Jinlin Gao, Quanbin Sun, et al. · Research Square (2026) | TGRS Research Map | TGRS