Manuscript Offprint

arXiv:2611.02603

BGD-SF PolySegNet: boundary-guided dynamic selective fusion network for robust polyp segmentation in colonoscopy images

Nishi Kanta Paul, Shamia Maherin, Morsheda Akter, Moinul Hossain, Md Kishor Morol

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Effective polyp segmentation in colonoscopy images is crucial for early detection of colorectal cancer, which is one of the major causes of cancer-related death globally. While current deep learning models perform well on traditional Dice benchmarks, border segmentation remains a significant difficulty. Most methods employ boundary information just as an additional loss signal during training, therefore preventing the network from explicitly learning border-guided feature selection or mask refining. This paper introduces BGD-SF PolySegNet, a boundary-guided encoder-decoder architecture that automatically controls three phases of the segmentation pipeline: dynamic multi-scale context aggregation, selective skip-feature fusion, and final mask refining. The architecture comprises a pretrained EfficientNet-B4 backbone and three proposed modules: Boundary-Guided Dynamic Cascaded Multi-Scale Context Aggregation (BGD-CMSCA), Boundary-Guided Selective Attention Fusion (BG-SAGF), and a Multi-Level Boundary Guidance Head (MBGH). The model is trained on 3,535 annotated images from Kvasir-SEG, BKAI-IGH NeoPolyp-Small, and PolypGen, and evaluated on four held-out benchmark datasets. On the internal test set, BGD-SF achieves a Dice of 0.887, IoU of 0.839, mask-derived Boundary F1 of 0.531, HD95 of 30.32, and ASSD of 18.10, representing improvements of 15.7%, 27.5%, and 34.6% in Boundary F1, HD95, and ASSD over the strongest CNN baselines (U-Net for BF1; DeepLabV3+ for HD95 and ASSD). External validation on CVC-ClinicDB, CVC-ColonDB, ETIS-Larib, and CVC-300 yielded Dice scores of 0.891, 0.776, 0.863, and 0.885, respectively. The model operates at 35 FPS with 22.51M parameters and 65.46 GFLOPs. Wilcoxon signed-rank tests confirm statistically significant mask-derived Boundary F1 improvements across six of seven ablation variants (p<0.001p < 0.001, with small-to-moderate effect sizes (r=0.215r = 0.215–0.434)), demonstrating that integrating boundary guidance as an active architectural component measurably advances polyp boundary delineation.

November 3, 2026

1/26

Introduction

Colorectal cancer is among the most prevalent and fatal cancers globally, with the majority of cases arising from colorectal polyps that develop over time before becoming malignant [1]. Colonoscopy is the primary screening tool for finding and removing these polyps before they become cancerous. However, polyp diagnosis during a live colonoscopy is difficult and error-prone. Miss rates in clinical practice vary significantly depending on polyp form, size, and examiner expertise. Flat and sessile lesions are disproportionately missed [1]. Automated segmentation systems can be used as real-time decision-support tools, highlighting candidate regions for physician assessment and lowering miss rates while normalizing detection quality across endoscopy sites.

Deep learning methods, notably encoder-decoder architectures based on convolutional backbones, have significantly improved polyp segmentation accuracy in recent years. U-Net designs with hierarchical skip connections, multi-scale feature extraction, and attention processes have become the dominant paradigm [2–6]. Recently, hybrid CNN-Transformer architectures have gained attention by combining local texture sensitivity with global contextual reasoning [3, 7–10]. In addition to architectural advancements, attention-guided and edge-sensitive fusion modules have been suggested to enhance feature discrimination [11–16]. Dice scores range from 0.93 to 0.97 on well-studied benchmarks such as Kvasir-SEG and CVC-ClinicDB [3, 4, 11, 12, 14].

Despite this progress, major limitations remain. The most medically significant of these is border correctness. High Dice scores suggest a large global area overlap, but they do not indicate if a model correctly defines the boundary between polyp tissue and the surrounding mucosa. Low-contrast, flat, and sessile polyps have poorly defined boundaries that seem identical to nearby normal tissue, making precise edge detection extremely challenging. When boundary information is just included as an auxiliary loss term, as is the case in most current topologies, it changes the optimization trajectory but has no impact on how the network selects or filters features during the forward pass. This design approach reduces the level to which boundary sensitivity can spread over the whole encoder-decoder pipeline.

A second limitation concerns the quality of skip connections. Encoder-decoder topologies use skip connections to move high-resolution spatial information from encoder levels to decoders. However, in colonoscopy pictures, these features include not just polyp-relevant spatial data, but also endoscopy-specific noise such as specular highlights, air bubbles, mucosal folds, and fecal residues. Directly including such noisy skip features with decoder representations may produce false positives, lowering spatial accuracy. Standard channel-spatial attention modules, such as CBAM [17], reduce background activations to some extent. However, without an explicit boundary-aware filtering step, artifact suppression is indirect and inconsistent. Third, performance on tiny, flat, and low-contrast polyps remained much lower than performance on big, noticeable well-defined lesions across practically all published models [1–3, 13, 15, 18]. These tough cases are clinically significant because they are the most likely to be missed during live endoscopy and, if left untreated, can progress to malignancy.

Recent research has addressed certain aspects of this issue. PraNet [19] uses reverse attention to iteratively estimate polyp areas from coarse high-level characteristics. CIFFormer [20] included a boundary-guided module with cross-scale interaction fusion, reaching Kvasir-SEG Dice of 0.925 and improving cross-domain generalization with ColonDB Dice of 0.824 and ETIS Dice of 0.793. HPANet achieved a Kvasir-SEG Dice of 0.920 by utilizing a Pyramid ViT backbone, backward multi-scale fusion, and a boundary feature refinement module [21]. VMDU-Net combined Vision Mamba with a Cross-Shape Transformer in a dual-encoder setup to capture both local and long-range context, producing Kvasir-SEG Dice of 0.934 and ClinicDB Dice of 0.951 [3]. PSTNet [16] used multi-scale alignment and frequency-domain feature integration to enhance cross-domain resilience. Despite these contributions, boundary-specific metrics such as Hausdorff distance and Average Symmetric Surface Distance (ASSD) are rarely reported in the literature, making it difficult to determine whether published boundary modules result in genuine improvements in edge quality or if Dice gains are primarily due to improved global overlap.

The primary design premise in this study varies from previous approaches: boundary information is employed as an active guiding signal at three independent architectural phases, rather than being limited to a single loss term or specialized module. Specifically, boundary cues influence (1) the bottleneck context module, where they modulate the weighting of parallel multi-scale dilated convolution branches depending on

2/26 the estimated boundary complexity of the input; (2) the skip-connection fusion modules at each decoder level, where internally estimated boundary priors suppress artifact-heavy features before channel-spatial attention is applied; and (3) the final mask generation step, where the predicted boundary map refines decoder features before final mask generation. This consistent application of boundary guidance across the network is motivated by the observation that boundary-accurate segmentation requires edge sensitivity throughout the forward pass, not only at the loss stage.

The main contributions of this work are as follows.

  1. We provide BGD-CMSCA, a boundary-guided dynamic cascaded multi-scale context aggregation module that utilizes boundary-sensitive signals to adaptively weight dilated convolution branches, resulting in better scale-sensitive feature representation for polyps of various size and shape.

  2. We introduce BG-SAGF, a boundary-guided selective attention fusion module that creates internal boundary priors at each decoder level to reduce noisy skip-connection features before applying channel-spatial attention, therefore decreasing artifact-induced false positives during decoder fusion.

  3. We propose MBGH, a multi-level boundary guidance head that explicitly predicts boundary maps at decoder levels D2D_2, D3D_3, and D4D_4, and uses the predicted boundary map to refine the final decoder feature D1D_1 as D1bg=D1+D1⊙σ(Yb)D_1^{bg} = D_1 + D_1 \odot \sigma(Y_b), producing sharper and more accurate boundary delineation.

  4. We incorporate a frequency-domain style augmentation strategy to improve cross-dataset robustness against variation in illumination, color distribution, and device characteristics across different endoscopy systems.

  5. We evaluate the full model on four external benchmark datasets unseen during training, report boundary-specific metrics including Boundary F1F_1, HD95, and ASSD alongside standard Dice and IoU, and provide Wilcoxon signed-rank statistical significance testing and multi-seed stability analysis to support reproducible evaluation.

BGD-SF outperforms the best CNN baseline (U-Net) with a mask-derived Boundary F1 of 0.531 on the combined internal test set, resulting in a 15.7% relative improvement. HD95 reduces from 41.80 to 30.32, and ASSD from 27.69 to 18.10, with reductions of 27.5% and 34.6%, respectively. Boundary improvements are statistically significant compared to six of seven ablation variants (p<0.001p < 0.001), with small-to-moderate effect sizes (r=0.215r = 0.215–0.434). Dice and IoU likewise outperform all baselines, however the margin is more mild, in line with the primary design goal of boundary precision. The model operates at 35 FPS on an NVIDIA GB10 with 22.51M parameters, demonstrating that the boundary-guided design does not cause excessive computational costs.

The remaining sections of this work are organized as follows. The Related work section summarizes relevant research on deep learning-based polyp segmentation. The Materials and methods section explains the proposed BGD-SF PolySegNet architecture and its components in depth. The Experiments section describes the experimental setup, datasets, training configuration, and assessment measures. The Results section presents quantitative findings, ablation studies, external validation, and statistical analysis. The Discussion section examines the findings. The Limitations and future work section discusses limitations and future work. The Conclusion section concludes the paper.

References (52)