๐Ÿ’ง Water Consumption Anomaly Detector ๐Ÿ’ง

Step 1: Upload Water Consumption Data

Upload consumption values, meter status, history notes, for every water meter in the city

โ˜๏ธ
Drag and drop consumption data file here
Limit 200MB per file โ€ข CSV, XLSX
Processing...
Time elapsed: 0.0s

How it Works

1
Historical leak analysis & pattern recognition
The system analyzes history notes for each account to identify meters that previously had leaks or dead batteries. It examines cases where new consumption values were significantly higher or lower than normal for the account, indicating either a water leak (unusually high consumption) or a dead meter (unusually low or zero consumption). This historical data provides the foundation for supervised learning.
2
Supervised learning model training
Previous confirmed leaks and meter failures are used to train a supervised learning model using scikit-learn. The model learns patterns from historical data including consumption patterns, meter age, property characteristics, and seasonal variations to predict potential leaks and dead meters.
3
Isolation Forest anomaly detection
The system employs Isolation Forest algorithms from scikit-learn's ensemble module to perform unsupervised anomaly detection. This method isolates data points that are statistically different from the majority, identifying unusual consumption patterns that may indicate leaks or meter malfunctions without requiring labeled training data.
4
Multi-algorithm filtering & refinement
Results from both supervised and unsupervised learning algorithms are combined and filtered using preset parameters. Additional filtering is applied based on account details such as meter age, property ownership changes, seasonal patterns, and neighborhood consumption averages to reduce false positives and improve detection accuracy.
5
Final anomaly report generation
The system creates a comprehensive Excel output containing flagged accounts identified by both collective algorithms (supervised + unsupervised) as having potential leaks or dead meters. The report includes account details, consumption patterns, confidence scores, and recommended actions, enabling city staff to efficiently identify and contact affected property owners.