FocusNet: Transformer-enhanced Polyp Segmentation with Local and Pooling Attention

Jun Zeng, Kc Santosh, Deepak Rajan Nayak, Thomas de Lange, Jonas Varkey, Tyler M. Berzin, Debesh Jha

Abstract

Colonoscopy is vital in the early diagnosis of colorectal polyps. Regular screenings can effectively prevent benign polyps from progressing to colorectal cancer (CRC). While deep learning has made impressive strides in polyp segmentation, most existing models are trained on single-modality and single-center data, making them less effective in real-world clinical environments. To overcome these limitations, we propose FocusNet, a Transformer-enhanced focus attention network designed to improve polyp segmentation. FocusNet incorporates three essential modules: the Cross-semantic Interaction Decoder Module (CIDM) for generating coarse segmentation maps, the Detail Enhancement Module (DEM) for refining shallow features, and the Focus Attention Module (FAM), to balance local detail and global context through local and pooling attention mechanisms. We evaluate our model on PolypDB, a newly introduced dataset with multi-modality and multi-center data for building more reliable segmentation methods. Extensive experiments showed that FocusNet consistently outperforms existing state-of-the-art approaches with high dice coefficients across five different modalities: 82.47% on BLI, 88.46% on FICE, 92.04% on LCI, 82.09% on NBI, and 93.42% on WLI.

Introduction

Colorectal cancer (CRC) is a leading cause of cancer-related mortality globally, yet it is largely preventable if benign polyps are detected and removed early. A significant challenge in clinical practice is the "miss rate": small, flat, or camouflaged polyps are easily overlooked by clinicians during colonoscopy.

While deep learning has improved automated detection, most existing models suffer from two major gaps. First is the modality gap, where models trained on standard White Light Imaging (WLI) often fail to generalize to advanced clinical techniques like Narrow Band Imaging (NBI) or Blue Laser Imaging (BLI). Second is the scale and context gap, where models struggle to balance the fine-grained details needed for precise boundaries with the global context required to locate polyps in complex, noisy environments containing reflections or mucus. FocusNet is designed to bridge these gaps using a Transformer-based architecture optimized for multi-modality robustness.

Methodology

FocusNet utilizes a PVTv2 (Pyramid Vision Transformer) backbone to extract hierarchical features and introduces three novel components to refine the segmentation process:

  • Detail Enhancement Module (DEM): Low-level features in shallow layers contain rich edge and contour information. The DEM uses multi-path deformable convolutions to adaptively capture these spatial details, ensuring the model preserves fine-grained boundary information.
  • Cross-semantic Interaction Decoder Module (CIDM): This module bridges the gap between high-level semantic features. The architecture implements two versions—CIDM-M (multiplication-based) and CIDM-A (addition-based)—to generate robust coarse segmentation maps.
  • Focus Attention Module (FAM): Inspired by biological vision, which has high acuity at a focal point and coarser perception at the periphery, the FAM uses a dual-path design. One path focuses on local attention for detail, while the other uses pooling attention to capture broader global context.
The Overall Framework of FocusNet, illustrating the integration of the PVT backbone with the DEM, CIDM, and FAM modules.

Experiments and Results

The researchers evaluated FocusNet on PolypDB, a large-scale dataset containing 3,934 images across five modalities (BLI, FICE, LCI, NBI, and WLI) sourced from medical centers in Norway, Sweden, and Vietnam. This diversity provides a rigorous test of real-world clinical utility.

Quantitative Performance

FocusNet consistently outperformed state-of-the-art (SOTA) models like PraNet, PVT-CASCADE, and Mamba-UNet. The model achieved high Dice coefficients across the board, notably reaching 93.42% on WLI and 92.04% on LCI. Even on more challenging modalities like BLI (82.47%) and NBI (82.09%), FocusNet maintained superior accuracy.

Qualitative Analysis

Qualitative results demonstrate that FocusNet excels in challenging scenarios where other models fail, such as identifying multiple tiny polyps or maintaining high boundary precision in low-contrast "camouflaged" cases. By mimicking biological vision through the FAM, the model effectively "zooms in" on polyp textures while maintaining an understanding of the surrounding tissue.

Qualitative comparison of FocusNet against state-of-the-art methods across various endoscopic modalities, highlighting its precision in challenging cases.

Conclusion

FocusNet represents a significant advancement in automated polyp segmentation, offering a robust solution that generalizes across multiple endoscopic imaging modalities. While the model demonstrates state-of-the-art accuracy, its computational complexity (63.41M parameters) and inference speed (18.58 FPS) present opportunities for future optimization for real-time clinical use. Additionally, future work will aim to extend the architecture to video sequences to ensure temporal consistency during live procedures.

Summary updated

Abstract

Colonoscopy is vital in the early diagnosis of colorectal polyps. Regular screenings can effectively prevent benign polyps from progressing to CRC. While deep learning has made impressive strides in polyp segmentation, most existing models are trained on single-modality and single-center data, making them less effective in real-world clinical environments. To overcome these limitations, we propose FocusNet, a Transformer-enhanced focus attention network designed to improve polyp segmentation. FocusNet incorporates three essential modules: the Cross-semantic Interaction Decoder Module (CIDM) for generating coarse segmentation maps, the Detail Enhancement Module (DEM) for refining shallow features, and the Focus Attention Module (FAM), to balance local detail and global context through local and pooling attention mechanisms. We evaluate our model on PolypDB, a newly introduced dataset with multi-modality and multi-center data for building more reliable segmentation methods. Extensive experiments showed that FocusNet consistently outperforms existing state-of-the-art approaches with a high dice coefficients of 82.47% on the BLI modality, 88.46% on FICE, 92.04% on LCI, 82.09% on the NBI and 93.42% on WLI modality, demonstrating its accuracy and robustness across five different modalities. The source code for FocusNet is available at https://github.com/JunZengz/FocusNet.
BibTeX
@misc{zeng2025focusnet,
  author = {Jun Zeng and KC Santosh and Deepak Rajan Nayak and Thomas de Lange and Jonas Varkey and Tyler M. Berzin and Debesh Jha},
  title = {{FocusNet: Transformer-enhanced Polyp Segmentation with Local and Pooling Attention}},
  year = {2025},
  eprint = {2504.13597},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.13597},
}
Figure