The problem
Traditional leak detection leans on acoustic sensors and Minimum Night Flow analysis, which can take 16+ hours to register an anomaly during daytime demand.
What it is
A streaming leak detector for water networks, trained on the imbalanced, real-world KIOS LeakDB SCADA benchmark (Hanoi network). Three independent models vote, and a graph model points to where the burst is.
How it flows
- 01SCADA pressure stream
- 0213 features / junction
- 03XGBoost · LSTM-AE · GAT
- 042-of-3 vote
- 05Alert + suspect nodes
What I built
XGBoost classifier
300 trees over 13 engineered features per junction: demand residuals, Z-score differentials and 6-hour variance windows.
LSTM autoencoder
24-hour windows squeezed to an 8-dim latent space. It alarms when a daily routine stops reconstructing.
Graph Attention Network
PyTorch Geometric model that propagates pressure changes along the real pipe graph to localise the burst.
2-of-3 consensus
A critical alert needs two of the three architectures to agree, to stop false-alarm fatigue. TreeSHAP shows why each call was made.
Stack
- PyTorch
- PyTorch Geometric
- XGBoost
- TreeSHAP
- FastAPI
- WebSockets
- React
- Vite
Limits
Runs as a local simulation over LeakDB traces (Hanoi_CMH), not on a live utility network.