TL;DR
Researchers have successfully demonstrated the first real-time control of a powered robotic leg prosthesis using a Recurrent Neural Network (RNN) accelerated by custom hardware. By using behavioral cloning to mimic a traditional controller, the system achieved comparable tracking accuracy on both flat ground and unforeseen slopes while running over 200 times faster than real-time requirements with minimal power consumption.
What Problem Does This Paper Address?
Powered transfemoral (above-knee) prostheses offer the promise of reduced metabolic cost and increased mobility for amputees. However, controlling these devices is notoriously difficult. They are "hybrid dynamical systems," meaning their physics change abruptly when the foot hits the ground (impacts).
Currently, most controllers rely on impedance control or PD (Proportional-Derivative) control. While effective, these methods require exhaustive manual tuning and are "blind" to the complex, non-linear nuances of human movement and intent. The authors aim to move toward more adaptive, human-centric control by proving that RNNs—which excel at processing time-series data—can handle the high-stakes, real-time demands of prosthetic walking.
Methods
The team utilized a technique called behavioral cloning (a form of imitation learning). Instead of designing a controller from scratch, they trained an RNN to "watch" and mimic a high-performing, hand-tuned PD controller.
The Architecture
The controller uses a Gated Recurrent Unit (GRU) network. GRUs are a type of RNN capable of remembering past information to inform current decisions, making them ideal for gait cycles. Specifically, they used a variant called DeltaGRU.
Hardware Acceleration: EdgeDRNN
Real-time control requires extremely low latency; if the controller lags by even a few milliseconds, the user could stumble. To solve this, the researchers deployed the network on a custom hardware accelerator called EdgeDRNN implemented on a low-cost FPGA (MiniZed).
DeltaGRU and EdgeDRNN work together to exploit temporal sparsity. In human walking, joint angles don't change wildly between every millisecond. DeltaGRU only computes updates when activations change significantly, skipping unnecessary calculations. This allows the system to run large networks with very low power and latency.
Datasets
The researchers collected data from a human subject walking on the AMPRO3 powered prosthesis.
- Scale: ~70,000 time steps of data recorded at 200 Hz.
- Content: The dataset included joint positions, velocities, phase flags (stance vs. swing), and the resulting torques generated by the "expert" PD controller.
- Splits: Five 70-second walks were recorded; three were used for training, one for validation, and one for testing.
Key Insights and Ideas
- RNNs can handle impacts: A major concern was whether a neural network could stabilize a robot after the jarring impact of a footstrike. This work proves that RNNs can learn the "partial hybrid zero dynamics" necessary to maintain stability through these discrete events.
- Generalization is "free": Even though the RNN was only trained on flat-ground data, it successfully controlled the prosthesis on uphill and downhill slopes (approx. 2.5°). This suggests the network learned the underlying physics of walking rather than just memorizing a specific path.
- Latency vs. Throughput: In robotics, latency (how fast one input becomes one output) is more important than throughput (how many inputs you can process at once). By using the EdgeDRNN accelerator, the team achieved a 51x reduction in latency compared to a standard embedded CPU (BeagleBone Black).
Key Results
The RNN-based controller was not just a simulation; it was tested on a live human subject.
- Tracking Accuracy: The RNN achieved Root Mean Square Error (RMSE) values nearly identical to the expert PD controller (e.g., 0.0592 vs 0.0514 rad for the knee on flat ground).
- Speed: EdgeDRNN computed the RNN inference in an average of 20.9 µs. Given the 200 Hz control loop (5,000 µs window), the controller is running roughly 240 times faster than real-time.
- Efficiency: The entire MiniZed system consumed only 2.012 W, with the EdgeDRNN core itself drawing a mere 0.123 W.
Limitations and Future Work
While this is a significant proof-of-concept, the authors note that the RNN currently only emulates a PD controller; it doesn't yet outperform it. The next step is to use this framework to learn more complex behaviors that are difficult to hand-code, such as transitioning between different terrains or responding to a user's specific "gait signature."
Additionally, future studies will need to address formal stability proofs for RNN controllers in these systems and test the approach across a wider variety of subjects and more challenging environments.
Summary updated