Manuscript Offprint

arXiv:2611.02726

Attention Residual U-Net for Enhanced Cross-Dataset Polyp Localization in Endoscopy

Romil Imtiaz, Dimitris K. Iakovidis

Romil Imtiaz

Department of Computer Science and Biomedical Informatics

University of Thessaly

Lamia, Greece

rimtiaz@uth.gr

Dimitris K. Iakovidis

Department of Computer Science and Biomedical Informatics

University of Thessaly

Lamia,Greece

diakovidis@uth.gr

Abstract— Precise localization of pathologies in endoscopy is a critical task in medical imaging, with deep learning (DL) frameworks now serving as the primary methodology for automated lesion detection. Today, generic object detection methods, such as YOLO, provide state-of-the-art performance in this context. However, their robustness often decreases under real-world clinical conditions due to variations across endoscopic devices, intestinal content, dataset bias, and the presence of small or low-contrast lesions. Motivated by these challenges, we propose a novel polyp detection framework based on a Attention Residual U-Net offering enhanced polyp localization. Instead of directly regressing bounding boxes from global feature representations, the proposed method learns lesion-focused spatial representations and converts them into bounding-box predictions during inference. Unlike conventional encoder–decoder localization frameworks that directly propagate all encoder activations into the decoding pathway, the proposed method selectively suppresses irrelevant background responses before feature reconstruction. This encourages the network to focus on lesion-relevant spatial evidence under heterogeneous imaging conditions. To achieve this, the framework integrates residual feature propagation, attention-guided encoder filtering, and multi-scale contextual learning. The proposed framework was evaluated on multiple public endoscopic datasets acquired using different devices. The comparative experimental results validate its effectiveness over the relevant state-of-the-art methods, with an improvement up to 22.0% in terms of the area under the receiving operating characteristic (AUC).

Keywords—Polyp detection, attention, residual learning, cross-dataset evaluation, deep Learning

I. INTRODUCTION

Polyp localization in endoscopic imaging is an important problem in medical computer vision because colorectal polyps are considered precancerous lesions that may develop into colorectal cancer if not detected and removed at early stages. Accurate localization of abnormal tissue regions during endoscopic examination therefore plays a critical role in early diagnosis and clinical decision support. However, false negative detections may delay diagnosis and increase clinical risk, motivating the development of robust automated localization systems for challenging endoscopic imaging conditions.

Single stage detection models, such as You Only Look Once (YOLO), can be both efficient and accurate, e.g., YOLOv7 [1], YOLOv8, and YOLOv11 [2] models have been successfully applied to various object detection tasks in medical imaging, Autonomous driving, robotics, agriculture, surveillance, and manufacturing. However, these models are prone to errors in cases of noisiness, illumination variations, and complicated background in images. Endoscopic images usually have polyps of small sizes, unusual shapes, and color similar to background tissues. Thus, these objects are hard to identify with standard feature representations.

Recent polyp localization approaches have explored attention-guided feature refinement and multiscale contextual representation to improve lesion localization under challenging imaging conditions. Attention mechanisms can help suppress irrelevant background responses and emphasize lesion-related spatial regions [3], while multiscale representation learning improves the detection of polyps with varying sizes and [4]. However, despite the success of these models, the problem of distinguishing lesion from background is hard since lesions might appear anywhere within an image.

An important limitation in many existing object localization frameworks is the uncontrolled propagation of irrelevant feature activations during hierarchical feature extraction. In endoscopic imaging, background structures, such as mucosal folds, lumen boundaries, specular reflections, and illumination artifacts may generate strong activations that compete with lesion-related representations. When these irrelevant responses are directly propagated through encoder-decoder feature pathways, they may interfere with lesion localization and reduce robustness under heterogeneous imaging conditions. This limitation becomes particularly critical during cross-dataset evaluation, where variations in acquisition conditions and image appearance may further amplify unstable background activations.

Motivated by this challenge, this paper proposes a novel framework that explicitly suppresses irrelevant encoder responses before feature reconstruction to encourage lesion-focused spatial representation learning under challenging endoscopic conditions. It is based on DL architecture incorporating a detector that deals with the problem of irrelevant feature propagation and pays more attention to polyps. To reduce the impact of irrelevant background features and pay more attention to lesions, we developed a special attention guided module. Such approach allows us to filter out background information and obtain more relevant features for lesion detection. The proposed framework also incorporates residual feature learning to improve optimization stability and feature propagation, as well as multiscale contextual representation learning to better capture lesions with varying sizes and appearance. In addition to attention mechanism, the developed architecture uses residual learning and multiscale features extraction, which are particularly helpful in endoscopy detection tasks, since polyps are hard to detect due to various variations in their sizes, appearance, and conditions of acquisition. Furthermore, the proposed

This project has received funding from the European Union's HORIZON TMA MSCA Doctoral Networks (HORIZON-MSCA-2023-DN-01) under Grant Agreement n°101169012 (INTELLI-INGEST Project).

Author version of the accepted paper for publication in the 2026 IEEE Conference on Computational Intelligence in Bioinformatics and Computational Biology (CIBCB).

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

framework learns lesion-focused spatial representations that are transformed into bounding-box localization outputs during inference, enabling compatibility with detection-oriented evaluation protocols. A cross-dataset evaluation setting was used to assess and validate the advantages of the proposed framework.

The rest of this paper consists of four sections. Section II provides a review of relevant state-of-the-art methods, and section III describes the proposed framework and its methodological details. The results of the experimental evaluation are presented in section IV and the conclusions of this study are summarized in the last section.

References (27)