Back to work
CompletedMedical Computer Vision · Clinical AI0.851 Macro-Mean AUROC

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

Demo

X-ray and Grad-CAM

Drag between the image and its heatmap; 14 class scores sit against their thresholds.

Loading the demo…

Pipeline

  1. 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.

  2. 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.

  3. 03 · Calibration

    Per-Class Threshold Optimization

    Tuned independent decision thresholds per thoracic pathology to mitigate severe prevalence skew across rare vs. common findings.

  4. 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
NIH ChestX-ray14 Validation Benchmark
Scale: 0 – 1.0 AUROC
Med-X Macro-Mean AUROC (14 Pathologies)0.851
Patient-level leak-free split across 112,120 scans
Random Classifier Chance Baseline0.500
Theoretical uninformative binary baseline
Reference line: Random Classifier Baseline (0.500)
PyTorchDenseNet121ConvNeXt-BaseGrad-CAMWeights & BiasesFastAPI