Code Monkey home page Code Monkey logo

retina-optic-disc-detector's Introduction

Optic disc detection in a retina image

2016/2017

Author: Tomáš Sýkora

A new approach to optic disc detection in a retina image.

detector

A convolutional neural network to detect an optic disc in a retina image. It' accompilshed by predicting distance of a single image patch to the optic disc (x,y position - ground truth) and moving in this direction closer to the optic disc (until close to zero).

Example output:

preprocess

Preprocessing steps to obtain better visibility of the optic disc and the vein network:

0) Input image, 1) adaptive histogram equalization, 2) illumination correction, 3) adaptive histogram equalization

and train

To train the model, images from the STARE database were used. The images divided into patches (45x42) are sent to the CNN. The network consists of fully convolutional layers, output is distance of the patch to the optic disc (x, y directions):

After training on all patches, a 'fine tuning' step comes next. That means that the dataset in the last epoch of training consisted from a set half of which were random patches like the ones in the previous epochs, while the other half consisted of patches with a zero distance to the optic disc. This helped the network to better converge to zero and when the OD was found, the following predictions stayed close to zero (which was a problem without this fine tuning step).

In the future, lots of improvements can be done here, especially in the way the network is trained (on which datasets, how the patches looks like, what's the ratio of clean optic disc patches to the random ones etc.).

usage

  • detector.py --train        -trains the neural network
  • detector.py --detect     -detects the optic disc on one image
  • detector.py --finetune  -another training to make the network better converge to zero
  • detector.py --eval         -evaluate the network on a test dataset

retina-optic-disc-detector's People

Contributors

tomassykora 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.