arXiv:2610.06146cs.AIOct 2026

Manuscript Offprint

arXiv:2610.06146

Impact of Data Augmentation on Confidence Calibration in Melanoma Classification

Morgan May, Simon Caton, Pierpaolo Dondio

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Morgan May 1,4^{1,4}[0009-0006-1953-7600], Simon Caton 2^{2}[0000-0001-9379-3879], and Pierpaolo Dondio 3^{3}[0000-0001-7874-8762]

1^{1} Technological University Dublin, Dublin, Ireland

2^{2} University College Dublin, Dublin, Ireland

3^{3} Dublin City University, Dublin, Ireland

4^{4} Research Ireland Centre for Research Training in Machine Learning, ML-Labs, Dublin, Ireland

simon.caton@ucd.ie

Abstract. 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 show improvements in uncertainty calibration using different augmentation methods.

Keywords: Melanoma diagnosis · image classification · uncertainty calibration · imbalanced data. · data augmentation

1 Introduction

Skin cancer is reported to be the most common form of cancer in Ireland, with approximately 7,000 annual new cases [27][27]. Even the most dangerous form of skin cancer, malignant melanoma can be cured, if diagnosed in early stages.

Deep learning has transformed medical image classification, for example, in melanoma diagnosis [5,17,22][5,17,22]. Recently, the reliability of the confidence of model predictions, referred to as calibration, has attracted attention [7,19][7,19]. This is essential especially for safety sensitive applications such as medical diagnosis [13,14,29][13,14,29], and specifically in melanoma classification [1,12,15][1,12,15]. Calibration refers to the alignment between predicted probabilities and observed event frequencies. Efforts to improve the calibration of neural networks have led to the development of various methods [6,30][6,30].

Data augmentation has shown benefits in calibration improvement [2,11,16,34]. It increases data diversity by applying different transformations to the original data samples. It is also used to increase the training samples [26], in particular for skin lesion diagnosis [23,24,31]. Test-time augmentation is shown to improve the calibration of different neural networks trained on melanoma dataset under distribution shift [9]. Authors in [25] evaluated the effect of mixup [33], CutMix [32], and cutout [4] on the calibration and performance of ResNet-50 and ResNet-101 for medical tasks. They report that in terms of AUC and accuracy, ResNet-50 and ResNet-101 achieved no significant performance improvement or even worse performance by using these augmentations, while they all improved the calibration. This work evaluates the impact of a wider range of augmentation methods including mixup and CutMix from mixing augmentation family, and trivialaugment and RandAugment from automated augmentation family, on EfficientNet-B0 and EfficientNet-B2 [28] that have shown state of the art performance on ISIC melanoma data [8]. We examine the performance of the models on melanoma classification by using data augmentation as a partial transformation to a randomly selected part of the training data. Our experiments show that partial data augmentation can improve expected calibration error (ECE), while maintaining a competitive AUC, or even improving AUC slightly.

References (33)