Polyp-E: Benchmarking the Robustness of Deep Segmentation Models via Polyp Editing

Runpu Wei, Zijin Yin, Kongming Liang, Min Min, Chengwei Pan, Gang Yu, Haonan Huang, Yan Liu, Zhanyu Ma

Introduction

In medical imaging, high performance on a static test set does not always translate to clinical reliability. While deep learning models have achieved impressive results in identifying polyps during colonoscopy, they often lack the robustness of human clinicians. A clinician can identify a lesion regardless of its size or its specific position within the frame, whereas many segmentation models rely on spatial priors or specific textures that may not generalize across different clinical environments.

To address this gap, researchers have introduced Polyp-E, a benchmark designed to stress-test polyp segmentation models using generative AI. By leveraging Latent Diffusion Models (LDMs) to surgically edit real medical images, Polyp-E creates counterfactual scenarios—such as the same colon with a smaller or repositioned polyp—to evaluate how well models truly understand the underlying pathology.

The Problem: Physical Constraints and Over-Segmentation

Automated polyp segmentation is critical for colorectal cancer screening, yet existing datasets are limited by physical reality. In standard datasets, a specific polyp exists in only one size and one location. This makes it difficult to discern whether a model has learned the conceptual features of a polyp or has simply memorized spatial patterns within the training data.

Furthermore, many models suffer from over-segmentation, where they "hallucinate" polyps in healthy tissue. Because research datasets are often heavily weighted toward images containing polyps, models are rarely penalized for false positives in healthy samples. This leads to high False Positive Rates (FPR), which in a clinical setting results in "alarm fatigue" for medical professionals.

The Polyp-E Framework

The researchers developed a three-step pipeline based on Latent Diffusion Models (LDMs) to create high-fidelity, edited medical images that serve as a robust benchmark:

  1. Background Recovery: The system first "erases" the polyp from a real image. An LDM is trained to in-paint the area behind the polyp mask, creating a realistic version of healthy tissue.
  2. Attribute Editing: The original polyp is extracted, subjected to affine transformations (scaling or shifting), and placed back onto the recovered background.
  3. Boundary Refinement: To eliminate the "copy-paste" effect, a final diffusion step refines the edges where the polyp meets the background, ensuring realistic lighting, shadows, and textures.

This approach allows for the creation of a diverse benchmark containing 4,417 images derived from 798 original test samples across five major public datasets: CVC-300, CVC-ClinicDB, CVC-ColonDB, ETIS, and Kvasir.

Key Insights and Benchmarking Results

The Polyp-E benchmark revealed several critical vulnerabilities in current segmentation architectures:

The Fragility of Traditional CNNs

Older architectures, such as U-Net and PraNet, showed significant performance degradation when polyps were moved or resized. U-Net proved the most sensitive, with performance dropping by over 16%. On average, traditional models saw a Dice coefficient drop of 9.16% when faced with these attribute changes, suggesting a heavy reliance on spatial priors that fail in diverse clinical settings.

The Strength of Foundation Models

In contrast, models like Polyp-SAM (based on the Segment Anything Model) handled attribute changes with significantly higher stability. This suggests that large-scale pre-training allows models to build more "conceptually" stable features that are less dependent on the specific coordinates of a lesion.

Realism and Expert Validation

To ensure the synthetic images were clinically relevant, the researchers conducted an expert review. Radiologists with over five years of experience mistook the synthetic Polyp-E images for real colonoscopy frames 94.8% of the time, validating the high fidelity of the LDM-based editing pipeline.

Generative Augmentation for Generalization

Beyond benchmarking, the researchers demonstrated that Polyp-E can be used for data augmentation. Training models on these "edited" images proved more effective than standard augmentation techniques. Specifically, using Polyp-E improved the PraNet model's performance by 7.9% on in-distribution data.

Crucially, this method also boosted performance on Out-of-Distribution (OOD) data, such as the PICCOLO dataset. While other synthetic augmentation methods (like SDM or ArSDM) actually caused OOD performance to decline, Polyp-E provided a vital performance increase, suggesting it helps models learn more generalized features that transfer across different medical centers and equipment.

Conclusion and Future Work

Polyp-E highlights a path forward for more rigorous medical AI evaluation. By moving beyond static test sets and using generative models to probe model weaknesses, researchers can better prepare AI for the complexities of the clinic. While the current pipeline relies on accurate initial masks, future iterations could expand to edit attributes like lighting, texture, or specific polyp types (e.g., sessile vs. pedunculated). This "edit-to-benchmark" framework holds potential for a wide range of medical segmentation tasks beyond colonoscopy, including brain tumor and skin lesion analysis.

Summary updated

BibTeX
@inproceedings{wei2024polyp,
  author = {Runpu Wei and Zijin Yin and Kongming Liang and Min Min and Chengwei Pan and Gang Yu and Haonan Huang and Yan Liu and Zhanyu Ma},
  title = {{Polyp-E: Benchmarking the Robustness of Deep Segmentation Models via Polyp Editing}},
  booktitle = {BIBM},
  year = {2024},
  doi = {10.1109/bibm62325.2024.10822277},
}
Figure