Inspiration
Every year, floods in Pakistan and other regions cause devastating damage to communities and infrastructure. I was inspired to create FloodGuard AI, a solution that predicts floods early and provides actionable alerts to save lives and help responders act faster.
What it does
FloodGuard AI is a flood prediction and alert system that:
Uses rainfall and river level data to classify flood risk (Low, Medium, High)
Provides real-time predictions via a Flask API
Simulates community alerts through a console-based notification system
Helps authorities and communities plan resources and response efficiently
How we built it
Data Simulation: Generated a dataset with rainfall and river levels to mimic historical flood patterns
Machine Learning: Trained a Random Forest Classifier to predict flood risk
Flask API: Built an endpoint to receive rainfall and river level inputs and return flood risk predictions
Alert System: Console demo that prints real-time simulated flood warnings
Project Structure: Packaged with README, requirements, and sample data for easy submission
Challenges we ran into
Simulating realistic flood data for training the model
Integrating the model, API, and alert system smoothly
Completing a working prototype under tight hackathon deadlines
Accomplishments that we're proud of
Built a fully functional prototype in Python with AI-based flood prediction
Created a Flask API for real-time predictions
Designed a console-based alert system demonstrating immediate risk notifications
Structured the project ready for deployment and hackathon submission
What we learned
How to train a machine learning model with simulated environmental data
How to build a REST API using Flask
How to design and integrate a full prototype combining AI, backend, and alerts
The importance of quick prototyping under time constraints
What's next for FloodGuard
Integrate live weather and river sensor data for real-time predictions
Expand alert system to SMS/WhatsApp notifications for actual communities
Develop a web or mobile dashboard for visualizing flood risk and relief coordination
Add drone or satellite imagery analysis for more accurate flood mapping
Built With
- api
- flask
- flask-machine-learning:-scikit-learn
- languages-&-frameworks:-python
- local
- numpy-model-persistence:-joblib-data-storage:-csv-(simulated-dataset)-tools-&-platforms:-console-simulation-for-alerts
- random-forest-classifier-data-handling:-pandas
Log in or sign up for Devpost to join the conversation.