Introduction
Functional Electrical Stimulation (FES) is a vital technology that uses low-energy electrical pulses to induce muscle contractions in paralyzed individuals. This enables activities like cycling, which are essential for preventing muscle atrophy and osteoporosis. However, controlling FES-cycling is complex due to the non-linear and non-stationary nature of human muscles. Traditional control methods, such as PID or Fuzzy Logic, often require tedious manual tuning and struggle to adapt as muscles fatigue. This research presents a Deep Reinforcement Learning (RL) framework that automates the learning of personalized neurostimulation patterns.
Methodology
The researchers implemented a "neuromechanics-based" approach using the Deep Deterministic Policy Gradient (DDPG) algorithm. The system architecture is split into two specialized agents: a Starter agent to initiate movement and a Tracker agent to maintain target cadences once the bike is in motion.
Neuromechanical Simulation and Fatigue Modeling
To facilitate training without exhausting human participants, the agents were trained in the OpenSim musculoskeletal simulation environment. A key feature of this study is the inclusion of a three-state muscle fatigue model (resting, activated, and fatigued fibers). This allows the RL agents to perceive and learn to compensate for declining muscle performance during training.
The state vector for the agents includes the crank angle, cadence, target cadence, and real-time fatigue factors for six targeted leg muscles: the rectus femoris, gluteus maximus, and hamstrings. The output is a continuous stimulation intensity value (0 to 1) for each muscle.
Key Results
In simulated comparisons, the RL controller demonstrated significant advantages over traditional PID and Fuzzy Logic (FL) controllers:
- Higher Accuracy: The RL controller achieved a Root Mean Square Error (RMSE) of 0.16 at a target of 5 rad/s, outperforming PID (0.21) and FL (0.60).
- Fatigue Resilience: While PID and FL controllers failed to reach high cadences (8 rad/s) when muscles were fatigued, the RL controller successfully adapted to maintain the target.
- Faster Response: RL reached target cadences nearly twice as fast as PID (1.25s vs. 2.10s).
Real-World Validation
The system's efficacy was proven at the Cybathlon 2020 bionic Olympics. A paraplegic pilot using the RL-based controller won the silver medal, completing a 1.2 km race in 177 seconds against eight international teams.
Discussion and Future Work
This study demonstrates that RL can autonomously discover optimal stimulation timing and intensity, reducing the need for manual "tinkering." While the simulation provides "privileged access" to muscle fatigue data, future real-world applications will likely require integrating sensors like electromyography (EMG) to estimate fatigue. Further research is also needed to bridge the "sim-to-real" gap and improve the transferability of pre-trained models between different individuals.
Summary updated