Forecast-based Multi-aspect Framework for Multivariate Time-series Anomaly Detection

Lan Wang, Yusan Lin, Yuhang Wu, Huiyuan Chen, Fei Wang, Hao Yang

Abstract

Multivariate time-series anomaly detection is essential for maintaining the reliability of complex systems, from server clusters to space exploration hardware. However, anomalies are heterogeneous, manifesting as shifts in correlation, frequency, or value. We introduce FMUAD (Forecast-based Multi-aspect Unsupervised Anomaly Detection), a modular framework that decomposes the detection task into three specialized sub-problems: inter-series correlations, intra-series temporal patterns, and multi-scale spatial changes. By training these modules jointly with a novel compactness loss function, FMUAD achieves a 17.8% average F1-score improvement over existing state-of-the-art forecast-based models.

Problem Statement

In multivariate time-series data, anomalies are not uniform. They typically fall into three categories:

  1. Correlation changes: Deviations in the expected relationship between two or more metrics.
  2. Temporal changes: Abrupt shifts in a signal’s frequency or periodic trend.
  3. Spatial/Value changes: Sudden spikes or subtle, long-term drifts in magnitude.

Standard forecast-based models often rely on a single architecture to capture all these nuances, which frequently leads to inconsistent performance across different datasets. Furthermore, the scarcity of labeled anomaly data necessitates unsupervised approaches that can effectively learn a robust representation of "normal" behavior.

Common types of anomalies in multivariate time series data.

Methodology

The FMUAD framework addresses these challenges by employing three independent, specialized detector modules trained in a joint unsupervised manner:

  • Inter-series Correlation Detector ($D^c$): This module computes a "signature matrix" based on the Cosine similarity between feature pairs. A ConvLSTM with Attention is then used to forecast the evolution of these relationships.
  • Intra-series Temporal Pattern Detector ($D^t$): To identify frequency-based anomalies, this module applies a Discrete Fourier Transform (DFT) to the input window. Similar to the correlation module, it utilizes a ConvLSTM and Attention mechanism to predict future frequency distributions.
  • Multi-scale Spatial Pattern Detector ($D^s$): This module uses a Dilated Convolutional Neural Network (Dilated CNN) to capture both high-frequency spikes and low-frequency drifts. Dilated kernels allow the model to analyze data at multiple granularities simultaneously.
Detailed architecture of the FMUAD framework showing the three specialized detector modules.

Novel Compactness Loss

Rather than relying solely on Mean Squared Error (MSE), FMUAD introduces a compactness loss ($l_2$) that measures the variance of forecasting errors within a training batch. The final loss function is defined as the product of the error and its variance: $L = (\epsilon + l_2) \cdot l_1$. This approach forces the model to learn a "tighter" representation of normalcy, significantly increasing sensitivity to outliers during inference.

Experimental Results

The framework was evaluated on two benchmark datasets: the Server Machine Dataset (SMD) and the Mars Science Laboratory (MSL) telemetry. FMUAD was compared against strong baselines, including LSTM-NDT, DAGMM, and LSTM-VAE.

  • Performance: FMUAD achieved an average F1-score of 0.8610, outperforming the best baseline (LSTM-VAE, 0.7311) by a wide margin.
  • Stability: While baseline models showed high variance in performance across different datasets, FMUAD remained stable, demonstrating the robustness of its multi-aspect approach.
  • Ablation Study: Results indicated that the combination of all three modules provided a "safety net," where individual modules compensated for each other's specific detection weaknesses.

Discussion and Conclusion

The primary innovation of FMUAD is its "divide and conquer" strategy. By explicitly modeling different "signature traits" of time-series data, the framework provides both superior performance and improved explainability; operators can identify which specific module (correlation, frequency, or value) triggered an alert.

Future work may explore "cross-interactions" between the modules during training to further refine the representations. While the current architecture involves higher computational overhead due to the parallel neural networks, the significant gains in detection accuracy make it a compelling choice for high-stakes monitoring applications.

Summary updated

BibTeX
@inproceedings{wang2021forecast,
  author = {Lan Wang and Yusan Lin and Yuhang Wu and Huiyuan Chen and Fei Wang and Hao Yang},
  title = {{Forecast-based Multi-aspect Framework for Multivariate Time-series Anomaly Detection}},
  booktitle = {IEEE BigData},
  year = {2021},
  doi = {10.1109/bigdata52589.2021.9671776},
}
Figure