Sequential Adversarial Anomaly Detection for Dependent Events

Shixiang Zhu, Henry Shaowu Yuchi, Minghe Zhang, Yao Xie

Abstract

We consider the sequential anomaly detection problem in the one-class setting when only the anomalous sequences are available. We propose an adversarial sequential detector by solving a minimax problem, optimizing the detection performance for the worst-case sequences that mimic the anomalous sequences statistically, and specifically capture the dependence in a sequence of events using the marked point process model. When applying the detector sequentially, we evaluate the likelihood of a given sequence recursively and compare it with a time-varying threshold, which is also learned from data through the minimax problem. Using numerical experiments on simulations and real-world datasets, we demonstrate the superior performance of our proposed method.

Introduction: The Challenge of One-Class Sequential Data

Detecting anomalies in sequential data is a critical task in domains ranging from financial fraud prevention to cybersecurity. Traditional methods often rely on a well-defined "normal" baseline to identify outliers. However, in many practical scenarios, such as credit card fraud or network intrusions, researchers primarily possess a database of confirmed anomalous sequences.

Example of a sequence of spatio-temporal events representing credit card transactions.

This "one-class" problem is further complicated by temporal and spatial dependencies; the timing and location of one transaction often depend on previous ones. Existing methods frequently struggle with these dependencies or fail to provide the real-time, "online" detection necessary to stop fraud as it occurs.

Methodology: Adversarial Learning and Hawkes Processes

To address these challenges, the paper proposes an adversarial framework inspired by imitation learning. The core of the approach is a minimax game between two components:

  1. The Generator: Trained to produce "worst-case" sequences that statistically resemble the known anomalies. This forces the detector to find the most precise boundaries of anomalous behavior.
  2. The Detector: Utilizes a Marked Hawkes Process to model the dependencies between events. Hawkes processes are mathematical models for events that "trigger" other events (e.g., a fraudulent purchase triggering a series of subsequent rapid transactions).

A major technical innovation in this work is the use of a Deep Fourier Kernel. Evaluating the likelihood of a Hawkes process typically requires complex numerical integration. By applying Bochner’s Theorem to represent the kernel in the frequency domain, the authors achieved a closed-form solution, making the model efficient enough for real-time use. Furthermore, the model learns a time-varying threshold that evolves as a sequence grows, providing a more accurate bound for raising alarms than static thresholds.

Experimental Evaluation

The proposed method, termed Adversarial Imitation Learning (AIL), was evaluated on synthetic datasets and real-world data, including a proprietary credit card fraud dataset and Atlanta robbery data.

Transaction sequence of a single card across different locations over time.

As shown in the transaction sequence analysis, the model must account for varying transaction amounts and locations over time. The results indicated that the AIL method consistently outperformed state-of-the-art baselines like One-Class SVM, Local Outlier Factor (LOF), and PCA-based methods. Notably, the AIL method achieved significantly higher F1-scores, particularly in the early stages of a sequence, demonstrating its effectiveness for early detection.

Conclusion

By combining adversarial learning with sophisticated spatio-temporal modeling via Hawkes processes, this research provides a robust framework for sequential anomaly detection in one-class settings. The integration of the Deep Fourier Kernel and a learned time-varying threshold makes it a practical and high-performing solution for real-world fraud detection and security monitoring.

Summary updated

BibTeX
@inproceedings{zhu2020sequential,
  author = {Shixiang Zhu and Henry Shaowu Yuchi and Minghe Zhang and Yao Xie},
  title = {{Sequential Adversarial Anomaly Detection for Dependent Events}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  doi = {10.1109/icassp40776.2020.9053837},
}
Figure