A Comprehensive Study on Colorectal Polyp Segmentation with ResUNet++, Conditional Random Field and Test-Time Augmentation

Debesh Jha, Pia H. Smedsrud, Dag Johansen, Thomas de Lange, Håvard D. Johansen, Pål Halvorsen, Michael A. RieglerarXiv 2021

TL;DR

This paper introduces an enhanced deep learning pipeline for colorectal polyp segmentation by combining the ResUNet++ architecture with Conditional Random Fields (CRF) and Test-Time Augmentation (TTA). By focusing on generalization across six different datasets and releasing a new benchmark for "hard-to-detect" sessile polyps, the authors demonstrate a significant step toward AI systems that can reliably assist gastroenterologists in real-world clinical settings.

What Problem Does This Paper Address?

Colonoscopy is the gold standard for preventing colorectal cancer, yet it is far from perfect. Human physicians miss between 6% and 27% of adenomas during examinations. These "missed" polyps are often small (less than 10mm), flat, or sessile (growing flat against the colon wall), making them incredibly difficult to distinguish from healthy tissue.

While many Computer-Aided Diagnosis (CADx) systems exist, they face two major hurdles:

  1. Robustness: They struggle with image artifacts like blur, flares, and varying polyp appearances.
  2. Generalization: A model trained on data from one hospital often fails when deployed at another due to differences in camera equipment and patient populations.

The authors aim to build a system that not only detects these "invisible" polyps but also maintains high performance across diverse, unseen datasets.

Methods

The core of the approach is ResUNet++, an evolution of the classic U-Net architecture. It incorporates several modern deep learning "best practices" to improve feature extraction:

  • Residual Blocks: Help the network learn more effectively by allowing gradients to flow through "skip connections."
  • Squeeze-and-Excitation (SE) Blocks: These allow the network to perform "channel-wise" attention, essentially learning which feature maps (e.g., edges vs. textures) are most important for the task at hand.
  • Atrous Spatial Pyramid Pooling (ASPP): This captures information at multiple scales, helping the model "see" both the fine details of a polyp and its broader context within the colon.
  • Attention Units: Integrated into the decoder to filter out irrelevant background noise and focus on the polyp region.

To push performance further, the authors added two post-processing/inference steps:

  • Conditional Random Fields (CRF): A statistical method used to refine the predicted masks, ensuring the boundaries of the segmented polyp are sharp and follow the geometric characteristics of the image.
  • Test-Time Augmentation (TTA): During inference, the model doesn't just look at one image; it looks at several versions (e.g., flipped horizontally and vertically) and averages the results. This "second opinion" approach significantly boosts robustness.
Fig. 2. ResUNet++ architecture [1]

Datasets

The study is notable for its scale, utilizing six publicly available datasets: Kvasir-SEG, CVC-ClinicDB, CVC-ColonDB, ETIS-Larib, ASU-Mayo, and CVC-VideoClinicDB.

Crucially, the authors introduced Kvasir-Sessile, a subset of 196 images specifically featuring flat or sessile polyps. These are the "hard mode" of polyp detection, and providing a dedicated benchmark for them allows the research community to track progress on the most clinically relevant cases.

Fig. 3. Example polyp and corresponding ground truth from the Kvasir-SEG

Key Insights and Ideas

  • The "Generalization Gap" is Real: The authors performed extensive cross-dataset evaluations (training on one dataset and testing on another). They found that while models perform exceptionally well on their "home" data, performance often drops on unseen data, highlighting the need for more diverse training sets.
  • TTA is a Low-Cost Win: Applying Test-Time Augmentation consistently improved results across almost all datasets. It’s a powerful way to squeeze more performance out of a model without needing to retrain it.
  • Decoder Design Matters: By gradually decreasing the number of filters in the decoder, the authors reduced the "semantic gap" between the encoder's high-level features and the final segmentation mask, leading to cleaner predictions.

Key Results

The proposed pipeline achieved state-of-the-art (SOTA) results on several benchmarks:

  • CVC-ClinicDB: Achieved a Dice Coefficient (DSC) of 0.9293, outperforming previous models like PraNet.
  • Kvasir-SEG: Reached a DSC of 0.8508 when combining ResUNet++ with TTA and CRF.
  • Sessile Polyps: On the challenging Kvasir-Sessile dataset, the model achieved a DSC of 0.5042. While lower than standard datasets, this represents a significant baseline for polyps that are frequently missed by humans.

Qualitatively, the model shows a high degree of similarity to ground-truth masks, even for polyps that are small or have low contrast with the surrounding tissue.

Fig. 4. Qualitative results comparison of the proposed models with UNet, ResUNet, and ResUNet++. The figure shows the example of polyps that are usually missed-out during colonoscopy examination. We see that there is a high similarity between ground truth and predicted mask for the proposed models.

Limitations and Future Work

Despite the strong results, the authors note several areas for improvement:

  • Saturation and Contrast: The model still struggles with images containing over-exposed regions or extreme saturation (see Figure 6).
  • Resolution: Images were resized to 256x256 to save on computation, which inevitably leads to a loss of fine-grained information.
  • Clinical Trials: This was a retrospective study. The true test will be prospective clinical trials where the AI assists doctors in real-time during live colonoscopies.

Future work will likely focus on domain adaptation techniques to further close the generalization gap and optimizing the code for real-time video processing.

Summary updated

BibTeX
@misc{jha2021comprehensive,
  author = {Debesh Jha and Pia H. Smedsrud and Dag Johansen and Thomas de Lange and Håvard D. Johansen and Pål Halvorsen and Michael A. Riegler},
  title = {{A Comprehensive Study on Colorectal Polyp Segmentation with ResUNet++, Conditional Random Field and Test-Time Augmentation}},
  year = {2021},
  eprint = {2107.12435},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.12435},
}
Figure