Skip to content

Covolutional Neural Network for gastrointestinal tract images multi class classification.

Notifications You must be signed in to change notification settings

alexandrekleppa/CNN-for-gastrointestinal-tract-images-multiclass-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Covolutional Neural Network for gastrointestinal tract images multi class classification.

The aim of this repository is identify and classify 8 different types of images of gastrointestinal tract medical dataset. With 40 epochs, a validation accuracy of 77%.

The classes for classification:

  • Dyed and lifted polyps;
  • Dyed resection margins;
  • Esophagits;
  • Normal cecum;
  • Normal pylorus;
  • Normal z-line;
  • Polyps;
  • Ulcerative colits.

The figure bellow shows an example of the dataset

Dataset example:

example_dataset

Prerequisites

A prerequisite is the previous installation of the follow libraries in the Python environment that the code is being run.

Libraries:

  • Keras
  • Tensorflow
  • Numpy

TO DO

First of all download the dataset at (https://datasets.simula.no/kvasir/). For this code, the dataset "Kvasir Dataset v2" was used. Then create two separate folders (one for testing and another one from training) with all the eigth classes inside both of them. Divide the total dataset in 80% for training and 20% for testing.

Once the datset is separated, the code xcnn_gd can be run for training and validating the model. If the desired accuracy is obtained, the model can be saved and used. Nevertheless, this repository already contains a saved model ('model.h5') already trained and ready for classifying with a validation accuracy of 84%.

About

Covolutional Neural Network for gastrointestinal tract images multi class classification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages