Adversarial Anomaly Detection for Marked Spatio-Temporal Streaming Data

Shixiang Zhu, Henry Shaowu Yuchi, Yao Xie

Abstract: We consider the sequential anomaly detection problem in the one-class setting when only the anomalous sequences are available and propose an adversarial sequential detector by solving a minimax problem to find an optimal detector against the worst-case sequences from a generator. The generator captures the dependence in sequential events using the marked point process model. The detector sequentially evaluates the likelihood of a test sequence and compares it with a time-varying threshold, also learned from data through the minimax problem. We demonstrate our proposed method's good performance using numerical experiments on simulations and proprietary large-scale credit card fraud datasets. The proposed method can generally apply to detecting anomalous sequences.

Introduction

Identifying fraudulent or abnormal behavior in streaming spatio-temporal data is a critical challenge in modern data science. This paper presents a sophisticated approach that combines point processes with adversarial learning to tackle the "one-class" problem, where only anomalous data is available for training. This scenario is common in domains like credit card fraud or network intrusion, where normal behavior is too vast to characterize or constantly shifting.

The Challenge of One-Class Sequential Data

In many real-world scenarios, event data is rarely independent; one event often triggers another. For instance, a fraudster might make several rapid purchases in different locations. Existing methods often struggle with these sequential dependencies or require an entire sequence to be completed before making a judgment.

Spatio-temporal event sequence visualization

This research addresses the need for an online, unsupervised detector that can raise an alarm as soon as a sequence deviates from the expected "border region" of normal behavior. The goal is to identify these deviations in real-time as events unfold.

Methodology: Adversarial Imitation Learning

The core of the proposed framework is a minimax optimization problem inspired by imitation learning, consisting of two primary components:

  1. The Generator: A stochastic RNN-based generator acts as an "adversary." It attempts to produce "normal" sequences that are statistically as close as possible to the known anomalous sequences. This forces the detector to learn the subtle boundaries that define an anomaly.
  2. The Detector: Modeled as a Marked Hawkes Process, the detector evaluates the likelihood of incoming events. To overcome the computational expense of traditional Hawkes processes, the authors introduce a Deep Fourier Kernel. By utilizing Bochner’s Theorem, they represent the kernel in the frequency domain using a Deep Neural Network (DNN), resulting in a computationally efficient, closed-form expression.

Furthermore, the model employs a time-varying threshold rather than a static cutoff. This learned threshold adapts as the sequence progresses, allowing for tighter control over false alarms and more sensitive detection early in a sequence.

Experimental Evaluation

The model, referred to as Adversarial Imitation Learning (AIL), was evaluated on four distinct datasets, including synthetic simulations and real-world records of robberies and credit card fraud.

Statistical characteristics of the credit card fraud dataset

Key Results

  • Superior Accuracy: AIL consistently achieved higher $F_1$ scores across all datasets compared to baselines like One-class SVM and PCA+CUMSUM.
  • Early Detection: On the credit card fraud dataset, the model accurately flagged anomalies significantly faster than baselines—often before the 10th event in a sequence occurred.
  • Robustness: The use of an "extended LSTM" generator proved crucial; simpler generators led to significant performance deterioration on complex, real-world data.

Conclusion

By training against a generator that mimics anomalies, the detector learns a robust "detection radius." The integration of the Deep Fourier Kernel makes the model efficient enough for high-dimensional, real-time streaming data. While the adversarial training process is computationally intensive, the resulting detector is highly effective for early-stage anomaly identification. Future work may extend this framework to internet intrusion detection and monitoring power system failures.

Summary updated

BibTeX
@inproceedings{zhu2020adversarial,
  author = {Shixiang Zhu and Henry Shaowu Yuchi and Yao Xie},
  title = {{Adversarial Anomaly Detection for Marked Spatio-Temporal Streaming Data}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  doi = {10.1109/icassp40776.2020.9053837},
}
Figure