Logo Lanfrica

CherutoCharlize/mamacare-ai

Domain:

healthcare

Record type:

software
Creator:
Che
Host:
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 …