{"title":"Trend-aware time series clustering via self-attentive LSTM","authors":"Chongyan Wu, Bin Yu","doi":"10.1016/j.patcog.2025.112455","DOIUrl":null,"url":null,"abstract":"<div><div>Time series clustering aims to partition time series into subsets with similar patterns, uncovering their underlying structures and dynamics. This paper proposes a novel clustering method that integrates polynomial curve fitting, an enhanced self-attention mechanism, and a long short-term memory (LSTM) network. First, the Hodrick-Prescott (HP) filter is applied to denoise the raw time series. Then, polynomial curve fitting (PCF) is employed to extract multi-order derivative features at each time point, capturing local trend information and constructing a high-dimensional feature space. An enhanced self-attention LSTM model is designed to encode both raw and trend-based features into a hidden state sequence, enabling the model to capture key patterns and long-range dependencies. Finally, a distance metric based on the hidden states is defined and incorporated into a hierarchical clustering (HC) algorithm. Experiments on several public univariate datasets with long sequences demonstrate that the proposed method outperforms conventional approaches, offering a robust solution for modeling and interpreting complex time series.</div></div>","PeriodicalId":49713,"journal":{"name":"Pattern Recognition","volume":"172 ","pages":"Article 112455"},"PeriodicalIF":7.6000,"publicationDate":"2025-09-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Pattern Recognition","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0031320325011185","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0
Abstract
Time series clustering aims to partition time series into subsets with similar patterns, uncovering their underlying structures and dynamics. This paper proposes a novel clustering method that integrates polynomial curve fitting, an enhanced self-attention mechanism, and a long short-term memory (LSTM) network. First, the Hodrick-Prescott (HP) filter is applied to denoise the raw time series. Then, polynomial curve fitting (PCF) is employed to extract multi-order derivative features at each time point, capturing local trend information and constructing a high-dimensional feature space. An enhanced self-attention LSTM model is designed to encode both raw and trend-based features into a hidden state sequence, enabling the model to capture key patterns and long-range dependencies. Finally, a distance metric based on the hidden states is defined and incorporated into a hierarchical clustering (HC) algorithm. Experiments on several public univariate datasets with long sequences demonstrate that the proposed method outperforms conventional approaches, offering a robust solution for modeling and interpreting complex time series.
期刊介绍:
The field of Pattern Recognition is both mature and rapidly evolving, playing a crucial role in various related fields such as computer vision, image processing, text analysis, and neural networks. It closely intersects with machine learning and is being applied in emerging areas like biometrics, bioinformatics, multimedia data analysis, and data science. The journal Pattern Recognition, established half a century ago during the early days of computer science, has since grown significantly in scope and influence.