high reserve actuators

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
Christian Greve
Posts: 40
Joined: Mon Jun 13, 2016 11:14 pm

high reserve actuators

Post by Christian Greve » Wed Jun 12, 2024 3:25 am

Dear OpenSim Moco community,

I am running an Optimization by initating MocoInverse and a MocoStudy for emg tracking. I use the DHondt_2023_model_with_3_segment_foot.osim model. The following modifications were done: at all DOFs except for the right ankle I appended strong coord actuators. I added reserve actuators for the remaining DOFs at the right ankle within the Moco environment.

Before running the MocoStudy I do parameter optimization on the right ankle-foot muscles and make sure that all normalized lengths and velocityies are within physiological ranges.

The data is a normal gait trial. RRA was performed to minimize dynamic inconsistencies.

Problem: Only with high reserve actuator forces (>250N) the simulation will converge. THe highest reserve actuator forces are at the right subtalar joint. The subtalar joint moment from ID is 15Nm max and the participant is about 40kg. Max moment of the evertor muscles is about 49Nm so I think the model should definitely be strong enough.

Do you have any suggestions where I can look at to reduce the reserve actuator forces?

With kind regards

Christian

User avatar
Mikayla Schneider
Posts: 6
Joined: Mon Aug 30, 2021 5:35 pm

Re: high reserve actuators

Post by Mikayla Schneider » Wed Jun 12, 2024 12:37 pm

Hi Christian. Unfortunately, I don't have an answer for your reserve actuator question but I was wondering if you could share how you did parameter optimization on the right ankle-foot muscles before the MocoStudy? Was that optimization within Moco, using an OpenSim tool, or with your own process? Thanks!

User avatar
Christian Greve
Posts: 40
Joined: Mon Jun 13, 2016 11:14 pm

Re: high reserve actuators

Post by Christian Greve » Wed Jun 12, 2024 10:47 pm

Dear Mikayla,

I did it within Moco. problem.addParameter()

Regards

Christian

User avatar
Mikayla Schneider
Posts: 6
Joined: Mon Aug 30, 2021 5:35 pm

Re: high reserve actuators

Post by Mikayla Schneider » Thu Jun 13, 2024 2:20 pm

How many parameters did you optimize with problem.addParameter()? I tried to do the same with 3 parameters each (max isometric force, slack tendon length, and optimal fiber length) 15 lower-body muscles and the overall simulation was so slow that I didn't even try to let it finish converging.

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

Re: high reserve actuators

Post by Nicholas Bianco » Mon Jun 17, 2024 12:40 pm

Hi Christian,

Are there any passive force structures about the subtalar joint in your model? Passive forces might be getting ignored when running inverse dynamics, so comparing ID moments could be misleading.

Finally, are the reserves used heavily in the final solution? If the reserves are strong, but the muscles produce most of the moment about the subtalar joint, then it might be fine. The large reserves could be needed for convergence if a few time points have some large dynamic inconsistencies.

Best,
Nick

User avatar
Christian Greve
Posts: 40
Joined: Mon Jun 13, 2016 11:14 pm

Re: high reserve actuators

Post by Christian Greve » Wed Jun 19, 2024 11:51 pm

Dear Nick,

@passive force structures: yes, there are ligament forces.

@are reserves used heavily? Yes, the muscles play a very small role in generating moments. But if I reduce max force of the reserves it would not converge.

Any other suggestions? Would it make sense to reduce max reserve forces but allow them to be activated up to infinity?

@parameter optimization: yes it takes long time. I optimize for tend slack length and opt fiber length in the ankle foot muscles. I am running simulations on a High Performance Cluster. That saves some time.

Thanks for your help

Christian

User avatar
Mikayla Schneider
Posts: 6
Joined: Mon Aug 30, 2021 5:35 pm

Re: high reserve actuators

Post by Mikayla Schneider » Thu Jun 20, 2024 9:06 am

I am experiencing a very similar issue and hoping that we can all find a solution so I am posting this here. This is my summary of this issue/the possible solutions:
If a simulation is unable to converge, only converges with high reserve actuators, or saturates the muscles (maximum activation an/or excitation), it seems that the muscles are not strong enough. To strengthen them,
1) Increase max isometric force of muscles. Cons: without changing optimal fiber length and tendon slack lengths, then may have higher passive force.
2) Use parameter optimization in Moco. Cons: takes a long time.
3) Simple strengthening step from the SitToStand Moco Example:

% Make problems easier to solve by strengthening the model and widening the
% active force-length curve.
for m = 0:model.getMuscles().getSize()-1
musc = model.updMuscles().get(m);
musc.setMinControl(0);
musc.set_ignore_activation_dynamics(false);
musc.set_ignore_tendon_compliance(false);
musc.set_max_isometric_force(2 * musc.get_max_isometric_force());
dgf = DeGrooteFregly2016Muscle.safeDownCast(musc);
dgf.set_active_force_width_scale(1.5);
dgf.set_tendon_compliance_dynamics_mode('implicit');
if strcmp(char(musc.getName()), 'soleus_l')
% Soleus has a very long tendon, so modeling its tendon as rigid
% causes the fiber to be unrealistically long and generate
% excessive passive fiber force.
dgf.set_ignore_passive_fiber_force(true);
end
end


4) ?? Are there any other processes that exist to increase the output force of the muscles?

If the muscle strength is still not enough:
1) Add reserve actuators --> Is it better to have a higher optimal force and lower control or vice versa?
2) ?? Are there any other ways to compensate for muscles' inability to produce the desired force?

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

Re: high reserve actuators

Post by Nicholas Bianco » Thu Jun 20, 2024 10:02 am

Hi Mikayla, Christian,

If optimizing parameters, then you problem want to set the MocoCasADiSovler property parameters_require_initsystem.

You might consider ignoring muscle passive forces in addition to activation and tendon dynamics (see ModOpIgnorePassiveFiberForcesDGF). Then you would be free to strengthen the muscles as much as you want. After that, you should be able to increase the penalty on reserve controls until the muscles take over.

If none these work, then I would consider taking a closer look at your experimental data. You might need refilter the kinematics/GRFs. I would especially look at the center-of-pressure trajectories in the data. Even small deviations from the feet can lead to large dynamic inconsistencies.

Best,
Nick

POST REPLY