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.
Dataset used for this assignment can be found here.
https://drive.google.com/open?id=1-HQQciKYfwAO3oH7ci6zhg45DduvkpnK
In this task FC layers are replaced with 2 custom layers and all feature layers are freezed then trained model on given dataset.
Train Accuracy: 0.9414 | F1 Score: 0.9508
Validation Accuracy: 0.8980 | F1 Score: 0.9133
Test Accuracy: 0.9553 | F1 Score: 0.9626
In this task FC layers are replaced with 2 custom layers and all feature layers are freezed then trained model on given dataset.
Train Accuracy: 0.9028 | F1 Score: 0.9204
Validation Accuracy: 0.8767 | F1 Score: 0.8976
Test Accuracy: 0.9360 | F1 Score: 0.9470
In this task FC layers are replaced with 2 custom layers and all feature layers are unfreezed then trained model on given dataset.
Train Accuracy: 0.9751 | F1 Score: 0.9789
Validation Accuracy: 0.9260 | F1 Score: 0.9373
Test Accuracy: 0.9793 | F1 Score: 0.9825
In this task FC layers are replaced with 2 custom layers and all feature layers are unfreezed then trained model on given dataset.
Train Accuracy: 0.9810 | F1 Score: 0.9840
Validation Accuracy: 0.9240 | F1 Score: 0.9360
Test Accuracy: 0.9713 | F1 Score: 0.9759
Weights of trained models can be found here
https://drive.google.com/drive/folders/1wUg1gCygCSDe23Gnr8DKXVBpzHwPYACF?usp=sharing
Dataset used for Part 2 can be found here.
https://drive.google.com/open?id=1eytbwaLQBv12psV8I-aMkIli9N3bf8nO
In this task two models VGG16 and ResNet18 were fully trained on given dataset using Cross Entropy Loss Function.
Train Accuracy: 97.03 | F1 Score: 97.17
Validation Accuracy: 96.13 | F1 Score: 96.34
Seperate confusion matrices are display for each class.
- For COVID-19 class 182 samples were predicted correct.
- For Normal class, 3913 samples were predicted correct.
- For Pneumonia class, 2120 samples were predicted corrrect.
Train Accuracy: 97.48 | F1 Score: 97.53
Validation Accuracy: 95.28 | F1 Score: 95.46
Seperate confusion matrices are display for each class.
- For COVID-19 class 195 samples were predicted correct.
- For Normal class, 3948 samples were predicted correct.
- For Pneumonia class, 2101 samples were predicted corrrect.
In this task two models VGG16 and ResNet18 were fully trained on given dataset using Focal Loss.
Train Accuracy: 95.83 | F1 Score: 95.96
Validation Accuracy: 95.30 | F1 Score: 95.58
Seperate confusion matrices are display for each class.
- For COVID-19 class 176 samples were predicted correct.
- For Normal class, 3879 samples were predicted correct.
- For Pneumonia class, 2079 samples were predicted corrrect.
Train Accuracy: 96.11 | F1 Score: 96.23
Validation Accuracy: 94.93 | F1 Score: 95.10
Seperate confusion matrices are display for each class.
- For COVID-19 class 191 samples were predicted correct.
- For Normal class, 3940 samples were predicted correct.
- For Pneumonia class, 2032 samples were predicted corrrect.
Weights of trained models for Part 2 can be found here
https://drive.google.com/drive/folders/1wUg1gCygCSDe23Gnr8DKXVBpzHwPYACF?usp=sharing