dtw means Dynamic Time Warping-type algorithms, which measure the similarity between time series with varying speeds.
Questions tagged [dtw]
124 questions
0
votes
0 answers
Error with Multi-variate Time Series clustering using dtwclust - There are missing values in the series
I am working on a time series clustering using dtwclust package in R. I am using the fundamental dataset from S&P500 stocks. The Head of the data frame is as follows :
'>print(head(DFCleanPF))
ticker reportperiod price ebitusd epsusd pe …

Prasenjit Bhadra
- 1
- 1
0
votes
1 answer
Which one? DTWi or DTWd?
My educational project is about "sign language recognition using kinect camera" .
I want to compare the hand motion trajectories using DTW as the distance measure , and then do a NN-DTW classification .
Hand trajectory is constructed from the…

At_Ta.stu
- 31
- 5
0
votes
0 answers
Convert MFCC values (Mel-frequency cepstral coefficients) into ascii files
I have code that extracs the MFCC values from a wav file:
public class MFCCTest {
public static void main(String[] args) throws Exception {
int sampleRate = 41000;
int bufferSize = 512;
int bufferOverlap = 128;
final…

Lcarrins
- 47
- 5
0
votes
0 answers
audio recognition: resize audio examples to the same length
I have an audio dataset featured with MFCCs and it is a 1D array numpy file.
There are 45K of examples in total, so it is a numpy file with 1 column and 45K row. In each row, there is a nested object with N rows and 13 columns. Since the length of…

vvx
- 35
- 6
0
votes
0 answers
DTW algorithm: simple implementation - Verification
I have tried to make a simple implementation of the DTW algorithm in C,without using any substantial optimization techniques. I am trying to use this implementation for some simple sketch recognition, which is to say finding the k closest neighbors…

Desperados
- 434
- 5
- 13
0
votes
0 answers
Hierarchical clustering of different length time series data using scipy and DTW
I have a set of time series data having different lengths and I am trying to cluster them using Dynamic Time Warping (DTW).
For the completeness of the question, I am using this simple implementation of DTW
def DTWDistance(s1, s2):
DTW={}
…

Unni
- 5,348
- 6
- 36
- 55
0
votes
0 answers
Dynamic Time Warping (DTW) for a large dataset with multiple features
I am new to DTW and was trying to apply the same for a dataset with ~700,000 rows and 9 features. I have two arrays (matrix) of the form,
[
[0 1 0 0 0 0 0 0 0],
[0 0 0 0 1 0 0 0 0],
...
[0 0 0 0 0 0 1 0 0],
[0 0 1 0 0 0 0 0 0],
]
I…

araina
- 13
- 6
0
votes
1 answer
Pandas rolling time window custom functions with multiple columns
I have timeseries data in a pandas DataFrame that looks like this :
ts serial_number device_tp tp
2017-09-19T15:00:00.000Z 4ktpjlv 21.7760333333333 17
2017-09-19T14:00:00.000Z 4ktpjlv …

Ghislain
- 115
- 1
- 5
0
votes
1 answer
different distance depending on input order using fastdtw in python
I want to find similarities between time-series and perform Dynamic Time Warping in python using fastdtw (https://github.com/slaypni/fastdtw/tree/master/fastdtw).
The computed distance is sometimes changing according to the input order, especially…

eva
- 1
- 1
0
votes
0 answers
vector memory exhausted using R package dtw
I am trying to use R package dtw to calculate the distance between two numeric vectors. Here is a sample of my code:
testNumbers <- sample(seq(from = 1, to = 60), size = 60000, replace = TRUE)
testNumbers2 <- sample(seq(from = 1, to = 60), size =…

Lisa
- 909
- 2
- 13
- 31
0
votes
1 answer
Motion data comparison
I am working on a project that involves the comparison of motion data collected from accelerometer and gyroscope sensors. Let's say that i have data for a specific type of motion (e.g throwing ball) and i have manually created segments as you can…

kostilatos90
- 11
- 4
0
votes
2 answers
rpy2 Dynamic Time Warping (dtw) in python - windowing does not work
A now closed discussion shows how to use the R dtw package in python. This is a little clumsy, but the R dtw package is great and better than currently available python dtw implementations. Unfortunately, the windowing functions like the …

benbo
- 1,471
- 1
- 16
- 29
0
votes
1 answer
C#_Using NAudio to implement STFT
This is the first time I try to analyse audio stream on C#. Without any experience, it will be grateful that you share your solution. :)
Using NAudio(an opensource for C# dealing with audio), I try to compare two audio stream with the following…

邱耀緯
- 3
- 2
0
votes
1 answer
Find the path that most closely resembles all other paths of a group of 3D paths
I am attempting to write an algorithm for finding a 3D path most closely resembles all other paths in a group of 3D paths. If you would look at the graph in the (at the bottom) provided link it should output trace1. (by eyeballing it)
To be able to…

Milan van Dijck
- 131
- 9
0
votes
1 answer
Clustering time series in R with dtwclust
I am trying my first attempt on time series clustering and need some help. I have read about tsclust and dtwclust packages for time series clustering and decided to try dtwclust.
My data consist of temperature daily time series at different…

pacomet
- 5,011
- 12
- 59
- 111