Lesion-Aware Evaluation of Frozen Swin Transformer and CNN Features for Binary Skin Lesion Classification

Model Comparison and Threshold Transfer

Authors

  • Esam Othman Information Systems Department, College of Computer and Information Sciences, Prince Sultan University, Riyadh, Saudi Arabia

DOI:

https://doi.org/10.19139/soic-2310-5070-5019

Keywords:

skin lesion classification, Swin Transformer, frozen features, cluster bootstrap, threshold selection, ISIC 2018

Abstract

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

Issue

Section

Research Articles

Categories