🦿 Spinal Cord Rehabilitation: Electrical Muscle Stimulation, Knee Extension and Fatigue

2D interactive simulation · educational model, not medical advice
The science

The setup. After a spinal cord injury the brain can no longer command some leg muscles, but the muscle itself is intact. Functional electrical stimulation (FES) sends small current pulses through skin electrodes on the quadriceps and makes it contract, which can exercise the muscle and drive movements such as a seated knee extension. Here the lower leg (shank + foot, mass m = 3.5 kg, centre of mass 0.20 m below the knee) is a pendulum hinged at the knee. Angle θ is measured from the hanging position.

Mechanics. I θ̈ = −m g lc sinθ − bθ̇ + τstim. A small free swing has period T = 2π√(I/(m g lc)), a constant torque holds sinθ = τ/(m g lc), and with damping the envelope decays at b/(2I). These three closed forms are the numerical checks. An ankle weight adds w L² to the inertia and w g L to the gravity torque.

Muscle. Pulses at frequency f fuse into a smooth contraction: steady activation a = (amplitude) · f²/(f² + 10²), with first-order rise (0.06 s) and fall (0.12 s) times. Torque is τ = 60 N m · a · F · g(θ), where g(θ) is a simple force-versus-angle curve. Fatigue follows dF/dt = −kf a F + kr(1 − F) (fatigue while active, recovery at rest), which at full activation gives F(t) = Fss + (1 − Fss)e−(kf+kr)t. FES muscle fatigues quickly because stimulation recruits fibres in an unphysiological order; cycling the stimulation (duty < 100 %) lets the muscle recover.

Honest simplifications. A single rigid shank, a single lumped muscle, no hamstrings or hip, no joint-torque from skin and tendon beyond a soft stop at 85° and a small limit at hanging. Spasticity is a viscous-damping multiplier (real spasticity is velocity-dependent reflex activity). The maximum torque of 60 N m, the time constants, kf = 0.05 /s, kr = 0.01 /s and the 10 Hz half-activation frequency are illustrative values, not patient data. This is an educational model, not a treatment guide: stimulation settings in real therapy are set by clinicians.