CoolFace
Apppublic

manunarayana99/FLOOD_PREDICTOR

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐ŸŒŠ 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

App Preview


๐Ÿงช How to Use

  1. 1.Launch the app on Hugging Face ๐Ÿค—
  2. 2.Enter the required climate and terrain parameters in the sidebar
  3. 3.Click "Predict Flood Discharge"
  4. 4.View the predicted value + flood risk insight

๐Ÿš€ Tech Stack

  • โ€”Python
  • โ€”Streamlit
  • โ€”Scikit-learn
  • โ€”Pandas, NumPy
  • โ€”Matplotlib (for custom gauge bar)

๐Ÿง  Example Inputs

FeatureExample Value
Annual Mean Temperature26.3 ยฐC
Annual Precipitation1450 mm
Drainage Area1800 kmยฒ
Basin Relief950 m
Temperature Seasonality325.0

๐Ÿ“ˆ 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