Delving into CLIP latent space for Video Anomaly Recognition

Luca Zanella, Benedetta Liberatori, Willi Menapace, Fabio Poiesi, Yiming Wang +1 more
10/4/2023
cs.CV

No official code found. Best implementation: lucazanella/AnomalyCLIP (111 stars, last commit 2025-09-27).

Abstract

We tackle the complex problem of detecting and recognising anomalies in surveillance videos at the frame level, utilising only video-level supervision. We introduce the novel method AnomalyCLIP, the first to combine Large Language and Vision (LLV) models, such as CLIP, with multiple instance learning for joint video anomaly detection and classification. Our approach specifically involves manipulating the latent CLIP feature space to identify the normal event subspace, which in turn allows us to effectively learn text-driven directions for abnormal events. When anomalous frames are projected onto these directions, they exhibit a large feature magnitude if they belong to a particular class. We also introduce a computationally efficient Transformer architecture to model short- and long-term temporal dependencies between frames, ultimately producing the final anomaly score and class prediction probabilities. We compare AnomalyCLIP against state-of-the-art methods considering three major anomaly detection benchmarks, i.e. ShanghaiTech, UCF-Crime, and XD-Violence, and empirically show that it outperforms baselines in recognising video anomalies.

View on arXivView PDF

Code Implementations(1)

Official implementation of "Delving into CLIP latent space for Video Anomaly Recognition", CVIU 2024

11116Shell, PythonJun 13, 20231 years ago

Similar Papers

Cite this paper

@article{zanella2023delving,
  title  = {Delving into CLIP latent space for Video Anomaly Recognition},
  author = {Luca Zanella and Benedetta Liberatori and Willi Menapace and Fabio Poiesi and Yiming Wang and Elisa Ricci},
  year   = {2023},
  eprint = {2310.02835},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.02835v1}
}

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

Discussion