Manuscript Offprint

arXiv:2609.11550

A Comparative Evaluation of Pre-trained Convolutional Neural Networks for Melanoma Detection

Wagner Moreno Schmitz, Marco Antonio de Castro Barbosa, Thiago Magalhães Amaral, Dalcimar Casanova, Jefferson Tales Oliva

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Early diagnosis of melanoma is critical for improving patient survival rates. However, accurately distinguishing melanoma from other skin lesions remains a significant clinical challenge due to the high visual similarity among lesion types and variability in image acquisition conditions. Artificial intelligence, particularly machine learning, has emerged as a promising tool to support dermatological diagnosis by automating feature extraction from medical images. Among the available approaches, convolutional neural networks (CNNs) have demonstrated strong performance in image classification tasks, making them well-suited for analyzing both dermatoscopic and histopathological images, given their ability to capture hierarchical visual patterns relevant to lesion characterization. Nevertheless, despite numerous pre-trained CNN architectures having been proposed, selecting the most appropriate one for a given imaging modality remains an open challenge. In this study, we evaluate pre-trained convolutional neural networks (CNNs) for skin lesion classification using dermatoscopic and histopathological image datasets. Experiments were conducted on the HAM10000, ISIC 2018, and CR-AI4SkIN datasets, evaluating the ResNet50, VGG16, VGG19, MobileNet, and InceptionV3 architectures under the same training protocol. The experimental evaluation showed that the models achieved accuracies ranging from 71% (InceptionV3 on ISIC 2018) to 84% (ResNet50 on HAM10000) on dermatoscopic images. For histopathological images, accuracies ranged from 72% (VGG19) to 83% (ResNet50) on the CR-AI4SkIN dataset. The results demonstrate that model performance differs between dermatoscopic and histopathological image modalities, showing that architectures exhibiting similar performance on dermatoscopic images exhibit different performance on histopathological data.. These findings emphasize the importance of considering image modality when selecting deep learning architectures for melanoma detection.

Keywords: Melanoma, Deep Learning, Convolutional Neural Networks, Dermoscopy, Histopathology

1. Introduction

Skin cancers constitute the most commonly diagnosed group of neoplasms worldwide, representing one of the major current challenges for global health. According to the International Agency for Research on Cancer (IARC), the cancer research arm of the World Health Organization (WHO), the term “skin cancer” encompasses a spectrum of diseases that includes both non-melanoma skin carcinomas and malignant melanoma (World Health Organization, 2024). Melanoma is recognized as the most aggressive form of skin cancer due to its high metastatic potential and the elevated mortality rates associated with advanced stages of the disease (Pekarek et al., 2025).

Recent epidemiological estimates indicate a concerning global trend of increasing melanoma incidence (Langselius et al., 2025). As reported by (Karimkhani et al., 2022), the number of melanoma cases is expected to increase by more than 50% between 2020 and 2040. Based on demographic changes and population aging, it is projected that more than 500,000 new cases and approximately 100,000 annual deaths from melanoma will occur worldwide by 2040. Despite this alarming scenario, the same study emphasizes that a substantial proportion of these cases could be prevented through effective public health strategies, including early detection.

Early-stage melanoma detection is decisive for patient survival: approximately 99% of patients diagnosed at an early stage in the United States survive at least five years after detection (The Skin Cancer Foundation, 2025). However, the accuracy of naked-eye diagnosis of cutaneous melanoma is only around 60%. Techniques such as dermoscopy, a non-invasive examination that enables the visualization of skin structures not visible to the naked eye, can substantially increase diagnostic accuracy. Nevertheless, its effectiveness strongly depends on the examiner's level of expertise (Kittler et al., 2002).

In addition, in some cases, detection can be performed through the analysis of histopathological images obtained from tissue samples removed by biopsy and examined under a microscope. These images provide detailed information about cellular morphology and tissue architecture, enabling the identification of specific characteristics associated with melanoma. According to the guidelines (Munhoz de Paula Alves Coelho et al., 2025), histopathological examination is considered the gold standard for diagnostic confirmation, although it involves manual procedures and subjective interpretation by pathologists.

Advances in technology have contributed to making melanoma detection faster and more accurate. Methods based on artificial intelligence have shown promising results, assisting in screening and diagnostic support (Parhi et al., 2026). Nevertheless, challenges persist related to data variability, the heterogeneous performance of neural network architectures, and model generalization capability. In this context, the evaluation of different CNN architectures under controlled experimental conditions becomes essential to identify models that are more robust and reliable for supporting medical diagnosis. Current studies commonly evaluate models on a single dataset or imaging modality, or employ different training protocols and hyperparameter configurations, making it difficult to isolate the effects of the CNN architecture from those of the experimental setup. Therefore, this study evaluates the performance of pre-trained CNN architectures using an identical training protocol and hyperparameter configuration across dermatoscopic and histopathological image datasets, enabling a fair assessment of how imaging modality influences the performance and generalization capability of different CNN architectures for automatic melanoma detection.

Among these technologies, Athiwaratkun and Kang (2015) point out that convolutional neural networks (CNN) stand out due to their ability to automatically extract relevant patterns and characteristics from images. Since their popularization, numerous architectures have been proposed, such as VGG, ResNet, Inception, and DenseNet, each with distinct designs that influence their capacity to learn discriminative representations. However, training these models from scratch typically requires large annotated datasets and substantial computational resources, which are often scarce in the medical imaging domain. To address this limitation, pre-trained networks have been widely adopted through transfer learning, a strategy in which models previously trained on large-scale datasets, such as ImageNet, are fine-tuned for a specific target task with considerably less data.

In this way, the analysis of dermoscopic and histopathological images using CNNs overcomes the limitations of manual evaluation, which can be sub-jective and dependent on examiner experience. These networks are capable of identifying subtle details that often go unnoticed in conventional analysis. Comparing different CNN architectures allows for the assessment of how each model responds to data variability, the identification of more robust and generalizable models, and the selection of those with greater potential to improve automatic melanoma detection, contributing to more accurate and consistent diagnoses.

In this work, we evaluate five pre-trained CNN architectures for melanoma detection across three distinct datasets: two composed of dermatoscopic images and one of histopathological images. The inclusion of two dermatoscopic datasets enables the assessment of model consistency across different datasets within the same imaging modality, while the histopathological dataset allows the evaluation of model behavior under a distinct imaging modality. The adopted strategy aims to evaluate the behavior of different architectures on both homogeneous and heterogeneous datasets, investigating whether there are statistically significant differences among models and how the imaging modality influences the obtained results. This analysis enables the identification of architectures that exhibit greater robustness, generalization capability, and consistent performance across different image types, providing important insights into model selection for clinical applications of automatic melanoma detection and contributing to the development of more accurate and reliable medical decision-support systems.

The main contributions of this work are as follows:

  • A systematic comparison of five CNN architectures employed as feature extractors across different image datasets, considering both dermoscopic and histopathological data;

  • The evaluation of performance and generalization capability across modalities and multiple datasets enables an understanding of how each architecture responds to the structural variations present in distinct data sources;

  • The application of statistical hypothesis testing, specifically the Friedman and Nemenyi tests, to rigorously assess whether performance differences among architectures are statistically significant;

Subsequently, the remainder of this paper is organized as follows: Section 2 presents the Related Work, including a systematic review of related studies and the identification of methodological patterns and limitations in the literature; Section 3 describes the materials and methods adopted in this study, detailing the datasets used (HAM10000, ISIC 2018 Challenge, and CR-AI4SkIN), the preprocessing procedures, the evaluated pre-trained convolutional neural network architectures, the feature embedding extraction process, and the evaluation metrics; Section 4 reports and discusses the experimental results, analyzing the performance of the evaluated architectures across different datasets and including statistical comparisons based on the Friedman and Nemenyi tests; and Section 5 concludes the paper by summarizing the main findings, discussing their implications, and outlining directions for future research in automatic melanoma detection.

References (77)