AI-powered IoT water pump monitoring for refugee camps and rural Kenya. Predictive maintenance, M-Pesa micropayments, technician dispatch. Flutter + TensorFlow Lite + ESP32.
# Smart Water Kenya
**AI-Powered Predictive Maintenance for Community Water Infrastructure in Rural Kenya**
Kenya has 17 million people without reliable clean water access. This system uses IoT sensor technology and machine learning to build a predictive maintenance platform for community water pumps that detects failures before they happen, sends automated alerts to local technicians, and enables M-Pesa micropayments for community self-funded maintenance.
## Demo
**Screens shown:** Fleet dashboard with health scores → Pump detail with live sensor data & 24h trend charts → ML-powered alerts with confidence scores → M-Pesa community maintenance fund → Technician dispatch & tracking
## Architecture
```
┌─────────────────────────────────────────────────────────┐
│ Flutter Mobile App │
├──────────┬──────────┬──────────────┬────────────────────┤
│Dashboard │ Alerts │ M-Pesa │ Technicians │
│ (pumps, │ (ML │ (community │ (dispatch, │
│ sensors,│ predict- │ micropay- │ tracking, │
│ health) │ ions) │ ments) │ ratings) │
├──────────┴──────────┴──────────────┴────────────────────┤
│ Service Layer │
├──────────┬──────────┬──────────────┬────────────────────┤
│ IoT │Prediction│ M-Pesa │ Alert │
│ Sensor │ Engine │ Daraja │ Service │
│ Service │ (ML) │ API │ │
├──────────┴──────────┴──────────────┴────────────────────┤
│ ESP32 / Modbus Sensors │
│ (flow, pressure, vibration, temp) │
└─────────────────────────────────────────────────────────┘
```
## Features
### IoT Sensor Monitoring
- Real-time data from pump sensors: flow rate, pressure, vibration, motor temperature, pH, TDS, power draw
- 24-hour trend visualization with anomaly threshold lines
- Sensor health status indicators (normal/an …