Skip to content

This repository contains code and results for COVID-19 classification assignment by Deep Learning Spring 2020 course offered at Information Technology University, Lahore, Pakistan. This assignment is only for learning purposes and is not intended to be used for clinical purposes.

Notifications You must be signed in to change notification settings

usama-muneer/msds19077_COVID19_DLSpring2020

Repository files navigation

msds19077_COVID19_DLSpring2020

This repository contains code and results for COVID-19 classification assignment by Deep Learning Spring 2020 course offered at Information Technology University, Lahore, Pakistan. This assignment is only for learning purposes and is not intended to be used for clinical purposes.

PART 1: Dataset

Dataset used for this assignment can be found using link blow:

Task 1: Load pretrained CNN model and fine-tune FC Layers

Our task is to fine-tune Fully Connected layers of ResNet-18 and VGG-16 pretrained models by adding two custom layes and freezed other layer then train model on given dataset. And the results are given blow:

ResNet-18 Results after find-tune FC Layers:



VGG-16 Results after find-tune Classifier:

Task 2: Fine-tune the CNN and FC layers of the network

Our task is to fine-tune Fully Connected and classifier layers of ResNet-18 and VGG-16 pretrained models by unfreezing different layes then train model on given dataset. And the results are given blow:



ResNet-18 Results after unfreezing all layers:



VGG-16 Results after unfreezing all layers:

Trained Models:

Trained weights for this dataset can be found using this link:

Link

PART 2: Dataset

Dataset used for this assignment can be found using this link: Link

Task:

In this task we are performing multi-class, multi-label classification by implementing focal loss for detecting infections such as COVID-19 among X-Ray images.

Experiment 1:

ResNet-18 with Binary Cross Entropy loss with logistics:
Confusion Matrix for validation data

Experiment 2:

VGG-16 with Binary Cross Entropy loss with logistics:


Confusion Matrix for validation data

Experiment 3:

ResNet-18 with Focal Loss:


Confusion Matrix for validation data

Experiment 4:

VGG-16 with Focal Loss:


Confusion Matrix for validation data

Comparison:

If we compare all model results then we can clearly see that VGG-16 with binary cross entropy with logistic loss give us good results. The best model and accuracy parameters for this task is

Trained Model:

Trained weights for this dataset can be found using this link:Link

About

This repository contains code and results for COVID-19 classification assignment by Deep Learning Spring 2020 course offered at Information Technology University, Lahore, Pakistan. This assignment is only for learning purposes and is not intended to be used for clinical purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published