JOURNAL ARTICLE

Unsupervised Continual Anomaly Detection with Contrastively-Learned Prompt

Jiaqi LiuKai WuQiang NieHuiling ChenBin-Bin GaoYong LiuJinbao WangChengjie WangFeng Zheng

Year: 2024 Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Vol: 38 (4)Pages: 3639-3647   Publisher: Association for the Advancement of Artificial Intelligence

Abstract

Unsupervised Anomaly Detection (UAD) with incremental training is crucial in industrial manufacturing, as unpredictable defects make obtaining sufficient labeled data infeasible. However, continual learning methods primarily rely on supervised annotations, while the application in UAD is limited due to the absence of supervision. Current UAD methods train separate models for different classes sequentially, leading to catastrophic forgetting and a heavy computational burden. To address this issue, we introduce a novel Unsupervised Continual Anomaly Detection framework called UCAD, which equips the UAD with continual learning capability through contrastively-learned prompts. In the proposed UCAD, we design a Continual Prompting Module (CPM) by utilizing a concise key-prompt-knowledge memory bank to guide task-invariant 'anomaly' model predictions using task-specific 'normal' knowledge. Moreover, Structure-based Contrastive Learning (SCL) is designed with the Segment Anything Model (SAM) to improve prompt learning and anomaly segmentation results. Specifically, by treating SAM's masks as structure, we draw features within the same mask closer and push others apart for general feature representations. We conduct comprehensive experiments and set the benchmark on unsupervised continual anomaly detection and segmentation, demonstrating that our method is significantly better than anomaly detection methods, even with rehearsal training. The code will be available at https://github.com/shirowalker/UCAD.

Keywords:
Anomaly detection Anomaly (physics) Psychology Artificial intelligence Computer science Physics

Metrics

21
Cited By
5.09
FWCI (Field Weighted Citation Impact)
71
Refs
0.95
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Anomaly Detection Techniques and Applications
Physical Sciences →  Computer Science →  Artificial Intelligence
Network Security and Intrusion Detection
Physical Sciences →  Computer Science →  Computer Networks and Communications
Smart Grid Security and Resilience
Physical Sciences →  Engineering →  Control and Systems Engineering

Related Documents

JOURNAL ARTICLE

Continual unsupervised anomaly detection

一鸣 倪松灿 陈

Journal:   Scientia Sinica Informationis Year: 2021 Vol: 52 (1)Pages: 75-75
JOURNAL ARTICLE

Dynamic Expert Routing for Unsupervised Continual Anomaly Detection

Yuxuan CaiXinwei HeAo TongXiang Bai

Journal:   IEEE Transactions on Industrial Informatics Year: 2025 Vol: 21 (10)Pages: 7477-7486
© 2026 ScienceGate Book Chapters — All rights reserved.