This paper presents, compares, and tests two robust model reference adaptive impedance controllers for a three degrees-of-freedom (3DOF) powered prosthesis/test robot. We first present a model for a combined system that includes a test robot and a transfemoral prosthetic leg. We design these two controllers, so the error trajectories of the system converge to a boundary layer and the controllers show robustness to ground reaction forces (GRFs) as nonparametric uncertainties and also handle model parameter uncertainties. We prove the stability of the closed-loop systems for both controllers for the prosthesis/test robot in the case of nonscalar boundary layer trajectories using Lyapunov stability theory and Barbalat's lemma. We design the controllers to imitate the biomechanical properties of able-bodied walking and to provide smooth gait. We finally present simulation results to confirm the efficacy of the controllers for both nominal and off-nominal system model parameters. We achieve good tracking of joint displacements and velocities, and reasonable control and GRF magnitudes for both controllers. We also compare performance of the controllers in terms of tracking, control effort, and parameter estimation for both nominal and off-nominal model parameters.

## Introduction

Prostheses have become progressively important because there are about two million people with limb loss in the U.S. as of 2008 [1]. Amputation could be due to accidents, cancer, diabetes, vascular disease, birth defects, and paralysis. However, the primary cause of lower limb loss is disease—particularly diabetes and other dysvascular etiologies (approximately 75% of all cases) [1,2]. A prosthetic leg can enhance the quality of life and the ability to walk for amputees, so they can regain independence. Amputation could be transtibial (i.e., below knee), transfemoral (i.e., above knee), at the foot, or disarticulation (i.e., through a joint). Prosthetic legs can be generally classified into three different types: passive prostheses do not include any electronic control, active prostheses include motors, and semi-active prostheses are not actively driven by motors [3]. Research efforts over the past few decades have provided advanced prostheses to closely imitate able-bodied gait and to allow greater levels of activity for amputees. Active prostheses provide gait performance that is more similar to able-bodied gait than passive or semi-active prostheses. The first commercially available active transfemoral prosthesis was the Power Knee [3–5]. A combined knee/ankle prosthesis that includes active control at both knee and ankle has been developed by Vanderbilt University but has not yet been commercialized [6]. Much recent research has focused on the control of these prostheses, along with other prostheses [7–12]. Recent research has provided significant developments in modeling and control for prosthetic legs [13–22], and bipedal robots and rehabilitation robots [23–25]. Although direct neural integration and electromyogram signals can be recorded from residual limbs, and the ground reaction force (GRF) can be measured from prosthetic legs to recognize user intent for volitional control of the powered prosthetic legs, in this paper a pair of “classical” feedback control strategies (robust adaptive impedance controllers (RAIC)) are presented to control the robot/prosthesis device using feedback measurements of the joints position and velocity and feedback of the GRF model.

An active prosthesis is essentially a robot that interacts with its human user. The prosthesis can be controlled to behave as an impedance or admittance [26,27]. The consideration of the interaction between a robot and its external environment motivated the development of impedance control [28]. Variable impedance controller is one of the most popular approaches to control powered prosthetic legs, because it can be used in a model independent fashion. However, this control method suffers several shortcomings: tedious impedance parameter tuning, lack of feedback, and passiveness [3,10].

Modeling errors are always present in real-world systems, but robust control approaches can mitigate the effects of modeling errors on system performance and stability [29,30]. Robust controllers achieve performance in spite of model uncertainty, while adaptive controllers achieve performance using learning and adaptation. Nonadaptive controllers generally require prior knowledge of the parameter variation bounds, while adaptive approaches do not.

The advantages of adaptive control, the availability of able-bodied impedance models, and the uncertainty of robot models have motivated the development of impedance model reference adaptive control [31–33]. However, adaptive control methods can cause instability if disturbances, unmodeled dynamics, or unmodeled external forces are too large. Robust control can alleviate instability in such cases [34–39]. Various adaptive and sliding surface approaches have also been used for robotic applications [30,40–44].

The contribution of this paper is two robust model reference adaptive impedance controllers for transfemoral prostheses, the stability analysis of the two controllers, and the investigation of their performance in simulation. Our control approaches can ensure that the system converges to a reference model in the presence of both parametric and nonparametric uncertainties. In this paper, we present a blending adaptive and nonscalar boundary layer-based robust control to achieve robustness to GRFs (i.e., environmental interactions), system uncertainties, and disturbances, estimation of the unknown parameters, and a stability proof of the proposed methods.

The first controller comprises a RAIC with a tracking-error-based (TEB) adaptation law, which extracts information about the parameters from only the impedance model tracking error. The second controller comprises a robust composite adaptive impedance controller (RCAIC) with bounded-gain forgetting (BGF). Since tracking errors in the joint displacements and prediction error in the joint torques are influenced by parameter uncertainties, RCAIC is designed with TEB/prediction-error-based (PEB) adaptation so that parameter adaptation is driven with both impedance model tracking error and prediction error, which, in turn, provides more accurate estimation of system parameters. More accurate estimation of the system parameters results in a more accurate model, and in turn, RCAIC can achieve better tracking compared with RAIC.

Since our goal is that the two closed-loop systems (one with RAIC and the other with RCAIC) match the biomechanics of able-bodied walking, we use a target impedance model which is based on able-bodied walking. To balance control chatter and performance, we incorporate nonscalar boundary layer trajectories $s\Delta $ in both controllers. We use these trajectories to turn off the TEB adaptation mechanism to prevent unfavorable parameter drift when the impedance model tracking errors are small and due mostly to noise and disturbances. We define the trajectories $s\Delta $ so the error trajectories converge to the boundary layers and the controllers show robustness to both parametric and nonparametric uncertainties.

Among adaptive control methods which have already been published, our work most closely resembles [30] and [42]. In Ref. [30], a direct adaptive controller is proposed whose adaptation mechanism uses joint tracking errors. The control law in Ref. [30] is a combination of a direct adaptive and robust sliding mode control based on a scalar boundary layer to obtain a tradeoff between control chatter and performance, and to achieve robustness to unmodeled dynamics. Asymptotic stability of the closed-loop system in the case of a scalar boundary layer is shown.

In Ref. [42], a composite adaptive controller is proposed whose adaptation law uses tracking errors in the joint motion and errors in the predicted filtered torque to derive more accurate system parameters. In addition, a blend of an adaptive feedforward and a proportional–derivative controller is used and exponential stability of the closed-loop system is proven.

Since a robotic system with more than one degree-of-freedom (1DOF), including the 3DOF prosthesis/controller system in this research, can be considered a nonscalar problem with a coupled nature, in this research, we use nonscalar boundary layer trajectories for both control structures.

So, we expand on the work in Ref. [30] by using nonscalar boundary layer trajectories and incorporating impedance control. We prove the asymptotic stability of the system with both controllers, RAIC and RCAIC, using nonscalar boundary layer trajectories, Barbalat's lemma, and Lyapunov theory. We also extend the work in Ref. [42] by incorporating nonscalar boundary layer trajectories $s\Delta $ and impedance control so that both augmented robust composite impedance controllers show robustness to nonparametric model uncertainties and environmental interaction forces (which are GRF variations in our case). We then prove the exponential stability of these controllers using nonscalar boundary layer trajectories.

Simulation results illustrate that both proposed systems have good tracking performance, strong robustness to system model parametric and nonparametric uncertainties, and reasonable control signals and GRFs. Furthermore, numerical results show that the RCAIC demonstrates better parameter estimation and tracking in the presence of system parameter variations. When parameter values vary by 30% from nominal values, the RCAIC has 9.5% better reference trajectory tracking and 76% better parameter estimation, but 9.9% greater control magnitude than RAIC.

The paper is organized as follows: Sec. 2 describes the model of the transfemoral prosthesis and the robotic test system. Section 3 presents the controller structures and proves their stability. Section 4 presents simulation results. Section 5 presents discussion, concluding remarks, and future work.

## Prosthetic Leg Model

### Test Robot/Transfemoral Prosthetic Leg.

Our system model includes a test robot and a transfemoral prosthesis. The system includes three links and three degrees-of-freedom. This prismatic-revolute-revolute model is shown in Fig. 1. Human hip motion and thigh motion is emulated by the robot. The knee and shank represent the prosthesis. The vertical motion emulates human (or test robot) vertical hip motion, the first axis emulates human (or test robot) thigh motion, and the second axis is angular knee (prosthesis) motion [16,45].

Note that the thigh and knee angles are strictly 1DOF in the sagittal walking plane. The transverse DOFs, including adduction and abduction, are also important, but are of secondary consideration; the first-order of importance is motion in the direction of walking, and so that is what this paper focuses on. The construction of the test robot is detailed in Ref. [45]. Figure 1 also shows the prototype prosthesis that we developed at Cleveland State University, which is detailed in Refs. [46] and [47]. This is a generic lower limb prosthesis that has torque control at the knee and supercapacitor-based energy regeneration.

where $qT=q1q2q3$ comprises the generalized displacements ($q1$ is vertical displacement, $q2$ is thigh angle, and $q3$ is prosthetic knee angle); $M(q)$ is the inertia matrix; $C(q,q\u0307)$ is the Coriolis and Centripetal matrix; $g(q)$ is the gravity vector; $R(q,q\u0307)$ is the nonlinear damping vector;

$Te=JTF$ is the effect of the combined horizontal ($Fx$) and vertical ($Fz$) components of the GRF on each joint, where $J$ is the Jacobian matrix and $F=FxFzT$ is the GRF vector; *u* comprises the active control force at the hip and the active control torques at the thigh and prosthetic knee. It should be noted that “thigh torque” is also known as “hip torque” in the biomechanical literature.

We assume that the positions and velocities of each joint are measured accurately with encoders and differentiators. More details about the sensors are provided in Ref. [45]. However, there is no need to measure joint accelerations for our proposed controllers.

Although in a real-world prosthesis application, the hip force and thigh torque are controlled by the human amputee, in this research, they are control inputs of the test robot shown in Fig. 1, which emulates human hip and thigh motions. Also, real-time measurements of $q1$ and $q2$ are challenging in amputees, but in this paper, they can easily be measured by incremental encoders.

### Ground Reaction Forces Model.

*x*

_{0},

*y*

_{0},

*z*

_{0}) to the belt); $Lz$ is the vertical position of bottom of the foot in the world frame, which is given as follows (see Fig. 1):

*x*-direction than in the

*z*-direction, so we consider slack only in

*z*-direction [46]. The horizontal component of the GRF ($Fx$) can be modeled by an approximation of Coulomb friction as [48]

### Model Regressor.

*p*$\u2208Rr$, so the right side of Eq. (1) can be written in the following form:

*n*is the number of links (

*n*= 3 in this paper; see Fig. 1); $r$ is the number of parameter vector elements (

*r*= 8 in this paper as shown below). The regressor $Y\u2032q,q\u0307,q\u0308$ and the parameter $p$ have many realizations; one such possibility is

## Robust Adaptive Impedance Control

We design two separate nonlinear robust adaptive impedance controllers using nonscalar boundary layers and sliding surfaces to track hip displacement and knee and thigh angles in spite of parametric and nonparametric uncertainties. Both controllers use the same control laws, same target impedance models, and same nonscalar boundary layer trajectories but different adaptation laws. In the first controller, we design a RAIC with a TEB adaptation law, which extracts information about the parameters from the impedance model tracking error. In the second controller, we propose a RCAIC with BGF. Since impedance model tracking errors in the joint displacements and prediction error in the joint torques are influenced by parameter uncertainties, in RCAIC we design a TEB/PEB adaptation law which drives parameter adaptation using both impedance model tracking error and prediction error to achieve more accurate estimation of the system parameters.

### Target Impedance Model.

The robot/prosthesis system interacts with the environmental admittance, so if we want to have a system that is well-matched with the mechanical characteristics of the environment, the closed-loop system should behave as an impedance. In this way, we can achieve a tradeoff between performance and GRF.

### Control Law.

*n*elements. Perfect impedance model tracking $q=qr$ ($e=0$) implies that $s=0$. To reach the sliding manifold $s=0$, the following reaching condition must be satisfied [30]:

*n*-element vector denoted as $\gamma =\gamma 1\gamma 2\u2026\gamma nT$ where $\gamma i>0$ is a design parameter. Eq. (20) shows that in the worst case, $sgnss\u0307=\u2212\gamma $, so we calculate the worst-case reaching time of the tracking error trajectory as

*n*different reaching times, $s0$ is the error at the initial time, and the quotient $s0/\gamma $ is defined one element at a time. We can see from Eq. (21) that a larger $\gamma $ gives smaller reaching times

*T*. The system parameters are not known, so we use a controller [30] to handle parameter uncertainty and to satisfy the condition of Eq. (20)

*n*-element vector. This all results in a modification of the controller of Eq. (22)

where $p\u0302$ is the estimate of $p$.

### Nonscalar Boundary Layer Trajectories.

One of the challenges with adaptive control is that in the presence of nonparametric uncertainties such as noise and disturbances, and also in the presence of large adaptation gains and reference trajectories, the estimated parameters are prone to oscillate and grow without bound because of instability in the control system. This phenomenon is known as parameter drift. However, if the model regressor $Y\u2032q,q\u0307,q\u0308$ satisfies persistent excitation (PE) conditions, the adaptive control scheme exhibits robustness against nonparametric uncertainties and unmodeled dynamics, and parameter drift can be avoided [30,50].

Note that $s\Delta $ is an *n*-element vector. We call the region $s\u2264diag(\phi )$ the boundary layer, where the inequality is taken one element at a time. Note that the diagonal elements of $\phi $ comprise the thickness values of the boundary layer and are denoted as $\phi =diag\phi 1,\phi 2,\u2026,\phi n,$ where tunable $\phi i>0$. We illustrate $s\Delta $ and $sat(s/diag(\phi ))$ for a single dimension in Fig. 2.

### Robust Adaptive Impedance Controller.

where $\mu \u2208Rr\xd7r$ is a positive definite matrix with diagonal elements, which is adjusted by the user.

**.**

*Consider the following scalar positive definite Lyapunov function [50]*

where $\mu $ is a design parameter such that $\mu =diag\mu 1,\mu 2,\u2026,\mu r,with\mu i>0$. The closed-loop system using RAIC results in $V\u0307s\Delta ,p\u0303\u21920$ as $t\u2192\u221e$. That is, the closed-loop systems are asymptotically stable. The error vector $s$ converges to the boundary layer, which implies convergence of the closed-loop system to the target impedance model.

*Proof of Theorem 1*** :** See Appendix A.

### Robust Composite Adaptive Impedance Controller.

*d*is a positive constant); $Pt$ is time-varying adaptation gain;

*W*is a filtered version of the model regressor matrix $Y\u2032q,q\u0307,q\u0308$ given in Eq. (9), where this filtering is introduced to avoid the need for joint acceleration in the regressor [50]; and $ep$ is the prediction error and is calculated from $Wq,q\u0307p\u0303$ (details will be presented later in this section). The filtering can be done with a first-order stable filter as follows:

Therefore, $p\u0303$ will exponentially converge to zero for nonzero and constant $W$. It is interesting to note that when $W$ is not PE, $p\u0303$ cannot converge to zero, even if there are no nonparametric uncertainties, and the robustness property cannot be guaranteed. In this procedure, the time-varying forgetting factor is tuned so that data forgetting is active when $W(t)$ is PE and it is off when $W(t)$ is not PE. From Eq. (38), $P$ shows the level of PE of $W(t)$ so that if $P$ decreases, $W(t)$ is strongly PE ($\u03d1t=\u03d10$), and if $P$ increases, $W(t)$ is weakly PE. In the BGF composite controller, $p\u0303$ and $Pt$ are upper bounded, and if $W(t)$ is strongly PE, then $p\u0303$ exponentially converges to zero, $Pt$ is upper and lower bounded by positive numbers, and $\u03d1t>\u03d1_>0$.

The controller of Eq. (23), when used in conjunction with the update law of Eq. (29) and applied to the system of Eq. (1), results in $V\u0307s\Delta ,p\u0303\u21920$ as $t\u2192\u221e$, which means the prosthesis/RCAIC combination is globally exponentially stable. The error vector $s$ converges to the boundary layer, indicating perfect estimation of the system parameters and convergence of the closed-loop system to the target impedance model.

*Proof of Theorem 2:* See Appendix B.

### System Convergence.

From Theorems 1 and 2, $s\Delta \u21920$ as $t\u2192\u221e$ so the trajectories of $s$ are bounded in the boundary layers. Now since $s$ is bounded, $e$ and $e\u0307$ are bounded. The boundedness of $qr$, $q\u0307r$, $e$, and $e\u0307$ implies that $q$ and $q\u0307$ are bounded, which in turn implies that the right side of Eq. (43) is bounded, just as the right side of Eq. (44) is bounded.

It is seen that the closed-loop system in Eq. (43) has the same structure as the impedance model of Eq. (44), which means both proposed controllers result in closed-loop systems that converge to the target impedance model of Eq. (44); where comparing Eq. (43) with Eq. (44) gives $Mr=M\u0303,Br=C\u0303+M\u0303\lambda $, and $Kr=C\u0303\lambda $. We see that the proposed control law in Eq. (23) for both RAIC and RCAIC drives the closed-loop system in Eq. (25) to match the impedance model in Eq. (11).

## Simulation Results

### Experimental Reference Trajectory.

The reference trajectory is obtained from the motion studies lab (MSL) of the Cleveland Veterans Affairs Medical Center (VAMC) [11]. In order to calculate three-dimensional joint angles, a three-dimensional model was constructed from 47 reflective markers placed on the research participants. The research participants were volunteers in this study, which was approved by the Institutional Review Board of the Cleveland VAMC. Data were collected at a specific walking speed. The research participants walked on a treadmill for 10–30 s trials while kinematic and kinetic data were collected at their preferred walking speed. This speed was determined using previous methods [51], which allowed for acclimating to the treadmill. Moreover, all of the research participants had previous treadmill experience. The kinematic data were collected at 100 Hz via a 16 camera passive marker motion capture system (Vicon, Oxford Metrics, UK) with the markers mounted according to the Human Body Model (Motek, Amsterdam, The Netherlands). In addition, GRFs were collected at 1000 Hz via two force plates within the treadmill (ADAL3DM-F-COP-Mz, Tecmachine, France). For data processing, 100 frames were taken from a standing trial for initialization of the subject-specific model comprised 18 body segments and 46 kinematic degrees-of-freedom. The kinematics and the ground reaction forces were the input for an inverse dynamic analysis after low pass filtering at 6 Hz with a second-order low pass Butterworth filter. The data were finally processed to solve the skeletal motion and to compute the inverse dynamics for each model.

### Prosthesis Test Robot Model, Controllers, and Target Impedance Model Parameters.

We assume that the treadmill parameters (i.e., GRFs parameters) are constant and listed in Table 1. We suppose that the prosthesis test robot parameters are partly unknown and can vary by up to 30% from their nominal values [16]. The nominal system parameters are shown in Table 2. The initial state is $x_0T=0.0191.130.090.0901.6$. After some experimentation, we achieve good performance for RAIC and RCAIC with the design parameters in Table 3. As seen from Table 3, the controller design parameters are round numbers, which means that the controllers are relatively easy to tune and do not require a tedious gain-tuning process.

Note that the performance of RCAIC is slightly influenced by each of its design parameters. From Eq. (30), $1/c$ is the steady-state gain of the filter and should be tuned so the bandwidth of the filter is larger than the system bandwidth and smaller than the noise frequency. We choose $d=2,$ so that the adaptation law in Eq. (29) weights the prediction error twice as much as the impedance model tracking error. The value of $\u03d10$ in Eq. (38) influences the speed of forgetting and determines the compromise between parameter tracking speed and oscillation of the estimated parameters. $K0$ in Eq. (38) represents a tradeoff between parameter update speed and the disturbance effect on the prediction error. $P(0)$ represents a tradeoff between parameter error value and the degree of stability. However, we should choose $P(0)$ as high as the noise sensitivity allows to achieve the lowest parameter error value; to avoid unbounded $Pt,P(0)$ must be smaller than $K0I$. The value of $\phi $ for both proposed controllers provides a trade-off between chattering on the control signal and tracking error bound, adjusts the robustness of the system to nonparametric uncertainties, and tunes the sensitivity of the controllers to parameter drift.

### Controller Performance Evaluation.

*p*$\u2208R8$ presented in Eq. (10) as

### Simulation Results

#### Tracking Performance.

Figure 4 compares the states of the system with RAIC and RCAIC and the reference trajectories ($qd$) when all system parameters are equally varied by 30% from their nominal values (Table 2).

It should be noted that to consider the tracking sensitivity to the system parameters, a sensitivity analysis is required in which the parameters should be perturbed one by one not altogether. Figure 4 shows that both controllers demonstrate robustness and also walking behavior of the prosthesis is similar to human-like walking. Although, Theorems 1 and 2 guarantee that the states of the system accurately track the model reference trajectory ($qr$), Fig. 4 compares the states of the system with the reference trajectories ($qd$). The reason is to show the flexibility of the prosthesis walking in following the desired trajectories provided by the impedance model of Eq. (11). In this paper, the actual hip position should not perfectly follow its desired value and if it does, the walking loses the flexibility in the presence of the GRF impacts and other external effects.

Figure 5 shows the control signals of RAIC and RCAIC (the control force for the hip, and the control torques for the thigh and knee) with 30% parameter deviations. The control magnitudes for the off-nominal case have similar magnitudes as able-bodied averaged hip force (–800 to 200 N), thigh torque (–50 to 100 N·m), and knee torque (–50 to 50 N·m) [52–54]. Note that the hip force and thigh torque represent able-bodied walking, and the knee torque acts on the prosthesis, which has the same magnitude as able-body knee torque. This indicates a strong potential for the proposed controllers to be useful in real-world prosthesis applications. In addition, the results demonstrate that the controllers can deal with parameter variations without large increases in the control magnitudes.

For both controllers, high gains in the reference impedance model not only provide better tracking, particularly for hip displacement, but also increase the control effort. Figure 6 depicts the GRFs when the system parameters vary by 30% from nominal. We see that the generated forces are similar to able-bodied averaged horizontal GRF (−150 to 150 N) and vertical GRF (0–800 N) [52–54], again indicating strong potential for real-world application. As can be observed from Fig. 6, we have no GRF in swing phase, and after the point foot hits the ground (circles on the *x*-axis), horizontal and vertical GRFs become nonzero.

#### Parameter Identification.

Figure 7 shows the estimated parameter vector $p$ (presented in Eq. (10)) for RAIC and RCAIC when the system parameters vary by 30%. As expected, the RAIC parameter estimates do not match the true parameter values.

However, RCAIC using the BGF composite adaptation law performs noticeably better regarding parameter estimation compared to RAIC. The estimated parameter vector of the proposed controller RCAIC perfectly matches the true value except for the fourth element P4. P4 is the most complex parameter in terms of its constituent elements (see Eq. (10)), so errors in the constituent elements of P4 can cause cumulative errors in P4.

Figure 8 compares the trajectories of $s$ and $s\Delta $ as described in Eqs. (13) and (24), respectively for RAIC and RCAIC. Based on the values of $\phi 1,\phi 2$, $\phi 3$, and the definition of $s\Delta $, it is seen that the TEB adaptation mechanism in RAIC is active only when $s$ is outside its boundary layer (i.e., $s\Delta $ is nonzero). When $s\Delta $ is zero, the parameter adaptation of the RAIC (Eq. (27)) stops and its estimated parameters remain constant, whereas $s\Delta =0$ only turns off TEB adaptation part of the RCAIC (the first part of the Eq. (29)).

It is observed that none of the $s$ trajectories for the RCAIC exceed the boundary layer (the area between $\phi i=\u22120.5$ and $\phi i=+0.5$) and in turn all $s\Delta $ trajectories are zero. This shows that the RCAIC only uses prediction errors, which appear in the PEB adaptation, and the TEB adaptation mechanism is turned off.

On the other hand, all $s$ trajectories for the RAIC exceed the boundary layer. From Fig. 8, we can see that the $s$ trajectories of the RAIC for the hip, thigh, and knee exceed the boundary layer four, three, and two times, respectively, and in turn, the $s\Delta $ trajectories are nonzero.

#### Persistent Excitation Verification.

Figure 9 shows the norm of the adaptation gain $P$, the time-varying forgetting factor $\u03d1t$, and the joint prediction errors ($epi,i=1,2,3$) for the RCAIC with +30% uncertainty on the system parameters. Figure 9(a) illustrates that $Pt$ is upper and lower bounded by two positive numbers ($Pt$ is upper bounded by $K0=400$ and lower bounded by $P(0)=100$). Figure 9(b) shows that the forgetting factor satisfies the condition $\u03d1t>\u03d1_>0$. These observations imply that $W(t)$ is PE. Since $W(t)$ is PE, $p\u0303$ and $epi$ exponentially converge to zero as shown in Fig. 9(c).

#### Numerical Evaluation.

Table 4 summarizes the desired trajectory tracking, parameter estimation, and control performance for RAIC and RCAIC for the nominal system parameter values and also when the parameter values vary ±30% relative to nominal.

Table 4 lists total desired trajectory tracking cost $CostE$, total control cost $CostU$, total estimation cost $CostP$, and total cost $Cost$ (which is sum of the desired trajectory tracking and control costs) for both controllers. Table 4 shows that for the nominal case, RAIC has better performance for the control cost and estimation, while tracking performance maintains the same level as RCAIC, and in turn RAIC slightly improves the total cost by 1.2%. When the system parameter values vary −30%, RCAIC has a small improvement in control cost, but an improvement in estimation by 40% in comparison with the RAIC, while tracking performance of the RCAIC slightly deteriorates. In general, in the case of −30% parameter uncertainty, the total cost of the RCAIC decreases by 4%.

Table 4 shows that when the parameter values vary 30% from nominal, RCAIC has a remarkable superiority to the RAIC in terms of the estimation and tracking performances. This superiority is because by more accurately estimating the system parameters, the RCAIC includes a more accurate model ($p\u0303$ and $ep$ exponentially converge to zero) and in this way achieves better tracking. Table 4 shows that desired trajectory tracking performance ($CostE$) and estimation performance ($CostP$) of the proposed RCAIC considerably improves by 9.5% and 76%, respectively, whereas the control signal magnitude ($CostU$) and total cost ($Cost$) increases by 9.9% and 3.6%, respectively compared with RAIC. As it is seen from Table 4, the most notable difference between the controllers is their parameter estimation performances while their tracking performances are not noticeably different from each other. This is because the RCAIC uses a different adaptation law to improve the parameter estimation accuracy, whereas both controllers use the same control law.

Table 5 shows the maximum control effort ($Umax$), maximum tracking error ($Emax$), and maximum estimation error ($Pmax$) for the nominal and off-nominal cases. The table shows that RCAIC results in smaller $Umax$ for the nominal and +30% cases, whereas RAIC performs better for the –30% case. Although RCAIC outperforms RAIC in terms of average parameter estimation for the off-nominal cases ($\u2009CostP$ in Table 4), their $Pmax$ values are within approximately 1% of each other. Table 5 also shows that $Emax$ is about the same for both controllers for the nominal and off-nominal cases.

## Conclusions and Future Work

We designed two robust adaptive impedance controllers, RAIC and RCAIC, for a combined test robot and transfemoral prosthesis device. The controllers estimate the system parameters and also driving joint tracking errors to boundary layers while compensating for the variations of GRFs and nonparametric uncertainties. We defined the boundary layers to make a tradeoff between control signal chatter and performance, and also to stop TEB adaptation mechanism in these layers to prevent unfavorable parameter drift.

We designed both controllers to imitate the characteristics of natural walking and to provide flexible, smooth, gait. We thus defined a reference model with impedance similar to that of able-bodied gait. We also proved closed-loop system stability for both RAIC and RCAIC based on nonscalar boundary layers using Barbalat's lemma and Lyapunov theory.

We performed simulations for both proposed controllers with 30% parameter errors, and we showed that trajectory tracking remained good, which demonstrated robustness of the proposed controllers. We demonstrated good transient responses with nominal system parameter values and also with system parameter value deviations of up to ±30%. When we used the first controller RAIC for the 30% parameter deviations, desired trajectory tracking errors were 16 mm for vertical hip position, 0.15 deg for thigh angle, and 0.12 deg for prosthetic knee angle. When we used the second controller, RCAIC, with 30% parameter uncertainties, trajectory tracking errors were 14 mm for vertical hip position, 0.15 deg for thigh angle, and 0.08 deg for knee angle.

Therefore, numerical results showed that when the system parameter values varied by 30% from nominal, the proposed controller RCAIC had better tracking performance by 9.5% in comparison to RAIC, while resulting in more control cost by 9.9%. Furthermore, RCAIC using the BGF composite adaptation law achieved much better parameter estimation by 76% compared to the RAIC. We also achieved reasonable control signals and GRFs for the both controller structures. Note that, however, RCAIC, in general, performed better than RAIC; RCAIC has larger computational time and higher programming complexity.

For future work, we will incorporate rotary and linear actuator dynamics in the system model to obtain motor voltage control signals. We will also apply the controllers to a prosthesis prototype that has been developed at Cleveland State University. We will also include an active ankle joint to the system model to extend the controllers to a 4-DOF robot/prosthesis model. We will test the proposed prosthesis model and controllers on a human-prosthesis hybrid system [22]. We will also implement the proposed controllers experimentally on a powered transfemoral prosthesis, AMPRO3 (AMBER Prosthetic) [24]. In this paper, all system parameters are perturbed equally and at the same time, so a more in-depth sensitivity analysis of the system performance to the parameter variation would be interesting. The results of this paper are obtained for one experimental reference trajectory (Sec. 4.1). So, understanding the effects of varying speed, stride frequency, and other gait kinematic parameters on the overall performance will be an interesting problem.

The results in this paper can be reproduced with the Matlab code that is available at the website link.^{2}

## Acknowledgment

The authors are grateful to Jean-Jacques Slotine, Elizabeth C. Hardin, Antonie van den Bogert, and and Mojtaba Sharifi for suggestions that improved this paper.

## Funding Data

National Science Foundation (Grant No. 1344954).

### Appendix A

#### A.1 Stability Analysis of the Robust Adaptive Impedance Controllers

*Proof of Theorem 1*

**Even though $s\Delta $ is not differentiable everywhere,**

*:**V*is differentiable because it is a quadratic function of $s\Delta $. The derivative of the Lyapunov function of Eq. (28) is given as follows:

This indicates that outside the boundary layer (the second condition of Eq. (26)), the Lyapunov derivative is negative semidefinite, so we can prove the stability of the closed-loop system with Barbalat's lemma [50].

Barbalat's Lemma: If a Lyapunov function $V=V(t,x)$ satisfies the following conditions:

- –
$iV(t,x)$ is lower bounded, and

- –
$(ii)V\u0307(t,x)$ is negative semi-definite, and

- –
$(iii)V\u0308t,x$ is bounded

then $V\u0307(t,x)\u21920$ as $t\u2192\u221e$; that is, the closed-loop system is asymptotically stable. Now we state an intermediate lemma that we will need to complete the proof of Theorem 1.

Lemma 1*. The derivative of the Lyapunov function of Eq. (A9) converges to zero, which guarantees that the system converges to the boundary layer*.

*Proof of Lemma 1:*Conditions I and II in Barbalat's Lemma are confirmed from Eqs. (28) and (A9), which means that

*V*is bounded. This implies that all of the terms in

*V*in Eq. (28) are bounded, including $s\Delta $ and $p\u0303$. Since $p$ is constant, this means that $p\u0302$ is bounded. Since $s\Delta $ is bounded, this means that $s$ is bounded. The second derivative of

*V*is bounded as follows: $V\u0308s\Delta ,p\u0303\u2264\u2212\gamma mddts\Delta 1$. In the worst case (i.e., at the upper bound), we have

Recall that $p\u0303$ and $s$ are bounded. The boundedness of $s$ implies the boundedness of $e$ and $e\u0307$, as seen from Eq. (13). Since $qr$,$q\u0307r$, and $q\u0308r$ are bounded, we know that $q$, $q\u0307$, $v$, and $v\u0307$ are also bounded. Therefore, in Eq. (A11), $M,C,\phi ,p\u0303,Y,\gamma m,s,$ and $Kd$ are bounded. $T\u0302e\u2212Te$ is upper bounded by $Fm$, so we can conclude that $V\u0308$ is bounded. Therefore, as conditions I, II, and III from Barbalat's Lemma hold, we can conclude that $V\u0307s\Delta ,p\u0303\u21920$ as $t\u2192\u221e$. This means that $\u2212\gamma ms\Delta 1$ in Eq. (A9) is equal to zero, which means that Eq. (A9) can be written as the equality $V\u0307s\Delta ,p\u0303=\u2212\gamma ms\Delta 1$. We, therefore, have $V\u0307s\Delta ,p\u0303\u21920$ ⇒ $\u2212\gamma ms\Delta 1\u21920$ ⇒ $s\Delta \u21920$. This indicates that the control ensures that $s$ converges to the boundary layer.

##### A.2 QED (Lemma 1).

The RAIC mitigates system uncertainties more than a standard adaptive controller but also has a larger tracking error. RAIC drives the system to the boundary layer and results in robustness to GRF as a nonparametric uncertainty. Inside the boundary layer, Eqs. (A4)–(A11) can be reformulated for $s\Delta =0$, in which case $s$ remains in the boundary layer, which stops adaptation, and the estimated parameters remain constant. Therefore, the system with the RAIC converges to the reference impedance model.

##### A.3 QED (Theorem 1).

It should be noted that the aforementioned proof of asymptotic closed-loop system stability implies that $Kd$ should be bounded by $Fm\u2212C\phi \u2212thatis,Kd\u2265FmI3\xd73\u2212C\phi +\gamma mI3\xd73$.

### Appendix B

##### B.1 Stability Analysis of the Robust Composite Adaptive Impedance Controller.

*Proof of Theorem 2*

**Note that**

*:**V*in Eq. (42), which is a quadratic function of $s\Delta $, is continuously differentiable. The derivative of the Lyapunov function is given as

where $\gamma m>0$, $\u03d1t\u22650$, and $P$ is positive definite, so by choosing $d>12$, we can see that outside the boundary layer (i.e., the second condition of Eq. (26)), the derivative of the Lyapunov function is negative semidefinite. This in turn means that we can use Barbalat's lemma to prove global exponential stability. If $V(t,x)$ satisfies the Barbalat's Lemma conditions, then $V\u0307(t,x)\u21920$ as $t\u2192\u221e$, which means that RCAIC results in a closed-loop system that is globally exponentially stable.

Now we state an intermediate lemma that we will need to complete the proof of Theorem 2.

Lemma 2: The derivative of the Lyapunov function of Eq. (B9) globally exponentially converges to zero, which guarantees convergence to the boundary layer ($s\Delta \u21920$). Also, the prediction error in Eq. (36) of the proposed RCAIC converges to zero, which implies perfect estimation of the system parameters.

*Proof of Lemma 2:* Conditions I and II in Barbalat's Lemma are satisfied from Eqs. (42) and (B9) and we, therefore, conclude that *V* is bounded, which means that all terms in *V* (including $s\Delta $, and $p\u0303$) are bounded. Since $p$ is constant $p\u0302$ is bounded, and since $s\Delta $ is bounded $s$ is bounded. From Eq. (11), since $qd$ is bounded, $q\u0307d$, $q\u0308d$, $qr$,$q\u0307r$, and $q\u0308r$ are bounded. From Eqs. (13)–(15), since $s$ is bounded, we see that $e$ and $e\u0307$ are both bounded. These facts imply that $q$, $q\u0307$, $q\u0308$, $v$, and $v\u0307$ are bounded as well. So, $Yq,q\u0307,v,v\u0307$, $Y\u2032q,q\u0307,q\u0308$, and $Wq,q\u0307$ are bounded.

On the other hand, inside the boundary layer, where $s\u2264diag(\phi )$, Eqs. (B3)–(B13) can be rewritten for $s\Delta =0$. For this condition, $s$ remains inside the boundary layer and the prediction error exponentially converges to zero. Outside the boundary layer, both $s\Delta $ and $ep$ exponentially converge to zero, which means that we achieve perfect parameter estimation and guarantee convergence of $s$ to the boundary layer.

##### B.2 QED (Lemma 2).

We see from the above that the closed-loop system with the proposed RCAIC converges to the target impedance model. Therefore, the controller drives the system to the boundary layer, achieves perfect parameter estimation, and achieves robustness against GRFs.