Towards Facilitated Fairness Assessment of AI-based Skin Lesion Classifiers Through GenAI-based Image Synthesis

Ko Watanabe, Stanislav Frolov, Adriano Lucieri, Andreas Dengel · OpenReview

Abstract

Recent advances in deep learning and on-device inference could transform routine screening for skin cancers. Along with the anticipated benefits of this technology, potential dangers arise from unforeseen and inherent biases. A significant obstacle is building evaluation datasets that accurately reflect key demographics, including sex, age, and race, as well as other underrepresented groups. To address this, we train a state-of-the-art generative model to generate synthetic data in a controllable manner to assess the fairness of publicly available skin cancer classifiers. To evaluate whether synthetic images can be used as a fairness testing dataset, we prepare a real-image dataset (MILK10K) as a benchmark and compare the True Positive Rate result of three models (DeepGuide, MelaNet, and SkinLesionDensnet). As a result, the classification tendencies observed in each model when tested on real and generated images showed similar patterns across different attribute data sets. We confirm that highly realistic synthetic images facilitate model fairness verification.

Introduction

AI-based skin cancer screening holds immense promise for early detection, but it faces a significant "trustworthiness" problem. Most medical datasets are heavily skewed toward specific demographics—typically lighter-skinned individuals in specific age brackets. This "data desert" for underrepresented groups makes it incredibly difficult to audit whether an AI model is actually fair. If a dataset only has a handful of examples for a specific demographic, it is statistically impossible to prove bias. This research addresses the challenge of fairness assessment by using Generative AI to fill these demographic gaps, creating "digital twins" that allow researchers to stress-test models in a controlled, balanced environment.

Comparison of demographic coverage between real-world datasets and the proposed synthetic dataset. Red 'X' marks indicate missing demographic combinations in real data that are successfully populated in the synthetic cohort.

Methodology

The authors employed a state-of-the-art generative approach using LightningDiT, a Latent Diffusion Transformer with 675M parameters, to synthesize high-fidelity dermoscopic images. Unlike standard generators, this model is conditioned on specific metadata using CLIP-based text embeddings. This allows for controllable synthesis where researchers can "prompt" the model to generate specific combinations of sex, age (10–80 years), and Fitzpatrick skin type (I–VI).

To ensure comprehensive auditing, a full-factorial design was used to generate a synthetic test set of 81,600 images covering 96 unique demographic configurations. The model was trained on approximately 500,000 latent-image pairs from the ISIC Archive (2016–2024). For validation, the MILK10K dataset was used as a real-world baseline to audit three prominent open-source melanoma classifiers: DeepGuide, MelaNet, and SkinLesionDensnet.

Results and Fairness Audit

The most critical finding is that synthetic data acts as a reliable proxy for real data. The classification tendencies (biases) observed in the AI models when tested on real images were mirrored almost perfectly when tested on synthetic images.

True Positive Rate (TPR) performance of DeepGuide, MelaNet, and SkinLesionDensnet across sex, age, and skin type using the synthetic dataset.

Key observations from the audit include:

  • Consistency in Bias: For the attribute of sex, both DeepGuide and MelaNet showed higher True Positive Rates (TPR) for males than females on both real and synthetic data, while SkinLesionDensnet favored females.
  • Age Disparity: MelaNet showed a significant bias toward older age groups (higher TPR), a trend consistently captured by the synthetic test set.
  • Intersectional Auditing: The synthetic cohort allowed for the evaluation of "intersectional" data (e.g., very young patients with very dark skin) that is often missing from real-world archives.

Discussion and Conclusion

While sex and skin type trends matched well between real and synthetic data, the age-related performance did not fully converge, suggesting the generator may require more detailed attributes to mimic the complexities of aging skin perfectly. Furthermore, the authors noted that generated images for darker skin types (Fitzpatrick V-VI) reflected clinical realities where lighting and camera settings vary, suggesting AI models must learn features beyond simple pixel intensity.

Future work aims to include benign lesions to allow for a full analysis of False Positives and False Negatives. The ultimate goal is to move from using synthetic data for fairness assessment to using it for mitigation—training models on balanced datasets to eliminate bias from the start.

Summary updated

BibTeX
@inproceedings{watanabe2026towards,
  author = {Ko Watanabe and Stanislav Frolov and Adriano Lucieri and Andreas Dengel},
  title = {{Towards Facilitated Fairness Assessment of AI-based Skin Lesion Classifiers Through GenAI-based Image Synthesis}},
  booktitle = {WACVW},
  year = {2026},
  doi = {10.1109/wacvw68408.2026.00032},
}
Figure