Areapulse
Citizen complaints into actionable intelligence
Created on 7th June 2026
•
Areapulse
Citizen complaints into actionable intelligence
The problem Areapulse solves
India files over 40 million civic complaints every year. Almost none get resolved. The system fails at every level.
Citizens — face government portals with 15-field forms, ward numbers, captchas, and OTPs. Most abandon the page halfway. Those who complete it wait two months and hear nothing. No status updates. No accountability. No feedback loop. They file once and never again.
Government Officers — receive thousands of unsorted complaints daily. No intelligent prioritisation. No duplicate detection. No SLA enforcement. A critical sewage overflow sits in the same queue as a noise complaint. Officers manually sort everything. Critical issues get buried. Response times stretch into months.
NGOs — willing to deploy resources for civic improvement but have zero access to structured ground-level data. They cannot see which areas have the most unresolved issues, which issue types government is ignoring, or where their intervention would create the highest impact. They operate completely blind.
The core problem is a broken feedback loop between three stakeholders — citizens, government, and NGOs — with no shared platform, no automation, no accountability, and no transparency.
AreaPulse fixes all three simultaneously.
Challenges we ran into
Challenges We Ran Into
AI-Generated Fake Reports— As AI image generators became widely accessible, we realised bad actors could submit synthetic photos of potholes and garbage that do not exist. A convincing AI-generated pothole image looks identical to a real one to the naked eye. We built a multi-layer defence inside the Groq Llama-4-Scout vision pipeline that detects unnatural lighting, repeated pixel patterns, missing real-world context, and digital artifacts typical of generated images. Every flagged image is logged separately in a spam_issues collection for audit before it ever enters the main database.
Rate Limiting and System Flooding — During testing, automated scripts flooded the report endpoint with hundreds of fake submissions per minute. We built a per-user rate limiting system that tracks submission frequency and automatically blocks users who exceed thresholds. Combined with AI spam detection, this creates a two-layer shield — spam caught by AI, flooding caught by rate limiter — so neither fake content nor volume attacks can pollute the database.
Firebase Quota Exhaustion — Firebase free tier ran out within hours during live testing. We engineered a 5-minute TTL read cache that reduced daily reads from 2,880 to 288. Added graceful 429 handlingthat serves from in-memory seed data and queues writes in background threads. Users never see an error even when quota is fully exhausted.
Duplicate Detection at Scale— Calculating Haversine distance between every incoming report and all existing issues was computationally expensive as the database grew. We bounded the search to a 50m radius and 7-day window to keep response times fast without missing real duplicates. Multiple citizens reporting the same pothole now strengthen one issue instead of creating noise
WhatsApp EXIF GPS Extraction — WhatsApp strips EXIF metadata on some devices before sending images. We built fallback logic— if GPS is missing from the photo, the bot asks the user to share a location pin. If they do not share one, it defaults to area centroid coordinates derived from reverse geocoding via Nominatim.
Neon Postgres Connection Drops— Render free tier and Neon serverless pooler reject persistent connection pools and drop SSL connections under load. We replaced pooling with per-request fresh connections using a context manager that opens, commits, and closes cleanly even on errors — with auto-retry logic on transient SSL drops so no query fails silently.
AR Camera Latency— Getting computer vision classification under 5 seconds on a mobile browser was harder than expected. Raw camera photos were 3 to 5MB. Sending that to Groq caused consistent timeouts. We added client-side image compression to under 500KB before the API call, bringing classification time down to under 3 seconds on average mobile connections.
SLA Auto-Escalation Under Load — Running SLA checks on every issue during every API call caused database overload during high traffic. We capped auto-escalations at** 5 per request**to protect the database connection pool, ensuring the feed always returns even if some escalations are deferred to the next polling cycle.