# π₯ MedIQ: Bridging Medical Deserts in Ghana
### Databricks x Accenture Hackathon β Virtue Foundation Track
## π― Project Overview
MedIQ is an AI-powered Intelligent Document Parsing (IDP) agent that analyzes healthcare facility data across Ghana to identify medical deserts, detect anomalous claims, and help NGO planners deploy resources where they're needed most.
Built on Databricks using real data from the Virtue Foundation, MedIQ processed **995 real Ghana healthcare facilities** and discovered that **71% are medical deserts** β severely under-resourced facilities that lack basic equipment, procedures, or capabilities.
---
## π What We Built
| Notebook | Description |
|---|---|
| `01_Data_Ingestion` | Loads and cleans the Virtue Foundation Ghana dataset |
| `02_IDP_Agent` | LLM-powered extraction of procedures, equipment & capabilities from free-form text |
| `03_Gap_Analyzer` | Detects medical deserts and anomalous facility claims |
| `04_Chat_Interface` | Natural language Q&A for NGO planners |
| `05_Map_Visualization` | Interactive map of medical deserts across Ghana |
| `06_Citations` | Row-level and step-level citations with MLFlow tracing |
---
## π Key Findings
- **758 out of 1,067 facilities (71%)** are medical deserts
- **Western Region: 100%** of facilities are medical deserts
- **169 facilities** have anomalous or suspicious data including:
- 80 facilities with zero medical data
- 55 claiming surgery but no surgical theater
- 46 claiming advanced care but no equipment
- 5 claiming ICU but no ICU equipment
- **Saint John of God Hospital, Duayaw Nkwanta** β flagged on 3 anomalies
---
## ποΈ Architecture
```
Ghana Facility Data (995 facilities)
β
Databricks Delta Tables
β
IDP Agent (Llama 3.3 70B via Databricks Serving)
β
Structured Extraction β Pydantic Schema Validation
β
Gap Analyzer β Medical Desert Scoring β Anomaly Detection
β
MLFlow Experiment Tracking + Row-Level Citations
β
Natural Language Chat Interface + Interactive Map
```
---
## β¦