Skip to content

SuAsPra/Rushathon_Emergency_Road_Prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— AI Road Condition Detection & SOS Alert System

An intelligent road monitoring system that uses AI, computer vision, and GPS to detect road anomalies such as potholes and speed breakers while automatically logging their locations to a backend server. The system also includes an SOS emergency alert feature that sends notifications to a Telegram bot with the vehicle’s location. Team - 11 - Suriyan Loganathan, Udhayadev G S, Dhakshnamoorthy J

Sample image for dashboard - image image

Sample image for maps - image image Telegram in emergency contacts phone when there is an SOS alert - WhatsApp Image 2026-03-06 at 4 31 13 PM


πŸ“Œ Project Overview

This project uses Flutter, TensorFlow Lite, and a Node.js + MongoDB backend to build a real-time road monitoring system. The mobile app captures images, detects road conditions using an AI model, and sends the results with GPS coordinates to the backend. The server stores detections and visualizes them on a web dashboard and Google Maps.

An SOS emergency button allows users to send their location instantly, triggering a Telegram bot alert.


βš™οΈ System Architecture

Flutter App ↓ Camera + TensorFlow Lite ↓ GPS Location (Geolocator) ↓ Node.js API ↓ MongoDB Database ↓ Web Dashboard + Google Maps ↓ Telegram SOS Alerts


πŸš€ Features

πŸ“· AI Road Detection

  • Detects Normal Road
  • Detects Potholes
  • Detects Speed Breakers
  • Runs using TensorFlow Lite

πŸ“ GPS Tracking

  • Captures latitude, longitude, timestamp
  • Sends location with every detection

πŸ—„ Backend Logging

  • Stores detections in MongoDB
  • Displays logs in a web dashboard

πŸ—Ί Map Visualization

  • Google Maps showing detected road issues

  • Color markers:

    • πŸ”΄ Pothole
    • 🟠 Speed Breaker
    • 🟒 Normal Road

🚨 SOS Emergency Alert

  • SOS button in mobile app
  • Sends GPS location to backend
  • Backend triggers Telegram bot notification

Example alert:

🚨 SOS ALERT Vehicle TN07-XYX-123 sent an emergency alert

Latitude: 13.0827 Longitude: 80.2707

https://maps.google.com/?q=13.0827,80.2707


🧠 Technologies Used

Mobile App

  • Flutter
  • Dart
  • Camera
  • Geolocator
  • TensorFlow Lite

Backend

  • Node.js
  • Express
  • MongoDB
  • Mongoose
  • Axios

Visualization

  • HTML / CSS
  • Google Maps API

Alerts

  • Telegram Bot API

πŸ“‚ Project Structure

road_detector_project
β”‚
β”œβ”€β”€ flutter_app
β”‚   β”œβ”€β”€ main.dart
β”‚   └── model.tflite
β”‚
β”œβ”€β”€ road_backend
β”‚   β”œβ”€β”€ server.js
β”‚   └── package.json
β”‚
└── README.md

πŸ›  Installation

Clone repository

git clone https://github.com/yourusername/road-detector-ai.git

Flutter App

flutter pub get
flutter run

Required permissions:

  • Camera
  • Location
  • Internet

Backend

cd road_backend
npm install
node server.js

Server runs at:

http://localhost:5000

🌍 Web Dashboard

Detection logs:

http://localhost:5000

Map visualization:

http://localhost:5000/map

πŸ“‘ API Endpoints

Save Detection

POST /api/detection

Send SOS

POST /api/sos

πŸ‘¨β€πŸ’» Author

Suriyan L

image image image image

About

Problem statement - 2.2. Emergency Response and Monitoring System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors