AI Decision Intelligence Layer for Ethiopia's Digital Health Ecosystem
# SmartRx AI 🏥
## AI Decision Intelligence Layer for Ethiopia's Digital Health Ecosystem
### *From Data in Silos to Intelligence in Action*
> **Submitted to:** Ethiopian Artificial Intelligence Institute (EAII) AI Innovation Contest
> **Category:** Healthcare AI / Digital Health
> **Mission:** Improve medicine access, prevent stock-outs, detect disease outbreaks early, and empower both patients and health systems with AI.
---
## 🎯 What is SmartRx AI?
SmartRx AI is an **AI-powered pharmacy intelligence platform** built specifically for Ethiopia. It sits as an intelligence layer over existing pharmacy infrastructure and delivers:
| Feature | Description |
|---|---|
| 📷 **Prescription AI** | Scan handwritten Amharic/English prescriptions → extract medicines → find nearest pharmacy with stock |
| 🗺️ **Interactive Map** | Live map of all pharmacies with real-time stock health indicators (Leaflet.js + OpenStreetMap) |
| 📈 **Demand Forecasting** | LSTM-based 7/14/30-day shortage prediction trained on 18 months of Ethiopian transaction data |
| 🦠 **Outbreak Detection** | Autoencoder anomaly detection flags unusual demand spikes before they become crises |
| 🔄 **Smart Redistribution** | AI engine identifies overstock↔stockout pairs and auto-generates transfer suggestions |
| 📱 **SMS Alerts** | Bilingual (Amharic + English) notifications via Africa's Talking |
| 🔌 **Offline-First** | Pharmacy staff can work without internet; sync when reconnected |
---
## 🏗️ Architecture
```
Patient Input (Amharic voice/photo/text)
↓
FastAPI/Flask REST API (44 endpoints)
↓
AI Engine
├── Prescription AI (Tesseract OCR + NLP extraction)
├── LSTM Forecasting (GradientBoosting, 120 medicine models)
└── Anomaly Detection (IsolationForest, outbreak signals)
↓
PostgreSQL / SQLite DB (16 tables, 253K+ records)
↓
Frontend Dashboard (Bootstrap + Chart.js + Leaflet.js)
↓
SMS Notifications (Africa's Talking)
```
---
## 🚀 Quick Start
### Option 1 — One Command (Demo mode, no external deps) …