Liu Jingwen, Huang Yuchen, Wu Dizhi, Yang Yuchen, Chen Yanru, Chen Liangyin, Zhang Yuanyuan
College of Computer Science, Sichuan University, Chengdu 610065, China.
College of Computer Science, East China Normal University, Shanghai 200062, China.
Sensors (Basel). 2024 Aug 16;24(16):5316. doi: 10.3390/s24165316.
With the rapid development of industry, the risks factories face are increasing. Therefore, the anomaly detection algorithms deployed in factories need to have high accuracy, and they need to be able to promptly discover and locate the specific equipment causing the anomaly to restore the regular operation of the abnormal equipment. However, the neural network models currently deployed in factories cannot effectively capture both temporal features within dimensions and relationship features between dimensions; some algorithms that consider both types of features lack interpretability. Therefore, we propose a high-precision, interpretable anomaly detection algorithm based on variational autoencoder (VAE). We use a multi-scale local weight-sharing convolutional neural network structure to fully extract the temporal features within each dimension of the multi-dimensional time series. Then, we model the features from various aspects through multiple attention heads, extracting the relationship features between dimensions. We map the attention output results to the latent space distribution of the VAE and propose an optimization method to improve the reconstruction performance of the VAE, detecting anomalies through reconstruction errors. Regarding anomaly interpretability, we utilize the VAE probability distribution characteristics, decompose the obtained joint probability density into conditional probabilities on each dimension, and calculate the anomaly score, which provides helpful value for technicians. Experimental results show that our algorithm performed best in terms of F1 score and AUC value. The AUC value for anomaly detection is 0.982, and the F1 score is 0.905, which is 4% higher than the best-performing baseline algorithm, Transformer with a Discriminator for Anomaly Detection (TDAD). It also provides accurate anomaly interpretation capability.
随着工业的快速发展,工厂面临的风险日益增加。因此,部署在工厂中的异常检测算法需要具备高精度,并且需要能够迅速发现并定位导致异常的特定设备,以恢复异常设备的正常运行。然而,目前部署在工厂中的神经网络模型无法有效地捕捉维度内的时间特征和维度间的关系特征;一些考虑这两种特征的算法缺乏可解释性。因此,我们提出了一种基于变分自编码器(VAE)的高精度、可解释的异常检测算法。我们使用多尺度局部权重共享卷积神经网络结构来充分提取多维时间序列各维度内的时间特征。然后,我们通过多个注意力头对各个方面的特征进行建模,提取维度间的关系特征。我们将注意力输出结果映射到VAE的潜在空间分布,并提出一种优化方法来提高VAE的重建性能,通过重建误差检测异常。关于异常可解释性,我们利用VAE概率分布特征,将得到的联合概率密度分解为各维度上的条件概率,并计算异常分数,这为技术人员提供了有用的价值。实验结果表明,我们的算法在F1分数和AUC值方面表现最佳。异常检测的AUC值为0.982,F1分数为0.905,比性能最佳的基线算法——带异常检测判别器的Transformer(TDAD)高出4%。它还提供了准确的异常解释能力。