AI-Powered Smart City Road Intelligence & Emergency Response Platform
"Intelligent Mobility. Safer Cities."
Helios transforms everyday electric city buses into mobile, intelligent road-condition monitoring and rapid emergency-response units. By equipping electric buses with NVIDIA Jetson Nano edge compute devices connected to forward and rear dashcams, Helios runs computer vision inference directly on board.
When an anomaly is detected—such as a traffic collision, hazardous pothole, monsoon waterlogging, faded zebra crossing, or traffic bottleneck—the Jetson device serializes a standardized telemetry event and sends it to the central Helios Command Center.
City administrators and emergency first responders monitor the entire urban transit network through a real-time, interactive Admin Portal, enabling automated Ambulance Dispatches, Police Alerts, and Municipal Work Orders.
ELECTRIC CITY BUS
│
Dashcam Cameras (Front / Rear)
│
NVIDIA Jetson Nano (4GB)
│
Edge AI Computer Vision Models
(YOLO11, Accident-EdgeNet, WaterSeg)
│
4G / 5G Cellular Uplink
HTTP REST / WebSockets
│
▼
HELIOS CENTRAL BACKEND
(Python 3 / FastAPI)
│
┌─────────────────────┴─────────────────────┐
│ │
REST APIs (/api/v1/*) Live WebSockets (/ws/events)
- /buses & /gps - incident_created
- /incidents & /detect - sos_created
- /sos & /analytics - bus_updated & gps_updated
│ │
└─────────────────────┬─────────────────────┘
│
▼
HELIOS ADMIN PORTAL
(React 18 + Vite + TypeScript + Tailwind)
The frontend never depends directly on raw YOLO weights or physical edge hardware. The FastAPI backend acts as the central abstraction layer, ensuring a stable, standardized event contract.
All edge AI detectors running on bus dashcams submit payloads conforming to this schema:
{
"id": "INC-001",
"bus_id": "BUS-1042",
"event_type": "accident",
"confidence": 0.97,
"severity": "high",
"gps": {
"lat": 17.4412,
"lng": 78.3921
},
"timestamp": "2026-09-05T09:18:21Z",
"camera": "front",
"image_url": "/media/frame123.jpg",
"video_url": "/media/clip123.mp4",
"model": "accident-edgenet",
"status": "detected",
"notes": "High-impact collision detected on camera front. Bus speed dropped to 0 km/h."
}Supported event_type categories: accident, pothole, waterlogging, road_sign, traffic, pedestrian, divider.
helios/
│
├── client/ # React Admin Dashboard
│ ├── src/
│ │ ├── pages/ # 16 Complete Command Center Pages
│ │ ├── components/ # Layout, UI components, Modals, Demo Bar
│ │ ├── hooks/ # useWebSocket, custom hooks
│ │ ├── services/ # API, Buses, Incidents, SOS, Mock Services
│ │ ├── context/ # WebSocketContext, AuthContext
│ │ ├── types/ # Shared TypeScript type definitions
│ │ └── assets/
│ ├── package.json
│ ├── tailwind.config.js
│ └── vite.config.ts
│
├── server/ # FastAPI Backend
│ ├── app/
│ │ ├── routes/ # REST & WebSocket API Routers
│ │ ├── schemas/ # Pydantic Schemas & DTOs
│ │ ├── services/ # Seed Data, Simulator Engine
│ │ ├── websocket/ # ConnectionManager & Broadcast
│ │ ├── database/ # SQLAlchemy Models & SQLite Session
│ │ └── utils/
│ ├── main.py # App Lifecycle, CORS, Static Mounting
│ └── requirements.txt
│
├── ai-models/ # Edge AI Integration Layer
│ ├── accident/ # Jetson collision detector reference stub
│ ├── pothole/ # Pavement anomaly detector reference stub
│ ├── waterlogging/ # Flood & puddle segmentation reference stub
│ ├── roadsigns/ # Road infrastructure reference stub
│ └── README.md
│
├── docs/ # Architecture specifications & notes
│
└── README.md
| # | Page | Route | Functionality |
|---|---|---|---|
| 1 | Login | /login |
Futuristic dark theme login with instant demo access credentials. |
| 2 | Command Overview | /overview |
Top statistics, interactive mini map, recent incident feed, and AI health. |
| 3 | Live City Map | /map |
Fullscreen dark Leaflet map with moving buses, incident popups, and layer filters. |
| 4 | Bus Fleet Monitor | /buses |
Grid view of all 20 electric buses with speeds, battery %, driver, and Jetson health. |
| 5 | Bus Detail | /buses/:busId |
Live dual camera streams (front/rear), AI bounding box overlay toggle, and telemetry. |
| 6 | Incident Center | /incidents |
Complete searchable incident registry with status updates (Investigating, Dispatched, Resolved). |
| 7 | Accidents & SOS | /accidents |
High-urgency collision center with Dispatch Ambulance and Notify Police workflows. |
| 8 | Camera Center | /cameras |
Multi-camera surveillance wall (1080p feeds) with toggleable AI detection boxes. |
| 9 | Pothole Monitoring | /potholes |
Asphalt degradation tracking and municipal repair work-order generation. |
| 10 | Waterlogging | /waterlogging |
Monsoon puddle depth segmentation (cm), road blockages, and traffic diversions. |
| 11 | Road Assets & Signs | /road-signs |
Faded zebra crossing flags, damaged speed signs, and missing dividers. |
| 12 | Traffic Analytics | /traffic |
Multi-class vehicle classification (Cars, Bikes, Buses, Trucks, Pedestrians) with Recharts. |
| 13 | AI Model Health | /ai-models |
Inference latency benchmarks, versioning, confidence scores, and Jetson GPU metrics. |
| 14 | City Analytics | /analytics |
Historical incident curves, corridor risk scores, and date-range filters. |
| 15 | Notifications | /notifications |
Categorized alerts (Critical, Warning, Info) with real-time push sync. |
| 16 | Settings | /settings |
Configurable API endpoints, simulator speed controls, and WebSocket ping tester. |
The platform includes an interactive SIH Demo Controls Bar at the top of the dashboard:
[Simulate Accident] [Simulate Pothole] [Simulate Waterlogging] [Simulate Bus Offline]
- Admin Login: Log in with demo credentials (
admin@helios.local/admin123) or click Instant SIH Demo Access. - Overview: Observe 20 buses (18 online), real-time incident counters, and the live status ticker.
- Live Map: View Hyderabad city transit routes with electric buses moving in real time via the background GPS simulator.
- Click "Simulate Accident":
- Backend creates collision incident on
BUS-1042with 97% confidence. - WebSocket broadcasts
sos_createdandincident_created. - Emergency banner and alert sound modal immediately triggers on the dashboard.
- A pulsing red alert marker appears on the Live City Map.
- SOS status displays
SENT.
- Backend creates collision incident on
- Inspect Evidence: View the camera frame evidence, collision coordinates, and vehicle velocity drop.
- Dispatch Response:
- Click Dispatch Ambulance → Status transitions to
AMBULANCE_DISPATCHED. - Click Notify Police → Status transitions to
POLICE_NOTIFIED. - Click Mark Resolved → Incident marked as resolved across the database and UI.
- Click Dispatch Ambulance → Status transitions to
- Python 3.10+
- Node.js 18+ and npm
cd server
pip install -r requirements.txt
python -m uvicorn main:app --reload --port 8000- API Base URL:
http://localhost:8000/api/v1 - Interactive Swagger Docs:
http://localhost:8000/docs - WebSocket Endpoint:
ws://localhost:8000/api/v1/ws/events
cd client
npm install
npm run devYou can test the trained YOLO accident detection model (best.pt) on any custom photo in two ways:
- Open the dashboard at
http://localhost:5173/overview. - Scroll to the "Edge AI Live Model Verification & Custom Image Lab" section (or click Test My Image in the top bar).
- Drag & drop or browse any image (
.jpg,.png,.webp) from your computer. - Click Run Edge AI Detection.
- Bounding boxes, confidence score %, and detection classes appear in real time, and you can click Open Emergency Dossier to view the live triage modal.
- Drop your photos into the
model_Test_my_image/folder. - Run:
python test_my_images.py
- Annotated images with bounding boxes are saved to
model_Test_my_image/results/, automatically popped up in your image viewer, and broadcasted to your live dashboard.
When physical Jetson Nano hardware is mounted inside the electric buses:
- Dashcam connects to Jetson Nano over USB/CSI.
- TensorRT engine executes YOLO inference on camera frames at 30 FPS.
- When confidence threshold (>85%) is met, Jetson calls:
POST http://<helios-server>:8000/api/v1/detect/<event_type>
- Helios backend validates, persists to database, and broadcasts over WebSockets to all connected command center stations automatically.