TeD-SPAD: Temporal Distinctiveness for Self-supervised Privacy-preservation for video Anomaly Detection

Joseph Fioresi, Ishan Rajendrakumar Dave, Mubarak Shah

Abstract

Video Anomaly Detection (VAD) is essential for public safety but poses significant privacy risks by capturing sensitive personal attributes. Existing privacy-preserving methods designed for action recognition often fail in VAD contexts because they prioritize temporally-invariant features, which "smear" the temporal cues necessary for detecting anomalies. We present TeD-SPAD, a self-supervised framework that employs a novel temporally-distinct triplet loss to preserve the subtle timing cues required for VAD while effectively stripping away identifiable information. Our results demonstrate that TeD-SPAD achieves a substantial reduction in privacy leakage with minimal impact on detection accuracy.

Introduction

Video Anomaly Detection (VAD) systems are increasingly deployed in public spaces to identify critical events such as accidents, robberies, or fires. While these systems enhance public safety, they simultaneously collect vast amounts of sensitive data, including faces, gender, race, and other private attributes. This creates a fundamental tension between utility—the ability to detect anomalies—and privacy—the protection of individual identities.

Standard anonymization techniques, such as blurring or masking, often degrade the video quality to a point where the AI's utility drops significantly. Furthermore, previous research into privacy-preserving AI has largely focused on action recognition. These models typically learn "temporally-invariant" features, ensuring a person is recognized as the same entity throughout a clip. However, VAD relies on "temporally-distinct" reasoning to identify deviations from normal patterns. Applying action-recognition anonymization to VAD leads to the loss of critical temporal signatures, rendering the detection system ineffective.

The TeD-SPAD Framework

To address the Privacy-Utility Trade-off in VAD, we propose TeD-SPAD (Temporal Distinctiveness for Self-supervised Privacy-preservation). The framework utilizes a three-component architecture optimized via minimax training.

Architecture Components

  1. The Anonymizer ($f_A$): A UNet-based model that transforms raw video frames into anonymized versions. These outputs appear as shifting heatmaps where individuals are represented as "blobs," removing identifiable features while retaining motion patterns.
  2. The Utility Model ($f_T$): A video encoder (I3D) trained to recognize actions and detect anomalies from the anonymized feed.
  3. The Privacy Model ($f_B$): A "budget" model that attempts to predict private attributes from the anonymized data.

Temporally-Distinct Triplet Loss

The core innovation of TeD-SPAD is the Temporally-Distinct Triplet Loss ($L_D$). Unlike standard training that focuses solely on action labels, this loss function forces the model to learn features unique to specific moments in time. By comparing an "anchor" clip with a "positive" sample (the same moment from a different view) and a "negative" sample (a different moment in time), the anonymizer is trained to preserve the temporal "signature" of events. This ensures that the timing of an anomaly remains detectable even after the visual identity of the subjects is obscured.

Experimental Evaluation

The framework was evaluated across several benchmark datasets to test its robustness in real-world scenarios:

  • UCF-Crime & XD-Violence: Large-scale datasets containing thousands of videos of real-world anomalies and violence.
  • ShanghaiTech: A medium-scale dataset used to validate performance across different scenes.
  • VISPR: A dataset containing 22,000 images with 68 private attribute labels, used specifically to quantify privacy leakage.

The training process follows a minimax optimization strategy: the Anonymizer ($f_A$) is trained to maximize the performance of the Utility model ($f_T$) while simultaneously minimizing the success of the Privacy model ($f_B$).

Key Results and Insights

Our experiments reveal that VAD does not have to be a zero-sum game between privacy and utility. TeD-SPAD significantly outperforms existing baselines, including SPAct and traditional obfuscation methods.

  • Privacy vs. Utility: On the UCF-Crime dataset, TeD-SPAD reduced the prediction of private attributes by 32.25%. Remarkably, this was achieved with only a 3.69% decrease in frame-level ROC AUC.
  • Comparison to State-of-the-Art: Compared to SPAct (the previous state-of-the-art), TeD-SPAD removed 19.9% more privacy leakage while maintaining a superior utility score.
  • Self-Supervised Advantage: Because the model is self-supervised, it does not require explicit labels for every private attribute (e.g., "face" or "tattoo"). It learns to generalize the concept of privacy by attempting to defeat a general attribute classifier, effectively destroying any visual information that could identify a person.

Conclusion and Future Directions

TeD-SPAD demonstrates that "temporally aware" anonymization is the key to preserving utility in video anomaly detection. By focusing on temporal distinctiveness, we can strip away sensitive personal information without compromising the system's ability to identify dangerous events.

Future research will focus on improving spatial localization—identifying exactly where an anomaly occurs within the anonymized frame. Additionally, incorporating newer techniques like Masked Image Modeling (MIM) and exploring multi-modal privacy (e.g., anonymizing audio in XD-Violence) represent promising avenues for further enhancing the framework's robustness.

Summary updated

BibTeX
@inproceedings{fioresi2023ted,
  author = {Joseph Fioresi and Ishan Rajendrakumar Dave and Mubarak Shah},
  title = {{TeD-SPAD: Temporal Distinctiveness for Self-supervised Privacy-preservation for video Anomaly Detection}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure