Possibility for Proactive Anomaly Detection

Jinsung Jeon, Jaehyeon Park, Sewon Park, Jeongwhan Choi, Minjung Kim, Noseong Park

Abstract

Time-series anomaly detection, which detects errors and failures in a workflow, is one of the most important topics in real-world applications. The purpose of time-series anomaly detection is to reduce potential damages or losses. However, existing anomaly detection models detect anomalies through the error between the model output and the ground truth (observed) value, which makes them impractical. In this work, we present a proactive approach for time-series anomaly detection based on a time-series forecasting model specialized for anomaly detection and a data-driven anomaly detection model. Our proactive approach establishes an anomaly threshold from training data with a data-driven anomaly detection model, and anomalies are subsequently detected by identifying predicted values that exceed the anomaly threshold. In addition, we extensively evaluated the model using four anomaly detection benchmarks and analyzed both predictable and unpredictable anomalies.

Introduction

In the world of time-series analysis, anomaly detection is usually a "post-mortem" exercise. Traditional models are reactive; they detect errors by comparing a model’s output to the observed ground truth. By the time the discrepancy is large enough to trigger an alarm, the system failure or data loss has often already occurred.

The challenge in moving toward proactive detection lies in the complexity of real-world sensor data, which often mixes continuous variables (like temperature) with discrete ones (like binary status codes). Most existing forecasting models either ignore discrete data or fail to capture the complex dependencies between these different data types, making proactive detection unreliable. This paper addresses these issues by introducing a specialized forecasting model that treats continuous and discrete features as first-class citizens to identify subtle "precursors" of impending failures.

Methods

The proposed proactive framework consists of two primary stages: a specialized forecasting model and a boundary-based detection mechanism.

Specialized Forecasting Model

To predict future states accurately, the model processes continuous and discrete features separately but links them through an Adaptive Graph Convolution (AGC) layer.

  • Continuous features are decomposed into trend and seasonality components.
  • Discrete features are handled via one-hot embeddings.
  • The AGC layer learns a dynamic adjacency matrix to capture correlations between all features simultaneously. This ensures that a spike in a continuous variable and a change in a discrete status code are modeled as related events.
Architecture of the specialized forecasting model featuring the Adaptive Graph Convolution (AGC) layer.

Boundary-Based Detection

Instead of waiting for real-time data to arrive, the system establishes an anomaly threshold using a data-driven model (such as GMM or ECOD) trained exclusively on "normal" training data. It then feeds its forecasted values into this model. If the forecast falls outside the learned "normal" boundary, an anomaly is flagged for a future timestamp, allowing for early intervention.

Experimental Evaluation

The researchers evaluated their approach on four standard real-world benchmarks with varying ratios of discrete to continuous data: MSL (Mars Science Laboratory), SMAP (Soil Moisture Active Passive), SMD (Server Machine Dataset), and PSM (Pooled Server Metrics).

Key Results

The proposed model consistently outperformed or ranked at the top against ten baseline models (including TimesNet and PatchTST):

  • Top Rankings: On the MSL and SMAP datasets, which are dominated by discrete features, the model achieved the #1 rank in F1-@K and F1-Range metrics.
  • Ablation Studies: Removing the AGC layer led to a significant spike in both Mean Squared Error (for continuous data) and Cross-Entropy loss (for discrete data), confirming its criticality.
  • Proactive Capability: The model successfully identified persistent abnormal situations earlier than reactive methods. In the SMAP dataset, for instance, the model flagged an anomaly at timestamp 29303 for an event that the ground truth only labeled as anomalous at 29304.
Proactive detection results on the SMAP dataset, demonstrating the model's ability to flag anomalies ahead of the ground truth.

Analysis of Forecastability

A key contribution of this work is the mathematical definition of "forecastability" using Fourier transforms and convex hulls. If an anomaly's frequency components fall outside the "convex hull" of the training data, it is considered an unpredictable "black swan" event. For example, in the SMD dataset, roughly 21% of anomalies were found to be "unforecastable" because they represented entirely new patterns not present in the training manifold.

Conclusion

This proactive approach demonstrates that many system failures are predictable if the forecasting model can effectively integrate heterogeneous data types. While some anomalies remain unpredictable due to a lack of precursors, identifying the "forecastable" majority significantly minimizes potential losses. Future work will focus on refining boundary-setting to reduce false positives and better handling events that deviate wildly from historical patterns.

Summary updated

BibTeX
@inproceedings{jeon2025possibility,
  author = {Jinsung Jeon and Jaehyeon Park and Sewon Park and Jeongwhan Choi and Minjung Kim and Noseong Park},
  title = {{Possibility for Proactive Anomaly Detection}},
  booktitle = {ICBINB @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=w63aCqNRFp},
}

Loading related content...

Figure