| Computer Technology |
|
|
|
|
| Similarity-based self-supervised representation learning method for time series classification |
Han Zhang( ) |
| School of Data Science and Artificial Intelligence, Dongbei University of Finance and Economics, Dalian 116025, China |
|
|
|
Abstract A similarity-vector-based self-supervised representation learning method, Sim2Vec, was proposed to address the challenges of acquiring high-quality feature representations and the strong dependency on labeled data in time series classification tasks. The method eliminated the reliance on artificial data augmentation strategies in self-supervised approaches. Instead, it employed the intrinsic similarity of time series in both the time and frequency domains as training signals, guiding the model to learn structure-preserving feature representations. A sequence-invariant gated self-attention mechanism was designed to enhance the model’s ability to focus on key structural features while effectively suppressing irrelevant noise interference. Experimental results demonstrated that Sim2Vec significantly outperformed multiple mainstream self-supervised learning models in classification performance and robustness under unsupervised pre-training conditions on 9 real-world time series datasets (including the Epilepsy dataset). In low-labeled-data scenarios, the method maintained the accuracy comparable to fully supervised approaches, demonstrating promising application prospects.
|
|
Received: 13 June 2025
Published: 25 November 2026
|
|
|
基于相似性自监督表示学习的时间序列分类方法
针对时间序列分类任务中高质量特征表示获取困难及对标注数据依赖性强的问题,提出基于相似性向量自监督表示学习方法Sim2Vec. 该方法突破自监督方法对人工数据增强策略的依赖,将时间序列在时域与频域的内在相似性作为训练信号,引导模型学习保持结构一致性的特征表示. 设计顺序不变的门控自注意力机制,增强模型对关键结构特征的关注能力,有效抑制无关噪声干扰. 实验结果表明,在包括Epilepsy数据集的9个真实世界时间序列数据集中,Sim2Vec在无监督预训练条件下的分类性能与鲁棒性显著优于多种主流自监督学习模型. 在低标注数据场景下,该方法可以保持与全监督方法相当的准确率,展现出广阔的实际应用前景.
关键词:
时间序列分类,
自监督学习,
相似性度量,
表示学习,
注意力机制
|
|
| [1] |
Mohammadi Foumani N, Miller L, Tan C W, et al. Deep learning for time series classification and extrinsic regression: a current survey. ACM Computing Surveys, 2024, 56 (9): 1- 45.
doi: 10.1145/3649447
|
|
|
| [2] |
Rajkomar A, Oren E, Chen K, et al. Scalable and accurate deep learning for electronic health records [PP/OL]. V3. arXiv (2018-05-11)[2026-06-13]. https://doi.org/10.48550/arXiv.1801.07860.
|
|
|
| [3] |
Bagnall A, Dau H A, Lines J, et al. The UEA multivariate time series classification archive, 2018 [PP/OL]. arXiv (2018-10-31)[2025-06-13]. https://doi.org/10.48550/arXiv.1811.00075.
|
|
|
| [4] |
Yue Z, Wang Y, Duan J, et al. TS2Vec: towards universal representation of time series. Proceedings of the AAAI Conference on Artificial Intelligence, 2022, 36 (8): 8980- 8987.
doi: 10.1609/aaai.v36i8.20881
|
|
|
| [5] |
Yang L, Hong S. Unsupervised time-series representation learning with iterative bilinear temporal-spectral fusion [C]// Proceedings of the 39th International Conference on Machine Learning. Baltimore: PMLR, 2022, 162: 25038–25054.
|
|
|
| [6] |
Goyal P, Caron M, Lefaudeux B, et al. Self-supervised pretraining of visual features in the wild [PP/OL]. V2. arXiv (2021-03-05)[2025-06-13]. https://doi.org/10.48550/arXiv.2103.01988.
|
|
|
| [7] |
van den Oord A, Li Y, Vinyals O. Representation learning with contrastive predictive coding [PP/OL]. V2. arXiv (2019-01-22)[2025-06-13]. https://doi.org/10.48550/arXiv.1807.03748.
|
|
|
| [8] |
Chen T, Kornblith S, Norouzi M, et al. A simple framework for contrastive learning of visual representations [C]// Proceedings of the 37th International Conference on Machine Learning. [S. 1. ]: PMLR, 2020, 119: 1597–1607.
|
|
|
| [9] |
He K, Fan H, Wu Y, et al. Momentum contrast for unsupervised visual representation learning [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle: IEEE, 2020: 9726–9735.
|
|
|
| [10] |
Franceschi J Y, Dieuleveut A, Jaggi M. Unsupervised scalable representation learning for multivariate time series [C]// Advances in Neural Information Processing Systems. [S. 1. ]: Curran Associates, Inc. , 2019, 32: 4650–4661.
|
|
|
| [11] |
Tonekaboni S, Eytan D, Goldenberg A. Unsupervised representation learning for time series with temporal neighborhood coding [PP/OL]. arXiv (2021-06-01)[2025-06-13]. https://doi.org/10.48550/arXiv.2106.00750.
|
|
|
| [12] |
Eldele E, Ragab M, Chen Z, et al. Time-series representation learning via temporal and contextual contrasting [PP/OL]. arXiv (2021-06-26)[2025-06-13]. https://doi.org/10.48550/arXiv.2106.14112.
|
|
|
| [13] |
Wickstrøm K, Kampffmeyer M, Mikalsen K Ø, et al. Mixing up contrastive learning: self-supervised representation learning for time series. Pattern Recognition Letters, 2022, 155, 54- 61.
doi: 10.1016/j.patrec.2022.02.007
|
|
|
| [14] |
Foumani N M, Tan C W, Webb G I, et al. Series2vec: similarity-based self-supervised representation learning for time series classification. Data Mining and Knowledge Discovery, 2024, 38 (4): 2520- 2544.
doi: 10.1007/s10618-024-01043-w
|
|
|
| [15] |
Zhang X, Zhao Z, Tsiligkaridis T, et al. Self-supervised contrastive pre-training for time series via time-frequency consistency [C]// Proceedings of the Advances in Neural Information Processing Systems. New Orleans: NeurIPS, 2022: 3988–4003.
|
|
|
| [16] |
Devlin J, Chang M W, Lee K, et al. BERT: pre-training of deep bidirectional transformers for language understanding [C]// North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Minneapolis: ACL, 2019: 4171–4186.
|
|
|
| [17] |
Kostas D, Aroca-Ouellette S, Rudzicz F. BENDR: using transformers and a contrastive self-supervised learning task to learn from massive amounts of EEG data. Frontiers in Human Neuroscience, 2021, 15, 653659.
doi: 10.3389/fnhum.2021.653659
|
|
|
| [18] |
Mohammadi Foumani N, MacKellar G, Ghane S, et al. EEG2Rep: enhancing self-supervised EEG representation through informative masked inputs [C]// Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. Barcelona: ACM, 2024: 5544–5555.
|
|
|
| [19] |
Zerveas G, Jayaraman S, Patel D, et al. A transformer-based framework for multivariate time series representation learning [C]// Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. [S. l. ]: ACM, 2021: 2114–2124.
|
|
|
| [20] |
Fawaz H I. Deep learning for time series classification [PP/OL]. arXiv (2020-10-01)[2025-06-13]. https://doi.org/10.48550/arXiv.2010.00567.
|
|
|
| [21] |
Tan C W, Bergmeir C, Petitjean F, et al. Time series extrinsic regression: predicting numeric values from time series data. Data Mining and Knowledge Discovery, 2021, 35 (3): 1032- 1060.
doi: 10.1007/s10618-021-00745-9
|
|
|
| [22] |
Sakoe H, Chiba S. A dynamic-programming approach to continuous speech recognition [C]// Proceedings of the 20th International Congress of Acoustics. Budapest: [s. n. ], 1971: 65−68.
|
|
|
| [23] |
Petitjean F, Ketterlin A, Gançarski P. A global averaging method for dynamic time warping, with applications to clustering. Pattern Recognition, 2011, 44 (3): 678- 693.
doi: 10.1016/j.patcog.2010.09.013
|
|
|
| [24] |
Cuturi M, Blondel M. Soft-DTW: a differentiable loss function for time-series [C]// Proceedings of the International Conference on Machine Learning. [S. 1. ]: PMLR, 2017: 894–903.
|
|
|
| [25] |
Mohammadi Foumani S N, Tan C, Salehi M. Disjoint-CNN for multivariate time series classification [C]// Proceedings of the International Conference on Data Mining Workshops. Auckland: IEEE, 2021: 760–769.
|
|
|
| [26] |
Foumani N M, Tan C W, Webb G I, et al. Improving position encoding of transformers for multivariate time series classification. Data Mining and Knowledge Discovery, 2024, 38 (1): 22- 48.
doi: 10.1007/s10618-023-00948-2
|
|
|
| [27] |
Cooley J W, Lewis P A W, Welch P D. The fast Fourier transform and its applications. IEEE Transactions on Education, 1969, 12 (1): 27- 34.
doi: 10.1109/te.1969.4320436
|
|
|
| [28] |
Agrawal R, Faloutsos C, Swami A N. Efficient similarity search in sequence databases [C]// Proceedings of the 4th International Conference on Foundations of Data Organization and Algorithms. Berlin: Springer, 1993: 69–84.
|
|
|
| [29] |
Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need [C]//Proceedings of the Advances in Neural Information Processing Systems. Red Hook: Curran Associates Inc., , 2017, 30: 5998–6008.
|
|
|
| [30] |
Huber P J. Robust estimation of a location parameter. The Annals of Mathematical Statistics, 1964, 35 (1): 73- 101.
doi: 10.1214/aoms/1177703732
|
|
|
| [31] |
Andrzejak R G, Lehnertz K, Mormann F, et al. Indications of nonlinear deterministic and finite-dimensional structures in time series of brain electrical activity: dependence on recording region and brain state. Physical Review E, 2001, 64 (6): 061907.
doi: 10.1103/physreve.64.061907
|
|
|
| [32] |
Goldberger A L, Amaral L A, Glass L, et al. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation, 2000, 101 (23): E215- E220.
doi: 10.1161/01.cir.101.23.e215
|
|
|
| [33] |
Anguita D, Ghio A, Oneto L, et al. A public domain dataset for human activity recognition using smartphones [C]// Proceedings of the 21th European Symposium on Artificial Neural Networks. Bruges: [s. n. ], 2013: 3–4.
|
|
|
|
Viewed |
|
|
|
Full text
|
|
|
|
|
Abstract
|
|
|
|
|
Cited |
|
|
|
|
| |
Shared |
|
|
|
|
| |
Discussed |
|
|
|
|