Spaces:
Configuration error
Configuration error
| license: mit | |
| title: SafeRoute | |
| sdk: static | |
| emoji: π | |
| colorFrom: indigo | |
| colorTo: purple | |
| pinned: false | |
| app_file: index.html | |
| short_description: SafeRoute acts as an intelligent decision-support system . | |
| π¦ SafeRoute | |
| AI-Powered Traffic Intelligence & Accident Risk Prediction Platform | |
| SafeRoute is a production-grade, data-driven web application engineered to enhance road safety through real-time accident risk prediction, intelligent route analysis, and geospatial visualization. | |
| It combines Machine Learning, real-time APIs, and modern web architecture to provide users with safer and smarter navigation decisions. | |
| π Live Demo | |
| https://safe-route-cyan.vercel.app | |
| π§ Overview | |
| SafeRoute acts as an intelligent decision-support system for navigation, going beyond traditional map applications by incorporating risk awareness into route planning. | |
| Unlike standard navigation tools that optimize only for distance or time, SafeRoute evaluates safety metrics such as: | |
| Weather conditions | |
| Road type | |
| Traffic estimation | |
| Historical risk patterns | |
| ποΈ System Architecture | |
| Frontend (React + Leaflet) β βΌ Geocoding Layer (Nominatim API) β βΌ Routing Engine (OpenRouteService) β βΌ Backend API Layer (Express / FastAPI) β βΌ ML Inference Engine (Risk Prediction Model) β βΌ Response Processing (Scoring + Classification) β βΌ UI Visualization (Map + Risk Segments) | |
| βοΈ Technology Stack | |
| Layer Technology | |
| Frontend React.js | |
| Maps & Visualization Leaflet + OpenStreetMap | |
| Routing API OpenRouteService | |
| Backend Node.js / Express / FastAPI | |
| Machine Learning Scikit-learn (Random Forest / Logistic Regression) | |
| Data APIs OpenWeather API | |
| AI Integration Generative AI (Assistant Layer) | |
| Deployment Vercel / Render / Cloud Platforms | |
| π Key Features | |
| π§ Intelligent Navigation | |
| Real-time route calculation (distance + ETA) | |
| Multi-point route analysis | |
| β οΈ Accident Risk Prediction | |
| ML-based risk scoring (0β100%) | |
| Real-time inference (<500ms) | |
| Dynamic classification: | |
| π’ Low Risk (Safe Route) | |
| π Moderate Risk | |
| π΄ High Risk | |
| πΊοΈ Advanced Map System | |
| Interactive maps with multiple layers | |
| Route segmentation based on risk | |
| Satellite and terrain modes | |
| π Smart Search System | |
| Location search (city, address, places) | |
| Category-based search (ATM, hospitals, etc.) | |
| API-driven suggestions (no hardcoding) | |
| π¦οΈ Context-Aware Insights | |
| Weather-based risk adjustments | |
| Environmental awareness | |
| π€ AI Assistance | |
| Context-aware navigation assistant | |
| Helps interpret route safety and decisions | |
| π§ͺ Machine Learning Pipeline | |
| Input Features: | |
| Weather conditions (API) | |
| Time of day | |
| Traffic estimation | |
| Road type (highway, street, local) | |
| Output: | |
| Risk Probability (%) | |
| Risk Classification | |
| Model: | |
| Lightweight & optimized for real-time inference | |
| Pre-trained and served via API |