Inspiration

In June 2022, floods in Sylhet and Sunamganj affected over 7 million people. Satellites could map the water, but responders still struggled to learn who needed rescue first. I'm a student from Bangladesh. I wanted to connect what satellites see with what people on the ground report, without letting an AI decide what is true.

FloodGuard AI is not a flood predictor. It is a triage desk: satellites see the water, people see the damage, and a human decides.

What it does

  • Report in Bangla or English, with an optional photo and map pin. No accounts, no contact fields.
  • AI structures each report (category, urgency, needs, people affected, summary) after personal data is removed.
  • Flags duplicates, corroboration and re-shared photos.
  • Sets each report against real evidence: NASA MODIS flood pixels, NASA IMERG rainfall, GloFAS river discharge and daily rainfall. Evidence is context, never proof, and it can honestly say "inconclusive" when clouds block the satellite.
  • Humans verify. The AI can never mark a report verified; every moderator action is audited.
  • A priority map, analytics, a one-click situation report, and a June 2022 Event Replay (real satellite and river data; community reports are simulated and labelled).

How I built it

Python, Streamlit, SQLite, Folium and Plotly. NASA GIBS tiles with pixel sampling, Open-Meteo for GloFAS v4 river discharge with a climatology anomaly, and the Gemini API over REST with a strict JSON schema.

Use of AI

In the product: a three-tier design so free-tier limits never break the demo: pre-computed Gemini results, then limited live Gemini (session and daily caps), then a rule-based Bangla/English fallback. Every output is labelled with the engine that produced it. Personal data (phones, names, emails, links) is redacted before anything leaves the app, and only redacted text plus a district name is sent. Gemini output is validated against an enum schema.

To build it: I used Claude Code (Claude Opus for specification and review, Claude Sonnet for most of the code). This is disclosed in the README.

Challenges

  • Monsoon clouds block MODIS, and 250 m pixels miss small floods, so the app reports "inconclusive" instead of guessing.
  • GloFAS grid cells sometimes miss the river.
  • Bangla keyword rules, and a redaction bug that was cutting "সুনামগঞ্জ" in half, which I found by testing the live app.
  • Gemini 2.5 closed to new API keys during the build, so the app now tries current models in order and falls back to rules.
  • There is no live flood in November, so I built a replay of June 2022.

What I learned

  1. Satellite data has hard limits, especially in monsoon season. A trustworthy tool must be able to say "I can't tell".
  2. "Human in the loop" works only if the code enforces it. In FloodGuard the AI literally cannot set the status to verified.
  3. Free AI models change under you. Design for failure: caches, fallbacks and honest labels beat a perfect demo.

What's next

SMS/IVR intake with partners, a Sentinel-1 radar layer, BWDB river-gauge data, Bangla model fine-tuning, and an NGO pilot.

Try it: https://floodguard-ai-sylhet.streamlit.app/ (starts in Replay mode; community reports in it are SIMULATED) · Code: https://github.com/shahriarsharif406/floodguard-ai

Built With

Share this project:

Updates

Submission history