π§οΈβ‘
Hackathons are chaotic.
You start with coffee β
You end with questionable sleep decisions, rapid-fire Git commits, and a lot of βwaitβ¦ does this even run?β moments.
But sometimes something really cool comes out of that chaos.
For the World Wide Vibes Hackathon, our team OmniShield decided to build something that could actually help people during extreme weather events.
So we built:
π‘οΈ StormShield AI β a real-time flood prediction and civic alert system
A system that monitors water levels, predicts floods, and alerts citizens before things get dangerous.
And yes⦠we built it during a hackathon.
π Live Demo
You can try the project here:
π Live App (Render Deployment)
π https://stormshieldai-montgomery.streamlit.app/
π₯ Demo Video
We also recorded a walkthrough showing the system in action.
π¬ Watch the demo
Or watch directly here:
π https://www.youtube.com/watch?v=La_nr6mdPw0
π The Problem
Flooding is one of the most common natural disasters worldwide.
The problem isnβt just detecting floods β itβs detecting them early enough to act.
Most traditional systems:
rely on static thresholds
provide delayed alerts
donβt explain what people should actually do
We wanted to build something smarter:
β‘ Real-time monitoring
π€ AI-powered predictions
π’ clear public alerts
π‘οΈ Enter StormShield AI
StormShield acts like a digital guardian for the city.
It continuously monitors environmental data, predicts what might happen next, and informs citizens before flood conditions escalate.
Think of it as:
π¨ An AI-powered early warning system for floods
Built for Montgomery, Alabama.
π Key Features
π Real-Time Data Ingestion
StormShield constantly collects live environmental data from:
π USGS stream gauge data
β NOAA / NWS weather alerts
π¦ local weather telemetry
This keeps the system aware of changing flood conditions in real time.
π€ Predictive Flood Forecasting
We trained a machine learning model using XGBoost on historical water-level data.
The model predicts:
π water levels 30 minutes into the future (T+30)
That short prediction window can provide critical early warning time.
π¨ Smart Alerting Engine
StormShield automatically categorizes risk levels:
Status
Condition
Meaning
π’ GREEN
Normal water level
Safe conditions
π‘ YELLOW
Rapid water rise
Prepare / caution
π΄ RED
Predicted flood stage
Immediate action
The system also monitors rate-of-rise, one of the earliest indicators of flash flooding.
β¨ Generative AI Alerts (Gemini 2.0 Flash)
Raw flood data isnβt helpful for most people.
So we integrated Gemini 2.0 Flash to generate clear, calm public alerts.
Instead of confusing telemetry, people receive messages like:
βWater levels are rising rapidly near Sligo Creek. Residents should avoid low-lying roads and prepare for possible evacuation guidance.β
Helpful. Clear. Not panic-inducing.
π¬ Ask StormShield AI
We also built a RAG-powered AI assistant.
Citizens can ask questions like:
βIs my neighborhood at risk?β
βWhich roads are flooded?β
βWhere are evacuation points?β
StormShield searches live system data and answers instantly.
π The Dashboard
We created a live interactive dashboard using Streamlit.
Features include:
π real-time water telemetry
π predictive flood charts
πΊ interactive flood zone maps
π live sensor markers
And one of our favorite features:
π³ Green Infrastructure Simulator
It estimates how many trees would be needed to reduce water runoff and flood risk.
Because sometimes the best flood defense is simply more trees.
βοΈ Tech Stack
Backend
π Python
β‘ FastAPI
β± APScheduler
π Uvicorn
Frontend
π Streamlit
πΊ Folium (interactive maps)
π Plotly charts
AI / ML
π³ XGBoost (time-series forecasting)
π€ Gemini 2.0 Flash (alert generation + RAG chatbot)
Data Sources
π USGS Water Services API
β NOAA / NWS alerts
π Bright Data
ποΈ Project Architecture
StormShield/
β
βββ backend/
β βββ ingestion/
β βββ processing/
β βββ prediction/
β βββ alert/
β βββ simulation/
β βββ query/
β
βββ frontend/
β βββ dashboard
β βββ interactive maps
β βββ chatbot interface
β
βββ data/
βββ model weights
βββ telemetry cache
π Running the Project Locally
Clone the repo:
git clone https://github.com/Tanishaaaaaaa/StormShield.git
cd StormShield
Create environment:
python -m venv venv
source venv/bin/activate
Install dependencies:
pip install -r requirements.txt
Train the model:
python backend/modules/prediction/train.py
Run backend:
uvicorn backend.main:app --reload --port 8000
Run dashboard:
streamlit run frontend/app.py
π Hackathon Context
This project was built for the World Wide Vibes Hackathon.
Goal:
Build an AI-powered civic application that can help communities respond to extreme weather events.
Team: OmniShield
Project: StormShield AI
Sometimes hackathon ideas stay as prototypes.
But occasionally they turn into real-world solutions.
StormShield might just be one of those.
π¬ Weβd Love Feedback
If you were building an AI-powered smart city platform, what would you add?
Better prediction models?
IoT sensors?
Automated evacuation planning?
Curious to hear ideas from the community.
Top comments (0)