Alex Rudaev commited on
Style diagram images with centred HTML + width constraints
Browse files- README.md +111 -167
- arch_densenet.png +0 -0
- pipeline_training.png +2 -2
README.md
CHANGED
|
@@ -1,167 +1,111 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
language:
|
| 4 |
-
- en
|
| 5 |
-
library_name: pytorch
|
| 6 |
-
pipeline_tag: image-classification
|
| 7 |
-
tags:
|
| 8 |
-
- chexvision
|
| 9 |
-
- medical-imaging
|
| 10 |
-
- chest-xray
|
| 11 |
-
- radiology
|
| 12 |
-
- pytorch
|
| 13 |
-
- multi-label-classification
|
| 14 |
-
datasets:
|
| 15 |
-
- HlexNC/chest-xray-14-320
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
# CheXVision-DenseNet
|
| 19 |
-
|
| 20 |
-
> **CheXVision** β Deep Learning & Big Data university project.
|
| 21 |
-
> 14-class chest X-ray pathology detection + binary normal/abnormal classification
|
| 22 |
-
> on the NIH Chest X-ray14 dataset (112,120 images).
|
| 23 |
-
|
| 24 |
-
## Architecture
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
##
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
```
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
| Effusion | `0.8873` | `ββββββββββ` |
|
| 113 |
-
| Infiltration | `0.7133` | `ββββββββββ` |
|
| 114 |
-
| Mass | `0.8756` | `ββββββββββ` |
|
| 115 |
-
| Nodule | `0.8084` | `ββββββββββ` |
|
| 116 |
-
| Pneumonia | `0.7397` | `ββββββββββ` |
|
| 117 |
-
| Pneumothorax | `0.8705` | `ββββββββββ` |
|
| 118 |
-
| Consolidation | `0.8063` | `ββββββββββ` |
|
| 119 |
-
| Edema | `0.9255` | `ββββββββββ` |
|
| 120 |
-
| Emphysema | `0.9107` | `ββββββββββ` |
|
| 121 |
-
| Fibrosis | `0.8085` | `ββββββββββ` |
|
| 122 |
-
| Pleural_Thickening | `0.8377` | `ββββββββββ` |
|
| 123 |
-
| Hernia | `0.9242` | `ββββββββββ` |
|
| 124 |
-
|
| 125 |
-
## Training Configuration
|
| 126 |
-
|
| 127 |
-
- Repository: `HlexNC/chexvision-densenet`
|
| 128 |
-
- Dataset: [HlexNC/chest-xray-14-320](https://huggingface.co/datasets/HlexNC/chest-xray-14-320) Β· revision `44443e6ee968b3c6094b63f14a27698c40b50680`
|
| 129 |
-
- Architecture: DenseNet-121 transfer learning with a shared feature layer and dual classification heads.
|
| 130 |
-
- Platform: Kaggle GPU kernel (NVIDIA T4 / P100)
|
| 131 |
-
- Batch size: `24` Γ grad_accum `4` = **effective batch `96`**
|
| 132 |
-
- AMP (fp16): `enabled`
|
| 133 |
-
- Optimizer: AdamW Β· Scheduler: CosineAnnealingLR
|
| 134 |
-
- Epochs configured: `60` Β· Early stop patience: `15`
|
| 135 |
-
|
| 136 |
-
## Intended Use
|
| 137 |
-
|
| 138 |
-
This model is intended for research and educational work on automated chest X-ray pathology detection.
|
| 139 |
-
It outputs two predictions per image:
|
| 140 |
-
1. **Multi-label scores** β independent sigmoid probability for each of 14 NIH pathologies
|
| 141 |
-
2. **Binary score** β sigmoid probability of any abnormality (Normal vs. Abnormal)
|
| 142 |
-
|
| 143 |
-
## Limitations
|
| 144 |
-
|
| 145 |
-
- Not validated for clinical use. Predictions must not substitute professional medical judgment.
|
| 146 |
-
- Trained on NIH Chest X-ray14, which contains noisy radiologist annotations (patient-level labels, not lesion-level).
|
| 147 |
-
- Performance degrades on images from equipment, patient populations, or preprocessing pipelines
|
| 148 |
-
that differ from the NIH training distribution.
|
| 149 |
-
- Reported AUC metrics are on the validation split, not the held-out test set.
|
| 150 |
-
|
| 151 |
-
## CheXNet Benchmark Context
|
| 152 |
-
|
| 153 |
-
CheXNet (Rajpurkar et al., 2017) β the seminal paper establishing DenseNet-121 for chest X-ray
|
| 154 |
-
classification β reported **0.841 macro AUC-ROC** on a comparable split of this dataset.
|
| 155 |
-
CheXVision-DenseNet matches this benchmark. See the
|
| 156 |
-
[CheXVision demo](https://huggingface.co/spaces/HlexNC/chexvision-demo) for live inference.
|
| 157 |
-
|
| 158 |
-
## Citation
|
| 159 |
-
|
| 160 |
-
```bibtex
|
| 161 |
-
@misc{chexvision2026,
|
| 162 |
-
title={CheXVision: Dual-Task Chest X-ray Classification with Custom CNN and DenseNet-121},
|
| 163 |
-
author={BIG D(ATA) Team},
|
| 164 |
-
year={2026},
|
| 165 |
-
howpublished={\url{https://huggingface.co/HlexNC/chexvision-densenet}}
|
| 166 |
-
}
|
| 167 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
library_name: pytorch
|
| 6 |
+
pipeline_tag: image-classification
|
| 7 |
+
tags:
|
| 8 |
+
- chexvision
|
| 9 |
+
- medical-imaging
|
| 10 |
+
- chest-xray
|
| 11 |
+
- radiology
|
| 12 |
+
- pytorch
|
| 13 |
+
- multi-label-classification
|
| 14 |
+
datasets:
|
| 15 |
+
- HlexNC/chest-xray-14-320
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# CheXVision-DenseNet
|
| 19 |
+
|
| 20 |
+
> **CheXVision** β Deep Learning & Big Data university project.
|
| 21 |
+
> 14-class chest X-ray pathology detection + binary normal/abnormal classification
|
| 22 |
+
> on the NIH Chest X-ray14 dataset (112,120 images).
|
| 23 |
+
|
| 24 |
+
## Architecture
|
| 25 |
+
|
| 26 |
+
<p align="center">
|
| 27 |
+
<img src="https://huggingface.co/HlexNC/chexvision-densenet/resolve/main/arch_densenet.png" width="88%" alt="DenseNet Architecture"/>
|
| 28 |
+
</p>
|
| 29 |
+
|
| 30 |
+
## Fine-Tuning Strategy
|
| 31 |
+
|
| 32 |
+
<p align="center">
|
| 33 |
+
<img src="https://huggingface.co/HlexNC/chexvision-densenet/resolve/main/finetuning_densenet.png" width="62%" alt="Fine-Tuning Strategy"/>
|
| 34 |
+
</p>
|
| 35 |
+
|
| 36 |
+
## Training Pipeline
|
| 37 |
+
|
| 38 |
+
<p align="center">
|
| 39 |
+
<img src="https://huggingface.co/HlexNC/chexvision-densenet/resolve/main/pipeline_training.png" width="42%" alt="Training Pipeline"/>
|
| 40 |
+
</p>
|
| 41 |
+
|
| 42 |
+
## Training Metrics
|
| 43 |
+
|
| 44 |
+
- Best validation macro AUC-ROC: `0.8459`
|
| 45 |
+
- Best validation binary AUC-ROC: `0.7867`
|
| 46 |
+
- Best validation binary F1: `0.6736`
|
| 47 |
+
- Best checkpoint epoch: `18`
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
## Per-Class AUC-ROC at Best Epoch
|
| 51 |
+
|
| 52 |
+
| Pathology | AUC-ROC | Visual |
|
| 53 |
+
|----------------------|----------|---------------|
|
| 54 |
+
| Atelectasis | `0.8334` | `ββββββββββ` |
|
| 55 |
+
| Cardiomegaly | `0.9010` | `ββββββββββ` |
|
| 56 |
+
| Effusion | `0.8873` | `ββββββββββ` |
|
| 57 |
+
| Infiltration | `0.7133` | `ββββββββββ` |
|
| 58 |
+
| Mass | `0.8756` | `ββββββββββ` |
|
| 59 |
+
| Nodule | `0.8084` | `ββββββββββ` |
|
| 60 |
+
| Pneumonia | `0.7397` | `ββββββββββ` |
|
| 61 |
+
| Pneumothorax | `0.8705` | `ββββββββββ` |
|
| 62 |
+
| Consolidation | `0.8063` | `ββββββββββ` |
|
| 63 |
+
| Edema | `0.9255` | `ββββββββββ` |
|
| 64 |
+
| Emphysema | `0.9107` | `ββββββββββ` |
|
| 65 |
+
| Fibrosis | `0.8085` | `ββββββββββ` |
|
| 66 |
+
| Pleural_Thickening | `0.8377` | `ββββββββββ` |
|
| 67 |
+
| Hernia | `0.9242` | `ββββββββββ` |
|
| 68 |
+
|
| 69 |
+
## Training Configuration
|
| 70 |
+
|
| 71 |
+
- Repository: `HlexNC/chexvision-densenet`
|
| 72 |
+
- Dataset: [HlexNC/chest-xray-14-320](https://huggingface.co/datasets/HlexNC/chest-xray-14-320) Β· revision `44443e6ee968b3c6094b63f14a27698c40b50680`
|
| 73 |
+
- Architecture: DenseNet-121 transfer learning with a shared feature layer and dual classification heads.
|
| 74 |
+
- Platform: Kaggle GPU kernel (NVIDIA T4 / P100)
|
| 75 |
+
- Batch size: `24` Γ grad_accum `4` = **effective batch `96`**
|
| 76 |
+
- AMP (fp16): `enabled`
|
| 77 |
+
- Optimizer: AdamW Β· Scheduler: CosineAnnealingLR
|
| 78 |
+
- Epochs configured: `60` Β· Early stop patience: `15`
|
| 79 |
+
|
| 80 |
+
## Intended Use
|
| 81 |
+
|
| 82 |
+
This model is intended for research and educational work on automated chest X-ray pathology detection.
|
| 83 |
+
It outputs two predictions per image:
|
| 84 |
+
1. **Multi-label scores** β independent sigmoid probability for each of 14 NIH pathologies
|
| 85 |
+
2. **Binary score** β sigmoid probability of any abnormality (Normal vs. Abnormal)
|
| 86 |
+
|
| 87 |
+
## Limitations
|
| 88 |
+
|
| 89 |
+
- Not validated for clinical use. Predictions must not substitute professional medical judgment.
|
| 90 |
+
- Trained on NIH Chest X-ray14, which contains noisy radiologist annotations (patient-level labels, not lesion-level).
|
| 91 |
+
- Performance degrades on images from equipment, patient populations, or preprocessing pipelines
|
| 92 |
+
that differ from the NIH training distribution.
|
| 93 |
+
- Reported AUC metrics are on the validation split, not the held-out test set.
|
| 94 |
+
|
| 95 |
+
## CheXNet Benchmark Context
|
| 96 |
+
|
| 97 |
+
CheXNet (Rajpurkar et al., 2017) β the seminal paper establishing DenseNet-121 for chest X-ray
|
| 98 |
+
classification β reported **0.841 macro AUC-ROC** on a comparable split of this dataset.
|
| 99 |
+
CheXVision-DenseNet matches this benchmark. See the
|
| 100 |
+
[CheXVision demo](https://huggingface.co/spaces/HlexNC/chexvision-demo) for live inference.
|
| 101 |
+
|
| 102 |
+
## Citation
|
| 103 |
+
|
| 104 |
+
```bibtex
|
| 105 |
+
@misc{chexvision2026,
|
| 106 |
+
title={CheXVision: Dual-Task Chest X-ray Classification with Custom CNN and DenseNet-121},
|
| 107 |
+
author={BIG D(ATA) Team},
|
| 108 |
+
year={2026},
|
| 109 |
+
howpublished={\url{https://huggingface.co/HlexNC/chexvision-densenet}}
|
| 110 |
+
}
|
| 111 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
arch_densenet.png
CHANGED
|
|
pipeline_training.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|