Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

Β© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

amanbr86/Ethiopian-Food-Price-Prediction-Model

Domain:

agriculturesocioeconomic

Record type:

model
Creator:
ama
Host:
# 🌾 Ethiopian Food Price Prediction β€” ML Pipeline > **WFP Market Price Data Β· 60,343 records Β· 96 Commodities Β· 128 Markets Β· 2000–2026** > Masters Program β€” Machine Learning Final Project Β· 2026 --- ## πŸ“‹ Project Overview Food price volatility in Ethiopia directly impacts food security for millions of people. This project builds a full **machine learning pipeline** that predicts retail and wholesale food prices (ETB) across 128 Ethiopian markets and 96 commodity types, using 26 years of WFP market price data. The project is deployed as a **Streamlit web application** where users can select a commodity, market, and forecast date to instantly predict the expected price. ### Results | Metric | Value | |---|---| | Best Model | RandomForest (tuned) | | Test RΒ² | **0.872** β€” 87.2% of variance explained | | Test RMSE | **1,245 ETB** average error | | Test MAE | **668 ETB** median absolute error | | Train RΒ² | 0.966 (healthy gap β€” not severe overfitting) | --- ## πŸ“ Project Structure ``` food_price_prediction/ β”œβ”€β”€ data/ β”‚ └── wfp_food_prices_eth.csv ← WFP price data (place here) β”œβ”€β”€ models/ ← auto-created by train.py β”‚ β”œβ”€β”€ best_model.pkl ← fitted sklearn Pipeline β”‚ β”œβ”€β”€ encoders.pkl ← LabelEncoders for Streamlit dropdowns β”‚ β”œβ”€β”€ feature_names.json ← metadata, metrics, commodity lists β”‚ β”œβ”€β”€ training_report.txt ← human-readable performance summary β”‚ β”œβ”€β”€ eda_report.png ← 4-panel EDA chart β”‚ └── diagnostics.png ← residuals + feature importance chart β”œβ”€β”€ train.py ← full 8-step ML pipeline β”œβ”€β”€ app.py ← Streamlit deployment app └── requirements.txt ← Python dependencies ``` --- ## βš™οΈ Quick Start ### 1. Install dependencies ```bash pip install -r requirements.txt ``` ### 2. Train the model (runs all 8 pipeline steps) ```bash python train.py ``` Expected runtime: **5–15 minu …

Visit

github.com

Languages

Amharic