Abstract
Deep learning models for medical imaging often suffer from a lack of high-quality annotated data. This paper introduces MEDDAP (Medical Dataset Enhancement via Diversified Augmentation Pipeline), a framework that utilizes Stable Diffusion to generate diverse synthetic ultrasound images. By implementing Ultrasound Low-Rank Adaptation (USLoRA) and diversified prompt engineering, the framework significantly enhances classification performance and model robustness. Our results show that synthetic data focusing on structural features rather than pixel intensity helps models generalize better to unseen clinical data.
Introduction
High-quality annotated data is a scarce and expensive resource in the medical field. In ultrasound imaging, variability in device settings and operator skill leads to significant appearance differences, which standard data augmentation techniques (e.g., rotation, flipping) fail to capture. Furthermore, large-scale generative models like Stable Diffusion are typically too computationally expensive to fine-tune for specialized medical tasks. MEDDAP addresses these challenges by providing an accessible and effective method for generating informative, diverse training samples.
Methodology
The MEDDAP framework introduces two primary innovations to "supercharge" small medical datasets:
USLoRA (Ultrasound Low-Rank Adaptation)
To make fine-tuning Stable Diffusion feasible on consumer-grade hardware, the authors applied LoRA to the cross-attention layers of the UNet. This approach updates less than 0.1% of the original parameters, allowing the model to be trained in under five hours on a single NVIDIA RTX 2080 Ti.
Diversified Prompt Engineering
To prevent models from relying on simple shortcuts like image brightness or intensity, the pipeline injects descriptive adjectives into generation prompts (e.g., "solarized," "high-contrast," "colorful"). This forces the downstream classifier to focus on structural features—such as tumor shape and margins—mimicking the diagnostic process of human clinicians.
Experimental Setup
The study utilized two open-source breast ultrasound datasets:
- Dataset A: 780 images used for training the generative model and initial classifiers.
- Dataset B: 900 images from a different source, used exclusively as an unseen test set to evaluate generalization.
Results and Discussion
The MEDDAP pipeline consistently improved performance across multiple architectures, including ResNet34, DenseNet121, and SqueezeNet.
As shown in the table above, adding 50% "High-contrast" synthetic data to the DenseNet121 training set improved accuracy from 87.5% to 90% on Dataset A. Similar gains were observed for ResNet34 and SqueezeNet when augmented with "Stylized" or "High-contrast" images. Furthermore, on the unseen Dataset B, the ResNet34 model's accuracy improved from 77.44% to 80.44%, demonstrating the pipeline's ability to enhance generalization across different data sources.
Beyond quantitative improvements, qualitative analysis via Grad-CAM heatmaps revealed that MEDDAP-trained models focus much more accurately on pathological regions.
Models trained on original data were frequently distracted by peripheral artifacts or shadows. In contrast, those trained with diversified synthetic data focused on the actual tumor regions. This suggests that the "noisy" intensity features introduced by the synthetic data successfully regularized the models to prioritize structural cues over superficial pixel variations.
Conclusion and Future Work
MEDDAP demonstrates that the diversity of synthetic data is more critical than mere quantity for improving medical image classification. By making state-of-the-art generative models accessible through USLoRA and guiding them with clinical intuition via prompt engineering, we can significantly boost the robustness of AI in healthcare. While currently focused on 2D ultrasound, future work will explore expanding this pipeline to 3D imaging and other modalities like MRI or CT. Additionally, developing automated methods for adjective selection could further optimize the regularization provided by the synthetic styles.
Summary updated