Accelerating k-Shape Time Series Clustering Algorithm Using GPU
- 24 July 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Parallel and Distributed Systems
- Vol. 34 (10) , 2718-2734
Abstract
In the data space, time-series analysis has emerged in many fields, including biology, healthcare, and numerous large-scale scientific facilities like astronomy, climate science, particle physics, and genomics. Clustering is one of the most critical methods in time-series analysis. So far, the state-of-art time series clustering algorithm k-Shape has been widely used not only because of its high accuracy, but also because of its relatively low computation cost. However, due to the high heterogeneity of time series data, it can not be simply regarded as a high-dimensional vector. Two time series often need some alignment method in similarity comparison. The alignment between sequences is often a time-consuming process. For example, when using dynamic time warping as a sequence alignment algorithm and if the length of time series is greater than 1,000, a single iteration in the clustering process may take hundreds to tens of thousands of seconds, while the entire clustering cycle often requires dozens of iterations. In this article, we propose a set of novel parallel strategies suitable for GPU's computation model, called Times-C, which is an abbreviation for Time Series Clustering. We define three stages in the analysis process: aggregation, centroid, and class assignment. Times-C includes efficient parallel algorithms and corresponding implementations for these three stages. Overall, the experimental results show that the Times-C algorithm exhibits a performance improvement of one to two orders of magnitude compared to the multi-core CPU version of k-Shape. Furthermore, compared to the GPU version of the k-Shape algorithm, the Times-C algorithm achieves a maximum acceleration of up to 345 times.Keywords
Funding Information
- National Key R&D Program of China (2022YFB4500403, 2021YFA1000103, 2021YFA1000100)
- National Natural Science Foundation of China (61972416, 62202454, 62272479, 62202498)
- Taishan Scholarship (tsqn201812029)
- Foundation of Science and Technology Development of Jinan (201907116)
- Natural Science Foundation of Shandong Province (ZR2021QF023)
- Fundamental Research Funds for the Central Universities (21CX06018A)
- Spanish project (PID2019-106960GB-I00)
- Juan de la Cierva (IJC2018-038539-I)
- China National Postdoctoral Program for Innovative Talents (BX2021320)
- Chinese Academy of Engineering Strategic Research and Consulting Program (2023-XBZD-16)
This publication has 35 references indexed in Scilit:
- Time-series data miningACM Computing Surveys, 2012
- GPU Accelerated Chemical Similarity Calculation for Compound Library ComparisonJournal of Chemical Information and Modeling, 2011
- GPU computing in medical physics: A reviewMedical Physics, 2011
- A global averaging method for dynamic time warping, with applications to clusteringPattern Recognition, 2011
- Stackless KD‐Tree Traversal for High Performance GPU Ray TracingComputer Graphics Forum, 2007
- Clustering of time series data—a surveyPattern Recognition, 2005
- Extraction of Primitive Motion and Discovery of Association Rules from Human Motion Data2002
- Scans as primitive parallel operationsIEEE Transactions on Computers, 1989
- Objective Criteria for the Evaluation of Clustering MethodsJournal of the American Statistical Association, 1971
- An Algorithm for the Machine Calculation of Complex Fourier SeriesMathematics of Computation, 1965