Position-Guided Prompt Learning for Anomaly Detection in Chest X-Rays

Zhichao Sun, Yuliang Gu, Yepeng Liu, Zerui Zhang, Zhou Zhao +1 more
5/20/2024
cs.CV

Official code: sunzc-sunny/PPAD (20 stars, last commit 2024-05-28).

Abstract

Anomaly detection in chest X-rays is a critical task. Most methods mainly model the distribution of normal images, and then regard significant deviation from normal distribution as anomaly. Recently, CLIP-based methods, pre-trained on a large number of medical images, have shown impressive performance on zero/few-shot downstream tasks. In this paper, we aim to explore the potential of CLIP-based methods for anomaly detection in chest X-rays. Considering the discrepancy between the CLIP pre-training data and the task-specific data, we propose a position-guided prompt learning method. Specifically, inspired by the fact that experts diagnose chest X-rays by carefully examining distinct lung regions, we propose learnable position-guided text and image prompts to adapt the task data to the frozen pre-trained CLIP-based model. To enhance the model's discriminative capability, we propose a novel structure-preserving anomaly synthesis method within chest x-rays during the training process. Extensive experiments on three datasets demonstrate that our proposed method outperforms some state-of-the-art methods. The code of our implementation is available at https://github.com/sunzc-sunny/PPAD.

View on arXivView PDF

Code Implementations(1)

sunzc-sunny/PPADOfficial100%

Position-Guided Prompt Learning for Anomaly Detection in Chest X-Rays

201PythonMay 16, 20242 years ago

Similar Papers

Cite this paper

@article{sun2024positionguided,
  title  = {Position-Guided Prompt Learning for Anomaly Detection in Chest X-Rays},
  author = {Zhichao Sun and Yuliang Gu and Yepeng Liu and Zerui Zhang and Zhou Zhao and Yongchao Xu},
  year   = {2024},
  eprint = {2405.11976},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.11976v2}
}

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/2405.11976.svg)](https://codeofpaper.com/paper/2405.11976)

Discussion