Skin Cancer Detection using Constrastive Learning and Swin Transformer

  • Unique Paper ID: 177694
  • PageNo: 1236-1243
  • Abstract:
  • Early detection and classification of skin cancer are important for effective treatment and improved patient outcomes. This paper presents a novel approach to automated skin cancer classification using a Swin Transformer architecture enhanced with supervised contrastive learning. We address the challenges of class imbalance in skin lesion datasets through weighted random sampling and implement a multi-component loss function combining focal loss, label smoothing, and super- vised contrastive learning. Using the ISIC (International Skin Imaging Collaboration) dataset containing nine classes of skin lesions, our model achieves robust generalization with significant improvement in classification accuracy. The implementation of exponential moving average (EMA) and advanced augmentation techniques further enhances model stability. Our experimental results demonstrate the effectiveness of the proposed approach compared to conventional convolutional neural network methods, offering promising potential for clinical application in dermatological diagnosis.

Copyright & License

Copyright © 2026 Authors retain the copyright of this article. This article is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

BibTeX

@article{177694,
        author = {SRI PARTHA SARATHI P and SRIGANESH T and VEERAMANI P and ABISHEAK M and RAGUMUNI RAJA V},
        title = {Skin Cancer Detection using Constrastive Learning and Swin Transformer},
        journal = {International Journal of Innovative Research in Technology},
        year = {2025},
        volume = {11},
        number = {12},
        pages = {1236-1243},
        issn = {2349-6002},
        url = {https://ijirt.org/article?manuscript=177694},
        abstract = {Early detection and classification of skin cancer are important for effective treatment and improved patient outcomes. This paper presents a novel approach to automated skin cancer classification using a Swin Transformer architecture enhanced with supervised contrastive learning. We address the challenges of class imbalance in skin lesion datasets through weighted random sampling and implement a multi-component loss function combining focal loss, label smoothing, and super- vised contrastive learning. Using the ISIC (International Skin Imaging Collaboration) dataset containing nine classes of skin lesions, our model achieves robust generalization with significant improvement in classification accuracy. The implementation of exponential moving average (EMA) and advanced augmentation techniques further enhances model stability. Our experimental results demonstrate the effectiveness of the proposed approach compared to conventional convolutional neural network methods, offering promising potential for clinical application in dermatological diagnosis.},
        keywords = {Skin Cancer, Image Processing, Transformer, Contrastive Learning},
        month = {May},
        }

Cite This Article

P, S. P. S., & T, S., & P, V., & M, A., & V, R. R. (2025). Skin Cancer Detection using Constrastive Learning and Swin Transformer. International Journal of Innovative Research in Technology (IJIRT), 11(12), 1236–1243.

Related Articles