Skip to content

Image Classification (3 classes) using VGG-16 Deep Learning Model

Notifications You must be signed in to change notification settings

danielstankw/VGG16_Xray_Image_Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Multiclass image classification (X-ray)

1. Overview

This repositiory presents a very simple example of multiclass image classification.
The problem objective was to learn to distinguish 3 classes related to lung state based on X-ray images. The classes present in the dataset are: COVID-19, Viral Pneumonia, Normal.
For this problem the Vgg16 pre-trained model was used, achieving promising results. The dataset can be downloaded from Kaggle

Description of the Image

2. Model used

The used consists of VGG-16 pre-trained model with an addition of layers. The architecture overview is presented below:

Description of the Image

Description of the Image

3. Training

The training/ validation loss is presented below:

Description of the Image

The training/ validation accuracy is presented below:

Description of the Image

4. Results

Because the task is a classification task, accuracy is not the best metric for the task. To analyze the performance of the model the confusion matrix is plotted. Based on the obtained results it is noted that only 2 instances were missclassified.

Description of the Image

The missclassified images are displayed below:

Description of the Image

5. Possible improvements

To further improve the results a few additions can be made:

  • Data augmentation such as scalling, rotation and more (the code snippet is added to the notebook)
  • Optimizing F1 score instead of accuracy (the code snippet is added to the notebook)

About

Image Classification (3 classes) using VGG-16 Deep Learning Model

Topics

Resources

Stars

Watchers

Forks