File size: 2,408 Bytes
3d69e45
fe25e0b
 
 
 
 
 
 
 
 
3d69e45
 
55e9918
3d69e45
fe25e0b
 
3d69e45
fe25e0b
 
3d69e45
 
 
fe25e0b
3d69e45
fe25e0b
3d69e45
fe25e0b
3d69e45
 
 
fe25e0b
3d69e45
fe25e0b
3d69e45
fe25e0b
3d69e45
fe25e0b
3d69e45
103e4ca
8961524
 
3d69e45
 
fe25e0b
3d69e45
fe25e0b
 
 
 
 
 
 
3d69e45
fe25e0b
3d69e45
 
 
fe25e0b
3d69e45
fe25e0b
 
 
 
 
 
 
 
3d69e45
 
 
fe25e0b
3d69e45
fe25e0b
 
 
 
 
3d69e45
 
 
fe25e0b
3d69e45
fe25e0b
 
3d69e45
 
 
fe25e0b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
license: mit
language:
- en
base_model:
- Qwen/Qwen3.6-35B-A3B
- Qwen/Qwen3.6-27B
pipeline_tag: image-to-text
tags:
- medical
---



# 🏥 MediAgent
### Autonomous Multi-Agent Medical Imaging Analysis — AMD Instinct MI300X

> **AMD Developer Hackathon 2026 · Vision & Multimodal AI Track**
> Built by Ramyar — Sulaymaniyah, Iraq

---

## What It Does

MediAgent runs a 5-agent AI pipeline that analyzes medical images (X-ray, MRI, CT, DICOM) and generates formal radiology reports with differential diagnoses, ICD-10 codes, and FHIR R4 export — entirely on AMD hardware.

**No cloud APIs. No OpenAI. No Nvidia. Pure AMD MI300X + ROCm + vLLM.**

---

## ⚠️ Demo Mode

This Space runs in **demo mode** — the full pipeline UI works and all 5 agents animate live, but no real inference is performed since the AMD Instinct MI300X backend is not available on HuggingFace's free hardware.

**See the video demo for live inference on real AMD hardware.**

Live inference requires: AMD Instinct MI300X · ROCm · vLLM · Qwen multimodal

https://youtu.be/MAd9t_Q7fq0


---

## The 5-Agent Pipeline

| Agent | Role |
|---|---|
| **INTAKE** | Validates input, normalizes clinical language, safety triage |
| **VISION** | Multimodal image analysis via Qwen on AMD MI300X |
| **RESEARCH** | KB cross-reference, differential diagnoses, ICD-10 codes |
| **REPORT** | ACR/NICE format radiology report synthesis |
| **CRITIC** | QA peer-review, quality scoring, disclaimer enforcement |

INTAKE + VISION run in **parallel** to minimize latency.

---

## Key Features

- Real-time SSE streaming pipeline with per-agent timers
- DICOM (.dcm) file support with metadata extraction
- 15-condition medical knowledge base with ICD-10 mapping
- FHIR R4 DiagnosticReport export
- Client-side PDF export
- Post-report clinical Q&A (ClinicalAdvisorAgent)
- Live AMD GPU metrics (util, VRAM, temp, power)
- Hard-enforced clinical safety rules

---

## Tech Stack

- **GPU:** AMD Instinct MI300X
- **GPU Software:** ROCm
- **Inference:** vLLM (ROCm build) + Qwen multimodal
- **Backend:** FastAPI + Uvicorn
- **Frontend:** Vanilla JS + Tailwind CSS + Chart.js + SSE

---

## GitHub

Full source code, architecture docs, and README:
**https://github.com/Ramyar2007/mediagent**

---

*This system is a decision support tool. All outputs must be reviewed by a licensed radiologist before any clinical decisions are made.*