A Causal AI Early Warning and Precision Intervention System for Drug and Substance Use Disorders in Kenya
# ZeraMatumizi π°πͺ
> *Zera Matumizi β "Eliminate Use" in Swahili*
A longitudinal, open-science, production-grade **Causal AI Early Warning
and Precision Intervention System** for Drug and Substance Use Disorders
in Kenya β combining causal inference, Bayesian modelling, NLP, graph
neural networks, and quantum computing into a unified public health
intelligence platform.
---
## The Problem
Over **1.5 million Kenyan youths** are grappling with drug and substance
abuse. Over 90% of rehabilitation facilities are privately owned, skewed
toward urban centres, and unaffordable to the majority of Kenyans.
**No data-driven early identification system exists at the county level.**
ZeraMatumizi addresses this gap by:
1. **Predicting** which individuals and communities are at highest risk β
before clinical presentation
2. **Explaining** the causal pathways driving risk across 47 counties
3. **Optimising** allocation of Kenya's scarce treatment resources
4. **Generating** actionable intelligence for NACADA officers in both
Swahili and English
---
## System Architecture
Raw Data (KDHS 2022, NACADA, DHIS2, OSM)
β
βΌ
D1: ETL Pipeline ββββββββββββββββββββββββββββββββββββββββββββββ
β loader.py β validator.py β cleaner.py
β 4,000 respondents, 13 features, Pandera schema validation
βΌ
D2: Causal Inference ββββββββββββββββββββββββββββββββββββββββββ
β dag.py β Interactive causal DAG (26 nodes)
β did_analysis.py β NACADA campaigns: -27% disorder rate
β rdd_analysis.py β Age-18 threshold: +56% disorder risk
β iv_analysis.py β Chang'aa proximity IV: Ξ²=0.557
βΌ
D3: Bayesian Hierarchical Model βββββββββββββββββββββββββββββββ
β hierarchical_model.py β County risk with credible intervals
β Nyamira 14.1% [9.7%, 20.7%] ... Homa Bay 11.7% [7.5%, 16.9%]
βΌ
D4: NLP & LLM Pipeline ββββββββββββββββββββββββββββββββββββββββ
β swahili_ner_model.py β Swahili SUD NER (5 entity types)
β rag_pipeline.py β NACADA counsellor RAG assistant
β topic_modelling.py β BERTopi β¦