Contrastive Transformer-based Multiple Instance Learning for Weakly Supervised Polyp Frame Detection

Yu Tian, Guansong Pang, Fengbei Liu, Yuyuan Liu, Chong Wang +3 more
3/23/2022
cs.CV
transformer-attention

Official code: tianyu0207/weakly-polyp (46 stars, Python, last commit 2025-11-12).

Abstract

Current polyp detection methods from colonoscopy videos use exclusively normal (i.e., healthy) training images, which i) ignore the importance of temporal information in consecutive video frames, and ii) lack knowledge about the polyps. Consequently, they often have high detection errors, especially on challenging polyp cases (e.g., small, flat, or partially visible polyps).

Show full abstract

In this work, we formulate polyp detection as a weakly-supervised anomaly detection task that uses video-level labelled training data to detect frame-level polyps. In particular, we propose a novel convolutional transformer-based multiple instance learning method designed to identify abnormal frames (i.e., frames with polyps) from anomalous videos (i.e., videos containing at least one frame with polyp). In our method, local and global temporal dependencies are seamlessly captured while we simultaneously optimise video and snippet-level anomaly scores. A contrastive snippet mining method is also proposed to enable an effective modelling of the challenging polyp cases. The resulting method achieves a detection accuracy that is substantially better than current state-of-the-art approaches on a new large-scale colonoscopy video dataset introduced in this work.

View on arXivView PDF

Code Implementations(1)

[MICCAI'22] Contrastive Transformer-based Multiple Instance Learning for Weakly Supervised Polyp Frame Detection.

464PythonMar 31, 20221 years agoNOASSERTION
anomaly-detectiondatasetdeep-learningpolyp

Similar Papers

Cite this paper

@article{tian2022contrastive,
  title  = {Contrastive Transformer-based Multiple Instance Learning for Weakly Supervised Polyp Frame Detection},
  author = {Yu Tian and Guansong Pang and Fengbei Liu and Yuyuan Liu and Chong Wang and Yuanhong Chen and Johan W Verjans and Gustavo Carneiro},
  year   = {2022},
  eprint = {2203.12121},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.12121}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.12121.svg)](https://codeofpaper.com/paper/2203.12121)

Discussion