# KHG Africa (Protecting Africa's Future Through AI Intelligence)
KHG Africa is an AI-powered, offline-first climate-health early warning infrastructure designed to protect vulnerable African children from climate-related disease outbreaks and environmental health risks.
By combining smart environmental sensing, community reporting, predictive AI, and low-connectivity communication systems, KHG Africa enables schools, clinics, governments, and NGOs to detect, predict, and respond to threats such as malaria, cholera, heat stress, flooding, and air pollution before they escalate into child health emergencies.
Built specifically for low-resource African communities, KHG Africa transforms schools and rural clinics into intelligent climate-health protection hubs capable of safeguarding children at scale.
By integrating **IoT Environmental Sensors**, **Crowdsourced Community Health Reports**, **PostGIS Geo-Intelligence**, and **Predictive Machine Learning Models**, the platform provides real-time risk assessment, disease prediction, and automated emergency dispatches.
---
## System Architecture
The KHG Africa ecosystem is composed of three primary decoupled layers, orchestrating a seamless flow from field capture to administrative oversight.
```mermaid
graph TD
%% Client/Field Inputs
subgraph Field Inputs
CHW[Community Health Workers] -- SQLite & Media Sync --> App[khg-app: Expo Mobile App]
Sensors[Weather / Air / Flood IoT Sensors] -- Telemetry Readings --> Backend[backend: FastAPI Service]
end
%% Storage & Sync
subgraph Data & Identity Core
App -- Media Uploads --> Cloudinary[Cloudinary CDN]
App -- Offline Sync Protocol --> Supabase[Supabase PostgreSQL & Auth]
Backend -- SQL Queries / PostGIS --> Supabase
end
%% Backend Engine
subgraph Backend Intelligence Layer
Backend -- Async Tasks --> Celery[Celery & Redis Worker]
Backend -- Predictive Analytics --> AI[Disease Prediction AI Engine]
Backend -- SMS Broadcast --> Termii[Termii & Africa's Talking API]
Backend …