Objective

The force-producing properties of muscle are complex, highly nonlinear, and can have substantial effects on movement (see McMahon, 1984 for a review). For simplicity, lumped-parameter, dimensionless muscle models that are capable of representing a variety of muscles with different architectures are commonly used in the dynamic simulation of movement (Zajac, 1989). In this exercise, you will explore the differential equations that describe muscle activation and muscle–tendon contraction dynamics when using a Hill-type muscle model. You will use OpenSim to implement a simple muscle–tendon model and conduct simulations to investigate how various model parameters affect the dynamic response of the actuator. The lab will conclude with a Virtual Muscle Tug-of-War in which you will design an optimal muscle and compete against other user-generated muscles. May the best muscle win!

By working through this lab, you will:

  • Become familiar with the differential equations describing muscle activation and muscle–tendon contraction dynamics.
  • Learn how to model and simulate muscle–tendon dynamics using OpenSim.
  • Become comfortable with modifying existing code that models muscle activation and muscle–tendon mechanics.
  • Explore the effect of various model parameters and simulation conditions on the dynamic response of muscle.
  • Design your own optimal muscle–tendon actuator to compete in a virtual muscle tug-of-war.

Acknowledgements

The original lab was designed by Jeff Reinbolt, B.J. Fregly, Kate Saul, Darryl Thelen, Silvia Blemker, Clay Anderson, and Scott Delp. The lab was refined by Hoa Hoang and Daniel Jacobs.

Model

 

 

 

 

 

Background

Millard 2012 Muscle Model

Musculotendon actuators consist of an active contractile element, a passive elastic element, and an elastic tendon. The maximum active force a muscle can develop varies nonlinearly with its length, represented by the active-force–length curve \( \mathbf{f}^{\mathrm{L}} \big( \tilde{\ell}^{\,\mathrm{M}} \big)\), peaking at a force of \( f_o^{\,\mathrm{M}}\) at a length of \( \ell_o^{\,\mathrm{M}}\) (the tilde is used to denote forces, velocities, muscle lengths, and tendon lengths that are normalized by \( f_o^{\,\mathrm{M}}\), \( v_{\mathrm{max}}^{\,\mathrm{M}}\), \( \ell_o^{\,\mathrm{M}}\), and \( \ell_\mathrm{s}^{\mathrm{T}}\), respectively). During non-isometric contractions, the force developed by muscle varies nonlinearly with its rate of lengthening, which is represented by the force–velocity curve \( \mathbf{f}^{\mathrm{V}} \big( \tilde{v}^{\,\mathrm{M}} \big)\). Force is also developed when muscle is stretched beyond a threshold length, regardless of whether the muscle is activated, which is represented by the passive-force–length curve \( \mathbf{f}^{\mathrm{PE}} \big( \tilde{l}^{\,\mathrm{M}} \big)\). Muscle force (\( f^{\,\mathrm{M}}\)) is computed using these curves as follows:

\[ f^{\,\mathrm{M}} = f_o^{\,\mathrm{M}} \left( a \mathbf{f}^{\mathrm{L}} \big( \tilde{\ell}^{\,\mathrm{M}} \big) \mathbf{f}^{\mathrm{V}} \big( \tilde{v}^{\,\mathrm{M}} \big) + \mathbf{f}^{\mathrm{PE}} \big( \tilde{\ell}^{\,\mathrm{M}} \big) \right)\]

where \( a\) is the muscle activation, which ranges from \( a_{\mathrm{min}}\) to 1.

 

Muscle attaches to bone through tendon. Since a long tendon may stretch appreciably beyond its slack length (\( \ell_{\mathrm{s}}^{\mathrm{T}}\)) when under tension, tendon is modeled as a nonlinear elastic element developing force according to the tendon-force–length curve \( \mathbf{f}^{\mathrm{T}} \big( \tilde{\ell}^{\,\mathrm{T}} \big)\). Muscle fibers attach to tendon at a pennation angle (\( \alpha\)), scaling the force they transmit to the tendon. If the tendon is assumed to be elastic and the mass of the muscle is assumed to be negligible, then the muscle–tendon force equilibrium equation (i.e., \( f^{\,\mathrm{M}} \cos \alpha - f^{\,T} = 0\)) takes the following form:

\[ f_o^{\,\mathrm{M}} \left( a \mathbf{f}^{\mathrm{L}} \big( \tilde{\ell}^{\,\mathrm{M}} \big) \mathbf{f}^{\mathrm{V}} \big( \tilde{v}^{\,\mathrm{M}} \big) + \mathbf{f}^{\mathrm{PE}} \big( \tilde{\ell}^{\,\mathrm{M}} \big) \right) \cos \alpha - f_o^{\,\mathrm{M}} \mathbf{f}^{\mathrm{T}} \big( \tilde{\ell}^{\,\mathrm{T}} \big) = 0\qquad(1)\]

We have developed default force curves for the musculotendon model that have been fit to experimental data (see Millard et al., 2013 for details). These curves can be adjusted to model muscle and tendon whose characteristics deviate from these default patterns.

 

In a forward-dynamic simulation, the force generated by a musculotendon actuator is calculated from the length (\( \ell^{\mathrm{M}}\)), velocity (\( v^{\mathrm{M}}\)), and activation (\( a\)) of the muscle. Equation (1) alone cannot be used to solve for the muscle force because multiple combinations of muscle length and velocity will satisfy the equation. A unique solution for \( \ell^{\mathrm{M}}\) and \( v^{\mathrm{M}}\) can be found by solving Eq. (1) for the normalized muscle velocity (\( \tilde{v}^{\,\mathrm{M}}\)) to obtain an ordinary differential equation, which can then be integrated to simulate muscle contraction (see Zajac, 1989):

\[ \tilde{v}^{\,\mathrm{M}} = \mathbf{f}_{\mathrm{inv}}^{\mathrm{V}} \left( \frac{ \mathbf{f}^{\mathrm{T}} \big( \tilde{\ell}^{\,\mathrm{T}} \big) / \cos \alpha \ -\ \mathbf{f}^{\mathrm{PE}} \big( \tilde{\ell}^{\,\mathrm{M}} \big) }{ a \mathbf{f}^{\mathrm{L}} \big( \tilde{\ell}^{\,\mathrm{M}} \big) } \right)\qquad(2)\]

where \( \mathbf{f}_{\mathrm{inv}}^{\mathrm{V}}\) is the inverse of the force–velocity curve. Although Eq. (1) is devoid of numerical singularities, Eq. (2) has four: as \( \alpha \rightarrow 90^{\circ}\), as \( a \rightarrow 0\), as \( \mathbf{f}^{\mathrm{L}} \big( \tilde{\ell}^{\,\mathrm{M}} \big) \rightarrow 0\), and as \( \partial \mathbf{f}^{\mathrm{V}} \big( \tilde{v}^{\,\mathrm{M}} \big) / \partial \tilde{v}^{\,\mathrm{M}} \rightarrow 0\). Since these conditions are often encountered during a simulation, the quantities causing singularities in Eq. (2) are altered so that the singularities are approached but never reached: \( \alpha < 90^{\circ}\), \( a > 0\), \( \mathbf{f}^{\mathrm{L}} \big( \tilde{\ell}^{\,\mathrm{M}} \big) > 0\), and \( \partial \mathbf{f}^{\mathrm{V}} \big( \tilde{v}^{\,\mathrm{M}} \big) / \partial \tilde{v}^{\,\mathrm{M}} > 0\).

 

Without modifying the formulation of the equilibrium model, the muscle is able to reach unrealistically short lengths (Thelen, 2003) and cannot be simulated when fully deactivated. We use a unilateral constraint on muscle length to prevent the muscle from becoming unrealistically short:

\begin{align*} \tilde{v}^{\,\mathrm{M}} = \begin{cases} 0 &: \tilde{\ell}^{\,\mathrm{M}} \leq \tilde{\ell}_{\mathrm{min}}^{\,\mathrm{M}} \;\;\text{and}\;\; \tilde{v}^{\,\mathrm{M*}} < 0\\ \tilde{v}^{\,\mathrm{M*}} &: \text{otherwise} \end{cases} \end{align*}

where \( \tilde{v}^{\,\mathrm{M*}}\) is a candidate value for \( \tilde{v}^{\,\mathrm{M}}\) computed using Eq. (2).

 

Design Challenge

The competition is a single-elimination tournament between pairs of muscles. Each match is a one-second forward dynamic simulation where each muscle starts with minimal activation (a = 0.01). The match is won by the muscle that has moved the block to its side of the arena at the end of the simulation. Your challenge is to specify the muscle–tendon parameters and excitation time history necessary to overcome the other challengers.

References

  1. Anderson, F.C. and Pandy, M.G. (1999). A dynamic optimization solution for vertical jumping in three dimensions. Computer Methods in Biomechanics and Biomedical Engineering, 2(3):201–231.
  2. Hatze, H. (1976). The complete optimization of a human motion. Mathematical Biosciences, 28(1–2):99–135.
  3. McMahon, T.A. (1984). Muscles, Reflexes, and Locomotion. Princeton University Press, Princeton, New Jersey.
  4. Millard, M., Uchida, T., Seth, A., Delp, S.L. (2013). Flexing computational muscle: modeling and simulation of musculotendon dynamics. ASME Journal of Biomechanical Engineering, 135(2):021005.
  5. Schutte, L.M. (1993). Using Musculoskeletal Models to Explore Strategies for Improving Performance in Electrical Stimulation-Induced Leg Cycle Ergometry. PhD Dissertation, Mechanical Engineering Department, Stanford University.
  6. Thelen, D.G. (2003). Adjustment of muscle mechanics model parameters to simulate dynamic contractions in older adults. ASME Journal of Biomechanical Engineering, 125(1):70–77.
  7. Winters, J.M. (1990). Hill-based muscle models: a systems engineering perspective, in Multiple Muscle Systems: Biomechanics and Movement Organization, edited by Winters, J.M. and Woo, S.L., Springer-Verlag, New York.
  8. Zajac, F.E. (1989). Muscle and tendon: properties, models, scaling, and application to biomechanics and motor control. Critical Reviews in Biomedical Enginering, 17(4):359–411.