CrisisGrid — Human-Approved Disaster Response & Live Air Quality Workspace

Drill System Notice: CrisisGrid is a simulation and decision-support platform. District names and populations are real (Pakistan Bureau of Statistics Census 2023 & Census of India 2011), while incidents, facilities, and capacities are synthetic drill records. In a real emergency, always contact 1122 / 115 (Pakistan) or 112 (India).


💡 Inspiration & Social Impact

Across South Asia, climate emergencies and daily environmental hazards put tens of millions of lives at risk—from lethal heatwaves in Karachi and catastrophic floods in Sindh to cyclones along the Bay of Bengal and hazardous air pollution across North India and Pakistani Punjab.

In real district control rooms, emergency coordinators lose critical hours reconciling disconnected spreadsheets, outdated shelter inventories, and fragmented messaging apps. While generative AI offers speed for summarizing reports and translating alerts, unverified AI hallucinations in life-safety operations can cost lives.

We built CrisisGrid around a simple human-first principle: "AI does the analysis. People make the call." By pairing deterministic mathematical optimization and live air-quality telemetry with guarded AI summaries and strict human approval gates, CrisisGrid helps communities respond faster, safer, and with full accountability.


🛠️ What It Does

1. Five-Step Human-Approved Disaster Response Workflow

CrisisGrid guides district control rooms from hazard detection to verified community relief—cutting preparation time from 60–125 minutes down to under 5 minutes while keeping humans firmly in control:

Step Name Core Functionality Human Gate & Safety Guardrail
1 Assess Identifies affected districts in the hazard zone, flags coverage gaps (missing cooling centers/shelters), and filters stale resource records (>24 hours old). Records older than 24 hours are strictly excluded from active planning so teams aren't sent to closed shelters.
2 Plan Uses a Google OR-Tools (CBC) mathematical solver to match verified resources to the highest-need districts without double-booking. A Coordinator must explicitly approve, trim, or reject (with a written reason) before any mission is created.
3 Field Work Offline-capable mobile interface (Accept → On my way → Arrived) built for field responders in low-connectivity zones. Requires a secret check-in code + GPS proximity check (1.5 km fixed / 5 km mobile) + field notes.
4 Report Compiles an auditable Situation Report (SitRep) from verified, flagged, and uncovered database records. LLM summary is programmatically rejected if it invents any number not supplied in verified facts.
5 Public Advisory Generates hazard-specific safety guidance in English, Urdu, Hindi, and regional languages (Sindhi, Odia, etc.). Held in draft until a Coordinator releases it; automatically rejected if emergency numbers (1122, 115, 112) are dropped.

2. Live Air Quality & Health Guidance

Air pollution is a daily public-health emergency across North India and Pakistani Punjab. CrisisGrid integrates live readings from WAQI and Open-Meteo for 17 major cities and every district in an active incident area—displaying US EPA AQI, PM2.5, PM10, plain-language health advice, and clear labels when data comes from distant or older monitoring stations.

3. Real-Time Team Workspace & Guarded AI Email Agent

  • Instant Live Synchronization: Powered by Server-Sent Events (SSE) locally (and 5-second polling on Vercel) so new tasks, progress updates, chat messages, and live "online now" presence appear across every connected screen without refreshing.
  • Tasks & Private To-Dos: Full task lifecycle (Pending → In progress → Under review → Completed) where assignees cannot mark their own work completed without supervisor review.
  • Direct Chat & People Directory: Real-time 1-on-1 messaging with read receipts, unread counts, and role management.
  • Guarded AI Email Agent: Drafts partner or interagency communications from a short brief using Google Gemini 2.5 Flash or local Ollama Qwen 2.5 7B—explicitly inserting [placeholders] for missing information rather than inventing facts, and returning a clear configuration notice rather than faking a template if no model is active.
  • Founder & Partnership Studio (/founder): Accelerates NGO/relief partner discovery, coverage gap analysis, cost feasibility modeling, and guarded outreach drafting for humanitarian pilot rollouts.

4. Try It Now — Demo Accounts

Visit https://crisisgrid-agents.vercel.app/login and sign in with password crisisgrid-demo:

Username Role What You Can Test
coordinator Coordinator Run the 5-step response on Karachi heatwave, approve/trim OR-Tools plans, and release advisories.
field Field Responder Accept dispatched missions on mobile and submit GPS + check-in code evidence.
founder Founder Run NGO partner discovery in Founder Studio, assign team tasks, and manage user roles.
auditor Auditor Inspect every report, task, AI call, and the tamper-proof append-only audit log.
(Or /signup) Team Member Create your own account to test live dashboard tasks, to-dos, chat, and the AI email agent.

🏗️ How We Built It (Technical Execution)

System Architecture

Responsible AI & Guardrail Summary

Component Approach Safety Mechanism
Hazard & GIS Coverage Deterministic Haversine math & rules Hard 24-hour freshness cutoff; strict distance limits.
Resource Allocation Google OR-Tools (CBC) solver Pure mathematical optimization; zero double-booking; requires Coordinator approval.
SitRep & Impact Summaries Gemini 2.5 Flash / Ollama Qwen 2.5 7B Output validator rejects any summary containing numbers not present in computed facts.
Public Advisories Fixed templates (EN/UR/HI) + AI translation Validator rejects any translation that drops helpline numbers (1122, 115, 112).
AI Email Agent Live LLM only ([placeholders] enforced) Never falls back to a static template disguised as AI; surfaces explicit setup errors.

🧪 Verification & Quality Assurance

CrisisGrid ships with 170 automated tests across every layer of the stack:

  • pnpm test:api (60 tests): Auth, RBAC, human approval gates, GPS/code evidence verification, tasks, chat, SSE, polling fallback, audit log immutability, and live AQI.
  • pnpm test:web (51 tests): Response workflow, approval UI, offline field queue, sign-in/up, AI email states, and AQI displays.
  • pnpm test:agents (30 tests): OR-Tools allocation constraints, GIS coverage math, hallucination validators, SitReps, multilingual advisories, and Turso reader.
  • pnpm test:e2e (29 tests): Full desktop and mobile Playwright browser journeys across all user roles with zero console errors.

🧩 Challenges We Ran Into & What We Learned

  • Stopping AI Hallucinations in High-Stakes Decisions: Early testing showed LLMs occasionally embellished casualty/resource figures or dropped helpline numbers during regional translation. Moving all resource math into Python rules and Google OR-Tools—and building deterministic post-generation validators—eliminated unverified numbers from reaching operators.
  • Real-Time Sync on Serverless Infrastructure: Bridging persistent Server-Sent Events (SSE) in local development with stateless serverless functions on Vercel required pairing Turso synced replicas with an automatic 5-second polling fallback.
  • Key Takeaway: Effective civic and humanitarian technology doesn't replace human responders with black-box automation—it removes administrative bottlenecks so trained people can make faster, better-informed decisions.

🚀 What's Next for CrisisGrid

  1. QR Code Field Check-Ins: Enabling instant QR code scanning on mobile devices to speed up on-site verification in low-connectivity areas.
  2. Native-Speaker Linguistic Audits & Voice Alerts: Collaborating with regional disaster authorities to audit Sindhi, Odia, Punjabi, and Bengali translations and add audio advisories for low-literacy communities.
  3. Live Government Alert Feeds: Integrating official Common Alerting Protocol (CAP), NDMA, and IMD feeds alongside drill simulations.

Built With

Share this project:

Updates

Submission history