Contextual and Seasonal LSTMs for Time Series Anomaly Detection

Lingpei Zhang, Qingming Li, Yong Yang, Jiahao Chen, Rui Zeng +2 more
2/10/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Univariate time series (UTS), where each timestamp records a single variable, serve as crucial indicators in web systems and cloud servers. Anomaly detection in UTS plays an essential role in both data mining and system reliability management.

Show full abstract

However, existing reconstruction-based and prediction-based methods struggle to capture certain subtle anomalies, particularly small point anomalies and slowly rising anomalies. To address these challenges, we propose a novel prediction-based framework named Contextual and Seasonal LSTMs (CS-LSTMs). CS-LSTMs are built upon a noise decomposition strategy and jointly leverage contextual dependencies and seasonal patterns, thereby strengthening the detection of subtle anomalies. By integrating both time-domain and frequency-domain representations, CS-LSTMs achieve more accurate modeling of periodic trends and anomaly localization. Extensive evaluations on public benchmark datasets demonstrate that CS-LSTMs consistently outperform state-of-the-art methods, highlighting their effectiveness and practical value in robust time series anomaly detection.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026contextual,
  title  = {Contextual and Seasonal LSTMs for Time Series Anomaly Detection},
  author = {Lingpei Zhang and Qingming Li and Yong Yang and Jiahao Chen and Rui Zeng and Chenyang Lyu and Shouling Ji},
  year   = {2026},
  eprint = {2602.09690},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.09690v1},
  journal = {ICLR 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.09690.svg)](https://codeofpaper.com/paper/2602.09690)

Discussion