Kiswahili environmental text classifier using mBERT — classifying East African language text by UNEP Strategic Objective. Built by Martin James Ng'ang'a |
github.com
# Kiswahili NLP — Environmental Text Classifier
---
## The Problem
Over 200 million East Africans speak Kiswahili as a first or second language.
Yet most AI systems are built primarily in English — leaving indigenous communities unable to contribute environmental knowledge in their own language. Community observations about deforestation, pollution, and climate change remain invisible to global monitoring systems because the AI cannot process them.
This project addresses that gap.
---
## What This Does
A Kiswahili environmental text classifier that:
- Classifies Kiswahili text by UNEP Strategic Objective
- Uses mBERT — multilingual BERT trained on 104 languages including Kiswahili
- Tracks every experiment with MLflow
- Connects African language knowledge to global environmental monitoring
## Where This Fits
A Kiswahili classification model, even fully built, doesn't create value sitting in a repository — it needs to reach the systems where environmental data actually gets aggregated:
- **UNEP monitoring integration** — classified Kiswahili observations, mapped to Strategic Objectives, are exactly the kind of structured input global environmental monitoring dashboards currently can't ingest from non-English sources.
- **Citizen science platforms** — community reporting apps (deforestation alerts, pollution reports) currently require English input to be processed by most downstream systems; this closes the gap at the language layer, not the reporting layer.
- **Cross-language research aggregation** — researchers studying environmental trends across East Africa currently can't systematically include Kiswahili-language community knowledge in quantitative analysis; structured classification is what makes that possible.
This currently runs on zero-shot classification (no fine-tuning yet) — genuinely functional, but the accuracy ceiling of an off-the-shelf model. The next step is fine-tuning mBERT on a real Kiswahili environmental corpus, which is what would m …