Melanoma Skin Cancer Detection Using CNN AlexNet Architecture
Melanoma Skin Cancer Detection Using CNN AlexNet Architecture
http://doi.org/10.22214/ijraset.2020.5049
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.429
Volume 8 Issue V May 2020- Available at www.ijraset.com
Abstract: Skin cancer is one of the most common cancer among humans especially in US. If it is detected and treated early
before it effects to the lymph nodes it can be cured. It is very difficult for a physician to detect skin cancer with naked eyes just by
examining the skin lesion because it looks very similar to any other normal mole and hence proves to be fatal. Melanoma is a
type of skin cancer that has vaster death rate than any other type of skin cancers. Melanoma skin cancer develops from the
pigment containing cells known as melanocytes as they start multiplying in an unusual way. This paper proposes a
convolutional neural network (CNN) model using AlexNet architecture that classifies the skin lesion images into melanoma and
non-melanoma skin cancers. Using this method 84% of validation accuracy and 70% of test accuracy is obtained.
Keywords: CNN, Melanoma, AlexNet, ReLU, cost function
I. INTRODUCTION
Several forms of human cancers exist, skin cancer is the most common example of these cancers. There are two major skin cancer
types, namely malignant melanoma and non-melanoma (basal cell, squamous cell, and Markel cell carcinomas, etc.) Most skin
cancers are caused by ultraviolet light (UV) exposure. UV rays from sunlight or tanning beds can damage the DNA of your skin if
you don't protect your skin. It cannot properly control the development of skin cells, leading to cancer, when the DNA is changed.
Melanoma is a rare and very aggressive form of melanocyte-forming skin cancer. These are the cells that make your so-called
melanin pigment. This is the most dangerous form of skin cancer. These cancerous growths develop when unrepaired DNA damage
to skin cells (most often caused by ultraviolet radiation from sunshine or tanning beds) triggers mutations (genetic defects) that lead
the skin cells to multiply rapidly and form malignant tumors. But most skin cancers are nonmelanoma, which means the
melanocytes are not involved. Basal cell and squamous cell skin cancers are the two most common of these. When caught early,
they can almost always be healed. Yet melanoma will easily become a problem that is more difficult to treat if you don't detect it
and treat it early. According to World Cancer Research Fund, Melanoma accounted for about 22% of diagnoses of skin cancer in
2018, and non-melanoma tumors accounted for about 78% of diagnoses of skin cancer. Melanoma is the 19th most common cancer
in men and women, with nearly 300,000 new cases worldwide in 2018. Non-melanoma skin cancer is the 5th most commonly
occurring cancer in men and women, with over 1 million diagnoses worldwide in 2018.
Computer analysis and image processing are the efficient tools that support quantitative medical diagnosis . It requires an
appropriate segmentation algorithm that can effectively detect the pixels of skin melanoma in the information image. The pre-
processing methods are used in determining various levels includes collection of skin lesion images, filtering of images using Dull
Razor filtering for removing hairs and air bubbles in the image, converting to grey scale image, noise filtering, threshold-based
segmentation of lesion images [1]. It requires an appropriate segmentation algorithm that can effectively detect the pixels of skin
melanoma in the information image. For the detection of melanoma, particular analysis is applied on the skin lesion images
according to a set of specific clinical characteristics. Then skin lesion is classified as either "potential melanoma" or "non-
melanoma” [2]. Melanoma classification method based on convolutional neural network and is proposed for dermo scope imaging
[3]. They introduced method called region average pooling, this makes feature extraction focus on the region of interest and the
other technology Computer-assisted approach for Melanoma Skin Cancer detection using Image Processing algorithms. The input to
the system is the skin lesion image and then by applying image processing techniques, it analyses lesion image to conclude about
the presence of skin cancer. The Lesion Image analysis algorithums checks for the various Melanoma parameters like Asymmetry,
Border, Colour, Diameter (ABCD) etc. by texture, size and shape analysis for image segmentation and feature stages[7]. In order to
detect the melanoma various methods are illustrated to examine the computational steps to analyze cancer through the use of various
types of images. Different kinds of frameworks proposed for detection of melanoma and their productivity[4]-[6].
II. METHODOLOGY
A. Proposed method
1) AlexNet Architecture: In Deep Learning, a Convolutional Neural Network (CNN) is a class of deep neural networks, most
commonly applied to analysing visual imagery. Convolutional Neural Networks are state of the art models for Image
Classification, Segmentation, Object Detection and many other image processing tasks. AlexNet is an incredibly powerful model
capable of achieving high accuracies on very challenging datasets. However, removing any of the convolutional layers will
drastically degrade AlexNet’s performance.
2) Optimizer and loss function: The goal of machine learning and deep learning is to reduce the difference between the predicted
output and the actual output. This is also called as a Cost function(C) or Loss function. As our goal is to minimize the cost
function by finding the optimized value for weights. Gradient descent is an iterative machine learning optimization algorithm to
reduce the cost function. This will help models to make accurate predictions. Here we use stochastic gradient descent. In
stochastic gradient descent we use a single data point or example to calculate the gradient and update the weights with every
iteration. We have used binary cross entropy loss function (BCE). BCE loss is used for the binary classification tasks. BCE Loss
creates a criterion that measures the Binary Cross Entropy between the target and the output. If we use BCE Loss function, we
need to have a sigmoid layer in our network.
3) Design Methodology: Design methodology contains design for training the model with the dataset of melanoma and non-
melanoma skin lesion images obtain from Kaggle and testing the images using the trained model over the never seen before
dataset. Training model is given in Figure 2 which contains blocks of defining data preprocessing, CNN architecture to train the
model, optimizers and loss functions , setting call backs and training the model over this model with datasets and finally saving
the model. Callbacks are set of functions to be applied at particular stage of the training. To get the insight of internal states and
statistics of the model during the training.
After the model is trained over the train data it has to be tested. This is done according to the Figure 3 methodology for testing the
model.
In this method the saved model is loaded and same preprocessing of test data is done according to the train dataset then loading the
test images through the design model and printing of the model.
B. Experimental Results
Evaluation accuracy over never before seen images is: 70.00%
The test was conducted over a 20 never seen images which have predicted output as follows
{'Melanoma': 0, 'NotMelanoma': 1}
Melanoma images: [[0.4395] [0.2876] [0.1757] [0.5927] [0.2678] [0.8008] [0.2146] [0.5443] [0.2035] [0.1872]]
NotMelanoma images: [[0.8923] [0.9037] [0.3816] [0.8829] [0.7551] [0.8916] [0.4973] [0.8157] [0.8874] [0.3172]]
In melanoma images 7 out of 10 images were detected correctly and in Non melanoma images 7 out of 10 images were detected
correctly.
Some of correctly detected images
Figure 5 shows the image of skin lesion which are detected correctly and wrongly first two images are accurately detected with
values less than 0.5 which is near to 0 which is labeled for Melanoma images, third image is also detected correctly by value greater
than 0.5 which is near to 1 labelled for Non melanoma images. The iv v vi images are wrongly detected like for iv melanoma image
it gave value greater than 0.5 which is near to 1 labelled for Non melanoma image. Likewise Non melanoma images v and vi images
gave value less than 0.5 indicating Melanoma. So the over all accuracy we got is about 70% which has to be improved.
V. ACKNOWLEDGMENT
The authors would like to thank Ms. Shikha Rai A, Assistant Professor for her guidance, Department of Electronics and
Communication Engineering, Sahyadri College of Engineering and Management for its support and opportunity.
REFERENCES
[1] T.D. Srividya, V.Arulmozhi, “A Review of Threshold based Segmentation for Skin Cancer with Image Processing”, IJRTE, ISSN: 2277-3878, Volume-7,
Issue-5C, February 2019.
[2] Mohd Afizi, Mohd Shukran, Nor Suraya Mariam Ahmad, Suzaimah Ramli, Farhana Rahmat, “Melanoma Cancer Diagnosis Device Using Image Processing
Techniques”, IJRTE, ISSN: 2277-3878, Volume-7, Issue-5S4, February 2019.
[3] Yang, J., Xie, F., Fan, H., Jiang, Z., & Liu, J. (2018). “Classification for dermoscopy images using convolutional neural networks based on region average
pooling”. IEEE Access, 6, 65130–65138.
[4] Vedanti Chintawar, Jignyasa Sanghavi, “A Review on Computer Aided Melanoma Skin Cancer Detection using Image Processing”, EasyChair Print, No.
584, October 24,2018.
[5] Nidhal K. EL Abbadi, Zahraa Faisal, “Detection and Analysis of Skin Cancer from Skin Lesions”, International Journal of Applied Engineering Research ISSN
0973-4562 Volume 12, Number 19 (2017) pp. 9046-9052.
[6] U. Jamil, S. Khalid, M. U. Akram, "Dermoscopic image enhancement and hair artifact removal using Gabor wavelet", 2016 Sixth International Conference on
Innovative Computing Technology (INTECH), 2016.
[7] Shivangi Jain, Vadana jagtap, Nitin Pise, “Computer aided Melanoma skin cancer detection using image processing”, ICCC-2015, Procedia Computer Science
48 (2015) 735 – 740.
[8] Khalid M. Hosny, Mohamed A. Kassem, Mohamed M. Foaud, “Classification of skin lesions using transfer learning and augmentation with Alex-net”, PloS
one, 2019 - journals.plos.org.