Investigating the Suitability of Concept Drift Detection for Detecting Leakages in Water Distribution Networks

Valerie Vaquet, Fabian Hinder, Barbara Hammer

TL;DR

This paper frames the challenge of detecting water pipe leakages as a concept drift problem in machine learning. By comparing model-loss-based and distribution-based detection methods, the authors demonstrate that distribution-based approaches—specifically those using virtual classifiers—can reliably detect even small leakages that traditional predictive models often overlook.

What Problem Does This Paper Address?

Water Distribution Networks (WDNs) are critical infrastructure, yet they are notoriously "opaque." Most pipes are underground, and precise network topologies are often undocumented or outdated. Detecting leakages, especially small ones, is a major challenge because:

  1. Data Scarcity: Real-time demand data is rarely available due to privacy concerns and the high cost of smart meters.
  2. Complex Dynamics: Water pressure and flow fluctuate wildly based on daily, weekly, and seasonal cycles (e.g., people shower in the morning; usage drops at night).
  3. Model Limitations: Traditional hydraulic models require exact physical parameters (pipe diameter, roughness) that are often unknown.

The authors investigate whether machine learning can treat a leakage as a "drift" in the data-generating process, allowing for detection without needing a perfect physical map of the pipes.

Methods

The researchers compared two main families of drift detection:

  • Model-loss-based Detection: These methods train a model (like a forecaster or an interpolator) on "normal" data. If the model's error (loss) spikes on new data, a drift (leak) is suspected. They tested k-Nearest Neighbors (kNN), Random Forests, and Ridge Regression.
  • Distribution-based Detection: These methods compare two windows of data directly to see if their underlying statistical distributions have changed. They used techniques like the Kolmogorov-Smirnov (KS) test, Maximum Mean Discrepancy (MMD), and D3 (a virtual classifier that tries to distinguish between "old" and "new" data).

To handle the heavy temporal dependencies (the "cycling" of water use), the authors proposed a simple but effective heuristic: using window sizes of exactly one week. This ensures that the "old" and "new" windows contain the same mix of weekday and weekend patterns, effectively canceling out the noise of human behavior.

Datasets

The study utilized the L-Town Benchmark Data, a realistic simulation of a water network in Limassol, Cyprus.

  • Scale: 661 nodes, 764 edges, and 29 pressure sensors.
  • Duration: One year of data with 15-minute measurement intervals.
  • Scenarios: Simulations included four leakage sizes ranging from 7mm to 19mm.

Key Insights and Ideas

  • The Generalization Trap: Surprisingly, high-performing predictive models (like Random Forests) were worse at detecting small leaks. Because these models are designed to be robust and generalize well, they often "smooth over" the subtle pressure changes caused by a small leak, treating the anomaly as mere noise.
  • Distribution over Prediction: Distribution-based methods outperformed model-loss methods because they don't rely on a model's ability to predict the future; they simply look for statistical shifts in the raw sensor data.
  • Linearity Wins: For the virtual classifier (D3), a simple linear model performed better than complex ones. It was less likely to overfit the temporal noise, making the actual signal of the leak stand out more clearly.
  • Localization via P-Values: The authors found that by looking at feature-wise Kolmogorov-Smirnov tests, the sensor with the smallest p-value (the most "drifting" sensor) was consistently the one closest to the actual leak.

Key Results

  • Detection Performance: Distribution-based methods achieved significantly higher ROC-AUC scores than model-loss methods.
  • Small Leak Sensitivity: Using the linear D3 detector, the authors could reliably detect the smallest simulated leak (7mm) with a delay of only about 5 days.
  • Forecasting vs. Interpolation: In the model-loss category, interpolation (predicting one sensor's value based on others at the same time) was more effective than forecasting (predicting future values), though both struggled with small leaks.

Limitations and Future Work

  • Simulation vs. Reality: While L-Town is a high-quality benchmark, real-world sensor noise and sensor failures (which can look like drifts) weren't the primary focus here.
  • Localization Precision: The current localization strategy identifies the closest sensor, not the exact pipe. In a sparse network, the "closest sensor" could still be quite far from the actual break.
  • Warning Mechanisms: The authors suggest that while detection is possible, practical applications need a more robust "warning system" to distinguish between a developing leak and a temporary change in network usage (like a local festival or a temporary construction project).

Summary updated

BibTeX
@inproceedings{vaquet2024investigating,
  author = {Valerie Vaquet and Fabian Hinder and Barbara Hammer},
  title = {{Investigating the Suitability of Concept Drift Detection for Detecting Leakages in Water Distribution Networks}},
  booktitle = {ICPRAM},
  year = {2024},
  url = {https://openreview.net/forum?id=3vwqL9S0iK},
}

Loading related content...

Figure