Duplex Contextual Relation Network For Polyp Segmentation

Zijin Yin, Kongming Liang, Zhanyu Ma, Jun Guo

TL;DR

DCRNet is a novel deep learning architecture that improves polyp segmentation by capturing visual patterns not just within a single colonoscopy image, but across the entire dataset. By using a "duplex" attention strategy and a cross-batch memory module, it achieves state-of-the-art accuracy while running at a clinical-ready 53 frames per second.

What Problem Does This Paper Address?

Colorectal cancer (CRC) is a leading cause of cancer-related deaths, but early detection of polyps during colonoscopy can significantly improve survival rates. Automated segmentation—the process of pixel-perfect identification of polyp boundaries—is a critical tool for computer-aided diagnosis.

However, polyps are notoriously difficult for AI to track for two main reasons:

  1. High Variance: Polyps vary wildly in color, size, and texture depending on the patient and the lighting conditions.
  2. Low Contrast: The boundary between a polyp and the surrounding healthy mucosa is often blurred or visually similar.

Most existing models focus on "intra-image" context—looking for clues within a single frame. The authors argue that this ignores a wealth of information: the "co-occurrent" patterns that exist across different images in a dataset. Just as a human doctor learns from seeing thousands of different cases, an AI should leverage a holistic view of the entire dataset to better delineate tricky boundaries.

Methods

The authors propose the Duplex Contextual Relation Network (DCRNet), which uses a ResNet-34 backbone in an encoder-decoder structure. The "Duplex" part refers to two parallel modules designed to capture different types of relationships:

  • Interior Contextual-Relation Module (ICR): This uses a self-attention mechanism to integrate local features with their global dependencies within the same image. It helps the model understand how a specific pixel relates to its immediate surroundings.
  • Exterior Contextual-Relation Module (ECR): This is the core innovation. It explores contextual relations across different images. To make this computationally feasible, the authors introduced a Region Cross-Batch Memory (ROM).

The ROM acts as a first-in-first-out (FIFO) queue that stores "characteristic region embeddings" (compact mathematical representations of polyps) from previous training batches. This allows the model to compare the current image to a "memory" of polyps it has seen recently, effectively simulating a holistic view of the dataset without needing to load every image into memory at once.

Datasets

The model was evaluated on three major benchmarks:

  • EndoScene: A standard dataset with 912 images.
  • Kvasir-SEG: A popular dataset containing 1,000 images.
  • PICCOLO: A recently released, large-scale dataset with 3,433 images. This is particularly challenging as it includes both standard White-Light images and Narrow-Band imaging (NBI), which uses specific light wavelengths to highlight blood vessels.

Key Insights and Ideas

  • The "Slow Drift" Hypothesis: The authors leverage the observation that feature representations in deep networks change slowly during training. This justifies using a memory bank of features from previous batches; even though the model has updated slightly, the old features are still "fresh" enough to provide useful context.
  • Holistic Learning: By looking across images, the model learns that while a polyp in Image A might be red and a polyp in Image B might be pale, they share underlying structural "co-occurrent" patterns that distinguish them from healthy tissue.
  • Efficiency Matters: Unlike many high-accuracy models that are computationally heavy, DCRNet is designed for speed. By using a streamlined duplex approach, it manages to be both more accurate and significantly faster than its predecessors.

Key Results

DCRNet outperformed several state-of-the-art (SOTA) models, including U-Net++, PraNet, and ACSNet, across all three datasets.

  • Accuracy: On the large-scale PICCOLO dataset, DCRNet achieved a Dice score of 85.13% and an IoU of 79.43%, significantly higher than the previous best (ACSNet at 83.49% Dice).
  • Speed: The model runs at approximately 53 frames per second (FPS) on an NVIDIA RTX 2080Ti. This is more than double the speed of PraNet (~24 FPS) and ACSNet (~22 FPS), making it highly suitable for real-time use during live colonoscopies.
  • Model Size: It is remarkably lightweight at 28.7MB, which is smaller than most competing SOTA models.

Limitations and Future Work

While the paper demonstrates strong results, there are a few areas for further exploration:

  • Memory Management: The authors note that the memory bank (ROM) is removed during the inference (testing) phase. While this keeps the model fast during deployment, it means the model isn't "learning" or adapting to new visual patterns in real-time once it leaves the training lab.
  • Bank Size: The paper mentions that the size of the memory bank must be "moderate"—too small and you lose context; too large and you include "out-of-date" data. However, a systematic way to determine the optimal size for different dataset scales isn't fully detailed.
  • Video Consistency: While the model looks across images in a batch, future work could specifically target temporal consistency in video streams to prevent "flickering" of the segmentation mask between frames.

Summary updated

BibTeX
@inproceedings{yin2022duplex,
  author = {Zijin Yin and Kongming Liang and Zhanyu Ma and Jun Guo},
  title = {{Duplex Contextual Relation Network For Polyp Segmentation}},
  booktitle = {ISBI},
  year = {2022},
  doi = {10.1109/isbi52829.2022.9761402},
}
Figure