Abstract
Data scarcity and racial bias are significant hurdles in medical AI, particularly for dermatology. This paper investigates the utility of large text-to-image (LTI) models, such as DALL-E mini, in generating synthetic training data from medical textbook descriptions. By employing a structured prompt engineering framework, the authors generated diverse datasets that improved diagnostic accuracy by 7% and enhanced the model's ability to localize lesions. These findings suggest that generative AI can effectively bridge the gap between linguistic medical knowledge and visual diagnostic tools.
Introduction
The primary challenge in developing robust medical AI is the lack of large, annotated datasets. This is especially true for rare diseases and underrepresented demographics, where existing datasets often exhibit significant racial bias, favoring lighter skin tones. Such "algorithmic bias" can lead to poor diagnostic performance for patients of color. This study explores whether generative AI can create high-quality synthetic data to mitigate these issues and improve model generalization when real-world samples are scarce.
Methodology
The researchers developed a framework to translate "long-form medical prose" into "structured visual prompts" suitable for LTI models.
- Prompt Engineering: Textbook descriptions were distilled into a four-part template: Visual Cues, Sensation, Physical Location, and Skin Tone.
- Image Generation: Using DALL-E mini, approximately 1,000 images were generated for four conditions: Atopic dermatitis, Scabies, Urticaria hives, and Warts. The skin tone parameter was explicitly varied to ensure a balanced dataset across the Fitzpatrick scale.
- Classification Training: A ResNet50 architecture was trained using a combined approach: pre-training on ImageNet, training on the LTI synthetic dataset, and finally fine-tuning on a small set of real-world images.
Data and Evaluation
The study utilized a synthetic dataset of ~4,000 images and the publicly available Dermnet dataset for evaluation and fine-tuning. Notably, while the synthetic data was balanced for skin tone, the evaluation set was predominantly composed of white skin tones, highlighting the systemic bias the authors aim to address.
Results
The LTI-augmented pipeline achieved a diagnostic accuracy of 63.0%, compared to 56.0% for the baseline model trained only on limited real-world data. Furthermore, a model trained exclusively on synthetic images achieved 42% accuracy on real-world data, demonstrating significant "synthetic-to-real" generalization.
Qualitative analysis using Grad-CAM revealed that models trained on synthetic data were better at localizing lesions. While baseline models were often distracted by background features, the synthetic-trained models focused precisely on the relevant skin pathologies.
Discussion
Medical textbooks serve as a "ground truth" for disease descriptions, offering more consistency than clinical labels. LTI models act as a bridge, converting this linguistic knowledge into visual representations. This approach not only boosts quantitative performance but also improves the saliency of the model's focus. However, challenges remain, such as the manual effort required for prompt engineering and the visual similarity between certain conditions, like Warts and Atopic dermatitis, which led to misclassifications.
Conclusion and Future Work
This case study demonstrates the potential of generative AI to overcome data scarcity in medical imaging. Future research should focus on automating prompt generation using Large Language Models (LLMs) and utilizing more advanced diffusion models for higher-fidelity image synthesis. Additionally, incorporating multimodal learning—combining visual data with textual descriptions—could further enhance diagnostic precision.
Summary updated