Data, depth, and design: Learning reliable models for skin lesion analysis

Eduardo Valle, Michel Fornaciali, Afonso Menegola, Julia Tavares, Flávia Vasques Bittencourt, Lin Tzy Li, Sandra Avila

Abstract

Optimizing and evaluating models on the same dataset lead to overoptimistic results. We evaluate the impact of 9 factors from deep-learning for skin lesion analysis. We show the importance of ensembles and transfer learning to provide good results. We achieve competitive AUC in all 3 classification tasks of the ISIC Challenge 2017. We make all our code, data, and procedures available to the community.

Introduction

The field of automated skin lesion analysis has seen a surge in deep learning research, with numerous papers claiming superior performance through specific architectures or preprocessing techniques. However, these recommendations are often contradictory because researchers typically test only a few variables on single datasets. This paper moves beyond the "chase for the highest AUC" to provide a rigorous, systematic evaluation of what actually makes deep learning models work.

A significant issue identified is the widespread practice of hyperoptimizing on the test set—iteratively refining models based on test performance. This "methodological sin" leaks privileged information into the design process, leading to overoptimistic results that fail to generalize to real-world clinical data. This study aims to map the hyperparameter landscape using a statistically sound approach.

Methods

The authors employed a two-level full factorial design analyzed via Multi-way Analysis of Variance (ANOVA). Instead of changing one variable at a time, they tested nearly every possible combination of key design factors, ranging from model architecture to test-time augmentation.

Summary of the design factors and their levels evaluated in the factorial experiments.

The main experiment involved 9 factors across 2,560 trials, while a secondary experiment focused on transfer learning with 1,280 trials. By testing these across five different test sets, the researchers quantified the contribution of each factor to final performance using the $\eta^2$ measure.

Datasets and Generalization

To ensure robustness, the study aggregated several major public and private-access sources. These included the ISIC 2017 Challenge, the ISIC Archive, the Dermofit Image Library, the PH2 Dataset, and the EDRA Interactive Atlas of Dermoscopy. This variety allowed for testing generalization across both dermoscopic and clinical (close-up) photography.

Visual examples of skin lesions from the diverse datasets used in the study, highlighting differences in imaging conditions and lesion types.

Key Insights and Results

The systematic evaluation revealed several critical findings:

  • Data Volume is Paramount: Training data volume explained nearly half (46%) of the variation in model performance, outweighing almost every other design choice.
  • Transfer Learning is Essential: In secondary experiments, transfer learning explained 62.8% of the relative variation. Training deep models from scratch on medical data proved largely ineffective compared to fine-tuning from ImageNet.
  • The "Free" Win of TTA: Test-time augmentation (averaging predictions over multiple augmented versions of a test image) was the most influential factor after data volume, requiring no additional training.
  • Segmentation Pitfalls: Contrary to common belief, including segmentation masks as an input often hurt performance or provided negligible gains.
  • The Ensembling Edge: Simple ensembles (averaging models with random hyperparameters) outperformed sequential optimization, providing a more stable path to high performance.

The study also quantified the cost of "cheating": hyperoptimizing on the test set creates an artificial performance boost of approximately 2.0 AUC percentage points. While seemingly small, this margin often separates top-tier competition entries.

Conclusion

The findings emphasize the need for scale in skin lesion analysis. Future progress depends on curating shared datasets at least ten times larger than current repositories to truly leverage deep learning's potential. Furthermore, the community must shift toward "blind" evaluation procedures to prevent overoptimistic reporting and ensure models are reliable for clinical application.

Summary updated

BibTeX
@inproceedings{valle2020data,
  author = {Eduardo Valle and Michel Fornaciali and Afonso Menegola and Julia Tavares and Flávia Vasques Bittencourt and Lin Tzy Li and Sandra Avila},
  title = {{Data, depth, and design: Learning reliable models for skin lesion analysis}},
  booktitle = {Neurocomputing},
  year = {2020},
  url = {https://openreview.net/forum?id=CcnouaFzTx},
}
Figure