Collaborative Learning of Anomalies with Privacy (CLAP) for Unsupervised Video Anomaly Detection: A New Baseline [CVPR 2024]
Collaborative Learning of Anomalies with Privacy (CLAP) for Unsupervised Video Anomaly Detection: A New Baseline
Anas Al-lahham, Muhammad Zaigham Zaheer, Nubrek Tastan, Karthik Nandakumar
Official implementation of the paper: "Collaborative Learning of Anomalies with Privacy (CLAP) for Unsupervised Video Anomaly Detection: A New Baseline" [CVPR 2024].
Abstract: Unsupervised (US) video anomaly detection (VAD) in surveillance applications is gaining more popularity recently due to its practical real-world applications. As surveillance videos are privacy sensitive and the availability of large-scale video data may enable better US-VAD systems, collaborative learning can be highly rewarding in this setting. However, due to the extremely challenging nature of the US-VAD task, where learning is carried out without any annotations, privacy-preserving collaborative learning of US-VAD systems has not been studied yet. In this paper, we propose a new baseline for anomaly detection capable of localizing anomalous events in complex surveillance videos in a fully unsupervised fashion without any labels on a privacy-preserving participant-based distributed training configuration. Additionally, we propose three new evaluation protocols to benchmark anomaly detection approaches on various scenarios of collaborations and data availability. Based on these protocols, we modify existing VAD datasets to extensively evaluate our approach as well as existing US SOTA methods on two large-scale datasets including UCF-Crime and XD-Violence.
Follow these steps to set up a conda environment and ensure all necessary packages are installed:
git clone https://github.com/AnasEmad11/CLAP.git
cd CLAP
conda create -n FLAD python=3.7
conda activate FLAD
# The results are produced with PyTorch 1.12.1 and CUDA 11.3
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
pip install -r requirements.txt
To setup all the available datasets, plesae download the concatenated features from this link
All the required dataset splits are availble in the project webpage and can be downloaded from Dataset Splits
Distribution of UCF-Crime dataset videos based on the three training data organizations proposed in our paper to evaluate collaborative learning approaches for video Anomaly Detection.
We evaluate CLAP on 3 different FL methods on the scene-based split.
FedAvg | FedProx | SCAFFOLD | |
---|---|---|---|
CLAP | 73.99% | 73.4% | 73.7% |
Comparison of CLAP with other SOTA Unsupervised and Weakly Supervised methods
Method | UCF-Crime (US) | UCF-Crime (WS) | XD-Violence (US) | XD-Violence (WS) | |
---|---|---|---|---|---|
GCL | 71.04% | 79.84% | 73.62% | 82.18% | |
Centralized | C2FPL | 80.65% | 83.40% | 80.09% | 89.34% |
CLAP | 80.9% | 85.50% | 81.71% | 90.04% | |
GCL | 56.63% | 65.32% | 58.11% | 59.91% | |
Local | C2FPL | 61.33% | 65.85% | 60.05% | 63.4% |
CLAP | 63.93% | 67.47% | 62.37% | 64.97% | |
GCL | 67.12% | 76.82% | 68.19% | 75.21% | |
Collaborative | C2FPL | 75.20% | 77.60% | 74.36% | 76.98% |
CLAP | 78.02% | 83.23% | 77.65% | 85.67% |
@inproceedings{al2024collaborative,
title={Collaborative Learning of Anomalies with Privacy (CLAP) for Unsupervised Video Anomaly Detection: A New Baseline},
author={Al-Lahham, Anas and Zaheer, Muhammad Zaigham and Tastan, Nurbek and Nandakumar, Karthik},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={12416--12425},
year={2024}
}