Skip to content

This repository uses Deep Learning methods to develop a neural network that can effectively detect Melanoma.

License

Notifications You must be signed in to change notification settings

AshaiReddy/Detecting-Melanoma-using-CNNs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detecting Melanoma using CNNs

A Deep Learning approach towards creating a Convolution Neural Network that can effectively evaulate images and detect the presence of Melanoma. This Project follows the Model Building Framework.

Problem Statement

To build a CNN based model which can accurately detect melanoma. Melanoma is a type of cancer that can be deadly if not detected early. It accounts for 75% of skin cancer deaths. A solution which can evaluate images and alert the dermatologists about the presence of melanoma has the potential to reduce a lot of manual effort needed in diagnosis.

Dataset

You can download the dataset here

The dataset consists of 2357 images of malignant and benign oncological diseases, which were formed from the International Skin Imaging Collaboration (ISIC). All images were sorted according to the classification taken with ISIC, and all subsets were divided into the same number of images, with the exception of melanomas and moles, whose images are slightly dominant. The data set contains the following diseases:

  • Actinic keratosis
  • Basal cell carcinoma
  • Dermatofibroma
  • Melanoma
  • Nevus
  • Pigmented benign keratosis
  • Seborrheic keratosis
  • Squamous cell carcinoma
  • Vascular lesion

Project Pipeline

  1. Data Reading/Data Understanding → Defining the path for train and test images
  2. Dataset Creation→ Create train & validation dataset from the train directory with a batch size of 32. Also, make sure you resize your images to 180*180.
  3. Dataset visualisation → Create a code to visualize one instance of all the nine classes present in the dataset
  4. Model Building & training:
    • Create a CNN model, which can accurately detect 9 classes present in the dataset. While building the model rescale images to normalize pixel values between (0,1).
    • Choose an appropriate optimiser and loss function for model training
    • Train the model for ~20 epochs
    • Write your findings after the model fit, see if there is evidence of model overfit or underfit
  5. Choose an appropriate data augmentation strategy to resolve underfitting/overfitting
  6. Model Building & training on the augmented data :
    • Create a CNN model, which can accurately detect 9 classes present in the dataset. While building the model rescale images to normalize pixel values between (0,1).
    • Choose an appropriate optimiser and loss function for model training
    • Train the model for ~20 epochs
    • Write your findings after the model fit, see if the earlier issue is resolved or not?
  7. Class distribution: Examine the current class distribution in the training dataset
    • Which class has the least number of samples?
    • Which classes dominate the data in terms of the proportionate number of samples?
  8. Handling class imbalances: Rectify class imbalances present in the training dataset with Augmentor library.
  9. Model Building & training on the rectified class imbalance data :
    • Create a CNN model, which can accurately detect 9 classes present in the dataset. While building the model rescale images to normalize pixel values between (0,1).
    • Choose an appropriate optimiser and loss function for model training
    • Train the model for ~30 epochs
    • Write your findings after the model fit, see if the issues are resolved or not?

The model training may take time to train and hence you can use Google colab.

Python Packages:

  • Numpy
  • Tensorflow
  • Pandas
  • Seaborn
  • Matplotlib

About

This repository uses Deep Learning methods to develop a neural network that can effectively detect Melanoma.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages