AWS Builder Center
Building NIRNAY: How We Used AWS Amplify & Amazon Bedrock to Solve Delhi's Urban Waterlogging Crisis

Building NIRNAY: How We Used AWS Amplify & Amazon Bedrock to Solve Delhi's Urban Waterlogging Crisis

Discover how NIRNAY combines Euler numerical hydrology, dynamic programming, and Amazon Bedrock Claude 3.5 Sonnet to shift Delhi's monsoon flood response from reactive firefighting to proactive, sub-second decision making.

🌊 The Urban Crisis: When Delhi Paralyzes in 30 Minutes

Every monsoon season, the capital city of India experiences an alarming recurring crisis. Intense cloudbursts and torrential downpours transform critical traffic arteries and low-elevation underpassesβ€”such as Minto Bridge, Zakhira, Tilak Bridge, and Pul Prahladpurβ€”into submerged urban reservoirs within 30 to 45 minutes.
The consequences are catastrophic:
  • Emergency ambulances heading to premier trauma centers like LNJP Hospital and AIIMS get trapped in gridlocks.
  • Public transit buses submerge up to their windshields.
  • Civic bodies like the Municipal Corporation of Delhi (MCD) and Public Works Department (PWD) are forced into reactive firefightingβ€”deploying emergency mobile diesel suction pumps only after roads are already underwater and traffic is stranded.
As engineering students and builders, our team asked a fundamental question: What if civic authorities could predict exact flood depths and mathematically optimize pump deployment before the storm arrives?
This inspired us to build NIRNAY (National Infrastructure Risk & Network Action Yield)β€”an AI-powered Pre-Storm Decision Support Engine.

ο»Ώ

πŸ—οΈ System Architecture & How We Built It on AWS

NIRNAY is engineered around a high-performance full-stack architecture that combines deterministic physics modeling with generative AI situational awareness, powered end-to-end by AWS.
text
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Client / Field Operations β”‚
β”‚ Official MCD Civic Control Room UI β”‚
β”‚ (React 18, TypeScript, Tailwind CSS) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
Hosted on AWS Amplify Hosting (CI/CD)
β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FastAPI & Hydrology Engine β”‚
β”‚ - Copernicus 30m DEM Terrain Elevation Integration β”‚
β”‚ - Rational Runoff & Euler Numerical Inflow Model β”‚
β”‚ - Dynamic Programming (DP) Knapsack Pump Optimizer β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
AWS Boto3 SDK / Agentic Tool Orchestration
β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Amazon Bedrock β”‚
β”‚ Claude 3.5 Sonnet Grounded Conversational Agent β”‚
β”‚ (Translates physics math into bilingual advisories) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
ο»Ώ
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article