Giter Club home page Giter Club logo

cell-nuclei-segmentation-using-cgan's Introduction

Cell Nuclei Segmentation from Histology images using cGAN

Overview

Data

The database consists of 50 512*512 image pairs and was split into 43 and 7 train and test sets (folders Slide_10 and Slide_11), respectively. In order to use the code in this repository, the histology images and corresponding segmentation maps need to be merged as shown below. alt text.

Baseline

The baseline architecture was U-Net: Convolutional Networks for Biomedical Image Segmentation. The model was trained for 200 epochs using binary crossentropy loss. The dice similarity coefficient was 0.637. Since the database is relatively small for training a deep neural network model, I tried on-the-fly data augmentation by randomly rotating and flipping both input image and the segmentation map during training. The performance improved by 9% as a result of this augmentation.

cGAN-based Segmentation

In order to improve the performance, I designed a conditional Generative Adversarial Network (cGAN) shown below. The generator design follows the encoder-decoder structure with skip-connections, as in U-Net. alt text The discriminator on the other hand uses patch information to resolve details in the prediction map. With cGAN, the dice similarity coefficient increases to 0.723.

Results

Qualitative

alt text

Quantitative

Model Dice Measure
Unet with no data augmentation (Baseline) 0.637
Unet with data augmentation 0.693
cGAN with data augmentation 0.723

Dependencies

  • Pytorch >= 0.4.0
  • Python >= 3.5
  • Numpy

To train and reproduce the results:

  • Set path to the training and validation data and the code.
  • Run main.py to train model using cGAN
  • Run unet_train.py to train model using Unet

For testing, run:

  • Set path to the trained model
  • Run test.py
  • Predicted maps from test image will be in /test_results

cell-nuclei-segmentation-using-cgan's People

Contributors

babajide07 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.