One-shot synthesis of rare gastrointestinal lesions improves diagnostic accuracy and clinical training

Jia Yu, Yan Zhu, Peiyao Fu, Tianyi Chen, Zhihua Wang, Fei Wu, Quanlin Li, Pinghong Zhou, Shuo Wang, Xian YangarXiv 2025 · DOI

Abstract

Rare gastrointestinal (GI) diseases present a significant "long-tail" challenge for both artificial intelligence (AI) development and clinical education due to the extreme scarcity of documented cases. We present EndoRare, a one-shot, retraining-free generative framework designed to synthesize high-fidelity, diverse images of rare lesions from a single reference image. By disentangling diagnostic features from background attributes using language guidance, EndoRare significantly improves the performance of AI diagnostic models and the accuracy of novice clinicians in identifying "needle-in-a-haystack" pathologies. Our results show that EndoRare-augmented AI models achieve a macro Precision-Recall AUC of 0.708, while novice endoscopists trained with synthetic samples demonstrate a 0.400 increase in recall.

Introduction

In gastrointestinal endoscopy, rare diseases such as Calcifying Fibrous Tumors (CFT) or Peutz–Jeghers Syndrome (PJS) are encountered so infrequently that even experienced clinicians may see only a few cases in their careers. This scarcity creates two major bottlenecks: AI models fail to generalize from single-image documentation, and novice endoscopists lack the exposure necessary to recognize these phenotypes. Standard generative solutions like DreamBooth often overfit to the single available image, failing to provide the environmental diversity (lighting, angles, backgrounds) required for effective training.

Methods

EndoRare addresses these challenges through a medical-domain diffusion prior and language-guided concept disentanglement. The framework operates in three stages:

  1. Knowledge-Enhanced Pretraining: A diffusion model is trained on a large database of routine GI diseases. A Large Language Model (LLM) extracts key attributes—morphology, color, pathology, and location—from associated text reports to create structured prompts.
  2. Cross-Modal Visual Concept Learning: A CLIP-based encoder aligns visual factors in images with textual counterparts, allowing the model to distinguish lesion-specific features from surrounding healthy tissue.
  3. One-Shot Synthesis: Given a single rare lesion image, the system generates a Prototype-Specific Embedding for core morphology and a Tailored Lesion Embedding for diverse environmental attributes. These are fused during denoising to create clinically plausible new images.
Figure 1: Clinical challenge of rare GI diseases and the three-stage EndoRare model architecture.

Results

EndoRare was evaluated against four rare pathologies: CFT, Juvenile Polyposis Syndrome (JPS), Familial Adenomatous Polyposis (FAP), and PJS.

Image Quality and Diversity

In blinded expert assessments, EndoRare achieved a clinical realism score of 2.32/3.0, outperforming fine-tuned Stable Diffusion (2.09). Quantitatively, it struck a superior balance between fidelity (FID: 280.26) and diversity (LPIPS: 0.489), avoiding the "memorization" trap of traditional personalization methods.

Figure 4: Qualitative comparison of generated samples vs. ground truth and quantitative evaluation of fidelity (FID) and diversity (LPIPS).

AI and Human Performance

Data augmentation with EndoRare samples raised the macro Precision-Recall AUC of AI classifiers to 0.708, compared to 0.612 for the strongest baseline. In a reader study, novice endoscopists showed a 0.400 increase in recall and a 0.267 increase in precision after training with synthetic samples. The impact was most pronounced for "cryptic" lesions (JPS, CFT) often mistaken for benign polyps, whereas "distinctive" lesions (FAP) showed a ceiling effect due to higher baseline accuracy.

Discussion

EndoRare demonstrates that disentanglement is more effective than fine-tuning for one-shot medical image synthesis. By using language as a diagnostic anchor, the model focuses on pathognomonic features. Future work will involve larger multi-center studies to confirm educational durability and testing across diverse endoscopic hardware. Additionally, formal privacy audits and handling less structured clinical notes remain key areas for development.

Summary updated

BibTeX
@misc{yu2025one,
  author = {Jia Yu and Yan Zhu and Peiyao Fu and Tianyi Chen and Zhihua Wang and Fei Wu and Quanlin Li and Pinghong Zhou and Shuo Wang and Xian Yang},
  title = {{One-shot synthesis of rare gastrointestinal lesions improves diagnostic accuracy and clinical training}},
  year = {2025},
  eprint = {2512.24278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.24278},
}
Figure