CheXNet for Classification and Localization of Thoracic Diseases

December 27, 2017 ยท View on GitHub

This is a Python3 (Pytorch) reimplementation of CheXNet. The model takes a chest X-ray image as input and outputs the probability of each thoracic disease along with a likelihood map of pathologies.

Dataset

The ChestX-ray14 dataset comprises 112,120 frontal-view chest X-ray images of 30,805 unique patients with 14 disease labels. To evaluate the model, we randomly split the dataset into training (70%), validation (10%) and test (20%) sets, following the work in paper. Partitioned image names and corresponding labels are placed under the directory labels.

Prerequisites

  • Python 3.4+
  • PyTorch and its dependencies

Usage

  1. Clone this repository.

  2. Download images of ChestX-ray14 from this released page and decompress them to the directory images.

  3. Specify one or multiple GPUs and run

    python model.py

Comparsion

We followed the training strategy described in the official paper, and a ten crop method is adopted both in validation and test. Compared with the original CheXNet, the per-class AUROC of our reproduced model is almost the same. We have also proposed a slightly-improved model which achieves a mean AUROC of 0.847 (v.s. 0.841 of the original CheXNet).

PathologyWang et al.Yao et al.CheXNetOur Implemented CheXNetOur Improved Model
Atelectasis0.7160.7720.80940.82940.8311
Cardiomegaly0.8070.9040.92480.91650.9220
Effusion0.7840.8590.86380.88700.8891
Infiltration0.6090.6950.73450.71430.7146
Mass0.7060.7920.86760.85970.8627
Nodule0.6710.7170.78020.78730.7883
Pneumonia0.6330.7130.76800.77450.7820
Pneumothorax0.8060.8410.88870.87260.8844
Consolidation0.7080.7880.79010.81420.8148
Edema0.8350.8820.88780.89320.8992
Emphysema0.8150.8290.93710.92540.9343
Fibrosis0.7690.7670.80470.83040.8385
Pleural Thickening0.7080.7650.80620.78310.7914
Hernia0.7670.9140.91640.91040.9206

Contributions

This work was collaboratively conducted by Xinyu Weng, Nan Zhuang, Jingjing Tian and Yingcheng Liu.

Our Team

All of us are students/interns of Machine Intelligence Lab, Institute of Computer Science & Technology, Peking University, directed by Prof. Yadong Mu (http://www.muyadong.com).