An intelligent civic platform that uses NLP, Computer Vision, and Geospatial Analytics to automatically classify, prioritize, and route citizen complaints — modeled after Mumbai's BMC Ward system.
Important
The backend is hosted on Hugging Face Spaces (16GB RAM) to handle large AI models, while the frontend is on Vercel.
- 🌍 Live Portal: Visit CivicSense
- ⚙️ Backend API:
https://frank10101-civicsense.hf.space - 🚦 API Health: Check Status
Citizens submit complaints via text, voice, or image. Our AI Neural Suite instantly orchestrates the following:
- Categorization: Automatically identifies the department (Roads, Waste, Water, etc.) using
BART-MNLI. - Urgency Scoring: Assigns priority (Critical, High, Medium, Low) using
DistilBERTsentiment & keyword analysis. - Visual Triage: Detects civic issues in photos (e.g., potholes, garbage) using
YOLOv8. - Voice Recognition: Transcribes audio complaints via
OpenAI Whisper. - Duplicate Detection: Prevents multiple reports for the same incident using
MiniLM-L6-v2semantic embeddings. - Geospatial Intelligence: Maps locations to Mumbai's BMC Wards using point-in-polygon geometry.
| Layer | Technology |
|---|---|
| Frontend | React 19 + TypeScript + Vite + Tailwind CSS |
| Backend | FastAPI (Python 3.10) |
| Database | Supabase (PostgreSQL + pgvector) |
| AI/ML | HuggingFace, YOLOv8, Whisper, SentenceTransformers |
| Real-time | WebSockets (Dashboard Live Feed) |
| Deployment | Docker (Backend) + Vercel (Frontend) |
| Role | Password | |
|---|---|---|
| Citizen | citizen@example.com |
password123 |
| City Admin | admin@city.gov |
adminpassword |
| Roads Officer | roads@city.gov |
password123 |
- Login as a Citizen.
- Click "Report Issue" from the home command center.
- Describe the issue (Type it or click the Mic to speak).
- Location: Click the map to pin the exact spot.
- Attachments: Upload a photo for AI visual verification.
- Submit: Watch the AI analyze and route it in < 2 seconds.
- Login as an Official.
- View the Live Triage Map to see hotspots across Mumbai.
- Open a complaint to see AI insights (Urgency, Category, Visual Tags).
- Resolve: Click "Resolution Proof" -> Enter your work note -> Status becomes Resolved.
- Go to "Track Status".
- Click "View Resolution Proof" to see what the officer documented.
Figure 1: High-fidelity municipal landing page with role-aware portals.
Figure 2: AI-driven reporting flow with geospatial map integration.
Figure 3: Personal tracking hub with real-time AI triage status.
Figure 4: Executive Command Center with Live Heatmap and Triage Feed.
Figure 5: Verifiable resolution proof system for municipal transparency.
cd backend
pip install -r requirements.txt
# Set .env with SUPABASE_URL, SUPABASE_KEY, JWT_SECRET
uvicorn main:app --reloadcd frontend
npm install
# Set VITE_API_URL in .env
npm run devBuilt with ❤️ for Mumbai's Digital Transformation.