Detection and Classification of Skin Cancer Using Binary Classifier Residual Network and Convolutional Neural Network
Detection and Classification of Skin Cancer Using Binary Classifier Residual Network and Convolutional Neural Network
Abstract: Skin cancer is a very dangerous form of cancer as results in the detection of any type of disease in images.
it transfers from one part of the body to the other part. It CNN has made a remarkable achievement in feature
can occur in any age group but is very common in old retrieval and pattern recognition [2]. ResNet design is
people. For effective treatment and the best possible very good at addressing the challenges that arise during
outcome, early detection of skin cancer is necessary.
Traditional techniques are sometimes not able to detect
the training phase of deep networks. ResNet is very useful
properly due to the lack of expertise. These methods also because of its deep layered architecture and skip
cause discomfort, and risk of compilation, and require more connections for learning features of medical images.
recovery time compared to the traditional methods. In the Binary classifier helps in differentiating between cancers.
work, the authors proposed a hybrid model for skin cancer
detection and classification using a Binary Classifier, Few of the features of all three techniques are [4]:
Residual Network, and Convolutional Neural Network.
The research work first uses a binary classifier to distinguish CNN is the structure that is very helpful in detection,
between malignant and benign cancer. Then, Residual classification, segmentation, and image generation. By
Network is used to understand its deep architecture and skip
connections, for retrieving features from input images.
using filters CNN extracts features from the input images.
Finally, the Convolution Neural Network (CNN) is used Pooling layers retain the most important information and
specifically to detect skin cancer, leveraging its architectural delete the unwanted data by reducing the spatial
design and training strategies. The publicly available Kaggle dimensions. The activation function adds non-linearity to
dataset is utilized for the research work. For assessment of the CNN which enables learning the relationship of data.
the work accuracy and time have been calculated. The CNN represents the features in hierarchical form the
experimental results authenticate the effectiveness of the lower layers have simple information like edges and
model in precisely detecting and classifying skin cancer. textures. The higher layers have information relevant to
the task the user wants to perform. In CNN layers are
Keywords: Skin Cancer, Residual Network (ResNet), connected so it aggregates the features generated by the
Convolutional Neural Network (CNN), Binary Classifier,
Detection, Classification, Images.
previous layer and produces output. CNN has features of
data augmentation which increase the diversity in given
I. INTRODUCTION dataset. ResNet provides very deep training of the residual
blocks. It provides ideal mapping by skipping the blocks
Skin cancer is a global health issue nowadays, with its
as and when required. ResNet uses the concept of global
occurrence over the years in all age people. Traditional
average polling so it decreases the constraints resulting in
methods like visual examination and dermoscopy has
optimal outcome. Binary classifiers work on decision
been utilized in detecting cancer. The outcome of the
boundaries that segregate the different classes. The binary
traditional methods depends on the proficiency of the
classifier uses supervised learning where learning takes
clinician. Additionally, the number of skin cancer are
place through labelled data.
increasing day by day because of that timely diagnosis is
required and we need some automated tool to detect the
disease. Deep Learning (DL) methods have encouraging
Figure 1 characterizes the region-wide distribution of The back part of the human body is highly affected and
cancer. The X-axis signifies the region and the y-axis the acral is the least affected area as per Figure 1. The X-
signifies patients affected from the cancer on different axis in Figure 2 represents age of the cancer patient and
parts of the body. the Y-axis signifies the count of patients affected by the
disease. The age group 40 to 50 is the highly pretentious
group with the cancer disease. Figure 3 illustrates the
organization of cancer into major seven categories. The
most occurring cancer is melanocytic nevi and the least
occurring skin cancer is dermatofibroma. Figure 4
represents the gender-wise data for skin cancer
identification and classification. The X-axis signifies the
gender-wise data and the Y-axis signifies count of
patients. Males are more affected by skin cancer matched
to the female.
the identification of irregular networks in the training set. • In limited access areas, it is challenging for
For classification purposes dataset of 500 melanomas and dermatologists to properly diagnose skin cancer.
500 benign images was also utilized during training. The • The class inequity in the dataset might cause
accuracy and recall of melanoma were found to be high inaccurate in skin cancer identification and
related to the benign [9]. recognition.
The reduction of the ozone layer is causing skin-related • The automated techniques developed by different
issues for humans along with the environment issues. researchers are not general for a diverse
Exposure to ultraviolet rays harms human skin resulting in population.
skin disease. The timely identification results in timely
treatment of the disease leading to the good outcome. The III. PROPOSED METHOD
AI and DL models were combined for better results. The This research work focuses on leverage the proficiencies
publically available dataset having 8598 images has been of DL models. Binary classifier is integrated with ResNet
used by the authors for the identification and classification and CNN, to improve the detection and classification of
of the melanoma disease. AlexNet, MobileNet, ResNet, skin cancer from dermoscopic images. The Kaggle dataset
VGG16, and VGG19, have been studied and it was found has been used for the dermoscopic images. The dataset is
that as MobileNet model achieved best then other publically available having 10015 images and all the
mentioned techniques. The accuracy attained for the images are labelled properly. An Epoch of 700 sizes at a
work, using MobileNet is 84.94% [10]. learning rate of 0.05 has been selected. Batches of size 32
After the literature survey a lot of issues have been listed are created for the work. Batch size depends on many
as follows [11][12]: parameters such as computational resources; size of
• Skin cancer resembles benign moles or lesions so dataset, and architecture of research work, etc. Batch size
for professionals accurate identification of cancer varies with the memory size of the GPU used. The larger
is very challenging. the batch size requires more amount of memory. Large
• The results of the different professionals vary for batch size reduces the transfer of memory from CPU to
the same dataset and the technique used. GPU. The batch size in general could be 16 to 128
• Skin cancer can vary in color, size, shape, and samples. Figure 5 represents the working of the DL
texture. Its location could also vary resulting in technique in general.
issues for the professionals.
• Skin cancer appearance can vary over time,
leading to missed diagnoses during early
screenings.
further processing like to train the pre-processed data. The Deployment and Clinical Validation: After the
trained data is fed to the system for prediction. The loss verification and validation of research the technique is
function calculates the difference between predicted and deployed for the real- world applications [17].
actual values. Model performance is accessed on the The proposed research work will provide significant
validation set for tuning hyper parameters and prevents advancement in the premature recognition and diagnosis
the overfitting of data. Testing of the technique is done on of skin cancer, eventually contributing to enhanced patient
different sets to evaluate the generalized model results and reducing the load of deadly diseases.
performance. Finally, the technique is installed for
production to predict new datasets. Finally, for IV. RESULTS AND DISCUSSION
maintenance purposes continuous monitoring is required, The section presents outcomes produced by the hybrid
and for adaption of the changes needs to be done from model. We have combined CNN, ResNet, and binary
time to time. classifiers to detect and classify skin cancer. The
The proposed methodology includes many key steps experiment has been attained on the dermoscopic images
outlined below: dataset from the Kaggle. The dataset is decomposed:
Data Acquisition and Pre-processing: A Kaggle dataset training, validation, and testing sets into the ratio of
having 10015 dermoscopic images has been used. It is a 70:15:15. ResNet is utilized for feature retrieval, and the
publically accessible dataset. Then pre-processing of binary classifier is used for supervisory. The discussion of
dataset has been done to change image size, and outcomes for the detection and recognition of cancer
information perceptibility has been enhanced [13]. utilizing a hybrid model could normally include an
Model Architecture Design: Pre-trained ResNet exploration of the assessment metrics of the designed
architecture used to retrieve the features from automatic model, possible demerits, and opportunities for
dermoscopic images. The network performed well in the future research.
extraction of features from medical images. It also helps The results of the designed automatic model could be
in classification of the skin cancer. The binary classifier accessible in form of several assessment metrics such
consists of fully connected layers monitored by a sigmoid accuracy, recall, specificity, time, precision, and F1-score.
activation function to output a probability score The mentioned metrics deliver perceptions into the
representing the likelihood of skin cancer existence [14]. technique's proficiency to accurately classify skin cancer
Training Strategy: The method is trained using an SL into actinic keratoses, benign keratosis, melanocytic nevi,
method on the pre-processed dataset. In the work, transfer dermatofibroma, basal cell carcinoma, and vascular
learning has been used, initializing the ResNet model with lesions. If the research work achieves high accuracy in
pre-trained weights in the dataset. Fine-tuning would help considerable time then its effectiveness could be verified.
in acclimating the model to the particular task of skin The high accuracy in considerable time showed that it
cancer recognition [15]. could be used as a generalized model for clinical
Model Evaluation: The trained model is tested and applications.
validated on different datasets to measure its performance.
For measuring the performance accuracy, recall, and time
has been calculated [16].
Figures 6 and 7 represent the detected and classified skin varying from year 0 to 80. Figure 8 represents the skin
cancer. In the dataset, 7 types of skin cancer have been cancer distribution, the cancer types 0, 1, 3, and 5 which
detected and classified. The most occurring skin cancer is are Melanocytic nevi, dermatofibroma, basal cell
melanocytic nevi and the least occurring skin cancer is carcinoma, and vascular lesions are not very prevalent
dermatofibroma. The dataset comprises patient details below the age of 20 years.
[6]. Ghaffar Nia, N., Kaplanoglu, E., & Nasab, A. (2023). Evaluation of Smart Cities. Journal of Information Technology
artificial intelligence techniques in disease diagnosis and Management, 14(Special Issue: Security and Resource Management
prediction. Discover Artificial Intelligence, 3(1), 5. challenges for Internet of Things), 118-131.
[7]. Pilania, U., Kumar, M., Singh, S., & Adhalkha, P. (2023, [14]. Pilania, U., Diwakar, C., Arora, K., & Chaudhary, S. (2022,
December). A Deep Ensemble Learning Network-based Approach September). An Optimized Hybrid Approach to Detect Cataract.
to Detect Neurodegenerative Diseases. In 2023 2nd International In 2022 IEEE Global Conference on Computing, Power and
Conference on Automation, Computing and Renewable Systems Communication Technologies (GlobConPT) (pp. 1-5). IEEE.
(ICACRS) (pp. 1033-1038). IEEE. [15]. Pilania, U., Tanwar, R., & Nandal, N. (2022). Exploring face
[9]. Nambisan, A. K., Maurya, A., Lama, N., Phan, T., Patel, G., Miller, detection and recognition in steganography. Unleashing the art of
K., ... & Stoecker, W. V. (2023). Improving automatic melanoma digital forensics, 181-214.
diagnosis using deep learning-based segmentation of irregular [16]. Vidya, M., & Karki, M. V. (2020, July). Skin cancer detection
networks. Cancers, 15(4), 1259. using machine learning techniques. In 2020 IEEE international
[10]. Pilania, U., Tanwar, R., & Nandal, N. (2022). Exploring face conference on electronics, computing and communication
detection and recognition in steganography. Unleashing the art of technologies (CONECCT) (pp. 1-5). IEEE.
digital forensics, 181-214. [17]. Monika, M. K., Vignesh, N. A., Kumari, C. U., Kumar, M. N. V. S.
[11]. Orhan, H., & YAVŞAN, E. (2023). Artificial intelligence-assisted S., & Lydia, E. L. (2020). Skin cancer detection and classification
detection model for melanoma diagnosis using deep learning using machine learning. Materials Today: Proceedings, 33, 4266-
techniques. Mathematical Modelling and Numerical Simulation with 4270.
Applications, 3(2), 159-169. [18]. Daghrir, J., Tlig, L., Bouchouicha, M., & Sayadi, M. (2020,
[12]. Kumar, M., Yadav, D. K., Ray, S., & Tanwar, R. (2024). Handling September). Melanoma skin cancer detection using deep learning
illumination variation for motion detection in video through and classical machine learning techniques: A hybrid approach.
intelligent method: An application for smart surveillance In 2020 5th international conference on advanced technologies for
system. Multimedia Tools and Applications, 83(10), 29139-29157. signal and image processing (ATSIP) (pp. 1-5). IEEE.
[13]. Kumar, M., Ray, S., & Yadav, D. K. (2022). Moving Vehicles
Detection and Tracking on Highways and Transportation System for