Switching a muscle on and off
The question. When a nerve tells a muscle to pull, how soon does the pull arrive, and how soon does it stop when the signal ends?
A simulated arm is driven by signals, one per muscle, that say how hard each muscle should work. If force followed those signals instantly, a simulated limb could start and stop in no time at all. Real muscle cannot. Its force rises a little after the signal and lingers after the signal has gone, and that delay shapes every quick movement. The simulator needs a rule for it.
By the end you will be able to follow a muscle’s state of activity through time for any signal, using two time constants.
From signal to force
The curves of the last two chapters were for a fibre that is fully switched on. Here is what “switched on” means, in outline (Bolaños & Calderón 2022, section 2.2).
- An electrical pulse. A nerve signal sets off a brief electrical pulse on the fibre’s outer membrane, the action potential. It lasts 1.5 to 2.5 milliseconds (ms, thousandths of a second) and travels along the fibre and, through fine tubes, into its interior.
- Calcium is released. Inside the fibre is a store of calcium. The pulse opens channels in the store and calcium floods out among the filaments. Release peaks 2 to 3 ms after the action potential.
- Calcium unlocks the filaments. Calcium binds to a protein on the thin filaments, and only then can cross-bridges take hold and pull. Contraction begins 2 to 3 ms after release starts.
- Calcium is pumped back. Pumps in the wall of the store carry the calcium back in. As it leaves the filaments, the cross-bridges can no longer take hold and the fibre relaxes.
Those times come from experiments on mammalian fibres at room temperature or a little below. One action potential produces one short pulse of force. A muscle that is working receives action potentials in a rapid train, and the pulses of force merge into a steady pull.
Two facts follow, and they are all the simulator keeps of this chain.
Force does not follow the signal instantly. Every step takes time.
Switching off is slower than switching on. Release is a flood through open channels: the calcium level among the filaments rises in 1 to 2 ms. Removal is pumping. After a single action potential the level takes 13 to 25 ms to fall in the fastest kinds of fibre and up to 80 ms in the slowest, and the pumps are still working after 60 ms (section 3.1).
Excitation and activation
The simulator replaces the chain with two numbers, each between 0 and 1.
- Excitation, , is the strength of the signal arriving at the muscle. It is the simulator’s input: 0 is silence, 1 is the strongest signal.
- Activation, , is the share of the fibre’s force-making machinery that is switched on at this moment. It is the number that will multiply the active force in the next chapter.
Activation chases excitation. The simplest rule for a chase is: move toward the target at a rate proportional to the distance still to go.
In words: the rate of change of activation equals the gap between excitation and activation, divided by a time. The time (the Greek letter tau), in seconds, is the time constant. A rule like this, with one rate of change and nothing more, is called first-order.
To see what means, hold fixed and let the gap be . The rule says : the gap shrinks at a rate proportional to itself. The function that does this is , where is the gap at the start and the in is the number 2.718…, not the excitation. After a time the gap has shrunk to of what it was. So is the time needed to close 63 % of the gap.
Two time constants
Because switching off is slower, the standard models use a short time constant, , while activation is rising and a longer one, , while it is falling. They also let the speed of the chase depend on how active the muscle already is (Thelen 2003, Appendix, equations 1–2):
In words: rising slows down as activation gets higher, and falling slows down as activation gets lower. The source’s explanation is that calcium release becomes less effective as the fibre fills with calcium, and that the pumps have less to work on as it empties.
The values in use are:
| Model | Source | ||
|---|---|---|---|
| Thelen 2003, young adults | 15 ms | 50 ms | Table 1 |
| Thelen 2003, older adults | 15 ms | 60 ms | Table 1 |
| Millard et al. 2013, defaults | 10 ms | 40 ms | section 2.1 |
| De Groote et al. 2016 | 15 ms | 60 ms | equations 1–2 |
Every one of these is an assumption handed from one model to the next. None is a direct measurement in human muscle, and no such measurement was found for this book. When a model of this kind was fitted to force recordings from a rat muscle, the best activation time constant came out between 23 and 38 ms, depending on how the tendon was modelled (Millard et al. 2013, section 3).
The smooth form the simulator uses
The two-branch rule has a corner where . The simulator’s model was written for methods that search for the best set of muscle signals, and those need equations without corners, so it blends the two branches with a smooth switch (De Groote et al. 2016, equations 1–2):
The function is an S-shaped curve that runs from −1 to +1 and passes through 0 at 0. In words: when excitation is well above activation, is close to , the first term gets all the weight and the second none, and we are back to the rising branch. When excitation is well below activation, is close to and only the falling branch is left. The constant sets how sharp the switch is.
The published value is . With it the switch is so gentle that both branches always carry about half the weight: switching on is slower, and switching off faster, than the two time constants suggest. The reference program for this model keeps 0.1 as its default but recommends 10, which separates the branches cleanly (OpenSim 4.6). The lab below lets you compare the two.
A worked example
Take ms and ms, and a muscle resting at with the same excitation. At time zero the excitation jumps to 1.
How long until activation is 0.5? With the rising branch is
The fraction can be rewritten as (put both over to check). Adding up the small pieces from to , with the rules from Adding up small pieces:
| Target | Calculation | Time |
|---|---|---|
| 9.5 ms | ||
| 48.8 ms |
The first half arrives in under 10 ms; the climb from 0.5 to 0.9 takes four times as long.
And switching off? If the excitation drops back to 0.01 when , the falling branch gives 27.2 ms for activation to come down to 0.5, nearly three times the 9.5 ms it took to get there.
Try it
The lab sends one pulse of excitation and plots the activation that results. Everything happens within a second, so playback starts ten times slower than life.
- Check the worked example. With the default settings the readouts give 9.47 ms for switch-on to reach half and 27.18 ms for switch-off to fall back to half.
- Watch it. Press Play. The blue bar, excitation, jumps; the red bar, activation, chases it, quickly at first and then more slowly.
- Predict, then check. If you double the deactivation time constant to 120 ms, what happens to the two half-times? Try it. Switch-off doubles to 54.4 ms; switch-on does not change.
- A short pulse. Set the pulse length to 20 ms. Activation is cut off before it gets to 1: it peaks near 0.7. A muscle cannot be fully switched on by a signal shorter than a few time constants.
- Blend the branches. Choose the published blend, . Predict which way each half-time moves. Switch-on becomes slower, 14.6 ms, and switch-off faster, 20.6 ms. The dashed curve, which uses the two separate branches, shows what was lost.
Check against measurement
There is no direct check, because activation cannot be measured: it is a number inside a model. Two indirect comparisons are possible.
Calcium. The measured calcium level rises in 1 to 2 ms and falls over tens of milliseconds, so switch-off is slower than switch-on by a large factor, as in the model. But the model’s 10 to 15 ms for switching on is several times longer than the calcium rise. The time constants were chosen to make whole-muscle force come out right; they stand for the whole chain from signal to working cross-bridges.
Twitches. A single stimulus to a human muscle produces a pulse of force called a twitch. In studies of the ankle muscles of young adults, the force took 55 to 146 ms to reach its peak and a further 55 to 123 ms to fall by half; a model with 15 ms and 50 ms, given a 5 ms pulse, produced 50 to 88 ms and 73 to 87 ms (Thelen 2003, Table 3, which quotes the measurements from earlier studies not read for this book). The model twitches are in the measured range but toward its fast end. A twitch also includes the time the fibres take to stretch the tendon, which is the subject of Balancing fibre against tendon, so it does not test activation alone.
The arm of the later parts uses that test the other way round. It keeps 15 ms for switching on and sets the time for switching off so that an evoked twitch of its biceps and brachialis, in the posture of the measurement (shoulder raised forward 50°, elbow at a right angle, palm up), falls from its peak to half in 66.1 ms: the time measured in fourteen young men, in twitches evoked by a pair of electrical pulses over the biceps (Arney et al. 2025, Table 3). That takes 68 ms, where the published model it starts from has 60 ms. With 68 ms a pulse of 4.2 ms gives a twitch of 12.5 N·m, 0.201 of the voluntary maximum of 62.1 N·m, and it relaxes to half in 65.7 ms; with 60 ms the same twitch relaxes to half in 60.1 ms. Over the spread of the young men’s twitch sizes, 0.191 to 0.228 of their maximum, the model’s half-relaxation runs from 64.6 to 68.0 ms. Since the twitch includes the tendon’s recoil, the 68 ms stands for more than activation alone.
Re-fitted in passive round M1 (28 November 2026). When the arm’s line muscles took a softer passive curve, measured on a whole human muscle (How a fibre makes force: length), the twitch with 68 ms relaxed to half in 69.6 ms, 0.33 standard deviations from the measured 66.1 ± 10.6 ms but outside the fit’s own window of ±2 ms. The time was fitted again by the same procedure: 63 ms, with which the twitch relaxes to half in 66.0 ms. The published 60 ms now gives 64.1 ms. The numbers of the paragraph above are those of the first fit, before the new curve.
What a twitch measures
A measured twitch is a torque at the wrist of a strapped arm, and three choices decide what the model’s twitch is compared with.
- Which muscles the current reaches. The electrodes lay over the belly and the lower tendon of biceps. Stimulated that way, the current reaches the nerve fibres of biceps and of brachialis, which lies under the lower half of biceps (Todd et al. 2003, read in part); brachioradialis, further out and lower down, is not described as reached. So the model stimulates both heads of biceps and brachialis, and the other elbow muscles stay at rest.
- Potentiation. The measured twitches were evoked at rest just after each maximal effort. A muscle that has just worked hard answers a brief stimulus with more force than a rested one, while its greatest force is unchanged; this is post-activation potentiation. In eleven young men a single twitch of the elbow flexors grew from 0.103 to 0.163 of their maximal voluntary force after a maximal effort, a factor of 1.58 (Kohn et al. 2018). The model multiplies the stimulated fibres’ activation by 1.58 and caps it at full activation, so that the greatest force does not change. The cap is an assumption: the model does not follow the history of contraction that potentiation comes from. With it, the model’s twitches grow by 1.45 to 1.50 times, a little less than 1.58, because the peak of a longer pulse runs into the cap.
- What the twitch is divided by. The study gives each twitch as a share of the man’s greatest voluntary torque. A maximal effort does not drive a muscle fully: the young men reached a voluntary activation of 96 % of full, measured by stimulating the brain during the effort (Arney et al. 2025, Table 3). So the model’s twitch is divided by its torque with every elbow flexor at 0.96 of full activation, 62.1 N·m in this posture, and set to the young men’s own share, 0.201 (0.191 to 0.228).
Each choice moved the fit. Before them, a twitch of biceps alone, rested and divided by the flexors’ full torque, could not reach the measured share with any pulse short enough to be a twitch.
What this model leaves out
- Fatigue. A real muscle that keeps working tires, and experimenters rest a muscle for minutes between contractions to keep fatigue out of their results (Seiberl et al. 2015, Methods). Here the same excitation gives the same activation for ever. No chapter of this book adds fatigue.
- Recruitment. A muscle’s fibres are switched on in groups, called motor units, and bringing in all the groups takes time. One model that needs this adds a further 40 ms delay between the intended signal and the excitation (Thelen 2003, Methods). In this simulator the excitation is simply given.
- History. Activation depends on the excitation and nothing else. What the muscle did a moment ago changes the force of real fibres; see The fibre as a force generator.
- Differences between muscles. Fast and slow kinds of fibre handle calcium at very different speeds. The model uses one pair of time constants for every muscle.
Summary
- A nerve signal reaches the filaments through a chain: action potential, calcium release, calcium binding, calcium pumped away. Release is quick; pumping is slow.
- The simulator keeps two numbers: excitation, the signal, and activation, the share of the fibre’s force that is switched on.
- Activation chases excitation with a time constant of about 15 ms when rising and 50 to 60 ms when falling. These published values are assumed, not measured; the arm of later parts fits its falling one, 63 ms since passive round M1 (68 ms before), to measured twitches.
- The simulator blends the rising and falling rules with a smooth switch; how sharp the switch is changes the result noticeably.
Next: activation, length and speed are combined into one force: The fibre as a force generator.