A Comparative Study on Unsupervised Anomaly Detection for
Time Series: Experiments and Analysis
Yan Zhao
1
, Liwei Deng
2
, Xuanhao Chen
2
, Chenjuan Guo
1
, Bin Yang
1
, Tung Kieu
1
, Feiteng Huang
3
,
Torben Bach Pedersen
1
, Kai Zheng
2
, Christian S. Jensen
1
1
Aalborg University
2
University of Electronic Science and Technology of China
3
Huawei Cloud Database Innovation Lab, China
1
{yanz, cguo, byang, tungkvt, tbp, csj}@cs.aau.dk
2
{deng_liwei, xhc}@std.uestc.edu.cn, zhengkai@uestc.edu.cn
3
huangfeiteng@huawei.com
ABSTRACT
The continued digitization of societal processes translates into a
proliferation of time series data that cover applications such as fraud
detection, intrusion detection, and energy management, where anom-
aly detection is often essential to enable reliability and safety. Many
recent studies target anomaly detection for time series data. Indeed,
area of time series anomaly detection is characterized by diverse
data, methods, and evaluation strategies, and comparisons in ex-
isting studies consider only part of this diversity, which makes it
difficult to select the best method for a particular problem setting. To
address this shortcoming, we introduce taxonomies for data, meth-
ods, and evaluation strategies, provide a comprehensive overview of
unsupervised time series anomaly detection using the taxonomies,
and systematically evaluate and compare state-of-the-art traditional
as well as deep learning techniques. In the empirical study using
nine publicly available datasets, we apply the most commonly-used
performance evaluation metrics to typical methods under a fair im-
plementation standard. Based on the structuring offered by the tax-
onomies, we report on empirical studies and provide guidelines, in
the form of comparative tables, for choosing the methods most suit-
able for particular application settings. Finally, we propose research
directions for this dynamic field.
1 INTRODUCTION
The continued, society-wide digitization and the accompanying de-
ployment of sensing technologies generate increasingly massive
amounts of time series data. A time series is a sequence of ob-
servations recorded in chronological order. In time series, a small
number of observations may deviate significantly from most obser-
vations because they are generated by different processes. Depend-
ing on the setting and application domain, such observations are
called anomalies, abnormalities, deviants, intrusions, outliers, fail-
ures, discordant observations, exceptions, aberrations, peculiarities,
or contaminants [
4
,
28
]. For simplicity, we use the term “anomaly”
throughout the paper.
Anomaly detection for time series has been studied in diverse
settings, such as credit card fraud detection, health care insurance,
intrusion detection in cyber security, and fault detection in safety
critical systems [
2
,
4
,
11
,
13
,
16
,
19
,
20
,
39
,
43
,
49
]. Anomaly de-
tection methods aim to identify observations that differ significantly
from the bulk of observations. Anomaly detection methods may
be supervised or unsupervised. The former require the availability
of labels indicating ground-truth anomaly observations, which is
not the case in many real-world application settings. In contrast,
unsupervised methods, the focus on this paper, do not require the
availability of ground truth anomaly labels for their functioning
and are more generally applicable. In particular, time-consuming
and labor-intensive human labeling is not needed, and it becomes
possible to identify unanticipated anomalies that may have gone
unnoticed during manual labeling.
The wide range of existing unsupervised methods for time series
anomaly detection can be classified as traditional methods [
1
,
25
,
33
,
34
,
37
,
45
,
46
,
48
] or as deep learning methods [
5
,
8
,
17
,
21
,
22
,
27
,
35
,
50
]. However, a key challenge when attempting to leverage this
body of proposals for performing anomaly detection in real-world
application settings is the lack of guidance as to which methods are
appropriate for use in different settings. In the case of supervised
methods, the labels used offer such guidance, but a comprehensive
mapping of unsupervised methods to application settings is needed.
To achieve this, we face two main challenges.
Challenge I: diversity of data, methods, and evaluation strategies.
It is difficult to select a suitable unsupervised method among the
many alternatives for a particular application because this amounts
to a multi-criteria decision-making problem. First, it is necessary to
take into account the complex and diverse nature of the underlying
time series data, such as the dimensionality, the stationarity, and the
temporal correlations among observations. Second, many unsuper-
vised methods are available, and they use different ways of detecting
anomalies, including density-based clustering [
1
,
25
,
46
], similarity
search [
48
], tree-based partitioning [
33
,
34
,
45
], one-class classi-
fication [
37
], reconstruction [
22
,
27
,
35
], and prediction [
17
,
36
].
It is non-trivial to select a suitable method simply based on the
description of the method. Third, unlike in time series prediction
and classification, where the output is a value that straightforwardly
indicates a future value or a class label, the outputs of time series
anomaly detection methods are diverse and include density values,
distance values, reconstruction errors, etc. Different ways of deriving
anomalies from such values exist, which also yields different strate-
gies for evaluating anomalies. No single evaluation strategy exists
that indicates the suitability of a method for an application. Rather,
it occurs commonly that a method achieves good results according
to one evaluation strategy but performs poorly according to another.
For example, precision and recall, which are used commonly for as-
sessing performance, are often conflicting and may be traded for one
another according to application requirements. To illustrate, AIOps
(artificial intelligence for IT operations) applications require high
precision, as operators do not want to be disturbed by frequent false
arXiv:2209.04635v1 [cs.LG] 10 Sep 2022
评论