Logo Lanfrica

EngrIBGIT/DataSurge_FloodPrediction

Domain:

climategeospatial

Record type:

software
Creator:
Eng
Host:
# FloodGuardEdge **AI-powered Flood Prediction App for Nigeria** Combines geospatial intelligence, machine learning, and real-time weather to help predict urban flood risks. # FloodPrediction ## FloodGuardEdge **AI-powered Flood Prediction App for Nigeria** Combines geospatial intelligence, machine learning, and real-time weather to help predict urban flood risks. --- ## Features - **Satellite Data Integration** (CHIRPS, SRTM, MODIS) - **ETL, EDA & ML modeling** using Python & SHAP - **ML Models**: RF, XGBoost, LightGBM, ANN, etc. - **Weather Forecast** integration with OpenWeatherMap API - **Nigeria Map Tab** with real-time data and scrolling info - **Offline support** for field use (pre-cached weather, saved models) - UI via **Streamlit**, backend via **FastAPI** --- ## πŸ“ Project Structure ``` FloodGuardEdge/ β”œβ”€β”€ app.py # Streamlit UI β”œβ”€β”€ main.py # FastAPI API backend β”œβ”€β”€ data/ β”‚ β”œβ”€β”€ raw/ # Downloaded rasters β”‚ └── processed/ # Cleaned CSVs, cached weather β”œβ”€β”€ models/ # Trained models (pkl, h5) β”œβ”€β”€ figures/ # Visualizations & SHAP plots β”œβ”€β”€ notebooks/ # etl.ipynb, eda.ipynb, prediction.ipynb β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ etl.py # Data collection and transformation β”‚ β”œβ”€β”€ prediction.py # Modeling and explainability β”‚ └── utils.py # Weather API + location features β”œβ”€β”€ tests/ # Unit tests β”œβ”€β”€ .env # API Keys β”œβ”€β”€ requirements.txt # Python dependencies └── README.md ``` ## Getting Started ```bash # Clone the repo $ git clone github.com $ cd FloodGuardEdge # Install dependencies $ pip install -r requirements.txt # Set your OpenWeatherMap API Key $ echo "OPENWEATHER_API=your_key_here" > .env # Run the ETL pipeline $ python src/etl.py # Train model (or use pre-saved models) $ python src/prediction.py # Launch the Streamlit dashboard $ streamlit run app.py # Start API server $ uvicorn main:app --reload ``` --- ---

Licenses