Impact of Data Augmentation on Confidence Calibration in Melanoma Classification
Authors: Morgan May, Simon Caton, Pierpaolo Dondio
Organizations: Technological University Dublin, Dublin, Ireland · Research Ireland Centre for Research Training in Machine Learning, ML-Labs, Dublin, Ireland · University College Dublin, Dublin, Ireland · Dublin City University, Dublin, Ireland
Accurately quantifying the predictive uncertainty or improving model calibration plays an important role in medical image classification, in particular in melanoma diagnosis, where accurate uncertainty quantification can have significant implications for patient care. One of the methods for calibration improvement is data augmentation. In addition, data augmentation as a method for synthetically increasing the size of the dataset has been proven to improve the performance of models trained on imbalanced datasets. However, the impact of data augmentation, as a transformation of a part of the original data, on calibration of models trained on imbalanced datasets, in particular in melanoma classification is under-explored. We train neural networks on SIIM-ISIC 2020 melanoma classification dataset under two conditions: with and without data augmentation, and compare the differences in AUC and expected calibration error (ECE) in both scenarios. Our results shows improvements in uncertainty calibration using different augmentation methods.
Figures & tables
Augmentation
EfficientNet-B0
EfficientNet-B2
AUC
ECE
AUC
ECE
None
0.8808
0.0500
0.8836
0.0207
CutMix
0.8937
0.0263
0.8823
0.0179
mixup
0.8787
0.0254
0.8695
0.0198
RandAugment
0.8655
0.0205
0.8762
0.0179
trivialaugment
0.8802
0.0179
0.8843
0.0168
Table 1: Impact of Data Augmentation on Melanoma Classification
Melanoma is the deadliest type of skin cancer, whose early diagnosis is crucial for patients' survival. Image classification using deep learning models has shown promising results for melanoma diagnosis. However, the performance of these models on the melanoma datasets such as SIIM-ISIC melanoma classification dataset is a challenge due to the class imbalance. One of the methods to deal with this challenge is using loss function modifications. In this work, we have investigated the effect of different loss functions on the performance of deep neural networks. We trained these networks using focal loss, logit-adjusted softmax cross-entropy (CE) loss, and weighted softmax CE loss, and we report different metrics for evaluating performance and uncertainty calibration. Our results suggest that focal loss delivers a good combination of performance in terms of AUC and uncertainty calibration in terms of expected calibration error (ECE) simultaneously.
Morgan May, Pierpaolo Dondio, Simon Caton
Technological University Dublin, Dublin, Ireland · Research Ireland Centre for Research Training in Machine Learning, ML-Labs, Dublin, Ireland · Dublin City University, Dublin, Ireland +1
Stain variation across hospitals degrades histopathology models at deployment. Existing augmentation methods perturb color spaces with arbitrary hyperparameters, lacking both a principled budget and coverage guarantees for unseen centers. We propose \textbf{C}alibrated \textbf{A}dversarial \textbf{S}tain \textbf{A}ugmentation (\textbf{CASA}), which performs adversarial augmentation in the Macenko stain parameter space with a budget calibrated from multi-center statistics via the DKW inequality. On Camelyon17-WILDS (5 seeds), CASA achieves 93.9%±1.6% slide-level accuracy -- outperforming HED-strong (88.4%±7.3%), RandStainNA (85.2%±6.7%), and ERM (63.9%±11.3%) -- with the highest worst-group accuracy (84.9%±0.9%) among all 10 compared methods.
Mingi Hong
434, Samseong-ro, Gangnam-gu, Seoul, Republic of Korea
Background/Objectives: Dermoscopic skin-lesion classifiers lose accuracy when images arrive from a new clinic or a new device. We asked which data augmentations reduce that loss, and measured the effect under a protocol that keeps policy selection separate from policy evaluation. Methods: A ConvNeXt-Large binary malignant-versus-non-malignant classifier was trained on six dermoscopic sources (25,903 images); HAM10000 and ISIC 2016-2020 were held out of training entirely. Single augmentations, photometric combinations and eleven composite policies were ranked on a development split of 1511 held-out images. The winning policy was then evaluated on a confirmation set of 8073 held-out images that took no part in that ranking and from which we removed every image sharing a lesion identifier with the training data and every image contributed by an institution represented in training. Both policies were retrained with four random seeds each and compared with an exact permutation test. Results: The mix policy raised confirmation-set ROC-AUC from 0.787 to 0.826 (+0.039; per-seed ranges 0.772-0.797 and 0.815-0.840, non-overlapping; exact permutation p=0.029), with the same direction on each contributing source. At matched sensitivity the gain is larger in clinical terms: specificity rose from 0.612 to 0.713 at a sensitivity of 0.80, and from 0.284 to 0.397 at a sensitivity of 0.95. In-domain ROC-AUC was preserved (0.938 to 0.941). On an independent clinical cohort acquired with a different device at a different institution (472 images, 22 malignant), performance was maintained (0.934 versus 0.930). Conclusions: Augmentations that model the physical causes of domain shift improve cross-source transfer at no cost to in-domain accuracy, and the improvement survives a selection-disjoint, contamination-free evaluation.
Alexander Kozachok, Ilya Latyshev, Evgeny Karpulevich +3
Trusted AI Research Center, Russian Academy of Sciences, 109004 Moscow, Russia