Joint Reaction Analysis

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
User avatar
Nicholas Vandenberg
Posts: 71
Joined: Wed Jan 20, 2021 12:47 pm

Re: Joint Reaction Analysis

Post by Nicholas Vandenberg » Thu Aug 24, 2023 12:38 pm

Yeah, I think that's exactly what I'm seeing. And the final cost function value is on the same order of magnitude as my state tracking (albeit a lesser value), but I wonder if further reducing the weight on the goal will open up those weird muscle activations? That initial figure was from running the generic goal, not specifying to minimize Fy yet. My sim with isolating Fy specifically converged this morning, but it seems like it's still not quite doing what I want and I'm getting the higher JRFs from muscle activation during swing.
minFy_plot.png
minFy_plot.png (55.94 KiB) Viewed 926 times
I'm also trying a sim where I'm isolating Fx, with the rationale being that it won't target the musculature with vertical lines of action like the glmed (which was still turned off) and maybe put more focus on constraining the hip flexors

User avatar
Nicholas Bianco
Posts: 1056
Joined: Thu Oct 04, 2012 8:09 pm

Re: Joint Reaction Analysis

Post by Nicholas Bianco » Fri Aug 25, 2023 10:07 am

What do the muscle activations look like from that solution? It would be helpful to see what you're talking about to get a sense of what's going on.
I'm also trying a sim where I'm isolating Fx, with the rationale being that it won't target the musculature with vertical lines of action like the glmed (which was still turned off) and maybe put more focus on constraining the hip flexors
Good idea, that would be an interesting comparison point.

User avatar
Nicholas Vandenberg
Posts: 71
Joined: Wed Jan 20, 2021 12:47 pm

Re: Joint Reaction Analysis

Post by Nicholas Vandenberg » Mon Aug 28, 2023 9:52 am

Forgive the screenshot, I pulled some plots from the muscle activity across a few different JointReactionGoal condition sims. Here's some of the muscle forces from the 'main' amputated limb muscles crossing the hip joint when using the generic goal, minimizing Fy specifically, and minimizing Fx specifically.
HJRF_mus_Plots.png
HJRF_mus_Plots.png (227.76 KiB) Viewed 907 times

User avatar
Nicholas Bianco
Posts: 1056
Joined: Thu Oct 04, 2012 8:09 pm

Re: Joint Reaction Analysis

Post by Nicholas Bianco » Mon Aug 28, 2023 11:55 am

I'm suprised that the generic problem and "minimize Fx" problem produced the same solution. Do the gluts have relatively constant activation (as the fiber forces indicate)? If so, that's usually a sign that you need to tighten your convergence criteria.

User avatar
Nicholas Vandenberg
Posts: 71
Joined: Wed Jan 20, 2021 12:47 pm

Re: Joint Reaction Analysis

Post by Nicholas Vandenberg » Tue Aug 29, 2023 10:59 am

Yeah, that was odd. Granted this is only a selection of the musculature, I imagine if I did a deeper dive there'd be some changes (hopefully). The glutes' activations are pretty constant so I'll look into that.

Thanks again, I appreciate all the time with troubleshooting this.
Nick

POST REPLY