In rural Nigeria, over 70% of health facilities experience frequent internet outages. When a trauma patient arrives and needs blood, doctors lose access to donor databases. They resort to panic phone calls, searching through paper lists, and calling hospitals one by one. Patients bleed out while they wait.
Existing solutions assume constant connectivity. In reality, emergencies rarely happen when the Wi-Fi is working.
Haemo-Agent Network is a fully offline AI coordination system that puts the power of regional blood coordination directly into the hands of frontline healthcare workers—no internet required.
When a doctor types an emergency like "I need O+ blood for a trauma patient":
- Gemma 4 extracts the blood type.
- Agentic Search executes – Python functions search the local donor database, check 90-day eligibility, and calculate distances using offline Haversine math.
- Regional Network Scan – The system checks nearby hospitals within 50km for available blood stock.
- Explainable Report – A complete Emergency Dispatch Report is generated with donor names, phone numbers, distances, and reasoning for each recommendation.
All of this happens in seconds. All offline. All on a laptop.
- AI Model: Google Gemma 4 (via Ollama)
- Framework: Python 3.12 + Gradio UI
- Logic: Offline donor search, eligibility checks, Haversine distance math
- Data: In-memory mock data (resets on restart)
| Feature | Description |
|---|---|
| Command Center | One input triggers donors, inventory, and nearby hospitals with live Chain-of-Thought streaming. |
| Intelligence Dashboard | Ask plain English questions about hospital data. Gemma answers based on local data. |
| Compatibility Checker | Gemma explains why a donor is or isn't a match, with educational reasoning. |
| Donor Registration | Add new donors to the network. (Mock data, resets on restart). |
| Inventory Management | Update hospital blood stock levels. (Mock data, resets on restart). |
| Hospital Registration | Add new hospitals to the network. (Mock data, resets on restart). |
- Python 3.12 (3.13 is not supported)
- Ollama installed from ollama.com
- Clone this repository
- Clone the repository
git clone (https://github.com/Smart-Techie/Haemo_Agent_Network) cd HaemoAgent