Please wait a minute...
浙江大学学报(工学版)  2027, Vol. 61 Issue (1): 177-188, 231    DOI: 10.3785/j.issn.1008-973X.2027.01.017
计算机技术     
特征导向的u-shapelets聚类
张弛(),陈梅*(),魏礼磊
兰州交通大学 电子与信息工程学院,甘肃 兰州 730070
Feature oriented u-shapelets clustering
Chi Zhang(),Mei Chen*(),Lilei Wei
School of Electronic and Information Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China
 全文: PDF(2634 KB)   HTML
摘要:

针对传统时间序列聚类算法难以有效挖掘出能代表时间序列结构特征的关键子序列等问题,提出特征导向的u-shapelets聚类算法(Foush). Foush通过符号化近似和随机掩蔽将原始高维时间序列转化为低维离散符号表示,提高u-shapelets候选集的质量,同时保留原始时间序列的关键特征. Foush定义基于无穷范数的相似度(Coin),通过时间序列局部自协方差矩阵的前k个特征向量矩阵来计算相似性,以此替代传统的时间序列间相似度计算方式. 将拥有最大分离度值的u-shapelets作为最佳u-shapelets,利用最佳u-shapelet来迭代分裂数据集进行聚类. 将Foush与20种先进的聚类算法在UCR时间序列库中的15个数据集上进行比较. 实验结果表明,Foush聚类精度优于所有对比算法. 相似度近邻分类实验、异常值实验、时间性能分析、消融实验和参数自适应选择实验也充分表明Foush的优势. 结果证明Foush为精确的u-shapelets聚类算法.

关键词: 聚类分析;  序列特征;  相似度;  时间序列;  u-shapelets    
Abstract:

Aiming at the issue that traditional time series clustering algorithms struggle to effectively extract key subsequences representing structural characteristics of time series, a feature-oriented u-shapelets clustering algorithm (Foush) was proposed. Foush converted raw high-dimensional series into low-dimensional symbolic discrete representations by symbolic approximation and random masking, which enhanced the quality of u-shapelets candidates while preserving the key features of original sequence. Similarity measure Coin based on infinity norm was defined by Foush. The matrix of the first k eigenvectors from the local autocovariance matrix of the sequence was used to calculate similarity, which replaced traditional methods for measuring inter-sequence similarity. U-shapelets with the highest separation value were selected as the optimal U-shapelets, which were utilized to iteratively split the dataset for clustering. Foush was compared with 20 advanced clustering algorithms on 15 benchmarks in the UCR time series library. The results showed that Foush outperformed all compared algorithms in clustering accuracy. Additionally, similarity nearest-neighbor classification experiments, outlier experiments, time performance analysis, ablation experiment, and parameter adaptive selection experiment fully demonstrated the advantages of Foush. The results confirmed that Foush was an accurate u-shapelets clustering algorithm.

Key words: clustering analysis    sequence feature    similarity measurement    time series    u-shapelets
收稿日期: 2025-06-24 出版日期: 2026-11-25
CLC:  TP 301.6  
基金资助: 国家自然科学基金资助项目(62266029);甘肃省重点研发计划资助项目(24YFGA036);甘肃省联合科研基金重点资助项目(25JRRA1103);甘肃省教育科技创新项目-优秀研究生“创新之星”资助项目(2026CXZX-634).
通讯作者: 陈梅     E-mail: chizhang19990813@163.com;chenmeilz@mail.lzjtu.cn
作者简介: 张弛(1999—),男,博士生,从事时间序列聚类研究. orcid.org/0009-0002-2315-0274. E-mail:chizhang19990813@163.com
服务  
把本文推荐给朋友
加入引用管理器
E-mail Alert
作者相关文章  
张弛
陈梅
魏礼磊

引用本文:

张弛,陈梅,魏礼磊. 特征导向的u-shapelets聚类[J]. 浙江大学学报(工学版), 2027, 61(1): 177-188, 231.

Chi Zhang,Mei Chen,Lilei Wei. Feature oriented u-shapelets clustering. Journal of ZheJiang University (Engineering Science), 2027, 61(1): 177-188, 231.

链接本文:

https://www.zjujournals.com/eng/CN/10.3785/j.issn.1008-973X.2027.01.017    或    https://www.zjujournals.com/eng/CN/Y2027/V61/I1/177

图1  Foush算法框架
图2  SAX表示过程
图3  u-shapelets候选集获得过程
序号数据集簇数数据集维度数据数量异常值数量数据类型
1Beef (BEE)547028200355光谱曲线
2Wine (WIN)223425974294
3Car (CAR)457769240511传感曲线
4Phoneme (PHO)391 024216064024 188
5SonyAIBORobotSurface2 (SO2)26563700498
6BeetleFly (BFL)25122048053图像曲线
7DistalPhalanxOutlineAgeGroup (DPA)38043120372
8FaceAll (FAL)141312947502 737
9DistalPhalanxOutlineCorrect (DPC)28070080758
10DistalPhalanxTW (DPT)28070080374
11MiddlePhalanxOutlineAgeGroup (MPA)38043520185
12MiddlePhalanxOutlineCorrect (MPC)28071280508
13ProximalPhalanxOutlineAgeGroup (PPA)38048400157
14ProximalPhalanxTW (PPT)68048400157
15SwedishLeaf (SWE)151281440001 715
表1  实验数据集描述
数据集RI
FoushSE-ShapeletsUSSLSUSHU-ShapeletsCDCCD-HCTS3Ck-ShapeFJFTRR
BEE0.774 80.647 50.640 10.744 60.696 60.474 90.582 50.680 10.540 20.737 90.746 3
CAR0.761 00.628 60.734 50.413 60.641 80.436 30.498 20.653 50.702 80.656 20.655 2
DPC1.000 00.510 50.596 20.521 50.509 80.640 20.527 70.506 20.500 90.499 50.617 6
FAL0.912 10.738 20.720 60.886 10.901 10.897 10.604 80.851 90.782 50.855 40.880 8
MPA1.000 00.742 00.580 70.718 80.539 60.706 20.729 10.563 70.730 50.733 30.553 0
MPC1.000 00.499 50.663 50.493 60.521 80.587 10.500 20.505 40.511 40.500 00.506 2
PHO0.932 80.916 30.783 20.613 30.835 40.106 40.453 30.928 10.928 70.892 30.782 3
PPA1.000 00.809 40.763 90.770 70.520 60.799 20.748 00.757 60.771 70.800 00.745 5
PPT1.000 00.858 00.728 20.837 50.478 90.883 00.768 20.770 50.769 10.793 00.753 4
SWE0.932 90.896 10.854 70.622 50.615 40.913 10.348 30.845 70.924 20.913 30.430 6
WIN0.551 40.499 10.495 80.497 50.503 30.498 80.499 20.502 20.532 40.509 90.495 8
表2  不同算法在实验数据集上的聚类结果比较
数据集Acc
CoinEDDTWSBDPCCMD
BEF0.611 10.466 70.500 00.400 00.533 30.333 3
BFL0.916 70.722 20.750 00.650 00.800 00.583 3
DPA0.802 50.707 40.767 10.755 60.796 30.614 2
DPT0.728 40.703 70.670 90.696 30.722 20.496 9
MPA0.716 90.667 90.675 10.682 30.700 40.491 0
PPT0.807 70.699 70.709 60.699 70.732 70.508 2
SO20.976 50.975 50.957 10.973 50.928 60.640 8
平均值0.794 10.706 10.718 50.693 90.744 80.523 9
表3  不同相似度在不同数据集上最近邻分类结果
图4  不同算法在含有高斯噪声的不同数据集上的实验分析
图5  白噪声实验分析
数据集tr/s
FoushSE-ShapeletsSUSHCDCCTS3Ck-ShapeKSC
BEE15.022 58.074 3134.230 430.802 1188.142 561.385 262.623 2
CAR95.368 112.230 7298.985 277.412 1391.832 593.130 1142.091 4
DPC15.472 95.002 486.148 619.322 4483.987 12.148 945.135 2
FAL1 975.265 412.962 66 152.725 868.721 31875.995 8212.892 12 944.214 2
MPA72.142 14.026 054.521 511.310 0249.728 40.490 470.215 8
MPC75.612 84.793 2798.267 119.082 5718.596 70.605 2496.478 2
PHO6 128.359 4532.919 9169 934.968 04 437.116 815 477.263 53 720.811 2364 702.701 0
PPA58.325 74.206 466.398 511.450 0236.048 10.862 582.135 6
PPT84.156 44.731 565.773 012.360 0320.949 12.566 131.834 1
SWE1 825.612 48.399 41 627.175 5146.259 4995.995 44.325 41 619.709 1
WIN24.138 73.945 447.759 357.124 514.523 11.132 534.265 4
表4  所有算法在实验数据集上的运行时间比较
优化阶段具体方法理论加速
u-shapelets候选集生成SAX并行化$ O\left(n\cdot q\right)\rightarrow O\left(n\cdot q/P \right) $
相似度计算GPU/AVX向量化$ O\left(n\cdot {p}^{2}/Q\right) $
聚类迭代Mini-batch更新$ O\left(\left(n\cdot {p}^{2}+n\cdot p\cdot \mathrm{logp}\right)/b\right) $
表5  Foush时间复杂度优化策略
数据集曲线类型FoushFoush 1Foush 2
BEE光谱曲线0.76720.58210.3897
CAR传感曲线0.76100.61710.4102
DPC图像曲线1.00000.54120.5028
表6  消融实验结果
数据集k$ {\mathrm{CC}}_{i} $$ {S}_{{\mathrm{m}}} $$ V $
BEE40.98940.04371.0095
CAR70.93680.02861.0047
DPC100.92440.17540.9914
FAL320.91230.46391.2281
MPA70.92720.15520.9914
MPC60.94030.17751.0234
PHO2510.90110.32781.1944
PPA50.94280.18301.0237
PPT40.97140.22951.2094
SWE130.91730.19791.2734
WIN40.98810.07521.0010
表7  k值自适应选择实验结果
1 李海林, 张丽萍. 时间序列数据挖掘中的聚类研究综述. 电子科技大学学报, 2022, 51 (3): 416- 424.
Li Hailin, Zhang Liping. Summary of clustering research in time series data mining. Journal of University of Electronic Science and Technology of China, 2022, 51 (3): 416- 424.
doi: 10.12178/1001-0548.2022055
2 郑德生, 孙涵明, 王立远, 等. 多元时间序列聚类算法综述. 计算机科学与探索, 2025, 19 (3): 582- 601.
Zheng Desheng, Sun Hanming, Wang Liyuan, et al. Review of multivariate time series clustering algorithms. Journal of Frontiers of Computer Science and Technology, 2025, 19 (3): 582- 601.
doi: 10.3778/j.issn.1673-9418.2405013
3 Siyou Fotso V S, Mephu Nguifo E, Vaslin P. Frobenius correlation based u-shapelets discovery for time series clustering. Pattern Recognition, 2020, 103, 107301.
doi: 10.1016/j.patcog.2020.107301
4 Zakaria J, Mueen A, Keogh E. Clustering time series using unsupervised-shapelets [C]// Proceedings of the IEEE 12th International Conference on Data Mining. Brussels: IEEE, 2012: 785–794.
5 Paparrizos J, Gravano L. K-shape: efficient and accurate clustering of time series [C]// Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data. Melbourne: ACM, 2015: 1855–1870.
6 Rakthanmanon T, Keogh E. Fast shapelets: a scalable algorithm for discovering time series shapelets [C]// Proceedings of the 2013 SIAM International Conference on Data Mining. Austin: SIAM, 2013: 668–676.
7 Grabocka J, Wistuba M, Schmidt-Thieme L. Scalable discovery of time-series shapelets [PP/OL]. arXiv (2015-03-11)[2025-05-21]. https://doi.org/10.48550/arXiv.1503.03238.
8 Ulanova L, Begum N, Keogh E. Scalable clustering of time series with U-shapelets [C]// Proceedings of the 2015 SIAM International Conference on Data Mining. Vancouver: SIAM, 2015: 900–908.
9 Zakaria J, Mueen A, Keogh E, et al. Accelerating the discovery of unsupervised-shapelets. Data Mining and Knowledge Discovery, 2016, 30 (1): 243- 281.
doi: 10.1007/s10618-015-0411-4
10 Zhang Q, Wu J, Zhang P, et al. Salient subsequence learning for time series clustering. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019, 41 (9): 2193- 2207.
doi: 10.1109/TPAMI.2018.2847699
11 Li G, Choi B, Xu J, et al. AUTOSHAPE: an autoencoder-shapelet approach for time series clustering [PP/OL]. V2. arXiv (2022-08-18)[ 2025-05-21]. https://doi.org/10.48550/arXiv.2208.04313.
12 Pappa L, Karvelis P, Stylios C. Exploring the diverse world of SAX-based methodologies. Data Mining and Knowledge Discovery, 2024, 39 (1): 4.
doi: 10.1007/s10618-024-01075-2
13 Fabiani G, Kevrekidis I G, Siettos C, et al. RandONets: shallow networks with random projections for learning linear and nonlinear operators. Journal of Computational Physics, 2025, 520, 113433.
doi: 10.1016/j.jcp.2024.113433
14 Cai B, Huang G, Yang S, et al. SE-shapelets: semi-supervised clustering of time series using representative shapelets. Expert Systems with Applications, 2024, 240, 122584.
doi: 10.1016/j.eswa.2023.122584
15 Yang Y, Shen H T, Ma Z, et al. l2, 1-norm regularized discriminative feature selection for unsupervised learning [C]// Proceedings of the 22nd International Joint Conference on Artificial Intelligence. Barcelona: AAAI, 2011: 1589–1594.
16 Li Z, Yang Y, Liu J, et al. Unsupervised feature selection using nonnegative spectral analysis [C]// Proceedings of the 26th AAAI Conference on Artificial Intelligence. Toronto: AAAI, 2012: 1026–1032.
17 Qian M, Zhai C. Robust unsupervised feature selection [C]//Proceedings of the 23rd International Joint Conference on Artificial Intelligence. Beijing: AAAI, 2013: 1621–1627.
18 Shi L, Du L, Shen Y D. Robust spectral learning for unsupervised feature selection [C]// Proceedings of the IEEE International Conference on Data Mining. Shenzhen: IEEE, 2014: 977–982.
19 Xie J, Girshick R, Farhadi A. Unsupervised deep embedding for clustering analysis [C]// International Conference on Machine Learning. New York: PMLR, 2016: 478–487.
20 Madiraju N S, Sadat S M, Fisher D, et al. Deep temporal clustering: fully unsupervised learning of time-domain features [C]// 2018 International Conference on Learning Representations. Vancouver: ICLR, 2018: 1–11.
21 Yang X, Deng C, Zheng F, et al. Deep spectral clustering using dual autoencoder network [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. Long Beach: IEEE, 2019: 4061–4070.
22 Bo D, Wang X, Shi C, et al. Structural deep clustering network [C]// Proceedings of the Web Conference. Taipei: ACM, 2020: 1400–1410.
23 Guijo-Rubio D, Durán-Rosal A M, Gutiérrez P A, et al. Time-series clustering based on the characterization of segment typologies. IEEE Transactions on Cybernetics, 2021, 51 (11): 5409- 5422.
doi: 10.1109/TCYB.2019.2962584
24 Łuczak M. Hierarchical clustering of time series data with parametric derivative dynamic time warping [J]. Expert Systems with Applications, 2016, 62: 116–130.
25 Peng F, Luo J, Lu X, et al. Cross-domain contrastive learning for time series clustering [C]// Proceedings of the AAAI Conference on Artificial Intelligence. Vancouver: AAAI, 2024, 38(8): 8921–8929.
26 Yang J, Leskovec J. Patterns of temporal variation in online media [C]// Web Search and Data Mining. Hong Kong: ACM, 2011: 177–186.
27 Seal A, Karlekar A, Krejcar O, et al. Fuzzy c-means clustering using Jeffreys-divergence based similarity measure. Applied Soft Computing, 2020, 88, 106016.
doi: 10.1016/j.asoc.2019.106016
28 Ma Z, Kang Z, Luo G, et al. Towards clustering-friendly representations: subspace clustering via graph filtering [C]// Proceedings of the 28th ACM International Conference on Multimedia. Seattle: ACM, 2020: 3081–3089.
29 Jorge M B, Rubén C. Time series clustering with random convolutional kernels. Data Mining and Knowledge Discovery, 2024, 38 (4): 1862- 1888.
doi: 10.1007/s10618-024-01018-x
30 刘超, 孔兵, 杜国王, 等. 高阶互信息最大化与伪标签指导的深度聚类. 浙江大学学报(工学版), 2023, 57 (2): 299- 309.
Liu Chao, Kong Bing, Du Guowang, et al. Deep clustering via high-order mutual information maximization and pseudo-label guidance. Journal of Zhejiang University (Engineering Science), 2023, 57 (2): 299- 309.
doi: 10.3785/j.issn.1008-973X.2023.02.010
31 Su Y, Liang K Y, Song S. In-database time series clustering. Proceedings of the ACM on Management of Data, 2025, 3 (1): 1- 26.
doi: 10.1145/3714420
32 Chen M, Wang Y, Leng M, et al. A new U-shapelet clustering algorithm by capturing morphological trends. Neurocomputing, 2025, 651, 130932.
doi: 10.1016/j.neucom.2025.130932
[1] 张晗. 基于相似性自监督表示学习的时间序列分类方法[J]. 浙江大学学报(工学版), 2027, 61(1): 165-176.
[2] 王美佳,张帆,王桦,张明丽,张彩明. 面向长期时间序列预测的多尺度双流架构[J]. 浙江大学学报(工学版), 2026, 60(8): 1770-1781.
[3] 林浩,李雷孝,赵丽. 融入人格特质的网络舆情风险预警方法[J]. 浙江大学学报(工学版), 2026, 60(6): 1261-1268.
[4] 袁新博,徐兆斌,李自茹,潘健,金小军,金仲和. 高精度测量装置大气环境参数校准深度学习混合代理模型[J]. 浙江大学学报(工学版), 2025, 59(7): 1547-1556.
[5] 刘瑄昀,闫莹,於志勇,黄昉菀. 基于无标度网络的类脑储备池拓扑设计[J]. 浙江大学学报(工学版), 2025, 59(7): 1385-1393.
[6] 胡比澜,王洋洋,张永强. 基于多模型Stacking融合的基坑测斜时序预测[J]. 浙江大学学报(工学版), 2025, 59(4): 706-716.
[7] 李勇,刘志强,田茂幸,贾松霖. 基于全局相关语义重要性的语义压缩算法[J]. 浙江大学学报(工学版), 2025, 59(4): 795-803.
[8] 疏阳,孙轶琳,梅振宇,张逸敏,黄毅方. 基于多源数据的个体活动序列多步预测[J]. 浙江大学学报(工学版), 2025, 59(11): 2317-2325.
[9] 杨磊,何鹏举,丑幸幸. 基于TimeGAN数据增强的复杂过程故障分类方法[J]. 浙江大学学报(工学版), 2024, 58(9): 1768-1780.
[10] 禄小敏,马犇,闫浩文,李蓬勃. 基于骨架线的地图建筑物形状分类方法[J]. 浙江大学学报(工学版), 2024, 58(12): 2479-2488.
[11] 张晗. 用于多元时间序列预测的图神经网络模型[J]. 浙江大学学报(工学版), 2024, 58(12): 2500-2509.
[12] 马泽超,刘小明,夏汗青,王伟强,王久增,申海涛. 基于图神经网络的路面病害态势预测方法[J]. 浙江大学学报(工学版), 2024, 58(12): 2596-2608.
[13] 黄建平,陈可,张建松,沈思琪. 时序基因驱动的特征表示模型[J]. 浙江大学学报(工学版), 2023, 57(7): 1354-1364.
[14] 邢雪琪,丁雨童,夏唐斌,潘尔顺,奚立峰. 基于知识图谱的商用飞机维修方案推荐系统集成建模[J]. 浙江大学学报(工学版), 2023, 57(3): 512-521.
[15] 李文娟,邓洪高,马谋,蒋俊正. 基于图信号处理的传染病传播预测方法[J]. 浙江大学学报(工学版), 2022, 56(5): 1017-1024.