Page 1 of 1

Treadmill speeds on gait analysis.

Posted: Wed Jan 31, 2024 3:22 am
by jjppgarciam
Hello,

Thanks in advance for all the help you have provided me.

I have another question. I am running on my computer the code example_gait_analysis.py.
My data comes from treadmill session, but there is no way to put the treadmill speed in the settings.
When I get the gait speed it is underestimated.
Is there a way to put the treadmill speed in gait_analysis.py or somewhere else? and probably this will help as well to get more accurate results in the other gait metrics?

session: bc977b98-e6ef-4382-871e-5fee7856c873
trial : cs_5mh

Thanks a lot!

Juan Pablo

Re: Treadmill speeds on gait analysis.

Posted: Wed Jan 31, 2024 10:34 am
by suhlrich
We estimate treadmill speed from marker positions at different points in the gait cycle here. https://github.com/stanfordnmbl/opencap ... is.py#L208

Try dropping a breakpoint in that function to see what is going on.

We verified it on a couple sessions and it was within .05m/s of the treadmill speed.

Re: Treadmill speeds on gait analysis.

Posted: Thu Feb 01, 2024 2:10 am
by jjppgarciam
Thank you Scott.

I saw on your example and your paper that it was very accurate. I believe the error comes because I am analyzing a quite different gait pattern. Actually I have another error telling me the gait events are not in the correct order. But it should be because of the gait adopted.

I will try to modify that piece of code and I'll let you know if it works.

best regards!!

JP.

Re: Treadmill speeds on gait analysis.

Posted: Fri Feb 02, 2024 10:51 pm
by antoinefalisse
Thanks, keep us posted. Antoine