FairMed AI

DDI Audit Report

Diverse Dermatology Images — Daneshjou et al. 2022 (Stanford)

Verified656 images0 leakageLast: Oct 12 2026 · Rev 2

Summary

656

Total images

0

Duplicates (SHA256)

0

Leakage

60/20/20

Split · seed 42

Split

Verified — Zero Leakage
SplitCount%
Train39359.9%
Val13120.0%
Test13220.1%
Total656100%

Stratified by skin_tone × malignant, seed 42, 60/20/20 → 393/131/132. Train dark melanoma: 29 — the source pool for the 290 synthetic dark-skin melanoma images (train-only).

Representation

~60%

Whole DDI · Dark (V–VI)

~25%

Whole DDI · Medium (III–IV)

~15%

Whole DDI · Light (I–II)

DDI is intentionally enriched for dark skin tones — the inverse of typical dermatology datasets. Test set (n=132): 42 Light / 48 Medium / 42 Dark, 10 melanomas per reported subgroup.

Fairness Gap

Core Result

ModelLight AUROCDark AUROCGap
Baseline0.71880.5875-0.1313
Fine-tuned0.75630.5469-0.2094
+ Synthetic dark mel.0.77190.4813-0.2906

Paired Dark AUROC delta (synthetic vs fine-tuned): -0.0663, 95% CI [-0.1508, 0.0080], p = 0.9620

Synthetic-stage Fairness Gap (Light − Dark)

-0.29

exact: -0.2906 · gap persists after fine-tuning and synthetic augmentation — dark skin performance drops

Across stages, light AUROC rises 0.7188 → 0.7563 → 0.7719 while dark AUROC falls 0.5875 → 0.5469 → 0.4813. Fine-tuning amplifies the imbalance rather than closing it, and adding 290 synthetic dark-skin melanomas does not close the gap (paired dark AUROC delta -0.0663, p=0.9620 NS).

Synthetic Pipeline

Leakage-proof — SHA256 verified

All 290 synthetic dark-skin melanoma images were generated exclusively from the 29 training-split dark melanomas. Train-only, never val/test. Byte-level SHA256 verification confirms zero overlap with the 132 test images.

290

Synthetic dark melanoma

29

Train-split source images

0

Test overlap (SHA256)

Takeaway: simple photometric augmentation cannot meaningfully close the skin-tone gap. The next step is richer generative models, such as GANs or diffusion models.

Files

ddi_split_seed42.json

SHA-256 hashes included. All filenames per partition.

dermatology-sample.zip

10 real DDI images for demo and tool testing.

How to Verify

import json

with open("splits/ddi_split_seed42.json") as f:
    splits = json.load(f)

overlap = set(splits["train"]) & set(splits["test"])
print(f"Overlap: {len(overlap)}")  # must be 0

Expected output: Overlap: 0. Any non-zero result indicates leakage.

Caveat

CaveatThe baseline checkpoint is partial (best validation epoch 5); a full 15-epoch run is pending. Bootstrap CIs are wide — results are directional, not definitive.

Limitations

Not clinical. Checks file hashes only. Small subgroup sizes (10 melanomas per reported subgroup) and a partial baseline checkpoint mean results are directional, not definitive.


Audited with FairMed Scanner v1 · 656 images · Oct 12 2026 · Rev 2 · DOI 10.5281/zenodo.23330297

Daneshjou, R., Vodrahalli, K., Novoa, R. A., Jenkins, M., Liang, W., Rotemberg, V., Ko, J., & Chiou, A. S. (2022). Disparities in dermatology AI performance on a diverse, curated clinical image set. Science Advances, 8(32), eabq6147. https://doi.org/10.1126/sciadv.abq6147