Frequency-Guided Multi-Level Human Action Anomaly Detection with Normalizing Flows

Shun Maeda, Chunzhi Gu, Jun Yu, Shogo Tokai, Shangce Gao, Chao Zhang

Abstract

We introduce the task of human action anomaly detection (HAAD), which aims to identify anomalous motions in an unsupervised manner given only the pre-determined normal category of training action samples. Compared to prior human-related anomaly detection tasks which primarily focus on unusual events from videos, HAAD involves the learning of specific action labels to recognize semantically anomalous human behaviors. To address this task, we propose a normalizing flow (NF)-based detection framework where the sample likelihood is effectively leveraged to indicate anomalies. As action anomalies often occur in some specific body parts, in addition to the full-body action feature learning, we incorporate extra encoding streams into our framework for a finer modeling of body subsets. Our framework is thus multi-level to jointly discover global and local motion anomalies. Furthermore, to show awareness of the potentially jittery data during recording, we resort to discrete cosine transformation by converting the action samples from the temporal to the frequency domain to mitigate the issue of data instability. Extensive experimental results on two human action datasets demonstrate that our method outperforms the baselines formed by adapting state-of-the-art human activity AD approaches to our task of HAAD.

Introduction

Traditional Video Anomaly Detection (VAD) focuses on identifying visually salient unusual events, such as accidents or criminal activities. However, in many practical scenarios—such as industrial safety monitoring or sports training—it is crucial to detect whether a person is performing a specific, expected action correctly. This paper introduces Human Action Anomaly Detection (HAAD), a task focused on identifying semantic deviations from a predefined "normal" action category. For instance, if a system is trained on "walking," any other action like "running" or "sitting" should be flagged as an anomaly.

Existing approaches face significant challenges in HAAD. Raw video data often contains environmental noise (lighting, background) that obscures motion. Furthermore, 3D skeletal data, while cleaner, often suffers from sensor jitter. Finally, many anomalies are subtle and localized to specific body parts, making them difficult to detect using only global motion features.

Methodology

The proposed framework addresses these challenges through a frequency-guided, multi-level approach utilizing Normalizing Flows.

Architecture of the proposed multi-level NF-based framework for human action anomaly detection.

Frequency-Guided Encoding

To mitigate the impact of data instability and jitter, the framework converts skeletal sequences from the temporal domain to the frequency domain using the Discrete Cosine Transform (DCT). By discarding high-frequency components, the model retains the essential motion trajectory while filtering out noise. This frequency-domain representation serves as a robust input for subsequent feature extraction.

Multi-Level Feature Learning

Action anomalies are often localized. For example, "drinking" and "waving" might look similar in the lower body but differ significantly in the upper body. To capture these nuances, the framework employs three parallel streams:

  1. Global Stream: Processes the entire skeletal structure.
  2. Upper-Body Stream: Focuses on the arms and torso.
  3. Lower-Body Stream: Focuses on the legs.

Each stream utilizes Graph Convolutional Networks (GCNs) to model the spatial dependencies between joints. The resulting local features ($F^{up}$, $F^{low}$) are fused into a local feature $F^{loc}$, which is then combined with the global feature $F^{glb}$ to form a comprehensive representation $F^{all}$.

Normalizing Flows and Robust Scoring

The core of the detection mechanism is a Normalizing Flow (NF) model. Unlike reconstruction-based models (e.g., VAEs or Diffusion models) that may over-generalize and reconstruct anomalies too well, NFs learn a bijective mapping to a latent Gaussian distribution. This allows for the exact calculation of the log-likelihood of a given sample. During testing, samples with a low likelihood (high Negative Log-Likelihood, NLL) relative to the training distribution are identified as anomalies. To further enhance stability, the framework incorporates a K-Nearest Neighbor (KNN) search in the feature space to refine the anomaly scores.

Experiments and Results

The model was evaluated on two major datasets: HumanAct12 (12 categories) and UESTC (25,000 sequences across 10 complex categories).

Quantitative Performance

The proposed method significantly outperformed state-of-the-art baselines adapted for HAAD. On HumanAct12, the model achieved an average AUC of 0.843, compared to just 0.494 for diffusion-based methods. On the larger UESTC dataset, the model reached an impressive 0.950 average AUC.

Qualitative Analysis

Qualitative results showing NLL scores for various test categories when 'Throw' or 'Jumping jack' are defined as normal. Source, p. 3

Qualitative results showing NLL scores for various test categories when 'Throw' or 'Jumping jack' are defined as normal.

As illustrated in the qualitative results, when the model is trained on the "Throw" category, it assigns a low NLL (87.80) to unseen "Throw" samples. In contrast, semantically different actions like "Warm up" (201.20) and "Run" (209.69) receive significantly higher scores, allowing for clear thresholding. Similar results are observed for the "Jumping jack" category, where "Rope skip" and "Sng dbl rais" are correctly identified as anomalies with high NLL values.

Conclusion

This work establishes HAAD as a distinct and important task in anomaly detection. By leveraging frequency-domain smoothing, multi-level GCN feature extraction, and the probabilistic modeling of Normalizing Flows, the proposed framework provides a robust solution for identifying semantically anomalous human behaviors. Future work will explore adaptive weighting for body parts and learnable frequency filters to further enhance detection precision.

Summary updated

Abstract

We introduce the task of human action anomaly detection (HAAD), which aims to identify anomalous motions in an unsupervised manner given only the pre-determined normal category of training action samples. Compared to prior human-related anomaly detection tasks which primarily focus on unusual events from videos, HAAD involves the learning of specific action labels to recognize semantically anomalous human behaviors. To address this task, we propose a normalizing flow (NF)-based detection framework where the sample likelihood is effectively leveraged to indicate anomalies. As action anomalies often occur in some specific body parts, in addition to the full-body action feature learning, we incorporate extra encoding streams into our framework for a finer modeling of body subsets. Our framework is thus multi-level to jointly discover global and local motion anomalies. Furthermore, to show awareness of the potentially jittery data during recording, we resort to discrete cosine transformation by converting the action samples from the temporal to the frequency domain to mitigate the issue of data instability. Extensive experimental results on two human action datasets demonstrate that our method outperforms the baselines formed by adapting state-of-the-art human activity AD approaches to our task of HAAD.
BibTeX
@misc{maeda2024frequency,
  author = {Shun Maeda and Chunzhi Gu and Jun Yu and Shogo Tokai and Shangce Gao and Chao Zhang},
  title = {{Frequency-Guided Multi-Level Human Action Anomaly Detection with Normalizing Flows}},
  year = {2024},
  eprint = {2404.17381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.17381},
}
Figure