π East Africa Maize Yield Insights Visualizes maize yield trends across Kenya, Rwanda, and Tanzania using SQL, Python, and Power BI. Parses 18,000+ field folders with metadata and satellite imagery Ranks variety and seasonal performance Builds dashboards for regional yield decision-making
# πΎ East Africa Maize Yield Insights
This project visualizes maize yield performance across East African trials using field-calibrated agronomic methods, Python, SQL, and Power BI. It combines raw plot measurements with seasonality, regional comparisons, and variety-level analysis β delivering actionable dashboards for decision-makers in agricultural development.
---
## π¦ Repository Structure
```text
modules/
βββ yield-performance-module/
βββ data/ # Cleaned dataset for analysis
β βββ yield_metadata_cleaned.csv
βββ exports/ # Aggregated SQL output files
β βββ yearly_avg_yield_by_country.csv
βββ dashboards/
β βββ final_dashboard.pbix # Power BI dashboard
β βββ visual_snapshots/
β βββ yield_dashboard_snapshot.pdf
βββ SQL/ # Raw and aggregated query logic
β βββ top_yielding_country_per_year.sql
βββ docs/
βββ methodology.md # Cleaning, estimation, and logic docs
---
## π¦ Dataset Overview
- **Source**: Lacuna Fund Agriculture Datasets
- **Collected by**: One Acre Fund
- **Regions Covered**: Kenya, Rwanda, Tanzania
- **Files Processed**: 18,482 folders, each containing:
- `metadata.json`: Agronomic details (yield weights, plot size, fertilizer use, GPS)
- `stac.json`: Satellite image metadata (timestamps, bounding box, sensor info)
---
## π§Ύ Fields Extracted
- `Year`
- `Season`
- `Country`
- `Longitude`
- `Latitude`
- `BoxAWidth`
- `BoxALength`
- `BoxBWidth`
- `BoxBLength`
- `BoxAWetWeight`
- `BoxADryWeight`
- `BoxBWetWeight`
- `BoxBDryWeight`
- `PlotSize_Acres`
- `Variety`
- `Planting Date`
- `CAN_Kgs`
- `DAP_Kgs`
- `NPK_Kgs`
- `Urea_Kgs`
- `ImgID`
---
## π Project Goals
- Build a unified SQLite database with field-level agronomic data
- Identify yield performance trends across regions and seasons
- Pair dry weight measurements with imagery metadata to explore spatial correlations
- Showcase technical data wrangling using non-code tools (Excel + Power Query)
---
# β¦