TY - JOUR
T1 - TDSRL: time series dual self-supervised representation learning for anomaly detection from different perspectives
AU - Dai, Yongsheng
AU - Spence, Ivor
AU - Rafferty, Karen
AU - Quinn, Barry
AU - Huang, Ji
AU - Wang, Hui
PY - 2025/6/23
Y1 - 2025/6/23
N2 - Anomaly detection in time series is crucial for applications ranging from finance to industrial monitoring. Effective models need to capture both the inherent characteristics of time series data and the distinct patterns of anomalies. While traditional forecasting-based and reconstruction-based approaches have been successful, they tend to struggle with complex and evolving anomalies. For instance, stock market data exhibits ever-changing fluctuation patterns that defy straightforward modelling. In this paper, we propose a novel method called TDSRL (Time Series Dual Self-Supervised Representation Learning) for robust anomaly detection. TDSRL attach great importance to the frequency domain information throughout the anomaly modelling process. We introduce a data degradation method that simulates real-world anomalies more naturally by operating in both time and frequency domains. Additionally, the key innovations also lie in dual self-supervised pretext tasks: one task characterises anomalies in relation to the entire time series, and the other focuses on local anomaly boundaries using contrastive learning. This significantly improves the network’s discrimination between anomaly and adjacent normal intervals. Consequently, TDSRL is expected to achieve a faster and stronger response to the anomalies, with the potential for early detection. Experimental results show that TDSRL outperforms state-of-the-art methods, making it a promising new direction for time series anomaly detection. The code of our paper is available here: https://github.com/ys-Dai/TDSRL/tree/main.
AB - Anomaly detection in time series is crucial for applications ranging from finance to industrial monitoring. Effective models need to capture both the inherent characteristics of time series data and the distinct patterns of anomalies. While traditional forecasting-based and reconstruction-based approaches have been successful, they tend to struggle with complex and evolving anomalies. For instance, stock market data exhibits ever-changing fluctuation patterns that defy straightforward modelling. In this paper, we propose a novel method called TDSRL (Time Series Dual Self-Supervised Representation Learning) for robust anomaly detection. TDSRL attach great importance to the frequency domain information throughout the anomaly modelling process. We introduce a data degradation method that simulates real-world anomalies more naturally by operating in both time and frequency domains. Additionally, the key innovations also lie in dual self-supervised pretext tasks: one task characterises anomalies in relation to the entire time series, and the other focuses on local anomaly boundaries using contrastive learning. This significantly improves the network’s discrimination between anomaly and adjacent normal intervals. Consequently, TDSRL is expected to achieve a faster and stronger response to the anomalies, with the potential for early detection. Experimental results show that TDSRL outperforms state-of-the-art methods, making it a promising new direction for time series anomaly detection. The code of our paper is available here: https://github.com/ys-Dai/TDSRL/tree/main.
U2 - 10.1109/JIOT.2025.3577931
DO - 10.1109/JIOT.2025.3577931
M3 - Article
SN - 2327-4662
JO - IEEE Internet of Things Journal
JF - IEEE Internet of Things Journal
ER -