Research Article

Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images

Volume: 15 Number: 2 December 31, 2025
TR EN

Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images

Abstract

In recent years, deep learning has achieved remarkable advancements in medical image analysis, particularly through Convolutional Neural Networks (CNNs) and Transformer-based architectures. This study aims to evaluate and compare the performance of five transfer learning models (DenseNet169, InceptionV3, MobileNetV2, VGG16 and Xception) and a Vision Transformer (ViT) model for the classification of skin cancer using the “Skin Cancer: Malignant vs. Benign” dataset .In the first phase, the ViT model achieved the highest overall performance with 93.79% recall, 92.22% precision, 93.00% F1-score and 92.42% accuracy. Although InceptionV3 and MobileNetV2 demonstrated strong recall values, they did not match the overall accuracy of ViT. In the second phase, image enhancement techniques—grayscale conversion, thresholding, Canny edge detection, dilation, and erosion were applied to emphasize lesion boundaries and improve contrast. Using these enhanced images, the ViT model again achieved the best performance, with 95.49% recall, 94.17% precision, 94.83% F1-score, and 94.39% accuracy. These results indicate that the ViT architecture provides superior accuracy and reliability in complex and enhanced medical images. Furthermore, the study demonstrates that incorporating image preprocessing techniques can significantly enhance the performance of deep learning models in medical imaging applications.

Keywords

References

  1. [1] B. K. Armstrong and A. Kricker, "The epidemiology of UV induced skin cancer," J. Photochem. Photobiol. B: Biol., vol. 63, no. 1-3, pp. 8-18, 2001.
  2. [2] International Agency for Research on Cancer, Working Group on the Evaluation of Carcinogenic Risks to Humans. Human papillomaviruses, vol. 90, 2011.
  3. [3] L. Hogue and V. M. Harvey, "Basal cell carcinoma, squamous cell carcinoma, and cutaneous melanoma in skin of color patients," Dermatol. Clin., vol. 37, no. 4, pp. 519-526, 2019.
  4. [4] C. Reggiani et al., "Update on non-invasive imaging techniques in early diagnosis of non-melanoma skin cancer," G Ital Dermatol Venereol, vol. 150, no. 4, pp. 393-405, 2015.
  5. [5] A. Esteva et al., "Dermatologist-level classification of skin cancer with deep neural networks," Nature, vol. 542, no. 7639, pp. 115-118, 2017.
  6. [6] H. A. Haenssle et al., "Man against machine: diagnostic performance of a deep learning convolutional neural network for dermoscopic melanoma recognition in comparison to 58 dermatologists," Ann. Oncol., vol. 29, no. 8, pp. 1836-1842, 2018.
  7. [7] A. A. Adegun and S. Viriri, "Deep learning-based system for automatic melanoma detection," IEEE Access, vol. 8, pp. 7160-7172, 2019.
  8. [8] R. T. Sutton et al., "An overview of clinical decision support systems: benefits, risks, and strategies for success," NPJ Digit. Med., vol. 3, no. 1, p. 17, 2020.

Details

Primary Language

English

Subjects

Software Engineering (Other)

Journal Section

Research Article

Publication Date

December 31, 2025

Submission Date

May 28, 2025

Acceptance Date

December 23, 2025

Published in Issue

Year 2025 Volume: 15 Number: 2

APA
Özkan, Y. (2025). Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images. European Journal of Technique (EJT), 15(2), 179-188. https://doi.org/10.36222/ejt.1708219
AMA
1.Özkan Y. Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images. EJT. 2025;15(2):179-188. doi:10.36222/ejt.1708219
Chicago
Özkan, Yasin. 2025. “Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images”. European Journal of Technique (EJT) 15 (2): 179-88. https://doi.org/10.36222/ejt.1708219.
EndNote
Özkan Y (December 1, 2025) Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images. European Journal of Technique (EJT) 15 2 179–188.
IEEE
[1]Y. Özkan, “Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images”, EJT, vol. 15, no. 2, pp. 179–188, Dec. 2025, doi: 10.36222/ejt.1708219.
ISNAD
Özkan, Yasin. “Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images”. European Journal of Technique (EJT) 15/2 (December 1, 2025): 179-188. https://doi.org/10.36222/ejt.1708219.
JAMA
1.Özkan Y. Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images. EJT. 2025;15:179–188.
MLA
Özkan, Yasin. “Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images”. European Journal of Technique (EJT), vol. 15, no. 2, Dec. 2025, pp. 179-88, doi:10.36222/ejt.1708219.
Vancouver
1.Yasin Özkan. Comparative Analysis of Transfer Learning and Vision Transformer Models for Skin Cancer Classification Using Enhanced Dermoscopic Images. EJT. 2025 Dec. 1;15(2):179-88. doi:10.36222/ejt.1708219

All articles published by EJT are licensed under the Creative Commons Attribution 4.0 International License. This permits anyone to copy, redistribute, remix, transmit and adapt the work provided the original work and source is appropriately cited.Creative Commons Lisansı