Page 1 of 1

I got a negative value for activation!

Posted: Fri Nov 03, 2023 7:01 am
by yokoya0225
I ran a simulation with the forward dynamics tool and in the results there are negative values for activation.
The simulation conditions are as follows

The model "arm26" was used.
The simulation was performed for 20 seconds.
The excitation was entered only for "BIClong" and its value was increased proportionally from 0 to 0.12 from the beginning of the simulation (0 sec) to the end time (20 sec).
The model was set up so that no excitation was given to the muscles other than "BIClong" and their values were always constant at 0.
The initial state of the model was set to the value obtained when the simulation was performed without any input to the model (i.e., all muscle excitation was set to 0) and the model was in a state of complete weakness. Specifically, the elbow joint angle was set to approximately 23.2 degrees.

As a result of this simulation, the value of the "BIClong" activation, to which the input was given, decreased to a negative value immediately after the start and increased according to the input after a few seconds.
For the muscles other than BIClong, which were not given any input, the activation values decreased to negative values from the start of the simulation until the end of the simulation.

Shouldn't the value of activation take a value between 0 and 1 and not go negative?

I have attached the xml file for the control of the excitation input I used and the resulting file.Image[/img]

Re: I got a negative value for activation!

Posted: Fri Nov 03, 2023 1:17 pm
by tkuchida
The "arm26" model uses the Thelen2003Muscle model, which contains a numerical singularity at activation = 0. This may be the source of the unexpected numerical results. Some additional information can be found in the "Muscle Model Theory and Publications" section of the User's Guide (https://simtk-confluence.stanford.edu:8 ... blications) and in the API documentation for the Thelen2003Muscle class (https://simtk.org/api_docs/opensim/api_ ... ml#details) and the MuscleFirstOrderActivationDynamicModel class (https://simtk.org/api_docs/opensim/api_ ... ml#details).

Re: I got a negative value for activation!

Posted: Tue Nov 07, 2023 1:19 am
by yokoya0225
Hi, Mr Thomas Uchida.
Thank you for your response.
My question has been resolved!

Re: I got a negative value for activation!

Posted: Thu Aug 15, 2024 8:15 pm
by wangdonglin
Hi, Mr Yokoya Ryusuke.
May I ask how you solved it?I used forward dynamics and the muscle activation also appeared negative.
thank you!