CLIP-inspired text-prototype classification of dermoscopic skin lesions: a leakage-controlled evaluation with external validation
N. R. Rajalakshmi, Nadim Ibrahim, V. Sivakumar, S. Mithra
Key points
From the paper's conclusion- These results do not support clinical deployment.
Abstract
Text-derived class prototypes offer a way to incorporate clinical descriptions into dermoscopic classification, but their contribution is difficult to assess when datasets overlap or text inputs encode sample labels. We evaluated a CLIP-inspired classifier using seven fixed class descriptions encoded by frozen Bio-ClinicalBERT, a trainable text projection, a Vision Transformer image encoder, and optional patient metadata. Four configurations crossed text-derived versus learned prototypes with metadata use. Contrastive weights were selected by validation performance: $$\lambda =1$$ for text-prototype models and $$\lambda =0$$ for learned-prototype models. Models were developed on lesion-grouped HAM10000 partitions and evaluated on 14,268 external ISIC 2019 images after removing 10,015 shared images and 621 precautionary exclusions. MetaBlock, BiomedCLIP zero-shot and linear-probe classifiers, and a metadata-only model were comparators. Trainable final configurations used three seeds; uncertainty was estimated by lesion-clustered bootstrap. The text-prototype configuration with metadata exceeded the learned-prototype configuration with metadata in external balanced multiclass accuracy (0.388 versus 0.364; $$\Delta =+0.024$$ , 95% CI 0.005–0.043, Holm-adjusted $$p=0.032$$ ), but this comparison combines prototype source and contrastive weight. Adding metadata within the text-prototype family did not yield a statistically significant improvement ( $$\Delta =-0.015$$ , 95% CI $$-0.043$$ to 0.014). The image-only text-prototype model had the highest observed external balanced accuracy (0.402); the BiomedCLIP linear probe achieved 0.381. Full-model balanced accuracy declined from approximately 0.63 internally to 0.39 externally, melanoma recall was 0.32, and maximum-softmax confidence did not reliably identify out-of-taxonomy squamous cell carcinomas. The evaluated text-prototype configurations performed better than their learned-prototype counterparts, but matched-objective comparisons are needed to isolate the contribution of prototype source. These results do not support clinical deployment.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Multimodal models for skin cancer classification using clinical freetext and dermatoscopic imagesCommunications Medicine · 2026
- Evaluation Boundaries in Multimodal Skin Lesion Classification: Data Leakage, Patient Reuse, and Cross-Release OverlapMathematics · 2026
- Multimodal Skin Lesion Diagnosis via Dynamic Consensus and Self-Correcting Representation Learning.IEEE journal of biomedical and health informatics · 2026
- Calibration-Aware Heterogeneous Multimodal Ensemble for Multi-Class Skin Lesion Diagnosis.Diagnostics (Basel, Switzerland) · 2026
- Multi-Dataset Diagnostic Utility of Clinical Visual Concepts in AI Systems for DermatologyarXiv · 2026
- Trustworthy DINOv2-based skin lesion classification with uncertainty quantification and robust learning from limited medical imagesDiscover Computing · 2026