MPFormer: Multi-Patch Transformer for Multivariate Time Series Anomaly Detection with Contrastive Learning

Shenhui Ma,Jiahao Nie,Siwei Guan,Zhiwei He,Mingyu Gao
DOI: https://doi.org/10.1109/jiot.2024.3443910
IF: 10.6
2024-01-01
IEEE Internet of Things Journal
Abstract:Recent unsupervised framework-based anomaly detection methods in Internet of Things (IoT) have been proved successful by learning temporal pattern representations from normal time series data. However, such methods have long suffered from weakened normal-abnormal boundary incurred by discrimination-insufficient temporal pattern representations, due to: (1) normal time series often suffer from some unprocessed abnormal noise, interfering with model’s discriminative representations between normal and abnormal points. (2) Previous methods rarely focus on contextual semantic features of time series that are also crucial for constructing discriminative representations. In this paper, we propose MPFormer, a transformer-based multi-patch contrastive learning framework. This novel framework leverages contrastive learning to guide discriminative feature learning. It incorporates a data augmentation strategy to generate positive samples and maximizes the similarity between positive sample pairs, thereby capturing inherent representations of normal temporal patterns and enhancing robust discrimination ability to abnormal noise. To further facilitate discriminative representation modeling, we divide input time series into multiple patches, and design a transformer-based dual attention module to explore contextual semantic features in both inter-patch and intra-patch views. Benefiting from discriminative representations being modeled, MPFormer effectively strengthens the normal-abnormal boundary, thus improving detection accuracy. Experimental results on six widely adopted datasets demonstrate that our proposed MPFormer outperforms existing baseline methods.
What problem does this paper attempt to address?