Giter Site home page Giter Site logo

ml-isic_2019-skin_lesion_analysis_towards_melanoma_detection's Introduction

ISIC Skin Lesion Analysis Towards Melanoma Detection Competition

Excerpt from ISIC (source: https://challenge2019.isic-archive.com/)

Skin cancer is the most common cancer globally, with melanoma being the most deadly form. Dermoscopy is a skin imaging modality that has demonstrated improvement for diagnosis of skin cancer compared to unaided visual inspection. However, clinicians should receive adequate training for those improvements to be realized. In order to make expertise more widely available, the International Skin Imaging Collaboration (ISIC) has developed the ISIC Archive, an international repository of dermoscopic images, for both the purposes of clinical training, and for supporting technical research toward automated algorithmic analysis by hosting the ISIC Challenges.

Getting Started

The dataset given was extremely raw and based on other models that I've created I knew that I first needed to separate the images based on the ISIC_2019_Training_GroundTruth.csv. One needs to separate the images by Melanoma, Melanocytic nevus, Basal cell carcinoma, Actinic keratosis, Benign keratosis (solar lentigo / seborrheic keratosis / lichen planus-like keratosis), Dermatofibroma, Vascular lesion, Squamous cell carcinoma, None of the others; however, I overlooked the groundtruth csv and originally modeled Melanoma against Melanocytic Nevus so my classification was binary, I am working on a model to include all 9 classifications.

Prerequisites

What things you need to install in order to test code

pip3 install tensorflow tensorflow-gpu Keras cv2 numpy 

Installing

A step by step series of examples that tell you how to get a development env running

  1. Change the name of the path to match your path
DATADIR = "/home/YOU/YourImages"
  1. Run dlMel.py
if __name__ == '__main__': 
    print('run it')
    #or however you want to run the code, jupyter,etc.
  1. Should get something like this: ISIC_model_as_of_10082019

Running the tests

If you want to test an outside image, use the following:

def preparation(fpath): 
    IMG_SIZE = 100
    img_ary = cv2.imread(fpath, cv2.IMREAD_GRAYSCALE)
    new_ary = cv2.resize(img_ary, (IMG_SIZE, IMG_SIZE)
    return new_array.reshape(-1, IMG_SIZE, IMG_SIZE, 1)
    
#your saved model
model = tf.keras.models.load_model("MODEL-NAME.model")

prediction = model.predict([preparation(IMAGE.jpg)])
print(CATEGORIES[int(prediction[0][0])])

Built With

Authors

  • Byron Hayes - Initial work - BeeSting
  • Thitti Sirinopwongsagon
  • Nathan Lock

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Youtuber: sentdex
  • Stackoverflow, and literally all of the code from others I looked through to develop my fileseparator program (coming soon!) for data science

ml-isic_2019-skin_lesion_analysis_towards_melanoma_detection's People

Contributors

byhay1 avatar

Stargazers

 avatar

Watchers

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