| title | RoadGuardian AI |
|---|---|
| emoji | ๐ |
| colorFrom | red |
| colorTo | black |
| sdk | docker |
| app_port | 7860 |
RoadGuardian AI is an AI-native emergency intelligence infrastructure platform designed for underserved and accessibility-critical regions.
An offline-first, multi-agent emergency coordination system that combines realtime AI orchestration, RAG-powered medical guidance, MCP-based dispatch infrastructure, accessibility-first UX, and hazard intelligence into a unified emergency response platform.
๐ฌ Demo Video: Coming Soon
๐ธ Mission Control Dashboard Preview
[ Dashboard Screenshot Placeholder ]
๐ธ SOS Emergency Activation
[ SOS Flow Screenshot Placeholder ]
๐ธ Realtime Multi-Agent Orchestration
[ Orchestration Screenshot Placeholder ]
Road accidents kill over 300,000 people annually across BIMSTEC countries and injure millions more. Most preventable deaths occur because victims do not receive help during the golden hour โ the first 60 minutes after a crash when survival chances decrease sharply with every passing minute.
Current emergency systems fail because they assume:
- stable internet connectivity
- able-bodied users
- voice-based communication
- urban infrastructure access
But the people who most urgently need emergency support are often:
- rural residents
- specially abled users
- unconscious crash victims
- cross-border travelers
- people with limited connectivity
RoadGuardian AI was built specifically for them.
Five critical infrastructure failures drive emergency response failures across underserved regions:
-
Bystanders freeze during emergencies because existing apps provide little actionable real-time guidance.
-
Emergency systems depend on stable internet connectivity, which is unavailable on many rural highways and mountain roads.
-
Current emergency platforms exclude specially abled users such as deaf, visually impaired, speech-impaired, and elderly individuals.
-
Language barriers prevent tourists and cross-border travelers from communicating with responders during emergencies.
-
No widely accessible emergency system autonomously coordinates rescue workflows when victims are unconscious or unable to communicate.
The result is devastating:
The people who most urgently need emergency help are the people current emergency systems fail completely.
RoadGuardian AI provides a realtime multi-agent emergency orchestration platform capable of:
- ๐ง AI-powered emergency triage
- ๐ก Realtime orchestration streaming
- ๐ RAG-based first-aid guidance
- ๐ฐ๏ธ MCP-enabled dispatch coordination
- ๐ Offline-first emergency support
- โฟ Accessibility-native emergency UX
- ๐ฃ๏ธ AI-powered hazard detection
- ๐บ๏ธ Live emergency intelligence mapping
When an SOS is triggered, multiple AI agents activate in parallel to coordinate emergency workflows autonomously.
| Feature | Description |
|---|---|
| ๐ง Multi-Agent Orchestrator | Coordinates emergency workflows in realtime |
| ๐ RAG Emergency Guidance | Retrieves contextual first-aid instructions |
| ๐ก WebSocket Streaming | Streams live orchestration events |
| ๐ MCP Dispatch System | Coordinates emergency tools & responders |
| ๐ Offline Emergency Support | Works in low-connectivity environments |
| โฟ Accessibility Modes | Supports specially abled users |
| ๐ฃ๏ธ Hazard Detection | Detects potholes & road hazards |
| ๐บ๏ธ Mission Control Dashboard | Live AI emergency visualization |
| โก Parallel Agent Execution | Multiple AI agents operate simultaneously |
| ๐ Realtime Emergency Timeline | Tracks orchestration lifecycle live |
Unlike traditional emergency apps, RoadGuardian AI combines:
- Multi-agent AI orchestration
- Realtime infrastructure streaming
- Offline-first emergency workflows
- Accessibility-native UX
- RAG-powered medical intelligence
- MCP-based dispatch coordination
- Emergency infrastructure simulation
This project is designed as:
AI-native emergency infrastructure, not a chatbot.
USER
โ
SOS ACTIVATION
โ
ORCHESTRATOR AGENT
โโโ TRIAGE AGENT
โโโ GUIDANCE AGENT
โโโ LOCATE AGENT
โโโ DISPATCH AGENT
โโโ HAZARD DETECTION AGENT
โ
RAG + MCP + VECTOR DATABASE
โ
WEBSOCKET STREAMING
โ
MISSION CONTROL DASHBOARD
SOS Trigger
โ
Orchestrator Activation
โ
Parallel Agent Execution
โโโ Triage
โโโ Guidance
โโโ Locate
โโโ Dispatch
โ
RAG Retrieval
โ
MCP Tool Invocation
โ
Streaming Emergency Guidance
โ
Emergency Resolution
Emergency Query
โ
Semantic Chunking
โ
Embedding Generation
โ
ChromaDB Vector Search
โ
Confidence Ranking
โ
Context Injection
โ
LLM Guidance Generation
โ
Realtime Streaming Response
RoadGuardian AI uses a realtime multi-agent orchestration system built using:
- LangGraph StateGraph
- FastAPI async orchestration
- ChromaDB vector retrieval
- SentenceTransformers embeddings
- WebSocket event streaming
- Groq-hosted Llama inference
- MCP emergency tooling
The system is designed to feel like:
An AI-native emergency operations infrastructure platform.
| Agent | Responsibility |
|---|---|
| ๐ง Orchestrator Agent | Coordinates emergency workflows |
| ๐ Triage Agent | Analyzes emergency severity |
| ๐ Guidance Agent | Retrieves medical guidance via RAG |
| ๐ Locate Agent | Finds nearby hospitals/responders |
| ๐จ Dispatch Agent | Executes MCP dispatch workflows |
| ๐ฃ๏ธ Hazard Detection Agent | Detects dangerous road conditions |
The Retrieval-Augmented Generation (RAG) system enables realtime emergency medical guidance using verified emergency datasets.
- Semantic chunking
- Embedding generation
- Vector search
- Confidence scoring
- Streaming citations
- Emergency-focused retrieval prompts
- WHO emergency guidelines
- Red Cross first-aid protocols
- Trauma response documentation
- ChromaDB
- sentence-transformers/all-MiniLM-L6-v2
RoadGuardian AI uses MCP-style emergency tooling for structured orchestration.
notify_family()
find_hospital()
dispatch_emergency()
create_hazard_report()These tools integrate directly into the LangGraph orchestration lifecycle and stream structured events to the frontend Mission Control Dashboard.
RoadGuardian AI was designed with accessibility as a core infrastructure requirement.
- High contrast mode
- Dyslexia-friendly typography
- Large emergency controls
- Voice guidance UI
- Vibration-based emergency interaction
- Reduced motion mode
- Offline emergency fallback
- Panic-state optimized UX
This is one of the strongest differentiators of the platform.
RoadGuardian AI is built for:
- rural highways
- low-connectivity environments
- mountain roads
- underserved regions
The system supports:
- offline emergency workflows
- cached emergency guidance
- websocket reconnection
- progressive web app behavior
| Technology | Purpose |
|---|---|
| React + Vite | Frontend framework |
| TailwindCSS | UI styling |
| Framer Motion | Realtime animations |
| Zustand | State management |
| Leaflet.js | Live maps |
| Workbox | PWA support |
| Technology | Purpose |
|---|---|
| FastAPI | Backend APIs |
| LangGraph | Multi-agent orchestration |
| WebSockets | Realtime streaming |
| LangChain | RAG workflows |
| Technology | Purpose |
|---|---|
| Groq + Llama 3.1 | AI inference |
| ChromaDB | Vector database |
| SentenceTransformers | Embeddings |
| YOLOv8 | Hazard detection |
| Platform | Usage |
|---|---|
| Railway | Backend hosting |
| Vercel | Frontend hosting |
| Supabase | Database & storage |
- Click the Vercel deployment link: https://vercel.com/new?teamSlug=shakera-projects
- Import the
zahid-frontenddirectory. - Set environment variables:
VITE_API_URLโ Your backend URL (e.g., Railway deployment URL)VITE_WS_URLโ Your backend WebSocket URL (e.g.,wss://<your-backend>.railway.app/stream)
- Deploy. Use the generated preview URL as the hackathon demo link.
roadguardian-ai/
โโโ zahid-frontend/
โโโ ema-backend/
โโโ shared-contracts/
โโโ docs/
- Independent frontend/backend development
- Merge-safe architecture
- Shared websocket contracts
- Parallel hackathon development
cd ema-backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python rag/ingest/seed_rag.py
uvicorn main:app --reloadcd zahid-frontend
npm install
npm run devGROQ_API_KEY=your_api_key_here
CHROMA_DB_PATH=./chroma_dbVITE_API_URL=http://localhost:8000
VITE_WS_URL=ws://localhost:8000/streamuvicorn main:app --reloadnpm run devOpen:
http://localhost:5173
Verify:
- websocket connects
- Mission Control activates
- realtime events stream
A deaf motorcyclist crashes on a rural highway with unstable internet connectivity.
- Activates SOS automatically
- Launches realtime AI orchestration
- Streams emergency guidance
- Retrieves first-aid protocols
- Coordinates dispatch workflows
- Detects nearby hazards
- Continues operating offline
- Provides accessibility-safe emergency interaction
{
"user_id": "user_001",
"emergency_type": "accident",
"location": {
"lat": 23.91,
"lng": 90.21
}
}{
"image": "base64_image"
}Streams realtime orchestration events.
{
"event": "agent_activated",
"agent": "triage",
"status": "running",
"message": "Analyzing trauma severity"
}{
"event": "rag_chunk_stream",
"agent": "guidance",
"status": "streaming",
"message": "Apply pressure to the wound..."
}- FastAPI backend
- LangGraph orchestration
- WebSocket streaming
- ChromaDB retrieval
- MCP tooling
- Parallel agents
- Token monitoring
- Schema validation
- Final Mission Control integration
- Accessibility polish
- Full realtime visualization
- PWA optimization
RoadGuardian AI combines:
- Multi-agent orchestration
- Accessibility-first AI
- Offline emergency intelligence
- Realtime infrastructure streaming
- RAG-powered emergency guidance
- MCP-based dispatch coordination
into a single emergency coordination platform.
- Real hospital integrations
- Offline local LLMs
- Multilingual expansion
- Automatic crash detection
- Municipal hazard intelligence
- Smart traffic emergency analytics
| Member | Role |
|---|---|
| Zahid Hasan | Frontend & UX |
| Shakera Ema | Backend & AI Infrastructure |
| Mehrab Shakib | Researcher, Planner |
MIT License
- WHO
- Red Cross
- OpenStreetMap
- LangGraph
- LangChain
- ChromaDB
- Open-source AI ecosystem
RoadGuardian AI aims to become:
A realtime AI-native emergency intelligence infrastructure layer for underserved and accessibility-critical regions.
Built for:
- rural communities
- specially abled users
- low-connectivity environments
- emergency-critical situations
Designed not just to respond to emergencies โ but to coordinate intelligent rescue infrastructure itself.
