TL;DR
This paper introduces a "proactive" anomaly detection system for time-series data that aims to identify anomalies before they occur, unlike traditional reactive methods. It achieves this by combining a specialized time-series forecasting model with a data-driven anomaly detection model to set an anomaly threshold and then flag predicted values that fall outside this threshold.
What Problem Does This Paper Address?
In many real-world applications, detecting anomalies in time-series data is crucial for preventing damage and failures. However, existing anomaly detection methods are largely reactive. They identify anomalies by comparing a model's prediction to the actual observed value after an event has happened. This means they can't prevent issues in advance. The challenge is to move from simply detecting anomalies to proactively identifying potential problems by recognizing subtle precursors that often precede an anomaly.
Methods
The core of the proposed approach is a two-part system:
- Time-Series Forecasting Model Specialized for Anomaly Detection: This model is designed to handle multivariate time-series data that can contain both continuous and discrete features. It extracts these features separately, decomposes continuous values into trend and seasonality, and uses a graph structure (Adaptive Graph Convolution Layer) to learn dependencies between different features. This allows it to make predictions that are more robust and accurate, especially in the presence of mixed data types.
- Data-Driven Anomaly Detection Model: This component is used to establish an anomaly threshold. It's trained on the "normal" behavior of the training data. The system then uses the predictions from the forecasting model as input to this data-driven model. If the score generated by the data-driven model for a predicted value falls below the established threshold, an anomaly is flagged.
The paper also introduces a method to analyze whether anomalies are "forecastable" by examining their representation in the frequency domain using Fourier bases and constructing a convex hull of training data coefficients.
Datasets
The authors evaluated their approach on four real-world datasets:
- MSL (Mars Science Laboratory rover): Contains 55 features (54 discrete, 1 continuous).
- SMAP (Soil Moisture Active Passive satellite): Contains 25 features (24 discrete, 1 continuous).
- SMD (Server Machine Dataset): Contains 38 features (2 discrete, 36 continuous).
- PSM (Pooled Server Metrics): Contains 25 features (all continuous).
These datasets are standard benchmarks for time-series anomaly detection.
Key Insights and Ideas
- Proactive vs. Reactive: The fundamental shift from reactive to proactive anomaly detection is a significant advancement, enabling early intervention and damage mitigation.
- Handling Mixed Data Types: The model's ability to effectively process both continuous and discrete features simultaneously is crucial for real-world multivariate time-series data.
- Graph Structure for Feature Dependencies: Utilizing an adaptive graph convolution layer to capture inter-feature dependencies is key to improving the accuracy of anomaly detection, especially when features are correlated.
- Forecastable Anomalies: The analysis of "forecastable" anomalies using Fourier transforms and convex hulls provides a framework for understanding the predictability of anomalies and the limitations of forecasting-based methods.
Key Results
The proposed proactive anomaly detection system achieved state-of-the-art or highly competitive results across the evaluated datasets and metrics (F1-@K, F1-Composite, F1-Range).
- On the MSL and SMAP datasets, which have a higher ratio of discrete values, the model achieved the best performance.
- The model demonstrated low variability in its predictions, indicating robust performance.
- In visualizations, the model's predicted anomaly scores were shown to be more closely aligned with the ground truth compared to other models like TimesNet, even if the raw forecasting MSE was slightly higher.
- Ablation studies confirmed the importance of both the graph structure and the separate training of continuous and discrete features for achieving optimal performance.
Limitations and Future Work
- Forecastable Anomalies: The paper acknowledges that their proactive approach is most effective for anomalies with discernible precursors. Anomalies that occur without any preceding signals (unpredictable anomalies) remain a challenge.
- Future Work: The authors suggest that further research could focus on improving the detection of unpredictable anomalies. They also mention the possibility of extending their work to other domains beyond anomaly detection.
Summary updated