Scale-Robust and Global-Aware Representation Learning for Multivariate Time Series Anomaly Detection
Authors: Gyuwon Lee, Saejoon Park, Won-Seok Hwang, Bogoan Kim, Yunyong Ko
Organizations: Chung-Ang University (CAU), Seoul, Republic of Korea · The Affiliated Institute of ETRI, Daejeon, Republic of Korea · Chungbuk National University (CBNU), Cheongju, Republic of Korea
Multivariate time series anomaly detection (MTSAD) is an essential task for identifying abnormal system behaviors and supporting reliable operations across diverse real-world applications. Despite substantial advances in MTSAD, two key challenges in representation learning remain underexplored: (C1) how to learn scale-robust temporal representations that capture anomalies across different temporal scales and (C2) how to learn global-aware relational representations that capture inter-series dependencies by incorporating series-level global characteristics beyond local windows. To address these challenges, we propose STAGER, a novel method that jointly learns two complementary representations: scale-robust temporal and global-aware relational representations. Specifically, STAGER employs (1) a scale-robust temporal encoder that constructs a multi-scale temporal directed acyclic graph (DAG) to learn scale-robust temporal representations and (2) a global-aware relational encoder that incorporates learnable series-level global embeddings into the temporal representations and models inter-series relationships through graph neural networks. Two complementary auxiliary objectives further enhance the distinctiveness of the global embeddings. Extensive experiments on three real-world benchmark datasets demonstrate that STAGER achieves the best average rank among ten evaluated MTSAD methods across three evaluation metrics. Ablation and sensitivity analyses validate the effectiveness of the proposed components and auxiliary objectives, while efficiency evaluations demonstrate that STAGER achieves a favorable trade-off between detection performance and inference time compared with existing methods.
Figures & tables
Figure 1: Illustrative examples of two key challenges in MTSAD: (a) scale-robust temporal representations, where short and prolonged anomalies exhibit different visibility across temporal scales, and (b) global-aware relational representations, where two time series exhibit distinct local patterns despite sharing similar long-term periodic behaviors.
Table 1: Comparison of STAGER with existing methods in terms of the two key challenges (C1) and (C2).
Figure 2: Overall architecture of STAGER , consisting of (1) a scale-robust temporal encoder and (2) a global-aware relational encoder. STAGER minimizes a forecasting loss and two auxiliary losses for series classification and distance-based regularization.
Method
Time Complexity
STAGER
O(L2Nd+LN2d2)
USAD
O(L2N2+LNd)
TSMixer
O(L2N+LNd)
Anomaly Transformer
O(L2d+LNd+Ld2)
FuSAGNet
O(L2N2+LN2d+N2d2)
MtsCID
O(L2d+LN2+Ld2)
Table 2: Per-window complexity of STAGER and existing methods.
Dataset
#Series
#Train
#Test
Anomaly
SWaT
51
47,340
44,993
12.14%
WADI
127
76,299
17,281
5.77%
HAI
86
100,440
36,120
3.32%
Table 3: Statistics of the datasets used in our experiments.
Hyperparameter
SWaT
WADI
HAI
Window length L
120
360
15
Embedding dimension d
16
16
16
Batch size
32
32
32
Learning rate
10−4
10−4
10−4
Training epochs (max.)
50
50
50
fDAGM -layers
2
2
2
Table 4: Dataset-specific hyperparameter configurations of STAGER .
Method
SWaT
WADI
HAI
STAGER
120
360
15
USAD
12
10
15
TSMixer
60
300
15
AnomalyTransformer
100
60
15
FuSAGNet
16
60
16
MtsCID
100
30
15
Table 5: Input window sizes used by STAGER and the baseline methods.
Dataset
Metric
KNN
OCSVM
DeepSVDD
USAD
TSMixer
AnomalyT
FuSAGNet
MtsCID
MSHTrans
STAGER
SWaT
P
97.89 ± 0.00
97.88 ± 0.00
97.64 ± 0.03
98.12 ± 0.08
97.89 ± 0.03
97.89 ± 0.08
98.17 ± 0.05
34.36 ± 0.75
98.09 ± 0.02
98.24 ± 0.04
R
65.26 ± 0.00
64.96 ± 0.00
58.29 ± 0.16
71.08 ± 1.51
65.34 ± 1.01
65.51 ± 2.63
75.64 ± 1.99
0.73 ± 0.02
71.54 ± 0.84
78.55 ± 1.61
F1
78.31 ± 0.00
78.09 ± 0.00
73.00 ± 0.13
82.43 ± 1.00
78.36 ± 0.74
78.47 ± 1.92
85.44 ± 1.29
1.43 ± 0.05
82.73 ± 0.57
87.29 ± 1.01
PA-P
98.14 ± 0.00
98.14 ± 0.00
97.95 ± 0.02
98.37 ± 0.06
98.47 ± 0.01
98.22 ± 0.08
98.44 ± 0.02
98.14 ± 0.03
98.38 ± 0.03
98.47 ± 0.03
PA-R
74.35 ± 0.00
74.35 ± 0.00
67.06 ± 0.42
81.94 ± 2.87
90.85 ± 0.57
78.12 ± 3.52
88.95 ± 1.12
73.75 ± 0.68
84.58 ± 1.79
90.50 ± 2.06
PA-F1
84.61 ± 0.00
84.61 ± 0.00
79.61 ± 0.29
89.38 ± 1.70
94.51 ± 0.31
86.99 ± 2.22
93.45 ± 0.63
84.21 ± 0.46
90.95 ± 1.05
94.31 ± 1.13
Table 6: Anomaly detection performance on SWaT, WADI, and HAI datasets. STAGER achieves the best average ranking across F1, PA-F1, and eTaF1 on the three datasets. The bold and underline indicate the best and second-best results, respectively.
Figure 3: Qualitative comparison of anomaly detection results on the SWaT, WADI, and HAI test sets.
Method
SWaT
WADI
HAI
F1
PA-F1
eTaF1
F1
PA-F1
eTaF1
F1
PA-F1
eTaF1
STAGER (FiLM+GAT)
87.29 ± 1.01
94.31 ± 1.13
71.45 ± 3.47
72.02 ± 4.28
93.07 ± 4.58
79.44 ± 2.37
54.51 ± 3.41
87.54 ± 2.56
64.15 ± 2.04
(1)
STAGER w/o MS
86.49 ± 0.98
93.65 ± 1.02
68.64 ± 3.28
59.68 ± 4.09
91.44 ± 4.67
75.29 ± 2.07
41.32 ± 7.07
81.59 ± 1.92
52.91 ± 2.31
STAGER w/o DAG
86.26 ± 2.93
93.11 ± 3.80
64.88 ± 11.08
56.87 ± 3.20
84.01 ± 8.47
70.94 ± 3.09
53.51 ± 7.92
85.48 ± 2.54
62.99 ± 2.58
(2)
STAGER w/o Global
81.53 ± 0.65
88.50 ± 1.01
55.10 ± 1.62
35.23 ± 3.41
42.63 ± 7.10
45.74 ± 4.85
52.87 ± 6.07
84.84 ± 3.27
60.61 ± 2.97
STAGER (MLP_Global)
86.12 ± 2.32
92.85 ± 2.89
66.44 ± 9.35
60.16 ± 3.05
90.77 ± 4.30
73.85 ± 3.47
51.29 ± 6.64
84.97 ± 5.94
60.32 ± 4.98
Table 7: Ablation study of STAGER on SWaT, WADI, and HAI. We evaluate the contributions of (1) the scale-robust temporal DAG encoder and (2) the global-aware relational encoder through component removal and alternative implementations. The bold and underline indicate the full model and the best-performing ablation variant within each encoder group, respectively.
Method
Aux.
SWaT
WADI
HAI
Cls.
Reg.
F1
PA-F1
eTaF1
F1
PA-F1
eTaF1
F1
PA-F1
eTaF1
STAGER
✓
✓
87.29 ± 1.01
94.31 ± 1.13
71.45 ± 3.47
72.02 ± 4.28
93.07 ± 4.58
79.44 ± 2.37
54.51 ± 3.41
87.54 ± 2.56
64.15 ± 2.04
STAGER w/o Cls.
-
✓
86.29 ± 2.53
94.21 ± 2.31
67.71 ± 10.84
64.51 ± 6.65
89.86 ± 8.36
76.06 ± 3.14
46.85 ± 7.06
86.74 ± 0.99
63.14 ± 1.84
STAGER w/o Reg.
✓
-
85.84 ± 2.82
92.86 ± 2.68
61.94 ± 10.41
58.52 ± 0.75
89.26 ± 2.77
72.35 ± 1.68
51.27 ± 5.98
84.76 ± 5.34
61.49 ± 6.47
STAGER w/o Both
-
-
86.36 ± 1.69
93.16 ± 1.72
65.60 ± 7.30
58.80 ± 4.98
92.99 ± 1.88
73.64 ± 2.70
52.05 ± 3.43
86.20 ± 3.26
62.99 ± 2.09
Table 8: Effectiveness of the proposed auxiliary objectives. Jointly optimizing both objectives achieves the best scores across all evaluation metrics on all three datasets. The bold and underline indicate the best and second-best results, respectively.
Figure 4: Sensitivity analysis of STAGER to the auxiliary loss weights: regularization α (top) and classification β (bottom).
Figure 5: Trade-off between detection performance and inference time of different MTSAD methods on the SWaT, WADI, and HAI datasets. Methods closer to the upper-left exhibit a better balance between detection performance and inference time.
Time-Series Anomaly Detection identifies unusual patterns or events in sequential data, from sensor readings and network traffic to health and industrial telemetry.
the College of Computer Science and Technology, Harbin Engineering University, Harbin 150001, China · the Department of Computer Science, University of Exeter, Exeter, U.K. · the Department of Computer Science, City University of Hong Kong, Hong Kong, China +2