Skip to content

General deep neural network to recognize malignant tumors by using thousands of examples. App enables real-time diagnosis with almost human accuracy with just your smartphone.

Notifications You must be signed in to change notification settings

kuboris/smartoscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

Updated. Working app in Alpha Version.

Download alpha version of our app here

Update 2 As per request added mirror for waya Skin cancer dataset.

Short App Introduction:

  1. Download apk in your phone.( You might be asked to approve an app from unknown source)
  2. You will be asked to download a newest model. ( It's 90mb. Use WiFi if available)
  3. Wait for download to finish.

  1. App has 4 classes.
  • Other ( Blue color ) - Model classifies surroundings.
  • Skin ( Yellow color ) - Model classifies skin.
  • Mole ( Green color) Model classifies picture as non-malignant.
  • Melanoma ( Red color) Model classifies picture as malignant.

  1. Additionally you can start debug mode by pressing volume down button. (Image in the corner is the real image that is being processed by the model)

Warning

This is not medically approved app. Please consult with a professional when you have a doubt.

Make sure that the image is focused. It might produce false positives or false negatives otherwise.

We tested it with cheap microscope add-on.( example ) If your phone doesn't allow for big enough macro shots it's advised to take a picture normally and visualize it on the other screen for to get a bigger picture.

Building an App that uses neural network for real-time skin cancer detection.

"Innovation is taking two things that already exist and putting them together in a new way." Tom Freston

When we decided to attend V4 hackathon we had a simple goal : Use the open source tools to develop a simple Android app to recognize skin cancer in real-time.

Step zero: Problem definition

Melanoma is the most common human malignant cancer. With millions of new cases each year it accounts for 75 % of skin cancer deaths - more than 50 thousand deaths per year. Catching it early greatly increases chances of survival and enables removing it. It's primarily diagnosed visually following with biopsy in uncertain cases. Mole can be Benign(Just a mole) or Malignant(Cancerous cells).

enter image description here

Recent deep learning advances showed that they can predict malignant mole from the picture with 95% accuracy. Sadly none of those models are publicly available.

Step one: Research source data.

Skin cancer dataset.

  • Contains 13786 High res Images divided into categories. For our cause we selected only two categories from this website : NEVUS( Mole) / MELANOMA(Malignant)
  • Download Mole link(Few GB)
  • Download Malignant Link(Few GB)
  • Get additional data set from Waia.ai git repo: https://github.com/wayaai/waya-dc/blob/master/wayadc/utils/get_datasets.py
  • Waia.ai sources use preprocessed 299x299 images. Same input as our model uses. However we want get high resolution images so we’ll be able to do some processing of our own an image cropping if needed.
  • Additional Source 1:(tbd)
  • Additional Source 2:(tbd)
  • Additional Source 3:(tbd) Step two: Training of a Model

We planned to use Azure graphic card instance. However the installation of Cuda drivers proved to be buggy and we could not afford to lose more time on it so we went Tensorflow Docker image on high compute Azure instance. (H8 instance) Most of the steps used are could be found in this tutorial : https://codelabs.developers.google.com/codelabs/tensorflow-for-poets However we prepared step by step tutorial for training your neural network classifier on Azure: ADD LINK

Proposed ROAD-MAP :

Future development is dependent on our time abitities. This is a first draft of Roadmap for App development.

  • Version 0.0 : APP: Stable apk. (Current version is still buggy) Model: Default model trained during hackathon. (DONE) Version 0.1 : APP: Smaller app, model downloaded from remote server (DONE) Model: Trained on full sized images using --random_brightness 10 --flip_left_right true (IN PROGRESS)
  • Version 0.2 : APP: Custom model import, custom categories Model: Getting to 90% accuracy. Testing with real world examples. (It’s hard to get a real skin cancer patient)
  • Version 0.3: APP: App-store. Proper medicinal texts in app. Model: Real world tested accuracy.

We need you help !

We believe this project could help people. Do you believe the same? What do we need help with at the moment?

  1. Android Designer: Are you experienced android designer? Our app needs to get some slick visuals! Contact us!
  2. Azure/Amazon/? Virtual machine provider. Training takes a lot of CPU/GPU power. Are you able to provide us with credits to train it? Contact us!
  3. Doctors. Are you interested in this app? Do you have experience with skin melanoma? Would you like to test our app?
  4. Anyone with an idea - Do you wan't to help us with anything else ? Do you have suggestions? Contact us!

Contact email : kuboklauco(magic at sign)gmail(dot)com

About

General deep neural network to recognize malignant tumors by using thousands of examples. App enables real-time diagnosis with almost human accuracy with just your smartphone.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages