-
I'm currently working with IMU and other sensor data obtained by a car, which gives we hours of 10-dimensional (i.e. 10 sensors) time series data. I have a target sequence (e.g. driving through a s-curve) and need to find similar occurrences in my data. I tried the stumpy.match(target, ts) function, but apparently it is not suitable for multidimensional time series. Is there any way to solve this problem with stumpy? Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@huberl Thank you for your question and welcome to the STUMPY community. Can you please tell me which version of STUMPY you currently have installed? In Python:
I believe that Alternatively, if this doesn't suit your needs then I recommend taking a look at the contents of the The most important thing is that And then it computes the mean across all dimensions. I hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer @seanlaw! It indeed was a version issue. With version 1.11.1 the As mentioned here and in the Matrix Profile VI paper, simply averaging over all dimensions rarely produces good results. It probably makes sense to call it a match if at least k dimensions have a good match. What do you think about it? |
Beta Was this translation helpful? Give feedback.
-
I modified the original code slightly, which gave pretty good results.
|
Beta Was this translation helpful? Give feedback.
@huberl Thank you for your question and welcome to the STUMPY community. Can you please tell me which version of STUMPY you currently have installed?
In Python:
I believe that
stumpy.match
should be able to handle multi-dimensional time series starting around version1.11.x
(thanks to some excellent work by @mihailescum and @SaVoAMP) but would fail with older versions. However, please note thatstumpy.match
will compute the average distance (averaged across all 10 dimensions) as this is consistent with the definition put forth by the original "matrix profile" authors.Alternatively, if this doesn't suit your needs then I recommend taking a look at …