{"url":"/method/dtw","slug":"dtw","name":"DTW","full_name":"Dynamic Time Warping","full_name_withheld":false,"description_markdown":"Dynamic Time Warping (DTW) [1] is one of well-known distance measures between a pairwise of time series. The main idea of DTW is to compute the distance from the matching of similar elements between time series. It uses the dynamic programming technique to find the optimal temporal matching between elements of two time series.\r\n\r\nFor instance, similarities in walking could be detected using DTW, even if one person was walking faster than the other, or if there were accelerations and decelerations during the course of an observation. DTW has been applied to temporal sequences of video, audio, and graphics data — indeed, any data that can be turned into a linear sequence can be analyzed with DTW. A well known application has been automatic speech recognition, to cope with different speaking speeds. Other applications include speaker recognition and online signature recognition. It can also be used in partial shape matching application.\r\n\r\nIn general, DTW is a method that calculates an optimal match between two given sequences (e.g. time series) with certain restriction and rules:\r\n\r\n1. Every index from the first sequence must be matched with one or more indices from the other sequence, and vice versa\r\n2. The first index from the first sequence must be matched with the first index from the other sequence (but it does not have to be its only match)\r\n3. The last index from the first sequence must be matched with the last index from the other sequence (but it does not have to be its only match)\r\n4. The mapping of the indices from the first sequence to indices from the other sequence must be monotonically increasing, and vice versa, i.e. if j>i  are indices from the first sequence, then there must not be two indices l>k in the other sequence, such that index i is matched with index l and index j is matched with index k, and vice versa.\r\n\r\n[1] Sakoe, Hiroaki, and Seibi Chiba. \"Dynamic programming algorithm optimization for spoken word recognition.\" IEEE transactions on acoustics, speech, and signal processing 26, no. 1 (1978): 43-49.","description_state":"present","introduced_year":null,"introduced_by":{"title":null,"paper":null,"first_author":null,"n_authors":0,"url_abs":null,"archive_paper_url":null},"source":{"url":null,"title":null,"url_on_a_paper_host":false},"code_snippet_url":"https://dynamictimewarping.github.io/","code_snippet_url_on_a_code_host":true,"categories":[{"area":"Sequential","area_id":"sequential","collection":"Time Series Analysis","url":"/methods/category/time-series-analysis","pwc_aliases":[]}],"n_papers_tagged":159,"archive_num_papers":159,"papers_newest_first":[{"paper":null,"title":"Low-resource keyword spotting using contrastively trained transformer acoustic word embeddings","date":"2025-06-21","arxiv_id":"2506.17690","n_code_links":0,"syntology":null},{"paper":null,"title":"Improved Learning via k-DTW: A Novel Dissimilarity Measure for Curves","date":"2025-05-29","arxiv_id":"2505.23431","n_code_links":0,"syntology":null},{"paper":"/paper/timepoint-accelerated-time-series-alignment","title":"TimePoint: Accelerated Time Series Alignment via Self-Supervised Keypoint and Descriptor Learning","date":"2025-05-29","arxiv_id":"2505.23475","n_code_links":1,"syntology":{"ran":8,"of":15,"unverified":7,"pointer_only":1}},{"paper":null,"title":"LLM4FTS: Enhancing Large Language Models for Financial Time Series Prediction","date":"2025-05-05","arxiv_id":"2505.02880","n_code_links":0,"syntology":null},{"paper":null,"title":"Spatiotemporal Emotional Synchrony in Dyadic Interactions: The Role of Speech Conditions in Facial and Vocal Affective Alignment","date":"2025-04-29","arxiv_id":"2505.13455","n_code_links":0,"syntology":null},{"paper":null,"title":"Line Space Clustering (LSC): Feature-Based Clustering using K-medians and Dynamic Time Warping for Versatility","date":"2025-03-20","arxiv_id":"2503.15777","n_code_links":0,"syntology":null},{"paper":null,"title":"On a Dissimilarity Metric for Analyzing Body Synergistic Coordination in Non-Periodic Motion","date":"2025-03-19","arxiv_id":"2503.14821","n_code_links":0,"syntology":null},{"paper":"/paper/energy-free-sensing-and-context-recognition","title":"Energy-Free Sensing and Context Recognition Using Photovoltaic Cells","date":"2025-03-07","arxiv_id":"2503.05406","n_code_links":1,"syntology":null},{"paper":null,"title":"Two-level Solar Irradiance Clustering with Season Identification: A Comparative Analysis","date":"2025-01-17","arxiv_id":"2501.10084","n_code_links":0,"syntology":null},{"paper":"/paper/multiscale-dubuc-a-new-similarity-measure-for","title":"Multiscale Dubuc: A New Similarity Measure for Time Series","date":"2024-11-15","arxiv_id":"2411.10418","n_code_links":1,"syntology":null},{"paper":null,"title":"SIMformer: Single-Layer Vanilla Transformer Can Learn Free-Space Trajectory Similarity","date":"2024-10-18","arxiv_id":"2410.14629","n_code_links":0,"syntology":null},{"paper":"/paper/st-moe-bert-a-spatial-temporal-mixture-of","title":"ST-MoE-BERT: A Spatial-Temporal Mixture-of-Experts Framework for Long-Term Cross-City Mobility Prediction","date":"2024-10-18","arxiv_id":"2410.14099","n_code_links":1,"syntology":{"ran":4,"of":7,"unverified":3,"pointer_only":0}},{"paper":null,"title":"Unlabeled Action Quality Assessment Based on Multi-dimensional Adaptive Constrained Dynamic Time Warping","date":"2024-10-18","arxiv_id":"2410.14161","n_code_links":0,"syntology":null},{"paper":null,"title":"Cross-Lingual Query-by-Example Spoken Term Detection: A Transformer-Based Approach","date":"2024-10-05","arxiv_id":"2410.04091","n_code_links":0,"syntology":null},{"paper":null,"title":"FinePseudo: Improving Pseudo-Labelling through Temporal-Alignablity for Semi-Supervised Fine-Grained Action Recognition","date":"2024-09-02","arxiv_id":"2409.01448","n_code_links":0,"syntology":null},{"paper":null,"title":"Combining features on vertical ground reaction force signal analysis for multiclass diagnosing neurodegenerative diseases","date":"2024-08-20","arxiv_id":null,"n_code_links":0,"syntology":null},{"paper":null,"title":"Impact of Design Decisions in Scanpath Modeling","date":"2024-05-14","arxiv_id":"2405.08981","n_code_links":0,"syntology":null},{"paper":"/paper/nearest-advocate-a-novel-event-based-time","title":"Nearest advocate: a novel event-based time delay estimation algorithm for multi-sensor time-series data synchronization","date":"2024-04-05","arxiv_id":null,"n_code_links":1,"syntology":null},{"paper":null,"title":"Unsupervised Distance Metric Learning for Anomaly Detection Over Multivariate Time Series","date":"2024-03-04","arxiv_id":"2403.01895","n_code_links":0,"syntology":null},{"paper":null,"title":"Evaluating DTW Measures via a Synthesis Framework for Time-Series Data","date":"2024-02-14","arxiv_id":"2402.08943","n_code_links":0,"syntology":null},{"paper":null,"title":"Meet JEANIE: a Similarity Measure for 3D Skeleton Sequences via Temporal-Viewpoint Alignment","date":"2024-02-07","arxiv_id":"2402.04599","n_code_links":0,"syntology":null},{"paper":null,"title":"MagHT: a Magnetic Hough Transform for Fast Indoor Place Recognition","date":"2023-12-08","arxiv_id":"2312.05015","n_code_links":0,"syntology":null},{"paper":null,"title":"A New Time Series Similarity Measure and Its Smart Grid Applications","date":"2023-10-19","arxiv_id":"2310.12399","n_code_links":0,"syntology":null},{"paper":null,"title":"Expert enhanced dynamic time warping based anomaly detection","date":"2023-10-02","arxiv_id":"2310.02280","n_code_links":0,"syntology":null},{"paper":"/paper/shapedba-generating-effective-time-series","title":"ShapeDBA: Generating Effective Time Series Prototypes using ShapeDTW Barycenter Averaging","date":"2023-09-28","arxiv_id":"2309.16353","n_code_links":1,"syntology":null},{"paper":null,"title":"Position and Orientation-Aware One-Shot Learning for Medical Action Recognition from Signal Data","date":"2023-09-27","arxiv_id":"2309.15635","n_code_links":0,"syntology":null},{"paper":"/paper/deep-attentive-time-warping","title":"Deep Attentive Time Warping","date":"2023-09-13","arxiv_id":"2309.06720","n_code_links":1,"syntology":null},{"paper":null,"title":"SymED: Adaptive and Online Symbolic Representation of Data on the Edge","date":"2023-09-06","arxiv_id":"2309.03014","n_code_links":0,"syntology":null},{"paper":null,"title":"WarpEM: Dynamic Time Warping for Accurate Catheter Registration in EM-guided Procedures","date":"2023-08-07","arxiv_id":"2308.03652","n_code_links":0,"syntology":null},{"paper":"/paper/contrast-augmented-diffusion-model-with-fine","title":"Contrast-augmented Diffusion Model with Fine-grained Sequence Alignment for Markup-to-Image Generation","date":"2023-08-02","arxiv_id":"2308.01147","n_code_links":1,"syntology":null}],"papers_shown":30,"tasks":[{"task":"/task/dynamic-time-warping","name":"Dynamic Time Warping","papers":125},{"task":"/task/time-series-1","name":"Time Series","papers":84},{"task":"/task/time-series","name":"Time Series Analysis","papers":73},{"task":"/task/clustering","name":"Clustering","papers":28},{"task":"/task/time-series-classification","name":"Time Series Classification","papers":21},{"task":"/task/classification","name":"General Classification","papers":17},{"task":"/task/classification-1","name":"Classification","papers":12},{"task":"/task/anomaly-detection","name":"Anomaly Detection","papers":9},{"task":"/task/action-recognition-in-videos","name":"Action Recognition","papers":7},{"task":"/task/metric-learning","name":"Metric Learning","papers":6},{"task":"/task/representation-learning","name":"Representation Learning","papers":6},{"task":"/task/retrieval","name":"Retrieval","papers":6},{"task":"/task/time-series-clustering","name":"Time Series Clustering","papers":6},{"task":"/task/computational-efficiency","name":"Computational Efficiency","papers":5},{"task":"/task/data-augmentation","name":"Data Augmentation","papers":5},{"task":"/task/temporal-sequences","name":"Temporal Sequences","papers":5},{"task":"/task/decision-making","name":"Decision Making","papers":4},{"task":"/task/keyword-spotting","name":"Keyword Spotting","papers":4},{"task":"/task/time-series-alignment","name":"Time Series Alignment","papers":4},{"task":"/task/time-series-averaging","name":"Time Series Averaging","papers":4}],"tasks_shown":20,"n_tasks":142,"usage_by_year":[{"year":"2008","papers":1},{"year":"2011","papers":1},{"year":"2013","papers":1},{"year":"2014","papers":2},{"year":"2015","papers":3},{"year":"2016","papers":11},{"year":"2017","papers":9},{"year":"2018","papers":12},{"year":"2019","papers":16},{"year":"2020","papers":20},{"year":"2021","papers":23},{"year":"2022","papers":17},{"year":"2023","papers":22},{"year":"2024","papers":12},{"year":"2025","papers":9}],"row_source":"methods_table","archive":{"source":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","archive_url":"https://paperswithcode.com/method/dtw"},"syntology_read_at":"2026-09-24T18:15:14+00:00"}