LesionPaste: One-Shot Anomaly Detection for Medical Images

Weikai Huang, Yijin Huang, Xiaoying TangarXiv 2022 · DOI

Introduction

Medical anomaly detection (AD) traditionally faces a stark choice: unsupervised methods that learn only from healthy data but often fail to distinguish pathology from noise, or fully supervised methods that require thousands of expert-labeled samples. LesionPaste introduces a "one-shot" middle ground, utilizing a single annotated anomalous sample to synthesize a diverse training set that bridges the gap between these two extremes.

The LesionPaste Framework

The core innovation of LesionPaste is its three-stage pipeline designed to simulate a wide variety of pathological appearances from minimal initial data.

  1. Lesion Bank Construction: Starting with just one annotated anomalous image, individual lesion patches are extracted using Connected Component Labeling. These patches form the basis of a "lesion bank."
  2. Data Augmentation and Synthesis: To generalize beyond the single sample, the extracted lesions undergo heavy geometric (flip, rotation, resize) and photometric (contrast, brightness) transformations. These augmented lesions are then "pasted" onto healthy images using the MixUp technique. MixUp blends the lesion with the background, preventing the model from learning trivial edge artifacts and forcing it to focus on pathological textures.
  3. Anomaly Detection Network: A standard VGG16 classifier is trained to distinguish between original normal images and the synthesized anomalous samples. At inference, the classification score serves as a robust anomaly metric.
Overview of the LesionPaste pipeline, including lesion bank construction (A), data augmentation (B), and the anomaly detection network (C).

Experimental Evaluation

The framework was validated on two distinct tasks: Diabetic Retinopathy (DR) detection in fundus images (EyeQ/IDRiD) and COVID-19 detection in lung CT scans (MosMed).

In DR detection, LesionPaste achieved an AUC of 0.8216, notably outperforming a fully supervised VGG16 (0.7885) and significantly exceeding semi-supervised benchmarks like 10-shot DevNet (0.6301). Its performance in early-stage (Grade 1) DR was particularly striking, reaching an AUC of 0.7348 compared to the supervised model's 0.6257. In the COVID-19 task, the model achieved an AUC of 0.9546, demonstrating strong generalization to different imaging modalities.

Key Insights and Ablation Studies

A critical finding of the study is the "Power of One": the specific choice of the single annotated sample is less important than the diversity of the augmentations applied to it. Ablation studies revealed that photometric augmentations, particularly brightness, are vital for detecting lesions like hard exudates in DR, which are defined by their intensity profiles.

Ablation study showing the impact of various data augmentation techniques on the final AUC performance.

As shown in the ablation table, combining multiple augmentations leads to the best performance (AUC 0.8126). Interestingly, while color distortion is common in general computer vision, it slightly degraded performance in this medical context, suggesting that maintaining realistic color profiles is important for medical AD.

Conclusion

LesionPaste demonstrates that a single well-annotated sample, combined with intelligent synthesis and augmentation, can produce a detector that rivals or exceeds models trained on massive datasets. By focusing on the "texture" of disease rather than just the absence of normality, it provides a scalable solution for rare diseases and "cold start" scenarios in clinical practice.

Summary updated

BibTeX
@misc{huang2022lesionpaste,
  author = {Weikai Huang and Yijin Huang and Xiaoying Tang},
  title = {{LesionPaste: One-Shot Anomaly Detection for Medical Images}},
  year = {2022},
  eprint = {2203.06354},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.06354},
}
Figure