《计算机应用》唯一官方网站 ›› 2023, Vol. 43 ›› Issue (6): 1855-1860.DOI: 10.11772/j.issn.1001-9081.2022060885

• 数据科学与技术 • 上一篇    下一篇

噪声鲁棒的动态时间规整算法

邱莲鹏, 宋承云()   

  1. 重庆理工大学 计算机科学与工程学院,重庆 400054
  • 收稿日期:2022-06-20 修回日期:2022-08-04 接受日期:2022-08-11 发布日期:2022-10-11 出版日期:2023-06-10
  • 通讯作者: 宋承云
  • 作者简介:邱莲鹏(1995—),女,甘肃定西人,硕士研究生,主要研究方向:大数据、智能信号处理
    宋承云(1988—),男,甘肃白银人,副教授,博士,主要研究方向:大数据、智能信号处理Email:scyer123@163.com

Noise robust dynamic time warping algorithm

Lianpeng QIU, Chengyun SONG()   

  1. College of Computer Science and Engineering,Chongqing University of Technology,Chongqing 400054,China
  • Received:2022-06-20 Revised:2022-08-04 Accepted:2022-08-11 Online:2022-10-11 Published:2023-06-10
  • Contact: Chengyun SONG
  • About author:QIU Lianpeng, born in 1995, M. S. candidate. Her research interests include big data, intelligent signal processing.
  • Supported by:
    Graduate Innovation Project of Chongqing University of Technology(gzlcx20223195)

摘要:

动态时间规整(DTW)算法通过寻找两个时间序列的最佳匹配衡量序列之间的相似性。针对序列中存在的噪声容易导致时间序列匹配时局部出现过度拉伸和压缩问题,提出了一种噪声鲁棒的动态时间规整(NoiseDTW)算法。首先,在原始的信号中引入额外噪声,解决序列对齐中存在的一个点对齐多个点的问题;然后,通过在两个时间序列之间多条可能的匹配路径中找到一条最优的匹配路径,减少噪声的随机性对时间序列相似性度量的影响;最后,将匹配路径映射到原始序列上。实验结果表明,相较于欧氏距离(ED)、DTW、Sakoe-Chiba窗口动态时间规整(Sakoe-Chiba DTW)和加权动态时间规整(WDTW)算法,所提算法结合K-近邻(KNN)分类器得到的分类准确率在8个时间序列数据集上分别比次优算法提高了1~15个百分点。可见所提算法具有较好的分类性能,且对噪声具有鲁棒性。

关键词: 动态时间规整, 时间序列, 病态对齐, 相似性度量, K-近邻

Abstract:

The Dynamic Time Warping (DTW) algorithm measures the similarity between two time series by finding the best match between two time series. Aiming at the problem of excessive stretching and compression during time series matching due to noise existing in the sequence, a Noise robust Dynamic Time Warping (NoiseDTW) algorithm was proposed. Firstly, after introducing extra noise into the original signal, and the problem of one point aligning multiple points in sequence alignment was solved. Secondly, by finding an optimal matching path between two time series with multiple possible matching paths, the influence of randomness of noise on the time series similarity measure was reduced. Finally, the matching paths were mapped to the original sequence. Experimental results show that compared to Euclidean Distance (ED), DTW, Sakoe-Chiba window DTW (Sakoe-Chiba DTW) and Weighted DTW (WDTW) algorithms, combined with K-Nearest Neighbors (KNN), the proposed algorithm has the classification accuracy improved by 1 to 15 percentage points compared to the suboptimal algorithm on eight time series datasets, respectively, indicating that the proposed algorithm has good classification performance and is robust to noise.

Key words: Dynamic Time Warping (DTW), time series, pathological alignment, similarity measure, K-Nearest Neighbors (KNN)

中图分类号: