A graph partitioning algorithm for leak detection in water distribution networks.

Aravind Rajeswaran, Sridharakumar Narasimhan, Shankar Narasimhan · OpenReview

Abstract

Monitoring massive water distribution networks (WDNs) for leaks is a critical challenge for urban infrastructure. Traditional hydraulic modeling methods often fail due to their sensitivity to poorly estimated parameters like pipe roughness. This paper presents a novel "divide and conquer" approach that treats WDNs as mathematical graphs. By strategically partitioning the network and performing a minimal number of on-demand flow measurements at the boundaries, the proposed algorithm can pinpoint leaks while measuring less than 3% of the pipes in large-scale systems.

Introduction

Water distribution networks are the lifeblood of urban environments, yet they are notoriously difficult to monitor effectively. Leaks lead to significant "unaccounted-for water" (UFW), resulting in financial loss, energy wastage, and potential water quality risks. The scale and complexity of these networks—often underground and poorly instrumented—make traditional monitoring difficult. Furthermore, "inverse analysis" methods relying on hydraulic simulators are often inaccurate because they require precise data on pipe friction factors and diameters, which are difficult to obtain in the field.

To overcome these limitations, this research proposes a method based on the fundamental law of mass conservation (water balance), which remains valid regardless of hydraulic parameters like pressure or pipe roughness.

Methodology: Recursive Partitioning and Querying

The core of the proposed method is a recursive protocol designed to narrow down a leak's location by treating the WDN as an undirected graph where nodes represent junctions and edges represent pipes.

  1. Partitioning: The network is split into two or more sub-networks.
  2. Querying: Flow is measured in the pipes that cross the boundary between these sub-networks, known as the "cut-set."
  3. Water Balance Analysis: Using measured flows and known consumption data, the algorithm identifies which sub-network exhibits a mass imbalance. If the "water in" does not equal the "water out," the leak must reside within that specific section.
  4. Recursion: The process repeats, zooming into the leaky section until the specific pipe or node is identified.
Figure 1: (a) A water distribution network modeled as a graph with a leaky node. (b) Strategic partitioning and querying of a specific pipe set (red edges) to isolate the leak.

The Water Balance Principle

The effectiveness of this search strategy relies on the ability to isolate sub-networks and verify mass conservation. By measuring the flow at the cut-set (M), researchers can treat each sub-network as a closed system. As illustrated in the schematic below, the presence of source nodes (S), demand nodes (D), and tanks (T) allows for a straightforward calculation of expected vs. actual flow.

Figure 2: Schematic representation of the water balance logic. Measurements (M) at cut-sets allow for the calculation of mass imbalance in sub-networks containing sources (S), demands (D), and tanks (T).

Optimization Strategies

To make the search efficient, the algorithm must minimize the "cut-cost" (the number of measurements) while keeping partitions "balanced" to ensure rapid convergence, similar to a binary search. The researchers explored three mathematical formulations:

  • Lexicographic ILP: An Integer Linear Programming approach that prioritizes perfectly equal partitions before minimizing measurements.
  • Goal Programming ILP: A flexible ILP that allows for slightly unequal partitions (e.g., a 10% deviation) if it significantly reduces the number of measurements required.
  • Spectral Bisection: A faster heuristic method using the "Fiedler vector" (the eigenvector of the second smallest eigenvalue of the graph Laplacian) to find split points in very large graphs where ILP might be computationally prohibitive.

Key Results and Insights

The algorithm was evaluated on several benchmark networks, including the large-scale Exnet (1,893 nodes, 2,418 pipes) and the real-world Bangalore network.

  • Efficiency: For the Exnet benchmark, the Goal Programming ILP successfully located leaks by measuring only 1.7% to 2.3% of the total pipes on average.
  • Scalability: While the absolute number of measurements increases with network size, the percentage of the network that needs to be measured decreases, making it highly suitable for large urban systems.
  • Parameter Independence: By relying solely on flow measurements and water balance, the method avoids the errors inherent in traditional hydraulic models that depend on pipe roughness or pressure data.

Conclusion and Future Work

This graph-based partitioning approach offers a robust, "query-on-demand" solution for leak detection. By using portable flow meters only where directed by the algorithm, utilities can significantly reduce field labor and infrastructure costs.

Future research will address current limitations, such as the assumption of a steady-state network and the impact of sensor noise. Additionally, the authors plan to incorporate "edge attributes" like pipe length into the partitioning logic to further optimize the physical search process in the field.

Summary updated

BibTeX
@misc{rajeswaran2016graph,
  author = {Aravind Rajeswaran and Sridharakumar Narasimhan and Shankar Narasimhan},
  title = {{A graph partitioning algorithm for leak detection in water distribution networks.}},
  year = {2016},
  eprint = {1606.01754},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.01754},
}
Figure