1673-159X

CN 51-1686/N

基于原型记忆与对比学习的物联网时序异常检测

TPC-AD: IoT Time Series Anomaly Detection via Prototype Memory and Contrastive Learning

  • 摘要: 时间序列数据在物联网领域具有广泛应用,时序异常检测作为时序数据分析的关键任务,对实现智能运维、故障预警等具有重要意义。基于深度神经网络的重建方法在物联网场景下仍面临诸多挑战:时间序列输入窗口大小固定且受限,阻碍了对全局上下文信息的充分捕获;模型对正常时序特征的表征和记忆能力不足,导致异常检测能力受限;仅依赖数据重建的方式,难以有效提升模型的检测能力。为了解决这些问题,提出一种基于时序分块嵌入(Temporal PatchEmbedder)、原型记忆(Prototype Memory)增强与对比学习(ContrastFusion)的异常检测方法(TPC-AD方法)。该方法通过时序分块嵌入增强模型对长上下文信息的捕获能力;利用原型记忆机制显式学习与存储正常时序模式,提升模型对正常行为的建模与记忆能力;结合对比学习在特征空间中主动分离正常与异常模式,提升了检测结果。在4个公开物联网时序数据集上的实验结果表明,与其他方法相比,TPC-AD方法取得了更优的检测精度,其中F1分数比其他模型平均提高了2.93%,AUC分数平均提高了3.19%。

     

    Abstract:
    Time series data is widely used in the Internet of Things (IoT) domain, such as equipment condition monitoring, environmental sensing, and industrial sensor data analysis. As a key task in time series analysis, time series anomaly detection is of great significance for achieving intelligent operation and maintenance, fault early warning, etc. Reconstruction-based methods using deep neural networks are one of the
    current mainstream approaches. However, they still face several challenges in IoT scenarios: firstly, the fixed and limited input window size hinders the adequate capture of global contextual information; secondly, the model's insufficient ability to represent and memorize normal temporal features limits its anomaly detection capability; thirdly, relying solely on data reconstruction struggles to effectively improve the model's detection performance. To address these issues, we propose TPC-AD, an anomaly detection method based on Temporal Patch Embedding, enhanced Prototype Memory, and Contrastive Fusion. This approach enhances the model's ability to capture long-range dependencies through temporal patch embedding; explicitly learns and stores normal temporal patterns via a prototype memory mechanism, improving the modeling and memorization of normal behaviors; and actively separates normal and abnormal patterns in the feature space by incorporating contrastive learning, thereby significantly boosting detection performance. Experiments on four public IoT time series datasets demonstrate that our method achieves superior detection accuracy compared to state-of-the-art methods, with an average improvement of 2.93% in F1-score and 3.19% in AUC.

     

/

返回文章
返回