DDI-CoCo: A Dataset for Understanding the Effect of Color Contrast in Machine-Assisted Skin Disease Detection

Ming-Chang Chiu, Yingfei Wang, Yen-Ju Kuo, Pin-Yu Chen

Abstract

Machine learning models in dermatology often exhibit performance disparities across different skin tones, a phenomenon known as skin tone bias. This study introduces DDI-CoCo, a dataset derived from the Diverse Dermatology Images (DDI) collection, augmented with color contrast labels. We investigate the hypothesis that color contrast—the visual difference between a lesion and the surrounding skin—is a primary driver of these diagnostic inequities. Our findings reveal that while models generally struggle with low-contrast lesions, this effect is disproportionately represented in darker skin tones (Fitzpatrick types V-VI). By fine-tuning models on the DDI-CoCo dataset, we demonstrate that performance gaps can be significantly narrowed, suggesting that contrast-aware training is essential for developing equitable AI diagnostic tools.

Introduction

The deployment of AI in dermatology has been hampered by significant performance drops on darker skin tones. While the lack of diverse training data is a primary suspect, optical factors inherent to image capture and lesion presentation remain under-explored. This paper addresses the role of color contrast in AI diagnostic accuracy. In clinical settings, lesions that blend into the background skin are notoriously difficult to detect. We hypothesize that this "contrast gap" is a major contributor to AI performance disparities, particularly for patients with darker skin who often face higher mortality rates due to delayed diagnosis.

Methods and Dataset Construction

To quantify the impact of contrast, the authors developed a systematic labeling and scoring process for the DDI dataset.

The DDI-CoCo Pipeline

The creation of DDI-CoCo involved three main steps:

  1. Point Selection: Expert labellers selected three points within the lesion (foreground) and three points on adjacent healthy skin (background).
  2. Contrast Scoring: RGB values from these points were averaged and processed using the Web Content Accessibility Guidelines (WCAG) formula to generate a numerical contrast score.
  3. Grouping: Images were categorized into "High" and "Low" contrast subgroups based on these scores.
The DDI-CoCo pipeline: from point selection on DDI images to contrast-based grouping.

Experimental Setup

The study utilized three distinct neural network architectures—InceptionV3, EfficientNetV2-S, and Swin Transformer V2-B—to evaluate whether contrast sensitivity is a universal architectural trait. Models were initially pre-trained on the large-scale ISIC 2019 dataset and then evaluated or fine-tuned on the pathologically confirmed DDI-CoCo dataset.

Key Insights: The Interaction of Contrast and Skin Tone

The core finding of this research is that color contrast acts as a hidden variable that mediates skin tone bias.

Contrast as a Performance Driver

Regardless of the underlying skin tone, models consistently performed better on high-contrast images. This suggests that visual saliency is a fundamental requirement for current computer vision models in dermatology.

The Interaction Effect

A critical discovery was the interaction between skin tone and contrast. The observed "skin tone bias" is most acute in low-contrast scenarios. In high-contrast images, the performance gap between light (FST I-II) and dark (FST V-VI) skin tones is nearly eliminated. This indicates that AI failure on darker skin is often a failure to handle low-contrast features rather than an inability to process dark skin color itself.

Performance analysis (AUC) showing the interaction between skin tone and contrast levels. (a) AUC by contrast group split by skin tone. (b) AUC by skin tone group split by contrast.

Architecture Invariance

The sensitivity to contrast was observed across all tested models, including both traditional CNNs and modern Vision Transformers. This suggests that contrast sensitivity is a deep-seated characteristic of how these models learn visual features from medical imagery.

Results and Mitigation

The study demonstrates that the performance gap is not immutable.

  • Initial Disparity: Models trained solely on ISIC 2019 showed significant AUC disparities between high and low contrast groups.
  • Fine-tuning Success: Fine-tuning on the diverse, contrast-labeled DDI-CoCo dataset effectively "closed the gap." For instance, the SwinV2 model achieved an AUC of 0.852 for high contrast and 0.832 for low contrast after fine-tuning—a remarkably narrow margin.
  • Achieving Parity: Post-fine-tuning, performance on dark skin (FST V-VI) reached parity with, and in some instances surpassed, performance on light skin. This proves that exposure to diverse, low-contrast examples during training is a viable path toward algorithmic fairness.

Conclusion and Future Directions

DDI-CoCo provides a vital framework for understanding and mitigating diagnostic biases in dermatology AI. While the study is limited by the relatively small size of the pathologically confirmed DDI dataset and the manual nature of current point selection, it opens new avenues for research. Future work will focus on automating contrast calculation via segmentation and extending this analysis to non-malignant inflammatory skin diseases. Ultimately, prioritizing contrast diversity in training data is essential for ensuring that AI-assisted dermatology serves all patients equitably.

Summary updated

BibTeX
@inproceedings{chiu2024ddi,
  author = {Ming-Chang Chiu and Yingfei Wang and Yen-Ju Kuo and Pin-Yu Chen},
  title = {{DDI-CoCo: A Dataset for Understanding the Effect of Color Contrast in Machine-Assisted Skin Disease Detection}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10448011},
}
Figure