We built a real-time hazard network where one rider's experience protects the next rider instantly.
The road learns from every rider.
From isolated riders to a connected safety network.
No existing system closes all four together. RiderShield connects rider safety, road intelligence, and verified hazard truth in one system.
IMD cells = 3 km resolution, 6-hour lag. Google Maps gets road closure data 45β90 min after a flood. Zero real-time sensing exists at 50-metre resolution. RiderShield generates a continuous flood probability surface at 50m resolution, updated every 30s β from riders already on the road.
A rider on hour 14 is assigned the same orders as a rested rider. Most platforms miss simple rider-condition context. RiderShield adds basic fatigue awareness using ride duration and motion patterns to support safer dispatch decisions.
Every rider wears a helmet. No platform uses it for active safety. RiderShield turns the helmet into a real-time awareness node β forward/rear collision alerts, voice navigation, and smart dashcam event tagging, without touching the rider's phone.
Today, when a rider reports a hazard (pothole, flood, blocked road), platforms rely on manual judgment or reject claims due to lack of proof. RiderShield introduces a simplified Proof-of-Hazard system β combining sensor signals (IMU, water depth, GPS) with cross-validation from nearby riders. Every hazard is not just detected, but verified through multiple independent signals.
1. Detection Rider A encounters a hazard β pothole, flood, or rough patch.
2. Validation The system cross-checks with sensor confidence + nearby rider signals.
3. Propagation Within 5 seconds, riders approaching that segment are alerted.
4. Prevention Rider B slows down before reaching the hazard.
This is not navigation. This is collective intelligence.
| Capability | Zomato / Swiggy | IMD / Google Maps | Waze | RiderShield AI |
|---|---|---|---|---|
| Spatial flood resolution | None | 3 km | Road-level | 50 metres |
| Flood lead time | 45β90 min lag | 6-hour lag | 15β20 min lag | 15β20 min ahead |
| Peer hazard alert | None | None | Manual tap | Automatic, 5s latency |
| Pothole mapping | None | None | Manual report | Automatic via IMU jerk |
| Rider fatigue awareness | None | None | None | Duration + motion based |
| Helmet safety awareness | None | None | None | Forward + rear alerts |
| Voice navigation (hands-free) | Phone GPS only | Phone GPS only | Phone GPS only | Bone-conduction, helmet |
| DIGIPIN precision delivery | None | None | None | 3.8m accuracy |
| Rider compliance monitoring | App ping | None | None | GPS + cam continuous log |
| Hardware cost / rider | βΉ0 (no hardware) | N/A | N/A | βΉ850 prototype |
We optimized prototype cost while preserving the same core system architecture and engineering logic.
Every rider already wears a helmet β it is mandated and monitored by Zomato, Swiggy, and traffic enforcement. We convert this non-negotiable compliance into a sensing asset.
| Component | Original Plan | Revised Prototype | Savings |
|---|---|---|---|
| Helmet vision compute | OAK-D Lite βΉ4,200 | Pi Zero 2W + Pi Cam βΉ650 | βΉ3,550 |
| Side cameras | OV2640 Γ2 βΉ280 | Removed (single wide-angle) | βΉ280 |
| Rear camera | OV5640 βΉ380 | Included in Pi Cam kit | βΉ380 |
| Helmet MCU | ESP32-S3 βΉ380 | Replaced by Pi Zero 2W | βΉ380 |
| MEMS mic array | ICS-43434 Γ2 βΉ240 | USB mini mic βΉ80 | βΉ160 |
| HAR attestation module | Removed USP entirely | N/A | Dev time saved |
| Original helmet unit total | βΉ7,850 | ||
| Revised prototype helmet total | βΉ1,550 | 80% reduction | |
| Total per-rider prototype cost | βΉ850 | Was βΉ10,345 | |
Three units. Total βΉ850 per rider prototype. Functionality identical to a βΉ10,000 production system.
| Component | Part | Function | Prototype Cost |
|---|---|---|---|
| UNIT A β Bike Sensor Node (ECE: E1 + E2) | |||
| ESP32-S3 WROOM-2 | ESP32-S3 | Main MCU Β· dual-core 240 MHz Β· BLE + WiFi Β· TFLite Micro | βΉ380 |
| YL-83 rain sensor | YL-83 | Analog rain intensity detection | βΉ45 |
| JSN-SR04T ultrasonic | JSN-SR04T | Waterproof depth sensing Β· 20β600cm Β· IP67 | βΉ180 |
| MPU-6050 IMU | GY-521 | 6-axis accel + gyro Β· pothole jerk detection | βΉ85 |
| u-blox NEO-6M GPS | NEO-6M | GPS location Β· 5Hz Β· NMEA output | βΉ280 |
| Zip-tie + foam mount | Prototype | Bike mounting (prototype grade) | βΉ30 |
| 18650 battery + holder | 18650 | 6hr operational Β· standard Β· no BMS needed for prototype | βΉ120 |
| Unit A Subtotal | βΉ1,120 | ||
| UNIT B β Smart Helmet (ECE: E3 + CSE assist) | |||
| Raspberry Pi Zero 2W | Pi-Zero-2W | Full Linux AI node Β· quad-core Β· BLE Β· Python/TFLite | βΉ650 |
| Pi Camera Module 3 Wide | SC0872 | 120Β° FOV Β· 12MP Β· 1080p30 Β· CSI | βΉ800 |
| Bone-conduction speaker | Generic USB | Voice alerts Β· hands-free | βΉ350 |
| USB mini microphone | Generic | Voice command input | βΉ80 |
| 5000 mAh USB-C powerbank | Standard | 8hr runtime Β· standard off-shelf | βΉ400 |
| ISI helmet shell | Standard | Base helmet Β· 3D-printed rear housing | βΉ350 |
| 3D-printed cam housing | PLA print | Camera mount Β· rear-clip style | βΉ80 |
| Unit C Subtotal | βΉ2,710 | ||
| TOTAL PER RIDER (prototype) | βΉ3,830 | ||
| Unit A only (MVP without helmet) | βΉ1,120 | ||
The OAK-D Lite costs βΉ4,200 and requires OpenCV AI Kit SDK. The Pi Zero 2W costs βΉ650 and runs standard Python + TFLite β the same stack the team already knows. For a prototype demo, the Pi Cam with MobileNetV2 at 15 fps is entirely sufficient to detect vehicles, potholes, and raise voice alerts. Production can upgrade to a Jetson Nano or dedicated NPU module.
This is a prototype build, not a production unit. IP65 weatherproofing, PCB integration, and ISI helmet compliance are Phase 1 follow-on work. For this live demonstration, zip-ties, 3D-printed mounts, and a powerbank are sufficient to run every core function. Functionality = 100%. Build quality = prototype.
Every component, what it does, and how AI is woven through the entire system from helmet edge to cloud to app.
| Layer | Technology | What It Does | Why This Choice |
|---|---|---|---|
| FIRMWARE β Bike Node (ESP32) | |||
| TFLite Micro | tflite-micro | On-device anomaly detection: rain + depth + jerk β hazard classification | 50KB model, runs in 256KB RAM on ESP32. No cloud needed. |
| Arduino + ESP-IDF | Arduino Core | Sensor drivers, BLE stack, HFV packet transmission | Fastest dev cycle for ESP32. FreeRTOS multitasking. |
| MQTT over WiFi | PubSubClient | Hazard Feature Vector upload to backend on hazard detection | Lightweight, reliable. Falls back to BLE relay via phone. |
| HELMET AI β Raspberry Pi Zero 2W | |||
| Python 3 + TFLite Runtime | tflite-runtime | MobileNetV2 inference on Pi Cam frames β threat detection, pothole classification | Full Python on Linux. No custom SDK. Team already knows it. |
| OpenCV | opencv-python | Camera capture, frame preprocessing, TTC estimation, dashcam loop buffer | Standard. Fast. Headless mode on Pi Zero. |
| pyttsx3 + aplay | TTS + audio | Voice alert synthesis and output to bone-conduction speaker | Offline TTS, no API key, works without internet. |
| BLE via BlueZ | bluepy | Transmit helmet safety events (collision-risk, alert state) to bike node β backend | Native Linux BLE stack. Reliable at 5m range. |
| DIGIPIN resolver | REST API call | Resolve delivery address to 3.8m precision pinpoint | Free IIT-India Post open API. No auth needed. |
| BACKEND β FastAPI Server | |||
| FastAPI | fastapi | REST + WebSocket API. Hazard ingestion, GP surface serving, peer alert broadcast | Async Python β handles WebSocket real-time + REST together. |
| Scikit-learn GP | GaussianProcessRegressor | Spatial interpolation of HFVs into 50m flood probability surface | 3-line fit+predict. No separate ML framework needed. |
| MongoDB | pymongo | Time-series hazard telemetry, rider GPS logs, helmet cam events | Flexible schema for mixed sensor data. Native geospatial index. |
| Redis | redis-py | Cache live GP surface tiles for sub-100ms dashboard reads | In-memory. Trivial setup. Critical for 30s update cycle. |
| WebSocket broadcast | fastapi WS | Push peer hazard alerts to all riders in a 500m radius instantly | Native FastAPI feature. No Kafka/RabbitMQ needed for prototype. |
| MOBILE β React Native App | |||
| React Native | Expo | Rider app: flood map, risk score, voice alerts, DIGIPIN, basic rider-state awareness, peer hazard feed | Single codebase Android + iOS. Expo for fast builds. |
| React Native Maps | MapLibre | Flood probability heatmap overlay on rider route | Open-source, free. No Mapbox token needed for prototype. |
| Expo Speech | expo-speech | Voice navigation and hazard alerts via phone speaker | One-line TTS. Works offline. |
| BLE manager | react-native-ble | Receive helmet status and bike-node telemetry | Direct BLE for low-latency rider safety telemetry. |
| DASHBOARD β React Admin | |||
| React + Vite | React 18 | Admin ops dashboard: fleet map, rider-state monitor, helmet events, hazard log | Fast dev. No framework overhead. |
| Leaflet.js | react-leaflet | Real-time flood heatmap, rider dots, hazard markers | Free. No API key. Sufficient for prototype heatmap tiles. |
| INFRASTRUCTURE | |||
| Docker Compose | docker-compose | FastAPI + MongoDB + Redis in one-command local deploy | Zero infra setup for prototype phase. Deploy on any laptop. |
| Cloudflare Tunnel | cloudflared | Expose local backend to internet for mobile app during demo | Free, instant β no cloud VM needed for prototype. |
The Raspberry Pi Zero 2W turns a standard ISI helmet into a real-time rider safety system with practical, demo-ready AI.
The helmet is always on the rider's head. It faces forward, backward, and sideways. It is always powered (we add a powerbank). It has a microphone and speaker position that's ideal for voice interaction. And most importantly β it is already worn by every rider. This is not an additional device to adopt. It is upgrading something that already exists.
Pi Camera captures frames at 15 fps. A lightweight MobileNetV2 (TFLite) model identifies approaching vehicles and collision risk cues. When risk crosses threshold, the bone-conduction speaker issues immediate warnings for forward or rear danger.
The helmet prioritizes collision prevention, not road-surface interpretation. It continuously monitors dynamic motion threats and sends spoken warnings so the rider reacts earlier under traffic stress.
The rider's active delivery is loaded from the app. Turn-by-turn instructions are synthesised using pyttsx3 (offline TTS) and played through the bone-conduction speaker. Hands stay steady. Eyes stay on the road. Hazard alerts interrupt navigation with priority audio.
Pi Cam records a rolling 2-minute buffer. When a risk event, route deviation, or delivery milestone occurs, key clips are auto-tagged with GPS + DIGIPIN metadata. This keeps incident review practical for operations teams.
Real-time fleet view, flood surface, helmet cam events, rider-state awareness, and peer hazard log.
Standard Swiggy/Zomato drop pins are often 50β100m off. Riders waste time searching for building entrances. DIGIPIN encodes a 3.8m cell β pointing to the exact gate, side entrance, or back lane.
Every sensor, every AI model, every data event β exactly what happens from the moment a rider accepts an order to final delivery.
Everything runs live on hardware and screen. The flow shows real-time hazard detection, validation, and preventive alerting.
Zomato's incentive is delivery completion, not urban infrastructure. They have no revenue model for selling flood data to municipalities. We do. Their hardware budget per rider is zero. Ours is βΉ1,120 for the MVP bike node β amortised over deliveries. They optimize dispatch speed first, while we optimize verified road safety intelligence.
Waze requires a driver to manually tap a button β subjective, delayed, sparse in Indian delivery lanes. RiderShield uses passive sensors. No rider action. The IMU detects the pothole automatically. The rain sensor detects the flood automatically. No human judgment, no delay, no missed events.
MobileNetV2 Int8-quantised on Pi Zero 2W runs at 15fps in this setup. It is not a GPU; it is a compact ARM cluster. For threat detection at 5β10m range, 15fps with 65ms latency is sufficient.
Single-rider events have a confidence score of 60%. Two independent riders reporting the same GPS segment push confidence to 85%+. The Gaussian Process model also provides an uncertainty estimate β high-uncertainty zones are shown as caution rather than alerts. False alarms decay from the mesh after 15 minutes without corroboration.
Three B2B streams remain: (1) Rider Safety API β licensed to Zomato/Swiggy per month per active helmet node for fleet safety dashboard access, (2) FSSAI Compliance Data β flood-zone restaurant risk data sold to food safety regulators, (3) Municipal Flood Intelligence β anonymised 50m flood + pothole tile feed licensed to BMC/BBMP/GCC. Riders and customers pay nothing.
Hour-by-hour Gantt for 5 team members. Every milestone is demo-deliverable. No parallelism assumed β conflicts are resolved.
ESP32 flashed, all sensors reading, TFLite anomaly model firing on water tray test. MQTT publishing to backend. HFV received.
HFV β FastAPI β GP model β Leaflet heatmap showing flood zone. Rider app receiving WebSocket alert. Voice nav working.
Pi Zero detecting threats with voice alert. Pothole from ESP32 propagated to second phone as peer alert. End-to-end rider warning flow verified.
Three B2B revenue streams. No compensation module needed. Revenue from safety data, not payment processing.
RiderShield AI is new infrastructure. Peer hazard mesh, AI helmet safety intelligence for delivery riders, and a hyperlocal flood surface are integrated in one system. This is not a feature layer on top of an app; it is a data layer for city-scale safety operations.
Every member owns a non-overlapping piece. Any evaluator can review one person independently and still see a complete component demonstration.