JOURNAL ARTICLE

Temporal-Frequency Masked Autoencoders for Time Series Anomaly Detection

Abstract

In the era of observability, massive amounts of time series data have been collected to monitor the running status of the target system, where anomaly detection serves to identify observations that differ significantly from the remaining ones and is of utmost importance to enable value extraction from such data. While existing reconstruction-based methods have demonstrated favorable detection capabilities in the absence of labeled data, they still encounter issues of training bias on abnormal times and distribution shifts within time series. To address these issues, we propose a simple yet effective Temporal-Frequency Masked AutoEncoder (TFMAE) to detect anomalies in time series through a contrastive criterion. Specifically, TFMAE uses two Transformer-based autoencoders that respectively incorporate a window-based temporal masking strategy and an amplitude-based frequency masking strategy to learn knowledge without abnormal bias and reconstruct anomalies by the extracted normal information. Moreover, the dual autoencoder undergoes training through a contrastive objective function, which minimizes the discrepancy of representations from temporal-frequency masked autoencoders to highlight anomalies, as it helps alleviate the negative impact of distribution shifts. Finally, to prevent over-fitting, TFMAE adopts adversarial training during the training phase. Extensive experiments conducted on seven datasets provide evidence that our model is able to surpass the state-of-the-art in terms of anomaly detection accuracy.

Keywords:
Anomaly detection Series (stratigraphy) Computer science Anomaly (physics) Time series Artificial intelligence Pattern recognition (psychology) Geology Machine learning Physics

Metrics

16
Cited By
10.22
FWCI (Field Weighted Citation Impact)
64
Refs
0.97
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Anomaly Detection Techniques and Applications
Physical Sciences →  Computer Science →  Artificial Intelligence
Time Series Analysis and Forecasting
Physical Sciences →  Computer Science →  Signal Processing
Network Security and Intrusion Detection
Physical Sciences →  Computer Science →  Computer Networks and Communications

Related Documents

JOURNAL ARTICLE

TCAE: Temporal Convolutional Autoencoders for Time Series Anomaly Detection

Jinuk ParkYongju ParkChang-Il Kim

Journal:   2022 Thirteenth International Conference on Ubiquitous and Future Networks (ICUFN) Year: 2022 Pages: 421-426
JOURNAL ARTICLE

Applying quantum autoencoders for time series anomaly detection

Robin FrehnerKurt Stockinger

Journal:   Quantum Machine Intelligence Year: 2025 Vol: 7 (1)
JOURNAL ARTICLE

Applying quantum autoencoders for time series anomaly detection

Frehner, RobinStockinger, Kurt

Journal:   ZHAW Digital Collection Year: 2025
JOURNAL ARTICLE

MLP-Mixer based Masked Autoencoders are Effective, Explainable and Robust for Time Series Anomaly Detection

Qideng TangChaofan DaiYahui WuHaohao Zhou

Journal:   Proceedings of the VLDB Endowment Year: 2024 Vol: 18 (3)Pages: 798-811
© 2026 ScienceGate Book Chapters — All rights reserved.