Open Access iconOpen Access

ARTICLE

Prototype Memory and Contrastive Learning Based Unsupervised Anomaly Detection for Time Series

Xi Li1, Yingjie Chang1, Peng Chen1,*, Ang Bian1, Ning Lu1,2,*

1 School of Computer and Software Engineering, Xihua University, Chengdu, China
2 School of Art and Design, Xihua University, Chengdu, China

* Corresponding Authors: Peng Chen. Email: email; Ning Lu. Email: email

Computers, Materials & Continua 2026, 88(1), 37 https://doi.org/10.32604/cmc.2026.077521

Abstract

Multivariate time series anomaly detection (MTSAD) is a critical task for real-time risk control and fault diagnosis in industrial monitoring, aerospace, and financial domains. Unsupervised MTSAD confronts three core challenges: label scarcity in practical scenarios, diverse anomaly patterns that demand adaptive modeling, and weak feature discriminability between normal and anomalous samples. To address these challenges, we propose a Prototype Memory and Contrastive Learning Based Unsupervised Anomaly Detection for Multivariate Time Series method named PC-UAD. PC-UAD comprises three core modules with hierarchical functionalities: (1) A Temporal PatchEmbedder, which adopts learnable positional encoding for dynamic temporal representation and incorporates channel projection to model adaptive cross-sensor dependencies in multivariate data; (2) A Prototype Memory Encoder, which embeds a prototype attention mechanism to explicitly memorize typical normal patterns, forming a “normal pattern dictionary” that enhances the model’s perception of normal behavioral boundaries; (3) A ContrastFusion module, which leverages contrastive learning to amplify feature distribution discrepancies between normal and anomalous data, strengthening the model’s ability to distinguish subtle anomalies. Experiments on five public multivariate time series datasets demonstrate that our method achieves superior detection accuracy compared to eight state-of-the-art approaches, with the average F1-score and ROC-AUC both ranking first.

Keywords

Multivariate time series; unsupervised anomaly detection; prototype memory; contrastive learning; transformer

Cite This Article

APA Style
Li, X., Chang, Y., Chen, P., Bian, A., Lu, N. (2026). Prototype Memory and Contrastive Learning Based Unsupervised Anomaly Detection for Time Series. Computers, Materials & Continua, 88(1), 37. https://doi.org/10.32604/cmc.2026.077521
Vancouver Style
Li X, Chang Y, Chen P, Bian A, Lu N. Prototype Memory and Contrastive Learning Based Unsupervised Anomaly Detection for Time Series. Comput Mater Contin. 2026;88(1):37. https://doi.org/10.32604/cmc.2026.077521
IEEE Style
X. Li, Y. Chang, P. Chen, A. Bian, and N. Lu, “Prototype Memory and Contrastive Learning Based Unsupervised Anomaly Detection for Time Series,” Comput. Mater. Contin., vol. 88, no. 1, pp. 37, 2026. https://doi.org/10.32604/cmc.2026.077521



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 397

    View

  • 49

    Download

  • 0

    Like

Share Link