Skip to content

About

End-to-end coffee sustainability pipeline with automated EUDR traceability assessment, regional KPI analysis, and an interactive dashboard.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coffee Sustainability Analytics Pipeline (CSAP)

Live Demo

Project Overview

An automated, end-to-end data pipeline for processing field survey data, assessing EUDR (European Union Deforestation Regulation) traceability, and generating sustainability KPIs. The project combines an R-based analytics workflow with an interactive Streamlit dashboard for stakeholder reporting.

Problem Statement

Coffee sustainability data can be fragmented across different sources and formats, making it difficult to assess traceability, identify data gaps, and monitor sustainability indicators. Incomplete geolocation and inconsistent field records can also make EUDR-related due diligence more challenging.

The Solution

I developed a modular and reproducible analytics pipeline that transforms raw field data into structured sustainability insights:

  1. Automated Audit Pipeline: Processes field records and flags entries requiring further action based on polygon-mapping status.
  2. KPI Derivation: Uses an automated R pipeline to calculate regional traceability rates and sustainability metrics.
  3. Stakeholder Dashboard: Provides an interactive Streamlit interface for filtering results by region and monitoring key sustainability indicators.

Foundational Research & Compliance Standards

This project is informed by EUDR traceability requirements and common sustainability data-management practices:

  • EUDR Traceability: Uses polygon-based geolocation to assess whether farm records contain the spatial information needed for traceability and due diligence.
  • Carbon Modeling: Calculates carbon-intensity indicators using CO₂-equivalent metrics such as $tCO_2/ha$.
  • Data Quality: Applies a data-audit-first workflow that flags quality issues before analysis and KPI generation.

Recommendation

Based on the simulated pipeline results, the following interventions are suggested:

  • Prioritize Geo-Mapping: Prioritize field data collection in Gedeo and Sidamo, where the simulated results show lower traceability rates.
  • Targeted Training: Consider prioritizing carbon-reduction and sustainable farming training in Sidamo, where the simulated data show higher carbon intensity.

Tech Stack

  • Data Generation: Python (Faker, Pandas) for synthetic supply-chain data generation.
  • Data Processing: R (tidyverse, janitor) for data cleaning, auditing, and KPI generation.
  • Pipeline Orchestration: Modular R scripts with error handling using tryCatch.
  • Dashboard: Streamlit for interactive stakeholder visualization.

Developed by

Aklilu Abera | Data Analyst

About

End-to-end coffee sustainability pipeline with automated EUDR traceability assessment, regional KPI analysis, and an interactive dashboard.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages