摘要
针对时间序列的数据不平衡和高度复杂的时间相关性导致的异常检测准确率低的问题,以生成对抗网络(GAN)作为基础提出一种基于再编码的无监督时间序列异常检测模型RTGAN。首先,使用具有周期一致性的多个生成器保证生成样本的多样性,从而学习不同的异常模式;其次,使用堆叠式LSTM-dropout RNN捕获时间相关性;然后,使用二次编码在潜在空间中比较生成样本和真实样本之间的差异,并将此差异作为再编码误差当作异常分数的一部分,从而提高异常检测的准确率;最后,使用新的异常分数对单变量和多变量时间序列数据集进行异常检测。将所提模型与七种基线异常检测模型在单变量和多变量时间序列上进行了比较。实验结果表明,所提模型在所有数据集上均获得了最高的平均F1值(0.815),并且总体性能分别比原始自编码器(AE)模型Dense-AE和最新的基准模型USAD高出36.29%和8.52%。通过不同的信噪比(SNR)检测模型的健壮性,结果表明所提模型一直优于LSTM-VAE、USAD和OmniAnomaly,尤其在SNR为30%情况下,RTGAN的F1值分别比USAD和OmniAnomaly高出13.53%和10.97%。可见所提模型能有效提高异常检测的准确率和鲁棒性。
In order to deal with the problem of low accuracy of anomaly detection caused by data imbalance and highly complex temporal correlation of time series,a re-encoding based unsupervised time series anomaly detection model based on Generative Adversarial Network(GAN),named RTGAN(Re-encoding Time series based on GAN),was proposed.Firstly,multiple generators with cycle consistency were used to ensure the diversity of generated samples and thereby learning different anomaly patterns.Secondly,the stacked Long Short-Term Memory-dropout Recurrent Neural Network(LSTMdropout RNN)was used to capture temporal correlation.Thirdly,the differences between the generated samples and the real samples were compared in the latent space by improved re-encoding.As the re-encoding errors,these differences were served as a part of anomaly score to improve the accuracy of anomaly detection.Finally,the new anomaly score was used to detect anomalies on univariate and multivariate time series datasets.The proposed model was compared with seven baseline anomaly detection models on univariate and multivariate time series.Experimental results show that the proposed model obtains the highest average F1-score(0.815)on all datasets.And the overall performance of the proposed model is 36.29%and 8.52%respectively higher than those of the original AutoEncoder(AE)model Dense-AE(Dense-AutoEncoder)and latest benchmark model USAD(UnSupervised Anomaly Detection on multivariate time series).The robustness of the model was detected by different Signal-to-Noise Ratio(SNR).The results show that the proposed model consistently outperforms LSTM-VAE(Variational Autoencoder based on LSTM),USAD and OmniAnomaly,especially in the case of 30%SNR,the F1-score of RTGAN is 13.53%and 10.97%respectively higher than those of USAD and OmniAnomaly.It can be seen that RTGAN can effectively improve the accuracy and robustness of anomaly detection.
作者
尹春勇
周立文
YIN Chunyong;ZHOU Liwen(School of Computer and Software,Nanjing University of Information Science and Technology,Nanjing Jiangsu 210044,China)
出处
《计算机应用》
CSCD
北大核心
2023年第3期804-811,共8页
journal of Computer Applications
关键词
生成对抗网络
异常检测
时间序列
堆叠式长短期记忆网络
自编码器
再编码
Generative Adversarial Network(GAN)
anomaly detection
time series
stacked Long Short-Term Memory(LSTM)network
AutoEncoder(AE)
re-encoding