SENTINEL is an intelligent safety system that predicts risk levels and suggests safer routes using Machine Learning and spatial algorithms.
It combines:
- 🤖 Risk Prediction Model (ML)
- 🗺️ Real-time Risk Map Visualization
- 🚦 Safe Route Recommendation Engine
-
Predicts safety risk using features:
- Time of day
- Day of week
- Crowd density
- Lighting conditions
- Past incidents
-
Outputs:
- Risk score (0–100)
- Threat level (SAFE / MODERATE / HIGH)
- Confidence score
-
Displays risk zones on a live map
-
Color-coded markers:
- 🟢 Safe
- 🟠 Moderate
- 🔴 High Risk
-
Built using React + Leaflet
- Uses graph-based pathfinding (A*)
- Avoids high-risk areas
- Suggests safest route between two points
- 📍 Point risk prediction
- 📊 Risk statistics
- 🔮 Threat forecasting
- 👮 Guardian alert system
- 💡 Infrastructure control simulation
backend/
│
├── api/
│ └── app.py # Flask API server
│
├── model/
│ ├── train_model.py # ML training script
│ ├── sentinel_model.pkl # Trained model
│ └── route_model.py # Pathfinding engine
│
├── data/
│ └── dataset.csv # Training dataset
│
frontend/
│
├── src/
│ ├── App.jsx
│ └── MapView.jsx # Map visualization
│
├── index.html
├── package.json
└── vite.config.js
mobile/ # (Optional React Native app)
cd backend
pip install -r requirements.txt
python model/train_model.py # Train model
python api/app.py # Start servercd frontend
npm install
npm run devOpen:
http://localhost:5173
POST /predict
GET /api/risk/point
POST /api/risk/zones
POST /api/route/suggest
GET /api/threat/forecast
GET /health
POST /predict
{
"time": 22,
"day": 6,
"crowd": 90,
"lighting": 20,
"incidents": 3
}- Backend: Flask, Python
- Machine Learning: Scikit-learn (RandomForest)
- Frontend: React (Vite)
- Maps: Leaflet.js
- Routing Engine: NetworkX
- 🌍 Real-world GPS integration
- 📡 Live data ingestion (CCTV / IoT)
- 📊 Heatmap visualization
- 🚗 Traffic-aware routing
- 📱 Full mobile deployment
Developed as a smart safety system project for real-time risk analysis and route optimization.
Feel free to fork, improve, and build on top of this system!
MIT License