Lesion-Aware Evaluation of Frozen Swin Transformer and CNN Features for Binary Skin Lesion Classification
Model Comparison and Threshold Transfer
DOI:
https://doi.org/10.19139/soic-2310-5070-5019Keywords:
skin lesion classification, Swin Transformer, frozen features, cluster bootstrap, threshold selection, ISIC 2018Abstract
Frozen pretrained features with a linear classifier are a low-cost way to adapt vision models to dermoscopy, butsuch evaluations rarely account for repeated images of the same lesion, sampling uncertainty, score calibration, or whether an operating point chosen on a small validation set holds on new data. We present a lesion-aware statistical evaluation of four frozen ImageNet backbones (Swin-T, ConvNeXt-T, MobileNetV2 and ResNet-50) on the official ISIC 2018 Task 3 partitions for a referral-oriented binary target (positive: melanoma, basal cell carcinoma, actinic keratosis/intraepithelial carcinoma). Each pipeline used an L2-regularised logistic classifier and a prespecified threshold (maximum recall at ≥80% validation specificity) applied once to the 1,512 test images; all inference used a paired lesion-cluster bootstrap, and archive lesion identifiers confirmed that the partitions are lesion-disjoint. Frozen Swin-T reached a test AUC of 0.893 (95% CI 0.870–0.914), above MobileNetV2 (0.834; difference 0.059, 0.037–0.084) and ResNet-50 (0.818), but there was no evidence of a difference from the size-matched ConvNeXt-T (difference −0.004, −0.022 to 0.013), and model-specific regularisation reduced the gap to MobileNetV2 to 0.019. At a matched development-specificity target, Swin-T detected 12.1 percentage points (6.7–17.7) more positive images than MobileNetV2. In decision-curve analysis, Swin-T had higher net benefit than MobileNetV2 and ResNet-50 at threshold probabilities of 0.10–0.30, with no evidence of a difference from ConvNeXt-T. Thresholds re-selected on resamples of the 193-image validation split moved test sensitivity between 70% and 90%, and even a stable development threshold missed its specificity target because the test negatives contained more benign keratoses, dermatofibromas and vascular lesions; 68% of the false positives were histopathology-confirmed benign lesions. Fine-tuning Swin-T (five seeds) raised the test AUC to 0.940 (range 0.923–0.950) without removing this threshold fragility. Validation-selected operating points should be reported together with their transfer uncertainty, calibration and case mix.Downloads
Published
2026-11-25
How to Cite
Othman, E. (2026). Lesion-Aware Evaluation of Frozen Swin Transformer and CNN Features for Binary Skin Lesion Classification: Model Comparison and Threshold Transfer. Statistics, Optimization & Information Computing. https://doi.org/10.19139/soic-2310-5070-5019
License
Copyright (c) 2026 Esam Othman

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).