manunarayana99/FLOOD_PREDICTOR
๐ Flood Peak Discharge Predictor
Predict annual peak flood discharge based on key climatic and geographical features using a KNN Regressor. Built using Streamlit, this project demonstrates how machine learning can be applied to environmental risk assessment.
๐ About the Project
Floods are among the most devastating natural disasters, and early prediction plays a crucial role in minimizing damage. This tool takes in 25+ climate and terrain features and predicts the expected flood peak discharge (mยณ/s).
โ๏ธ Model Details
- Model: KNN Regressor
- Input Features:
- Climate data: temperature, precipitation, seasonal variations
- Geographical data: drainage area, flow length, basin metrics
- Target Variable: Annual Peak Discharge
๐ Features
โ Predict flood discharge based on input parameters โ Gauge-style risk visualization โ Dark-themed interactive interface โ Instant in-browser predictions with Streamlit โ Clean, responsive layout
๐ฅ๏ธ UI Snapshot

๐งช How to Use
- Launch the app on Hugging Face ๐ค
- Enter the required climate and terrain parameters in the sidebar
- Click "Predict Flood Discharge"
- View the predicted value + flood risk insight
๐ Tech Stack
- Python
- Streamlit
- Scikit-learn
- Pandas, NumPy
- Matplotlib (for custom gauge bar)
๐ง Example Inputs
๐ Prediction Output
- ๐ต Discharge: 1750.25 mยณ/s
- ๐งญ Risk Insight: High flood potential based on discharge
๐ง Future Improvements
- Integrate real-time weather API
- Add regional flood classification system
- Expand dataset to include temporal flood patterns
๐ค Let's Collaborate!
Feel free to fork, extend, and improve the project. If you use this for your research, education, or deployment, please โญ the repo or mention the authors.
โTurn climate data into actionable insights. Predict floods, protect lives.โ
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
