OneRoundSTL: In-Database Seasonal-Trend Decomposition
Zijie Chen, Shaoxu Song, Jianmin Wang
Abstract
Seasonal-trend decomposition has been widely used in time series analysis, e.g., time series forecasting and anomaly detection. Existing seasonal-trend decomposition methods, such as STL and its variations, assume that the time series is complete and sorted by timestamp. However, popular time series databases usually adopt LSM-Tree based storage, which stores data in pages not necessarily in time order. Moreover, time series stored in databases often suffer from missing values due to sensor failures, further compromising their integrity. A straightforward idea is to first merge and sort the data of different pages, and then decompose them. It obviously leads to heavy online computation, repeated calculations for multiple queries, and still cannot deal with the remaining missing data. In this paper, we propose OneRoundSTL, which pre-calculates offline some results in each individual page and concatenates the pre-calculated results online at query time to obtain the decomposition outcome. OneRoundSTL has been deployed and included as a function in an open source time series database, Apache IoTDB. Experiments on synthetic and real-world datasets in the system show that our OneRoundSTL exhibits high efficiency, far exceeding the state-of-the-art methods, while keeping decomposition effect.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on10
- Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series ForecastingHaixu Wu, Jiehui Xu, Jianmin Wang, Mingsheng LongNeurIPS 2021 · 5,824 citations
- FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series ForecastingTian Zhou, Ziqing Ma, Qingsong Wen, Xue Wang et al.ICML 2022 · 2,912 citations
- RobustPeriod: Robust Time-Frequency Mining for Multiple Periodicity DetectionQingsong Wen, Kai He, Liang Sun, Yingying Zhang et al.SIGMOD 2021 · 101 citations
- Fast RobustSTL: Efficient and Robust Seasonal-Trend Decomposition for Time Series with Complex PatternsQingsong Wen, Zhe Zhang, Yan Li, Liang SunKDD 2020 · 91 citations
- Robust and Explainable Autoencoders for Unsupervised Time Series Outlier DetectionTung Kieu, Bin Yang, Chenjuan Guo, Christian S. Jensen et al.ICDE 2022 · 60 citations
Related papers
- Learning Autoregressive Model in LSM-Tree based StoreYunxiang Su, Wenxuan Ma, Shaoxu SongKDD 2023 · 4 citations
- OneShotSTL: One-Shot Seasonal-Trend Decomposition For Online Time Series Anomaly Detection And ForecastingXiao He, Ye Li, Jian Tan, Bin Wu et al.VLDB 2023 · 40 citations
- Distance-based Outlier Query Optimization in Apache IoTDBYunxiang Su, Shaoxu Song, Xiangdong Huang, Chen Wang et al.VLDB 2024 · 2 citations
- Cleaning Time Series under Seasonal and Trend ConstraintsZijie Chen, Aoqian Zhang, Shaoxu SongSIGMOD 2026
- In-Database Time Series ClusteringYunxiang Su, Kenny Ye Liang, Shaoxu SongSIGMOD 2025 · 3 citations
