DDI Audit Report
Diverse Dermatology Images — Daneshjou et al. 2022 (Stanford)
Summary
656
Total images
0
Duplicates (SHA256)
0
Leakage
60/20/20
Split · seed 42
Split
| Split | Count | % |
|---|---|---|
| Train | 393 | 59.9% |
| Val | 131 | 20.0% |
| Test | 132 | 20.1% |
| Total | 656 | 100% |
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
| Model | Light AUROC | Dark AUROC | Gap |
|---|---|---|---|
| Baseline | 0.7188 | 0.5875 | -0.1313 |
| Fine-tuned | 0.7563 | 0.5469 | -0.2094 |
| + Synthetic dark mel. | 0.7719 | 0.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
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
SHA-256 hashes included. All filenames per partition.
dermatology-sample.zip10 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 0Expected output: Overlap: 0. Any non-zero result indicates leakage.
Caveat
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.
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

