Simple Summary
Computer programs that read dermoscopic images can help decide which skin lesions need a specialist. A program trained on images from one group of clinics often performs worse on images from another because dermatoscopes, lighting and colour processing differ. One remedy is to alter the training images at random, a technique called data augmentation. We compared many augmentation schemes, choosing between them on images from clinics not used for training, and then measured the chosen scheme on images from further clinics. The chosen scheme gave a small improvement in most repeated training runs; the improvement was seen again with new training runs on the same test images and was larger with two other network architectures. On two external clinical cohorts, the differences in discrimination were uncertain and compatible with improvement or deterioration. The gain is modest, and it was measured with repeated training runs on one fixed set of test images.
Abstract
Background/Objectives: Dermoscopic classifiers lose accuracy on images from institutions and devices absent from training. We asked whether a data-augmentation policy chosen on institutions held out of training improves discrimination on further institutions. Methods: ConvNeXt-Large classifiers (malignant vs. non-malignant) were trained on 49,486 images from 6 institutions. Single operators (26), photometric combinations (11) and composite policies (16, two of them automated) were ranked on 19,054 images from three other institutions. A pre-specified rule selected one policy, frozen before comparison with a flip-only baseline on 65,584 images from four test collections (six paired training seeds, exact permutation test) and on two external clinical cohorts (1307 images) from institutions outside training and development. Results: The selected policy raised the mean per-collection test ROC-AUC from 0.8692 to 0.8784 ( +0.0092, 95% CI −0.0002 to +0.0187; ). A replication with ten new seeds on the same test images gave +0.0124 (95% CI +0.0074 to +0.0174; ); resampling test lesions together with seeds gave a 95% CI of +0.0019 to +0.0178. Gains were larger for ViT-B/16 ( +0.0234) and EfficientNet-B3 ( +0.0127), and the policy exceeded training without augmentation with all 12 seeds. With an aspect-preserving resize the difference was +0.0088 (95% CI +0.0043 to +0.0133).Pooled and in-domain ROC-AUC did not differ. External-cohort ROC-AUC differences were imprecise; the transferred decision threshold shifted towards sensitivity. Malignant images of phototypes V–VI were absent. Conclusions: A policy selected on institution-held-out data gave a small gain in within-collection discrimination that was reproducible over training seeds on a fixed test set. The method needs no target-domain data for training; transfer to a particular clinic, including its threshold, must be verified locally.