Skip to content
R

RIVA

When the flood hits, silence is not an option

Created on 12th April 2026

•

R

RIVA

When the flood hits, silence is not an option

The problem RIVA solves

Mumbai floods because of a physics condition called tidal lock — when high tide exceeds a ward's stormwater outfall elevation, drainage seals completely regardless of pump capacity. This condition is calculable hours in advance. What has never existed is a system that acts on that calculation in real time.
RIVA solves the coordination collapse that turns predictable flooding into preventable deaths.
In every major Mumbai flood since 2005, the documented failure mode is identical: BMC, Western Railway, NDRF, and KEM Hospital operate in silos. Alerts travel by phone call. Response times run 4–6 hours. No record exists of who was contacted, what they were told, or whether they acted. The 2005 inquiry — which killed 1,094 people — explicitly recommended building an integrated real-time coordination system. That recommendation is twenty years old. Nothing was built.
RIVA is that system. It does three things no existing tool does simultaneously:
Detects — A physics engine computes drain capacity across every Mumbai ward using live tide height and rainfall data. When tidal lock is confirmed, RIVA triggers in under a second. No ML model, no confidence interval — deterministic math on a binary physical condition.
Dispatches — An AI agent reasons over the trigger event in context: time of day, tide direction, hospital occupancy, which roads are about to close, where NDRF battalions are positioned. It generates sequenced, agency-specific instructions for BMC, NDRF, Western Railway, and KEM Hospital simultaneously — in under 2 seconds. Every dispatch is timestamped. Every silence is logged.
Documents — When the event closes, RIVA synthesises the full accountability log into a formal governance report using generative AI. Named departments. Exact response times. Traced consequences. Recommended actions with owners and deadlines. For the first time, a department's silence during a flood has a timestamp and a consequence chain attached to it.
Who uses it:

Ward officers (BMC) — receive specific pump activation and road closure instructions with countdown timers and ACK buttons
NDRF battalion commanders — receive deployment orders with live route recommendations that avoid flooding roads in real time
Hospital administrators (KEM) — receive surge protocol activation with cascade risk timelines showing when road access will degrade
Railway operations (Western Railway) — receive station preparation orders before tracks submerge, with OVERDUE flags if unacknowledged
Municipal Commissioners and NDMA — receive post-event accountability reports naming every failure, every gap, every consequence

What it replaces: phone trees, WhatsApp group alerts, manual coordination across six agencies, post-event press conferences with no accountability, and twenty years of the same inquiry finding the same coordination failure.

Challenges we ran into

We Woke Up to a Project That Had Forked Itself
At 4am, a teammate ran an AI code generation prompt and went to sleep. By 9am, RIVA had two brains and neither knew the other existed.
Three new files had appeared in an AI_ML/ folder. The original implementation lived in AI/. Both had an agent.py. Both had a Groq client. Neither talked to the other. Somewhere in the night the backend had also been quietly rewritten to use Anthropic instead of Groq — with MOCK_MODE = true as the default. Every AI call in the system was returning hardcoded mock data and had been for hours. Six AI functions. Zero running. The demo looked perfect. The network tab was empty.
Fixing it felt like archaeology — reading every file, tracing every import, figuring out which system was real. Once we understood it, the fix was twenty minutes. Understanding it took two hours.
What it taught us: AI-assisted code generation is fast until two people run it on the same codebase simultaneously. You don't get merge conflicts. You get two systems that each believe they are the real one, neither complaining.

The Demo Was Lying
The two most dramatic moments in our demo — the AI reasoning panel and the accountability report generating live on screen — were hardcoded strings.
The report button triggered a real spinner and a fake paragraph. The AI narrative on the Audit Dashboard was identical every single time regardless of what the cascade engine had just computed. A judge watching the screen would never know. A judge opening the network tab would see zero API calls during the "AI moment" and understand everything immediately.
We found this not through testing but through a code audit driven by a gut feeling that something was too smooth.
The fix: wire both to real endpoints backed by actual Groq calls. The report is now live text. The narrative now changes because it is generated from the current graph state, not written by us three days ago.
The lesson: a demo that looks good is not the same as a demo that is real. The distance between the two is exactly the distance a technical judge travels in fifteen seconds.

The Map That Showed Nothing
The cascade animation — Mumbai's infrastructure failing geographically, node by node, each circle sized by population affected — is the visual centrepiece of the project. When we ran it with the real backend connected for the first time, two circles appeared. Then it stopped.
The dependency graph had six nodes. The demo that was supposed to show Western Railway cascading into Sion arterial into LBS Marg into KEM Hospital had, in production, Western Railway cascading into one road. Full stop.
Four hours of proper data work later — Overpass API queries for real Mumbai coordinates, BMC population data, cascade weights built from first principles — the graph had ten nodes, nine edges, and numbers we could defend in a Q&A.
The map now shows what it was always supposed to show. It took the demo breaking completely to make us build it properly.

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio