Next Article in Journal
Role of Platelet-Rich Plasma Injection in Anterior Cruciate Ligament Reconstruction: A Meta-Analysis of Randomized Controlled Trials
Next Article in Special Issue
Deep-Learning-Based 3D Dose Distribution Prediction for VMAT Lung Cancer Treatment Using an Enhanced UNet3D Architecture with Composite Loss Functions
Previous Article in Journal
Comparison of Controller Logics for Automating Vasopressor Administration Using a Hardware-in-Loop Test Platform
Previous Article in Special Issue
Interpretable Machine Learning-Based Concentric Regional Analysis of OCTA Images for Enhanced Diabetic Retinopathy Detection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Deep Learning-Assisted Early Detection of Skin Cancer from Dermoscopic Images in Underserved Clinical Settings

1
School of Computer Application, Lovely Professional University, Jalandhar 144411, Punjab, India
2
Computer Science and Technology, Manav Rachna University, Faridabad 121004, Haryana, India
3
Department of Computer Science and Engineering, Guru Nanak Dev Engineering College, Ludhiana 141006, Punjab, India
4
University Centre for Research and Development, Chandigarh University, Gharuan, Mohali 140413, Punjab, India
5
School of Computing, Gachon University, Seongnam 13120, Republic of Korea
6
Institute for Information & Communications Technology Planning & Evaluation (IITP), Daejeon 34000, Republic of Korea
*
Authors to whom correspondence should be addressed.
Bioengineering 2026, 13(4), 456; https://doi.org/10.3390/bioengineering13040456
Submission received: 11 February 2026 / Revised: 25 March 2026 / Accepted: 11 April 2026 / Published: 13 April 2026

Abstract

Skin cancer is caused by aberrant cells that proliferate uncontrollably after unrepaired DNA damage results in mutations in the epidermis. The majority of skin cancer is caused by high UV exposure from the sun, tanning beds, or sunlamps. Due to sociocultural hurdles, limited access to specialized dermatological care, and low public knowledge, many nations, including India, have higher mortality rates and late-stage presentations. The unequal distribution of specialized dermatological treatments, particularly in rural and underdeveloped areas, makes detection and treatment more difficult. For skin cancer, one of the most prevalent malignancies with a high death rate, early detection is crucial. This study gathered 1200 dermoscopic images from two clinics in Himachal Pradesh in order to solve these problems. In order to automatically classify dermoscopic clinical images into melanoma and non-melanoma skin cancer categories, this study compares VGG16 with ResNet-50. Preprocessing, lesion segmentation, and classification are all part of the suggested approach. A collection of 1200 dermoscopic images with clinical annotations was used to improve the models. ResNet-50 outperformed VGG16 in tests, with 93% accuracy and 96% AUC-ROC as opposed to 89% and 94%, respectively. These results emphasize how crucial model selection and preprocessing are to diagnostic performance. Ensemble methods, multi-class classification, explainability integration, and clinical validation will be investigated in order to facilitate the implementation of AI-assisted dermatological diagnostic tools.

1. Introduction

The environment constantly affects one of the body’s most vital organs, the skin. Therefore, maintaining healthy skin and facilitating prompt assistance for issues are crucial [1]. Skin cancer originates from the uncontrolled proliferation of skin cells with defective DNA structure and is one of the most common diseases worldwide [2]. Early discovery of skin cancer allows for permanent therapy, making rapid diagnosis crucial for positive outcomes. However, the traditional method of detecting skin cancer by visually inspecting lesions with the naked eye reduces detection accuracy [3]. Due to modern technology breakthroughs, the utilization of deep learning techniques has become significant, and image-based classification methods for diagnosing skin lesions [4,5]. The skin is the body’s main defense against outside dangers, and it is very important for keeping the body healthy and well [6]. The largest organ of the human body serves as a protective barrier against harmful infections, physical trauma, and unfavorable environmental circumstances. The skin comprises three principal layers: the epidermis, dermis, and hypodermis [7,8]. Skin cancer is a major public health issue, influenced by factors such as prolonged sun exposure, genetic predisposition, and environmental triggers. Forecasts for 2024 in the United States predict 108,270 new skin cancer cases, leading to 13,120 deaths [9].
As with all forms of cancer, early detection is crucial for skin cancer. Although skin cancer detection has become easier thanks to deep learning, there are still certain challenges. The accuracy of feature extraction and classification can be adversely affected by defects in dermoscopic images, such as hair obstruction, uneven illumination, and background noise [10]. A lot of current research either does not do enough preprocessing or relies on publicly available datasets that may not adequately reflect real clinical circumstances, especially in locations with limited resources [11,12]. Additionally, similar evaluations of CNN architectures using clinically acquired datasets are limited, hindering the selection of suitable models for reliable melanoma diagnosis [13]. These shortcomings reduce the clinical significance of AI-based diagnostic instruments. This paper introduces a comprehensive DL architecture for the classification of skin lesions using the CSI dataset. The framework integrates optimal image preprocessing techniques, including scaling, morphology-based hair removal, and noise reduction, to enhance skin lesion visibility and minimize artifacts in the skin image.
The work was performed with a comprehensive comparative analysis of two widely used pre-trained CNN architectures, VGG16 and ResNet-50, using transfer learning and fine-tuning methodologies on a meticulously selected CSI dataset of 1200 dermoscopic images collected from clinics in Himachal Pradesh and Ludhiana, India. This paper conducts a systematic comparison of multiple transfer learning architectures, VGG16 and ResNet-50, using a unified experimental framework with uniform dataset splitting, optimization settings, and evaluation criteria.
We utilize performance metrics such as accuracy, precision, recall, F1-score, and AUC-ROC to evaluate the model’s efficacy. Gradient-weighted Class Activation Mapping (Grad-CAM) is employed to enhance model interpretability by highlighting regions significant for diagnosis. The proposed technique aims to identify an effective and clinically reliable deep learning model for the early detection of melanoma.

1.1. Contribution of This Research

  • This paper provides several significant additions to the field of automated skin cancer diagnosis utilizing deep learning approaches, particularly in the classification of dermoscopic images into melanoma and non-melanoma categories.
  • This study introduces a comprehensive image preprocessing methodology that effectively addresses common noise factors in dermoscopic images, including hair artifacts and corner black pixels. By employing a morphology-based hair removal technique combined with median filtering and cropping, the preprocessing stage enhances lesion visibility and reduces background noise, thereby improving the quality of input data for subsequent segmentation and classification tasks.
  • The proposed method incorporates an accurate lesion segmentation phase that isolates the skin lesion from surrounding healthy tissue. This paper presents a rigorous comparative analysis of two prominent convolutional neural network architectures, VGG16 and ResNet-50, employing transfer learning and fine-tuning strategies on a curated clinical dermoscopic dataset.
  • This paper assesses deep learning models utilizing dermoscopic images gathered from regional clinical settings in Himachal Pradesh and Ludhiana, India, in contrast to many other studies that only use big public datasets. This dataset offers important insights into the application of AI in underprivileged healthcare settings by capturing actual issues, including imaging variability, class imbalance, and resource scarcity.
  • Grad-CAM visualization was used to highlight lesion regions, influencing the model’s decisions regarding interpretability. This approach provides dermatologists with visual explanations of predictions.
  • This work offers a methodical evaluation of deep learning models using uncurated clinical photos, showcasing resilience in real-world scenarios not included in benchmark datasets.

1.2. Related Work

In recent years, a number of studies have looked at various computer-aided methods for detecting skin cancer. In [14], the authors looked at how well ResNet-50v2, DenseNet201, GoogleNet, MobileNetv2, VGG16, Resnet152v2, Xception, and VGG19 could tell if a skin spot was a melanoma. There were three groups in the dataset: training (80%), validation (10%), and testing (10%). The most accurate model was GoogleNet, which got 76.08% of the classifications right. The researchers in [15] used a region-based and mask convolutional neural network to identify the diseased area. They then used Resnet152 to classify the lesions as either benign or malignant. The performance of automatic region-of-interest extraction in dermoscopic images is greatly enhanced by removing pixels from the picture that do not contain information about the tumor. A technique was introduced by [16] to detect both benign and malignant cancer types with ResNet-50, Inceptionv3, and ResNet Inception deep learning models. The suggested approach enhances the brightness of lesion pictures and reduces noise using image enhancement techniques, attaining ideal results with an accuracy of 0.8576 when utilizing the Inceptionv3 model. The aim of this work is to aggregate the preprocessing approaches relevant to skin cancer images. The study by [17] provides a significant basis for researchers in the domain of automated skin cancer diagnosis. It emphasizes the methodology; datasets; performance indicators, including accuracy and precision; distinctive methodological contributions; and limits recognized by each study. The study by [18] presents an improved method for enhancing skin image classification to remove sparse noise. The study by [19] combined a genetic algorithm (GA) with the Alternating Direction Method of Multipliers (ADMM). That study used the DenseNet method for the classification of the optimized sparse matrix. Contrastive learning focuses on the use of genome methods, physiological signals, medical imaging, and EHRs in medicine to develop advanced systems for healthcare. An enhanced technique was developed in [20] by combining an improved sparse autoencoder (SAE) for feature learning with a Softmax regression classifier for disease classification. Instead of using activations, the SAE regularizes weights, which improves performance. The approach outperformed existing machine learning methods with accuracies of 91%, 97%, and 98% on datasets for heart disease, cervical cancer, and chronic kidney disease, respectively. Using a sizable dataset, [21] created hybrid ensemble models and improved machine learning models for coronary heart disease (CHD) prediction. They achieve excellent accuracy, sensitivity, and specificity by comparing upgraded versions and ensemble techniques with baseline models such as decision trees and support vector machines. Scalability and robustness are highlighted in that study, especially in situations with limited resources. Using SHapley Additive exPlanations (SHAPs) to explain model predictions, their research proposes an interpretable machine learning method for diagnosing hepatitis B. In [22], bilirubin was identified as a critical factor in predicting patient mortality after evaluating several machine learning algorithms. The goal of that project was to increase model openness and help medical professionals comprehend machine learning choices.
A number of deep learning models, including VGG16, ResNet-50, Xception, DenseNet169, and MobileNetv2, were compared for performance in this study. Because of their unique designs and proven efficacy in image classification tasks, we selected VGG16 and ResNet-50 for in-depth examination in this study. Despite being taken into consideration, models like MobileNetv2 were not included in the primary findings because of their poorer dataset performance, which was demonstrated by early tests.

1.3. Paper Outline

The outline of this paper is as follows: Section 2 describes this study’s proposed methodology. Section 3 describes the methods and feature extraction results using CNN pre-trained models. In Section 4, the experimental results are fully analyzed, comparing pre-trained CNN models. In addition, that section summarizes the findings, highlighting the ResNet-50 model’s higher performance in binary melanoma and non-melanoma lesion categorization. Finally, Section 5 suggests clinical validation studies, comprehension framework integration, multi-class classification, ensemble modeling, and other research directions to improve AI-driven skin cancer diagnostic tools.

2. Proposed Methodology

The proposed approaches to dermatological condition classification are outlined and evaluated in this part. The entire procedure consists of the following components: the initial step involves picture preprocessing, followed by image segmentation, then feature extraction, concluding with classification. Figure 1 illustrates the proposed dermoscopy-driven deep learning framework for the classification of melanoma and non-melanoma skin lesions.

2.1. Dataset Overview

A total of 1200 photos from the Ziva Skin & Hair Clinic in Hamirpur, Himachal Pradesh, and Sparsh Aesthetics in Ludhiana, with various attributes, such as the patient’s gender, the affected area, symptoms, and the name of the skin illness, were used to assess the suggested techniques. The specifications of the clinical data are shown in Table 1.

2.2. Image Preprocessing

These images exemplify key morphological features such as asymmetry, border irregularity, color variation, and texture heterogeneity, which are critical for accurate skin cancer diagnosis [23]. Image preprocessing is the process of converting an image into a more suitable and useful form. Skin scans can show distortion, interference, or superfluous hair. The quality of the photographs defines the effectiveness of an image processing system. Processing reduces complexity, improves accuracy, and raises image quality for subsequent processing. The preprocessing steps include image resizing, hair removal and noise elimination.
Images of varying dimensions do not consistently exhibit an equivalent number of characteristics. Therefore, the input images are scaled to mitigate this issue. This diminishes processing duration and improves the system’s overall efficacy. In this investigation, we resized all input images to dimensions of 224 × 224.
The stages of preprocessing and feature extraction are described in Figure 2. Initially, the picture was transformed to grayscale, eliminating color information that might obstruct edge detection. The Canny edge detector was utilized to identify significant variations in brightness that indicate edges in the hair. Highly bright pixels were excluded due to their low probability of representing hair. A morphological closing procedure was performed to improve edge refinement, smooth edges and close tiny gaps. Erosion was subsequently utilized to remove solitary, noisy pixels that could be mistakenly identified as edges. The probabilistic Hough Line Transform was subsequently employed to detect lines inside the improved edges. Since they are unlikely to resemble hair, lines that are too short or long have been removed. The pixels in the dilated mask have been interpolated with the median value of the neighboring pixels, thus filling gaps in the hair and producing a more polished outcome.

2.3. Feature Extraction and Selection by Using Traditional Approaches

We used gradient-based descriptors, such as Canny edge detection and HOG, in conjunction with texture and form characteristics, including area, perimeter, and contour anomalies, for feature extraction. These techniques are essential for precisely identifying and evaluating textural characteristics and lesion boundaries in dermoscopic images. Using the standard procedure for extraction and selection, the following properties have been recorded in Table 2.
HOG is the descriptor for forms and textural aspects that depend on gradient orientations and magnitudes; it is derived from grayscale pictures and does not directly employ color data.
The Canny edge detection technique is used to find edge characteristics in pictures of skin. This approach works well for finding sharp intensity gradients, which makes it possible to precisely locate the edges of lesions by getting rid of noise and linking edge segments. The Canny method is useful for finding clinically important edges in dermatological images because it uses several steps, including calculating gradients, suppressing non-maxima, and using hysteresis thresholding. Figure 3 shows a visualization of the skin lesion analysis pipeline for image preprocessing and model interpretability. Skin lesion images are processed through four stages: (a) the original clinical image; (b) the corresponding grayscale conversion used to enhance structural details; (c) edge detection using the Canny algorithm to define lesion boundaries and textures; and (d) Grad-CAM (Gradient-weighted Class Activation Mapping) heat maps superimposed on the original image. Grad-CAM creates heat maps that reveal the model’s viewing location in the image while classifying. This is accomplished by utilizing the gradients that flow into the network’s last convolutional layers. A coarse localization map was computed using gradients, which highlights areas of increased decision importance. The right panel shows a high-resolution microscopic picture of the skin with the heat map superimposed on top; this allows one to see exactly which parts of the picture were crucial to the model’s predictions. By incorporating Grad-CAM, the suggested method improves both visibility and error analysis. Additional investigation into misclassified cases, which might be features inside or unrelated to the region of interest, can be carried out using heat maps. A dimensionality reduction technique called principal component analysis (PCA) turns a set of possibly correlated variables into a set of linearly independent variables.

2.4. Using Grad-CAM to Make AI Understandable

For clinical decision-support systems that use deep learning models, explainability is very important, especially when they are used for high-risk tasks like finding skin cancer. To improve transparency and therapeutic trust, this work uses Gradient-weighted Class Activation Mapping (Grad-CAM) as an explainable AI tool for visually interpreting model predictions. Grad-CAM works by calculating the gradients of the projected class score in relation to the feature maps of the last convolutional layer. This makes a rough localization map that shows the parts of the picture that had the biggest effect on the classification decision. When looking at dermoscopic images, these heat maps always highlight important clinical lesion features such as asymmetry, border abnormalities, texture heterogeneity, and color variations. By putting the Grad-CAM heat maps on top of the original dermoscopic pictures, physicians can see where the model is focusing its attention.
We adjusted for the dataset’s 5:1 class imbalance using a weighted binary cross-entropy loss function. Specifically, the weight of the melanoma class was increased to emphasize its detection. In order to mitigate this problem, the model was trained using a weighted binary cross-entropy loss function, which penalizes misclassification of melanoma images more severely. These class weights were computed by Equation (1):
w c = N C n c
where wc is the class weight, N is the number of samples, C is the number of classes, and nc is the number of sample classes. After that, the resulting weight for melanoma for the 200 samples is 3.0, and for non-melanoma, it is 0.6.
We conducted additional ablation trials to verify the effectiveness of this alteration, as shown below in Table 3.
The ablation findings show that class weighting increases melanoma sensitivity (recall) from 0.75 to 0.93, a substantial improvement. This demonstrates that the model significantly improves its ability to identify cases of minority-class melanoma, which is crucial in clinical diagnostics where false negatives need to be reduced. Overall, the weighted loss increases the AUC from 0.88 to 0.96, indicating improved robustness and class separability.

3. Method

3.1. Experimental Framework

The experimental framework was executed in a regulated and replicable computational setting utilizing Python (version 3.9) as the primary programming language, with deep learning models created and trained through TensorFlow 2.x and the Keras API. OpenCV and scikit-image were used for picture preparation tasks like scaling, converting to grayscale, removing hair with morphological techniques, finding edges, and reducing noise. NumPy and Pandas were used for numerical calculations and working with datasets. All of the tests were done on a workstation with an NVIDIA GPU, CUDA toolkit, cuDNN acceleration, 16 GB of RAM, and SSD storage. This made training and inference quick and easy.

3.2. Configuration for Model Experiment

For each experiment, 80% of the dataset was used for training, 10% for validation, and 10% for testing. To ensure that the class distribution in each split was consistent and to prevent any potential data leakage, stratified sampling was employed. Our approach ensured that each model was trained on a representative sample of the entire dataset by maintaining a constant ratio of melanoma to non-melanoma photos across all splits. A fixed random seed of 42 was applied to the same data split in subsequent tests. The Adam optimizer was used to train all models, ensuring consistent convergence throughout. Parameters of Adam optimizer: learning rate = 0.0001, β1 is 0.9, β2 is 0.999, and weight decay is 1 × 10−5.
The model was trained using a batch size of 32 for 50 epochs. For completely connected layers, the dropout rate was 0.5. Early halting was started when validation loss did not improve for five consecutive epochs. Every ten epochs, the learning rate scheduler used a 0.0001 initial learning rate with a 0.9 factor of exponential decay. This configuration was used for all models, including ResNet-50, VGG16, Xception, DenseNet169, and MobileNetv2, in order to provide consistent training settings across testing.
Training, validation, and evaluation sets were kept strictly apart throughout the process to ensure experimental rigor and to avoid data leaking. Normalization and augmentation, two preprocessing techniques that potentially cause data-dependent bias, were only used after the dataset was split. Only the training set was subjected to data augmentation (such as rotation, flipping, and brightness alteration); the validation and evaluation sets were kept entirely hidden and unchanged, with the exception of deterministic scaling and normalization. To further ensure independence between training and evaluation data, no pictures from identical patients or acquisition sessions were broken up over several splits. The consistency of the data splitting procedure was further ensured by the use of a consistent random seed.

3.3. Implementation of CNN Pre-Trained Model for Feature Extraction (ResNet-50 Model, VGG16 Model, Xception, DenseNet169 and MobileNetv2)

ResNet-50, a 50-layer deep residual network pre-trained on the ImageNet dataset, functions as an effective feature extractor for clinical images by transfer learning [24]. By eliminating the original classification head and employing the convolutional base, ResNet-50 acquires intricate hierarchical representations encompassing texture, shape, and color information inherent to medical imaging modalities.
The deep convolutional neural network architecture VGG16 [25] is distinguished by its basic, yet powerful design and consistent use of modest 3 × 3 convolutional filters. Using parallel convolutional filters of different sizes inside its Inception modules, the inception architecture, also known as GoogLeNet, allows for multi-scale feature extraction that captures various spatial patterns. Presented on the ImageNet dataset, the Inception model removes the last classification layers and uses the convolutional base as a feature extractor to efficiently transfer learnt visual features to clinical image analysis. Rich, multi-scale feature representations produced by this method capture intricate textural and structural information, qualities vital for identifying small disease changes.
By substituting depth-wise separable convolutions for conventional inception modules, which effectively capture spatial and channel-wise correlations and, therefore, lower model complexity, the Xception architecture expands the Inception model [26]. Xception creates detailed feature embedding on a convolutional basis and removes the top classification layers that enhance classification tasks in medical imaging, especially when training data is limited.
The design of DenseNet169 [27] is a densely linked convolutional neural network, which allows for enhanced information flow and gradient propagation by connecting each layer to every other layer in a feed-forward fashion. Originally trained on the ImageNet dataset, DenseNet169 removes its final classification layers and uses dense connectivity to capture complex textures and form patterns inside medical images, therefore acting as a potent feature extractor for clinical images.
MobileNetv2 [28] is a lightweight convolutional neural network architecture designed for efficient inference on resource-constrained smartphones using inverted residuals and linear bottlenecks to preserve representational power with fewer parameters. Pre-trained on the ImageNet dataset, MobileNetV2 performs as an effective feature extractor for clinical images by truncating the last classification layers and exploiting its convolutional basis to gather prominent hierarchical properties related to texture, shape, and color. Especially helpful when using clinical imaging models in limited-compute situations, this model’s efficiency allows for fast extraction of deep representations appropriate for downstream classification tasks.

3.4. Mathematical Approach

Automated skin lesion diagnosis is reframed as a supervised binary classification problem in the suggested framework in Equation (2):
D = x i , y i y i = 1 N
where D denotes the dataset, x i   R 224 224 3 represents a preprocessed dermoscopic image, and y i 0 , 1 corresponds to non-melanoma skin cancer (NMSC) and melanoma (MEL).
Image preprocessing is conceptualized as a composite change in Equation (3).
x = s [ h ( r x ]
where s pertains to lesion segmentation, h indicates morphological hair and noise reduction, and r signifies resizing. This modification diminishes noise variance and amplifies lesion-specific information.
In conventional analysis, texture and form characteristics are derived using statistical descriptors such as the Gray-Level Co-occurrence Matrix.
DL models acquire a nonlinear correspondence in Equation (4).
f θ : x 0 , 1
This equation is parameterized by θ, transforming the input x into a continuous value in the interval [0, 1]. Convolutional layers generate hierarchical feature representations in Equation (5).
h l = σ w ( l ) h l 1 + b l
The activation at layer l is represented by h l , the weight matrix is w ( l ) , the bias vector is b l , and σ is a nonlinear activation function.
ResNet-50 employs residual connections of form in Equation (6), where F h l   residual mapping is typically built from many convolutional layers.
h l + 1 = h l + F h l
This equation can mitigate vanishing gradients and promote deeper, more intricate feature learning relative to VGG16. Training reduces binary cross-entropy loss in Equation (7):
L = 1 N i = 1 n [ y i l o g y ^ l + 1 y i l o g 1 y ^ l ]
where L is the binary cross-entropy loss value for the specified dataset, and N is the dataset’s entire sample. y i is the exact ground truth label for the ith sample. In binary classification, this is often 0 or 1. y ^ l is the predicted probability for the ith sample, which belongs to the positive class (class 1). This is often the result of a sigmoid activation function. The model produces an estimated posterior probability of P(y = 1|x), aiding in threshold-based clinical decision-making. Evaluation metrics include accuracy, precision, recall, F1-score, and AUC-ROC to gauge classification efficacy. The superior AUC and accuracy achieved by ResNet-50 illustrate its advanced capacity to comprehend complex, nonlinear decision limits crucial for reliable melanoma detection.
To ensure reproducibility and a fair comparison across various model architectures, all experiments were carried out using the same preprocessing pipeline, training schedule, and evaluation protocol.

4. Results and Discussions

4.1. Clinic Skin Cancer Images Using ResNet-50

This research employed ResNet-50 using transfer learning, utilizing weights pre-trained on the ImageNet dataset. The convolutional basis layers were refined with a specialized dermoscopic dataset to tailor the model for skin cancer detection. Image preprocessing standardized input dimensions to 224 × 224 pixels, conforming to the specifications of ResNet-50. The model utilized the Adam optimizer, along with a learning rate scheduler and a binary cross-entropy loss function. The experimental evaluation revealed that ResNet-50 achieved an accuracy of 93% in classifying MEL and non-melanoma skin cancer (NMSC), demonstrating substantial discriminatory capability, as well as training and validation accuracy or loss, as shown in Figure 4.

4.2. Clinic Skin Cancer Images Using VGG16

The dermoscopic images that were input were normalized and scaled to 224 × 224 pixels. The goal of data augmentation was to enhance generalizability by increasing the size of the training dataset. Zooming, brightness changes, horizontal and vertical flips, and random rotations were all strategies used for augmentation. The Adam optimizer was used to train the model, and the starting learning rate was set to 0.0001. The loss function utilized was binary cross-entropy. The three subsets of the dataset were as follows: 80% for training, 10% for validation, and 10% for testing. In order to avoid overfitting and to keep the top-performing model, we used early halting and model checkpoints. Figure 5 shows the accuracy or loss of the VGG16 model during training and validation.
Figure 6 depicts the ResNet-50 model before and after conventional performance tests, which were used to fine-tune it. Precision improves from 84.10% to 94%, recall (sensitivity) from 87.50% to 93%, F1-score from 85.77% to 93%, and accuracy from 86.25% to 93% following fine-tuning. These results demonstrate that fine-tuning considerably improves the ResNet-50 model’s discriminative capabilities and classification resilience.
Figure 7 shows how the VGG16 model performed before and after fine-tuning, using conventional evaluation measures to compare the two. Before fine-tuning, the model had a high accuracy (93.89%) and recall (96%) but a poor precision (65.31%) and F1-score (77.73%). This means that the model was making predictions that were not evenly distributed across classes. After fine-tuning, precision went up a lot, to 92%, and F1-score went up to 90%. However, accuracy and recall went down a little, to 89%.
These results indicate that fine-tuning improves the model’s accuracy and overall balance between sensitivity and specificity, resulting in more dependable melanoma categorization. After fine-tuning, a side-by-side comparison of the ResNet-50 and VGG16 models shows different performance patterns. The ResNet-50 model shows steady and constant progress across all assessment criteria, with accuracy, precision, recall, and F1-score scores of about 93–94%. This means that the model is better at representing features and classifying data. On the other hand, the VGG16 model shows a trade-off after fine-tuning, with big improvements in precision and F1-score, which means better prediction balance, but a small drop in accuracy and recall.
In addition to its deeper architecture and residual connections, ResNet-50’s improved performance can be attributed to its capacity to capture complicated aspects in the dataset. Our morphology-based preprocessing workflow produces high-quality dermoscopic pictures that improve feature visibility and allow the model to extract more discriminative and detailed features. Additionally, the model is able to generalize better on the minority class (melanoma) without overfitting to the majority class (non-melanoma) thanks to ResNet-50’s residual connections, which assist in alleviating problems caused by the dataset’s class imbalance.

4.3. Comparative Analysis of ResNet-50 and VGG16 Models

Automated skin cancer identification using dermoscopic images is the subject of this study, which compares and contrasts two well-known deep convolutional neural network designs, ResNet-50 and VGG16. The ResNet-50 model achieved an AUC of 0.96, indicating an exceptional capacity to distinguish between positive and negative classifications. The curve demonstrates a rapid increase in TPR with few variations in FPR, suggesting robust predictive effectiveness with decreased false positives. The VGG16 model demonstrated somewhat diminished, albeit strong, performance with an AUC of 0.94. The ROC curve has a similar pattern but indicates a slightly higher rate of false positives compared to the true-positive rate when juxtaposed with ResNet-50. The AUC difference (0.96 vs. 0.94), illustrated in Figure 8 and Figure 9, demonstrates that ResNet-50 outperforms VGG16 in this classification task, presumably owing to its deeper architecture and the integration of residual connections, which improve gradient flow and facilitate the learning of more complex features.
The testing results demonstrate that ResNet-50 surpassed VGG16, attaining an accuracy of 93% in contrast to 89%. This outcome may first seem paradoxical, given ResNet-50’s sophisticated residual learning framework, intended to mitigate vanishing gradients in deeper architectures. The increased parameter count in ResNet-50 enhances its representational ability, perhaps aiding in the capture of complex morphological changes in skin lesions in the specified dataset.
The confusion matrix in Figure 10 shows that the proposed model is very good at finding non-melanoma lesions since it has a high true-negative rate. The algorithm properly identifies the majority of melanoma cases; nonetheless, a portion of melanoma samples continues to be misclassified as non-melanoma, which is clinically important. This shows that the model needs to be improved even more to reduce false negatives and to make melanoma detection more reliable.
Figure 11 illustrates the different skin cancer types as two categories: melanoma and non-melanoma.

4.4. Comparison with Existing Study

Table 4 displays the dataset used in this research, technique details, and the results of the comparison of the proposed models with existing model results.
Table 4. A comparative analysis of the proposed model with existing models.
Table 4. A comparative analysis of the proposed model with existing models.
Ref.Used DatasetTechniques UsedAccuracyPrecisionRecallF1-Score
 [16]HAM10000Modified ResNet-50 86.00%84.00%86.00%86.00%
 [29]ISIC 2015, ISIC 2019CNN pre-trained model88.83%91.07%87.68%89.32%
EXISTING METHOD[30]HAM10000ResNet, InceptionV3, and ResNet Inception85.7%83.00%86.00%84.00%
[31]Kaggle DatasetsAlexNet, MobileNet, ResNet, VGG16, and VGG1984.94%79.29%1.00%88.45%
[32]PH2, ISBI2016, and ISIC2017ResNet5086.5%87.01%85.57%86.28%
[33]Kaggle and ISIC DatasetsEfficientNetB3, MobileNetV290.7%95.00%97.00%95.00%
PROPOSED METHODRESNET50Clinical Image Data (CSI)ResNet5093.00%94.00%93.00%93.00%
VGG16Clinical Image Data (CSI)VGG1689.00%92.00%89.00%90.00%

4.5. Critical Evaluation of Existing Work and Progressive Contributions

Although Table 3 offers a quantitative comparison, a more thorough analysis reveals a number of significant differences between the suggested study and the body of the current literature. The majority of earlier studies depend on publicly available benchmark datasets (such as ISIC and HAM10000), which are usually carefully selected and recorded under controlled circumstances. This study, on the other hand, focuses on actual clinical data from underprivileged settings, which presents difficulties, including noise, class imbalance, and acquisition condition unpredictability. As a result, the problem setting is more typical of real-world deployment situations.
Despite the model’s overall good performance, several melanoma samples that were misidentified pointed to significant areas that needed work. For instance, the paucity of training data for these specific cases may have contributed to the model’s frequent misclassification of melanomas with small lesions or uneven margins. When we looked at the inaccurately classified data, we saw that the model struggled with images that had background noise or hair artifacts, despite our preparation efforts. These misclassifications suggest that the model would benefit from more training with more challenging instances, particularly small and atypical melanomas, which are underrepresented in the dataset.
Additionally, Grad-CAM is incorporated into this work as a validation method to evaluate clinical feature alignment, guaranteeing that model choices agree with medically significant traits such as asymmetry and uneven borders. This closes the gap that has been understudied in previous research between algorithmic predictions and physician interpretability. This study stresses a system-level adaptation of current designs (ResNet-50 and VGG16) under a unified and regulated experimental framework, in contrast to works that concentrate on suggesting new topologies.

4.6. Effectiveness and Clinical Significance

The proposed transfer learning system demonstrated superior performance in binary skin cancer classification, with ResNet-50 exceeding VGG16 in accuracy and AUC-ROC metrics. The enhanced efficacy of ResNet-50 can be ascribed to its deeper architecture and residual connections, facilitating the proficient acquisition of intricate lesion characteristics. Elevated sensitivity is essential in melanoma diagnosis owing to the grave repercussions of overlooked diagnoses. Employing a weighted loss function enhances melanoma detection while preserving an equitable balance with specificity. Consistently elevated AUC-ROC values signify dependable differentiation across choice thresholds.
Based on their capacity to catch intricate details in dermatological images, we concentrated our tests on two well-known models, VGG16 and ResNet-50. Based on an earlier study, several models were excluded from the final comparative analysis because of their less-than-ideal performance. We prioritized VGG16 and ResNet-50 for further investigation since these models showed either slower convergence or worse AUC-ROC scores in early trials.
Because Grad-CAM interpretability was incorporated, clinicians were better able to understand and accept the model’s suggestions, especially in areas where they lacked knowledge. By highlighting areas of the image that most influenced the model’s classification decision, Grad-CAM helps ensure that the model’s predictions are consistent with clinically significant features, such as asymmetry and border irregularities. This increases confidence in AI-assisted diagnosis, especially in impoverished areas where dermatological expertise is scarce.
An optimization method based on data augmentation and decision threshold adjustment was used to reduce false negative predictions. In order to improve model sensitivity and give priority to the identification of possibly malignant lesions, the melanoma classification threshold was first modified. Second, during training, additional augmentation methods that highlighted lesion contrast and scale differences were used.

4.7. Considerations for Edge Inference and Deployment Feasibility

We assessed the computational viability of the suggested framework for deployment in low-resource clinical environments based on model complexity, input size, and inference characteristics noted during experimentation, even though this study did not include full hardware-level benchmarking on dedicated edge devices. The suggested models (ResNet-50 and VGG16) use photos with a resolution of 224 × 224, and inference was carried out effectively on a workstation with a GPU, showing no signs of processing bottlenecks. Both architectures can be modified for deployment on resource-constrained devices using common optimization techniques like model quantization and pruning because they are widely supported by lightweight inference frameworks like TensorFlow Runtime.

4.8. Tuning and Optimizing Hyperparameters

The model’s hyperparameters were optimized to enhance its functionality, prevent overfitting, and increase its generalizability. Through a comprehensive evaluation on the validation set, we successfully optimized critical hyperparameters such as learning rate, batch size, the number of trainable layers, dropout rate, and class weight values. We maintained a consistent convergence by meticulously adjusting the learning rate. If one wants to speed up training while keeping losses modest, the best starting value is 0.0001. The GPU’s memory and the model’s convergence speed were the determining factors in the batch size that we used to keep the gradient updates within budget. We used dropout regularization on the completely connected layers to prevent the model from fitting too well. In order for the models to be able to process dermoscopic data that is particular to a certain field without affecting previously trained representations, we intentionally altered the deeper convolutional layers. We adjusted the class weights in the weighted binary cross-entropy loss function to make melanoma more sensitive while keeping the overall specificity the same in order to fix the imbalance between classes. To prevent performance from deteriorating further, we also used early halting. Because all of the tested deep learning architectures performed adequately and fairly, this configuration of hyperparameter tuning made melanoma detection easy.
A significant issue with our model was the frequency of false negatives, in which cases of melanoma were mistakenly classified as non-melanoma. In clinical settings, where missed diagnoses can lead to treatment delays, these misclassifications are especially troubling. Atypical and smaller lesions, which are commonly seen in real clinical practice, were more likely to be incorrectly identified, according to the analysis. We suggest adding more cases of these lesions to the training dataset and investigating the possibility of modifying the loss function to give priority to reducing false negatives in order to address this. Additionally, the durability of the model can be strengthened by incorporating higher-quality images from clinical settings.

4.9. Generalizability and Clinical Translation Considerations

The suggested model performs well on the gathered dataset, but further investigation is needed to determine whether it can be applied to larger clinical settings. Due to the dataset’s restriction to two Northern Indian clinics, there may be biases pertaining to patient demographics, imaging procedures, and disease presentation.
Device variability: Semi-controlled smartphone-based dermoscopy was used to obtain the images. Dermatoscopes, smartphone cameras, and imaging resolutions vary greatly in practical use. Variations in light, magnification, and color calibration can cause domain shift, which could impair model performance.
Demographic variability: Skin cancer manifests differently in people of different ages, genders, and ethnicities.
Clinical heterogeneity: There are comparatively obvious diagnostic cases in the sample. However, unclear lesions, early-stage melanoma, and outwardly comparable benign diseases are examples of real-world clinical circumstances that make classification more challenging.

4.10. Clinical Translation Roadmap

External Verification: To evaluate robustness against domain shift, the model needs to be evaluated on independent multi-center datasets (such as ISIC, HAM10000, and additional Indian clinical datasets).
Prospective Clinical Evaluation: To assess diagnostic accuracy, sensitivity, and usefulness in actual clinical processes, a prospective study involving dermatologists should be carried out. It is important to evaluate metrics like decision speed, clinician–AI agreement, and false-negative rates.
Integration into Clinical Workflow: Mobile health apps or dermoscopy systems can use the model as a decision-support tool. It is advised to use a triage-based strategy, prioritizing dermatologist review of high-risk lesions identified by AI.

5. Conclusions

This study presented a comprehensive deep learning system for the automatic detection of skin cancer using dermoscopic clinical pictures, highlighting a comparative examination of the VGG16 and ResNet-50 architectures. A thorough pipeline was developed, including clinically oriented image preprocessing, lesion segmentation, classification by transfer learning, and the incorporation of explainability. The preprocessing method, namely morphology-based hair removal and lesion-centric segmentation, markedly improved image quality and reduced irrelevant background noise, thus enhancing model performance. The experimental results clearly demonstrate that ResNet-50 outperforms VGG16 in the binary classification of melanoma and non-melanoma skin cancer, achieving an accuracy of 93% and an AUC-ROC of 0.96 compared to VGG16’s accuracy of 89% and AUC-ROC of 0.94. ResNet-50 works better because it has a deeper architecture and residual connections that let it learn more about subtle lesion features, such as texture heterogeneity, color variation, and border anomalies. The study emphasizes the significance of clinical relevance and dependability alongside basic performance metrics.
Owing to the dataset’s limited geographic scope, it only includes photos taken from two clinics in one area, which is one of the study’s main limitations. A bigger, multi-center dataset could enhance the model’s generalizability, even though these photos offer a useful starting point. To better assess the model’s resilience and clinical suitability for a wide range of populations, future research should try to enlarge the dataset to include pictures from other geographical locations and clinical contexts.
Future research should initially transform the binary framework into a multi-class classification system. This would make the system more like dermatologists, who look at more than just two types of lesions. Second, ensemble learning approaches employing architectures that work well with each other should be explored, such as ResNet, DenseNet, and EfficientNet. These ensembles may capture diverse feature representations and enhance generalization, particularly for lesions that are difficult to visualize or differentiate.

Author Contributions

Conceptualization, A.K. (Anchal Kumari), P.R., A.K.S. and S.R.; methodology, A.K. (Anchal Kumari), P.R., A.K.S., S.R. and A.K. (Aman Kataria); software, P.R. and A.K.S.; validation, S.R. and A.K. (Anchal Kumari); formal analysis, P.R. and A.K.S.; investigation, A.K. (Aman Kataria) and P.R.; resources, P.R. and A.K.S.; data curation, P.R. and A.K.S.; writing—original draft preparation, A.K. (Anchal Kumari), P.R. and A.K.S.; writing—review and editing, A.K. (Anchal Kumari), P.R., A.K.S., S.R., A.K. (Aman Kataria), H.M. and T.K.; visualization, A.K. (Anchal Kumari), P.R., A.K.S., S.R. and A.K. (Aman Kataria); supervision, S.R., A.K. (Aman Kataria), H.M. and T.K.; project administration, A.K. (Aman Kataria), H.M. and T.K.; funding acquisition, H.M. and T.K. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by an Institute of Information & Communications Technology Planning & Evaluation (IITP) grant funded by the Korean Government (MSIT) (No. RS-2025-02216517, Development of Reconfigurable AI Processor Software Framework Technologies). This work was supported by the Gachon University research fund of 2025 (GCU-202503150001).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The image dataset used in this study was collected from clinics and is subject to patient confidentiality agreements. Requests for access to the data can be directed to the corresponding authors, subject to institutional approvals.

Acknowledgments

The primary author is grateful to Punam Rattan at Manav Rachna University, who guided her throughout this research. The primary author is also thankful to Abhishek Thakur and Ruchi S. Muteja, who provided the data and validated this study.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ahmed, A.; Sun, G.; Bilal, A.; Li, Y.; Ebad, S.A. Precision and efficiency in skin cancer segmentation through a dual encoder deep learning model. Sci. Rep. 2025, 15, 4815. [Google Scholar] [CrossRef] [Scilit]
  2. Ozdemir, B.; Aslan, E.; Pacal, I. Attention Enhanced InceptionNeXt Based Hybrid Deep Learning Model for Lung Cancer Detection. IEEE Access 2025, 13, 27050–27069. [Google Scholar] [CrossRef] [Scilit]
  3. Bilal, A.; Shafiq, M.; Obidallah, W.J.; Alduraywish, Y.A.; Long, H. Quantum computational infusion in extreme learning machines for early multi-cancer detection. J. Big Data 2025, 12, 27. [Google Scholar] [CrossRef] [Scilit]
  4. Patil, R.; Bellary, S. Machine learning approach in melanoma cancer stage detection. J. King Saud Univ.—Comput. Inf. Sci. 2022, 34, 3285–3293. [Google Scholar] [CrossRef] [Scilit]
  5. Khaleel, M.I.; Lakizadeh, A. Skin cancer diagnosis using hybrid deep pre-trained convolutional neural networks. IAES Int. J. Artif. Intell. (IJ-AI) 2025, 14, 2291–2301. [Google Scholar] [CrossRef] [Scilit]
  6. Mazhar, T.; Haq, I.; Ditta, A.; Mohsan, S.A.H.; Rehman, F.; Zafar, I.; Gansau, J.A.; Goh, L.P.W. The Role of Machine Learning and Deep Learning Approaches for the Detection of Skin Cancer. Healthcare 2023, 11, 415. [Google Scholar] [CrossRef] [Scilit]
  7. Cui, Q.; Ding, Z.; Chen, F. Hybrid directed hypergraph learning and forecasting of skeleton-based human poses. Cyborg Bionic Syst. 2024, 5, 0093. [Google Scholar] [CrossRef] [Scilit]
  8. Priyadharshini, N.; N., S.; Hemalatha, B.; Sureshkumar, C. A novel hybrid Extreme Learning Machine and Teaching-Learning-Based Optimization algorithm for skin cancer detection. Healthc. Anal. 2023, 3, 100161. [Google Scholar] [CrossRef] [Scilit]
  9. Nambisan, A.K.; Maurya, A.; Lama, N.; Phan, T.; Patel, G.; Miller, K.; Lama, B.; Hagerty, J.; Stanley, R.; Stoecker, W.V. Improving Automatic Melanoma Diagnosis Using Deep Learning-Based Segmentation of Irregular Networks. Cancers 2023, 15, 1259. [Google Scholar] [CrossRef] [Scilit]
  10. Keerthana, D.; Venugopal, V.; Nath, M.K.; Mishra, M. Hybrid convolutional neural networks with SVM classifier for classification of skin cancer. Biomed. Eng. Adv. 2023, 5, 100069. [Google Scholar] [CrossRef] [Scilit]
  11. Nematzadeh, H.; García-Nieto, J.; Navas-Delgado, I.; Aldana-Montes, J.F. Ensemble-based genetic algorithm explainer with automized image segmentation: A case study on melanoma detection dataset. Comput. Biol. Med. 2023, 155, 106613. [Google Scholar] [CrossRef] [Scilit]
  12. Khaleel, M.I.; Lakizadeh, A. Transfer-learning based skin cancer diagnosis using fine-tuned AlexNet by marine predators algorithm. IAES Int. J. Artif. Intell. (IJ-AI) 2024, 13, 4822–4832. [Google Scholar] [CrossRef] [Scilit]
  13. S M, J.; P, M.; Aravindan, C.; Appavu, R. Classification of skin cancer from dermoscopic images using deep neural network architectures. Multimed. Tools Appl. 2023, 82, 15763–15778. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Aljohani, K.; Turki, T. Automatic Classification of Melanoma Skin Cancer with Deep Convolutional Neural Networks. AI 2022, 3, 512–525. [Google Scholar] [CrossRef] [Scilit]
  15. Jojoa Acosta, M.F.; Caballero Tovar, L.Y.; Garcia-Zapirain, M.B.; Percybrooks, W.S. Melanoma diagnosis using deep learning techniques on dermatoscopic images. BMC Med. Imaging 2021, 21, 6. [Google Scholar] [CrossRef] [Scilit]
  16. Alwakid, G.; Gouda, W.; Humayun, M.; Sama, N.U. Melanoma Detection Using Deep Learning-Based Classifications. Healthcare 2022, 10, 2481. [Google Scholar] [CrossRef] [Scilit]
  17. Rashad, M.; Mansour, M.; Taha, M. An Efficient Approach for Automatic Melanoma Detection Based on Data Balance and Deep Neural Network. J. Comput. Commun. 2024, 3, 22–32. [Google Scholar] [CrossRef] [Scilit]
  18. Ainah, K.; Mienye, I.D. Sparse noise minimization in image classification using Genetic Algorithm and DenseNet. In Proceedings of the 2021 Conference on Information Communications Technology and Society (ICTAS), Durban, South Africa, 10–11 March 2021. [Google Scholar]
  19. Obaido, G.; Mienye, I.D.; Aruleba, K.; Chukwu, C.W.; Esenogho, E.; Modisane, C. A Systematic Review of Contrastive Learning in Medical AI: Foundations, Biomedical Modalities, and Future Directions. Bioengineering 2026, 13, 176. [Google Scholar] [CrossRef] [Scilit]
  20. Ebiaredoh-mienye, S.A.; Esenogho, E.; Swart, T.G. Integrating Enhanced Sparse Autoencoder-Based Artificial Neural Network Technique and Softmax Regression for Medical Diagnosis. Electronics 2020, 9, 1963. [Google Scholar] [CrossRef] [Scilit]
  21. Wanyonyi, M.; Morris, Z.N.; Musyoka, F.M.; Kitavi, D.M. Enhanced machine learning and hybrid ensemble approaches for Coronary Heart Disease prediction. PLoS ONE 2025, 20, e0328338. [Google Scholar] [CrossRef] [Scilit]
  22. Aruleba, K.; Mienye, I.D.; Aruleba, I.; Chukwu, W.; Osaye, F. An Interpretable Machine Learning Approach for Hepatitis B Diagnosis. Appl. Sci. 2022, 12, 11127. [Google Scholar] [CrossRef] [Scilit]
  23. Muhaba, K.A.; Dese, K.; Aga, T.M.; Zewdu, F.T.; Simegn, G.L. Automatic skin disease diagnosis using deep learning from clinical image and patient information. Ski. Health Dis. 2022, 2, ski2.81. [Google Scholar] [CrossRef] [Scilit]
  24. Alharbi, H.; Sampedro, G.A.; Juanatas, R.A.; Lim, S.J. Enhanced skin cancer diagnosis: A deep feature extraction-based framework for the multi-classification of skin cancer utilizing dermoscopy images. Front. Med. 2024, 11, 1495576. [Google Scholar] [CrossRef] [Scilit]
  25. Alizadeh, S.M.; Mahloojifar, A. Automatic skin cancer detection in dermoscopy images by combining convolutional neural networks and texture features. Int. J. Imaging Syst. Technol. 2021, 31, 695–707. [Google Scholar] [CrossRef] [Scilit]
  26. Bhati, H.P. Deep Learning for Automated Detection of Cancerous Cells in Medical Imaging. Afr. J. Biol. Sci. 2024, 6, 2283–2303. [Google Scholar] [CrossRef]
  27. Pacal, I.; Alaftekin, M.; Zengul, F.D. Enhancing Skin Cancer Diagnosis Using Swin Transformer with Hybrid Shifted Window-Based Multi-head Self-attention and SwiGLU-Based MLP. J. Imaging Inform. Med. 2024, 37, 3174–3192. [Google Scholar] [CrossRef] [Scilit]
  28. Sönmez, A.F.; Çakar, S.; Cerezci, F.; Kotan, M.; Delibaşoğlu, İ.; Çit, G. Deep Learning-Based Classification of Dermoscopic Images for Skin Lesions. Sak. Univ. J. Comput. Inf. Sci. 2023, 6, 114–122. [Google Scholar] [CrossRef] [Scilit]
  29. Allugunti, V.R. A machine learning model for skin disease classification using convolution neural network Healthcare View project A machine learning model for skin disease classification using convolution neural network. Int. J. Comput. Program. Database Manag. 2022, 3, 141–147. [Google Scholar] [CrossRef] [Scilit]
  30. Gouda, W.; Sama, N.U.; Al-Waakid, G.; Humayun, M.; Jhanjhi, N.Z. Detection of Skin Cancer Based on Skin Lesion Images Using Deep Learning. Healthcare 2022, 10, 1183. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  31. Orhan, H.; Yavşan, E. Artificial intelligence-assisted detection model for melanoma diagnosis using deep learning techniques. Math. Model. Numer. Simul. Appl. 2023, 3, 159–169. [Google Scholar] [CrossRef] [Scilit]
  32. Khan, M.A.; Zhang, Y.D.; Sharif, M.; Akram, T. Pixels to Classes: Intelligent Learning Framework for Multiclass Skin Lesion Localization and Classification. Comput. Electr. Eng. 2021, 90, 106956. [Google Scholar] [CrossRef] [Scilit]
  33. Asare, J.W.; Kyei, E.A.; Alornyo, S.; Freeman, E.; Ujakpa, M.M.; Brown-Acquaye, W.L.; Coleman, A.; Lempogo, F. Application of Medical Images for Melanoma Detection Using a Multi-Architecture Convolutional Neural Network from a Deep Learning Approach. Eng. Rep. 2025, 7, e70096. [Google Scholar] [CrossRef] [Scilit]
Figure 1. The proposed dermoscopy-driven deep learning framework for the classification of melanoma and non-melanoma skin lesions.
Figure 1. The proposed dermoscopy-driven deep learning framework for the classification of melanoma and non-melanoma skin lesions.
Bioengineering 13 00456 g001
Figure 2. Various phases of image preprocessing.
Figure 2. Various phases of image preprocessing.
Bioengineering 13 00456 g002
Figure 3. Visualization of the skin lesion analysis pipeline for image preprocessing and model interpretability.
Figure 3. Visualization of the skin lesion analysis pipeline for image preprocessing and model interpretability.
Bioengineering 13 00456 g003
Figure 4. Training and validation accuracy or loss of ResNet-50 model.
Figure 4. Training and validation accuracy or loss of ResNet-50 model.
Bioengineering 13 00456 g004
Figure 5. The accuracy and loss of the VGG16 Model during training and validation.
Figure 5. The accuracy and loss of the VGG16 Model during training and validation.
Bioengineering 13 00456 g005
Figure 6. Performance test of the ResNet50 model before and after fine-tuning.
Figure 6. Performance test of the ResNet50 model before and after fine-tuning.
Bioengineering 13 00456 g006
Figure 7. Performance test of the VGG16 model before and after fine-tuning.
Figure 7. Performance test of the VGG16 model before and after fine-tuning.
Bioengineering 13 00456 g007
Figure 8. ROC curve for CSI cancer detection by implementing VGG16 model.
Figure 8. ROC curve for CSI cancer detection by implementing VGG16 model.
Bioengineering 13 00456 g008
Figure 9. ROC curve for CSI cancer detection by implementing ResNet50 model.
Figure 9. ROC curve for CSI cancer detection by implementing ResNet50 model.
Bioengineering 13 00456 g009
Figure 10. A confusion matrix for melanoma identification.
Figure 10. A confusion matrix for melanoma identification.
Bioengineering 13 00456 g010
Figure 11. Classification of skin cancer into two categories.
Figure 11. Classification of skin cancer into two categories.
Bioengineering 13 00456 g011
Table 1. Specification of data collected from clinics.
Table 1. Specification of data collected from clinics.
SubjectComputer Application
SubjectAreaImage Processing, Image Detection, Image Classification
Types of DataImages (.jpeg)
How the Data Were AcquiredFirst, the Ziva Clinic, Hamirpur, was chosen, where these data points were recorded, using smartphone camera images captured after visiting that location on the advice of a dermatologist. Secondly, we collected images from the Sparse Clinic in Ludhiana.
Data FormatRaw
Description of Data CollectionSamples diagnosed by the dermatologist, with symptoms, class names, sex and infection areas.
Data Source LocationClinics: Ziva Skin & Hair Clinic, Himachal Pradesh; Sparsh Aesthetics, Ludhiana. Country: India.
Total Dermoscopic Images CollectedIn total, 1200 images. From these images, 1000 images of non-melanoma (NMSC) symptoms or 200 melanoma symptoms were collected.
Table 2. Property values after applying traditional methods.
Table 2. Property values after applying traditional methods.
ContrastCorrelationEnergyHomogeneityAreaPerimeterAspect
197.8659510.8996250.9831840.99695749,626.5907.8994951.0
78.1049810.6464570.9976990.99879949,729.0892.0000001.0
247.3324390.7297230.9910290.99619649,724.5894.2426411.0
118.4592210.8075060.9943430.99817849,729.0892.0000001.0
6650.639140.6779820.7684830.89772348,733.51042.329011.0
Table 3. Ablation trials for class weighting for melanoma and non-melanoma.
Table 3. Ablation trials for class weighting for melanoma and non-melanoma.
Loss Class TypePrecisionRecallF1-ScoreAUC
Unweighted Melanoma 0.680.750.710.88
Unweighted Non-Melanoma0.920.940.930.89
Weighted Melanoma0.730.930.820.96
Weighted non-Melanoma0.990.930.960.95
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kumari, A.; Rattan, P.; Shukla, A.K.; Rani, S.; Kataria, A.; Min, H.; Kim, T. Deep Learning-Assisted Early Detection of Skin Cancer from Dermoscopic Images in Underserved Clinical Settings. Bioengineering 2026, 13, 456. https://doi.org/10.3390/bioengineering13040456

AMA Style

Kumari A, Rattan P, Shukla AK, Rani S, Kataria A, Min H, Kim T. Deep Learning-Assisted Early Detection of Skin Cancer from Dermoscopic Images in Underserved Clinical Settings. Bioengineering. 2026; 13(4):456. https://doi.org/10.3390/bioengineering13040456

Chicago/Turabian Style

Kumari, Anchal, Punam Rattan, Anand Kumar Shukla, Sita Rani, Aman Kataria, Hong Min, and Taeho Kim. 2026. "Deep Learning-Assisted Early Detection of Skin Cancer from Dermoscopic Images in Underserved Clinical Settings" Bioengineering 13, no. 4: 456. https://doi.org/10.3390/bioengineering13040456

APA Style

Kumari, A., Rattan, P., Shukla, A. K., Rani, S., Kataria, A., Min, H., & Kim, T. (2026). Deep Learning-Assisted Early Detection of Skin Cancer from Dermoscopic Images in Underserved Clinical Settings. Bioengineering, 13(4), 456. https://doi.org/10.3390/bioengineering13040456

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop