Git Product home page Git Product logo

luna2016-lung-nodule-detection's Introduction

Luna2016-Lung-Nodule-Detection

Course Project for Bio Medical Imaging: Detecting Lung Nodules from CT Scans

This project was inspired by the LUNA 2016 Grand Challenge that uses low-dose CT scans for pulmonary nodule detection in lung scans.

We use a U-net Convolutional Neural Network for lung nodule detection.

Running The Code

==================================

Dependencies

Preprocess

  • SimpleITK
  • numpy
  • csv
  • glob
  • pandas
  • scikit-learn
  • scikit-image

UNET

  • theano
  • keras

Preprocessing

Before inputting the CT images into the U-net architecture, it is important to reduce the domain size for more accurate results. We perform a variety of preprocessing steps to segment out the ROI (the lungs) from the surrounding regions of bones and fatty tissues. These include

  • Binary Thresholding
  • Selecting the two largest connected regions
  • Erosion to separate nodules attached to blood vessels
  • Dilation to keep nodules attached to the lung walls
  • Filling holes by dilation

Network


LUNA_unet.py contains the code for the actual model. The following arguments can be passed to the network.

-batch_size     (default 2,batch size)
-lr      		(default 0.001, learning rate)
-load_weights	(default False, load pre-existing model)
-filter_width	(default 3, The default filter width)
-stride			(default 3, The stride of the filters)
-model_file		(default '', The path to the model file )
-save_prefix	(default model prefix, The prefix of the saving of models)

The model expects as inputs the segmented lung images (512x512) as inputs (generated in preprocessing steps) and generates the mask of the nodule (512x512). The loss used is the dice coefficient loss between the predicted mask and the gold mask. Model weights are saved using the following convention: model__script_on_epoch_ + epoch number + _lr_ + lr + _WITH_STRIDES_ + filter stride + _FILTER_WIDTH_ + filter width + .weights

Results


The following are some results we obtain

alt text alt text

luna2016-lung-nodule-detection's People

Contributors

shreyaspadhy avatar codedecde avatar

Watchers

James Cloos avatar Xiuyuan Xu 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.