Page 1 of 2

Removing muscles from a model

Posted: Mon Aug 20, 2012 12:38 pm
by vahagnst
Hi,

I am trying to remove some muscles from the Hamner2010 full body model. First I tried disabling the muscles from the navigator, but static optimization failed to run. I also tried reducing the max isometric force of the muscles to very low values (1-10), but again static optimization failed. Finally, I manually deleted the muscles from the model file, and static optimization was able to complete. However, the muscle forces for all the remaining muscles were reported as zero at all times.

Does anyone have an idea what could be going wrong? Is there a better way to remove muscles from a model?

Thank you,
Vahagn

Re: Removing muscles from a model

Posted: Mon Aug 20, 2012 2:45 pm
by aymanh
Hi,

Both disabling the muscles and/or removing them from the model file should do the trick and behave identically (if not please let us know as it would be a bug).

Please consult the help page on Static Optimization here for explanation of how it works
http://simtk-confluence.stanford.edu:80 ... timization

Do you have any actuators in your model other than the muscles? If, for example, you have residual or reserve forces/actuators that do all the work then the solution will require very small or zero muscle forces.

Hope this helps,
-Ayman

Re: Removing muscles from a model

Posted: Mon Aug 20, 2012 3:30 pm
by vahagnst
Hi Ayman,

I don't have any other actuators in the model. Is there anything else that could be causing zero muscle forces?

By the way, when all the muscles are left in the model, static optimization produces reasonable results. It is only when I remove some of the muscles, that all muscle forces become zero.

Thank you,
Vahagn

Re: Removing muscles from a model

Posted: Thu Mar 17, 2016 8:35 am
by gmast
aymanh wrote:Hi,

Both disabling the muscles and/or removing them from the model file should do the trick and behave identically (if not please let us know as it would be a bug).

Please consult the help page on Static Optimization here for explanation of how it works
http://simtk-confluence.stanford.edu:80 ... timization

Do you have any actuators in your model other than the muscles? If, for example, you have residual or reserve forces/actuators that do all the work then the solution will require very small or zero muscle forces.

Hope this helps,
-Ayman
Hi,

I'm trying to disable muscles but it seems that after Static Optimisation, there isn't any difference.
This is by using 3DGaitModel2392

Thanks

George

Re: Removing muscles from a model

Posted: Thu Mar 17, 2016 10:18 am
by jimmy
Hi George,

I tested isDisabled (OpenSim 3.3) on a muscle and saw computation of activation, but no computation or application of force. The isDisabled mechanism most likely has a bug where one computation (activation) doesn't see the flag while another computation (force) does.

This is a contentious issue because it is unclear what isDisabled means in all situations. For example, if you want isDiabled to completely ignore the muscle then you wouldn't be able to visualize it since the muscle geometry path needs to computed.

Either way, isDiabled is having the correct behavior of not computing or applying forces to the model.

Cheers,
-james

Re: Removing muscles from a model

Posted: Thu Mar 17, 2016 1:34 pm
by gmast
Hi James,

Thanks for the info. I would expect that when I disable a muscle, or a set of muscles, the model will fail to walk and as a result fall down. This is the type of behaviour I'm trying to achieve. Nevertheless, this does not happen when I disable the muscles.

What if I erase the muscles completely - would that work?

Thanks

George

Re: Removing muscles from a model

Posted: Thu Mar 17, 2016 4:45 pm
by jimmy
That's not going to happen with Static Optimization or CMC. Static Optimization is an inverse method and CMC is a tracking controller, both compute muscle forces to match an experimental movement.

Once you have those muscle forces, then you can run a Forward Dynamics simulation. Taking muscles out of that simulation would result in a model falling down.

Re: Removing muscles from a model

Posted: Thu Mar 17, 2016 6:39 pm
by gmast
Great! Actually, I found those examples (Induced Accelerations-based controller for balance), which almost do what I'm after. In the case of 3DGaitModel2392 example, there isn't a ground in the model, so the human body drops all the way down to infinity. Using the models from Induced Accelerations, I have the ground, but when the human model hits the ground, the behaviour is not great, at it goes all the way under it. Please see attached image.

Thanks

Re: Removing muscles from a model

Posted: Thu Mar 17, 2016 6:51 pm
by jimmy
Im not sure what advice you are asking for here. The original question seems answered, can you please post in a thread?

Re: Removing muscles from a model

Posted: Thu Mar 17, 2016 6:55 pm
by gmast
Indeed!
Cheers!