An AI-powered route integrity and fraud detection system that monitors a driver's journey against a user-approved route and identifies suspicious deviations.
RouteIntegrity AI is designed to answer:
"Is the driver actually taking the route that was agreed upon?"
The system establishes an approved route between a user's source and destination, continuously monitors the driver's GPS location during the trip, and detects significant or suspicious deviations.
User
│
├── Start Location
├── Destination
│
▼
Backend
│
├── Validate Trip
├── Generate Expected Route
└── Store Approved Route
│
▼
Driver + User Agree
│
▼
Route Detector Enabled
│
▼
Continuous GPS Tracking
│
▼
RouteIntegrity AI
│
├── Monitor Route
├── Analyze Deviation
├── Detect Suspicious Behavior
└── Generate Decision
│
▼
LEGITIMATE / SUSPICIOUS / FRAUD
│
▼
High-Risk Incident
│
▼
Authorized Emergency / Police Escalation
Validates the source, destination, driver agreement, approved route, and required GPS information before monitoring begins.
Compares the driver's current location and movement with the approved route.
Analyzes significant deviations and considers legitimate explanations such as:
- Traffic
- Road closures
- One-way roads
- Road restrictions
- Alternative valid routes
Classifies the journey as:
LEGITIMATESUSPICIOUSFRAUD
The decision should include confidence, evidence, and recommended action.
High-risk incidents can be escalated through an authorized backend/emergency integration.
The AI itself should not independently contact authorities.
{
"source": "Kolkata Airport",
"destination": "Howrah Station",
"approvedRouteId": "route_123",
"currentLocation": {
"lat": 22.5726,
"lng": 88.3639
},
"distanceFromRoute": 850,
"deviationDuration": 180,
"movingTowardDestination": false
}Possible result:
{
"status": "SUSPICIOUS",
"confidence": 0.91,
"routeDeviation": true,
"reason": "Driver has significantly deviated from the approved route and is moving away from the destination.",
"recommendedAction": "INVESTIGATE"
}POST /trips
POST /trips/:id/approve-route
POST /trips/:id/start-detector
POST /trips/:id/location
POST /trips/:id/stop-detector
The /location endpoint receives live GPS updates while the detector is active.
The system should not send every GPS coordinate directly to the AI.
Instead:
GPS
↓
Backend
↓
Map / Route Validation
↓
Detect Significant Deviation
↓
AI Analysis
↓
Fraud Decision
Deterministic route calculations should handle straightforward geographic validation, while AI should analyze behavioral patterns and suspicious deviations.
- Route monitoring should only begin after appropriate user/driver agreement.
- GPS data should be transmitted securely.
- Store only information required for the trip and investigation.
- Avoid automatically declaring fraud from a single GPS deviation.
- Emergency escalation should require explicit backend rules and authorized integrations.
Early development
Current focus:
- Trip creation
- Route generation
- User/driver route agreement
- GPS tracking
- Route deviation detection
- AI fraud analysis
- Incident management
- Authorized emergency integration
RouteIntegrity AI aims to provide an additional safety layer for ride-sharing and transportation platforms by detecting route manipulation and unusual driver behavior in real time.
Know the route. Monitor the journey. Detect the deviation.