Skip to main content
QUICK REVIEW

[论文解读] TS2Vec: Towards Universal Representation of Time Series

Zhihan Yue, Yujing Wang|arXiv (Cornell University)|Jun 19, 2021
Time Series Analysis and ForecastingComputer Science被引用 40
一句话总结

TS2Vec 是一个通用的分层对比学习框架,用于时间序列,通过增强上下文视图学习时间戳级表示,从而实现对子序列的准确表示,并在分类、预测和异常检测方面达到最新性能。

ABSTRACT

This paper presents TS2Vec, a universal framework for learning representations of time series in an arbitrary semantic level. Unlike existing methods, TS2Vec performs contrastive learning in a hierarchical way over augmented context views, which enables a robust contextual representation for each timestamp. Furthermore, to obtain the representation of an arbitrary sub-sequence in the time series, we can apply a simple aggregation over the representations of corresponding timestamps. We conduct extensive experiments on time series classification tasks to evaluate the quality of time series representations. As a result, TS2Vec achieves significant improvement over existing SOTAs of unsupervised time series representation on 125 UCR datasets and 29 UEA datasets. The learned timestamp-level representations also achieve superior results in time series forecasting and anomaly detection tasks. A linear regression trained on top of the learned representations outperforms previous SOTAs of time series forecasting. Furthermore, we present a simple way to apply the learned representations for unsupervised anomaly detection, which establishes SOTA results in the literature. The source code is publicly available at https://github.com/yuezhihan/ts2vec.

研究动机与目标

  • 激励学习超越整体序列嵌入的普遍、细粒度时间序列表示。
  • 开发一个分层对比框架,以捕捉多尺度上下文信息。
  • 引入上下文一致性,以在没有强归纳偏置的情况下实现鲁棒的正样本对选择。
  • 通过简单的时间戳级聚合(最大池化)使任意子序列表示成为可能。
  • 展示在分类、预测和异常检测任务上的广泛提升。

提出的方法

  • 对每个输入使用两个重叠的子序列,并强制它们共享片段表示的一致性。
  • 用由输入投影、时间戳掩码和扩张卷积网络组成的编码器对输入进行编码。
  • 使用双对比损失进行训练:时序对比损失和实例级对比损失(Eq. 1–3)。
  • 通过对时间进行最大池化应用分层对比,以创建多尺度表示并在多个层次计算损失。
  • 通过时间戳掩码和随机裁剪来采用正样本对的上下文一致性,以避免分布假设。
  • 主干网络支持多变量输入,并使用扩张卷积神经网络以实现较大的感受野。

实验结果

研究问题

  • RQ1如何在任意语义层次学习时间序列表示,而不只是完整序列嵌入?
  • RQ2分层的多尺度对比目标是否能提升时间序列任务的鲁棒性和泛化能力?
  • RQ3上下文一致性是否比子序列或单独的时序一致性提供更好的正样本对选择?
  • RQ4学习到的时间戳级表示是否能够聚合形成用于预测和异常检测的有效子序列嵌入?

主要发现

  • TS2Vec 在时间序列分类方面取得显著改进,与最佳无监督SOTA相比,在125个UCR数据集上平均精度提高2.4%,在29个UEA数据集上提高3.0%。
  • 学习到的时间戳表示通过在表示上方添加线性回归实现强预测性能,在给定基准上将单变量MSE降低最多32.6%,多变量降低28.2%。
  • TS2Vec 在无监督异常检测中在正常和冷启动设置均达到SOTA,并且F1分数显著提升。
  • 消融表明去除组件(时序对比、实例对比、分层对比、上下文一致性、掩码等)会降低准确性,确认每个组件的重要性。
  • 可视化结果证实模型在学习表示中捕捉到诸如高低时间戳、趋势演变和季节性模式等动态特征。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。