Manuscript Offprint

arXiv:2609.02111

Disease Burden over Skin Tone: Decomposing the Dermatology-AI Generalization Gap

Nirajan Kunwor, Sanjaya Poudel, Quoc-Huy Trinh, Jahidul Arafat, Sunil Kumar Gaire

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Nirajan Kunwor¹, Sanjaya Poudel², Quoc-Huy Trinh³, Jahidul Arafat⁴, and Sunil Kumar Gaire²*

¹Tribhuvan University, ²North Carolina A&T State University, ³Aalto University, ⁴Auburn University *skgaire@ncat.edu

Abstract. Dermatology artificial intelligence (AI) models are trained predominantly on light-skinned, cancer-focused image collections, yet are increasingly proposed for deployment in resource-constrained settings (RCS) whose patients differ from the training population along two confounded axes at once: skin tone and disease distribution. When such models underperform, the field has largely attributed the failure to skin-tone underrepresentation. We evaluate a cancer-trained baseline (ResNet-50 fine-tuned on HAM10000 and ISIC 2019), two open dermatology foundation models (DermLIP, MONET), and a general-purpose vision model (DINOv3) as frozen feature extractors, probing them on a tone-stratified but disease-matched dataset (Diverse Dermatology Images, DDI) and a disease-shifted, tone-diverse dataset (Skin Condition Image Network, SCIN). DDI and SCIN are US-sourced datasets used here as controlled proxies for the two axes of shift; they are not RCS-collected cohorts, and our deployment-oriented conclusions are correspondingly inferential. In our setting, disease-distribution shift contributes more than skin tone: the cancer baseline degrades sharply from its in-domain performance to unfamiliar conditions (a drop from 0.62 to 0.21 balanced accuracy across clinical categories), a far larger effect than the within-disease skin-tone gap, which is comparatively small (0.10-0.18) and did not show a consistent direction. Using a label-free representation-quality analysis, we show this collapse is representational, not merely an artifact of disjoint label spaces: cancer-specialized features barely cluster unfamiliar conditions (kNN neighbor-purity lift +0.06 over chance), whereas dermatology-pretrained features retain substantially more transferable structure (+0.23). Finally, representation quality closely tracks recoverable performance under cheap adaptation: starting from a dermatology foundation model, roughly ten labeled examples per clinical category recover most attainable performance. We release code and the evaluation protocol to support reproducible auditing. Code is available at: https://github.com/Nirajan995/dermatology-generalization-gap

Keywords: Dermatology AI · Distribution shift · Algorithmic fairness · Foundation models · Resource-constrained settings · Frozen features.

1 Introduction

Artificial intelligence (AI) for skin-disease classification has advanced rapidly, driven by large public archives such as ISIC and HAM10000. These archives are, however, narrow in two aspects: they are dominated by lighter skin tones and by neoplastic (cancer-related) conditions captured with dermoscopy. The settings where AI-assisted dermatology could have the greatest impact-resource-constrained primary-care and teledermatology clinics-differ from this training regime on both counts simultaneously. Patients present with more pigmented skin, and with a disease burden dominated by inflammatory and infectious conditions (eczema, tinea, impetigo, scabies) that are largely absent from cancer-centric training data.

When dermatology AI generalizes poorly to these settings, the prevailing explanation emphasizes skin-tone underrepresentation, motivating substantial effort toward tone-diverse data collection [3,9,12]. Yet skin tone and disease distribution are confounded in real deployments: a model that fails on a dark-skinned patient with eczema may fail because of skin tone, because eczema was never in its training set, or both. Distinguishing these causes is not merely academic; it determines where scarce data-collection and model-development resources should be directed. If the dominant driver is disease distribution, tone-diversification alone will not close the gap. Distribution shift is a known failure mode for medical AI [15,16,21,22], and in underserved populations, it can translate directly into diagnostic bias [23]; dermatology is especially challenging because tone and disease prevalence shift simultaneously, obscuring the cause of failure.

Prior work has begun to probe this question. Rikhye et al. [1] found that errors in a proprietary teledermatology deployment tracked skin-condition categories more than demographics, but relied on non-public data and a relatively mild within-system shift. Open benchmarking efforts [2,3,9] establish that dermatology foundation models transfer imperfectly to pigmented populations. What remains untested, in an open and reproducible setting, is a direct decomposition of the gap into its tone and distribution components at an extreme shift and, more fundamentally, whether observed failures reflect a genuine representational deficit or merely the absence of output labels for unfamiliar conditions.

To resolve these questions, we conduct an open and fully reproducible study using only public datasets and free-tier compute. Our contributions are threefold:

  1. An open, reproducible decomposition of the gap into tone and distribution effects, using DDI (matched diagnoses, stratified Fitzpatrick tone) for the tone effect and SCIN (tone-diverse, non-neoplastic) for the distribution effect. Distribution shift dominates across all evaluated models.

  2. A label-free representational analysis showing the distribution-driven collapse is not an artifact of disjoint label spaces: cancer-specialized features fail to cluster unfamiliar conditions even before any classifier is trained, whereas dermatology-pretrained features retain substantially more transferable structure.

  3. A low-compute adaptation benchmark showing recoverable performance is bounded by pre-existing representation quality (r=0.90r = 0.90), and that a dermatology foundation model adapted with ∼\sim10 labeled examples per category recovers most attainable performance without retraining.

Throughout we adopt patient-level splits and report bootstrap confidence intervals. DDI and SCIN are US-sourced proxies rather than RCS-collected cohorts; we return to this in Section 5.

References (24)

  • Closing the AI generalisation gap by adjusting for dermatology condition distribution differences across clinical settings
  • Towards scalable foundation models for digital dermatology (opens arXiv in a new tab)
  • Disparities in dermatology AI performance on a diverse, curated clinical image set
  • Derm1M: A million-scale vision-language dataset aligned with clinical ontology knowledge for dermatology
  • Transparent medical image AI via an image-text foundation model grounded in medical literature
  • DermaCon-IN: A multi-concept annotated dermatological image dataset of Indian skin disorders for clinical AI research
  • The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions
  • Crowdsourcing dermatology images with Google Search ads: creating a real-world skin condition dataset (SCIN) (opens arXiv in a new tab)
  • Evaluating deep neural networks trained on clinical images in dermatology with the Fitzpatrick 17k dataset
  • Skin lesion analysis toward melanoma detection 2018: A challenge hosted by the International Skin Imaging Collaboration (ISIC) (opens arXiv in a new tab)
  • Dermatologist-level classification of skin cancer with deep neural networks
  • Deep learning-aided decision support for diagnosis of skin disease across skin tones
  • DINOv3
  • A framework for evaluating the efficacy of foundation embedding models in healthcare
  • WILDS: A benchmark of in-the-wild distribution shifts
  • Measuring robustness to natural distribution shifts in image classification
  • DINOv2: Learning robust visual features without supervision
  • Learning transferable visual models from natural language supervision
  • A multimodal biomedical foundation model trained from fifteen million image-text pairs
  • MedCLIP: Contrastive learning from unpaired medical images and text
  • Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: A cross-sectional study
  • Key challenges for delivering clinical impact with artificial intelligence
  • Underdiagnosis bias of artificial intelligence algorithms applied to chest radiographs in under-served patient populations
  • A multimodal vision foundation model for clinical dermatology