Comparative Analysis of Single and Hybrid CNN-Transformer Models for Melanoma Detection Using the ISIC Dataset
Abstract
Early detection of skin cancer, particularly melanoma, is crucial for improving patient outcomes. This study presents a comprehensive comparative analysis of deep learning architectures for automated skin lesion classification. This study evaluated eight models across four architectural categories: traditional convolutional neural networks, residual networks, vision transformers and novel hybrid approaches combining CNNs with transformers. Using the International Skin Imaging Collaboration dataset with 3,267 dermatoscopic images, the study assessed both classification performance and computational efficiency. Hybrid architectures consistently outperformed individual models, with the ResNet+ViT hybrid achieving the highest accuracy of 85.1% and AUC of 0.932. However, these performance improvements came with significant computational costs, highlighting important trade-offs for practical deployment. MobileNetV2 offered the best efficiency while maintaining a reasonable accuracy of 79.1%, making it suitable for resource-constrained environments. The findings demonstrate that combining complementary feature extraction mechanisms from CNNs and transformers creates more robust representations for skin lesion classification, approaching the diagnostic accuracy of dermatologists reported in the literature. This research contributes valuable insights for the development of automated diagnostic support tools that could improve early detection rates and enhance patient outcomes in skin cancer management.
References
- Siegel, R. L., Miller, K. D., Fuchs, H. E., & Jemal, A. (2021). Cancer statistics, 2021. CA: A Cancer Journal for Clinicians, 71(1), 7–33.
- Yap, J., Yolland, W., & Tschandl, P. (2018). Multimodal skin lesion classification using deep learning. Experimental Dermatology. Advance online publication.
- Brinker, T. J., Hekler, A., Enk, A. H., Berking, C., Haferkamp, S., Hauschild, A., ... & von Kalle, C. (2019). Deep learning outperformed 136 of 157 dermatologists in a head-to-head dermoscopic melanoma image classification task. European Journal of Cancer, 113, 47–54.
- Esteva, A., Kuprel, B., Novoa, R. A., Ko, J., Swetter, S. M., Blau, H. M., & Thrun, S. (2017). Dermatologist-level classification of skin cancer with deep neural networks. Nature, 542(7639), 115–118.
- He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 770–778).
- Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., & Chen, L. C. (2018). MobileNetV2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 4510–4520).
- Tan, M., & Le, Q. V. (2019). EfficientNet: Rethinking model scaling for convolutional neural networks. In Proceedings of the 36th International Conference on Machine Learning (pp. 6105–6114).
- Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., ... & Houlsby, N. (2021). An image is worth 16x16 words: Transformers for image recognition at scale. In Proceedings of the International Conference on Learning Representations.
- Tschandl, P., Rosendahl, C., & Kittler, H. (2018). The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions. Scientific Data, 5, Article 180161.
- Haenssle, H. A., Fink, C., Schneiderbauer, R., Toberer, F., Buhl, T., Blum, A., ... & Reader Study Level-I and Level-II Groups. (2018). Man against machine: Diagnostic performance of a deep learning convolutional neural network for dermoscopic melanoma recognition in comparison to 58 dermatologists. Annals of Oncology, 29(8), 1836–1842.