ziko-ahmed/saheli
0
π‘οΈ Saheli
WhatsApp-first AI triage system for rural healthcare, powered by Gemma 4.
Saheli lets any patient describe their symptoms via WhatsApp β in text, voice, or photo β and receives an intelligent triage response in their language. Behind the scenes, Saheli silently aggregates anonymous symptom data across thousands of conversations to detect disease outbreaks 48β72 hours before official surveillance.
Kaggle Gemma 4 Good Hackathon 2026 Tracks: Health & Sciences Β· Digital Equity & Inclusivity
β¨ Features
- π£ Multilingual triage β Hindi, English, Bengali, Tamil (Gemma 4 supports 140+ languages)
- π± WhatsApp-first β Zero learning curve, works on basic phones
- π€ Multimodal input β Text, voice notes (Whisper), photos of rashes/wounds
- π§ Gemma 4 intelligence β Fine-tuned 26B MoE model for medical symptom analysis
- β‘ 3-tier severity scoring β Mild β self-care, Moderate β ASHA alert, Emergency β all hands
- π¬ Outbreak detection β DBSCAN geo-temporal clustering for epidemic early warning
- π Live dashboard β Heatmap, alert feed, symptom trends, severity distribution
- π Privacy-first β No PII stored, 6-hour time bucketing, k-anonymity
π Architecture
Patient (WhatsApp)
β
Meta Cloud API webhook
β
FastAPI Backend
β
Gemma 4 (26B A4B MoE, fine-tuned)
β Language detection β Symptom extraction
β Severity scoring β Differential diagnosis
β Explainable reasoning (XAI)
β
βββββββββββββββ¬ββββββββββββββ
β Mild (1-4) β Mod (5-7) β Emergency (8-10)
β Self-care β + ASHA alertβ + All services alerted
βββββββββββββββ΄ββββββββββββββ
β
Anonymous telemetry β DBSCAN clustering β Outbreak alertsπ Quick Start
Prerequisites
- Python 3.11+
- Docker & Docker Compose (for PostgreSQL + TimescaleDB)
- NVIDIA GPU with 16GB+ VRAM (for Gemma 4; or use mock mode)
Setup
# Clone and enter project
cd saheli
# Copy environment file
cp .env.example .env
# Edit .env with your WhatsApp API credentials
# Start database
docker compose up -d db
# Install Python dependencies
pip install -r requirements.txt
# Run the server
uvicorn app.main:app --reloadEndpoints
π Project Structure
saheli/
βββ app/ # FastAPI backend
β βββ main.py # Application entry point
β βββ config.py # Settings (Pydantic)
β βββ models/ # Pydantic schemas
β βββ routers/ # API endpoints
β βββ services/ # Business logic
β βββ db/ # Database layer
β βββ prompts/ # Gemma 4 system prompts
βββ dashboard/ # Outbreak web dashboard
βββ diagrams/ # Architecture SVG diagrams
βββ notebooks/ # Kaggle notebooks
βββ data/ # Datasets
βββ docs/ # Competition deliverables
βββ tests/ # Test suite𧬠Tech Stack
π License
Apache 2.0 β same as Gemma 4.
