Research Article

Injecting Visual Prototypes into CLIP-driven Long-Tailed Skin Lesion Classification

Yunzhe Pan*
School of Henan Polytechnic University

* Corresponding author: [email protected]

Abstract

Skin lesion classification plays a vital role for the early and accurate diagnosis of dermatology. Traditional methods rely on subjective clinical expertise but remain challenged by long-tailed data distributions and insufficient utilization of visual information. With the advancement of artificial intelligence, an increasing number of computer-aided approaches have been attempted for skin lesion classification tasks. In this paper, we propose DermSense, a novel framework to enhance skin lesion classification by integrating visual prototypes, LLM-generated fine-grained attributes with the CLIP model. Leveraging a dual-matching strategy and a cross-modal fusion module enriches visual textual feature representations without the need for fine-tuning the CLIP backbone network, and to significantly reduce computational overheads. Additionally, we employed a Logits-Adjusted loss function to address the class imbalance. Extensive experiments on ISIC2018 and Derm7pt datasets demonstrate that DermSense significantly outperforms state-of-the-art methods in balanced accuracy, particularly for melanoma classification. Our results highlight the potential of DermSense to advance skin disease diagnosis while maintaining scalability and efficiency.

Keywords: Skin Lesion Classification; Vision-Language Models; Long-Tailed Learning
Published: April 24, 2025
DOI: 10.54254/2755-2721/2025.TJ22275
Volume: ACE Vol.146
pp. 157-166
Download PDF

References

  1. R. E. Foraker, B. Kite, M. M. Kelley, A. M. Lai, C. Roth, M. A. Lopetegui, A. B. Shoben, M. Langan, N. L. Rutledge, and P. R. Payne, “Ehr-based visualization tool: adoption rates, satisfaction, and patient outcomes,” eGEMs, vol. 3, no. 2, 2015.Bootorabi, F., Haapasalo, J., Smith, E., Haapasalo, H. and Parkkila, S. (2011) Carbonic Anhydrase VII—A Potential Prognostic Marker in Gliomas. Health, 3, 6-12.
  2. A.-R. Ali, J. Li, S. Kanwal, G. Yang, A. Hussain, and S. Jane O’Shea, “A novel fuzzy multilayer perceptron (f-mlp) for the detection of irregularity in skin lesion border using dermoscopic images,” Frontiers in medicine, vol. 7, p. 297, 2020.
  3. K. Melbin and Y. J. V. Raj, “Integration of modified abcd features and support vector machine for skin lesion types classification,” Multimedia Tools and Applications, vol. 80, no. 6, pp. 8909–8929, 2021.
  4. C.R. Dhivyaa, K. Sangeetha, M. Balamurugan, S. Amaran, T. Vetriselvi, and P. Johnpaul, “Skin lesion classification using decision trees and random forest algorithms,” Journal of Ambient Intelligence and Humanized Computing, pp. 1–13, 2020.
  5. H. Zanddizari, N. Nguyen, B. Zeinali, and J. M. Chang, “A new preprocessing approach to improve the performance of cnn-based skin lesion classification,” Medical & Biological Engineering & Computing, vol. 59, no. 5, pp. 1123–1131, 2021.
  6. H. Zanddizari, N. Nguyen, B. Zeinali, and J. M. Chang, “A new preprocessing approach to improve the performance of cnn-based skin lesion classification,” Medical & Biological Engineering & Computing, vol. 59, no. 5, pp. 1123–1131, 2021.
  7. S. Zhang, Y. Xu, N. Usuyama, H. Xu, J. Bagga, R. Tinn, S. Preston, R. Rao, M. Wei, N. Valluri, et al., “Biomedclip: a multimodal biomedical foundation model pretrained from fifteen million scientific image-text pairs,” arXiv preprint arXiv:2303.00915, 2023.
  8. S. Eslami, C. Meinel, and G. De Melo, “Pubmedclip: How much does clip benefit visual question answering in the medical domain?,” in Findings of the Association for Computational Linguistics: EACL 2023, pp. 1181–1193, 2023.
  9. Z. Wang, Z. Wu, D. Agarwal, and J. Sun, “Medclip: Contrastive learning from unpaired medical images and text,” arXiv preprint arXiv:2210.10163, 2022.
  10. Patrício, L. F. Teixeira, and J. C. Neves, “Towards concept-based interpretability of skin lesion diagnosis using vision-language models,” in 2024 IEEE International Symposium on Biomedical Imaging (ISBI), pp. 1–5, IEEE, 2024.
  11. K. Menon, S. Jayasumana, A. S. Rawat, H. Jain, A. Veit, and S. Kumar, “Long-tail learning via logit adjustment,” arXiv preprint arXiv:2007.07314, 2020.
  12. J. Kawahara and G. Hamarneh, “Multi-resolution-tract cnn with hybrid pretrained and skin-lesion trained layers,” in International workshop on machine learning in medical imaging, pp. 164–171, Springer, 2016.
  13. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al., “Learning transferable visual models from natural language supervision,” in International conference on machine learning, pp. 8748–8763, PMLR, 2021.
  14. Tiu, E. Talius, P. Patel, C. P. Langlotz, A. Y. Ng, and P. Rajpurkar, “Expert-level detection of pathologies from unannotated chest x-ray images via self-supervised learning,” Nature Biomedical Engineering, vol. 6, no. 12, pp. 1399–1406, 2022.
  15. Y. Lei, Z. Li, Y. Shen, J. Zhang, and H. Shan, “Clip-lung: Textual knowledge-guided lung nodule malignancy prediction,” in International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 403–412, Springer, 2023.
  16. S. Baliah, F. A. Maani, S. Sanjeev, and M. H. Khan, “Exploring the transfer learning capabilities of clip in domain generalization for diabetic retinopathy,” in International Workshop on Machine Learning in Medical Imaging, pp. 444–453, Springer, 2023.
  17. M. Guo, H. Yi, Z. Qin, H. Wang, A. Men, and Q. Lao, “Multiple prompt fusion for zero-shot lesion detection using vision-language models,” in International Conference on Medical Image Computing and Computer Assisted Intervention, pp. 283–292, Springer, 2023.
  18. Y. Wu, Y. Zhou, J. Saiyin, B. Wei, M. Lai, J. Shou, Y. Fan, and Y. Xu, “Zero-shot nuclei detection via visual-language pre-trained models,” in International Conference on Medical Image Computing and Computer Assisted Intervention, pp. 693–703, Springer, 2023.
  19. Z. Wang, M. Tang, L. Wang, X. Li, and L. Zhou, “A medical semantic assisted transformer for radiographic report generation,” in International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 655–664, Springer, 2022.
  20. K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
  21. Dosovitskiy, “An image is worth 16x16 words: Transformers for image recognition at scale,” arXiv preprint arXiv:2010.11929, 2020.
  22. Vaswani, “Attention is all you need,” Advances in Neural Information Processing Systems, 2017.
  23. J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al., “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774, 2023.
  24. N. C. Codella, D. Gutman, M. E. Celebi, B. Helba, M. A. Marchetti, S. W. Dusza, A. Kalloo, K. Liopyris, N. Mishra, H. Kittler, et al., “Skin lesion analysis toward melanoma detection: A challenge at the 2017 international symposium on biomedical imaging (isbi), hosted by the international skin imaging collaboration (isic),” in 2018 IEEE 15th International Symposium on Biomedical Imaging (ISBI 2018), pp. 168 172, IEEE, 2018.
  25. P. Tschandl, C. Rosendahl, and H. Kittler, “The ham10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions,” Scientific data, vol. 5, no. 1, pp. 1–9, 2018.
  26. J. Kawahara, S. Daneshvar, G. Argenziano, and G. Hamarneh, “Seven-point checklist and skin lesion classification using multitask multimodal neural nets,” IEEE Journal of Biomedical and Health Informatics, vol. 23, no. 2, pp. 538–546, 2018.
  27. Barata, V. Rotemberg, N. C. Codella, P. Tschandl, C. Rinner, B. N. Akay, Z. Apalla, G. Argenziano, A. Halpern, A. Lallas, et al., “A reinforcement learning model for ai-based decision support in skin cancer,” Nature Medicine, vol. 29, no. 8, pp. 1941–1946, 2023.
  28. Kim, S. U. Gadgil, A. J. DeGrave, J. A. Omiye, Z. R. Cai, R. Daneshjou, and S.-I. Lee, “Transparent medical image ai via an image–text foundation model grounded in medical literature,” Nature Medicine, vol. 30, no. 4, pp. 1154–1165, 2024.
  29. L.-C. Chen, “Rethinking atrous convolution for semantic image segmentation,” arXiv preprint arXiv:1706.05587, 2017