AI-Powered Maternal Health Triage System for Rural Kenya
# MamaCare AI π©Ί
**AI-Powered Maternal Health Triage and Early-Warning System for Rural Kenya**
A three-agent AI ecosystem supporting Community Health Workers (CHWs) in Kisumu County with real-time risk triage, intelligent escalation, and structured clinical briefings.
## SDG Alignment
- SDG 3 β Good Health and Well-being
- SDG 5 β Gender Equality
- SDG 10 β Reduced Inequalities
## Agent Architecture
| Agent | Role |
|-------|------|
| Intake Scout | USSD-based structured danger sign assessment coach |
| Triage Guardian | Maternal risk stratification (Low / Medium / High) |
| Coordinator Hunter | Clinician matching + briefing packet generation |
## Tech Stack
- **Backend:** Python 3.11, FastAPI
- **AI Agents:** n8n (workflow orchestration)
- **Database:** SQLite (local dev), PostgreSQL (production)
- **Infrastructure:** AWS af-south-1 (Cape Town) β Kenya DPA 2022 compliant
- **Channels:** USSD / SMS simulation via webhook
## Project Structure
```
mamacare/
βββ backend/
β βββ main.py # FastAPI app entry point
β βββ agents/
β β βββ scout.py # Intake Scout Agent logic
β β βββ guardian.py # Triage Guardian Agent logic
β β βββ coordinator.py # Coordinator Hunter Agent logic
β βββ models/
β β βββ patient.py # Patient data models
β β βββ risk.py # Risk scoring models
β βββ data/
β β βββ mock_patients.json # Mock CHW intake data
β βββ requirements.txt
βββ n8n/
β βββ mamacare_workflow.json # Importable n8n workflow
βββ .env.example
βββ .gitignore
βββ README.md
```
## Quick Start
See the full setup guide in SETUP.md or follow the README steps below.
```bash
# 1. Clone the repo
git clone
github.com
cd mamacare-ai
# 2. Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows
# 3. Install dependencies
pip install -r backend/requirements.txt
# 4. Copy and configure environment
copy .env.example .env
# 5. Run the backend
uvicorn β¦