Logo Lanfrica

OthmanSALAHI/drought-risk-detection-morocco

Domain:

climateagriculture

Record type:

software
Creator:
Oth
Host:
DroughtWatch Morocco is a research-grade, full-stack application that combines climate science, machine learning, and agricultural economics # DroughtWatch Morocco A full-stack machine learning application for drought risk detection in Morocco. It predicts drought probability for Moroccan cities, shows historical SPI trends, maps drought status, and estimates agricultural economic impact in Moroccan dirhams. GitHub: github.com ## What The Project Does - Predicts drought or no drought for a selected city, month, and year. - Shows drought probability and climate indicators. - Displays historical SPI drought trends. - Maps drought status for Moroccan cities. - Estimates crop-level agricultural losses for barley, soft wheat, durum wheat, and olives. ## Tech Stack - Backend: Python, FastAPI, pandas, scikit-learn - Frontend: React, TypeScript, Vite, Tailwind CSS - Maps and charts: Leaflet, Recharts - Model: cross-validated sklearn classifier ## Project Structure ```text Drought & Water/ ├── data/ # CSV datasets ├── docs/ # LaTeX report and documentation ├── metrics/ # Generated model and dashboard figures ├── notebooks/ # EDA notebook ├── scripts/ # Data collection and preprocessing scripts ├── web_app/ │ ├── backend/ # FastAPI API and ML model │ └── frontend/ # React/Vite interface └── README.md ``` ## Data Sources | Data | Source | Coverage | |---|---|---| | Climate data | Open-Meteo Historical API | Monthly climate variables for Moroccan cities, 2000-2025 | | City coordinates | World Cities dataset | Moroccan city latitude and longitude | | Agricultural production | FAOSTAT Morocco | Crop production data | | Crop prices | ONICL Morocco | Reference cereal prices | | SPI-yield coefficients | CGIAR/ICARDA studies | Crop drought sensitivity estimates | | Regional mapping | HCP Morocco and local mapping files | Regional crop and irrigation context | Main generated files: - `data/morocco_climate_data.csv` - …

Languages