Project
AI-Enabled Water Leak Detection
Overview
Detecting and localizing leaks in simulated urban water networks from pressure-sensor data.
My master's thesis, “AI-Enabled Leak Detection in Simulated Urban Water Distribution Networks and Prospects for Residential-Level Usage”, studies how well classical machine learning can detect a leak, identify the affected zone and localize the leaking node, using only pressure-sensor readings.
M.S. thesis, California State University, Los Angeles (advisor: Dr. Navid Amini).
Problem
Leaks waste water and are hard to find: pressure changes propagate through complex hydraulics, and a model has to generalize across many leak scenarios and locations.
Role
Researcher (M.S. thesis) and Research Assistant
Stack
- Simulation
- EPANETWNTR
- ML
- scikit-learnRandom ForestXGBoostSVMLogistic Regression
- Data
- PythonpandasNumPy
- Analysis
- matplotlibseabornGoogle Colab
Architecture
From a simulated network to a localized leak.
Hydraulic simulation
EPANET/WNTR networks with controlled leak injection. Benchmark scenarios come from LeakDB.
Pressure residuals
Features are ΔP = P(baseline) − P(leak) at each sensor node, e.g. X = (ΔP₁ … ΔP₂₂).
Models
Random Forest plus baseline classifiers (XGBoost, SVM) for detection and node localization.
Engineering
Engineering decisions
Pressure residuals, not raw pressure
Subtracting the no-leak baseline isolates the leak's signature from normal demand patterns.
Benchmark on LeakDB
A published benchmark (Vrachimis et al., 2020) makes results comparable and reproducible.
Choose models by recall and F1
A missed leak costs more than a false alarm, so accuracy alone is misleading.
Challenges & solutions
Weak signal at some nodes
Per-node analysis showed which locations are hard to localize (nodes 14, 17, 21 and 22 on Anytown), guiding where sensors and features matter most.
Results & roadmap
Results & outcomes
Only results reproduced in the thesis notebooks are shown. Leak-detection results will be added once they are reproduced.
Leak-node localization, Anytown (22 nodes)
84.5% accuracy
Source: Random Forest, macro-F1 0.85. Printed in the thesis notebook.
Roadmap
- Simulation pipeline · EPANET network with controlled leak injectionDone
- LeakDB evaluation · Leak-node localization on the Anytown networkDone
- Hardware testbed · Real sensors and sensor-noise modelingPlanned
- Sequence models · CNN/LSTM on pressure time seriesPlanned
- Monitoring dashboard · Real-time view of network sensorsPlanned