Med-X (Medical-X): Multi-Label Chest X-Ray Classification
Clinical multi-label thoracic imaging system trained across all 14 pathologies of NIH ChestX-ray14 with leak-free patient splits, backbone benchmarking, threshold calibration, and visual localization.
Interactive demo
X-ray and Grad-CAM
Drag between the image and its heatmap; 14 class scores sit against their thresholds.
Pipeline
- 01 · Data Hygiene
Patient-Level Leak-Free Splits
Partitioned all 112,120 radiographs strictly by patient ID so longitudinal scans never leak across train, validation, and test sets.
- 02 · Backbone Training
DenseNet121 vs. ConvNeXt-Base (AMP)
Trained multi-label BCE classification heads using PyTorch Automatic Mixed Precision (AMP) and tracked runs in Weights & Biases.
- 03 · Calibration
Per-Class Threshold Optimization
Tuned independent decision thresholds per thoracic pathology to mitigate severe prevalence skew across rare vs. common findings.
- 04 · Explainability & API
Grad-CAM + Multi-Dataset FastAPI Roadmap
Generated spatial activation overlays over lung fields and architected harmonization across NIH ChestX-ray14, CheXpert, and VinDr-CXR.
Engineering decisions
- Enforced strict patient-level split boundaries across 112,120 scans to ensure reported 0.851 validation macro-mean AUROC reflects true generalization.
- Paired DenseNet121 (clinical baseline) against ConvNeXt-Base under mixed-precision training to compare inductive bias vs. throughput on constrained GPUs.
- Replaced naive 0.5 global cutoffs with per-class calibrated thresholds and overlaid Grad-CAM heatmaps for clinician-auditable predictions.
Benchmarks
- Validation Macro-Mean AUROC
- 0.851
- Evaluated across all 14 NIH ChestX-ray14 pathologies
- Benchmark Volume
- 112,120 X-Rays
- Patient-level leak-free split protocol
- Backbones Benchmarked
- DenseNet121 · ConvNeXt-Base
- Tracked via Weights & Biases with AMP
- Active Roadmap
- NIH + CheXpert + VinDr-CXR
- Harmonized dataset serving via FastAPI