Skip to content

Here's an example of convolutional neural network with UNET architecture that's used for segmentation of an lung X-ray medical images of COVID-19 patients.

Notifications You must be signed in to change notification settings

trsavi/UNET-segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UNET-segmentation

Here's an example of convolutional neural network with UNET architecture that's used for segmentation of an lung X-ray medical images of COVID-19 patients.

UNET Architecture

This is general architecture with parameters used for this problem (there is batch size of 2 missing)

Training and validation data

For this segmentation task I had only 190 images and related mask and I splitted this data into training, validation and test set (test set contained only one image for prediction in the end), train:validation -> 80:20.

The power of UNET architecture is noticable with a small datasets like this one. It is fast and reliable and provides a great results.

Evaluation

Training\Validaion and accuracy (dice coefficient) plot

For segmentation problems we can use the following metrics and losses:

  • Pixel accuracy / Binary-crossentropy loss function
  • Jaccard index / IoU loss
  • Dice coefficient / Dice loss

Since pixel accuracy isn't suited for this problem, we will take into consideration the other two metrics. (there is implementation of pixel accuracy in the code itself)

The results were:

Jaccard coeff -> 88%

Dice coefficient -> 87%

References and original code (mine is combination and modification of few examples) for this problem can be found on these links:

About

Here's an example of convolutional neural network with UNET architecture that's used for segmentation of an lung X-ray medical images of COVID-19 patients.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages