[Paper Review] Diffusion-based Data Augmentation for Skin Disease Classification: Impact Across Original Medical Datasets to Fully Synthetic Images
This paper proposes a diffusion-based data augmentation method for skin disease classification, using text-conditioned stable diffusion models to generate high-fidelity synthetic skin images. It demonstrates that classifiers trained on fully synthetic datasets achieve comparable accuracy to those trained on real data, with only a minor drop in performance, validating synthetic data as a viable alternative for privacy-preserving medical AI.
Despite continued advancement in recent years, deep neural networks still rely on large amounts of training data to avoid overfitting. However, labeled training data for real-world applications such as healthcare is limited and difficult to access given longstanding privacy, and strict data sharing policies. By manipulating image datasets in the pixel or feature space, existing data augmentation techniques represent one of the effective ways to improve the quantity and diversity of training data. Here, we look to advance augmentation techniques by building upon the emerging success of text-to-image diffusion probabilistic models in augmenting the training samples of our macroscopic skin disease dataset. We do so by enabling fine-grained control of the image generation process via input text prompts. We demonstrate that this generative data augmentation approach successfully maintains a similar classification accuracy of the visual classifier even when trained on a fully synthetic skin disease dataset. Similar to recent applications of generative models, our study suggests that diffusion models are indeed effective in generating high-quality skin images that do not sacrifice the classifier performance, and can improve the augmentation of training datasets after curation.
Motivation & Objective
- Address the challenge of limited labeled medical data in dermatology by leveraging generative models for data augmentation.
- Overcome privacy and data sharing barriers in healthcare by enabling synthetic data generation without compromising patient confidentiality.
- Evaluate whether classifiers trained on fully synthetic skin disease images can match performance on real data.
- Develop a closed-loop pipeline to curate and refine synthetic images using domain expertise and model feedback.
- Investigate the impact of text-conditioned diffusion models on improving classifier robustness and diversity in skin disease classification.
Proposed method
- Fine-tune the stable diffusion model using text inversion to learn class-specific embeddings for six skin diseases: basal cell carcinoma, melanoma, actinic keratosis, atypical melanocytic nevus, lentigo, and seborrheic keratosis.
- Condition image generation on text prompts (e.g., 'melanoma') to produce diverse, high-fidelity synthetic skin images in the latent space.
- Construct three training datasets: real-small (250 images), real (500 images), hybrid (250 real + 250 synthetic), and fully synthetic (500 synthetic images).
- Train an ensemble classifier using Swin-Transformer, EfficientNetV2, and RegNetZ architectures with early stopping based on validation loss.
- Normalize input images using channel-wise mean and standard deviation computed per dataset for consistent preprocessing.
- Evaluate inference performance on a held-out test set of 3,582 real images using top-k accuracy (top-1 to top-5).

Experimental results
Research questions
- RQ1Can text-conditioned diffusion models generate synthetic skin disease images that are visually realistic and suitable for training deep learning classifiers?
- RQ2How does classifier performance compare when trained on fully synthetic data versus real data for skin disease classification?
- RQ3To what extent does incorporating synthetic data improve classification accuracy compared to training on limited real data alone?
- RQ4Does the use of synthetic data reduce overfitting and improve generalization, especially when real data is scarce?
- RQ5Can the generated synthetic images be effectively curated and used in a closed-loop pipeline to enhance dataset diversity and quality?
Key findings
- Classifiers trained on a fully synthetic dataset achieved a top-1 accuracy of 47.29%, which is only slightly lower than the 54.05% achieved on real data.
- The top-5 accuracy on the fully synthetic dataset was 96.85%, closely matching the 96.96% on real data, indicating strong generalization capability.
- Even with only 250 real images (real-small), the top-1 accuracy reached 53.41%, showing that synthetic data can effectively compensate for data scarcity.
- The hybrid dataset (50% real, 50% synthetic) achieved a top-1 accuracy of 54.13%, slightly outperforming the real-only baseline of 54.05%.
- The fully synthetic dataset enabled faster convergence during training, likely due to non-perceptible differentiating features that improved optimization dynamics.
- Clinical experts confirmed that the synthetic images were visually plausible and clinically relevant, supporting their use in real-world medical AI applications.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.