FairSkin: Fair Diffusion for Skin Disease Image Generation

Ruichen Zhang, Yuguang Yao, Zhen Tan, Zhiming Li, Pan Wang, Huan Liu, Jingtong Hu, Sijia Liu, Tianlong Chen

Abstract

Image generation is a prevailing technique for clinical data augmentation for advancing diagnostic accuracy and reducing healthcare disparities. Diffusion Model (DM) has become a leading method in generating synthetic medical images, but it suffers from a critical twofold bias: (1) The quality of images generated for Caucasian individuals is significantly higher, as measured by the Frechet Inception Distance (FID). (2) The ability of the downstream-task learner to learn critical features from disease images varies across different skin tones. These biases pose significant risks, particularly in skin disease detection, where underrepresentation of certain skin tones can lead to misdiagnosis or neglect of specific conditions. To address these challenges, we propose FairSkin, a novel DM framework that mitigates these biases through a three-level resampling mechanism, ensuring fairer representation across racial and disease categories. Our approach significantly improves the diversity and quality of generated images, contributing to more equitable skin disease detection in clinical settings.

Introduction

Artificial Intelligence is transforming dermatology, but it carries a hidden "twofold bias" that threatens to worsen healthcare disparities. First, current Diffusion Models (DMs) generate significantly lower-quality images for individuals with darker skin tones compared to Caucasian individuals. Second, downstream diagnostic classifiers struggle to learn meaningful features from these underrepresented groups, leading to higher rates of misdiagnosis.

This stems from the "long-tail" nature of medical datasets, where certain racial groups and rare diseases are severely underrepresented. If we use biased synthetic data to train medical AI, we risk hard-coding inequality into clinical practice. The authors of FairSkin set out to bridge this gap by ensuring fairness is baked into the generative process from the start.

Overview of the skin disease imbalance problem (long-tail) and the proposed FairSkin framework.

Methodology

The FairSkin framework implements a comprehensive three-level strategy to tackle bias at every stage of the pipeline:

  1. Level 1: Training Data Resampling: To prevent the model from ignoring minority classes, the framework employs Class Balanced Random Sampling (CBRS) and Square Root Random Sampling (SQRS). These techniques assign higher weights to underrepresented (race, disease) pairs during the initial training phase.
  2. Level 2: Balanced DM Training: A Class Diversity Loss is introduced into the Diffusion Model. This loss function penalizes the model if the noise it predicts for a specific class is too similar to a randomly sampled class, forcing the model to learn distinct, high-fidelity features for every skin tone.
  3. Level 3: Downstream Balancing: Once the generative model is fair, it is used to augment the training set for a final classifier using Imbalance-aware Augmentation and Dynamic Reweighting, which adjusts the classifier's loss function based on real-time validation accuracy.
The detailed three-level framework of FairSkin, illustrating data resampling, diversity loss in training, and downstream balancing techniques.

Datasets

The study utilizes the Fitzpatrick17k dataset, which contains 16,577 clinical images labeled with Fitzpatrick skin type scales. The researchers focused on the top five disease classes and subdivided them into 15 sub-classes based on racial labels (Asian, African, and Caucasian) to evaluate fairness across diverse populations.

Key Results and Insights

The FairSkin framework demonstrated significant improvements over vanilla Diffusion Models and previous state-of-the-art methods:

  • Generation Fairness: The FID Variance (a measure of quality disparity between groups) dropped from 603.74 in the vanilla model to 327.11 with FairSkin.
  • Classification Fairness: The Demographic Parity (DP) score improved from 25.04 to 9.95, indicating a much more balanced performance across racial groups.
  • Equity-Scaled Performance: The ESSP metric (balancing accuracy and fairness) nearly doubled, rising from 3.76 to 7.78.

A critical insight is that quality is a fairness metric. If generated images for certain groups are "blurrier" or less anatomically correct, the resulting diagnostic tool will be inherently biased. By penalizing noise prediction overlap, FairSkin ensures the model respects the unique visual characteristics of different skin tones.

Conclusion

FairSkin provides a robust path toward more equitable medical AI by intervening at the data, generative, and application levels. While currently focused on dermatology, the framework's principles are applicable to other biased medical fields such as radiology and ophthalmology. Future work will focus on real-world clinical validation to ensure these synthetic images effectively assist medical professionals in making accurate, unbiased decisions.

Summary updated

BibTeX
@misc{zhang2024fairskin,
  author = {Ruichen Zhang and Yuguang Yao and Zhen Tan and Zhiming Li and Pan Wang and Huan Liu and Jingtong Hu and Sijia Liu and Tianlong Chen},
  title = {{FairSkin: Fair Diffusion for Skin Disease Image Generation}},
  year = {2024},
  eprint = {2410.22551},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.22551},
}
Figure