Diverse Image Generation with Diffusion Models and Cross Class Label Learning for Polyp Classification

Vanshali Sharma, Debesh Jha, Manas Kamal Bhuyan, Pradip K. Das, Ulas BagciarXiv 2025 · DOI

Introduction

Colorectal cancer (CRC) remains a significant global health challenge, yet early detection of colonic polyps—the precursors to CRC—can dramatically improve patient outcomes. During colonoscopy, clinicians utilize various imaging modalities: standard White Light Imaging (WLI) and Narrow Band Imaging (NBI), the latter of which enhances vascular patterns to differentiate between benign hyperplastic polyps and potentially malignant adenomatous ones.

However, developing robust AI-driven diagnostic tools is hindered by a critical shortage of high-quality, annotated medical data. Labeled datasets covering diverse pathologies across multiple imaging modalities are scarce and costly. While generative models like GANs have been explored for data augmentation, they often lack stability and fine-grained control. This paper introduces PathoPolyp-Diff, a novel framework leveraging latent diffusion models and a unique "cross-class label learning" strategy to generate high-fidelity, text-controlled synthetic colonoscopy images for improved polyp classification.

The PathoPolyp-Diff Framework

PathoPolyp-Diff is built upon the Stable Diffusion (SD) architecture, adapted for the specific requirements of endoscopic imaging. The framework employs a two-stage training strategy to manage complex pathological features and varying image qualities.

The PathoPolyp-Diff framework architecture, illustrating the two-stage training process and text-controlled conditioning.

In Stage-I, the model is trained on large-scale datasets (like the SUN Database) to learn fundamental features such as "polyp vs. non-polyp" and general image quality (e.g., "good quality" vs. "low-quality/artifacts"). In Stage-II, the model is fine-tuned on specialized datasets (like ISIT-UMR) to capture specific pathological conditions (adenoma vs. hyperplastic) and imaging modalities (WLI vs. NBI). By locking the initial blocks of the U-Net during Stage-II, the model preserves the basic "medical image" structure while specializing in pathological nuances.

Cross-Class Label Learning

The core innovation of this work is "cross-class label learning." This technique allows the model to leverage labels from one training stage or dataset to enhance another. For instance, the model can apply the concept of "good quality" learned in Stage-I to ensure that "adenomatous" polyps generated in Stage-II are clear and artifact-free, even if the Stage-II dataset lacked explicit quality annotations.

The logic flow of Stage-I and Stage-II training, highlighting the cross-class label learning mechanism.

This approach enables "indirect inference," where the model combines tokens from different sources (e.g., a pathology label from one source and a quality label from another) to create composite images that never existed in the original training data. Furthermore, the use of descriptive text prompts and negative prompts (e.g., "blur," "low-quality") provides precise control over the generation process, steering the diffusion away from common endoscopic artifacts.

Key Results

The effectiveness of PathoPolyp-Diff was validated by augmenting real datasets with synthetic images to train an EfficientNet-B0 classifier. The results demonstrate significant performance gains:

  • Frame-level Accuracy: Balanced accuracy improved by up to 7.91% compared to models trained on real data alone.
  • Video-level Analysis: In a clinically relevant patient-wise test, the cross-class label learning approach achieved an 18.33% improvement in balanced accuracy.
  • Distribution Alignment: t-SNE visualizations confirmed that synthetic image feature embeddings significantly overlap with real images, indicating that the diffusion model successfully captured the underlying data distribution.
  • Statistical Significance: Two-tailed t-tests confirmed that improvements from text prompt variations were statistically significant (p < 0.05).

Conclusion and Future Work

PathoPolyp-Diff demonstrates the potential of diffusion models to overcome data scarcity in medical imaging. By effectively "oversampling" rare conditions and improving image quality through cross-class learning, the framework provides a powerful tool for training more accurate diagnostic AI.

Future research will focus on addressing current limitations, such as the computational intensity of diffusion models and occasional modality blending (e.g., WLI features appearing in NBI images). Additionally, more rigorous validation by medical experts is necessary to fully assess the pathological realism of the generated samples for clinical deployment.

Summary updated

BibTeX
@misc{sharma2025diverse,
  author = {Vanshali Sharma and Debesh Jha and Manas Kamal Bhuyan and Pradip K. Das and Ulas Bagci},
  title = {{Diverse Image Generation with Diffusion Models and Cross Class Label Learning for Polyp Classification}},
  year = {2025},
  eprint = {2502.05444},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.05444},
}
Figure