Skip to content

gee-46/SlumSafe-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

36 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿšจ SlumSafe AI

Making Invisible Crime Visible & Predictable

Transforming data-dark zones into actionable intelligence using AI

๐Ÿ† 4th place out of 100+ teams at InnovateX 4.0 (International Tech Fest @ Presidency)


๐Ÿ“Œ Problem Statement

Urban slums experience disproportionately high crime rates, yet a large portion of these incidents go unreported due to:

  • Fear of retaliation
  • Lack of anonymity
  • Limited access to reporting systems
  • Low digital literacy

This leads to data invisibility, where entire communities are excluded from official datasets.

โŒ No data โ†’ โŒ No visibility โ†’ โŒ No intervention


๐Ÿ” Detailed Problem Insight

Urban slums often function as data-dark zones, where crime exists but is not reflected in structured systems.

This creates critical challenges:

  • ๐Ÿ“‰ Authorities rely on incomplete or biased data
  • ๐Ÿšซ Preventive measures are rarely implemented
  • โš ๏ธ Crime patterns remain invisible

The real problem is not just crime โ€” it is the absence of reliable data.


๐Ÿ’ก Solution Overview

SlumSafe AI is a predictive and participatory crime intelligence system that:

  • ๐Ÿง  Predicts crime risk using AI
  • ๐Ÿ—บ๏ธ Visualizes hotspots via heatmaps
  • ๐Ÿ“ข Enables anonymous reporting
  • ๐Ÿšจ Provides emergency action support

๐Ÿ”ฅ We donโ€™t just analyze crime โ€” we create visibility where none exists


๐Ÿ’ก Detailed Solution Approach

๐Ÿง  1. Predictive Intelligence

  • Machine learning model (Random Forest)
  • Uses time and location patterns
  • Estimates crime risk even with limited data

๐Ÿ“Š 2. Visual Intelligence

  • Interactive heatmap using Folium
  • Converts predictions into intuitive insights
  • Seamless "Quick Jump" navigation across global hotspots (Mumbai, Bangalore, Goa)

๐Ÿ“ข 3. Participatory Data Generation

  • Instant 1-Tap Anonymous reporting system (No typing required)
  • Encourages community contribution
  • Reduces underreporting

๐Ÿ” 4. Continuous Learning Loop

Limited Data โ†’ Prediction โ†’ User Reports โ†’ More Data โ†’ Better Predictions

๐Ÿšจ 5. Action-Oriented Design

  • Real-time alerts
  • Emergency contact feature

๐Ÿ–ฅ๏ธ UI Preview

This UI is a conceptual design created by our team to visualize the system before implementation. It reflects our planned workflow and user experience for the final product.


โš™๏ธ Features

๐Ÿง  Crime Risk Prediction

  • Inputs: Latitude, Longitude, Time
  • Output: Risk Level (Low / Medium / High)

๐Ÿ—บ๏ธ Heatmap Visualization

  • Color-coded risk zones

    • ๐Ÿ”ด High
    • ๐ŸŸก Medium
    • ๐ŸŸข Low

๐Ÿ“ข Anonymous Reporting

  • Instant 1-Tap interface for reporting incidents dynamically
  • Automatically captures and maps location/timestamp directly to heatmap
  • Stores data locally (CSV)

๐Ÿšจ Emergency Feature

  • One-click emergency call
  • Uses device dialer (tel: link)

๐Ÿ”” Alert System

  • Highlights high-risk areas
  • Time-based warnings

๐Ÿ” How It Works

User Input (Location + Time) 
        โ†“
Data Processing
        โ†“
ML Model Prediction
        โ†“
Risk Classification
        โ†“
Heatmap Visualization + Alerts
        โ†“
1-Tap Anonymous Reporting
        โ†“
Continuous Improvement

๐Ÿ—๏ธ Tech Stack

Layer Technology
Frontend Streamlit
Backend Python
ML Model Scikit-learn
Visualization Folium
Storage CSV

๐Ÿ“‚ Project Structure

SlumSafe-AI/
โ”‚
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ UI-preview.jpeg
โ”‚
โ”œโ”€โ”€ scripts/
โ”‚   โ”œโ”€โ”€ crime_model.py
โ”‚   โ”œโ”€โ”€ fetch_chicago.py
โ”‚   โ””โ”€โ”€ gen_india_data.py
โ”‚
โ”œโ”€โ”€ model/
โ”‚   โ””โ”€โ”€ model.pkl
โ”‚
โ””โ”€โ”€ data/
    โ”œโ”€โ”€ crime_data.csv
    โ”œโ”€โ”€ ngos.csv
    โ”œโ”€โ”€ emergency_contacts.csv
    โ””โ”€โ”€ reports.csv

๐Ÿš€ Getting Started

git clone https://github.com/gee-46/SlumSafe-AI.git
cd SlumSafe-AI
pip install -r requirements.txt
streamlit run app.py

๐ŸŒ Impact

  • ๐Ÿš” Enables proactive policing
  • ๐Ÿ™๏ธ Supports urban planning
  • ๐Ÿค Helps NGOs target interventions
  • ๐Ÿ‘ฅ Empowers underserved communities

โš ๏ธ Limitations

  • Uses simulated data for prototyping
  • Model accuracy improves over time

๐Ÿ”ฎ Future Scope

  • Real-time data integration
  • SMS-based reporting
  • NGO / police API integration
  • Advanced analytics

๐Ÿ† Hackathon Achievement

Event        : InnovateX 4.0 (International Tech Fest @ Presidency)
Track        : Build With AI (24-Hour Hackathon)
Team         : PulseX
Result       : ๐Ÿ… Secured 4th Place
Competition  : 100+ Teams

๐Ÿ† Hackathon Context

๐Ÿท๏ธ Team Name

PulseX


๐Ÿ‘จ๐Ÿ’ป Team Members

  • Aniroshgouda Ramanagoudar (Team Leader)
  • Gautam N Chipkar
  • Shridharsingh Rajaput
  • Basavaraj Basagaudar

๐Ÿค Team Roles (Hackathon Execution)

Member Responsibility
Aniroshgouda Ramanagoudar Team Lead, Coordination, Final Integration
Gautam N Chipkar AI/ML Model & Data Pipeline
Shridharsingh Rajaput Frontend UI & Visualization
Basavaraj Basagaudar Features, Reporting & Deployment

๐Ÿ’ก Collaboration Approach

  • Modular development using Git branches
  • Parallel development with structured integration
  • Focus on rapid prototyping and clean execution

โ€œBuilt with collaboration, speed, and impact in mind.โ€


โญ Support

If you found this project interesting:

โญ Star the repo ๐Ÿด Fork it ๐Ÿ’ก Build on it


๐Ÿ“ข Final Thought

โ€œWe are not just predicting crime โ€” we are making invisible communities visible in data systems.โ€

About

Built for InnovateX 4.0, SlumSafe AI secured 4th place out of 100 teams at the International Tech Fest, standing among the top 10 finalists. A 24-hour sprint that turned ideas into impact and effort into recognition. ๐Ÿš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors