References & data
NagarikAI is grounded in three public datasets and two trained models. This page surfaces every source we lean on, the trend each one reveals, and where to find the raw file in this repo.
What the numbers actually say
Every chart below is rendered from the same files the production agents read. No mock data. Pick a year to filter the time-series.
BBMP citizen-issue backlog (H1 2025)
Pothole reports peak Jul–Sep, lagging the SW monsoon by ~3 weeks. Garbage stays roughly flat. Streetlight outages spike in Dec when daylight shrinks.
KGIS BBMP ward polygons
Every submitted report is point-in-polygon checked against these 243 polygons. Outside → 422 outside_bbmp_jurisdiction. Inside → we set issue.ward + use it for routing, leaderboards, and hotspot prediction.
IMD Bengaluru monthly rainfall
log(road_complaints + 1) regresses on rainfall_mm with a 1-month lag. Coefficient is positive and significant (p<0.01) — every extra 10mm in the prior month adds ~6% to next-month road complaint volume.
Pothole defect CNN (closure verification)
CLIP zero-shot can spot 'pothole vs road' but not 'patched pothole vs still-broken pothole'. We train a 24k-param CNN (3× conv + GAP + FC) on real before/after pairs so the resolution agent doesn't accept fake closures.
106-fixture routing-ablation suite
101/106 LLM router calls agreed with the SOP table; the remaining 5 were correctly caught by guardrails fallback. 0/16 prompt-injection attempts succeeded. 0/106 hallucinated departments.
Gemini 2.5 Flash on video — all 7 categories
We uploaded one Creative-Commons clip per category to the Gemini Files API and asked it for the same JSON the VisionAgent uses in production. Below is the unedited output. 7/7 type-match; median 1.9s post-upload latency.
| Expected → Gemini | Sev | Conf | Hazard | Gemini notes | ms | Watch |
|---|---|---|---|---|---|---|
pothole | 4 | 0.90 | vehicles | Large pothole filled with water on a busy road, causing traffic to slow down and vehicles to navigate carefully. | 3521 | .mp4 |
garbage | 4 | 0.95 | sanitation | Large pile of mixed waste, including plastic bags and other refuse, creating a significant environmental and sanitation issue. | 1434 | .mp4 |
streetlight | 2 | 0.90 | none | Streetlight is flickering, possibly due to a loose connection or faulty bulb. Needs inspection and repair. | 1913 | .mp4 |
water_leak | 2 | 0.90 | none | A water leak is visible on a white pipe against a brick wall, with rust-colored liquid dripping slowly. | 2401 | .mp4 |
sewage | 4 | 0.90 | sanitation | There is a large amount of foamy discharge from multiple pipes draining into the river — likely untreated sewage. | 2633 | .mp4 |
tree_fall | 3 | 0.90 | pedestrians | A fallen tree is blocking a path in a forest area, potential obstruction for pedestrians. | 1905 | .mp4 |
encroachment | 2 | 0.80 | pedestrians | Street vendors and parked motorcycles are encroaching on the road, narrowing the usable carriageway. | 1475 | .mp4 |
External APIs & SDKs cited in the agent loop
VisionAgent — image + video classification with JSON-mode + Files API for clips
LLM router — tool-use schema enforcement for department + SLA selection
DedupAgent — image embedding for near-duplicate detection within 250m + 30min
SchedulerAgent — MILP with severity-weighted lateness + skill matching
InsightsAgent — HistGradientBoostingRegressor on the rainfall panel
AuditAnchor + CivicBadge soulbound ERC-721 on chain.id 80002