Git Product home page Git Product logo

fastai-colon-polyps's Introduction

Fastai-Colon-Polyps

Classification of polyps in colonoscopy images using Fastai deep learning

In 2018, I published a github repository CNN4Polyps about colonoscopy polyps detection (classification + localization into an image) with CNNs (https://github.com/muntisa/Colonoscopy-polyps-detection-with-CNNs) using Keras. I demonstrated that simple CNNs or VGG16 transfer learning could be used in only few minutes (on a GPU) to create good classifiers able to detect a polyp in colonoscopy images.

Reading twitts these days, I found a great presentation of Jeremy Howard about "Future of Individualized Medicine 2019" (https://twitter.com/jeremyphoward/status/1112810731773190144). During the presentation, I was suprized to find that on Modelzoo there is no shared pre-trained network even if there are a lot of public medical imaging dataset and easy tools for DL such as Fastai & Colab. Therefore, I decide to spend one hour to adapt the Fast.ai Lesson 1 notebook (https://course.fast.ai/videos/?lesson=1) for my dataset. To be faster, I used Google Colab (https://colab.research.google.com) with GPU support.

Fastai-Colon-Polyps-Flow

The current dataset was generated with the previous project CNN4Polyps starting from a public datase: 910 images for training and 302 images for validation. All the models are saved in the project root, so you can easy load them and test your data.

The current script demonstrated the ability to create a very accurate classifier for medical imaging with an accuracy of 0.99 using resnet50 transfer learning fine tuning. Due to the github file dimension limitation, there are open links to the saved networks in my public gdrive.

How to use

  1. Predict colon polyps in one image from test folder: Fastai-Colon-Polyps_Predict.ipynb.
  2. Re-train your better model using the current dataset: Fastai-Colon-Polyps.ipynb.

Web tool implementation

The best model was implemented as a web app using Flask: https://github.com/muntisa/Colon-Polyps-Fastai-App.

You can directly use the already created docker from https://hub.docker.com/repository/docker/muntisa/colon-polyps-fastai.

Run the local docker with the following command:

docker run -p 5000:5000 colon-polyps-fastai

Hf with DL! @muntisa

fastai-colon-polyps's People

Contributors

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