GODS: Generalized One-Class Discriminative Subspaces for Anomaly Detection

Jue Wang, Anoop Cherian

Introduction

Anomaly detection, or one-class learning, is the challenge of training a model when only "normal" data is available. This is critical in fields like industrial monitoring or security, where failures or crimes are rare. Traditional solutions like One-Class SVM (OC-SVM) and Support Vector Data Description (SVDD) often struggle with complex, high-dimensional data. OC-SVM uses a single hyperplane that can be too simplistic, while SVDD assumes the data is isotropic (spherical), which is rarely true in real-world feature spaces.

The GODS Framework

To overcome these limitations, we propose GODS (Generalized One-class Discriminative Subspaces). This novel framework "sandwiches" normal data between two learnable subspaces, providing a flexible, piecewise-linear decision boundary that adapts to the data's actual distribution.

Comparison of decision boundaries: OC-SVM and SVDD vs. the proposed BODS and GODS methods.

The approach builds on BODS (Basic One-class Discriminative Subspaces), which uses a pair of hyperplanes. GODS generalizes this by using two subspaces, each consisting of multiple orthonormal frames. The model optimizes a "sandwich" objective that balances two goals:

  • Volume Minimization: Pulling the two subspaces toward each other to keep the normal region as tight as possible.
  • Margin Maximization: Pushing data away from the boundaries to ensure that any point outside the normal distribution is easily flagged as an anomaly.

Because the subspaces must be orthonormal to capture diverse directions, the optimization problem is non-convex. We solve this by treating parameters as points on a Stiefel manifold and employing Riemannian Conjugate Gradient (RCG) for efficient navigation of the search space. This piecewise-linear approach is more descriptive than a flat plane but avoids the high computational overhead of kernel methods.

Experimental Evaluation

GODS was evaluated on several benchmarks, including a new dataset introduced in this work:

  • Dash-Cam-Pose (New): Contains ~5,000 video clips for detecting dangerous "Out-of-Position" (OOP) poses in cars (e.g., feet on the dashboard).
  • JHMDB & UCF-Crime: Video datasets for action recognition and real-world anomaly detection like robberies or fights in surveillance footage.
  • UCI Benchmarks: Standard low-dimensional datasets like Sonar and Delft pump.
Example of pose estimation from the new Dash-Cam-Pose dataset used for anomaly detection.

Key Results

GODS consistently achieved state-of-the-art performance across all tested datasets:

  • Dash-Cam-Pose: Achieved an F1 score of 0.584, more than doubling the performance of OC-SVM (0.279).
  • JHMDB: Reached an F1 of 0.777, significantly outperforming the next best method, LS-OSVM (0.663).
  • UCF-Crime: Achieved a 70.46% AUC, a 5-20% improvement over previous specialized anomaly detection methods.
  • Efficiency: Despite the manifold optimization, training time scales linearly with the number of samples, making it faster than many kernel-based alternatives.

Conclusion

By using multiple hyperplanes to create a piecewise-linear boundary, GODS offers a descriptive yet computationally efficient solution for anomaly detection. While initialization remains important due to the non-convex nature of the problem, the use of Riemannian manifold optimization makes the approach robust and high-performing across diverse data types, from raw sensor data to high-level deep learning embeddings.

Summary updated

BibTeX
@misc{wang2019gods,
  author = {Jue Wang and Anoop Cherian},
  title = {{GODS: Generalized One-Class Discriminative Subspaces for Anomaly Detection}},
  year = {2019},
  eprint = {1908.05884},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.05884},
}
Figure