Loss functions affect neural network accuracy in melanoma detection

On Impact of Loss Function on the Performance of Neural Networks in Melanoma Diagnosis

Artificial IntelligenceComputer Vision and Pattern RecognitionMachine Learning

Summary

Melanoma is a dangerous skin cancer that needs to be caught early. Neural networks can help spot melanoma from images, but they struggle because there are many more harmless images than cancer images. The authors tested different ways to teach these networks, called loss functions, and found that one called focal loss helped the networks balance accuracy and confidence better than others. This means better identifying melanoma while being clear about when they are unsure.

What this means in practice

  • For medical imaging teams: Improve training of melanoma detection models by choosing loss functions that balance accuracy and uncertainty.
  • For healthcare ai developers: Use focal loss to enhance reliability and performance of skin cancer screening tools built on neural networks.

Authors

Morgan May, Pierpaolo Dondio, Simon Caton

Abstract

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.