Figures
Abstract
Exoskeletons are widely used in the field of medical rehabilitation, however imprecise exoskeleton control may lead to accidents during patient rehabilitation, so improving the control performance of exoskeletons has become crucial. Nevertheless, improving the control performance of exoskeletons is extremely difficult, the nonlinear nature of the exoskeleton model makes control particularly difficult, and external interference when the patient wears an exoskeleton can also affect the control effect. In order to solve the above problems, a method based on particle swarm optimization (PSO) and RBF neural network to optimize exoskeleton torque control is proposed to study the motion trajectory of nonlinear exoskeleton joints in this paper, and it is found that exoskeleton torque control optimized by PSO-RBFNN has faster control speed, better stability, more accurate control results and stronger anti-interference, and the optimized exoskeleton can effectively solve the problem of difficult control of nonlinear exoskeleton and the interference problem when the patient wears the exoskeleton.
Citation: Li J, Tai Y, Meng F (2023) Rehabilitation exoskeleton torque control based on PSO-RBFNN optimization. PLoS ONE 18(8): e0285453. https://doi.org/10.1371/journal.pone.0285453
Editor: Qichun Zhang, University of Bradford, UNITED KINGDOM
Received: February 21, 2023; Accepted: April 24, 2023; Published: August 8, 2023
Copyright: © 2023 Li et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the paper and its Supporting information files.
Funding: National Natural Science Foundation of China (12162007) Meng Fanwei The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Rehabilitation exoskeletons play an important role in the medical field [1], and they have been widely used in recent years for the purpose of assisting medical staff to provide rehabilitation treatment for patients. According to the American Heart Management Association [2], approximately 700,000 people worldwide suffer from stroke each year, and 90 percents of those who survive have some degree of impairment in motor function. Rehabilitation exoskeleton, which plays an important role in the rehabilitation of patients [3], can help sports injury patients to perform fixed gait training and re-exercise damaged nerves. The control performance of the exoskeleton plays a key role in the effectiveness of rehabilitation, GM Gasparri et al. [4] conducted in-depth research on exoskeleton ankle joint torque control to ensure that the exoskeleton can meet the changing biomechanical needs of the patient while walking; Yu et al. [5] studied exoskeleton PID control in order to reduce the uncertain steady-state error in exoskeleton control; X Li et al. [6] performed BP neural network optimization on exoskeleton, and verified the good performance of the optimized exoskeleton in joint torque estimation; Y Long et al. [7] used GA genetic algorithm to optimize exoskeleton control and make exoskeleton control more stable. Although the control performance of exoskeletons has been improved in the above research, the optimization of complex nonlinear exoskeleton control models is still difficult. In view of this nonlinear model that is difficult to optimize, this paper proposes an optimization strategy of PSO particle swarm algorithm combined with RBF neural network joint optimization, which combines the advantages of neural network for nonlinear system tuning and PSO algorithm acceleration tuning, so as to optimize the torque control of lower limb rehabilitation exoskeleton. Based on the above research, PSO particle swarm algorithm combined with RBF neural network is used to optimize the torque control of the lower limb rehabilitation exoskeleton. Q Zhang et al.’s research on non-Gaussian stochastic systems control theory and its application [8] and observer-based parameteric decoupling controller design [9] are also of guiding significance to this paper. Particle swarm algorithm (PSO) was first proposed by R Eberhart and J Kennedy [10], which is a population-assisted random search algorithm developed to study the foraging of birds, and continuously seeks the local optimal solution through the population particles to obtain the global optimal solution. In this paper, the PSO algorithm is used to optimize the weights of RBF neural networks and seek the optimal solution with the lowest error of exoskeleton joints. The RBF neural network [11] was first proposed by J Moody and C Darken as a neural network structure that mimics feelings in the human brain. Aiming at the nonlinear control of the exoskeleton system in this paper, the local optimization characteristics of the RBF neural network optimized by the PSO algorithm can enable it to find the optimal control parameters of the exoskeleton more quickly and accurately, thereby reducing the error and the influence of disturbance, so that the output trajectory of the exoskeleton joint can conform to the actual trajectory of the patient when walking. This paper is divided into three parts, the first part describes the research method, and analyzes the overall logic of optimizing the exoskeleton torque control of PSO-RBFNN. The second part is the qualitative analysis and quantitative analysis of the research results, the results show that the actual trajectory of the exoskeleton joint optimized by PSO-RBFNN can track the desired trajectory well, compared with exoskeleton PID control, the exoskeleton control performance based on PSO-RBFNN optimization torque control is superior. The third part presents the conclusions of the study.
Materials and methods
Overall structure of exoskeleton
Fig 1 shows the overall structure of the exoskeleton. The exoskeleton is composed of carbon-brazing dimensions and is lightweight overall. The exoskeleton is driven by a motor that is installed at both the hip and knee joints. The drive motor adopts the Maxson EC Flat series motor, which has the characteristics of high torque density and small size, and its maximum torque is 500 Nm, which is suitable for exoskeleton joint control [12]. The sensor is used to detect the joint angle and angular velocity in real time, and it is transmitted to the control system for real-time control. The specific parameters of the exoskeleton are shown in Table 1:
As shown in Table 1, the overall weight of the exoskeleton is 21.04 kg, and Thigh Mass is the single leg weight from hip to knee, Calf Mass is the weight of single leg from knee to ankle, and the total length of the exoskeleton leg is centered on 0.5 m and 0.4 m, and can be retracted by 0.05 m, so as to meet the needs of different people.
In the coordinated movement of exoskeleton and human body, flexible materials are used to fix the exoskeleton and human legs, the battery and controller are placed at the waist and fixed by hard belt, and the drive motor is used to output different joint torques to achieve real-time control. The purpose of the exoskeleton is to provide lower limb rehabilitation training for people with walking disabilities, and a single exoskeleton lower limb has a total of 4 degrees of freedom [13], namely hip flexion and extension degrees of freedom (active), hip internal rotation degrees of freedom (passive), knee flexion and extension degrees of freedom (active), ankle flexion and extension degrees of freedom (passive). The drive motor is added to the active degree of freedom, and the input angle is adjusted in real time through the controller to ensure that the human body carries out walking rehabilitation training according to a fixed gait.
Derivation of kinetic equations
The derivation of kinetic equations is the basis for real-time control of the system and deriving the dynamic equations of the exoskeleton system can optimize the performance indicators of the exoskeleton controller. In this paper, the torque control is optimized for the purpose of optimization, so it is particularly important to derive the kinematic equations.
Fig 2 is a simplified diagram of the single leg of the exoskeleton, and this paper uses the right lower limb of the exoskeleton as an example. The hip and knee joints are active joints, and the ankle joints are passive joints. The motor output torque at the active joint drives the leg movement of the exoskeleton, so the right lower limb can be simplified to the two-link form shown in Fig 2 [14], and the left lower limb is similar to the right lower limb.
As shown in Fig 2, q1, l1 and m1 are the thigh flexion and extension angle, length and mass, q2, l2 and m2 are the lower leg flexion and extension angle, length and mass. Assuming that the exoskeleton density is evenly distributed, and the center of mass of the thigh and calf is located in the center part of each linkage, the Lagrange kinetic equation [15] is derived from the exoskeleton to derive the relationship between the motor output torque and the angle of the leg joint.
Derivation of kinetic energy
Suppose the coordinates of thigh center of mass and calf center of mass to (x1, y1), (x2, y2), the distance between the two centers of mass from the hip and knee joints is d1 and d2, and the sum of the squared coordinates of the two centers of mass coordinates can be obtained:
(1)
(2)
The kinetic energies Ek1 and Ek2 of the exoskeleton thigh and calf are:
(3)
(4)
The total kinetic energy of the exoskeleton single leg is:
(5)
Derivation of potential energy
The potential energy Ep1 and Ep2 of the exoskeleton thigh and calf are:
(6)
(7)
The total potential energy of the exoskeleton single leg is:
(8)
Derivation of Lagrange’s equation
The Lagrangian function is defined as:
(9)
Ek and Ep are the total kinetic and total potential energy of the exoskeleton single leg, Ek are a function of hip and knee angle qi(i = 1, 2) and angular velocity , Ep is a function of hip and knee angle, so:
(10)
The exoskeleton dynamics equation can be obtained by finding the algebraic expression of each parameter in the above equation and substituting it into the partial differential operation:
(11)
RBF neural network optimization control
RBF neural network is a three-layer neural network with nonlinear mapping relationship from input to output, linear mapping relationship from hidden layer to output, and a neural network that locally approximates the target value. Compared with BF neural networks, RBF neural networks have the advantages of fast convergence speed and are not easy to fall into local minimum values [16]. For the real-time control of exoskeletons of nonlinear systems, RBF neural network is adopted to optimize the control parameters [17] to effectively improve the control accuracy, anti-interference and adaptability of the system.
As shown in Fig 3, the RBF neural network in this paper uses the mode of 2*13*2, and the input layer contains two input values, namely the exoskeleton hip and knee angle tracking error ei (i = 1, 2) and the angular velocity tracking error . The hidden layer contains a total of 13 neurons, and the activation function in the hidden layer uses a Gaussian function [18] which converts the input vector into a linearly separable form. The output layer contains two output values f1, f2, which represent the model control law parameters, and continuously adjust the neural network parameters to change the output value by feeding back the error values and, approaching the error minimum.
Suppose the input value be, which can be expressed as:
(12)
where x is the matrix of the angular tracking error ei (i = 1, 2) and angular velocity tracking error
of the exoskeleton hip and knee.
Using the Gaussian function, the input matrix x is mapped to a high dimension, which can be expressed as:
(13)
where ci and ri represent the center and width of the Gaussky function respectively.
The neural network output can be expressed as:
(14)
where yi represents the output of the neural network after the exoskeleton uncertainty term f is input into the controller.
PSO finds the optimal weight
PSO algorithm is a probabilistic global optimization search algorithm, and its core idea is to seek the optimal solution through cooperation and information sharing between individuals in the population [19]. In Section Derivation of kinetic equations, the RBF neural network optimization controller parameters are introduced, this section mainly introduces the PSO to seek the optimal weight of the neural network, and its optimization flow chart is as follows:
As shown in Fig 4, PSO seeks the optimal weight of the neural network, first determines the neural network topology, and then sets the RBF weight range. BSF weights have a total of 26 dimensions, with a lower weight limit of 10 and an upper limit of 50. The value of the weight can be regarded as the population initialization standard, the limit domain of the particle position is set to the upper and lower limit values of the weight [10, 50], and the particle velocity is limited to between -2 and +2. The minimum objective function is constructed by system input error , and the fitness function is further constructed, so as to complete the calculation of the particle swarm fitness function [20].
The minimum objective function is as follows:
(15)
Converted into an fitness function:
(16)
The particle fitness function and the limit range of particle swarm velocity and position are used to continuously iterate the particle swarm, continuously update the particle position and velocity, seek the minimum error value, output the optimal neural network weight, and accelerate the convergence speed of the neural network.
PSO-RBFNN combined to optimize torque control
Sections RBF neural network optimization control and PSO finds the optimal weight introduce the PSO and RBFNN optimization process, in which the RBF neural network continuously adjusts the output control parameters to further approximate the minimum error value, and the PSO algorithm obtains the weight of the neural network and enters it into RBF to achieve the purpose of accelerating the approximation speed. The exoskeleton control of PSO-RBFNN combined optimization can approach the minimum error value deeper and faster, realize accurate real-time control of exoskeleton, and the overall control process is shown in the figure below:
As shown in Fig 5, represents the output angle and angular velocity of the exoskeleton hip and knee joints. Through closed-loop negative feedback control [21], the system input value is subtracted from the output value to obtain error
, error
is used as the minimum target value of PSO-RBFNN optimization, PSO-RBFNN continuously adjusts the network weight, outputs the value of the appropriate model uncertain f term, substitutes it into the controller, and the Controller design in the figure is as follows.
According to the derived exoskeleton dynamics Eq 11, if the model is accurately modeled, the control law of the controller can be designed as:
(17)
In the actual motion, it is difficult to obtain the accurate model of the controller, and the inaccuracy of the model will lead to the degradation of control performance [22], so it is necessary to identify the inaccurate part of the model, suppose the model uncertainty term be:
(18)
The neural network outputs the actual f value, which has an important impact on the torque control performance of the exoskeleton. Substitute f into the controller to get the corrected control law:
(19)
Therefore, the relationship between the actual state of the exoskeleton and the control force can be obtained, and the error of the angle and angular velocity value and the expected value returned by the sensor can be input into the controller, and the motor continuously adjusts the output torque to make the exoskeleton trajectory close to the ideal input curve.
Results
Qualitative and quantitative analysis of results
According to the above derivation, the MATLAB design m-function is used to carry out simulation experiments, and the expected trajectories and expected angular velocities of the hip angle q1 of the exoskeleton are set to , and the expected trajectories and expected angular velocities of knee angle q2 are
respectively. The expected trajectory and expected angular velocity were taken as the input of the exoskeleton system, and the joint angular torque control was optimized by PSO-RBFNN, and the relationship between the input value and the output value of the system was obtained. As shown in Fig 6, taking the joint trajectory as an example, the relationship between the input angle and the output angle of the exoskeleton and the error value is obtained through simulation, and the PSO-RBFNN is compared with another superior control method, PID control, and the comparison results show that the optimized torque control of PSO-RBFNN has a better control effect.
Fig 6 shows the trajectory tracking curve and angle error curve of joint angles q1 and q2, as shown in the figure, the torque control optimized by PSO-RBFNN only has a slight fluctuation in the output trajectory before 1.5 s, and then the output trajectory can track the desired trajectory well, and the error value is almost 0. In contrast, PID control, the initial fluctuation is great, after stabilization, the effect of output trajectory tracking the desired trajectory is general, compared with the PSO-RBFNN optimization control, the error of PID control is also larger.
Comparing the control performance standards of the two control methods, the optimized torque control of PSO-RBFNN has better stability and speed than PID control. As can be seen from Fig 6a and 6c, by entering the desired trajectory at the same time, the PSO-RBFNN fluctuations are smaller and can stabilize more quickly. It can be seen from Fig 6b and 6d that the error of PSO-RBFNN is almost 0 after 1.5 s, but the error of PID control is large, obviously, PSO-RBFNN has better accuracy. Therefore, compared with PID control, the exoskeleton torque control optimized by PSO-RBFNN has advantages in control performance.
To make the analysis more specific and reliable, the control results are quantitatively analyzed after qualitative analysis, as shown in Fig 7 and Table 2:
The error block diagram and error values are shown in Fig 7 and Table 2. This paper compares the average error, error range and settling time under the two different control methods using PID control as the benchmark., and further explore the superiority of torque control based on PSO-RBFNN optimization based on these specific data. In terms of stability, using the PSO-RBFNN optimized torque control, the error intervals of q1 and q2 are [0, 0.007] and [0, 0.009], which is less volatile than [0, 0.03] and [0, 0.036] under pid control, and quickly tends to 0 degrees and no longer fluctuates. In terms of accuracy, using the torque control optimized by PSO-RBFNN, the average angular errors of q1 and q2 are 5.2*10–4 rad and 5.9*10–5 rad. The average angular errors under PID control are 0.021 rad and 0.018 rad, which are much larger than the errors under PSO-RBFNN optimization. By comparing the stability time of PSO-RBFNN optimization and PID control to compare the rapidity of the two, after PSO-RBFNN optimization, the angle output trajectory of exoskeleton joints is basically stable after about 1 s, with only slight fluctuations however, after PID control, the joint output trajectory remained unstable after 3 s, accompanied by a certain range of fluctuations. In summary, the experimental results take the trajectory error of the exoskeleton under PID control as the benchmark, and verify that the rehabilitated exoskeleton torque control optimized by PSO-RBFNN has good performance in stability, accuracy and rapidity.
Analysis of the influence of uncertainties
In the practical application of exoskeleton, due to the interference of various external factors, the exoskeleton control will be uncertain, which in turn affects the training and rehabilitation effect of patients. Therefore, the analysis of uncertainties in exoskeleton control is particularly important to verify the robustness of exoskeleton control optimized by PSO-RBFNN in practical applications. Firstly, this paper needs to determine the main interference factors in the actual rehabilitation of exoskeletons, which is the interaction of the human body when wearing exoskeleton, which will cause the exoskeleton to be interfered with additional load, and then change the internal parameters of the exoskeleton model and affect the control effect.
In order to analyze the control effect of exoskeleton under the influence of interference factors, this paper simulates the exoskeleton control trajectory under human wear, and compares it with that without interference to verify its robustness. The simulation operation is: keep the input trajectory unchanged, add the thigh mass and calf mass of the exoskeleton to the human load increment, adjust the total thigh weight and calf total weight of 20 kg and 15 kg, and study the change of tracking trajectory after interference.
As shown in Fig 8, this paper takes joint angle 2 as an example to show the trajectory curve of the exoskeleton after being subjected to human interaction, and compares it with the undisturbed trajectory. It can be found that the trajectory error fluctuation is not large after adding the influence of human load, and it is still consistent with the expected trajectory, which can verify the anti-interference of the exoskeleton control optimized by PSO-RBFNN to the outside world under the actual action.
Conclusion
Exoskeletons are widely used in the field of medical rehabilitation, and in this paper, the control of exoskeletons is studied in view of the rehabilitation training effect of exoskeletons. Due to the wide application of deep learning algorithms in the field of optimization, this paper designs a control method for optimizing exoskeleton torque control jointly by PSO and RBFNN, and after comparing with PID control, it is found that the performance of PSO-RBFNN optimized torque controller is superior to that of PID controller, the actual motion trajectory tracking effect of joint angle is better, the control speed is faster, the stability is higher and the results are more accurate. Therefore, it is concluded that the exoskeleton torque control optimized by PSO-RBFNN has a better effect and more advantages in patient rehabilitation training. Moreover, the method proposed in this paper is universal, and the optimized exoskeleton can not only be applied to the field of rehabilitation, but also has good results in manufacturing and logistics and transportation.
References
- 1. Molteni F, Gasperini G, Cannaviello G, Guanziroli E. Exoskeleton and end-effector robots for upper and lower limbs rehabilitation: narrative review. Narrative review. PM&R. 2018;10. pmid:30269804
- 2.
AHA In: https://www.heart.org/. accessed January 15th 2023.
- 3. Shi D, Zhang W, Zhang W, Ding X. A review on lower limb rehabilitation exoskeleton robots. Chinese Journal of Mechanical Engineering. 2019;32(1).
- 4. Gasparri GM, Luque J, Lerner ZF. Proportional Joint-moment control for instantaneously adaptive ankle exoskeleton assistance. IEEE Transactions on Neural Systems and Rehabilitation Engineering. 2019;27(4):751–9. pmid:30908231
- 5. Wen Yu, Rosen J. Neural PID control of robot manipulators with application to an upper limb exoskeleton. IEEE Transactions on Cybernetics. 2013;43(2):673–84.
- 6. Li X, Liu S, Chang Y, Li S, Fan Y, Yu H. A human joint torque estimation method for Elbow Exoskeleton Control. International Journal of Humanoid Robotics. 2020;17(03):1950039.
- 7. Long Y, Du Z-jiang, Wang W-dong, Dong W. Robust sliding mode control based on GA optimization and CMAC compensation for lower limb exoskeleton. Applied Bionics and Biomechanics. 2016;2016:1–13. pmid:27069353
- 8. Zhang Q, Zhou Y. Recent Advances in Non-Gaussian Stochastic Systems Control Theory and Its Applications. International Journal of Network Dynamics and Intelligence. 2022;:111–9.
- 9. Zhang Q, Yin X. Observer-based parametric decoupling controller design for a class of multi-variable non-linear uncertain systems. Systems Science & Control Engineering. 2018;6(1):258–67.
- 10.
Kennedy J, Eberhart R. Particle swarm optimization. Proceedings of ICNN’95—International Conference on Neural Networks. 1995 1942-1948.
- 11. Popescu G. Multivariable Nehari problem and interpolation. Journal of Functional Analysis. 2003;200(2):536–81.
- 12. Barjuei ES, Ardakani MM, Caldwell DG, Sanguineti M, Ortiz J. Optimal selection of motors and transmissions in back-support exoskeleton applications. IEEE Transactions on Medical Robotics and Bionics. 2020;2(3):320–30.
- 13. Amiri MS, Ramli R, Ibrahim MF. Hybrid design of PID controller for four DoF lower limb exoskeleton. Applied Mathematical Modelling. 2019;72:17–27.
- 14.
Ma TZ. Design and Research of Control System for Lower Extremity Exoskeleton Rehabilitation Robo. Master’s Thesis, University of Electronic Science and Technology 2015.
- 15.
Featherstone R, Orin D. Robot dynamics: equations and algorithms. Proceedings 2000 ICRA Millennium Conference IEEE International Conference on Robotics and Automation Symposia Proceedings (Cat No00CH37065).
- 16.
Wang Z, He Y, Jiang M. A comparison among three neural networks for text classification. 2006 8th international Conference on Signal Processing. 2006;
- 17.
Liu J. Digital RBF Neural Network Control. Radial Basis Function (RBF) Neural Network Control for Mechanical Systems. 2012;:293–309.
- 18. Gundogdu O, Egrioglu E, Aladag CH, Yolcu U. Multiplicative neuron model artificial neural network based on Gaussian activation function. Neural Computing and Applications. 2015;27(4):927–35.
- 19.
Jiang M, P. Y, Y. S. Particle swarm optimization—stochastic trajectory analysis and parameter selection. Swarm Intelligence, Focus on Ant and Particle Swarm Optimization. 2007;
- 20. Edla DR, Kongara MC, Cheruku R. A PSO based routing with novel fitness function for improving lifetime of WSNs. Wireless Personal Communications. 2018;104(1):73–89.
- 21. Alagoz BB, Deniz FN, Keles C, Tan N. Disturbance rejection performance analyses of closed loop control systems by reference to disturbance ratio. ISA Transactions. 2015;55:63–71. pmid:25311160
- 22.
Racine JS. Model uncertainty. Reproducible Econometrics Using R. 2019;:175–206.