Personalization of a Commercial Powered Knee Prosthesis Under Clinically Realistic Conditions via Reinforcement Learning: A Feasibility Study
Personalization of powered prosthesis control to individual user needs remains a significant challenge. To address this challenge, policy iteration with constraint embedded (PICE), a reinforcement learning (RL) tuning approach, has been developed and validated.
From the abstract. Our summary is in progress.
Full paper
Personalization of a Commercial Powered Knee Prosthesis Under Clinically Realistic Conditions via Reinforcement Learning: A Feasibility Study
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.30928 (PDF).
Abstract
Personalization of powered prosthesis control to individual user needs remains a significant challenge. To address this challenge, policy iteration with constraint embedded (PICE), a reinforcement learning (RL) tuning approach, has been developed and validated. This feasibility study investigated whether the developed approach can personalize a commercial powered knee prosthesis under clinically realistic conditions. To reduce the time for personalization, tuning was initialized with a policy learned offline from one non-disabled participant walking on a treadmill and was then applied to three other non-disabled participants walking with the knee through a bypass adapter on a 5-meter walkway. All participants reached the goal within 8–18 tuning steps (1.7–4.2 minutes of walking), reducing the knee-kinematic feature error by 64–90% on average. These results support the feasibility of implementing the RL-based tuning approach in clinically realistic conditions with space and equipment constraints.
Index Terms:
rehabilitation robotics, human–robot interaction
I Introduction
For individuals with transfemoral amputation, powered knee prostheses can generate positive mechanical power during gait, which passive knees cannot [1]. Research prototypes have demonstrated clinical benefits in laboratory settings [2], and clinical evaluations of commercial devices have reported improved biomechanical outcomes and favorable user feedback [3], yet these benefits are not fully realized across users [4, 5, 6]. This inconsistency has limited the adoption of powered prostheses in clinical practice and everyday use [3]. A major bottleneck is personalizing the controller to each user [7, 8]. Across robotic lower-limb prostheses, user outcomes depend on how the controller is configured [3, 9, 10]. Commonly used prosthesis control approaches, from finite-state impedance control [11, 2], continuous impedance control [12], hybrid kinematic–impedance control [13], and model-based control [14] to recent learning-based controllers trained in simulation [15], all require per-user customization to achieve clinical benefits [9].
Personalization must account for many user-specific factors and is predominantly performed manually without a standardized procedure. Parameters must be adjusted to each user’s body size and gait style [16, 5]. Some factors also change over time: users re-weight movement goals such as efficiency and stability as environmental risk changes [17, 18], and users adapt their motor control to the device [19], so a configuration tuned once may need to be revisited. In current practice, prosthetists tune the parameters by observing the user across walking trials [11], which is time-consuming and relies on expert knowledge of many interacting parameters: even with a structured starting configuration, 24 of the 140 parameters of a powered knee–ankle prosthesis had to be adjusted for each user, taking up to 5 hours in one such approach [11]. Moreover, clinical evaluations often do not report the tuning procedure or criteria used [3, 5], which makes outcomes difficult to compare across studies.
\pi using prior experience \mathcal{D}_{o} and updates the policy using user-specific tuning experience \mathcal{D}_{\mathrm{new}} collected during walking. The updated policy generates parameter adjustments \Delta\mathbf{c} for the proprietary low-level controller, enabling iterative personalization through a closed-loop tuning process without replacing the underlying controller. Red and blue indicate onboard and offboard computation, respectively.Automating tuning toward a prescribed goal could shorten clinic visits, standardize fitting procedures, reduce dependency on subjective expert tuning, which could be biased, and let users benefit more fully from powered prostheses. Such automation is commonly framed as human-in-the-loop optimization (HILO) [8]. Black-box optimizers that search for a single best parameter set, such as covariance matrix adaptation evolution strategy and Bayesian optimization, have reduced the metabolic cost of walking with exoskeletons [20, 21], but have not outperformed generic control for prosthesis users [22], likely because users’ motor control and objectives change as they adapt to the device [22, 19]. Another common HILO framework is reinforcement learning (RL) with human-subject testing in the loop, which instead drives the prosthesis motion toward a target profile [23, 15]. Rather than searching for a single optimum, it learns a tuning policy that maps the observed knee-motion error to incremental parameter adjustments [7], which can be reapplied whenever the user’s condition changes. Policy iteration with constraint embedded (PICE) [24] tuned 12 impedance parameters within 45 tuning steps, and the resulting policies remained effective across users and task modifications. RL tuning has since been extended to continuous impedance control [12] and to shaping the user’s thigh motion [25]. RL tuning frameworks such as PICE could therefore serve as a general tuning mechanism, but there are still challenges to be addressed to ensure practical implementation in clinics [7, 24, 12].
Our previously validated PICE algorithm [24] has so far been used to tune prosthesis impedance only during treadmill walking, where continuous walking at a fixed speed keeps gait variability low [26]. In clinical practice, however, prostheses are typically tuned during self-paced overground walking [13], which produces more variable gait and is interrupted by frequent stops and turns imposed by limited walkway space. Whether PICE can tune a prosthesis effectively under these clinically realistic conditions remains an open question. In this study, we tested PICE on a commercial powered knee prosthesis under such conditions. We further asked whether tuning for a new user can be accelerated by reusing prior experience from another user. Building on [24], which showed that offline data can improve tuning efficiency, we initialized tuning with a policy learned offline from one non-disabled participant walking on a treadmill, rather than starting from scratch. We then used this policy to tune the knee for three other non-disabled participants walking overground with a bypass adapter, and, for one participant, toward a second set of target knee kinematics. We show that all participants reached the goal within 8–18 tuning steps, corresponding to 1.7–4.2 minutes of walking, reducing the knee-kinematic feature errors by 64–90%. These results are a preliminary step toward clinically relevant automated prosthesis tuning.
The remainder of this paper is organized as follows. Section II describes the system setup and formulates the problem, Section III describes the tuning method and evaluation protocol, Section IV reports results, and Section V discusses limitations and concludes.
II System Setup & Problem Formulation
II-A System Setup
c_{1} initial stance angle, c_{2} stance knee flexion level, c_{3} swing initialization level, and c_{4} maximum swing flexion angle. Bottom right: knee angle over two gait cycles, streamed from the knee’s onboard sensors at about 50 Hz; shaded regions mark stance.The tuning was performed on the Power Knee from Össur1, a commercially available robotic knee prosthesis, with non-disabled participants. The prosthesis was mounted on an L-shaped bypass adapter and connected distally to a pylon and an unactuated prosthetic foot (Fig. 2, left). The knee’s proprietary low-level controller was treated as a black box. Tuning used only the knee’s onboard sensors, with the policy computed on a laptop connected to the knee; no motion capture or other laboratory equipment was needed. The tuner interacted with the knee only through four clinical parameters exposed for prosthetist fitting (Fig. 2, top right): the initial stance angle c_{1}, the stance knee flexion level c_{2}, the swing initialization level c_{3}, and the maximum swing flexion angle c_{4}, each normalized to [0,1]. Knee angles measured by the knee’s onboard sensors were streamed at about 50 Hz (Fig. 2, bottom right) to a laptop, which received the stance and swing phases segmented by the knee’s proprietary firmware from its load-cell measurements, extracted the gait features, and sent the updated parameters back to the knee.
II-B Problem Formulation
We formulate clinical tuning as an RL problem. The unknown dynamics of the human–robot coupled system and the low-level control are treated as a black box whose only interface is the vector of four clinical parameters \mathbf{c}=[c_{1},\dots,c_{4}]^{\top} (Fig. 2), bounded by the normalized set \mathcal{C}=[0,1]^{4}. We selected phase-specific knee-kinematic extrema as tuning features: the peak flexion and peak extension angles in stance and in swing, \mathbf{y}=[\theta^{\mathrm{st}}_{\max},\theta^{\mathrm{st}}_{\min},\theta^{\mathrm{sw}}_{\max},\theta^{\mathrm{sw}}_{\min}]^{\top}, with ranges [\underline{y}_{i},\overline{y}_{i}] of [4,30], [0,18], [40,80], and [4,13] deg, respectively. These features were selected because they directly characterize the powered prosthesis knee motion influenced by the clinical parameters and can be reliably extracted from onboard measurements for online tuning. The feature ranges were set from the variability in previously collected gait data and limited to values considered safe for walking. Compared with broader gait outcomes, such as symmetry, joint kinetics, or metabolic cost, they provide a compact, phase-specific, and clinically interpretable objective without requiring additional instrumentation or full-trajectory comparison [27].
Tuning occurred every 6 gait cycles, and at each tuning step k, knee-kinematic features were extracted from the average knee profile of the most recent 4 gait cycles. The state \mathbf{x}_{k}=[x_{1},\dots,x_{4}]^{\top} is the error of each feature from its target y_{i}^{\ast}, normalized by half the width of its range, x_{i}=2(y_{i}-y_{i}^{\ast})/(\overline{y}_{i}-\underline{y}_{i}),i=1,\dots,4. This formulation permits user-specific target selection within the prescribed feature ranges. The policy maps the state to a parameter increment as the action, \mathbf{a}_{k}=\pi(\mathbf{x}_{k}), and the parameters are updated as \mathbf{c}_{k+1}=\Pi_{\mathcal{C}}(\mathbf{c}_{k}+\mathbf{a}_{k}), where \Pi_{\mathcal{C}} projects onto \mathcal{C}. Each tuning step yields the reward
r_{k}=-\left(\mathbf{x}_{k+1}^{\top}\mathbf{W}\,\mathbf{x}_{k+1}+\mathbf{a}_{k}^{\top}\mathbf{R}\,\mathbf{a}_{k}\right),which penalizes the weighted feature error and the size of each adjustment, with \mathbf{W}=I and \mathbf{R}=0.3I.
The goal is to train a policy that maximizes the action-value function
Q^{\pi}(\mathbf{x},\mathbf{a})=\sum_{k=0}^{\infty}\gamma^{k}r_{k},\quad\mathbf{a}_{k}=\pi(\mathbf{x}_{k}),i.e., \pi^{\ast}=\arg\max_{\pi}Q^{\pi}, where \gamma=0.95 is the discount factor. The transition from \mathbf{x}_{k} to \mathbf{x}_{k+1} depends jointly on the black-box controller and the user, neither of which is modeled; \pi is learned model-free with PICE [24] (Section III).
III Methodology
III-A Policy Iteration with Constraint Embedded
We adopted PICE [24], a constrained variant of least-squares temporal-difference Q-learning (LSTD-Q) [28], as the RL backbone. PICE is model-free, data-efficient, and has been previously validated for prosthesis tuning [24, 12]. It approximates the action-value function \hat{Q}^{\mathbf{w}}(\mathbf{x},\mathbf{a}) using a parameterized function with weights \mathbf{w}. The resulting tuning policy selects the action that maximizes the estimated action-value function. Specifically, the negative action-value function is expressed as a quadratic cost \mathbf{z}^{\top}\mathbf{H}\mathbf{z}, where \mathbf{z}=[\mathbf{x}^{\top},\mathbf{a}^{\top}]^{\top} is the augmented state-action feature vector and \mathbf{H} is a symmetric matrix uniquely determined by \mathbf{w}, since \mathbf{w} collects the entries of the upper-triangular part of \mathbf{H}. At each tuning step, the policy selects the parameter increment \mathbf{a}=\Delta\mathbf{c} within the admissible action space \mathcal{A}=[-0.15,0.15]^{4} by solving
\pi(\mathbf{x})=\arg\max_{\mathbf{a}\in\mathcal{A}}\hat{Q}^{\mathbf{w}}(\mathbf{x},\mathbf{a})=\arg\min_{\mathbf{a}\in\mathcal{A}}\;\mathbf{z}^{\top}\mathbf{H}\,\mathbf{z}.PICE constrains the learned weights to the feasible set \mathcal{E}=\{\mathbf{w}:\mathbf{H}\succeq 0,\ \|\mathbf{w}\|\leq{\rho}\}, where \mathbf{H}\succeq 0 denotes positive semidefiniteness and \rho=100 bounds the weight norm. These constraints ensure that the resulting optimization problem is convex and admits a globally optimal solution.
Initializing the learning process from scratch may require substantial clinical tuning time [24]. To reduce this burden, we constructed an offline prior using previously collected prosthesis tuning data. Specifically, an offline dataset \mathcal{D}_{o} consisting of N_{o}=150 tuning steps was collected from one non-disabled participant (AB0) walking on a treadmill at 0.8 m/s. During data collection, the clinical parameters were adjusted using randomly sampled increments from \mathcal{A} to explore the admissible action space. PICE was then applied to \mathcal{D}_{o} to obtain the offline policy weights \mathbf{w}_{o}. For each new user, the tuning process was initialized with the offline policy parameterized by \mathbf{w}_{o}. During online tuning, each tuning step added one sample (\mathbf{x}_{k},\mathbf{a}_{k},r_{k},\mathbf{x}_{k+1}) to a user-specific dataset \mathcal{D}_{new}. Every N_{b}=12 tuning steps, PICE was rerun to update the learned weights \mathbf{w} following the procedure in [24].
III-B Participants and Protocol
- AB0
- Prior
- M
- 30
- 1.73
- 75.0
- AB1
- Tuning
- M
- 21
- 1.70
- 68.0
- ✓
- AB2
- Tuning
- M
- 30
- 1.76
- 86.2
- ✓
- ✓
- AB3
- Tuning
- M
- 33
- 1.70
- 70.3
- ✓
The study was approved by the Institutional Review Board of the University of North Carolina at Chapel Hill (protocol #29310), and all participants gave written informed consent. All completed trials were analyzed regardless of outcome.
Participants walked at a self-selected speed on a 5-meter level walkway with an overhead safety harness. Due to limited walking distance, gait cycles associated with stopping, turning, and gait initiation were excluded from feature extraction and tuning updates to avoid transient gait patterns. The algorithm tuned knee motion toward specified targets only during the steady-state gait cycles. To evaluate the feasibility of this framework under controlled experimental conditions, the gait feature targets were predefined and held constant within each trial. Target T1 =[12.0,8.0,63.0,9.0] deg, derived from previously collected gait data, was used for all participants. A second target, T2 =[8.0,2.0,50.0,8.0] deg, was additionally tested with AB2 in a separate trial to evaluate adaptation to different targets without modifying the optimization procedure. The target order for AB2 was randomized. Each trial started from the prior policy (Section III-A) and a random initial parameter setting \mathbf{c}_{0}.
A trial was considered successful if, within 10 minutes of walking, both criteria were satisfied in at least four of the five most recent tuning steps: (i) all normalized feature errors satisfied |x_{i}|<0.3, corresponding to 3.9, 2.7, 6.0, and 1.4 deg for the stance maximum, stance minimum, swing maximum, and swing minimum, respectively; and (ii) the reward (Eq. 1) exceeded -0.5. Otherwise, the trial was terminated and classified as a failure. The success criteria were defined to evaluate convergence toward the prescribed kinematic targets rather than to establish clinically optimal gait performance. The thresholds were selected based on prior observations of kinematic variability during self-paced walking.
III-C Outcome Measures and Statistics
The primary outcomes were trial success or failure, the absolute feature errors |y_{i}-y_{i}^{*}| at the first and last tuning steps, and the number of tuning steps, with the corresponding net walking time, defined as the total trial time minus the time during transient steps. As secondary outcomes, we report the reward r_{k} in Eq. 1 at each tuning step and the knee-angle profile over the gait cycle at the start and end of tuning. When a trial triggered an online policy update, we evaluated the update with the temporal-difference (TD) error of the learned action-value function on the transitions collected after the update,
\delta_{k}=r_{k}+\gamma\,\hat{Q}^{\mathbf{w}}\big(\mathbf{x}_{k+1},\pi(\mathbf{x}_{k+1})\big)-\hat{Q}^{\mathbf{w}}(\mathbf{x}_{k},\mathbf{a}_{k}),where \pi is the greedy policy of Eq. 3. The TD error is the residual of the Bellman equation: it is zero when \hat{Q}^{\mathbf{w}} exactly predicts the observed reward plus the discounted value of the next state. We report its root-mean-square (RMS) value, \sqrt{\tfrac{1}{n}\sum_{k=1}^{n}\delta_{k}^{2}}, where n is the number of evaluated transitions, for the offline policy and the updated policy, both evaluated on tuning steps that neither policy was trained on. With one to three participants per condition (Table I), results are reported per participant and condition, without statistical tests.
IV Results
y_{i}-y_{i}^{*}, in degrees. Gray bands mark the goal range: a reward above -0.5 in (A) and the goal threshold of each feature in (C). Vertical dashed lines in (A) and (C) mark step 12, the first scheduled online policy update (N_{b}=12), which only AB3 reached.|y_{i}-y_{i}^{*}|, at the first (light) and last (dark) tuning step; dashed lines mark the goal threshold of each feature, and percentages give the reduction in the error averaged over the four trials. Hatched bars: AB2 with target T2.Fig. 4 summarizes every trial. All four completed trials met the success criterion within 8–18 RL steps (1.7–4.2 min of walking; Figs. 3A and 4B), well within the 10-minute limit. Averaged over the four trials, the absolute error fell by 90%, 81%, 86%, and 64% for the stance maximum, stance minimum, swing maximum, and swing minimum, respectively (Fig. 4C). No falls or harness catches occurred in any trial.
IV-A Individual Tuning Toward Two Targets
With target T1, AB1, AB2, and AB3 reached the goal in 8, 10, and 18 RL steps, corresponding to 1.7, 2.3, and 4.2 min of walking (Figs. 3A and 4B). With target T2, AB2 reached the goal in 8 RL steps (1.7 min). Across the four trials, the negative reward decreased from 1.17–2.70 at the first tuning step to 0.06–0.20 at the last, an improvement of 83–97% (Fig. 4A).
Swing maximum flexion had the largest initial error in the T1 trials, 17.2–21.0 deg, and was reduced to 1.3–4.3 deg by the end of tuning (Fig. 4C). At the end of tuning, all four feature errors were within their goal thresholds in every trial, and the knee-angle profile matched the target in both stance and swing (Figs. 4C and 5).
The tuned profile followed the prescribed target. For AB2, peak swing flexion at the end of tuning was 67.3 deg under T1 and 49.5 deg under T2, close to the respective targets of 63.0 and 50.0 deg (Fig. 5).
IV-B Tuning Behavior
Only one of the four trials, AB3 with T1, needed more than N_{b}=12 RL steps and thus triggered an online policy update (Fig. 3A). To test whether this update improved the policy, we compared the RMS TD error (Eq. 4) of the offline and updated policies on data from steps 13–18, which neither policy had been exposed to during training. The RMS TD error decreased by 47% with the updated policy (Fig. 3B), indicating that online tuning was able to adapt and tune the prosthesis to AB3’s unique gait behavior better than the offline policy. However, since this result is based on only six samples, further validation is needed.
Convergence was not monotonic (Fig. 3A, C). In AB2’s T1 and T2 trials, stumbles at steps 2 and 3 raised the stance-maximum error to about 7 and 14 deg, respectively, and lowered the reward to about -2, but both recovered within one step. In the T1 trial, the swing-maximum error also grew again at steps 6–7, likely due to step-to-step gait variation. Both trials still converged at steps 10 and 8, respectively, suggesting that the tuner was robust to stumbles and gait variability.
V Discussion & Conclusion
This study investigated whether PICE, an RL-based tuning approach previously validated during treadmill walking [24], can tune a commercial powered knee prosthesis under simulated clinical conditions. In the clinic, users walk overground at a self-selected speed and must frequently stop, turn, and reinitiate walking because of limited walkway space [13]. Both factors increase gait variability and could interrupt the continuous stream of data that might be necessary for PICE.
This study showed that every simulated clinical tuning trial with target T1 met the success criterion within 18 RL steps, corresponding to less than 5 minutes of walking (Fig. 4B), using only the four parameters a prosthetist already adjusts and the knee’s onboard sensors, without access to the proprietary controller or laboratory instruments. This indicates that the tuning algorithm remains effective when gait is less consistent than on a treadmill. Because users might have preferences for the target knee profile [27], it is also important that the tuner can drive the knee toward a different target. In our preliminary test with target T2, AB2 reached the goal in 8 RL steps (about 1.7 min), ending with a knee profile clearly different from that obtained under T1 (Fig. 5).
By design, the starting point of tuning was based on a policy learned from a single participant (AB0) walking on a treadmill. Three of the four trials reached the goal before the first scheduled update (N_{b}=12; Fig. 3A), so tuning succeeded with AB0’s offline policy alone. Only one trial (AB3 with T1) required an online policy update, and it met the success criterion six steps later. One possible reason for the successful convergence from the existing policy is that the participants walked similarly enough for one person’s tuning experience to transfer to others, which may not hold across a broader population. Alternatively, the prior may capture an inherent relationship between the clinical parameters and the resulting knee kinematics that is largely independent of the user. Further studies with a larger and more diverse set of participants, including individuals with transfemoral amputation, are needed to determine which of these explanations accounts for the observed transferability of the policy.
In all conditions, the tuned knee profile reached the target of each feature, resulting in a profile that differed noticeably from the initial profile (Fig. 5). Some profiles showed higher variability in swing than in stance. While some natural variation is expected in overground walking, the swing variability was markedly higher for AB2 with target T2. This may have been caused by the selected target. T2 resulted in less knee flexion than T1 in swing, which may have felt like less toe clearance to the participant and led to less consistent swing. A systematic analysis of how the choice of target profile affects gait should be performed in future work.
This study has several limitations. First, participants were non-disabled and walked with a bypass adapter. This allowed us to test the feasibility of prosthesis personalization under clinically realistic walking conditions before involving the target population, but individuals with transfemoral amputation differ in residual-limb control, socket interface, and gait, so these experiments must be repeated with individuals with transfemoral amputation. Second, the sample is small, with one to three participants per condition, so results are reported per participant and no statistical claims are made. Third, success was defined by reaching experimenter-set knee-kinematic targets, not by clinical benefit or user preference. Fourth, each condition was tuned once, mostly within a single session, so the repeatability of the tuned parameters across days was not tested. Future studies with a sizable cohort of people with transfemoral amputation should systematically investigate 1) how the choice of prior policy affects the time to converge, 2) which features to choose to better reflect clinical benefits, 3) which target profiles are appropriate for individual users, and 4) whether these results translate to other terrains, including ramps and stairs.
In conclusion, this preliminary study showed that PICE can tune a commercial powered knee prosthesis during self-paced overground walking with frequent stops and turns, reaching the prescribed gait feature targets in under 5 minutes of walking. An offline policy learned from a single participant on a treadmill was sufficient to tune the knee for new participants without online policy updates in most trials. These findings are a first step toward automated, standardized prosthesis tuning in clinical practice.
Acknowledgment
The authors thank Össur hf. for providing the prosthetic hardware and the participants for their time and effort in making this study possible.