7

I have time series data from mobile sensors for different motions such as walking, pushups, dumbellifts, rowing and so on. All these motions have different length of time series. For classifying them using Dynamic Time Warping (DTW), how do I choose an appropriate window size that will give good results?

Rubens
  • 4,097
  • 5
  • 23
  • 42
  • 2
    You might want to check my answers on the _Cross Validated_ site on _using DTW for time series analysis_: [DTW for clustering and/or classification](http://stats.stackexchange.com/a/131284/31372) and, if applicable, [DTW for irregular time series](http://stats.stackexchange.com/a/133826/31372). – Aleksandr Blekh Jan 19 '15 at 08:51

1 Answers1

1

If you have enough data, use cross validation.

If you don't have a lot of data, use cross validation on a similar dataset, and transfer the window size (the UCR archive has a bunch of similar dataset)

Don't forget, that the best warping window size depends on the amount of training data. As you get more data, you can have a smaller warping window, see fig 6 of http://www.cs.ucr.edu/~eamonn/DTW_myths.pdf

eamonn

eamonn
  • 11
  • 1