计算机工程与设计2024,Vol.45Issue(3) :762-768.DOI:10.16208/j.issn1000-7024.2024.03.017

基于改进生成对抗网络的时序数据异常检测

Anomaly detection of time series data based on improved generative adversarial networks

王德文 潘晓飞 赵红博
计算机工程与设计2024,Vol.45Issue(3) :762-768.DOI:10.16208/j.issn1000-7024.2024.03.017

基于改进生成对抗网络的时序数据异常检测

Anomaly detection of time series data based on improved generative adversarial networks

王德文 1潘晓飞 2赵红博2
扫码查看

作者信息

  • 1. 华北电力大学控制与计算机工程学院,河北保定 071003;复杂能源系统智能计算教育部工程研究中心,河北保定 071003
  • 2. 华北电力大学控制与计算机工程学院,河北保定 071003
  • 折叠

摘要

针对时序数据复杂的时间相关性,以及现有异常检测模型存在准确性低、训练不稳定等问题,提出一种结合BiL-STM和WGAN-GP的无监督时序数据异常检测模型.使用BiLSTM作为生成器和判别器的基础网络来捕获时序数据的时间相关性;为保证训练过程的稳定性,使用Wasserstein距离取代原有的衡量方法,在判别器损失中加入梯度惩罚项;将重构损失与判别损失相结合定义异常函数,采用局部自适应阈值方法判别异常,提高异常检测的准确性.为验证模型性能,在涉及多个领域的5类数据集上进行实验,其结果表明,该模型相比于Arima、LSTM等模型具有最高的平均F1分数.

Abstract

Aiming at the complex time correlation of time series data and the problems of poor accuracy and instability of training in existing anomaly detection models,an unsupervised time series data anomaly detection model combining BiLSTM and WGAN-GP was proposed.BiLSTM was used as the basic network of generator and critic to capture the time correlation of time series data.To ensure the stability of the training process,the Wasserstein distance was used to replace the original measurement method,and the gradient penalty was added to the critic loss.The reconstruction loss and the discrimination loss were combined to define the anomaly function,and the local adaptive threshold method was used to distinguish the anomaly to improve the accu-racy of anomaly detection.To verify the performance of this model,experiments were carried out on five kinds of data sets invol-ving various domains.The results show that this model has the highest averaged F1 score compared with that of Arima,LSTM and other methods.

关键词

BiLSTM/WGAN-GP/时间相关性/稳定性/无监督/时序数据/异常检测

Key words

BiLSTM/WGAN-GP/temporal correlation/stability/unsupervised/time series data/anomaly detection

引用本文复制引用

基金项目

河北省自然科学基金面上项目(F2021502013)

中央高校基本科研业务费专项(2020MS120)

出版年

2024
计算机工程与设计
中国航天科工集团二院706所

计算机工程与设计

CSTPCD北大核心
影响因子:0.617
ISSN:1000-7024
参考文献量19
段落导航相关论文