Digital twins for engineering, finance, and especially personalized medicine often rely on time-series applications, such as computing the similarity between temporal signals. Dynamic Time Warping (DTW) remains the gold standard for robust alignment under temporal distortions, but its quadratic time and space complexity limits scalability and real-time usage. Existing methods such as FastDTW, PruneDTW, and SoftDTW attempt to address these issues, but often compromise on accuracy, differentiability, or flexibility. We introduce BlockDTW, a differentiable parallel approximation of DTW that divides time-series into non-overlapping blocks and computes local alignments. This reduces complexity to O(bN), enabling efficient training and inference. BlockDTW achieves good approximation relative to DTW with up to 8× speedup, as shown in three tasks: synthetic frequency-varying sinusoids, Trace dataset prediction with an FFNN, and EEG reconstruction using hvEEGNet. Results are comparable to SoftDTW and PruneDTW, with significantly lower runtime.

BlockDTW: Efficient and Scalable Similarity Search Algorithm for Healthcare-Focused Time-Series / Zancanaro, A., Badia, L., Cisotto, G.. - (2025), pp. 1-6. (2025 IEEE Conference on Standards for Communications and Networking, CSCN 2025 ita 2025) [10.1109/cscn67557.2025.11230700].

BlockDTW: Efficient and Scalable Similarity Search Algorithm for Healthcare-Focused Time-Series

Badia, Leonardo;Cisotto, Giulia
2025-01-01

Abstract

Digital twins for engineering, finance, and especially personalized medicine often rely on time-series applications, such as computing the similarity between temporal signals. Dynamic Time Warping (DTW) remains the gold standard for robust alignment under temporal distortions, but its quadratic time and space complexity limits scalability and real-time usage. Existing methods such as FastDTW, PruneDTW, and SoftDTW attempt to address these issues, but often compromise on accuracy, differentiability, or flexibility. We introduce BlockDTW, a differentiable parallel approximation of DTW that divides time-series into non-overlapping blocks and computes local alignments. This reduces complexity to O(bN), enabling efficient training and inference. BlockDTW achieves good approximation relative to DTW with up to 8× speedup, as shown in three tasks: synthetic frequency-varying sinusoids, Trace dataset prediction with an FFNN, and EEG reconstruction using hvEEGNet. Results are comparable to SoftDTW and PruneDTW, with significantly lower runtime.
File in questo prodotto:
Non ci sono file associati a questo prodotto.
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11368/3139181
 Avviso

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact