Inspiration

Every year, millions of lives are lost on roads due to preventable accidents and slow emergency response. We witnessed how drivers unknowingly enter danger zones, how victims struggle to share their location during panic, and how emergency services remain disconnected from each other. The question that drove us was simple — what if technology could prevent accidents before they happen and save lives when they do? That question became RoadSoS.

What it does

RoadSoS is an AI-powered road safety and emergency coordination platform with two core modes:

  • Prevention Mode — Continuously tracks the user's GPS location, detects danger zones using RAG + AI risk scoring, and sends proactive alerts 3–6 KM before entering high-risk areas. It also recommends the safest route in real time.
  • Emergency Mode — A one-tap SOS instantly shares the user's live location and triggers automated alerts to family, hospitals, police, and nearby responders. Google Gemini AI provides real-time first-aid guidance and safety instructions. Quick-access buttons connect users to hospitals, ambulance, police, and towing services instantly.

How we built it

  • Frontend: React.js with live map integration (OpenStreetMap / Google Maps), real-time GPS tracking, SOS button, and alert notifications
  • Backend: FastAPI with RESTful APIs handling authentication, location tracking, geofencing, business logic, and the SOS alert engine
  • AI Layer: Google Gemini API for emergency guidance and first-aid tips; File-based RAG engine for danger zone knowledge retrieval and risk scoring
  • Database: PostgreSQL / SQLite for storing user data, incidents, and danger zone records
  • Infrastructure: Cloud-hosted on AWS/GCP with secure, encrypted, scalable architecture and multi-channel notifications (in-app, push, email, SMS)

Challenges we ran into

  • Achieving accurate real-time geofencing and danger zone detection with low latency was technically demanding
  • Integrating RAG with live GPS data required careful design to ensure relevant and timely risk scoring
  • Ensuring the system worked reliably in low-network and offline conditions for rural users was a significant challenge
  • Coordinating multiple emergency services (hospitals, police, ambulance) through a unified alert pipeline required robust API handling and fallback mechanisms
  • Balancing user privacy with real-time location sharing needed careful security design

Accomplishments that we're proud of

  • Built a fully functional Prevention + Emergency system in one unified platform
  • Successfully integrated Google Gemini AI for real-time, context-aware emergency guidance
  • Implemented a working RAG engine for intelligent danger zone detection and risk scoring
  • Designed a one-tap SOS that simultaneously notifies multiple stakeholders with live location
  • Created an offline-capable system ensuring essential features work even in low-network areas
  • Delivered a scalable, modular architecture ready for real-world deployment

What we learned

  • Real-time AI systems require careful optimization — speed and accuracy must both be prioritized when lives are at stake
  • RAG (Retrieval-Augmented Generation) is a powerful approach for domain-specific safety knowledge, going beyond generic AI responses
  • Building for emergencies means designing for panic — UI/UX must be extremely simple, fast, and reliable
  • Integrating multiple external APIs (maps, emergency services, AI) demands strong error handling and fallback strategies
  • The importance of offline-first thinking for safety-critical applications serving diverse network conditions

What's next for ROAD SOS

  • V2X & IoT Integration — Connect RoadSoS with vehicles, traffic signals, and smart city infrastructure for real-time vehicle-to-everything communication
  • Advanced AI & Prediction — Enhance models for accident prediction, risk forecasting, and personalized safety recommendations
  • Smart Devices & Wearables — Integrate smartwatches for automatic crash detection and hands-free SOS triggers
  • Global Expansion — Multi-language support and local emergency service integration across more cities and countries
  • Data Analytics for Authorities — Advanced dashboard for governments and organizations to improve road safety planning and policies
  • Open API & Partnerships — Enable third-party integrations and research collaborations to build a stronger road safety ecosystem

Built With

Share this project:

Updates