From Scope to Script: An Automated Report Generation Model for Gastrointestinal Endoscopy

Evandros Kaklamanos, Kristjana Kristinsdottir, Jonathan Huang, Dustin A. Carlson, Rajesh Keswani, John E. Pandolfino, Mozziyar Etemadi

Introduction

In modern gastroenterology, clinical documentation represents a significant administrative burden. While detailed reports are essential for longitudinal patient care and procedural quality assurance, the manual creation of these narratives is time-consuming and prone to inter-observer variability. Currently, clinicians often navigate a trade-off between flexible but inconsistent "free-text" entries and consistent but rigid templated systems. This documentation overhead is a recognized driver of physician burnout.

While medical imaging fields like radiology have benefited from large-scale public datasets (e.g., MIMIC-CXR) to advance automated reporting, gastrointestinal (GI) endoscopy has faced unique challenges. Endoscopic data typically consists of unarchived video streams characterized by variable lighting, resolution, and hardware. This study addresses the "documentation gap" by proposing a transformer-based model designed to translate visual endoscopic findings directly into structured clinical narratives.

Methodology

The researchers developed a two-stage transformer-based encoder-decoder architecture to bridge the gap between visual procedural data and textual reports.

Stage 1: Image-Level Captioning (Pre-training)

The model first undergoes a pre-training phase to establish a foundational medical vocabulary. In this stage, the model learns to associate individual endoscopic images with short, descriptive captions (e.g., "polyp in the sigmoid colon"). The vision encoder is initialized with SigLIP (B/16), while the text decoder utilizes a transformer architecture. This phase ensures the model can extract relevant visual-medical features before attempting complex synthesis.

Stage 2: Multi-Image Report Generation (Fine-tuning)

Following pre-training, the model is fine-tuned to generate a comprehensive "Findings" section based on a sequence of up to 12 screenshots from a single procedure. To account for the chronological nature of an endoscopy, the authors integrated learned temporal embeddings into the image features. The decoder employs an auto-regressive approach, generating the clinical report word-by-word, conditioned on the aggregated visual features from the entire sequence.

Dataset and Experimental Setup

The study utilized a massive, de-identified internal multimodal dataset from Northwestern Medicine, comprising 775,990 image-text pairs derived from over 100,000 procedures (32,949 EGDs and 72,314 colonoscopies). These pairs consist of procedural screenshots captured during standard care, paired with physician-populated fields including anatomical regions, findings, and narrative notes. To ensure robust evaluation and prevent data leakage, a patient-level split was implemented across the training, validation, and test sets.

Key Results and Insights

Quantitative Performance

The model was evaluated using standard Natural Language Generation (NLG) metrics on a held-out test set, demonstrating strong alignment with physician-authored reports:

  • BLEU-1: 0.590
  • METEOR: 0.520
  • ROUGE: 0.546

The Necessity of Pre-training

A critical finding of the study was the indispensability of the Stage 1 pre-training. Without the image-captioning phase, the model’s ROUGE score plummeted by nearly 73%. This suggests that generalized vision-language features are a prerequisite for the model to successfully synthesize complex medical narratives.

Qualitative Observations

Qualitatively, the model demonstrated high concordance with ground-truth reports. Cross-attention maps verified that the model successfully localized lesions to the correct anatomical regions. Interestingly, the AI occasionally provided more granular detail than the human physician—such as specifying the exact location of esophagitis that a clinician might have omitted for brevity. However, the model occasionally missed "procedural" actions, such as biopsies, if the specific action (e.g., the forceps in contact with tissue) was not explicitly captured in a screenshot.

Discussion and Future Directions

The Tokenization Trap

The authors identified a significant hurdle in medical AI: generic tokenizers (such as GPT-2's BPE) often fragment medical terminology into nonsensical sub-words (e.g., "polyp" becoming "poly" and "p"). This fragmentation can disrupt the model's attention mechanisms, highlighting the need for domain-specific tokenizers trained on clinical lexicons.

Current Limitations

  1. Temporal Context: Because the model relies on static screenshots, it lacks a full view of the procedural workflow. Actions not captured in a still frame remain invisible to the model.
  2. Spatial Reasoning: The model struggled with precise metric measurements (e.g., "34 cm from the incisors"). Inferring real-world distances from 2D pixels remains a challenge without depth-aware encoders.
  3. Selection Bias: The model's output is currently limited by the frames a physician chooses to capture during the procedure.

Conclusion

This work represents a significant step toward an automated clinical scribe for the GI suite. Future research will focus on moving toward video-language modeling to capture the full procedural context and incorporating depth-aware encoders to improve the accuracy of spatial measurements. By automating the narrative generation process, this technology holds the potential to reduce physician burnout and improve the consistency of patient records.

Summary updated

BibTeX
@inproceedings{kaklamanos2025from,
  author = {Evandros Kaklamanos and Kristjana Kristinsdottir and Jonathan Huang and Dustin A. Carlson and Rajesh Keswani and John E. Pandolfino and Mozziyar Etemadi},
  title = {{From Scope to Script: An Automated Report Generation Model for Gastrointestinal Endoscopy}},
  booktitle = {DGM4MICCAI @ MICCAI},
  year = {2025},
  doi = {10.1007/978-3-032-05472-2\_13},
}
Figure