Melanoma Skin Cancer Detection using Deep Learning

Data from the World Health Organization (WHO) indicate a worldwide occurrence of 2 to 3 million cases of non-melanoma skin cancer annually. The American Cancer Society estimates that the incidence reaches 5.4 million in the United States alone. In cases of fatal diseases, early detection received great attention from the population and the media due to the premise that the earlier a cancer is identified, the greater the chances of cure. It is to be believed that the application of automated methods will help in early diagnosis, especially with the set of images with a variety of diagnoses. Thus, this article presents a system for recognizing dermatological diseases through images with lesions, a machine intervention in contrast to conventional detection based on medical personnel. Our model is designed in three phases, committing to data collection and augmentation, model development, and finally, prediction. We used various AI algorithms such as ANN with image processing tools to form a better structure, leading to higher accuracy of 89%.


Introduction
According to the most recent data from the World Health Organization (WHO), cancer is the second leading cause of death in the world and was responsible for 9.6 million deaths in 2018. Globally, one in six deaths is related to the disease and approximately 70% of cancer deaths occur in low-and middle-income countries.[1,2] The presentation of late and inaccessible diagnosis and treatment are common. In 2017, only 26% of low-income countries reported having pathology services available in the public sector; on the other hand, more than 90% of high-income countries reported that treatment reuse, remix, or adapt this material for any purpose without crediting the original authors. this preprint (which was not certified by peer review) in the Public Domain. It is no longer restricted by copyright. Anyone can legally share, Deep Learning architecture stands out, in which, due to their robustness and the quality of the results obtained, have been widely used in applications that handle large volumes of data (Big Data, for example), and in special for Digital Image Processing. In this way, the ANN with the architecture of Deep Learning presented itself as a promising option for the application in this work.

Dataset
The dataset used in this study consists of 2357 images of various oncologic malignancies and malignancies developed by the International Skin Imaging Association (ISIC) [7]. All images were classified according to the classification constructed by the ISIC, and all subcategories were divided into some images, except for melanomas and moles in which images predominated. In Figures 1. and 2, the reader is presented with the diseases that will be identified by the neural network.

CNN Architecture
The proposed CNN architecture. The input layer of the neural network is becoming a 64 × 64 pixel RGB image. The input data group (images) are processed by three convolutional blocks. Each convolutional block contains 2D convolution layer operation. Any hidden layer includes a ReLU (Rectified Linear Unit) as the activation function layer (nonlinear operation) and is prepared with spatial pooling using a max-pooling layer.
The network is complete with a classifier block, composed of two fully-connected layers. Softmax function is required as a classifier for a fully linked layer output. Our network makes it possible to decide whether the lesion is malignant and benign tumors.
The architecture for the network model is defined in Figure 3.

Training
The proposed neural network is trained based on the "Adam" optimization using the learning rate of 2e-4. In this work, the number of epochs is 100, a value of 0.5 is used for a dropout optimization on fully connected layers and the batch size is set to 32.

Results
The images are then added inside the dataframe. The image dataset is divided into training, validation, and testing datasets.   In Figure 5, it was possible to observe the classification of the typology related to cancer. Reminding readers that all cases are of cancer, what we want is to classify the typology, for example, to know if a certain image types A or B. Our results predict an 89% chance of correctly classifying the type of cancer-based on the said processed dataset.

Conclusion
The reuse, remix, or adapt this material for any purpose without crediting the original authors. this preprint (which was not certified by peer review) in the Public Domain. It is no longer restricted by copyright. Anyone can legally share, The copyright holder has placed this version posted February 4, 2022. ; https://doi.org/10.1101/2022.02.02.22269505 doi: medRxiv preprint