Reducing emergency response time. Saving lives during the Golden Hour.
Developed for the Madras AI Road Safety Hackathon 2026
Road accidents remain one of the leading causes of fatalities worldwide. Delays during the Golden Hour, lack of accessible medical information, and difficulty contacting emergency services often worsen outcomes.
Sanjeevani is a unified emergency response ecosystem that addresses these challenges by combining:
- One-touch SOS activation
- AI-powered crash detection
- QR-based Medical ID for first responders
- Real-time hospital and emergency service navigation
- Gemini-powered first-aid guidance
- One-touch SOS activation with automatic emergency workflow
- GPS location acquisition and real-time sharing
- Instant emergency contact notifications
- Locates nearby hospitals, police stations, and towing services
- Real-time navigation via Google Maps integration
- QR-code-based medical profile accessible to first responders
- Stores blood group, allergies, medications, and emergency contacts
- Works without requiring app installation by the responder
- Gemini-powered conversational emergency guidance
- Step-by-step first-aid recommendations
- Context-aware support during active emergencies
- Accelerometer and gyroscope-based impact detection
- Automatic SOS activation with a manual-override countdown
- Background monitoring while driving
- Cached hospital and emergency service information
- Offline-first local data persistence
- Reliable in low-network or no-network environments
Crash Detected / SOS Activated
│
▼
Emergency Countdown
(manual cancel window)
│
▼
Location Acquired
│
▼
Emergency Contacts Notified
│
▼
Nearest Hospital Identified
│
▼
Google Maps Navigation Launched
│
▼
Medical Information Available via QR
| Layer | Technology |
|---|---|
| Frontend | Flutter, Dart |
| Backend | FastAPI (Python) |
| Database | SQLite, Shared Preferences |
| AI | Gemini API |
| Maps & Geocoding | OpenStreetMap, Nominatim, Google Maps Navigation |
| Package | Purpose |
|---|---|
geolocator |
GPS location services |
sensors_plus |
Accelerometer & gyroscope access |
flutter_dotenv |
Environment variable management |
shared_preferences |
Local key-value storage |
sqflite |
On-device SQLite database |
go_router |
Declarative navigation |
flutter_bloc |
State management |
- Flutter SDK (latest stable)
- Dart SDK (bundled with Flutter)
- A valid Gemini API Key
- Android or iOS device / emulator
1. Clone the repository
git clone <repository-url>
cd IIT-M-ROADSOS2. Install dependencies
flutter pub get3. Configure environment variables
Create a .env file in the root of the mobile project:
GEMINI_API_KEY=YOUR_GEMINI_API_KEY
⚠️ Never commit your.envfile. Ensure it is listed in.gitignore.
4. Run the application
flutter runIIT-M-ROADSOS/
├── lib/
│ ├── features/
│ │ ├── sos/ # SOS activation & workflow
│ │ ├── crash_detection/ # Sensor-based crash detection
│ │ ├── medical_id/ # QR Medical Profile
│ │ ├── navigation/ # Hospital & emergency services
│ │ └── ai_assistant/ # Gemini AI integration
│ ├── core/ # Shared utilities, models, services
│ └── main.dart
├── backend/ # FastAPI backend
├── assets/ # Images, icons, fonts
├── .env # Environment variables (do not commit)
└── pubspec.yaml
- ⚡ Improve emergency response efficiency
- ⏱️ Reduce critical delays during the Golden Hour
- 🏥 Provide instant access to medical information for first responders
- 📡 Enable rapid communication during road emergencies
- 🛡️ Improve road safety through technology-driven solutions
- Ambulance Network Integration
- Government Emergency Service Integration
- Advanced AI Crash Prediction & Prevention
- Wearable Device Support (smartwatches)
- Multilingual Voice Assistance
- Real-Time Responder Network
- Telematics & Insurance Integration
Developed by Team JeevanSetu for the Madras AI Road Safety Hackathon 2026.
This project is developed for educational, research, and hackathon purposes.
All rights reserved by the respective contributors.
Built with ❤️ to make roads safer and emergencies faster.