Time Series Anomaly Pattern Recognition Based on Adaptive k Nearest Neighbor

被引:0
|
作者
Wang L. [1 ,2 ]
Zhou N. [1 ,2 ]
Shen P. [1 ,2 ]
机构
[1] School of Automation and Electrical Engineering, University of Science and Technology Beijing, Beijing
[2] Key Laboratory of Knowledge Automation for Industrial Processes(University of Science and Technology Beijing), Ministry of Education, Beijing
基金
中国国家自然科学基金;
关键词
Adaptive k nearest neighbor; Anomaly pattern; Anomaly subsequences; Relative density; Time series;
D O I
10.7544/issn1000-1239.202111062
中图分类号
学科分类号
摘要
As a typical representative of data, time series is widely used in many research fields. The time series anomaly pattern represents the emergence of a special situation, and is of great significance in many fields. Most of the existing time series anomaly pattern recognition algorithms simply detect anomaly subsequences, ignoring the problem of distinguishing the types of anomaly subsequences, and many parameters need to be set manually. In this paper, an anomaly pattern recognition algorithm based on adaptive k nearest neighbor(APAKN) is proposed. Firstly, the adaptive neighbor value k of each subsequence is determined, and an adaptive distance ratio is introduced to calculate the relative density of the subsequence to determine the anomaly score. Then, an adaptive threshold method based on minimum variance is proposed to determine the anomaly threshold and detect all anomaly subsequences. Finally, the anomaly subsequences are clustered, and the obtained cluster centers are anomaly patterns with different changing trends. The whole algorithm process not only solves the density imbalance problem without setting any parameters, but also simplifies the steps of the traditional density-based anomaly subsequence detection algorithm to achieve a good anomaly pattern recognition effect. Experimental results on the 10 data sets of UCR show that the proposed algorithm performs well in detecting anomaly subsequences and clustering anomaly subsequences without setting parameters. © 2023, Science Press. All right reserved.
引用
收藏
页码:125 / 139
页数:14
相关论文
共 32 条
  • [1] O'Leary B, Reiners J J, Xu Xiaohong, Et al., Identification and influence of spatio-temporal outliers in urban air quality measurements, Science of The Total Environment, 573, pp. 55-65, (2016)
  • [2] Qin Yu, Lou Yuansheng, Hydrological time series anomaly pattern detection based on isolation forest[C], Proc of the 3rd Information Technology, Networking, Electronic and Automation Control Conf (ITNEC), pp. 1706-1710, (2019)
  • [3] Wang Jibin, Wang Ping, Wang Suping, Automated detection of atrial fibrillation in ECG signals based on wavelet packet transform and correlation function of random process, Biomedical Signal Processing and Control, 55, (2020)
  • [4] Liang Haoran, Song Lei, Wang Jianxing, Et al., Robust unsupervised anomaly detection via multi-time scale DCGANs with forgetting mechanism for industrial multivariate time series, Neurocomputing, 423, pp. 444-462, (2021)
  • [5] Wang Xing, Lin J, Patel N, Et al., Exact variable-length anomaly detection algorithm for univariate and multivariate time series[J], Data Mining and Knowledge Discovery, 32, 6, pp. 1806-1844, (2018)
  • [6] Su Weixing, Zhu Yunlong, Liu Fang, Et al., A detection algorithm of outlier and mutation points in time series, Journal of Computer Research and Development, 51, 4, pp. 781-788, (2014)
  • [7] Liu Fang, Qi Jianpeng, Yu Yanwei, Et al., A fast algorithm for density-based Top-n local outlier detection, Acta Automatica Sinica, 45, 9, pp. 1756-1771, (2019)
  • [8] Hyndman R J, Wang E, Laptev N., Large-scale unusual time series detection[C], Proc of the 15th IEEE Int Conf on Data Mining Workshop (ICDMW), pp. 1616-1619, (2015)
  • [9] Senin P, Lin J, Wang Xing, Et al., Time series anomaly discovery with grammar-based compression[C], Proc of the 18th Int Conf on Extending Database Technology(EDBT), pp. 481-492, (2015)
  • [10] Boniol P, Palpanas T., Series2graph: Graph-based subsequence anomaly detection for time series[J], Proceedings of the VLDB Endowment, 13, 12, pp. 1821-1834, (2020)