Knee joint rehabilitation exoskeleton control method based on variable stiffness elastic driver
By optimizing the support vector machine regression model with the chaotic gray wolf algorithm and improving the whale optimization algorithm, the accuracy and speed problems of the knee joint rehabilitation exoskeleton in identifying movement intentions and adjusting stiffness are solved, achieving more efficient compliance control and safety. Improved the versatility and stability of the exoskeleton.
Patent Information
- Application Number
- CN202410521695.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-04-28
AI Technical Summary
Existing knee joint rehabilitation exoskeletons have accuracy and speed problems when identifying patients' movement intentions and adjusting stiffness. Moreover, debugging of admittance control parameters is time-consuming and inaccurate, resulting in slow and unsafe system response.
The chaotic gray wolf algorithm is used to optimize the support vector machine regression model to identify the movement intention and calculate the expected torque. The whale optimization algorithm is improved to set the admittance control parameters, and the power drive motor pre-rotation is used to compensate the tension of the transmission rope to achieve closed-loop PID control.
It improves the accuracy and processing speed of movement intention recognition, enhances the compliance control and safety of the exoskeleton, reduces the debugging time of admittance control parameters, and improves the versatility and stability of the exoskeleton.
Smart Images

Figure CN118593294A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of rehabilitation exoskeleton robots, and in particular to a control method for a knee joint rehabilitation exoskeleton based on a variable stiffness elastic driver. Background Art
[0002] With the increase of the aging population in the world, the number of patients with lower limb movement disorders caused by diseases such as muscular dystrophy and stroke is on the rise. According to relevant medical theories and clinical experience, rehabilitation training can prevent muscle atrophy and promote the recovery of muscle function. The lower limb rehabilitation exoskeleton robot is a mechatronic system that interacts with people. By simulating the movement of human lower limb muscles, it can help patients exercise their lower limb muscles and restore the function of their lower limb muscles. In order to better play the advantages of rehabilitation exoskeleton robots and improve the safety and comfort of patients wearing them, it is necessary to be equipped with control methods that adapt to patients in different situations.
[0003] In order to meet the needs of the wearer in different situations, it is crucial to coordinate the movement of the wearer and the exoskeleton. The key technology of rehabilitation exoskeleton lies in whether it can accurately identify the patient's movement intention and effectively control the exoskeleton according to the movement intention to meet the needs of patients in different environments. This is also the focus and difficulty of rehabilitation exoskeleton design. At present, the methods of movement intention recognition are generally divided into two categories: threshold method and machine learning method. The threshold method is to observe some movement information of the human body and manually set the threshold to divide and classify different gaits. However, due to the subjective factors of different designers, the classification results will be different, and this classification algorithm is too rough to meet the needs of complex situations and has poor generalization ability. The machine learning law that has emerged in recent years is better than the threshold method. The machine learning method refers to building various deep and shallow structural models, collecting various different features, adaptively learning the parameters of the model, and establishing the relationship between the input and output of the model. This method can adapt to the needs of different patients in different situations and has higher accuracy.
[0004] In real environments, patients will encounter various errors when wearing exoskeletons. However, a small error in position will generate a large contact force when the exoskeleton has a large stiffness, which is very unsafe for patients. Therefore, it is necessary to allow the exoskeleton to dynamically adjust its angle and position according to different situations when running on a fixed trajectory, that is, to control the exoskeleton flexibly. For knee rehabilitation exoskeletons, due to the existence of individual differences, the patient's movement intention is often difficult to predict. Generally speaking, a torque sensor or an inverse dynamics model can be used to obtain the expected torque. However, due to external interference, the expected torque obtained using a torque sensor is often inaccurate. If an inverse dynamics model is established to continuously output the expected torque, the system response will become slower and inaccurate due to the complexity of the calculation and the individual differences in the knee joint movement angle. In addition, if general admittance control is used to obtain its expected trajectory, the admittance parameters in the admittance control often require people to manually debug based on experience, which is not only time-consuming but also often has poor results. In addition, during the rotation of the knee joint, the knee joint cannot be equivalent to an ordinary revolute pair, and its rotation center will always change, which will cause discontinuity in the exoskeleton transmission. Summary of the invention
[0005] The technical problem to be solved by the present invention is: in order to be able to quickly and accurately identify the patient's movement intention, a chaotic gray wolf algorithm optimized support vector machine regression (CGWO-SVR) model is established, and the accuracy and processing speed of the support vector machine regression model are further improved by the gray wolf optimization algorithm, thereby obtaining the desired torque and stiffness, and in addition, the improved whale optimization algorithm (IWOA) is used to perform parameter adjustment on the admittance parameters in the admittance control to improve the accuracy of the desired angle of the output drive motor; in order to solve the problem of disappearance of the tension on the transmission rope during transmission caused by the joint centering problem, by establishing the relationship between the tension on the transmission rope and the angle of the power drive motor, the power drive motor is pre-rotated by a certain angle in advance before each drive to pre-tighten the transmission rope, and this compensation angle and the desired angle are used to perform closed-loop PIDA control on the power drive motor.
[0006] In order to solve the above technical problems, a technical solution adopted by the present invention is:
[0007] A knee joint rehabilitation exoskeleton based on a variable stiffness elastic driver, comprising a variable stiffness knee joint rehabilitation exoskeleton body, a power drive module, a stiffness adjustment module, a control module, a signal acquisition module, a data processing module and a control module based on motion intention recognition;
[0008] The variable stiffness knee joint rehabilitation exoskeleton body comprises a knee joint consisting of a calf rod, a hinge shaft fixedly arranged on one side of the top end of the calf rod, and a thigh rod movably hinged on the hinge shaft, a side of the thigh rod is connected to a position-adjustable thigh mounting frame, and a side of the calf rod is connected to a position-adjustable calf mounting frame on the same side, and the thigh mounting frame and the calf mounting frame can be fixedly arranged on the thigh part and the calf part of the human body respectively by tightening the straps;
[0009] The power drive module includes a mounting frame fixedly connected to the front side of the thigh mounting frame, a power drive motor fixedly connected to the mounting frame, a disc torsion spring and a planetary gear train respectively rotatably mounted on the mounting frame, one shaft end of the disc torsion spring is transmission-connected to the output end of the power drive motor, and the other shaft end is transmission-connected to the shaft end of the sun gear of the planetary gear train, the shaft ends of the three planetary gears of the planetary gear train are connected through a planetary frame, the shaft end of the central rotating shaft of the planetary frame is fixedly connected to a driving rope pulley, the hinge shaft is fixedly connected to a driven rope pulley, and the driving rope pulley and the driven rope pulley are transmission-connected through a transmission rope;
[0010] The stiffness adjustment module comprises a stiffness adjustment motor fixedly connected to a mounting frame, a stiffness adjustment gear fixedly connected to an output shaft end of the stiffness adjustment motor, and the stiffness adjustment gear is meshingly connected to a ring gear of a planetary gear train;
[0011] The signal acquisition module includes a surface electromyography signal acquisition instrument, a potentiometer, a tension sensor and a motion capture system. The surface electromyography signal acquisition instrument is used to collect surface electromyography signals of the lower limbs. The potentiometer is installed on the hinge shaft and is used to collect the relative rotation angle between the calf rod and the thigh rod. The tension sensor is arranged on the transmission rope and is used to measure the tension on the transmission rope. The motion capture system is used to collect the position, speed and acceleration of each marking point of the lower limbs of the human body;
[0012] The control module includes a host computer PC, a slave single-chip computer, a first encoder arranged on the power drive motor, and a second encoder arranged on the stiffness adjustment motor. The host PC has built-in data processing software and communicates with the slave single-chip computer via a serial port to receive and process data. The slave single-chip computer is respectively connected to the power drive motor and the stiffness adjustment motor via a CAN bus and collects data collected by the signal acquisition module.
[0013] The motion intention recognition refers to estimating the torque and stiffness of the knee joint by collecting surface electromyographic signals and knee joint angles, optimizing the support vector machine regression model by establishing a chaotic gray wolf algorithm, taking the collected various signals as the input of the model, and taking the torque and stiffness calculated by inverse dynamics as the output of the model, and training the support vector machine regression model by constructing a training set and a test set;
[0014] The control module refers to adjusting the admittance parameters of the admittance control through the improved whale algorithm, taking the torque estimated by the support vector machine regression model as the input of the admittance control, and the knee joint angle as the output of the admittance control, adjusting the admittance parameters by evaluating the error between the admittance output angle and the actual knee joint angle, and at the same time compensating a certain angle through the power drive motor to tighten the transmission rope, and constructing a closed-loop PIDA with the compensation angle and the output angle of the admittance control to perform smooth control on the power drive motor.
[0015] Furthermore, a thigh connecting plate is arranged between the thigh rod and the thigh connecting frame, and a calf connecting plate is arranged between the calf rod and the calf connecting frame. A plurality of evenly distributed bolt through holes are opened on the side walls of the thigh rod, the calf rod, the thigh connecting frame and the calf connecting frame. The two sides of the thigh connecting plate are respectively connected to the thigh rod and the thigh connecting frame by bolts, and the two sides of the calf connecting plate are respectively connected to the calf rod and the calf connecting frame by bolts. By adjusting the assembly position of the bolts and the bolt through holes, the installation position of the thigh mounting frame on the thigh rod and the installation position of the calf mounting frame on the calf rod are respectively realized.
[0016] Furthermore, the stiffness of the planet carrier is expressed as the output stiffness of the knee joint rehabilitation exoskeleton based on the variable stiffness elastic driver, which is:
[0017]
[0018] Among them, K H is the output stiffness of the exoskeleton, M H is the torque acting on the planet carrier, θ H is the rotation angle of the planet carrier;
[0019] According to the transmission characteristics of the gear train, the torque and angle relationship between the disc torsion spring and the planet carrier can be obtained. Further, the relationship between the output stiffness of the exoskeleton and the stiffness of the disc torsion spring can be obtained as follows:
[0020] K H =K s ·i 2
[0021] Among them, K s is the torsion spring stiffness, i is the transmission ratio of the sun gear and the planet carrier of the planetary gear train, and the calculation formula of i is:
[0022]
[0023] Among them, Z1, Z3, and Z4 represent the number of teeth of the sun gear, the ring gear, and the stiffness adjustment gear, respectively, and the number of teeth on the inner and outer sides of the ring gear is equal, and n1 and n4 are the rotation speeds of the sun gear and the stiffness adjustment gear, respectively;
[0024] Therefore, the output stiffness of the exoskeleton is:
[0025]
[0026] And a control method for a knee joint rehabilitation exoskeleton based on a variable stiffness elastic driver, which is applied to the knee joint rehabilitation exoskeleton based on the variable stiffness elastic driver, comprising the following steps:
[0027] S10, the signal acquisition module collects kinematic data of the wearer when walking, including the surface electromyography signal of the leg collected by the surface electromyography signal collector and the knee joint rotation angle collected by the potentiometer;
[0028] S11, preprocessing the collected knee joint rotation angle data and surface electromyography signal data respectively;
[0029] S12, establishing a two-link Lagrangian dynamic model of the lower limbs through the thigh rod and the calf rod, obtaining the motion information of the lower limb marker points through the motion capture system, and solving the knee joint torque through the Euler-Lagrangian equation on the data processing software;
[0030] S13. Construct a chaotic gray wolf algorithm to optimize the support vector machine regression model for motion intention recognition: Build a corresponding model on the data processing software, collect the knee joint angle and surface electromyography signal data of the wearer when walking after wearing the exoskeleton, use the first % of the collected and processed data as the input of the training set, and the knee joint torque and stiffness values calculated by the model as the training set output, train the prediction model, use the last % of the collected and processed data as the test set input, and the knee joint torque and stiffness values calculated by the model as the test set output;
[0031] S14, respectively calculating the corresponding root mean square errors of the true values of the knee joint torque and stiffness values calculated by the Lagrangian dynamics model and the estimated values of the knee joint torque and stiffness values output by the support vector machine regression model, and judging the quality of the established chaotic gray wolf algorithm optimized support vector machine regression prediction model by the root mean square error;
[0032] S15. During a gait cycle of the wearer wearing the exoskeleton, the corresponding rotation angles of the power drive motor for tightening the transmission rope at some sampling time points are collected to obtain a plurality of data points of time and the rotation angle of the power drive motor. These data points are fitted with a spline curve to obtain a motor rotation angle-time equation for compensating for joint centering. Before the power drive motor drives the transmission rope each time, the power drive motor is rotated in advance by a compensation angle to achieve continuous output of driving force on the transmission rope.
[0033] S16. After estimating the knee joint torque by optimizing the support vector machine regression model with the chaotic grey wolf algorithm, firstly, build an admittance control model after adjusting the admittance parameters with the improved whale optimization algorithm on the host computer MATLAB software. After inputting the knee joint torque into the admittance control model, the admittance control model outputs the corresponding knee joint rotation angle;
[0034] S17, after the stiffness of the knee joint is estimated by optimizing the support vector machine regression model with the chaotic grey wolf algorithm, the rotation of the stiffness adjustment motor is controlled by the lower computer single chip microcomputer to drive the rotation of the stiffness adjustment gear, so that the ring gear of the planetary gear train rotates to achieve real-time adjustment of the stiffness, and the real-time nonlinear adjustment of the stiffness of the knee joint is achieved through closed-loop PID control;
[0035] S18. Use the knee joint rotation angle output by the admittance control model in step S16 and the compensation angle in step S15 to solve the joint alignment problem as inputs for closed-loop PIDA control, control the rotation of the power drive motor to drive the knee joint rotation, and assist the wearer in rehabilitation training.
[0036] Furthermore, in step S11, the specific method of surface electromyography signal data collection and filtering preprocessing is:
[0037] The surface electromyography signal acquisition instrument patches were respectively attached to the vastus lateralis, long head of the biceps femoris, and medial head of the gastrocnemius of the right leg, and the electromyography signals of the leg muscles of the wearer walking at a speed of 2 m / s for 1 minute were collected at a rate of 2000 Hz using the four channels of the surface electromyography signal acquisition instrument, and then a 50 Hz band-stop filter and a 20 Hz-500 Hz Butterworth band-pass filter were used to remove noise from the signal;
[0038] Then, the filtered electromyographic signal is divided into a window with 30 sampling points, and the root mean square RMS of the time domain feature is selected for extraction. The calculation formula of RMS is as follows:
[0039]
[0040] Among them, X(i) is the strength value of the electromyographic signal; N is the number of electromyographic signals in a window.
[0041] Furthermore, in step S12, the formula used to calculate the knee joint torque in the lower limb two-link Lagrangian dynamics model is:
[0042]
[0043] Where M is the knee joint torque, J1 is the moment of inertia of the thigh bar, J2 is the moment of inertia of the shank bar, m1 is the mass of the thigh bar, m2 is the mass of the shank bar, θ1 is the angle between the line between the center of mass of the thigh bar and the knee joint and the horizontal plane, θ2 is the angle between the line between the center of mass of the shank bar and the knee joint and the horizontal plane, l 1a is the distance from the center of mass of the thigh bar to the rotation center of the knee joint, l1 is the length of the thigh bar, l2 is the length of the calf bar, F x is the horizontal force acting on the knee joint, F y is the vertical force acting on the knee joint, c 1x is the horizontal position of the mass center of the thigh member pair, c 1y is the vertical position of the center of mass of the thigh member pair, c 2x is the horizontal position of the center of mass of the shank member pair, c 2y is the vertical position of the center of mass of the shank member pair.
[0044] Furthermore, in step S14, the calculation formula of the root mean square error is:
[0045]
[0046] Among them, X ref is the knee joint moment obtained by solving the Euler-Lagrange equation or the knee joint stiffness obtained by the exoskeleton stiffness calculation formula, X pre is the knee torque or stiffness estimated by the support vector machine regression model, and N is the data length of the test sample sequence.
[0047] Furthermore, in step S16, the admittance control formula adopted by the admittance control model is:
[0048]
[0049] Where e = q r -q a , represents the knee joint rotation angle error, q r is the desired rotation angle of the knee joint, q a is the desired rotation angle of the knee joint, τ is the estimated torque, M d , C d and K d are the mass, damping and stiffness parameters of the admittance controlled object respectively.
[0050] Furthermore, in step S17, the stiffness control formula for adjusting the stiffness of the knee joint is:
[0051]
[0052] Where e(t) is the error between the predicted stiffness estimated by the support vector machine regression model and the reference stiffness calculated by the Lagrangian dynamics model, and K p , K i , K d They are the proportional parameter, integral parameter and differential parameter of the PID controller respectively.
[0053] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0054] (1) The knee rehabilitation exoskeleton based on the variable stiffness elastic driver of the present invention uses the support vector machine regression model in the machine learning algorithm and is optimized using the Gray Wolf Optimization Algorithm, thereby improving the training speed and accuracy of the model. After the model is trained, there is no need to recalculate the knee joint torque and angle, thereby reducing the use of sensors. The wearer's movement intention can be quickly and accurately identified, and the torque and stiffness required for knee joint movement can be continuously estimated, thereby improving the real-time performance of the exoskeleton's compliant control and enhancing the safety of the knee rehabilitation exoskeleton. In addition, based on the variable stiffness of the knee joint, the wearer's comfort can be improved. The movement intentions of different wearers can be predicted by simply retraining the model, thereby improving the versatility of the exoskeleton.
[0055] (2) In the knee rehabilitation exoskeleton control method based on the variable stiffness elastic driver of the present invention, the parameters of the admittance control model are adjusted using the improved whale optimization algorithm. After the torque is predicted, there is no need to manually select the admittance parameters, which greatly reduces the trial and error time for selecting the admittance parameters and improves the accuracy of the desired angle of the admittance control output.
[0056] (3) The knee joint rehabilitation exoskeleton based on the variable stiffness elastic driver of the present invention makes the power drive motor rotate a certain compensation angle in advance each time it rotates to output, so that the transmission rope is always in a taut state, thereby solving the problem of discontinuous exoskeleton transmission caused by joint alignment problems and improving the flexibility of the exoskeleton power output.
[0057] (4) The knee rehabilitation exoskeleton based on the variable stiffness elastic driver of the present invention predicts the stiffness based on the wearer's different movement intentions, can flexibly adapt to different environments and variable stiffness requirements, and uses a closed-loop PID to dynamically control the stiffness motor, thereby improving the stability and comfort of the exoskeleton. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a schematic diagram of the three-dimensional structure of the knee joint rehabilitation exoskeleton based on the variable stiffness elastic driver of the present invention;
[0059] Figure 2 It is a schematic diagram of the main structure of the knee joint rehabilitation exoskeleton based on the variable stiffness elastic driver of the present invention;
[0060] Figure 3 It is a three-dimensional structural schematic diagram of the knee joint rehabilitation exoskeleton of the present invention when it is worn on a human leg;
[0061] Figure 4 It is a schematic diagram of the lower limb two-link Lagrangian dynamics model established in the present invention;
[0062] Figure 5 It is a schematic diagram of the tolerance principle of the support vector machine regression SVR adopted in the present invention;
[0063] Figure 6 It is a schematic diagram of the gray wolf updating position method in the gray wolf optimization algorithm adopted by the present invention;
[0064] Figure 7 It is a comparison chart of the estimated torque and calculated torque in the CGWO-SVR simulation experiment;
[0065] Figure 8 This is a comparison chart of the estimated stiffness and the calculated stiffness in the CGWO-SVR simulation experiment;
[0066] Fig. 9 It is the model diagram of the admittance control based on the WOA optimization algorithm in the simulink module of MATLAB software;
[0067] Fig.10 This is a comparison chart of the actual angle and the expected angle obtained from the simulation experiment of admittance control in simulink;
[0068] Fig.11 This is a schematic diagram of the motion control system flow of a knee rehabilitation exoskeleton based on a variable stiffness elastic actuator.
[0069] In the figure: 1. first encoder; 2. power drive motor; 3. sun gear; 4. worm gear mechanism; 5. disc torsion spring; 6. planetary carrier; 7. second encoder; 8. stiffness adjustment motor; 9. stiffness adjustment gear; 10. transmission rope; 11. tension sensor; 12. potentiometer; 13. ring gear; 14. planetary gear; 15. thigh rod; 16. reducer; 17. thigh connecting plate; 18. driving rope pulley; 19. calf rod; 20. calf connecting plate; 21. driven rope pulley. DETAILED DESCRIPTION
[0070] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.
[0071] See also Figure 1 and Figure 2, a knee joint rehabilitation exoskeleton based on a variable stiffness elastic actuator, comprising a variable stiffness knee joint rehabilitation exoskeleton body, a power drive module, a stiffness adjustment module, a control module, a signal acquisition module, a data processing module and a control module based on motion intention recognition;
[0072] The variable stiffness knee joint rehabilitation exoskeleton body includes a knee joint consisting of a shank rod 19, a hinge shaft fixedly arranged on one side of the top of the shank rod 19, and a thigh rod 15 movably hinged on the hinge shaft. Figure 1 The left side surface shown in FIG) is connected to a position-adjustable thigh mounting frame, and the same side surface of the calf rod 19 (as shown in FIG) is connected to a position-adjustable thigh mounting frame. Figure 1 A calf mounting frame with adjustable position is connected to the left side of the body (as shown in FIG. 1 ), and the thigh mounting frame and the calf mounting frame can be fixedly arranged on the thigh part and the calf part of the human body respectively by tightening the straps. Figure 3 The thigh rod 15, the calf rod 19, the thigh connection frame and the calf connection frame are all provided with a plurality of evenly distributed bolt holes, and the thigh mounting frame can be connected and fixed to the thigh rod 15 and the calf mounting frame can be connected and fixed to the calf rod 19 by matching and connecting the bolt holes; the connection position of the thigh mounting frame on the thigh rod 15 and the connection position of the calf mounting frame on the calf rod 19 can be adjusted by adjusting the matching positions of the bolt holes.
[0073] Preferably, a thigh connecting plate 17 is arranged between the thigh rod 15 and the thigh connecting frame, and a calf connecting plate 20 is arranged between the calf rod 19 and the calf connecting frame. The thigh connecting plate 17 and the calf connecting plate 20 are both C-shaped sheet metal parts. The two sides of the thigh connecting plate 17 are connected to the thigh rod 15 and the thigh connecting frame respectively by bolts, and the two sides of the calf connecting plate 20 are connected to the calf rod 19 and the calf connecting frame respectively by bolts, so that the thigh rod 15 is located at a certain distance outside the thigh mounting frame, and the calf rod 19 is located at a certain distance outside the calf mounting frame, which not only provides sufficient available space for the installation of functional components such as the power drive module and the stiffness adjustment module, but also makes the knee joints of the two rods parallel to the outside of the human leg, avoiding direct collision between the rod and the human leg during rotation, and improving safety during use. By adjusting the assembly position of the bolt and the bolt through hole, the installation position adjustment of the thigh mounting frame on the thigh rod 15 and the installation position of the calf mounting frame on the calf rod 29 are respectively realized.
[0074] The power drive module includes a mounting frame fixedly connected to the front side of the thigh mounting frame, a power drive motor 2 fixedly connected to the mounting frame, a disc torsion spring 5 and a planetary gear system respectively rotatably mounted on the mounting frame. The mounting frame is composed of a plurality of sheet metal frames, each of which is fixedly connected by a bolt pair, and is respectively used for the installation of mechanical structures such as the power drive motor 2, the stiffness adjustment motor 8, the disc torsion spring 5 and the planetary gear system. In this embodiment, the power drive motor 2 is fixedly mounted on the front top of the mounting frame, and its output shaft is vertically downward, and a first encoder 1 is provided at the top shaft end of the power drive motor 2 for detecting the rotation angle of the power drive motor 2. The disc torsion spring 5 is located on one side below the power drive motor 2, and its central axis is horizontally arranged and parallel to the axis of the rotating shaft of the knee joint, and its input shaft and output shaft are respectively rotatably connected to the vertical side walls on both sides of the mounting frame. The disc torsion spring 5 and the power drive motor 2 are connected through a worm gear mechanism 4. Specifically, the worm of the worm gear mechanism 4 is coaxially fixedly connected to the output shaft of the power drive motor 2, and the worm wheel of the worm gear mechanism 4 is coaxially fixedly connected to the input shaft of the disc torsion spring 5. In this way, the power drive motor 2 can be arranged above the disc torsion spring 5 to make the structure compact, and smooth power transmission can be achieved, and one-way power transmission with a larger transmission ratio can be achieved.
[0075] The planetary gear train is composed of a ring gear 13, a sun gear 3 coaxially arranged in the ring gear 13, and three planetary gears 14 meshingly connected with the sun gear 3 and the ring gear 13. The outer circumferential surface of the ring gear 13 is provided with outer teeth equal to the number of inner teeth thereof, and the inner end surface of the ring gear 13 is fixedly connected with a ring gear bracket, which is rotatably sleeved on the output shaft of the disc torsion spring 5, so that the axis position of the ring gear 13 is fixed and coincides with the axis of the output shaft of the disc torsion spring 5, and the ring gear 13 can rotate around its axis. The inner shaft end of the sun gear 3 is fixedly connected to the output shaft end of the disc torsion spring 5, and the driving force of the power drive motor 2 can be flexibly transmitted to the sun gear 3 through the disc torsion spring 5, so as to realize the power input of the planetary gear train. The shaft ends of the three planetary gears 14 of the planetary gear train are connected through a planet carrier, and when the ring gear 13 is relatively fixed and the sun gear 3 rotates, the planet carrier can be driven to rotate by the revolution of the three planetary gears 14 around the sun gear 3, so as to realize the power output of the planetary gear train.
[0076] The stiffness of the planet carrier is expressed as the output stiffness of the knee joint rehabilitation exoskeleton based on the variable stiffness elastic actuator, which is:
[0077]
[0078] Among them, K H is the output stiffness of the exoskeleton, M H is the torque acting on the planet carrier, θ H is the rotation angle of the planet carrier;
[0079] According to the transmission characteristics of the gear train, the torque and angle relationship between the disc torsion spring and the planet carrier can be obtained. Further, the relationship between the output stiffness of the exoskeleton and the stiffness of the disc torsion spring can be obtained as follows:
[0080] K H =K s ·i 2
[0081] Among them, K s is the torsion spring stiffness, i is the transmission ratio of the sun gear and the planet carrier of the planetary gear train, and the calculation formula of i is:
[0082]
[0083] Among them, Z1, Z3, and Z4 represent the number of teeth of the sun gear, the ring gear, and the stiffness adjustment gear, respectively, and the number of teeth on the inner and outer sides of the ring gear is equal, and n1 and n4 are the rotation speeds of the sun gear and the stiffness adjustment gear, respectively;
[0084] Therefore, the output stiffness of the exoskeleton is:
[0085]
[0086] The central rotating shaft end of the planetary frame is fixedly connected with a driving pulley 18, and the hinge shaft of the knee joint is fixedly connected with a driven pulley 21. The driving pulley 18 and the driven pulley 21 are connected by a transmission rope 10. When the planetary frame rotates to output power, the driving pulley 18 can be driven to rotate synchronously, and then the driven pulley 21 is driven to rotate by the transmission rope 10, so that the hinge shaft and the calf rod 19 rotate synchronously with the driven pulley 21, and finally the calf rod 19 rotates relative to the thigh rod 15. Since the calf rod 19 is fixed to the human calf through the calf mounting frame, and the thigh rod 15 is fixed to the human thigh through the thigh mounting frame, when the push-down rod 19 rotates relative to the thigh rod 15, the calf can be actively applied with bending and stretching power, thereby realizing the leg auxiliary rehabilitation training of the exoskeleton wearer.
[0087] The stiffness adjustment module includes a stiffness adjustment motor 8 fixedly connected to the mounting frame, a stiffness adjustment gear 9 fixedly connected to the output shaft end of the stiffness adjustment motor 8, and the stiffness adjustment gear 9 is meshed with the ring gear 13 of the planetary gear system. Specifically, the stiffness adjustment motor 8 is located below the disc torsion spring 5, and its output shaft axis is arranged parallel to the output shaft axis of the disc torsion spring 5. Its output shaft end is fixedly connected with a reducer 16, and the stiffness adjustment gear 9 is fixedly installed on the output shaft end of the reducer 16; the terminal shaft end of the stiffness adjustment motor 8 is provided with a second encoder 7 for detecting the rotation angle of the stiffness adjustment motor 8. The stiffness adjustment gear 9 and the ring gear 13 are reduction transmission, and after being cascaded with the reducer 16, a secondary reduction structure is formed. The stiffness adjustment motor 8 drives the stiffness adjustment gear 9 to rotate through the reducer 16, and the stiffness adjustment gear 9 drives the ring gear 13 to rotate slightly through meshing transmission, thereby realizing real-time adjustment of the stiffness.
[0088] The signal acquisition module includes a surface electromyography signal acquisition instrument, a potentiometer 12, a tension sensor 11 and a motion capture system (all existing equipment). The surface electromyography signal acquisition instrument is used to collect surface electromyography signals of the lower limbs, specifically the surface electromyography signals of the vastus lateralis, the long head of the biceps femoris and the medial head of the gastrocnemius muscle of the right leg; the potentiometer 12 is installed on the hinge axis, that is, the knee joint of the exoskeleton robot, and is used to collect the relative rotation angle (knee joint rotation angle) between the calf rod 19 and the thigh rod 15; the tension sensor 11 is set on the transmission rope 10, and is used to measure the tension on the transmission rope 10. The motion capture system is used to collect the position, velocity and acceleration of each mark point of the lower limb of the human body. The above-collected signal data is used as input data, and the torque and stiffness of the knee joint are calculated by inverse dynamics.
[0089] The control module includes a host computer PC, a slave single-chip computer, a first encoder 1 arranged on the power drive motor 2, and a second encoder 7 arranged on the stiffness adjustment motor 8. The host PC has built-in data processing software (MATLAB software) and uses serial port communication with the slave single-chip computer to receive and process data. The serial port number, baud rate, input and output buffer size and other information are set in the communication module of the host PC, and connected to the slave single-chip computer with a USB cable. The slave single-chip computer is respectively connected to the power drive motor 2 and the stiffness adjustment motor 8 through the CAN bus, and collects the data collected by the signal acquisition module.
[0090] Motion intention recognition refers to estimating the torque and stiffness of the knee joint by collecting surface electromyographic signals and knee joint angles, optimizing the support vector machine regression model by establishing a chaotic gray wolf algorithm, taking the collected various signals as the input of the model, and the torque and stiffness calculated by inverse dynamics as the output of the model. The support vector machine regression model is trained by constructing training sets and test sets.
[0091] The control module refers to adjusting the admittance parameters of the admittance control through the improved whale algorithm, taking the torque estimated by the support vector machine regression model as the input of the admittance control, and the knee joint angle as the output of the admittance control. The admittance parameters are adjusted by evaluating the error between the admittance output angle and the actual knee joint angle. At the same time, the power drive motor 2 is compensated for a certain angle to tighten the transmission rope 10, and a closed-loop PIDA is constructed with the compensation angle and the output angle of the admittance control to perform smooth control on the power drive motor 2.
[0092] The following describes in detail the specific contents of the control module based on motion intention recognition through a knee rehabilitation exoskeleton control method based on a variable stiffness elastic driver.
[0093] See also Fig.11 A control method for a knee joint rehabilitation exoskeleton based on a variable stiffness elastic actuator is applied to the knee joint rehabilitation exoskeleton based on a variable stiffness elastic actuator, comprising the following steps:
[0094] S10, the signal acquisition module collects the kinematic data of the wearer when walking, including the surface electromyographic signal of the leg collected by the surface electromyographic signal acquisition instrument and the knee joint rotation angle collected by the potentiometer; the surface electromyographic signal acquisition instrument patch is respectively attached to the vastus lateralis muscle, the long head of the biceps femoris muscle, and the medial head of the gastrocnemius muscle of the right leg, and the surface electromyographic signal acquisition instrument is used to collect the electromyographic signal of the leg muscles of the wearer when walking at a speed of 2m / s for 1 minute at a rate of 2000Hz through four channels;
[0095] S11, preprocessing the collected knee joint rotation angle data and surface electromyography signal data respectively;
[0096] (1) Knee joint angle data preprocessing:
[0097] The knee joint angle is measured by the potentiometer at the knee joint of the exoskeleton robot structure. Before the knee joint angle is collected, the actual measured angle is often different from the rotation angle of the brush at both ends of the potentiometer range. The potentiometer range needs to be calibrated and the middle part of the potentiometer is selected as the new range. A 50Hz band-stop filter and a 20Hz-500Hz Butterworth bandpass filter are used to remove noise from the signal.
[0098] (2) Surface electromyography signal data preprocessing:
[0099] A 50Hz band-stop filter and a 20Hz-500Hz Butterworth bandpass filter were used to remove the noise in the signal. After that, the filtered electromyographic signal was divided into a window with 30 sampling points, and the root mean square RMS of the time domain features was selected for extraction. The calculation formula of RMS is as follows:
[0100]
[0101] Among them, X(i) is the strength value of the electromyographic signal; N is the number of electromyographic signals in a window.
[0102] S12. A two-link Lagrangian dynamic model of the lower limb is established through the thigh rod and the calf rod, such as Figure 4 As shown, the motion information of the lower limb markers is obtained through the motion capture system, and the knee joint torque is solved by the Euler-Lagrange equation on the data processing software;
[0103] The formula used to calculate the knee joint torque in the two-link Lagrangian dynamics model of the lower limb is:
[0104]
[0105] Where M is the knee joint torque, J1 is the moment of inertia of the thigh bar, J2 is the moment of inertia of the shank bar, m1 is the mass of the thigh bar, m2 is the mass of the shank bar, θ1 is the angle between the line between the center of mass of the thigh bar and the knee joint and the horizontal plane, θ2 is the angle between the line between the center of mass of the shank bar and the knee joint and the horizontal plane, l 1a is the distance from the center of mass of the thigh bar to the rotation center of the knee joint, l1 is the length of the thigh bar, l2 is the length of the calf bar, F x is the horizontal force acting on the knee joint, F y is the vertical force acting on the knee joint, c 1x is the horizontal position of the center of mass of the thigh member, c 1y is the vertical position of the center of mass of the thigh member, c 2x is the horizontal position of the center of mass of the calf member, c 2y is the vertical position of the center of mass of the calf member.
[0106] S13. Construct a chaotic gray wolf algorithm to optimize the support vector machine regression model for motion intention recognition: Build the corresponding model on the data processing software, collect the knee joint angle and surface electromyography signal data of the wearer when walking after wearing the exoskeleton, use the first 70% of the collected and processed data as the input of the training set, and use the knee joint torque and stiffness values calculated by the model as the training set output, train the prediction model, use the last 30% of the collected and processed data as the test set input, and use the knee joint torque and stiffness values calculated by the model as the test set output;
[0107] Support Vector Machine (SVM) is a generalized linear classifier that performs binary classification of data in a supervised learning manner. Its decision boundary is the maximum margin hyperplane for solving learning samples, which can transform the problem into a problem of solving convex quadratic programming. The addition of kernel function can solve nonlinear problems and avoid the curse of dimensionality. The dimension of the feature subspace is closely related to the kernel function σ. The smaller σ is, the more detailed the classification is, but too small σ will cause overfitting. The use of slack variables can allow some special samples, thereby avoiding the impact of special samples on the performance of the entire model. The penalty factor C is introduced to describe the model's tolerance to training samples. The larger the C value, the lower the tolerance to training sample errors, the stronger the model fitting accuracy, but the worse the generalization ability, and it is easy to overfit. The smaller C is, the higher the tolerance to training sample errors. Although the model has strong generalization ability, the sample fitting accuracy decreases, the empirical risk increases, and underfitting is prone to occur. In order to establish the optimal SVM regression model, the key is to find the optimal penalty factor C and kernel function parameter σ.
[0108] SVR is a branch of support vector machine SVM. Unlike SVM, SVM aims to maximize the distance between the nearest sample and the hyperplane, while SVR aims to minimize the distance between the farthest sample and the hyperplane. i ,y i ),i=1,2,...,m},
[0109] In a given training set D = {(x i ,y i )}, i = 1, 2, ..., m, where x i ,y i Represent the input vector and actual value respectively, and establish the objective function:
[0110] f(x)=ω T Φ(x)+b
[0111] Where x=(x1,x2,...,x m ) T , represents m groups of input vectors, Φ(x) represents the mapping function from Euclidean space to Hilbert space, ω represents the weight, and b is the bias value. In traditional problems, the loss is generally calculated by the difference between the output of the model f(x) and the true value y. The loss is 0 only when f(x) is equal to y. However, SVR assumes that f(x) can tolerate a maximum deviation of ε from y, that is, the loss is calculated only when |f(x)-y|>ε. This is equivalent to f(x)=ω T Φ(x)+b constructs an interval band with a width of 2ε. If the sample falls within the interval band, the loss is considered to be 0, such as Figure 5 shown.
[0112] At this point, the linear hard margin SVR problem can be transformed into:
[0113]
[0114] st|(ω·x i +b)-y i |≤ε,i=1,2,…,m
[0115] Not only does the separation band need to be maximized, but the loss also needs to be minimized, thereby determining ω and b.
[0116] SVR loss function:
[0117]
[0118]
[0119] This leads to the original problem of constrained optimization:
[0120]
[0121] Among them, C is the penalty factor, l ε is the loss function.
[0122] Adding a slack variable ξ≥0 increases the model's tolerance for individual samples, that is, allowing some samples to be outside the interval band. If the degree of relaxation on both sides of the hyperplane is allowed to be different, two slack variables ξ are introduced i ≥0, Therefore, the problem can be transformed into a linear soft margin:
[0123]
[0124] At this time, the Lagrange multiplier α is introduced i ≥0, β i ≥0, Construct the unconstrained Lagrangian:
[0125]
[0126] Using the KKT optimal condition, the original problem is transformed into a dual problem:
[0127]
[0128] Among them, α i , β i , is the Lagrange multiplier, ω, b, ξ i , is the main problem parameter.
[0129] For ω, b, ξ respectively i , Find the partial derivative and substitute it into the Lagrangian function to get:
[0130]
[0131] In this case, only α i , Then seek To α i , The maximum value of .
[0132]
[0133] is equivalent to:
[0134]
[0135] The above formula is the dual optimization problem. Assume that the optimal solution is α * , The optimal solution to the original problem can be obtained * and b * ,Right now:
[0136]
[0137] Then the optimal hyperplane can be expressed as:
[0138]
[0139] The classification decision function can be written as:
[0140]
[0141] Considering the nonlinear mapping Φ(x) and the kernel function K(x,y), it is easy to get the dual form of nonlinear support vector regression:
[0142]
[0143] K(x,x i )=Φ(x)·Φ(x i )
[0144] Common forms of kernel functions include polynomial function, Laplace kernel function, sigmoid kernel function, Gaussian radial basis kernel function (RBF), etc. The RBF function is as follows:
[0145]
[0146] The RBF function has the characteristics of wide convergence domain, few parameters and strong versatility, so the RBF function is used to establish the SVR model.
[0147] Grey-Wolf-Optimizer (GWO) is inspired by the hunting behavior of grey wolves. The hunting process of grey wolves includes surrounding prey, chasing prey, and attacking prey.
[0148] During the encirclement process, the wolves will adjust their positions, namely:
[0149] D=|C·X p (t)-X p (t)|
[0150] X(t+1)=X p (t)-A·D
[0151] Among them, D is the distance between the gray wolf and the prey, t represents the number of iterations, A and C are coefficients, and X p (t) is the position of the prey, X(t) is the position of the wolf, and A and C are calculated as follows:
[0152] A=2a·r1-a
[0153] C=2r2
[0154] Where r1 and r2 are randomly generated vectors between [0, 1], A is a random value in [-a, a], and the convergence factor a is linearly reduced from 2 to 0 according to the following formula during the iteration process.
[0155]
[0156] In the formula, t represents the current number of iterations, and T is the set maximum number of iterations. When the value of a decreases from 2 to 0, the corresponding value of A also changes in the interval [-a, a]: the larger the value of a, the farther the gray wolf will move from the prey, hoping to find a more suitable prey, thus prompting the wolf pack to conduct a global search (||>1); if the value of a is smaller, the gray wolf will approach the prey, prompting the wolf pack to conduct a local search (||<1).
[0157] During the hunting process, a, β, and δ wolves keep approaching the position of the prey, and the positions of the remaining ω wolves are constantly adjusted according to the positions of a, β, and δ wolves. The mathematical model of a, β, and δ wolves tracking prey is as follows:
[0158]
[0159] Among them, D α , D β , D δ Respectively represent the distance between a, β, δ and other gray wolves, X α, X β , X δ a, β, δ represent the current positions of the wolves respectively. C1, C2, C3 are three randomly generated vectors, and X is the current position of the gray wolf individual.
[0160]
[0161] Among them, X1, X2, and X3 represent the adjusted position of ω wolf after being affected by a wolf, β wolf, and δ wolf respectively. Here we take the average value to get the final position of ω wolf:
[0162]
[0163] The gray wolf updates its position as follows Figure 6 shown.
[0164] Using chaotic sequences for population initialization, selection, crossover and mutation will affect the entire process of the algorithm, and often achieve better results than pseudo-random numbers. Since the Logistic map has good ergodic consistency, this paper uses the Logistic map to generate the initial position of the wolf pack. The equation is as follows:
[0165] y j+1 =μy j (1-y j ),y j ∈(0,1),μ∈[0,4]
[0166] In the formula, μ is called the branch parameter. Related research shows that only when 3.5699456<μ≤4, the Logistic map has chaotic properties. This paper uses the Logistic map to map it to the population search space
[0167] x i,j =lb j,min +y i,j (ub j,max -lb j,min )
[0168] Among them, [lb j,min ,ub j,max ] is the gray wolf position x i,j The upper and lower limits of .
[0169] S14, respectively calculating the corresponding root mean square errors of the true values of the knee joint torque and stiffness values calculated by the Lagrangian dynamics model and the estimated values of the knee joint torque and stiffness values output by the support vector machine regression model, and judging the quality of the established chaotic gray wolf algorithm optimized support vector machine regression prediction model by the root mean square error;
[0170] The formula for calculating the root mean square error is:
[0171]
[0172] Among them, X ref is the knee joint moment obtained by solving the Euler-Lagrange equation or the knee joint stiffness obtained by the exoskeleton stiffness calculation formula, X pre is the knee torque or stiffness estimated by the support vector machine regression model, and N is the data length of the test sample sequence.
[0173] like Figure 7 The figure shows a comparison of the predicted torque of the test set in the CGWO-SVR simulation experiment and the actual knee joint torque calculated by the dynamic equation. The horizontal axis represents the amount of test set data, the vertical axis represents the knee joint torque, the solid line represents the torque predicted by the support vector machine regression model, and the dotted line represents the knee joint torque calculated by the dynamic equation. It can be seen that the two are basically consistent with a small error.
[0174] like Figure 8 The figure shows the comparison between the predicted stiffness of the test set in the CGWO-SVR simulation experiment and the actual knee joint stiffness calculated by the dynamic equation. The horizontal axis represents the amount of test set data, the vertical axis represents the stiffness, the solid line represents the stiffness predicted by the support vector machine regression model, and the dotted line represents the calculated knee joint stiffness. It can be seen that the two are basically consistent, with a small error and a good prediction effect.
[0175] S15. During a gait cycle when the wearer wears the exoskeleton and walks, due to the problem of joint alignment, the transmission center distance of the transmission rope 10 changes, and the tension on the transmission rope 10 disappears. Assuming that the tension sensor 11 on the transmission rope 10 displays a certain tension value, it means that the transmission rope 10 is already in a taut state. Then, at the time point when the tension on the transmission rope 10 disappears, the power drive motor 2 is rotated by a certain angle, so that the transmission rope 10 is in a taut state and transmission can be achieved. The corresponding rotation angles of the power drive motor 2 at some sampling time points to make the transmission rope 10 taut and transmit are collected, and several groups of time and power drive motor rotation angle data points are obtained. These data points are fitted with spline curves to obtain the motor rotation angle-time equation to compensate for joint alignment. Before the power drive motor drives the transmission rope each time, the power drive motor is rotated in advance by the compensation angle to achieve continuous output of driving force on the transmission rope.
[0176] The motor rotation angle-time equation to compensate for joint centering is expressed as:
[0177] θ * =Ψ(t)
[0178] Among them, θ * is the motor rotation angle to compensate for the tension on the preload rope, and Ψ(t) is an equation about time.
[0179] S16. After estimating the knee joint torque by optimizing the support vector machine regression model with the chaotic gray wolf algorithm, first build an admittance control model after adjusting the admittance parameters with the improved whale optimization algorithm on the host computer MATLAB software. After inputting the knee joint torque into the admittance control model, the admittance control model outputs the corresponding knee joint rotation angle.
[0180] The standard WOA simulates the humpback whale's unique search method and hunting mechanism, which mainly includes three important stages: hunting prey, bubble net hunting, and searching for prey. The position of each humpback whale in the WOA represents a potential solution. By continuously updating the whale's position in the solution space, the global optimal solution is finally obtained. The specific steps are:
[0181] 1) Encircling prey
[0182] The whale's search range is the global solution space, assuming that the current best candidate solution is the target prey or close to the optimal solution. After defining the best candidate solution, the mathematical expression of the updated position of other whales is as follows:
[0183]
[0184] Among them, t represents the number of current iterations, and is the coefficient vector, is the position vector, represents the position vector of the optimal solution, represents the distance between the current best position of the whale group and the prey. and The calculation formula is as follows:
[0185]
[0186] Throughout the iteration process, and is a random vector in [0,1], It decreases linearly from 2 to 0, expressed as: t is the current iteration number and T is the maximum iteration number.
[0187] 2) Bubble Net Predation
[0188] First, a mathematical model of the position between the whale group and the prey is established, expressed using the logarithmic spiral equation:
[0189]
[0190] in represents the distance between the i-th individual and the current optimal solution, b is the spiral shape parameter, l is a random number between [0,1], The calculation formula is as follows:
[0191]
[0192] When whales are contracting and surrounding their prey, they can choose to surround their prey and to follow the spiral path of bubble nets. The probability of choosing the two predation methods to update their positions is the same. The mathematical model of their position update is as follows:
[0193]
[0194] Where p is a random number in [0,1].
[0195] 3) Searching for prey
[0196] In addition to the bubble net hunting method, whale groups can update their positions based on the distance between each other and search for prey randomly. The position update model is as follows:
[0197]
[0198] in, represents the position of a randomly selected individual whale, Indicates the distance between the whale's current best position and its prey. When , the position is updated using random search for prey; when When , the bubble net predation method is used to update the position.
[0199] In the original WOA algorithm, constant weights are used, which will not change during the algorithm iteration process, so the convergence speed and global search ability of the algorithm will not change with the change of the population search position. In order to improve the convergence speed and global search ability of WOA, and improve the tracking accuracy and robustness of the exoskeleton motion trajectory after using WOA to dynamically adjust the admittance control parameters, the constant weights are changed to adjustable weights.
[0200] Dynamically adjustable weights are the control factors that balance the algorithm's global search capability and local development capability. Larger weights can enhance the algorithm's global search capability, while smaller weights can improve the algorithm's local development capability and convergence speed. This is shown in the following formula:
[0201]
[0202] Among them, ω t is the dynamic weight, ω max is the maximum weight, ω min is the minimum weight, is a random vector in [0,1]. Adding dynamic weights to the position update formula can improve the convergence speed of the algorithm. In the early stage of the algorithm, the weight is large, which can enhance the ability of global search. In the later stage of the algorithm, the weight is small. Introducing random vectors can avoid falling into local optimality.
[0203] After the dynamic weights are introduced, the mathematical model for the whale's encirclement predation and bubble net predation position update is as follows:
[0204]
[0205] The position of the random search is updated as follows:
[0206]
[0207] The admittance control formula used in the admittance control model is:
[0208]
[0209] Where e = q r -q a , represents the knee joint rotation angle error, q r is the desired rotation angle of the knee joint, q a is the desired rotation angle of the knee joint, τ is the estimated torque, M d , C d and K d are the mass, damping and stiffness parameters of the admittance control object respectively. The error e is used to judge the quality of the improved whale optimization algorithm for the adjustment of the admittance control parameters.
[0210] S17. After the knee joint stiffness is estimated by optimizing the support vector machine regression model with the chaotic gray wolf algorithm, the rotation of the stiffness adjustment motor is controlled by the lower computer single chip microcomputer to drive the rotation of the stiffness adjustment gear, thereby rotating the ring gear of the planetary gear train to achieve real-time adjustment of the stiffness. Through closed-loop PID control, real-time nonlinear adjustment of the knee joint stiffness is achieved.
[0211] The stiffness control formula for adjusting the stiffness of the knee joint is:
[0212]
[0213] Where e(t) is the error between the predicted stiffness estimated by the support vector machine regression model and the reference stiffness calculated by the Lagrangian dynamics model, and K p , K i , K d They are the proportional parameter, integral parameter and differential parameter of the PID controller respectively.
[0214] S18. Use the knee joint rotation angle output by the admittance control model in step S16 and the compensation angle in step S15 to solve the joint alignment problem as inputs for closed-loop PIDA control, control the rotation of the power drive motor to drive the knee joint rotation, and assist the wearer in rehabilitation training.
[0215] The PIDA control formula is:
[0216]
[0217] Where, e(t) represents the error between the output angle of admittance control and the compensation angle and the actual angle, K a is the acceleration parameter.
[0218] like Fig. 9 As shown in the figure, the admittance control motor algorithm built by the simulink module in the MATLAB software, where Except_T is the estimated torque obtained by GWO-SVM, M d , C d and K d The module output is the angle of rotation of the drive motor, which is obtained by optimizing the IWOA algorithm in MATLAB. Fig.10 As shown in the figure, it is a comparison chart of the actual angle and the expected angle obtained by the simulation experiment of admittance control in simulink. The solid line is the actual angle, and the dotted line is the expected angle. It can be seen that the two curves are basically consistent, and the admittance control parameter setting effect is good.
[0219] When the knee rehabilitation exoskeleton based on the variable stiffness elastic driver is used for rehabilitation training, the wearer puts on the acquisition patch of the surface electromyography signal collector after relaxation activities, wears the variable stiffness knee rehabilitation exoskeleton, starts the exoskeleton switch, the motion capture system and the lower computer switch, and the upper computer PC runs the program for initialization; the wearer walks continuously, the surface electromyography signal collector obtains the surface electromyography signals of the wearer's vastus lateralis, biceps femoris long head, and gastrocnemius medial head and performs filtering processing, the potentiometer obtains the knee joint angle data, the motion capture system obtains the position, velocity and acceleration data of each marked point of the human lower limb, and the lower computer single chip The machine transmits the data to the host PC; the host PC processes the data and imports the data into the trained Chaotic Gray Wolf Algorithm Optimized Support Vector Machine Regression (CGWO-SVR) model. The prediction model will predict the knee joint torque and stiffness in real time according to the input; the stiffness control and position control parts of the control module respectively realize the stiffness adjustment and trajectory tracking of the exoskeleton, and transmit the corresponding commands to the corresponding motor controller to realize the rehabilitation training of the wearer, and so on until the rehabilitation training is completed; after the rehabilitation training is completed, the host PC is turned off, the wearer takes off the knee joint rehabilitation exoskeleton, and removes the lower limb surface electromyography signal acquisition instrument patch.
[0220] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A knee joint rehabilitation exoskeleton based on variable stiffness elastic actuator, Features: It includes a variable stiffness knee joint rehabilitation exoskeleton body, a power drive module, a stiffness adjustment module, a control module, a signal acquisition module, a data processing module and a control module based on motion intention recognition; The variable stiffness knee joint rehabilitation exoskeleton body comprises a knee joint consisting of a shank rod (19), a hinge shaft fixedly arranged on one side of the top end of the shank rod (19), and a thigh rod (15) movably hinged on the hinge shaft, the side of the thigh rod (15) is connected to a position-adjustable thigh mounting frame, and the side of the shank rod (19) on the same side is connected to a position-adjustable shank mounting frame, and the thigh mounting frame and the shank mounting frame can be fixedly arranged on the thigh and shank of the human body respectively by tightening the straps; The power drive module comprises a mounting frame fixedly connected to the front side of the thigh mounting frame, a power drive motor (2) fixedly connected to the mounting frame, a disc torsion spring (5) and a planetary gear train respectively rotatably mounted on the mounting frame, one shaft end of the disc torsion spring (5) is transmission-connected to the output end of the power drive motor (2), and the other shaft end is transmission-connected to the shaft end of the sun gear (3) of the planetary gear train, the shaft ends of the three planetary gears (14) of the planetary gear train are connected via a planetary frame, the shaft end of the central rotating shaft of the planetary frame is fixedly connected to a driving rope wheel (18), a driven rope wheel (21) is fixedly connected to the hinge shaft, and the driving rope wheel (18) and the driven rope wheel (21) are transmission-connected via a transmission rope (10); The stiffness adjustment module comprises a stiffness adjustment motor (8) fixedly connected to a mounting frame, a stiffness adjustment gear (9) fixedly connected to an output shaft end of the stiffness adjustment motor (8), and the stiffness adjustment gear (9) is meshingly connected to a ring gear (13) of a planetary gear train; The signal acquisition module comprises a surface electromyography signal acquisition instrument, a potentiometer (12), a tension sensor (11) and a motion capture system, wherein the surface electromyography signal acquisition instrument is used to acquire surface electromyography signals of lower limbs, the potentiometer (12) is installed on the hinge shaft and is used to acquire the relative rotation angle between the calf rod (19) and the thigh rod (15), the tension sensor (11) is arranged on the transmission rope (10) and is used to measure the tension on the transmission rope (10), and the motion capture system is used to acquire the position, velocity and acceleration of each marking point of the lower limbs of the human body; The control module comprises a host computer PC, a slave single-chip computer, a first encoder (1) arranged on the power drive motor (2), and a second encoder (7) arranged on the stiffness adjustment motor (8); the host computer PC has built-in data processing software and communicates with the slave single-chip computer via a serial port to receive and process data; the slave single-chip computer is respectively connected to the power drive motor (2) and the stiffness adjustment motor (8) via a CAN bus and collects data collected by the signal collection module; The motion intention recognition refers to estimating the torque and stiffness of the knee joint by collecting surface electromyographic signals and knee joint angles, optimizing the support vector machine regression model by establishing a chaotic gray wolf algorithm, taking the collected various signals as the input of the model, and taking the torque and stiffness calculated by inverse dynamics as the output of the model, and training the support vector machine regression model by constructing a training set and a test set; The control module is used to adjust the admittance parameters of the admittance control by using an improved whale algorithm, taking the torque estimated by the support vector machine regression model as the input of the admittance control, and the knee joint angle as the output of the admittance control, and adjusting the admittance parameters by evaluating the error between the output angle of the admittance control and the actual angle of the knee joint. At the same time, the power drive motor (2) is compensated for a certain angle to tighten the transmission rope (10), and a closed-loop PIDA is constructed with the compensation angle and the output angle of the admittance control to perform compliant control on the power drive motor (2).
2. A knee joint rehabilitation exoskeleton based on a variable stiffness elastic actuator according to claim 1, Features: A thigh connecting plate (17) is arranged between the thigh rod (15) and the thigh connecting frame, and a calf connecting plate (20) is arranged between the calf rod (19) and the calf connecting frame. The side walls of the thigh rod (15), the calf rod (19), the thigh connecting frame and the calf connecting frame are all provided with a plurality of evenly distributed bolt through holes. The two sides of the thigh connecting plate (17) are respectively connected to the thigh rod (15) and the thigh connecting frame by bolts. The two sides of the calf connecting plate (20) are respectively connected to the calf rod (19) and the calf connecting frame by bolts. By adjusting the assembly positions of the bolts and the bolt through holes, the installation position of the thigh mounting frame on the thigh rod (15) and the installation position of the calf mounting frame on the calf rod (29) are respectively achieved.
3. A knee joint rehabilitation exoskeleton based on a variable stiffness elastic actuator according to claim 1 or 2, Features: The stiffness of the planet carrier is expressed as the output stiffness of the knee joint rehabilitation exoskeleton based on the variable stiffness elastic drive, which is: Among them, K H is the output stiffness of the exoskeleton, M H is the torque acting on the planet carrier, θ H is the rotation angle of the planet carrier; According to the transmission characteristics of the gear train, the torque and angle relationship between the disc torsion spring and the planet carrier can be obtained. Further, the relationship between the output stiffness of the exoskeleton and the stiffness of the disc torsion spring can be obtained as follows: K H =K s ·i 2 Among them, K s is the torsion spring stiffness, i is the transmission ratio of the sun gear and the planet carrier of the planetary gear train, and the calculation formula of i is: Among them, Z 1 , Z 3 , Z 4 Respectively represent the number of teeth of the sun gear, ring gear, and stiffness adjustment gear, and the number of teeth on the inner and outer sides of the ring gear is equal, n 1 、n 4 are the rotation speeds of the sun gear and the stiffness adjustment gear respectively; Therefore, the output stiffness of the exoskeleton is:
4. A control method for a knee joint rehabilitation exoskeleton based on a variable stiffness elastic actuator, applied to a knee joint rehabilitation exoskeleton based on a variable stiffness elastic actuator as claimed in any one of claims 1 to 3, It is characterized in that The following steps are involved: S10, the signal acquisition module collects the motion data of the wearer when walking, including the surface electromyography signal of the leg collected by the surface electromyography signal collector and the knee joint rotation angle collected by the potentiometer; S11, preprocessing the collected knee joint rotation angle data and surface electromyography signal data respectively; S12, establishing a two-link Lagrangian dynamic model of the lower limbs through the thigh rod and the calf rod, obtaining the motion information of the lower limb marker points through the motion capture system, and solving the knee joint torque through the Euler-Lagrangian equation on the data processing software; S13. Construct a chaotic gray wolf algorithm to optimize the support vector machine regression model for motion intention recognition: Build the corresponding model on the data processing software, collect the knee joint angle and surface electromyography signal data of the wearer when walking after wearing the exoskeleton, use the first 70% of the collected and processed data as the input of the training set, and use the knee joint torque and stiffness values calculated by the model as the training set output, train the prediction model, use the last 30% of the collected and processed data as the test set input, and use the knee joint torque and stiffness values calculated by the model as the test set output; S14, respectively calculating the corresponding root mean square errors of the true values of the knee joint torque and stiffness values calculated by the Lagrangian dynamics model and the estimated values of the knee joint torque and stiffness values output by the support vector machine regression model, and judging the quality of the established chaotic gray wolf algorithm optimized support vector machine regression prediction model by the root mean square error; S15. During a gait cycle of the wearer wearing the exoskeleton, the corresponding rotation angles of the power drive motor for tightening the transmission rope at some sampling time points are collected to obtain a plurality of data points of time and the rotation angle of the power drive motor. These data points are fitted with a spline curve to obtain a motor rotation angle-time equation for compensating for joint centering. Before the power drive motor drives the transmission rope each time, the power drive motor is rotated in advance by a compensation angle to achieve continuous output of driving force on the transmission rope. S16. After estimating the knee joint torque by optimizing the support vector machine regression model with the chaotic grey wolf algorithm, firstly, build an admittance control model after adjusting the admittance parameters with the improved whale optimization algorithm on the host computer MATLAB software. After inputting the knee joint torque into the admittance control model, the admittance control model outputs the corresponding knee joint rotation angle; S17, after the stiffness of the knee joint is estimated by optimizing the support vector machine regression model with the chaotic grey wolf algorithm, the rotation of the stiffness adjustment motor is controlled by the lower computer single chip microcomputer to drive the rotation of the stiffness adjustment gear, so that the ring gear of the planetary gear train rotates to achieve real-time adjustment of the stiffness, and the real-time nonlinear adjustment of the stiffness of the knee joint is achieved through closed-loop PID control; S18. Use the knee joint rotation angle output by the admittance control model in step S16 and the compensation angle in step S15 to solve the joint alignment problem as inputs for closed-loop PIDA control, control the rotation of the power drive motor to drive the knee joint rotation, and assist the wearer in rehabilitation training.
5. A knee joint rehabilitation exoskeleton control method based on a variable stiffness elastic actuator according to claim 4, Features: In step S11, the specific method of surface electromyography signal data collection and filtering preprocessing is: The surface electromyography signal acquisition instrument patches were respectively attached to the vastus lateralis, long head of the biceps femoris, and medial head of the gastrocnemius of the right leg, and the electromyography signals of the leg muscles of the wearer walking at a speed of 2 m / s for 1 minute were collected at a rate of 2000 Hz using the four channels of the surface electromyography signal acquisition instrument, and then a 50 Hz band-stop filter and a 20 Hz-500 Hz Butterworth band-pass filter were used to remove noise from the signal; Then, the filtered electromyographic signal is divided into a window with 30 sampling points, and the root mean square RMS of the time domain feature is selected for extraction. The calculation formula of RMS is as follows: Among them, X(i) is the strength value of the electromyographic signal; N is the number of electromyographic signals in a window.
6. A knee joint rehabilitation exoskeleton control method based on a variable stiffness elastic actuator according to claim 4, Features: In step S12, the formula used to calculate the knee joint torque in the lower limb two-link Lagrangian dynamics model is: Where M is the knee joint torque, J 1 is the moment of inertia of the thigh member, J 2 is the moment of inertia of the shank member, m 1 is the mass of the thigh member, m 2 is the mass of the shank member, θ 1 is the angle between the line between the center of mass of the thigh member and the knee joint and the horizontal plane, θ 2 is the angle between the line between the mass center of the calf member and the knee joint and the horizontal plane, l 1a is the distance from the center of mass of the thigh member to the center of rotation of the knee joint, l 1 is the length of the thigh member, l 2 is the length of the shank member, F x is the horizontal force acting on the knee joint, F y is the vertical force acting on the knee joint, c 1x is the horizontal position of the mass center of the thigh member pair, c 1y is the vertical position of the center of mass of the thigh member pair, c 2x is the horizontal position of the center of mass of the shank member pair, c 2y is the vertical position of the center of mass of the shank member pair.
7. A knee joint rehabilitation exoskeleton control method based on a variable stiffness elastic actuator according to claim 4, Features: In step S14, the calculation formula of the root mean square error is: Among them, X ref is the knee joint moment obtained by solving the Euler-Lagrange equation or the knee joint stiffness obtained by the exoskeleton stiffness calculation formula, X pre is the knee torque or stiffness estimated by the support vector machine regression model, and N is the data length of the test sample sequence.
8. A knee joint rehabilitation exoskeleton control method based on a variable stiffness elastic actuator according to claim 4, Features: In step S16, the admittance control formula used by the admittance control model is: Where e = q r -q a , represents the knee joint rotation angle error, q r is the desired rotation angle of the knee joint, q a is the desired rotation angle of the knee joint, τ is the estimated torque, M d , C d and K d are the mass, damping and stiffness parameters of the admittance controlled object respectively.
9. A knee joint rehabilitation exoskeleton control method based on a variable stiffness elastic actuator according to claim 4, Features: In step S17, the stiffness control formula for adjusting the stiffness of the knee joint is: Where e(t) is the error between the predicted stiffness estimated by the support vector machine regression model and the reference stiffness calculated by the Lagrangian dynamics model, and K p , K i , K d They are the proportional parameter, integral parameter and differential parameter of the PID controller respectively.
Citation Information
Patent Citations
Chaos grey wolf optimization-based unmanned aerial vehicle formation control method
CN111443728A
Artificial lower limb continuous motion recognition method based on PSOGWO-SVM
CN114947825A
Knee joint exoskeleton with rigidity adjustment and energy recovery functions and training method thereof
CN115245446A
Inverse motion method of mobile loading mechanical arm based on multi-population grey wolf algorithm
CN115256369A
Motor sliding mode rotating speed controller design method for aviation hybrid propulsion system
CN115469543A
Cited By
Training equipment for robot to get on luggage case based on actuator
CN119158232A
A robot upper-luggage training device based on a parallel elastic actuator
CN119158232B
Trajectory planning method for lower limb exoskeleton, control device and computer-readable storage medium
US12798095B2
