Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.14.0
metadata
title: AI Diagnostics Agent - Early Cancer Discovery
emoji: π₯
colorFrom: purple
colorTo: pink
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
π₯ AI Diagnostics Agent: Early Cancer Discovery (Demo)
β οΈ Research Demo Only β Not for Clinical Use
π Overview
AI Diagnostics (POC) is a research project designed to demonstrate early cancer risk screening using AI-driven imaging + lab report synthesis.
It integrates:
- πΌοΈ Imaging Agent β Detects lung abnormalities (mass, opacity, nodules) from chest X-rays.
- π§ͺ Lab Agent β Parses tumor markers (PSA, CA-125, AFP) and highlights abnormal results.
- π§ AI Coordinator β Generates diagnostic summaries powered by Moonshot.ai with a local T5 fallback for offline use.
- π₯ Heatmap Overlay β Highlights model-identified lung regions for interpretability.
βοΈ Features
| Agent | Description |
|---|---|
| Imaging Agent | TorchXRayVision + PyTorch for lung-related cancer indicators |
| Lab Agent | Extracts structured tumor marker insights |
| Coordinator | Combines both into concise AI summaries (Moonshot.ai LLM) |
| Fallback AI | Local text generation using T5-small if network/API fails |
| Heatmap Overlay | Visual interpretability of X-ray activations |
| Gradio UI | Easy drag-and-drop web interface for demos |
π§ How It Works
- Upload or select a sample chest X-ray.
- Paste lab or MRI/CT report text.
- The AI analyzes the image + text.
- Results are combined into a natural-language diagnostic summary.
π Run Locally
git clone https://github.com/<your-org>/ai_diagnostics.git
cd ai_diagnostics
pip install -r requirements.txt
python app.py