MedVision Assist
A Clinical Decision Support System for radiologists that drafts 90%-complete preliminary imaging reports using a dual-backend architecture: cloud Gemini for any modality, local ONNX for chest X-rays with zero network dependency.
The Clinical Problem
"Radiologist burnout is a global crisis. AI can help draft reports, but black-box models that can't distinguish a chest X-ray from a blurry photo are a liability, not an assistant."
How It Works
1. Image Intake & Validation
- →Non-medical image detection via greyscale saturation heuristic
- →CT slice detection via circular FOV heuristic
- →Stateless processing: images processed in memory, never stored
2. Backend Routing
- →Local CXR: 28MB ONNX DenseNet (TorchXRayVision) — chest X-rays only
- →Cloud Gemini: Google gemini-2.0-flash — any modality (CT, MRI, etc.)
- →Fallback: Local backend needs no API key, no network, no GPU
3. Structured Report Generation
- →RADIOLOGY_JSON_SCHEMA: enforces valid output with required fields
- →Modality identification + anatomical structure recognition
- →Per-structure findings with severity: none/mild/moderate/severe/critical
- →Impression summary + recommendation + confidence level
4. VLM-Guard Validation
- →NonMedicalImageRule: blocks non-medical images at the gate
- →LowConfidenceRule: flags low-confidence reports for senior review
- →SeverityConsistencyRule: catches critical-finding vs 'normal' contradictions
5. Report Display & Disclaimer
- →Structured report with color-coded severity indicators
- →Research prototype disclaimer on every report
- →Human-in-the-loop: draft-first workflow for physician review
Safety & Trust
Every output passes through deterministic, auditable guardrails before reaching the user. No black boxes. No unseen failures.
Blocks non-medical images at upload time using a greyscale saturation heuristic. If an image doesn't look like a radiograph, it's rejected before any AI processing.
When the model produces a report with low confidence, the system flags it prominently and recommends senior radiologist review before clinical use.
Automatically corrects contradictions between critical findings and a 'normal' impression summary — ensuring the report conclusion matches the evidence.
About This Project
MedVision Assist tackles radiologist burnout by automating the first 90% of imaging report drafting. The system's key innovation is its dual-backend architecture: for chest X-rays, a tiny 28MB ONNX model runs locally with zero network dependency — no API key, no PyTorch at runtime, no privacy concerns. For any other modality (CT, MRI, PET), Google's Gemini 2.0 Flash handles the inference. Both backends produce structured radiology reports following a strict schema: Modality → Findings (per-structure with severity) → Impression → Recommendation → Confidence Level. Every report is validated by three VLM-Guard rules before display: NonMedicalImageRule blocks non-medical uploads, LowConfidenceRule flags uncertain findings for senior review, and SeverityConsistencyRule catches contradictions between critical findings and a 'normal' summary.
Key Features
- Dual-backend architecture: cloud Gemini + local ONNX for privacy
- Local CXR backend: 28MB model, no API key, no network, no GPU needed
- Strict structured reporting schema (Modality → Findings → Impression)
- Per-structure findings with severity scoring (normal to critical)
- Non-medical image detection and CT modality routing
- VLM-Guard validation pipeline (3 radiology-specific rules)
- Stateless: zero PHI stored, images processed in memory only
- YouTube demo + live Streamlit app available
Impact
- →Addresses radiologist burnout through AI-assisted report drafting
- →90%-complete draft reports reduce cognitive load on radiologists
- →Dual-backend design enables use in both connected and isolated settings
- →Open source: fully auditable, no vendor lock-in
- →Privacy-first: local CXR backend means zero data leaves the machine
Technology Stack
Building a clinical AI system of your own?
The Clinical AI Reliability Audit applies the same kind of evaluation and safety engineering to your system: architecture and risk discovery, evaluation and root cause analysis, and targeted engineering improvements. For a working healthcare app built with AI coding tools, the Clinical Prototype Readiness Review is the smaller starting point.
Related Projects
This project is part of a connected ecosystem. Each piece reinforces the same mission: safe, trustworthy clinical AI.
VLM-Guard
A composable rule-based verification layer that catches physically impossible, biologically inconsis...
HeartSafe RAG
A retrieve-or-refuse Retrieval-Augmented Generation system for heart failure clinical decision suppo...
NTD-Assist
An offline multimodal AI prototype for microscopy-based NTD screening, with 12 rule-based biological...