chexvision-densenet / README.md
arudaev's picture
docs: add presentation deck link
f38f038 verified
metadata
license: mit
language:
  - en
library_name: pytorch
pipeline_tag: image-classification
tags:
  - chexvision
  - medical-imaging
  - chest-xray
  - radiology
  - pytorch
  - multi-label-classification
datasets:
  - HlexNC/chest-xray-14-320

CheXVision-DenseNet

Project Resources

CheXVision β€” Deep Learning & Big Data university project. 14-class chest X-ray pathology detection + binary normal/abnormal classification on the NIH Chest X-ray14 dataset (112,120 images).

Architecture

DenseNet Architecture

Fine-Tuning Strategy

Fine-Tuning Strategy

Training Pipeline

Training Pipeline

Training Metrics

  • Best validation macro AUC-ROC: 0.8459
  • Best validation binary AUC-ROC: 0.7867
  • Best validation binary F1: 0.6736
  • Best checkpoint epoch: 18

Per-Class AUC-ROC at Best Epoch

Pathology AUC-ROC Visual
Atelectasis 0.8334 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘
Cardiomegaly 0.9010 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘
Effusion 0.8873 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘
Infiltration 0.7133 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘
Mass 0.8756 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘
Nodule 0.8084 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘
Pneumonia 0.7397 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘
Pneumothorax 0.8705 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘
Consolidation 0.8063 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘
Edema 0.9255 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘
Emphysema 0.9107 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘
Fibrosis 0.8085 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘
Pleural_Thickening 0.8377 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘
Hernia 0.9242 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘

Training Configuration

  • Repository: HlexNC/chexvision-densenet
  • Dataset: HlexNC/chest-xray-14-320 Β· revision 44443e6ee968b3c6094b63f14a27698c40b50680
  • Architecture: DenseNet-121 transfer learning with a shared feature layer and dual classification heads.
  • Platform: Kaggle GPU kernel (NVIDIA T4 / P100)
  • Batch size: 24 Γ— grad_accum 4 = effective batch 96
  • AMP (fp16): enabled
  • Optimizer: AdamW Β· Scheduler: CosineAnnealingLR
  • Epochs configured: 60 Β· Early stop patience: 15

Intended Use

This model is intended for research and educational work on automated chest X-ray pathology detection. It outputs two predictions per image:

  1. Multi-label scores β€” independent sigmoid probability for each of 14 NIH pathologies
  2. Binary score β€” sigmoid probability of any abnormality (Normal vs. Abnormal)

Limitations

  • Not validated for clinical use. Predictions must not substitute professional medical judgment.
  • Trained on NIH Chest X-ray14, which contains noisy radiologist annotations (patient-level labels, not lesion-level).
  • Performance degrades on images from equipment, patient populations, or preprocessing pipelines that differ from the NIH training distribution.
  • Reported AUC metrics are on the validation split, not the held-out test set.

CheXNet Benchmark Context

CheXNet (Rajpurkar et al., 2017) β€” the seminal paper establishing DenseNet-121 for chest X-ray classification β€” reported 0.841 macro AUC-ROC on a comparable split of this dataset. CheXVision-DenseNet matches this benchmark. See the CheXVision demo for live inference.

Citation

@misc{chexvision2026,
  title={CheXVision: Dual-Task Chest X-ray Classification with Custom CNN and DenseNet-121},
  author={BIG D(ATA) Team},
  year={2026},
  howpublished={\url{https://huggingface.co/HlexNC/chexvision-densenet}}
}