CAGEN: Controllable Anomaly Generator using Diffusion Model

Bolin Jiang, Yuqiu Xie, Jiawei Li, Naiqi Li, Yong Jiang, Shu-Tao Xia

Abstract

Data augmentation has been widely applied in anomaly detection, which generates synthetic anomalous data for training. However, most existing anomaly augmentation methods focus on image-level cut-and-paste techniques, resulting in less realistic synthetic results, and are restricted to a few predefined patterns. In this paper, we propose our Controllable Anomaly Generator (CAGen) for anomaly data augmentation, which can generate high-quality images, and be flexibly controlled with text prompts. Specifically, our method fine-tunes a ControlNet model by using binary masks and textual prompts to control the spatial localization and style of generated anomalies. To further augment the resemblance between the generated features and normal samples, we propose a fusion method that integrates the generated anomalous features with the features of normal samples. Experiments on standard anomaly detection benchmarks show that the proposed data augmentation method significantly leads to a 0.4/3.1 improvement in the AUROC/AP metric.
BibTeX
@inproceedings{jiang2024cagen,
  author = {Bolin Jiang and Yuqiu Xie and Jiawei Li and Naiqi Li and Yong Jiang and Shu-Tao Xia},
  title = {{CAGEN: Controllable Anomaly Generator using Diffusion Model}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10447663},
}

Loading related content...

Figure