Skip to content

Transfer-learning & evaluation of pre-trained CNNs for classification of COVID-19 in chest X-ray images based on work from Deep-COVID and COVID-Net. Team project for CS 598 Deep Learning for Healthcare.

Notifications You must be signed in to change notification settings

amtoney524/cs598-team1149-final-project

Repository files navigation

cs598-team1149-final-project

This repository documents the code used to train and evaluate several pre-trained CNNs for classification of COVID-19 from publicly available chest X-ray images. The CNNs supported are ResNet18, ResNet50, SqueezeNet 1.1, DenseNet-121, Inception V3, COVID-Net, and COVID-Net combined with LSTM.

It builds on previous work from the Deep-COVID and COVID-Net papers.

COVID-19 Radiography Database

The data set used is a subset of the COVID-19 Radiography database, which may be downloaded from Kaggle

The number of chest X-ray images per category is as follows:

Split COVID Non-COVID
Train 1440 (2880 with augmentation) 4800
Validation 580 1199
Test 1200 3999

Training the Models

To train the desired model, edit the first code block in train.ipynb to specify which of the supported models you wish to train.

For example, if you wish to train DenseNet-121, you would update the value of model_name to "DenseNet121"

model_name = "DenseNet121"

Then, simply run the notebook to train the model, which will automatically use the images located in data/

Model Evaluation

We've also included a notebook for testing, test.ipynb, which will evaluate the models generated from the training as described above.

For each model, test.ipynb outputs:

  • Confusion matrix
  • ROC curve
  • Metrics: Sensitivity, Specificity, Precision, Accuracy, and F1 Score
  • Probability distribution

About

Transfer-learning & evaluation of pre-trained CNNs for classification of COVID-19 in chest X-ray images based on work from Deep-COVID and COVID-Net. Team project for CS 598 Deep Learning for Healthcare.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •