Melanoma Detection with Uncertainty Quantification

Sanghyuk Kim, Edward Gaibor, Brian Matejek, Daniel Haehn

TL;DR

By combining ten public datasets and integrating uncertainty quantification, this framework significantly improves the reliability of deep learning models for melanoma detection. Implementing an uncertainty-based rejection mechanism filters out low-confidence predictions, boosting classification accuracy up to 97.8% and slashing misdiagnoses by over 40.5%.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) have shown immense promise in medical imaging, but translating them to clinical settings remains risky. In melanoma detection, models often suffer from two major flaws: they are evaluated under inconsistent testing conditions using isolated datasets, and they can be "confidently incorrect." A model that misclassifies a malignant lesion as benign (a false negative) with 99% confidence poses a severe clinical hazard.

This paper addresses the lack of standardized evaluation across diverse data sources and tackles the challenge of model overconfidence. The authors aim to create a unified, reliable diagnostic framework that knows when to make a prediction and when to say, "I don't know," deferring ambiguous cases to human experts.

Methods

The authors developed a framework consisting of four distinct modules:

  1. Input: Parses and standardizes the varying structures of multiple public skin lesion datasets, merging them into a unified environment.
  2. Melanoma Recognition: Performs binary classification ("Melanoma" vs. "Non-Melanoma") using standard architectures (ResNet, DenseNet, VGG, and EfficientNet) pre-trained on ImageNet. It also evaluates model reliability using Expected Calibration Error (ECE) and Brier scores.
  3. Uncertainty Analysis: Quantifies the network's confidence using Shannon’s entropy: $$H(X) = -\sum_{i=1}^{n} p_i \log(p_i)$$ This metric evaluates the entire probability distribution to catch model indecision.

  4. Integration: Implements a dynamic rejection threshold. If a prediction's entropy exceeds the threshold, it is routed to an "Uncertain" class meant for human expert review, while only high-confidence predictions are retained for automated diagnosis.

The four-module framework pipeline integrating dataset aggregation, CNN classification, uncertainty analysis, and expert referral.

Additionally, the authors built a lightweight web application using a MeshNet architecture with volumetric dilated convolutions, enabling fast, client-side (edge computing) privacy-preserving inference directly in the browser.

Datasets

The framework leverages 10 publicly available skin disease datasets to maximize data diversity:

  • ISIC Archive: ISIC’16, ISIC’17, ISIC’18, ISIC’19, and ISIC’20
  • 7-point criteria
  • PH2
  • PAD_UFES_20
  • MEDNODE
  • Kaggle (Skin Cancer: Malignant vs. Benign)

To handle the severe class imbalance typical of these datasets (where non-melanoma cases heavily outnumber melanoma cases), the authors applied oversampling and extensive data augmentation techniques (color jitter, random flips, zooming, and random resized crops).

Key Insights and Ideas

  • Data Diversity Improves Calibration: Training models on combined datasets rather than single datasets forces the networks to generalize better, aligning their predicted probabilities much closer to the ideal calibration curve ($y=x$).
  • Shallower Models Can Be More Reliable: Interestingly, shallower architectures like VGG and EfficientNet often demonstrated superior calibration compared to deeper networks like ResNet and DenseNet, aligning with existing literature that deeper networks can suffer from worse overconfidence.
  • Strategic Rejection Boosts Performance: Rejecting the bottom 10% to 20% lowest-confidence predictions dramatically cleans up the remaining pool, significantly raising the accuracy of the automated system.

Key Results

  • Accuracy Boost: Across benchmark datasets, classification accuracy reached up to 93.2% before rejection and jumped to 97.8% after applying uncertainty-based rejection.
  • Misdiagnosis Reduction: The framework achieved an overall reduction in misdiagnoses of over 40.5%.
  • Fewer False Negatives: In an ablation study using EfficientNetB1, the system successfully prevented 353 misdiagnoses, reducing dangerous false negatives by an average of 66.5% across test sets, and up to 81% on the Kaggle test set.
  • Competitive Benchmarking: When evaluated on the SIIM-ISIC challenge, an EfficientNetB1 model trained within this framework achieved a top private score AUC-ROC of 90.7%.
Bar chart showing the substantial drop in false positives (FP) and false negatives (FN) after applying uncertainty-based rejection across different test datasets.

Limitations and Future Work

While the framework shows strong quantitative improvements, the authors note several areas for future development:

  • Real-World Validation: The system needs to be validated using real-time clinical diagnosis data collected directly from practicing dermatologists.
  • Generative Retraining: The authors plan to incorporate Generative Adversarial Networks (GANs) to synthesize rare case types for iterative model retraining.
  • Domain Expansion: A natural next step is extending this uncertainty-aware framework to other critical medical imaging domains, such as mammograms for breast cancer screening.

Summary updated

BibTeX
@inproceedings{kim2025melanoma,
  author = {Sanghyuk Kim and Edward Gaibor and Brian Matejek and Daniel Haehn},
  title = {{Melanoma Detection with Uncertainty Quantification}},
  booktitle = {ISBI},
  year = {2025},
  doi = {10.1109/isbi60581.2025.10981143},
}
Figure