Kapish Bansal Résumé
← All work

01 / 06Machine learning · Real-time

Finds and locates water-pipe leaks from pressure data, in real time.

Role
ML + full stack
Year
2026
Status
Runs locally
84.7%LSTM-AE detection recall
0.56XGBoost F1 (MNF baseline ≈ 0.50)
49.6%GAT top-3 localisation
2 of 3models must agree

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.

HydraWatch dashboard: live XGBoost leak probability, feature impact, the Hanoi pipe network graph with alerted nodes, and an alert feed.
HydraWatch dashboard: live XGBoost leak probability, feature impact, the Hanoi pipe network graph with alerted nodes, and an alert feed.

How it flows

  1. 01SCADA pressure stream
  2. 0213 features / junction
  3. 03XGBoost · LSTM-AE · GAT
  4. 042-of-3 vote
  5. 05Alert + suspect nodes

What I built

01

XGBoost classifier

300 trees over 13 engineered features per junction: demand residuals, Z-score differentials and 6-hour variance windows.

02

LSTM autoencoder

24-hour windows squeezed to an 8-dim latent space. It alarms when a daily routine stops reconstructing.

03

Graph Attention Network

PyTorch Geometric model that propagates pressure changes along the real pipe graph to localise the burst.

04

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.

Next project

PoEC Financial forensics: graph ML finds circular trading, then proves it on-chain.

← RDO All work