0% found this document useful (0 votes)
166 views21 pages

Final Report

The document is a project report on 'Automated skin cancer detection using deep learning techniques and image analysis' submitted by students of REVA University for their Bachelor of Technology degree. It discusses the significance of early skin cancer detection, the limitations of current diagnostic methods, and proposes a deep learning-based system to improve accuracy and efficiency in identifying skin lesions. The report includes a literature review, methodology, and proposed workflow for the project, emphasizing the use of Convolutional Neural Networks (CNNs) for image classification.

Uploaded by

PRANAY VERNEKAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
166 views21 pages

Final Report

The document is a project report on 'Automated skin cancer detection using deep learning techniques and image analysis' submitted by students of REVA University for their Bachelor of Technology degree. It discusses the significance of early skin cancer detection, the limitations of current diagnostic methods, and proposes a deep learning-based system to improve accuracy and efficiency in identifying skin lesions. The report includes a literature review, methodology, and proposed workflow for the project, emphasizing the use of Convolutional Neural Networks (CNNs) for image classification.

Uploaded by

PRANAY VERNEKAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

SCHOOL OF ELECTRONICS AND COMMUNICATION

ENGINEERING
A MAJOR PROJECT
REPORT ON

“Automated skin cancer detection using deep


learning techniques and image analysis”
Submitted in fulfillment of the requirements for the award of the Degree of

BACHELOR

OF

TECHNOLOGY IN

ELECTRONICS AND COMMUNICATION


ENGINEERING
Submitted by
K.Bhavana R21EB033
Priyanka S R21EB020
Pranay Vernekar R21EN199
Under the guidance of
Dr. Dilna U
Assistant Professor, School of ECE
REVA University
Rukmini Knowledge Park, Kattigenahalli, Yelahanka,
Bengaluru-560064
www.reva.edu.in
January 2025
DECLARATION

I, Pranay Vernekar (R21EN199), Priyanka S (R21EB020), K. Bhavana


(R21EB033) student of B. Tech, belong to the School of Electronics and
Communication Engineering, REVA University, declare that this Project Report /
Dissertation entitled “Automated skin cancer detection using deep learning
techniques and image analysis” is the result of the of project/dissertation work
done by me under the supervision of Dr. Dilna U, Asst. Prof., School of ECE
REVA University.
I am submitting this Project Report / Dissertation in partial fulfillment of the
requirements for the degree of Bachelor of Technology in Electronics and
Communication Engineering award by the REVA University, Bengaluru, during
the academic year 2022-23.
I declare that this project report has been tested for plagiarism and has passed the
plagiarism test with a similarity score of less than 25%. It satisfies the academic
requirements regarding the Project work prescribed for the said Degree.
I further declare that this project/dissertation report or any part of it has not been
submitted for the award of any other Degree/Diploma of this University or any other
University/ Institution.

Pranay Vernekar Priyanka S

K Bhavana

Certified that this project work submitted by Mr.Pranay Vernekar(R21EN199),


Ms. Priyanka S (R21EB020), Ms. K Bhavana(R21EB033) has been carried out
under my/our guidance and the declaration made by the candidate is true to the
best of my knowledge.

Signature of Guide Signature of Director


Date: Official Seal of the School
CERTIFICATE

Certified that the project work entitled “Automated skin cancer detection using
deep learning techniques and image analysis” carried out under my guidance by
Pranay Vernekar (R21EN199), Priyanka S (R21EB020), K Bhavana (R21EB033)
a bonafide student of REVA University during the academic year 2024-2025, is
submitting the project report in partial fulfillment for the award of Bachelor of
Technology in Electronics and Communication Engineering during the academic
year 2024–25. The project report has been tested for plagiarism and has passed the
plagiarism test with a similarity score of less than 25%. The project report has
been approved as it satisfies the academic requirements regarding the Project work
prescribed for the said Degree.

Dr. Dilna U Dr. K M Sudarshan


(Project Guide) (Director)

External Examiner
Name of the Examiner with affiliation Signature with Date

1.

2.
Contents

Contents ii

List of Figures iv

1 Introduction 1
1.1 Background.............................................................................................................. 1
1.2 Problem Definition :............................................................................................... 2

2 Literature Review 4

3 Proposed work 9
3.1 Methodology …………………………………………............................... 9
3.2 Proposed workflow ..……………………………………........................... 9
3.2.1 CNN AND MOBILENET V2 MODEL TRAINING ………………..... 10
3.2.2 Code snippets (Keras)…………………………………………...................... 11
3.2.3 Dataset used …………………………………………............................ 11
3.2.4 Skin cancer types………………………………………………......................... 12

4 Future Scope 15
References 17

iii
List of Figures

1.1 Types of Skin Cancer ................................................................................... 3


1.2 Close-Up of a Basal Cell Carcinoma Lesion ................................................. 3
1.3 Close-Up of a pink, scaly Lesion .................................................................. 3

iv
Chapter 1

Introduction

1.1 Background
Skin cancer is one of the most active types of cancer in the present decade [1].As
the skin is the body’s largest organ, the point of considering skin cancer as the
most common type of cancer among humans is understandable [2]. It is generally
classified into two major categories: melanoma and non melanoma skin cancer
[3]. Melanoma is a hazardous, rare, and deadly type of skin cancer. According to
statistics from the American Cancer Society, melanoma skin cancer cases are only
1% of total cases, but they result in a higher death rate [4]. Melanoma develops in
cells called melanocytes. It starts when healthy melanocytes begin to grow out of
control, creating a cancerous tumor. It can affect any area of the human body. It
usually appears on the areas exposed to sunrays, such as on the hands, face, neck,
lips, etc. Melanoma type of cancers can only be cured if diagnosed early; otherwise,
they spread to other body parts and lead to the victim’s painful death [5]. There as
various types of melanoma skin cancer such as nodular melanoma, superficial
spreading melanoma, acrallentiginous, and lentigomaligna [3].The majority of
cancer cases lie under the umbrella of non melanoma categories, such as basal cell
carcinoma (BCC), squamous cell carcinoma (SCC), and sebaceous gland
carcinoma(SGC). BCC, SGC, and SCC are formed in the middle and upper layers
of the epidermis, respectively. These cancer cells have a low tendency of
spreading to other body parts. Non melanoma cancers are easily treated as
compared with melanoma cancers. Therefore, the critical factor in skin cancer
treatment is early diagnosis [6]. Doctors ordinarily use the biopsy method for skin
cancer detection. This procedure removes a sample from a suspected skin lesion
for medical examination to determine whether it is cancerous or not. This process
is painful, slow, and time-consuming. Computer-based technology provides a
comfortable,

1
Chapter 1 Introduction 1.2. Problem Definition
less expensive, and speedy diagnosis of skin cancer symptoms. In order to
examine the skin cancer symptoms, whether they represent melanoma or non
melanoma, multiple techniques, non invasive in nature, are proposed. The general
procedure followed in skin cancer detection is acquiring the image, preprocessing,
segmenting the acquired preprocessed image, extracting the desired feature, and
classifying it, represented in figure. In 2018, there were approximately 1 million
non-melanoma skin cancers and 288,000 malignant melanoma (MM) cancers
reported worldwide [1]. Because of an aging population and limited health-care
resources, accurate diagnosis and detection are essential components of a
generalized skin cancer prevention strategy. The impact of immune therapies on
survival and cost, places additional strain over burdened healthcare system, raising
concerns about financial sustainability [2]. Dermatologists and general
practitioners face challenges in detecting skin cancer, particularly MM, early on.
Dermoscopy is considered the standard of care [3], but objective tests show that
dermatologists have a diagnostic sensitivity of 40% for MM detection[4] due to
the complexity of visual inputs embedded in a dermoscopy image [5].General
practitioners appear to benefit from the use Skin cancer [7]. Nonetheless,
laboratory studies reported clinical sensitivity ranging from 29% to 87% [8],a
discrepancy that could be attributed to the quality of the dataset input, classifying
the technology as experimental [9]. A recent prospective clinical observational
study [10] described a two-step approach for improving detection accuracy by
adding a second layer of sonification (visual data converted into sounds) to a DL
classifier. This dual DL used an advanced dermoscope, a relatively expensive
device, and a technique that was heavily reliant on physician experience [4],
making it less suitable for general primary care physician use.

1.2 Problem Definition:


Skin cancer is one of the most common types of cancer worldwide, with melanoma
being the most aggressive and deadly form. Early detection is crucial for effective
treatment and survival. Current methods rely on visual inspection by dermatologists,
which can be subjective and time consuming. Develop a deep learning based system
for automatic skin cancer detection from dermoscopic images.

School of ECE, Reva University 2


Chapter 1 Introduction 1.2. Problem Definition

FIGURE 1.1: Types of Skin Cancer

FIGURE1.2: Close-Up of a Basal Cell Carcinoma Lesion

FIGURE1.3: Close-Up of a pink, scaly Lesion

School of ECE, Reva University 3


Chapter 2

Literature Review

SL.NO Reference/Yea Proposed Ti- Method Dataset/Result


r tle/Technique
used
1 Agrahari, Skin Cancer Pre-trained Mo HAM10000,
Pradhumn, Detection using bileNet model is ISIC dataset is
Archit Agrawal, deep learning. employed for used. The model
and model building. detects skin
N. Subhashini. lesion with a
Futuristic categorical
Communication accuracyas high
and Network as 80.81%, top-2
Technologies: accuracy of
Select 91.25%, and
Proceedings top-3 accuracy
Of VICFCNT Of 96.26%.
2020. Springer
Singapore,2022.

4
Chapter 2 Literature Review Chapter 2 Literature Review

2 Nahata, Hardik, ”Deep learning Covolutional This project aims


and Satya P. solutions for skin layers, Dropout to develop a skin
Singh (2020) Cancer detection layers, Pooling cancer detection
and diagnosis.” layers and Dense CNN model
Machine learning
layers. The which can
with health care
perspective: ma- model will also classify the skin
chine learning make use of cancer types and
and healthcare Transfer help in early
(2020): Learning detection
techniques for
early
convergence. The
CNN classifica
tion model will
be developed in
Python using
Keras and Ten
sorflow in the
backend.

3 Gouda,W.; Detection of CNN was used to ISIC2018


Sama,N.U.; Al- Skin Cancer detect the two dataset which
Waakid, Based on Skin primary types of comprises of
G.;Humayun, Lesion Images tumors, 3533 skin lesions,
M.;Jhanjhi,N.Z. Using Deep malignant and Accuracy:83.2%
Detection of Ski Learning. benign. (ResNet50:
n Cancer Based 83.7%,Incep
on Skin Lesion
Images Using tionV3:85.8%,
InceptionRes-
Deep Learning.
Net:84%).
Healthcare
(2022).

School of ECE, Reva University 5


Chapter 2 Literature Review Chapter 2 Literature Review

4 Naqvi, Maryam, ”Skin Cancer Commonly HAM10000.


et al.(2023). Detection Using Used CNN 77.6% of skin
Deep Learning.” Architectures for melanomas di-
Image Classifi- agnosed at the
cation: AlexNet, local stage.
DenseNet,
VGG,Mobile
Net, ResNet.

5 Hasan, ”Skin Cancer A deep learning- Achieved an ac-


Mahamudul, et Detection Using based method curacy of 89.5%
al. (2019). Convolutional
using CNN clas- and training ac-
Neural Network.”
sifier for feature curacy of 93.7%
stratification. using a publicly
available
dataset.

6 Li, Yunzhu,et ”Skin cancer CNN models Used 1,300 biop-


al.(2017). detection and built and trained. sied skin lesion
tracking using images and 400
data synthesis high-resolution
and deep body images to
learning.” generate 40,000
images for detec-
tion and 84,000
Pairs of images
for tracking.

7 Hossin,Md ”Melanoma Multi-layered Accuracy of


Arman, et al. Skin Cancer CNN approach 93.58%, higher
(2020). Detection Using with regulariza- than conventional
Deep Learning tion techniques
and Advanced (dropout, batch
Regularizer.” normalization).

School of ECE, Reva University 6


Chapter 2 Literature Review Chapter 2 Literature Review

8 Kousis,Ioannis, ”Deep learning Trained and HAM10000


et al.(2022). methods for tested 11 CNN Dataset (7skin
Accurate skin architectures. lesion classes).
cancer recogni- Accuracy:
tion and mobile 92.25%, Recall:
application.” 93.59%,F1-
score:93.27%.

9 Han, Seung ”Keratinocytic CNN and Accuracy com-


Seog, et al. Skin Cancer algorithms. parable to
(2020). Detection on dermatologists:
The Face Using F1 score 0.831
Region-Based vs 0.835.
CNN.”

10 Ameri,A. ”A deep Transfer learn- HAM10000.


(2020). learning ing with Classification
approach to skin AlexNet as accuracy:84%,
cancer detection a pretrained sensitivity:81%,
in dermoscopy model. specificity:88%.
images.”

School of ECE, Reva University 7


Chapter 3

Proposed work

3.1 Methodology

Role of Deep Learning: Deep learning plays a pivotal role in the detection of skin
cancer by revolutionizing the accuracy and efficiency of diagnosis. Convolutional
Neural Networks (CNNs), a type of deep learning algorithm, can be trained on large
datasets of dermoscopic images to automatically detect and classify skin lesions into
benign or malignant categories. These models can learn to identify subtle patterns and
features characteristic of skin cancer, such as asymmetry, border irregularity, color
variation, and diameter. By leveraging transfer learning, data augmentation, and
ensemble methods, deep learning models can achieve exceptional accuracy (up to
95%) and sensitivity (up to 97%) in detecting melanoma, the deadliest form of skin
cancer. Moreover, deep learning-based systems can assist dermatologists in early
detection,
9
Reduce false positives and negatives, and improve patient outcomes. Additionally, AI-
powered skin analysis apps and telemedicine platforms can increase accessibility to
skin cancer screening, especially in under-served populations. Overall, deep learning
has transformed the field of skin cancer detection, enabling faster, more accurate, and
more accessible diagnosis, and ultimately saving lives.

3.2 Proposed work flow


1. Dataset: A robust dataset of dermoscopic images is collected from public sources
and clinical collaborations. The dataset includes benign and malignant cases. Images
are labeled and annotated by expert dermatologists. The dataset is diverse in terms of
skin types and lesion sizes. Public datasets like ISBI and PH2 areutilized. Dataset
size is continuously expanded.

2. Pre processing: Images are resized to uniform dimensions. Noise reduction tech-
niques like Gaussian filters are applied. Color space conversion from RGB to HSV
or LAB is performed. Image normalization enhances contrast. Artifact removal
improves image quality. Preprocessing enhances model performance.

3. Segmentation: Thresholding techniques isolate skin lesions. Edge detection


algorithms like Canny and Sobel define lesion boundaries. Active contour models
refine segmentation. Deep learning-based segmentation improves accuracy. Lesion
segmentation reduces false positives. Accurate segmentation ensures robust feature
extraction.

4. Feature Extraction: Shape features like area and perimeter are extracted. Color
features like mean and standard deviation are calculated. Texture features using
Gabor filters and Local Binary Patterns are extracted. Feature extraction reduces
data dimensionality. Relevant features improve model performance. Feature
selection enhances classification accuracy.

5. Classification: Deep learning models like CNN and ResNet are trained. Traditional
machine learning algorithms like SVM and Random Forest are employed. Models
are trained on extracted features. Hyperparameter tuning optimizes performance.
Classification accuracy is evaluated. Models are fine-tuned for improved
performance.

9
Chapter 3 Proposed work 3.2. Proposed workflow

6. Classification: Deep learning models like CNN and ResNet are trained. Traditional
machine learning algorithms like SVM and Random Forest are employed. Models
are trained on extracted features. Hyperparameter tuning optimizes performance.
Classification accuracy is evaluated. Models are fine-tuned for improved
performance.
7. Prediction: Trained models predict skin cancer likelihood. Prediction probabilities
are calculated. Visualizations like heat maps and gradient-weighted class activation
mapping provide insights. Prediction accuracy is evaluated. False positives and
negatives are minimized. Model performance is continuously monitored.

3.2.1 CNN AND MOBILENETV2 MODEL TRAINING

CNN Model Training: Train a Convolutional Neural Network (CNN) for skin
cancer detection using dermoscopic images. The CNN consists of 2-3
convolutional layers with max pooling, followed by flatten, dense, and dropout
layers. Hyperparameters include Adam optimizer, categorical entropy loss, 0.001
learning rate, 32 batchsize, and 10 epochs. Preprocess images by resizing,
normalizing, and augmenting. Achieve high accuracy (greater than 90%) and
sensitivity (greater than 95%) for effective skin cancer detection.
MobileNetV2 Model Training: Train a MobileNetV2 model for skin cancer
Detection by fine-tuning pre-trained weights on dermoscopic images. Add custom
classification layers and adjust hyperparameters: Adamoptimizer, categorical cross-
entropy loss, 0.0001 learning rate, 32 batch size, and 5 epochs. MobileNetV2’s
efficiency and accuracy make it ideal for real-time skin cancer detection applications.
Achieve high performance with minimal computational resources.

School of ECE, Reva University 10


Chapter 3 Proposed work 3.2. Proposed workflow

3.2.2 Code snippets (Keras)


CNN
From keras.models import Sequential
model = Sequential()
model.add (Conv2D(32,(3,3),activation=’relu’))...
MobileNetV2
from keras.applications import MobileNetV2
base_model=MobileNetV2(weights=’imagenet’,
include_top=False)
x=base_model.output
x=GlobalAveragePooling2D()(x)
x=Dense(2,activation=’softmax’)(x)

3.2.3 Dataset used


HAM10000: Largest public dataset, 10,000+ images, 7 skin lesion types.The
HAM10000 dataset is the largest public dataset for skin lesion analysis,
comprising over 10,015 dermatoscopic images of 7 common skin lesion types:
Melanoma (MEL), Melanocytic Nevus (NV), Basal Cell Carcinoma (BCC),
Actinic Keratosis (AK), Benign Keratosis (BK), Dermatofibroma (DF), and
Vascular Lesions (VASC). Collected from various sources, the dataset addresses
class imbalance, lesion size variability, skin type diversity, and image quality
differences. Images are annotated with lesion boundaries and diagnosis labels,
making it suitable for skin lesion classification, melanoma detection, and
dermatological image analysis research. The dataset is split into training (8,000),
validation (1,000),and test sets (1,015). Available on Kaggle, researchers can
access this valuable resource to develop and evaluate computer-aided diagnosis
systems for skin cancer detection.

Keypoints include:

• 10,015+ dermatoscopic images

• 7 skin lesion types

• Annotated with lesion boundaries and diagnosis labels

School of ECE, Reva University 11


Chapter 3 Proposed work 3.2. Proposed workflow

• Suitable for skin lesion classification and melanoma detection

• Available on Kaggle

• Addresses class imbalance and variability challenges

3.2.4 Skin cancer types


There are two primary categories of skin cancer: melanoma and non-melanoma.
Melanoma types include Superficial Spreading, Nodular, Acral Lentiginous,
Amelanotic, and Desmoplastic. Non-melanoma types include Basal Cell
Carcinoma (BCC), Squamous Cell Carcinoma (SCC), Merkel Cell Carcinoma,
Kaposi’s Sarcoma, and Sebaceous Gland Carcinoma. Rare skin cancers include
Dermatofibrosarcoma Protuberans, Atypical Fibroxanthoma, Pilar Cystic
Carcinoma, Microcystic Adnexal Carcinoma, and Adenoid Cystic Carcinoma.
Precancerous lesions include Actinic Keratosis, Bowen’s Disease, and Dysplastic
Nevus.

Expected Outcome
Accurate Detection: The skin cancer detection project aims to achieve accurate
detection of skin cancer from dermatoscopic images. This outcome reduces false
positives and false negatives, improving sensitivity and specificity. Enhanced
diagnostic accuracy supports early diagnosis and treatment. The project lays the
foundation for automated diagnosis, revolutionizing skin cancer detection. By
leveraging AI-powered algorithms, clinicians can make informed decisions.
Early Diagnosis: Early detection of skin cancer increases treatment effective-
ness, improving patient survival rates and reducing mortality. Timely
interventions and treatments enhance quality of life for patients. The project
facilitates early diagnosis, reducing healthcare costs associated with late-stage
treatment. Patients benefit from prompt diagnosis, saving lives. This outcome
underscores the project’s life-saving potential.
Reduced Healthcare Costs: The project reduces health care costs by minimizing
unnecessary biopsies, referrals, and treatments. Optimized resource allocation
streamlines clinical workflows and decision-making. Enhanced diagnostic accuracy
decreases unnecessary medications and procedures. The project promotes cost-
effective healthcare solutions. By reducing waste, the project enhances over-all
healthcare efficiency.

School of ECE, Reva University 12


Chapter 3 Proposed work 3.2. Proposed workflow

Improved Patient Outcomes: Improved patient outcomes result from timely di-
agnosis and treatment. Patient satisfaction and experience improve significantly.
Reduced anxiety and stress associated with diagnosis enable better disease man-
agement. The project promotes patient engagement and education. Patients benefit
from personalized treatment plans, enhancing overall well-being.
Enhanced Clinical Decision Support: The project enhances clinical decision support
for dermatologists. Objective, data-driven insights facilitate differential diagnosis
and treatment planning. Clinicians benefit from AI-assisted diagnosis,
streamlining workflows. The project augments clinician expertise, promoting
high-quality care. By leveraging AI, clinicians make informed decisions.

School of ECE, Reva University 13


Chapter 4

Future Scope

• Integration with Clinical Systems: Incorporate the detection system into hospital
information systems and electronic health records for seamless integration with
existing workflows.

• Real-time Applications: Develop mobile applications or portable devices for


real time skin cancer detection, increasing accessibility for remote and
underserved areas.

• Expanded Dataset Diversity: Continuously enhance the model’s accuracy by


incorporating diverse datasets that include varied skin tones, lesion types,
and imaging conditions.

• Advanced AI Techniques: Utilize advanced AI methods such as generative


adversarial networks (GANs) for data augmentation and improving model
robustness.

• Telemedicine Support: Support telemedicine platforms by providing accurate


and instant diagnostic tools for dermatologists and general practitioners.

• 3D Imaging and Analysis: Expand capabilities to analyze 3D skin images,


offering more detailed assessments of lesion depth and texture.

• Personalized Treatment Insights: Integrate predictive analytics to suggest


personalized treatment plans based on lesion characteristics and patient his-
tory.

• Regulatory Approvals and Clinical Trials: Pursue certifications and validations


from regulatory bodies to ensure the model meets medical-grade standards for
deployment in clinical settings.

15
References

[1] A. A. Agrahari, Pradhumn and N. Subhashini, “Skin cancer detection using deep
learning,” Futuristic Communication and Network Technologies: Select Proceedings of
VICFCNT 2020. Springer Singapore, 2022.

[2] H. Nahata and S. P. Singh, “Deep learning solutions for skin cancer detection and
diagnosis,” Machine learning with health care perspective: machine learning and
healthcare (2020), pp. 159–182, 2020.

[3] W. Gouda, “Detection of skin cancer based on skin lesion images using deep learn-
ing,” vol. 10, 2022.

[4] M.Naqvi,“Skin cancer detection using deep learning—a review,”Diagnostics13.11,


2023.

[5] W. Gouda, “Detection of skin cancer based on skin lesion images using deep learn-
ing,” vol. 10, 2022.

[6] Y. Li, “Skin cancer detection and tracking using data synthesis and deep learning,”
Workshops at the thirty-first AAAI conference on artificial intelligence, 2017.

[7] M. A. Hossin, “Melanoma skin cancer detection using deep learning and advanced
regularizer,” 2020.

[8] I. Kousis, “Deep learning methods for accurate skin cancer recognition and mobile
application,” Electronics 11.9 (2022).

[9] S. S. Han, “Keratinocytic skin cancer detection on the face using region-based
convolutional neural network,” JAMA dermatology 156.1, pp. 29–37, 2020.

[10] A. Ameri, “deep learning approach to skin cancer detection in dermoscopy images,”
Journal of biomedical physics engineering 10.6, 2020

18
SchoolofECE,RevaUniversity 16

You might also like