Skip to content

Skin Cancer Detection using CNN is a deep learning project that accurately detects melanoma. With a dataset of 2357 skin images, the model alerts dermatologists about melanoma presence, aiding in early detection. It showcases CNN's effectiveness in medical image analysis.

Notifications You must be signed in to change notification settings

GvHemanth/CNN--Image-Classification--Melanoma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Skin Cancer Detection using CNN

Skin cancer is a deadly disease that can be life-threatening if not detected early. This project aims to build a CNN-based model that accurately detects melanoma, the deadliest form of skin cancer. The model evaluates images and alerts dermatologists about the presence of melanoma, reducing the manual effort needed for diagnosis.

Dataset

The Dataset can be downloaded from Here.

The dataset used in this project consists of 2357 images of malignant and benign oncological diseases, sourced from the International Skin Imaging Collaboration (ISIC). The dataset contains nine sub-directories, each representing a specific type of skin cancer:

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

The dataset was divided into training and testing sets, with approximately 80% of the images used for training and 20% for validation.

Technologies Used

  • Python
  • TensorFlow
  • Keras
  • Augmentor
  • NumPy
  • Matplotlib
  • OpenCV
  • PIL

Model Architecture

The CNN model used in this project consists of several convolutional and pooling layers, followed by fully connected layers. The model was trained to classify the nine different types of skin cancer present in the dataset. Data augmentation techniques, such as random flipping, rotation, and zoom, were applied to handle class imbalances and improve model performance.

Results

After training the model for around 50 epochs, the following results were achieved:

  • Training Accuracy: 77%
  • Validation Accuracy: 75%
  • Training Loss: 0.5
  • Validation Loss: 0.8

The model showed significant improvement in accuracy and reduced overfitting compared to earlier versions. Class rebalancing using data augmentation played a crucial role in achieving these results.

Conclusion

The developed CNN model shows promising results in accurately detecting different types of skin cancer. By leveraging deep learning techniques and data augmentation, the model can assist dermatologists in diagnosing melanoma and other skin cancer types. Further improvements can be made by collecting more diverse and balanced datasets and fine-tuning the model architecture.

Feel free to contribute to this project and adapt it to your specific needs.

Contact

Created by :

References

[1] ISIC - The International Skin Imaging Collaboration: https://www.isic-archive.com/

[2] Augmentor Documentation: https://augmentor.readthedocs.io/

[3] TensorFlow Documentation: https://www.tensorflow.org/

[4] Keras Documentation: https://keras.io/

[5] OpenCV Documentation: https://docs.opencv.org/

[6] NumPy Documentation: https://numpy.org/doc/

[7] Matplotlib Documentation: https://matplotlib.org/

[8] PIL Documentation: https://pillow.readthedocs.io/

About

Skin Cancer Detection using CNN is a deep learning project that accurately detects melanoma. With a dataset of 2357 skin images, the model alerts dermatologists about melanoma presence, aiding in early detection. It showcases CNN's effectiveness in medical image analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published