Research Article

CDBT-Unet: A Cross-Attention Transformer-Based Dual-Branch Encoder Framework for Colon Polyp Segmentation

Zihang Li*, Jieqi Li
Communication University of China, Beijing, 100024, China

* Corresponding author: [email protected]

Abstract

The advancement of colorectal cancer emphasizes how important it is for colonoscopic imaging to accurately segment polyps. Learning-based techniques have made significant progress in the field of polyp medical image segmentation; however, recurring issues such as the identification of small object segments, poorly defined lesion boundaries, and complex backgrounds still exist. In order to overcome these constraints, we introduce CDBT-Unet, a brand-new framework that enhances segmentation performance by integrating two significant innovations. Initially, the transformer layer's convolutional prior speeds up convergence and extracts the fine-grained local texture that is essential for tiny flat polyps. By prioritizing horizontal-vertical background relationships through cross-shaped attention, it improves boundary delineation in complex backgrounds by reducing computation and accelerating convergence. The intricate background and edge blurring issue of polyp segmentation is well-considered in this point. Second, in order to improve accuracy, our dual-path encoder uses the MaxViT block to strategically balance global dependency modeling and local feature preservation. Combining multilevel feature fusion with coordinate space focus mechanisms and channel refinement improves edge response in multiscale fusion. The issue of boundary blurring is the main focus. Under the same experimental setup, our model outperforms the state-of-the-art ConDseg model by 3.72% and the baseline (TransUnet) by 7.32% in terms of Dice scores when tested on the Kvasir-SEG and CVC-ClinicDB datasets. Even in the presence of motion artifacts or low contrast, the framework demonstrates exceptional robustness in segmenting polyps of various sizes. Furthermore, the attention maps that were produced enhanced interpretability and gave physicians practical knowledge about how to make decisions when modeling.

Keywords: Medical Image Segmentation; Cross-Attention Transformer; Dual Path Encoder; TokenMixer; CoordinateSpatial Fusion; TransUnet
Published: December 10, 2025
DOI: 10.54254/2755-2721/2025.LD30416
Volume: ACE Vol.215
pp. 92-101
Download PDF

References

  1. Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical image computing and computer-assisted intervention– MICCAI 2015: 18th international conference, Munich, Germany, October 5-9, 2015, proceedings, part III 18, pages 234–241. Springer, 2015.
  2. Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv: 2010.11929, 2020.
  3. Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF international conference on computer vision, pages 10012–10022, 2021.
  4. Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Herve J ´ egou. Training data-efficient ´ image transformers & distillation through attention. In International conference on machine learning, pages 10347–10357. PMLR, 2021.
  5. Haiping Wu, Bin Xiao, Noel Codella, Mengchen Liu, Xiyang Dai, Lu Yuan, and Lei Zhang. Cvt: Introducing convolutions to vision transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pages 22–31, 2021.
  6. Mengqi Lei, Haochen Wu, Xinhua Lv, and Xin Wang. Condseg: A general medical image segmentation framework via contrast riven feature enhancement, 2024.
  7. Xiaoyi Dong, Jianmin Bao, Dongdong Chen, Weiming Zhang, Nenghai Yu, Lu Yuan, Dong Chen, and Baining Guo. Cswin transformer: A general vision transformer backbone with crossshaped windows, 2022.
  8. Zhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang, Peyman Milanfar, Alan Bovik, and Yinxiao Li. Maxvit: Multi-axis vision transformer, 2022.
  9. Jieneng Chen, Jieru Mei, Xianhang Li, Yongyi Lu, Qihang Yu, Qingyue Wei, Xiangde Luo, Yutong Xie, Ehsan Adeli, Yan Wang, et al. Transunet: Rethinking the u-net architecture design for medical image segmentation through the lens of transformers. Medical Image Analysis, 97: 103280, 2024.
  10. Jingjing Ren, Xiaoyong Zhang, and Lina Zhang. Hifiseg: Highfrequency information enhanced polyp segmentation with globallocal vision transformer. IEEE Access, 2025.
  11. Abhijit Guha Roy, Nassir Navab, and Christian Wachinger. Recalibrating fully convolutional networks with spatial and channel “squeeze and excitation” blocks. IEEE transactions on medical imaging, 38(2): 540–549, 2018.
  12. Deng-Ping Fan, Ge-Peng Ji, Tao Zhou, Geng Chen, Huazhu Fu, Jianbing Shen, and Ling Shao. Pranet: Parallel reverse attention network for polyp segmentation, 2020.
  13. Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, and Tim Salimans. Axial attention in multidimensional transformers. arXiv preprint arXiv: 1912.12180, 2019.
  14. Nima Tajbakhsh, Shabana R Gurudu, and Jianming Liang. Automated polyp detection in colonoscopy videos using shape and context information. IEEE transactions on medical imaging, 35(2): 630–644, 2015.
  15. Yundong Zhang, Huiye Liu, and Qiang Hu. Transfuse: Fusing transformers and cnns for medical image segmentation. In Medical image computing and computer assisted intervention–MICCAI 2021: 24th international conference, Strasbourg, France, September 27–October 1, 2021, proceedings, Part I 24, pages 14–24. Springer, 2021.
  16. Gregor Urban, Priyam Tripathi, Talal Alkayali, Mohit Mittal, Farid Jalali, William Karnes, and Pierre Baldi. Deep learning localizes and identifies polyps in real time with 96% accuracy in screening colonoscopy. Gastroenterology, 155(4): 1069–1078, 2018.
  17. Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4510–4520, 2018.
  18. Mahendran Narayanan. Senetv2: Aggregated dense layer for channelwise and global representations, 2023.
  19. Qibin Hou, Daquan Zhou, and Jiashi Feng. Coordinate attention for efficient mobile network design. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 13708–13717, 2021.
  20. Debesh Jha, Pia H. Smedsrud, Michael A. Riegler, Pal Halvorsen, Thomas de Lange, Dag Johansen, and Havard D. Johansen. Kvasir-seg: A segmented polyp dataset. In Yong Man Ro, WenHuang Cheng, Junmo Kim, Wei-Ta Chu, Peng Cui, Jung-Woo Choi, Min-Chun Hu, and Wesley De Neve, editors, MultiMedia Modeling, pages 451–462, Cham, 2020. Springer International Publishing.
  21. Hu Cao, Yueyue Wang, Joy Chen, Dongsheng Jiang, Xiaopeng Zhang, Qi Tian, and Manning Wang. Swin-unet: Unet-like pure transformer for medical image segmentation. In Leonid Karlinsky, Tomer Michaeli, and Ko Nishino, editors, Computer Vision – ECCV 2022 Workshops, pages 205–218, Cham, 2023. Springer Nature Switzerland.
  22. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
  23. Pengchuan Zhang, Xiyang Dai, Jianwei Yang, Bin Xiao, Lu Yuan, Lei Zhang, and Jianfeng Gao. Multi-scale vision longformer: A new vision transformer for high-resolution image encoding. In Proceedings of the IEEE/CVF international conference on computer vision, pages 2998–3008, 2021.
  24. Debesh Jha, Pia H. Smedsrud, Michael A. Riegler, Dag Johansen, Thomas De Lange, Pal Halvorsen, and H avard D. Johansen. Resunet++: An advanced architecture for medical image segmentation. In 2019 IEEE International Symposium on Multimedia (ISM), pages 225–2255, 2019.
  25. Zihuang Wu, Hua Chen, Xinyu Xiong, Shang Wu, Hongwei Li, and Xinyu Zhou. Bmanet: Boundary-guided multi-level attention network for polyp segmentation in colonoscopy images. Biomedical Signal Processing and Control, 105: 107524, 2025.
  26. Yamagishi Y, Hanaoka S. Ensemble of ConvNeXt V2 and MaxViT for Long-Tailed CXR Classification with View-Based Aggregation [J]. arXiv preprint arXiv: 2410.10710, 2024.
  27. Nguyen-Tat T B, Vo H A, Dang P S. QMaxViT-Unet+: A query-based MaxViT-Unet with edge enhancement for scribble-supervised segmentation of medical images [J]. Computers in Biology and Medicine, 2025, 187: 109762.
  28. Prakash M S, Mallam M. Hybrid Transformers with Multi-scale Feature Extraction for Vision-Language Tasks: CvT, MaxViT, and CoAtNet [J]. IAENG International Journal of Computer Science, 2025, 52(8).
  29. Zhao D, Cai W, Cui L. Adaptive thresholding and coordinate attention-based tree-inspired network for aero-engine bearing health monitoring under strong noise [J]. Advanced Engineering Informatics, 2024, 61: 102559.
  30. Wang Z, Chen Y, Wang F, et al. Improved Unet model for brain tumor image segmentation based on ASPP-coordinate attention mechanism [C]//2024 5th International Conference on Big Data & Artificial Intelligence & Software Engineering (ICBASE). IEEE, 2024: 393-397.