Optimal Backstepping Controller Design for Prosthetic Knee Joint

Optimal Backstepping Controller Design for Prosthetic Knee Joint

Mayyasah Ali Salman* Saleem Khalefa Kadhim

Control and System Engineering Department, University of Technology-Iraq, Baghdad 10066, Iraq

Corresponding Author Email: 
cse.19.18@grad.uotechnology.edu.iq
Page: 
49-59
|
DOI: 
https://doi.org/10.18280/jesa.550105
Received: 
13 October 2021
|
Revised: 
4 January 2022
|
Accepted: 
13 January 2022
|
Available online: 
28 February 2022
| Citation

© 2022 IIETA. This article is published by IIETA and is licensed under the CC BY 4.0 license (http://creativecommons.org/licenses/by/4.0/).

OPEN ACCESS

Abstract: 

The mobility of people who have had a lower limb amputated is slower, less stable, and needs more metabolic energy than the movement of physically fit, also, often have difficulty moving on uneven terrain and stairs. In most cases, these problems may be traced back to the usage of controllers for an above-knee prosthesis, which enhances movement and more quality of life for millions of individuals who have lost lower limbs. In this work addresses the dynamic modeling and parameter identification of the lower limb, and the control of a 2-DOF joint prosthetic, because the uncertainty, high nonlinearity, problems with imbalance, and external perturbations, which can occur during movement. Backstepping control algorithm based on the Lyapunov theory was used, this is to ensure system stability with enhanced dynamic performance. The Bat algorithms optimization technique was used to fine-tune these design parameters to improve the performance of the proposed controller. From the results, found that the quantitative comparison between the present study and the related articles previously published which used sliding mode observer control, showed reasonable agreement. To comparison between convolution Backstepping control and optimal Backstepping control with Bat algorithms, at the control action consumptions. It was found that the position error of the prosthetic knee is enhanced by 9% at joint1 and 7.4% at joint2, respectively. Therefore, the results are considered satisfactory for such biomedical systems.

Keywords: 

prosthetic knee, backstepping control, bat algorithms, Lyapunov theory

1. Introduction

Due to conflict, sickness, traffic accidents, and natural disasters, millions of people have had difficulty using their lower limbs in recent decades. As a result, some of them have lost their ability to work and are unable to participate in normal social activities [1]. The tools available to people who lost their lower limbs were walkers, wheelchairs, wooden braces, and crutches. Nowadays, advances in medical science and technology can be used to help people with amputations using motorized lower limbs [2]. Their quality of life is severely reduced as a result of their physical and mental limitations, which puts them under a great deal of physical and mental strain. People who have lost limbs must rely on prosthetics to compensate for their loss because present medical technology does not allow for the regeneration of limbs. Conventional mechanistic knee prostheses can't make a big difference withinside the lives of amputees due to their incorrect walking, massive bodily effort, and terrible affected person sporting experience. A range of rehabilitative robots were advanced to assist and repair human mobility due to strength storage, advances in actuation, tiny sensing, micro embedded pc technology, and automatic sample recognition [3, 4]. There are many difficult problems such as system uncertainty, high nonlinearity, and external perturbations, which can occur during movement, problems with imbalance, falls and sudden bending of the knee while standing. Since there are many control strategies used to control the movement of prosthetic limbs, including Backstepping Control (BC). The BC is based on a control strategy for a certain sort of nonlinear systems. Due to its ability to handle the nonlinearity and uncertainty with high efficiency. The Lyapunov theory combined with BC improves the closed-loop system's dynamic performance while also ensuring its stability.

For the design of BC, first the error equations are derived, and the equations of the system are then supplemented with an additional state based on the integration of the error. The system equations are separated into subsystems so that the controller can be designed iteratively. Based on the Lyapunov function, a virtual control signal is chosen for each stabilizing subsystem. All system equations are evaluated in the final design process, and the control signal is created in such a way that the closed loop system is stable according to Lyapunov theory [5]. Also, there are many researchers who have suggested some strategies for controlling prosthetic limbs.

Azimi et al. [6] introduced two strong model-based controllers for artificial transfemoral gait: the Robust Passive controller (RP), and the Robust glide mode (RS). Both controllers for continuous dynamics are proven to be stable under the Lyapunov stability theory. The results show that for a healthy person wearing a transfemoral prosthesis, both controllers give human-like gait and accurate tracking.

Scandaroli et al. [7] presented a design a prosthetic limb above the knee. Proportional–Integral–Derivative (PID) and model references Adaptive controllers are used in their models. They found that the results revealed difficulty in controlling such a nonlinear plant.

Mefoued and Belkhiat [8] proposed a Sliding Mode Observer (SMO) based powerful control to leading an exoskeleton has been developed to help persons who have limited knee movement. A SMO has been constructed and inserted into the closed loop of the system to provide velocity. The stability of a system can be proven using Lyapunov's theory. In their model, they compare between SMO and PID controller, found that the SMO method guarantees the excellent overall performance in terms of stability, location tracking, speed control and disturbance rejecting capability.

Wen et al. [9] presented Adaptive Dynamic Programming (ADP) based controller performance testing that automatically configures prosthetic control parameters. The system was evaluated on a physically healthy person, walking with an electrical prosthesis on a treadmill. The goal was for the user to be able to approximate conventional knee kinematics using ADP to alter the Finite State Impedance Control (FSIC) resistance values. They tested the practicality of ADP for adaptive control of a powered prosthesis and discovered that in about 10 minutes, the prosthetic controller could be tuned to provide modular kinematics of the knee.

Martinez-Villalpando and Herr et al. [10] provided design and execution of a knee prosthesis with two parallel series elastic actuators. The parameters of the model were changed using an optimization scheme, and then they utilized these optimized values to define the mechanical and control design of the prosthesis. In their model, they applied improved sequential elastic components to lower the energy cost of walking on the ground level. Despite this, knee motors did not have a good effect on the knee joint during ground-level walking trials, necessitating the use of electrical power (8 W).

Ajayi et al. [11] used a bounded control and observer based controller. Utilized to calculate the angular position and angular velocities, which is then applied to the estimation of the joint torques. The convergence analysis of the high gain observer and the asymptotic stability of the bounded control law without human contribution were verified using Lyapunov based analysis, and fair path tracing of the physiotherapist's path was obtained.

Banala et al. [12] was developed a force-field controller in lower extremity rehabilitation. In order to the rehabilitation of patients sufferance from walking disability with active hip and knee joint and works in assistance as needed mode. Costa et al. [13] was presented a PID based controller to govern the activation of elevated power pneumatic muscle actuator for a lower limb orthosis with five degrees of freedom in each shank. It has to deal with the issue of nonlinearities that occur on occasion. Sherwani et al. [14] presented an adaptive Robust Integral of Sign Error (RISE) controller on the Exoskeleton Intelligently Communicating and Sensitive to Intention (EICoSI) to achieve optimal tracking error. Exoskeleton devices offered to help people with mobility problems can help their joints move more freely. RISE feedback is generally fused with adaptive controller, to enhance performance and lessen the high gain's effects. Chen et al. [15] used backstepping Adaptive Robust Control (ARC) algorithm for 1-DOF knee joint exoskeleton. The proposed ARC algorithm delivers guaranteed force tracking performance in both transient and steady-state conditions. They should note, that the suggested adaptive robust backstepping force controller not only provides a high level of robustness in the face of model uncertainty, but also provides faster closed loop responses and lower contact forces.

It can be concluded from previous studies that although much progress has been made in developing prosthetics and dealing with them with different control strategies. There are still a number of difficult problems in their precise control. Strong performance withinside the presence of parameter uncertainties, uncertain linearity, the influence of human movement, and the control accuracy of reaction force should be considered in the control design of the prosthesis.

In this paper, it is proposed to use the Backstepping control strategy for a mathematical model of a system of Two Degrees of Freedom (2-DoF) that includes the thigh-leg. The Backstepping control tool is based on a control strategy that can be applied to a certain type of nonlinear system. The use of Lyapunov theory with Backstepping control maintains the closed-loop system's stability while also improving its dynamic performance. The Backstepping controller's design parameters have a direct impact on the controlled system's dynamic performance. As a result, selecting these design parameters is not an easy task, and if done incorrectly, instability issues will occur. The trial-and-error method of determining these parameters is difficult, time-consuming, and does not leading to an optimal solution in terms of the best dynamic performance. In order to improve dynamic performance regulation and tracking, the Bat Algorithm (BA) was utilized to adjust these parameters. This echolocation algorithm, which was inspired by bats, was first introduced by Yang [16].

The aim of this research is how to design backstepping control to organize and control the tracking of desired walking paths while minimizing the effects of unknown disturbances, non-linear uncertainties in the system, and to ensure the stability of the system for the prosthetic knee.

2. Dynamic Model of Prosthetic Knee

Figure 1 (a) and 1(b) shows the human lower limb model and free body diagram of the prosthetic knee, the location of force effect on the prosthetic knee. The main objective is to derive the second order ordinary differential equations system. The motion of the prosthetic knee is controlled as a serial manipulator with rigid link, prosthetic knee can be modeled. In this case, it is easy to readily obtain the equations of motion. The method of Lagrangian can be used to obtain motion equation for a serial kinematic chain system [2].

(a) A person is wearing the prosthetic knee [17]

(b) Schematic diagram and free body diagram of the prosthetic knee

Figure 1. Prosthetic knee model

Axes involving the displacement of a prosthetic knee about a fixed axis should be established in a cartesian coordinate system and specify the sign and direction of the x-axis and y-axis, as shown in Figure 1b.

where X1 and Y1 are the displacements for the x- and y-axes for joint1. In addition, X2 and Y2 are the displacements of the x-axis and y-axis for joint 2.

$\left.\begin{array}{c}X_{1}=r_{1} \sin \theta_{1} \\ Y_{1}=-r_{1} \cos \theta_{1} \\ X_{2}=L_{1} \sin \theta_{1}+r_{2} \sin \theta_{2} \\ Y_{2}=-L_{1} \cos \theta_{1}-r_{2} \cos \theta_{2}\end{array}\right\}$              (1)

To derive the displacements in Eq. (1) with respect to time, the components of velocity are obtained as Eq. (2):

$\left.\begin{array}{c}\frac{d}{d t} X_{1}=r_{1} \dot{\theta}_{1} \cos \theta_{1} \\ \frac{d}{d t} Y_{1}=r_{1} \dot{\theta}_{1} \sin \theta_{1} \\ \frac{d}{d t} X_{2}=L_{1} \dot{\theta}_{1} \cos \theta_{1}+r_{2} \dot{\theta}_{2} \cos \theta_{1} \\ \frac{d}{d t} Y_{2}=L_{1} \dot{\theta}_{1} \sin \theta_{1}+r_{2} \dot{\theta}_{2} \sin \theta_{2}\end{array}\right\}$            (2)

where, r1 and r2 are the distance between the center of mass of each link (thigh and shank), L1 is the length of link 1, θ1 and θ2 are the rotation angle of link 1 and link 2, respectively.

Langragian’s equation is used in this analysis to determine the equation of motion, the mathematical formula to Langragian’s equation can be written as follows [18]:

$L=K E-P E$                     (3)

$K E=\frac{1}{2} m v^{2}$          (4)

where, L is defined as the difference between the kinetic energy (KE) and potential energy (PE) of the mechanical system.

The KE equation is the summation of kinetic energy for individual links, and can be expressed by the following formula:

$K E=\frac{1}{2} m_{1}\left(\dot{X}_{1}^{2}+\dot{Y}_{1}^{2}\right)+\frac{1}{2} I_{1} \dot{\theta}_{1}^{2}+\frac{1}{2} m_{2}\left(\dot{X}_{2}^{2}+\dot{Y}_{2}^{2}\right)+\frac{1}{2} I_{2} \dot{\theta}_{2}^{2}$          (5)

where, I1 and I2 is the moment of inertia of the link 1 and link 2 (thigh and shank).

By substituting Eq. (2) into Eq. (5) to determine the total KE for two links:

$K E=\frac{1}{2} m_{1}\left(\left(r_{1} \dot{\theta}_{1} \cos \theta_{1}\right)^{2}+\left(r_{1} \dot{\theta}_{1} \sin \theta_{1}\right)^{2}\right)$

$+\frac{1}{2}\left(\frac{m L^{2}}{12} * \dot{\theta}_{1}^{2}\right)+\frac{1}{2} m_{2}\left(\left(L_{1} \dot{\theta}_{1} \cos \theta_{1}+r_{2} \dot{\theta}_{2} \cos \theta_{2}\right)^{2}\right.$

$\left.\quad+\left(L_{1} \dot{\theta}_{1} \sin \theta_{1}+r_{2} \dot{\theta}_{2} \sin \theta_{2}\right)^{2}\right)+\frac{1}{2}\left(\frac{m L^{2}}{12} * \dot{\theta}_{2}^{2}\right)$                    (6)

In addition, PE is the potential energy of system can be written as:

$P E=-m g h$                         (7)

$P E=-m_{1} y_{1} g-m_{2} y_{2} g$                         (8)

$P E=m_{1} r_{1} g \cos \theta_{1}-m_{2} g\left(-L_{1} \cos \theta_{1}-r_{2} \cos \theta_{2}\right)$                         (9)

Substitute Eq. (6) and Eq. (9) into Eq. (3), to get the following equation:

$L=\frac{1}{2} m_{1} r_{1}^{2} \dot{\theta}_{1}^{2}+\frac{1}{2} I_{1} \dot{\theta}_{1}^{2}$

                     $+\frac{1}{2} m_{2}\left(L_{1}^{2} \dot{\theta}_{1}^{2}+r_{2}^{2} \dot{\theta}_{2}^{2}+2 L_{1} r_{2} \dot{\theta}_{1} \dot{\theta}_{2} \cos \left(\theta_{1}-\theta_{1}\right)\right)$

           $\left.+\frac{1}{2} I_{2} \dot{\theta}_{2}^{2}-m_{1} r_{1} g \cos \theta_{1}-m_{2} g L_{1} \cos \theta_{1}+m_{2} g r_{2} \cos \theta_{2}\right)$                         (10)

The equations of motion for the manipulator are derived using the Lagrangian in Eq. (3) as the following:

$\boldsymbol{\tau}_{\text {Total }}=\frac{\mathrm{d}}{\mathrm{dt}}\left(\frac{\partial \mathrm{L}}{\partial \dot{\theta}}\right)-\frac{\partial \mathrm{L}}{\partial \theta}$                (11)

where, i=1, 2, and τ is torque acting on the system to each joint.

$\frac{\partial L}{\partial \theta 1}=-m_{2} L_{1} r_{2} \dot{\theta}_{1} \dot{\theta}_{2} \sin \left(\theta_{1}-\theta_{2}\right)+m_{1} g r_{1} \sin \theta_{1}+m_{2} g L_{1} \sin \theta_{1}$                   (12)

$\begin{aligned} \frac{\partial L}{\partial \dot{\theta} 1}=\left(I_{1}+m_{1} r_{1}^{2}\right.&\left.+m_{2} L_{1}^{2}\right) \dot{\theta}_{1}+m_{2} L_{1} r_{2} \dot{\theta}_{2} \cos \left(\theta_{1}-\theta_{2}\right) \end{aligned}$            (13)

$\frac{d}{d t}\left(\frac{\partial L}{\partial \dot{\theta} 1}\right)=\left(I_{1}+m_{1} r_{1}^{2}+m_{2} L_{1}^{2}\right) \ddot{\theta}_{1}+m_{2} L_{1} r_{2} \ddot{\theta}_{2} \cos \left(\theta_{1}-\theta_{2}\right) m_{2} L_{1} r_{2} \dot{\theta}_{2} \sin \left(\theta_{1}-\right.\left.\theta_{2}\right)\left(\dot{\theta}_{1}-\dot{\theta}_{2}\right)$              (14)

$\frac{\partial L}{\partial \theta 2}=-m_{2} L_{1} r_{2} \dot{\theta}_{1} \dot{\theta}_{2} \sin \left(\theta_{1}-\theta_{2}\right)+m_{2} g r_{2} \sin \theta_{2}$                  (15)

$\frac{\partial L}{\partial \dot{\theta} 2}=\left(m_{2} r_{2}^{2}+I_{2}\right) \dot{\theta}_{2}+m_{2} L_{1} r_{2} \dot{\theta}_{1} \cos \left(\theta_{1}-\theta_{2}\right)$                (16)

$\begin{aligned} \frac{d}{d t}\left(\frac{\partial L}{\partial \dot{\theta} 2}\right) &=\left(m_{2} r_{2}^{2}+I_{2}\right) \ddot{\theta}_{2}+m_{2} L_{1} r_{2} \ddot{\theta}_{1} \cos \left(\theta_{1}-\theta_{2}\right) -m_{2} L_{1} r_{2} \dot{\theta}_{1} \sin \left(\theta_{1}-\theta_{2}\right)\left(\dot{\theta}_{1}-\dot{\theta}_{2}\right) \end{aligned}$             (17)

The hip τ1 and knee τ2 torque expressions can be written as:

$\tau_{1}=\left(I_{1}+m_{1} r_{1}^{2}+m_{2} L_{1}^{2}-m_{2} L_{1} r_{2} \cos \left(\theta_{1}-\theta_{2}\right)\right) \ddot{\theta}_{1}$

$+\left(m_{2} r_{2}^{2}+I_{2}+m_{2} L_{1} r_{2} \cos \left(\theta_{1}-\theta_{2}\right)\right) \ddot{\theta}_{2}-$

$\left(m_{2} L_{1} r_{2} \sin \left(\theta_{1}-\theta_{2}\right)\right) \dot{\theta}_{1}^{2}+\left(m_{2} L_{1} r_{2} \sin \left(\theta_{1}-\right.\right.$

$\left.\left.\theta_{2}\right)\right) \dot{\theta}_{2}^{2}-m_{1} g r_{1} \sin \theta_{1}-m_{2} g L_{1} \sin \theta_{1}-m_{2} g r_{2} \sin \theta_{2}$                  (18)

$\tau_{2}=\left(\left(m_{2} r_{2}^{2}+I_{2}\right) \ddot{\theta}_{2}+m_{2} L_{1} r_{2} \ddot{\theta}_{1} \cos \left(\theta_{1}-\theta_{2}\right)\right.$

$-m_{2} L_{1} r_{2} \dot{\theta}_{1}^{2} \sin \left(\theta_{1}-\theta_{2}\right)-m_{2} g r_{2} \sin \theta_{2}-L_{1} \sin \theta_{1} F_{1}-L_{2} \sin \theta_{2} F_{2}$               (19)

Assuming that there is no friction force, the dynamics model of the system can be expressed as general form below is [19].

$M(\theta) \ddot{\theta}+C(\theta, \dot{\theta}) \dot{\theta}+G(\theta)=\tau$               (20)

where, (θ) is an angular position vector, which is expected to be usable by measurement, M(θ) represents the inertia matrix of the links, while τ is the control torque, $C(\theta, \dot{\theta}) \dot{\theta}$ represents the vector of the Coriolis and centripetal torques, and G(θ) represents gravitational torque.

Eq. (20) shows the nonlinear dynamics of the prosthetic knee system. The following can be represented using a state variable in the state equation:

$\left.\begin{array}{rl}x_{1} & =\theta_{1}, x_{2}=\dot{\theta}_{1} \\ x_{3} & =\theta_{2}, x_{4}=\dot{\theta}_{2} \\ \dot{x}_{1}=\dot{\theta}_{1}, \dot{x}_{2} & =\ddot{\theta}_{1}, \dot{x}_{3}=\dot{\theta}_{2}, \dot{x}_{4}=\ddot{\theta}_{2}\end{array}\right\}$            (21)

where, [θ1, θ2] is angular position of upper and lower link. $\left[\dot{\theta}_{1}, \dot{\theta}_{2}\right]$ represents angular velocity of upper and lower link [20].

Eq. (21) can be substituted into Eq. (20), which is a nonlinear dynamics equation, so Eq. (20) can be written as:

$\dot{x}_{1}=x_{2}$                 (22)

$\dot{x}_{2}=\frac{1}{M_{11}}\left[\tau_{1}-M_{12} \dot{x}_{4}-C_{1} x_{2}-G_{1}\right]$                 (23)

$\dot{x}_{3}=x_{4}$                 (24)

$\dot{x}_{4}=\frac{1}{M_{22}}\left[\tau_{2}-M_{21} \dot{x}_{2}-C_{2} x_{4}-G_{2}\right]$                 (25)

Figure 2 shows the MATLAB/SIMULINK of the prosthetic knee model. To simulate the prosthetic knee model representation by using Eq. (22)-(25). Table 1 exhibits the model of prosthetic knee parameters values that utilized in the simulation.

Table 1. Physical parameters values of the prosthetic knee [21]

Prosthetic knee parameters

Parameter value

m1

5.28 kg

m2

2.23 kg

I1

0.033 kg.m2

I2

0.033 kg.m2

L1

0.302 m

L2

0.332 m

r1

0.236 m

r2

0.189 m

g

9.81 m/s2

Figure 2. Open loop prosthesis knee system represented by MATLAB SIMULINK

Figure 3 represents the results of the open loop trajectory and the speed with which the prosthesis moves within the initial conditions (θ=10°) [22]. The main problem is the instability and controllability of the movement of the prosthesis resulting from the lack of control over the location and speed which will certainly lead to undesirable movement of the limb which in turn must be controlled. Clearly from Figure 3, the open loop system is instable. Consequently, the Backstepping controller is utilized to stabilized the prosthetic knee and make its states reach the asymptotically stable region with maximal angle.

Figure 3. Open loop response of prosthesis knee, (a, and b) represents position of link 1and 2, in addition to (c, and d) is the velocity of link 1 and link 2

3. Backstepping Controller Design

The backstepping approach provides a systematic method for designing a control structure to monitor a reference signal. Suggested Backstepping to control the lower prosthesis as the dynamic model is based on this approach. The controller is introduced which ensures convergent stability in tracking the desired position and speed trajectories. The control laws are derived from Lyapunov theory-based stability assessments of the Backstepping controller to control the prosthesis knee [23, 24].

In order to create the Backstepping control algorithm for a prosthetic knee system, follow the procedures listed [25].

Steps 1: Suppose that the error e1, represents the actual stat x1 and intended trajectory xd1 described by the

$e_{1}=x_{1}-x_{d 1}$         (26)

The time derivative of the error in Eq. (26), the tracking velocity, can be written as follows:

$\dot{e}_{1}=\dot{x}_{1}-\dot{x}_{d 1}$                 (27)

Defining the first virtual control α1=x2 and sub in Eq. (27) to get:

$\dot{e}_{1}=\alpha_{1}-\dot{x}_{d 1}$               (28)

The positive Lyapunov function:

$V_{1}=\frac{1}{2} e_{1}^{2}$                 (29)

The Lyapunov functions derivative during time is called:

$\dot{V}_{1}=e_{1} \dot{e}_{1}$            (30)

As follows: by substituting Eq. (28) into Eq. (30) to gate a new derivative of the Lyapunov function, which can be written as follows:

$\dot{V}_{1}=e_{1}\left(\alpha_{1}-\dot{x}_{d_{1}}\right)$               (31)

A virtual control is created $\left(\alpha_{1}=-c_{1} e_{1}+\dot{x}_{d 1}\right)$, and sub it into Eq. (31) then:

$\dot{V}_{1}=-c_{1} e_{1}^{2}$               (32)

This means that $\dot{V}_{1}<0$.

Let the error e2, between actual state x2 and the first virtual control α1 described by:

$e_{2}=x_{2}-\alpha_{1}$               (33)

Taking the time derivative of Eq. (33) and using Eq. (23) to get:

$\dot{e}_{2}=\frac{1}{M_{11}}\left[\tau_{1}-M_{12} \dot{x}_{4}-C_{1} x_{2}-G_{1}\right]+\alpha_{1}$                (34)

The second Lyapunov function is $V_{2}=\frac{1}{2} e_{1}^{2}+\frac{1}{2} e_{2}^{2}$.

Using the time derivative of Lyapunov function and the presumption that ($\alpha_{1}=-c_{1} e_{1}+\dot{x}_{d 1}$) to get:

$\dot{V}_{2}=-c_{1} e_{1}^{2}+e_{2}\left(e_{1}+\left(\frac{1}{M_{11}}\left[\tau_{1}-M_{12} \dot{x}_{4}-C_{1} x_{2}-\right.\right.\right.\left.\left.\left.G_{1}\right]\right)+c_{1} \dot{e}_{1}-\ddot{x}_{d 1}\right)$         (35)

Choosing the first control law:

$\begin{aligned} \tau_{1}=M_{11}\left[-e_{1}-\right.&\left.c_{1} \dot{e}_{1}-c_{2} e_{2}+\ddot{x}_{d 1}\right]+M_{12} \dot{x}_{4}+C_{1} x_{2}+G_{1} \end{aligned}$          (36)

The derivative of Lyapunov function leads to:

$\dot{V}_{2}=-c_{1} e_{1}^{2}-c_{2} e_{2}^{2}$                 (37)

where, c1 and c2 are a positive constant to be determined using Bat algorithm, and $\dot{V}_{2}<0$ are negative definite.

Step 2: Let e3, represent the actual state x3 of the desired trajectory xd3 as defined by:

$e_{3}=x_{3}-x_{d 3}$              (38)

The time derivative of Eq. (38), and in addition to assigning the second virtual control $\left(\dot{x}_{3}=x_{4}\right)$ in order to get the error of the tracking velocity, it is written as follows:

$\dot{e}_{3}=\alpha_{2}-\dot{x}_{d 3}$                (39)

By using third Lyapunov function:

$V_{3}=V_{2}+\frac{1}{2} e_{3}^{2}$             (40)

Since the time derivative of V3 is given by:

$\dot{V}_{3}=\dot{V}_{2}+e_{3} \dot{e}_{3}$               (41)

Using Eq. (39) and Eq. (41) to get:

$\dot{V}_{3}=-c_{1} e_{1}^{2}-c_{2} e_{2}^{2}+e_{3}\left(\alpha_{2}-\dot{x}_{d 3}\right)$               (42)

By substitution, the virtual control $\left(\alpha_{2}=-c_{3} e_{3}+\dot{x}_{d 3}\right)$ in to $\dot{V}_{3}$ to equation becomes:

$\dot{V}_{3}=-c_{1} e_{1}^{2}-c_{2} e_{2}^{2}-c_{3} e_{3}^{2}$           (43)

Step 3: Consider the error e4 as a representation of x4 and the second virtual control α2 as:

$e_{4}=x_{4}-\alpha_{2}$              (44)

Figure 4. Backstepping control for a prosthetic knee

The time derivative of the error e4, and Sub $\dot{x}_{4}$ from Eq. (25) to get:

$\dot{e}_{4}=\frac{1}{M_{22}}\left[\tau_{2}-M_{21} \dot{x}_{2}-C_{2} x_{4}-G_{2}\right]-\alpha_{2}$                (45)

Using fourth Lyapunov function:

$V_{4}=V_{3}+\frac{1}{2} e_{4}^{2}$              (46)

Taking the time derivative of Lyapunov function, and compensation Eq. (43) and Eq. (45):

$\dot{V}_{4}=-c_{1} e_{1}^{2}-c_{2} e_{2}^{2}-c_{3} e_{3}^{2}+e_{4}\left(e_{3}+\left[\frac{1}{M_{22}}\left[\tau_{2}-\right.\right.\right.\left.\left.M_{21} \dot{x}_{2}-C_{2} x_{4}-G_{2}\right] c_{3} \dot{e}_{3}-\ddot{x}_{d3}\right)$          (47)

Choosing the second control law:

$\tau_{2}=M_{22}\left[-e_{3}-c_{3} \dot{e}_{3}-c_{4} e_{4}+\ddot{x}_{d 3}\right]+M_{21} \dot{x}_{2}+C_{2} x_{4}+G_{2}$                    (48)

The derivative of Lyapunov function leads to:

$\dot{V}_{4}=-c_{1} e_{1}^{2}-c_{2} e_{2}^{2}-c_{3} e_{3}^{2}-c_{4} e_{4}^{2}$             (49)

As a result, the selection of control law τ2 assures that $\dot{V}_{4}$ to be negative definite, ensuring the whole system's asymptotic stability characteristics. Figure 4 shows a schematic design of backstepping control for lower limb prosthesis.

4. Optimal Backstepping Control Parameters

All control systems must have minimal error, good steady-state and transient performance. Parameters of the backstepping algorithm have an effect on the system's output and stability. These four design parameters are designated as c1, c2, c3, and c4 in this study utilizing the BAT method to discover the best value of parameter control for the prosthetic knee. BAT is inspired by the echolocation conduct of common bats for figuring out their food, is proposed in the refs. [16, 26]. Bats make loud noises in order to detect possible prey. This signal returns after it collides with an object. They can quickly receive or analyze the signals and forecast the object's size and moving direction. Using the following assumptions, echolocation properties of bats will be generated to resolve the optimization problem [27]:

(1) Echolocation is used by all bats to determine distance.

(2) Bats fly with random velocities Vi, at position Xi, at a set frequency fmin, varying wavelength λ and loudness A0 to locate prey. They set their (wavelength/frequency) and can regulate pulse emission rate $r \in[0-1]$ based on their prey's proximity.

(3) The loudness can change in many ways we assume that the loudness changes from a large (positive) A0 to a minimum constant value Amin.

In addition to the above principles, frequency and wavelengths occur within the range of [fmin, fmax] and [λmin, λmax] respectively in practical applications, is chosen in such a way that it closely resembles the dimensions of the area of interest. In order to solve an optimization problem with a virtual bat, rules must be created to determine their positions and velocities in the d-dimensional study space. At time step t, the new position $X_{i}^{t}$ it and velocity $V_{i}^{t}$ it is defined as follows:

$f_{i}=f_{\min }+\left(f_{\max }-f_{\min }\right) \beta$           (50)

$V_{i}^{t}=V_{i}^{t-1}+\left(X_{i}^{t}-X_{*}\right) f_{i}$           (51)

$X_{i}^{t}=X_{i}^{t-1}+V_{i}^{t}$           (52)

here, $\beta \in[0-1]$ is the random vector taken from a uniformly distribute; X* denotes the current global best location (solution) as determined by a comparison of all solutions for all n bats.

Once a solution is chosen from among the actual better options for the local research, a new solution for each bat is developed locally utilizing random walk.

$X_{\text {new }}=X_{\text {old }}+\epsilon A^{t}$        (53)

When a bat locates its prey, the sound level drops and the rate of pulse emission rises. The bat is heading to the optimal solution according to:

$A_{i}^{t+1}=\alpha A_{i}^{t}, r_{i}^{t+1}=r_{i}^{o}\left[1-e^{-\gamma t}\right]$          (54)

here, α and γ are constant (α=γ=0.9), the initial emission rate is $r_{o} \in[0-1]$, and the initial loudness is $A_{i} \in[0.1-0.9]$.

BAT algorithms is used for tuning the [c1, c2, c3, c4] parameters of the proposed controller for a prosthesis knee. At the end of the algorithm, the optimal values of design parameters are set and discovered to the Backstepping controller. The BA has set the maximum number of iterations to 100 and the population size to 40. The cost function that used to evaluate each particle during the search of minimal is chosen to be the Mean Square Error (MSE) given by:

$\mathrm{MSE}=\frac{1}{n} \sum_{t=1}^{n} e_{1}(i)^{2}+\frac{1}{n} \sum_{t=1}^{n} e_{3}(i)^{2}$               (55)

where, e1=x1-xd1 and e3=x3-xd3, n is the sampling numbers. Figure 5 shows the cost function's behavior as a function of algorithm iterations.

Figure 5. BAT cost function

Table 2. Optimal values of design parameters

Parameters

Value

c1

328.16

c2

476.397

c3

332.181

c4

520.836

Backstepping design parameters optimized using the BAT method are shown in Table 2. Finally, the Backstepping controller sets these optimal values in order to achieve a system controlled by optimal Backstepping control.

5. Simulation Results

A Backstepping controller designed for prosthetic knee stabilization, tracking, and regulatory control is described in this section. A MATLAB/SIMULINK simulation is used to evaluate the controller and analyze the performance of the backstepping controlled system. As shown in Table 1, the values of the system parameters for a prosthetic knee with a 2-DOF joint are provided. To compare between the performances of Backstepping controllers due to try-and-error method and Bat algorithm, the Mean Square Error (MSE) has been used as a metric for evaluating performance. The Optimal and Trial-and-Error values of the controller design parameters are listed in Table 3.

Table 3. Optimal and Trial-and-Error values of the controller design parameters

Design parameters

Optimal value

Trial-and-Error value

c1

328.16

9

c2

476.397

9

c3

332.181

9

c4

520.836

9

Figures 6 and 7 presents the control signal for both joints by applying the Backstepping control approach. According to the figures, despite system nonlinearity and parameter variation, the controlled system tracks the desired trajectory.

(a) Backstepping control

(b) Optimal Backstepping control

Figure 6. Control signal applied to the first joint

(a) Backstepping control

(b) Optimal Backstepping control

Figure 7. Control signal applied to the second joint

The experimental validation results are compared to the results acquired through the use of the Backstepping controller and bat algorithms. In fact, found that, the system has a high level of stability and good convergence in a limited time. In terms of the results of the position tracking, Figure 8 and 9 shows that the proposed Backstepping control with bat algorithms scheme ameliorates considerably the position tracking compared to the Backstepping control. In addition, using bat algorithms the tracking position error was strongly decreased.

(a) Backstepping control

(b) Optimal Backstepping control

(c) Compare between optimal and conventional Backstepping control

Figure 8. Position trajectory for joint 1

(a) Backstepping control

(b) Optimal Backstepping control

(c) Compare between optimal and conventional Backstepping control

Figure 9. Position trajectory for joint 2

For the position tracking trajectory, the maximum tracking error of the joint1 is equal to 9% at peak, and the maximum tracking error of the joint2 is equal to 7.4% at peak for the backstepping controller. As a consequence, a thorough examination of the results that the optimal Backstepping control scheme decreases tracking errors by a factor of 0% for both position in joint1 and joint2. Moreover, the velocity tracking errors shown in Figure 10 and 11 that using Backstepping control with bat algorithms is better for enhances greatly the tracking performance. From Figures 10 and 11 showed that there is a high tracking velocity with bat algorithms for the desired trajectory.

(a) Backstepping control

(b) Optimal Backstepping control

Figure 10. Velocity trajectory for joint 1

(a) Backstepping control

(b) Optimal Backstepping control

Figure 11. Velocity trajectory for joint 2

(a) joint1

(b) joint2

(c) joint1

(d) joint2

Figure 12. Behavior of actual and virtual states: (a) and (c) backstepping control. (b) and (d) Optimal Backstepping control

Figure 12 shows how actual and virtual states behave. The figures show how well the virtual states track and correlate to their physical counterparts in the end.

The parameters of the prosthetic knee in Table 1 are used in the model with the Backstepping controlled system. The results are compared with Mefoued et al. [8]. In Figure 13, perturbations are applied on a resistive torque (disturbance) d1=200, and d2=400 because with time the parameters values will be changed slightly or the system suffering from external disturbances. This percentage of the uncertainty is our case study. Found that the results prove both joint1 and joint2 trajectories follow the desired trajectory with a high performance. It can be concluded that the proposed Backstepping control is more robust against this perturbation.

(a) joint1

(b) joint2

(c) joint1

(d) joint2

(e) joint1

(f) joint1

Figure 13. Comparison between position, velocity and control signal for joint 1 and joint 2 with external disturbances

6. Conclusions

In this paper presented to design and developed for a 2-DOF prosthetic knee using the Backstepping approach, a new state is added to the system's equations. The two control laws are generated to be responsible to give good track of desired trajectory for the both joint1 and joint 2. The effectiveness of this control scheme has been verified by simulation on MATLAB 2019b. The simulation findings were compared to those published in earlier publications on sliding mode control to ensure they were accurate. To prevent the need for a trial-and-error approach for tuning the design Backstepping control, Bat algorithm is applied to determine optimal design parameters in terms of improved better dynamic performance. Therefore, the proposed Backstepping controller with BA results showed that the position error of the prosthetic knee is enhanced by 9% at joint1 and 7.4% at joint 2, when it is compared with backstepping control by used try-and-error parameters.

  References

[1] Zhang, X., Li, J., Hu, Z., Qi, W., Zhang, L., Hu, Y., Su, H., Ferrigno, G., Momi, E.D. (2019). Novel design and lateral stability tracking control of a four-wheeled rollator. Applied Sciences, 9(11): 2327.‏ https://doi.org/10.3390/app9112327

[2] Borjian, R. (2008). Design, modeling, and control of an active prosthetic knee. Master's thesis, University of Waterloo.‏

[3] Tucker, M.R., Olivier, J., Pagel, A., Bleuler, H., Bouri, M., Lambercy, O., Millán, J., Riener, R., Vallery, H., Gassert, R. (2015). Control strategies for active lower extremity prosthetics and orthotics: A review. Journal of Neuroengineering and Rehabilitation, 12(1): 1-30.‏ https://doi.org/10.1186/1743-0003-12-1

[4] Li, Z., Huang, B., Ajoudani, A., Yang, C., Su, C.Y., Bicchi, A. (2017). Asymmetric bimanual control of dual-arm exoskeletons for human-cooperative manipulations. IEEE Transactions on Robotics, 34(1): 264-271.‏ https://doi.org/10.1109/TRO.2017.2765334

[5] Thamir, L., Khazaal, M. (2021). Design of an optimal backstepping controller for nonlinear system under disturbance. Engineering and Technology Journal, 39(3): 465-476.‏ http://dx.doi.org/10.30684/etj.v39i3A.1801

[6] Azimi, V., Shu, T., Zhao, H., Ambrose, E., Ames, A.D., Simon, D. (2017). Robust control of a powered transfemoral prosthesis device with experimental verification. In 2017 American Control Conference (ACC), Seattle, WA, USA, pp. 517-522. https://doi.org/10.23919/ACC.2017.7963005

[7] Scandaroli, G.G., Borges, G.A., da Rocha, A.F., de Oliveira Nascimento, F.A. (2008). Adaptive knee joint control for an active amputee prosthesis. In 2008 IEEE Latin American Robotic Symposium, Salvador, Brazil, pp. 164-169.‏ https://doi.org/10.1109/LARS.2008.12

[8] Mefoued, S., Belkhiat, D.E.C. (2019). A robust control scheme based on sliding mode observer to drive a knee‐exoskeleton. Asian Journal of Control, 21(1): 439-455.‏ https://doi.org/10.1002/asjc.1950

[9] Wen, Y., Liu, M., Si, J., Huang, H.H. (2016). Adaptive control of powered transfemoral prostheses based on adaptive dynamic programming. In 2016 38th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Orlando, FL, pp. 5071-5074.‏ https://doi.org/10.1109/EMBC.2016.7591867

[10] Martinez-Villalpando, E.C., Herr, H. (2009). Agonist-antagonist active knee prosthesis: A preliminary study in level-ground walking. Journal of Rehabilitation Research & Development, 46(3): 361-374.‏ https://doi.org/10.1682/JRRD.2008.09.0131

[11] Ajayi, M.O., Djouani, K., Hamam, Y. (2017). Bounded control of an actuated lower-limb exoskeleton. Journal of Robotics, Article ID: 2423643. https://doi.org/10.1155/2017/2423643

[12] Banala, S.K., Kim, S.H., Agrawal, S.K., Scholz, J.P. (2008). Robot assisted gait training with active leg exoskeleton (ALEX). IEEE Transactions on Neural Systems and Rehabilitation Engineering, 17(1): 2-8.‏ https://doi.org/10.1109/TNSRE.2008.2008280

[13] Costa, N., Bezdicek, M., Brown, M., Gray, J.O., Caldwell, D.G., Hutchins, S. (2006). Joint motion control of a powered lower limb orthosis for rehabilitation. International Journal of Automation and Computing, 3(3): 271-281.‏ https://doi.org/10.1007/s11633-006-0271-x

[14] Sherwani, K.I., Kumar, N., Chemori, A., Khan, M., Mohammed, S. (2020). RISE-based adaptive control for EICoSI exoskeleton to assist knee joint mobility. Robotics and Autonomous Systems, 124: 103354.‏ https://doi.org/10.1016/j.robot.2019.103354

[15] Chen, S., Yao, B., Zhu, X., Chen, Z., Wang, Q., Zhu, S., Song, Y. (2015). Adaptive robust backstepping force control of 1-DOF joint exoskeleton for human performance augmentation. IFAC-Papers OnLine, 48(19): 142-147.‏ https://doi.org/10.1016/j.ifacol.2015.12.024

[16] Yang, X.S. (2010). A new metaheuristic bat-inspired algorithm. In Nature Inspired Cooperative Strategies for Optimization (NICSO 2010), pp. 65-74.‏ https://doi.org/10.1007/978-3-642-12538-6_6

[17] Lawson, B.E., Mitchell, J., Truex, D., Shultz, A., Ledoux, E., Goldfarb, M. (2014). A robotic leg prosthesis: Design, control, and implementation. IEEE Robotics & Automation Magazine, 21(4): 70-81.‏ https://doi.org/10.1109/MRA.2014.2360303

[18] Ali, H.I., Hasan, A.F., Jassim, H.M. (2020). Optimal h2pid controller design for human swing leg system using cultural algorithm. Journal of Engineering Science and Technology, 15(4): 2270-2288.

[19] Ali, H.I., Kadhim, M.J. (2018). Mixed H2/Sliding mode controller design for human swing leg system. In 2018 Third Scientific Conference of Electrical Engineering (SCEE), Baghdad, Iraq, pp. 156-161. https://doi.org/10.1109/SCEE.2018.8684215

[20] Ali, S.S., Raafat, S.M., Al-Khazraji, A. (2020). Improving the performance of medical robotic system using H∞ loop shaping robust controller. International Journal of Modelling, Identification and Control, 34(1): 3-12. https://doi.org/10.1504/IJMIC.2020.108911

[21] Mu, X., Wu, Q. (2003). A complete dynamic model of five-link bipedal walking. In Proceedings of the 2003 American Control Conference, Denver, CO, USA, pp. 4926-4931.‏ https://doi.org/10.1109/ACC.2003.1242503

[22] Goldberg, S.R., Õunpuu, S., Delp, S.L. (2003). The importance of swing-phase initial conditions in stiff-knee gait. Journal of Biomechanics, 36(8): 1111-1116. https://doi.org/10.1016/S0021-9290(03)00106-4

[23] Mohammad, A.M., AL-Samarraie, S.A. (2020). Robust controller design for flexible joint based on back-stepping approach. Iraqi Journal of Computers, Communications, Control and Systems Engineering, 20(2): 58-73.‏‏

[24] Zhang, D., Du, B., Zhu, P., Wu, W. (2020). Adaptive backstepping sliding mode control of trajectory tracking for robotic manipulators. Complexity, Article ID 3156787. https://doi.org/10.1155/2020/3156787

[25] Humaidi, A.J., Kadhim, S.K., Gataa, A.S. (2020). Development of a novel optimal backstepping control algorithm of magnetic impeller-bearing system for artificial heart ventricle pump. Cybernetics and Systems, 51(4): 521-541.‏ https://doi.org/10.1080/01969722.2020.1758467

[26] Yang, X.S. (2011). Bat algorithm for multi-objective optimisation. International Journal of Bio-Inspired Computation, 3(5): 267-274. https://doi.org/10.1504/IJBIC.2011.042259

[27] Hussin, K.N., Nahar, A.K., Khleaf, H.K. (2021). A visual enhancement quality of digital medical image based on bat optimization. Engineering and Technology Journal, 39(10): 1550-1570. http://dx.doi.org/10.30684/etj.v39i10.2165