Page 1 of 1

wrong results of BodyKinematics analysis

Posted: Tue Oct 08, 2019 4:55 am
by flaaaj
What may be the reason for the fact that BodyKinematics in AnalyzeTool calculates correct positions and velocities of CoMs and body orientations, but when it comes to accelerations, it does something strange and well... calculates it compeletely wrong. Pics attached

Re: wrong results of BodyKinematics analysis

Posted: Tue Oct 08, 2019 6:52 am
by tkuchida
when it comes to accelerations, it does something strange and well... calculates it compeletely wrong
It is unlikely that this type of calculation would be incorrect. My guess is that your position-level data are noisy. Differentiation degrades signal-to-noise ratio. Have you tried low-pass filtering before differentiating?

Re: wrong results of BodyKinematics analysis

Posted: Tue Oct 08, 2019 7:00 am
by flaaaj
yes, the data is filtered, tried wwith different filtering frequencies, and changing angles to radians, none of which work. But noise isn't the problem here. Notice that despite velocity growing and falling down, the accelerations are constantly on the negative, and their value is huuge. Shape of the acceleration plot seems to be valid, but it looks like it got overscaled and translated by some huge amount to the negative.

Re: wrong results of BodyKinematics analysis

Posted: Tue Oct 08, 2019 12:44 pm
by tkuchida
How were these results generated? Did you run the BodyKinematics Analysis with another OpenSim Tool?

Re: wrong results of BodyKinematics analysis

Posted: Wed Oct 09, 2019 1:20 am
by flaaaj
I have used Analyze tool.

Anyway, I have found the solution to the problem, as other users have been also struggling with this and I found some old posts. BodyKinematics uses F=ma to get accelerations, instead of double-derivating positions. And since I'm trying to extract ground reaction forces from gait data alone, I don't any forces yet, that's why it gives wrong solutions.