Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about using DBA to create a average curve from several input curves #522

Open
lukas-lbm opened this issue Jul 12, 2024 · 0 comments

Comments

@lukas-lbm
Copy link

Hi,

I have a question about using DBA to get the average time series of a data set consisting of several measurements. I have collected the knee joint angles during gait for several subjects. Now I want to create the average knee flexion from this data. During my search on how to do this I found out about using DTW for averaging and thought this might a good way since in takes into consideration the slightly different curve shapes in constrast to a simple mean over all curves.

However the results I get from using DBA look very strange to me. For example using softdtw_barycenter with gamma=1, max_iter=50 and tol=1e-3 I get the following result, where the black line is the result and the colored lines are the individual input curves:
Figure_4

Here I dont understand where the spikes come from. This also happens when I try different parameters or other algorithms like dtw_barycenter_averaging.

On contrast when I use the euclidean_barycenter the output looks more like I would expect:

Figure_1

So now my question is: Is the result due to my data or did I select the wrong parameters? Or is the result supposed to look this way and DBA is simply not the right way to get a physiologically reasonable average knee flexion?

Many thanks in advance!

Best regards,
michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant