Code Monkey home page Code Monkey logo

optic-disk-cup-segmentation's Introduction

Optic-Disk-Cup-Segmentation and Glaucoma Screening

Introduction

This repository contains the implementation of convolutional neural network for optic disk and cup segmentation and glaucoma screening from given fundus images


Segmentation Network

Preprocesing

Images were cropped to nearest square size and re-sized to a dimension of (512, 512). The different lighting conditions and intensity variations among images across various databases were circumvented by perform-ing normalization of the histogram using Contrast Limited Adaptive HistogramEqualization (CLAHE). 2 different images were generated by varying parameters such as clip value & window level while performing CLAHE. Along with CLAHE, spatial co-ordinates information were also provided to thenetwork. This additional information aided in learning relative features (i.e. disklocation with respect to fovea)


Network Architecture

57 layered deep network was used for segmentation of optic disk and cup. Network architecture is illustrated in figure below... pipeline


Results

Model predictions

Mask generation used for reducing false positives predicted by network... postprocessing

prediction Image on left shows raw data and image on left shows model predictions...


Classification Network

Preprocessing

The pixel level segmentation of the optic disk and optic cup was utilized to generate images of dimension (550, 550) centered around the optic disk. 6 different images were generated by varying parameters such as clip value & window level while performing CLAHE.

Network Architecture

A DenseNet201 & ResNet18 pre-trained on natural images forms the ensemble. The hindmost layer in the network i.e. the classification layer was modified to have 2 neurons. An additional convolutional layer was appended before both the pre-trained models to convert out 21 channel input to 3 channels. To make the network images accept inputs of variable dimension, the global average pooling layer was substituted with an adaptive average pooling layer.

Results

The proposed classification network achieved a sensitivity of 0.75 at a specificity of 0.85 and 0.856 area under the ROC curve.

How to use?


git clone https://github.com/koriavinash1/Optic-Disk-Cup-Segmentation.git
cd Optic-Disk-Cup-Segmentation
pip install -r requirements.txt


Folder structure

./src consists all source codes

./src/segmentation code for all segmentation work

./src/classification code for glaucoma screening

Tune parameters and run Main.py for executing task


Publication

Our paper is available on arXiv(https://arxiv.org/pdf/1809.05216.pdf)

Please cite with the following Bibtex code:

@article{agrawal2018enhanced,
  title={Enhanced Optic Disk and Cup Segmentation with Glaucoma Screening from Fundus Images using Position encoded CNNs},
  author={Agrawal, Vismay and Kori, Avinash and Alex, Varghese and Krishnamurthi, Ganapathy},
  journal={arXiv preprint arXiv:1809.05216},
  year={2018}
}

If any comments or issues, pull requests/issues are Welcomed....

Thankyou

Contact

optic-disk-cup-segmentation's People

Contributors

vismayagrawal avatar

Watchers

James Cloos 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.