Bridging Neural Networks and Dynamic Time Warping for Adaptive Time Series Classification

Jintao Qu, Zichong Wang, Chenhao Wu, Wenbin Zhang
7/13/2025
cs.LGcs.AI

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

Neural networks have achieved remarkable success in time series classification, but their reliance on large amounts of labeled data for training limits their applicability in cold-start scenarios. Moreover, they lack interpretability, reducing transparency in decision-making. In contrast, dynamic time warping (DTW) combined with a nearest neighbor classifier is widely used for its effectiveness in limited-data settings and its inherent interpretability. However, as a non-parametric method, it is not trainable and cannot leverage large amounts of labeled data, making it less effective than neural networks in rich-resource scenarios. In this work, we aim to develop a versatile model that adapts to cold-start conditions and becomes trainable with labeled data, while maintaining interpretability. We propose a dynamic length-shortening algorithm that transforms time series into prototypes while preserving key structural patterns, thereby enabling the reformulation of the DTW recurrence relation into an equivalent recurrent neural network. Based on this, we construct a trainable model that mimics DTW's alignment behavior. As a neural network, it becomes trainable when sufficient labeled data is available, while still retaining DTW's inherent interpretability. We apply the model to several benchmark time series classification tasks and observe that it significantly outperforms previous approaches in low-resource settings and remains competitive in rich-resource settings.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 6 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{qu2025bridging,
  title  = {Bridging Neural Networks and Dynamic Time Warping for Adaptive Time Series Classification},
  author = {Jintao Qu and Zichong Wang and Chenhao Wu and Wenbin Zhang},
  year   = {2025},
  eprint = {2507.09826},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.09826v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.09826.svg)](https://codeofpaper.com/paper/2507.09826)

Discussion