RoCA: Robust Contrastive One-Class Time Series Anomaly Detection With Contaminated Data
- 1 November 2026
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Neural Networks and Learning Systems
- Vol. 37 (11) , 6207-6221
Abstract
The increasing volume of time series signals and the scarcity of labels make time series anomaly detection (TSAD) a natural fit for self-supervised deep learning. However, existing normality-based approaches face two key limitations: relying on a single assumption often fails to capture the whole normality, leading to biased representations; and they typically presume clean training data, which is unrealistic in practice and undermines model robustness. In this article, we propose RoCA, a unified and robust anomaly detection (AD) framework that simultaneously addresses assumption incompleteness and data contamination. The key insight is that normal samples tend to satisfy multiple normality assumptions, whereas anomalous or contaminated samples should violate at least one. RoCA employs a composite loss function consisting of a multinormality alignment term, a dynamic anomaly-aware term, and a variance term to maintain training stability. This design enables RoCA to dynamically discover and push away latent anomalies during training to refine the boundary, eliminating the dependence on precisely labeled, high-purity training data. Extensive experiments on both univariate and multivariate time series datasets demonstrate that RoCA consistently outperforms state-of-the-art methods, achieving up to 7.3% improvement under real-world contamination. Our theoretical analysis further reveals the intrinsic synergy between contrastive learning (CL) and one-class classification (OC) under the RoCA framework. The source code is available at the anonymous repository https://github.com/ruiking04/RoCA.Keywords
All Related Versions
Funding Information
- National Key Research and Development Program of China (2024YFB4506200)
This publication has 40 references indexed in Scilit:
- SoftPatch+: Fully unsupervised anomaly classification and segmentationPattern Recognition, 2024
- Diffusion-based normality pre-training for weakly supervised video anomaly detectionExpert Systems with Applications, 2024
- Exploiting negative correlation for unsupervised anomaly detection in contaminated time seriesExpert Systems with Applications, 2024
- Inter-Realization Channels: Unsupervised Anomaly Detection Beyond One-Class Classification2023
- Deep Autoencoding One-Class time Series Anomaly Detection2023
- Exploring Simple Siamese Representation Learning2021
- CutPaste: Self-Supervised Learning for Anomaly Detection and Localization2021
- Robust Anomaly Detection in Images Using Adversarial Autoencoders2020
- Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery2017
- SWaT: a water treatment testbed for research and training on ICS security2016