Shielded Rider is a smart, automated parametric insurance system designed for two-wheeler delivery riders affected by monsoon disruptions.
Instead of manual claims and delayed payouts, our system:
-
Predicts income loss
-
Verifies real-world conditions
-
Automatically compensates riders
To run the application, you'll need to configure your environment variables.
- Server (
server/.env):OPENWEATHER_API_KEY: Get a free key from OpenWeather for live weather risk scoring.RAZORPAY_KEY_ID&RAZORPAY_KEY_SECRET: For simulating payouts (optional).
- ML Service (
ml-service/.env):LLM_PROVIDER=openaiOPENAI_API_KEY: Your ChatGPT API Key (Required for ML reasoning).
The platform is fully containerized using Docker Compose. Ensure you have Docker Desktop installed.
- Clone the repository and navigate to the project directory.
- Populate the
.envfiles inserver/andml-service/as described above. - Run the following command from the root directory:
docker-compose up --build- Access the services:
- Frontend App:
http://localhost:5173 - Backend Server:
http://localhost:5000 - ML Service:
http://localhost:8001 - MongoDB: Bound to port
27017
- Frontend App:
To run in the background, use -d flag. To stop the containers, run docker-compose down.
Delivery riders in Indian cities face:
-
Heavy rainfall and flooding
-
Unsafe road conditions
-
Reduced order volume
This leads to 20–40% income loss, while traditional insurance:
-
Is slow
-
Requires manual claims
-
Doesn’t cover daily earnings
- Predicts income disruption risk
- Tracks real-world conditions
- Estimates expected earnings
- Automatically compensates workers
No claims. No paperwork. Fully automated.
We don’t just detect rain — we calculate actual income loss.
How it works:
-
Predict expected earnings
-
Compare with actual earnings
-
Trigger proportional payout
Example:
-
Expected: ₹800
-
Actual: ₹400
-
Compensation: ₹400
- Moves beyond event-based triggers → income-based protection
- Introduces real insurance logic (actuarial depth)
- Personalized per worker
-
Rider subscribes to a weekly plan
-
System collects:
-
Location data
-
Delivery activity
-
Weather data
-
-
Risk model predicts disruption
-
Earnings model estimates expected income
-
Fraud engine validates claim
-
Payout is triggered automatically
-
Model: XGBoost
-
Predicts probability of disruption
-
Inputs:
-
Rainfall
-
Flood data
-
Traffic conditions
-
Output:
P(disruption) ∈ [0,1]
-
Model: LigthGBM
-
Predicts expected daily income
-
Inputs:
-
Historical earnings
-
Time & demand patterns
-
Weather
-
-
Model: Isolation Forest
-
Detects anomalies and spoofing attempts
-
Matches rider movement with real traffic and weather conditions
-
Detects unrealistic behavior
-
Identifies suspicious clusters of users with:
-
Same location
-
Same timestamps
-
Same inactivity
-
If GPS shows no movement during disruption:
-
App prompts user to move ~100 meters
-
Movement verified via:
-
Accelerometer
-
Gyroscope
-
GPS update
-
If verified: Claim proceeds
If not:
User is notified to check location services
Prevents fake “idle but claiming loss” scenarios
Instead of silent rejection:
- System notifies users when anomalies are detected
Example:
“Our system detected unusual device activity. Please reconnect or report the issue.”
Benefits:
-
Builds trust
-
Avoids unfair rejection
-
Warns malicious users
Premiums are personalized based on:
-
Order consistency
-
Ratings
-
Active hours
-
Work patterns
High ISS → Lower premium
Low ISS → Adjusted premium
Also considers:
-
Local rainfall history
-
Flood-prone zones
Risk Factor = (Local Rainfall History × Flood-Prone Zones)
ISS = (Avg Orders × Consistency × Rating × Active Hours × Risk Factor)
No payouts in cases of:
-
War or terrorism
-
Government lockdowns
-
Nuclear/biological events
-
Proven fraud (GPS spoofing, tampering, account misuse)
| Layer | Technology |
|---|---|
| Frontend | React.js, Tailwind CSS, Vite |
| Backend | Node.js, Express |
| Database | MongoDB (Dockerized) |
| ML Svc | FastAPI, Scikit-learn, XGBoost |
| LLM | OpenAI (ChatGPT API) |
| APIs | OpenWeatherMap, OpenStreetMap |
| Payments | Razorpay (Test Mode) |
- Automated Weather Risk Scoring: Integrates with OpenWeather to assess real-time risk.
- Dynamic Payouts Simulation: Connects mock payments using Razorpay's API.
- LLM Reasoning Layer: Employs OpenAI's GPT models via a dedicated ML service to analyze claims and behavioral anomalies.
- Microservices Containerization: The entire application (Frontend, Backend, ML Service, and MongoDB) is fully dockerized for isolated, one-click deployments.
-
Protects gig workers’ daily income
-
Reduces financial uncertainty
-
Builds trust with transparent systems
-
Enables scalable, automated insurance
-
Deep learning for advanced fraud detection
-
Direct integration with Swiggy/Zomato APIs
-
Hyperlocal flood prediction (500m grid)
RainShield Rider is not just an insurance system.
It is a financial safety net engineered for real-world gig workers, combining AI, behavioral analysis, and actuarial thinking to deliver fair, fast, and fraud-resistant protection.
