How to perform DTW or EDR with 3 vectors?
Afficher commentaires plus anciens
Hello all! I haven't worked on these stuff before and my knowledge about them only comes from internet, so I'd be happy if you could help me with my problem.
I have trajectories (in 3D) of some markers obtained from a MOCAP system. During the experiment, each subject performed several movements, and for each, we captured it 3 times. So, I have 3 trials for one movement, and I would like to average them (or create one time-series in general terms). Moreover, I am thinking to fill the missing points that are occured during only in some of those trials. However, I need to perform a "temporal normalization" first, since the events of the movement occured at slightly different instances due to patients' velocities. I came across with DTW(Dynamic Time Warping) and EDR(Edit Distance on Real Signals), but they both are used with two signals at a time. I would to use them for all 3 signals in order to obtain a common time-warped or edited signal.
Since I can't use 3 of them at the same time, I tried with pairs of them, for example:
[d1,ix1,iy1] = dtw(trial1,trial2);
[d2,ix2,iy2] = dtw(trial1,trial3);
But the new trial1 vectors i.e. trial1(ix1) and trial1(ix2) are different from each other.
Is there any way that I can use all three of my signal in DTW and/or EDR? (Maybe utilizing in a way the pairs of signals or anchoring one signal etc.)
Thanks in advance
Also, I have another question regarding to DTW (How to set proper maxsamp value in Dynamic Time Warping) with only 2 signals.
2 commentaires
Vaughn Chambers
le 5 Fév 2020
Did you ever find a solution to this problem? I am having the same issue currently.
Hüseyin Eken
le 8 Fév 2020
Réponses (2)
Eamonn
le 30 Juil 2019
0 votes
"Is there any way that I can use all three of my signal in DTW "
Yes, there are two ways DTWd and DTWi. As explained in [a].
See also a tutorual on DTW [b]
ISHEEKA DASGUPTA
le 22 Juin 2020
0 votes
Hi, Did you find a solution to this problem?i am facing a similar issue
2 commentaires
Hüseyin Eken
le 23 Juin 2020
Julian Ilham
le 17 Nov 2021
I dont know whether you have found this solution yourself. I use DTW code from: https://www.ee.columbia.edu/~dpwe/resources/matlab/dtw/ for 3 temporal signals vs 3 temporal signals
Catégories
En savoir plus sur Descriptive Statistics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
