An offline-first, multimodal medical assistant powered by Gemma 4, designed to bridge the healthcare gap in rural areas via edge-AI.
# 🩺 MedVoice Africa
> **An offline-first, multimodal AI medical assistant powered by Gemma 4, built to bridge the deadly gap between symptom onset and professional care in rural Africa.**
Features · Architecture · Setup
---
## 🌍 The Problem
In rural Sub-Saharan Africa, a **"Medical Desert"** creates a fatal gap:
- **1 doctor per 10,000+ people** in remote areas of Benin
- **No connectivity** — 3G/4G coverage drops to near zero outside urban centers
- **Community health workers** act as the first — and often only — line of defense, with minimal training and no decision-support tools
- **Language barrier** — French-only medical tools exclude the majority of rural populations who speak Fon or other local languages
The result: preventable deaths from treatable conditions like malaria, diarrhea, and fever — simply because the right protocol was unavailable at the right moment.
---
## 💡 The Solution
**MedVoice Africa** is an edge-AI agent that runs entirely on a mid-range Android phone, **with or without internet**. It puts a trained medical reasoning engine in the hands of every person within the West African community and every community health worker, anywhere.
```
No WiFi. No server. No problem.
> ⚠️ **Demo note:** The LLM offline module requires 3GB+ free RAM.
> In this demo build, Gemma 4 via Gemini API is used for natural language generation.
> All medical logic (triage, dosage, WHO protocols) runs fully offline.
```
### What it does
| Module | Description |
|---|---|
| 🔴 **Smart Triage** | Automatically classifies symptoms as ROUGE / JAUNE / VERT using WHO protocols |
| 💊 **Dosage Calculator** | Computes weight-based pediatric & adult dosages from 100+ local drug protocols |
| ⚠️ **Pharmacy Guard** | Scans medicine boxes via camera (OCR + barcode) and detects dangerous drug interactions |
| 🌿 **Offline RAG** | Retrieves WHO emergency protocols locally — no internet required |
| 🗣️ **Multilingual Voice** | Understands and responds in **Fren …