A parameter setting method for ankle exoskeleton PD controller with human-machine-in-the-loop debugging

Through the combination of human-machine-in-the-loop debugging and Gaussian regression algorithm, the optimal tuning of ankle exoskeleton PD controller parameters is achieved, which solves the problem of poor control effect under different working conditions, achieves online adjustment and parameter convergence, and avoids meet the need for an independent testing environment.

CN115542723BActive Publication Date: 2024-08-30SOUTH CHINA UNIV OF TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211222151.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-08
Publication Date
2024-08-30
Estimated Expiration
2042-10-08

AI Technical Summary

Technical Problem

It is difficult to effectively set the parameters of the ankle exoskeleton PD controller with existing technology, resulting in poor control effects under different wearers and walking conditions, and the inability to set parameters in an independent test environment.

Method used

Using the human-machine-in-the-loop debugging method, the PD controller parameters are collected during the wearer's walking process, and the Gaussian regression algorithm is used for surface fitting, and the parameters are updated iteratively until they converge to the optimal value.

Benefits of technology

It achieves the optimal setting of ankle joint exoskeleton PD controller parameters under different wearers and walking conditions, reduces the assist force control error, maximizes the assist effect, and does not require a specific test environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0003877851390000031
    Figure BDA0003877851390000031
  • Figure BDA0003877851390000071
    Figure BDA0003877851390000071
  • Figure BDA0003877851390000103
    Figure BDA0003877851390000103
Patent Text Reader

Abstract

This invention discloses a human-machine-in-the-loop (HMI) tuning method for the proportional gain (PD) controller of an ankle exoskeleton. This method can be used to tune the PD controller parameters of the ankle exoskeleton under different wearer and walking conditions to achieve optimal control performance. The tuning process is conducted online via HMI, without the need for specific testing environments or equipment. The method is as follows: The proportional gain (K) of the PD controller is collected during the actual operation of the ankle exoskeleton under walking conditions. p and differential coefficient K d The parameter combination and the corresponding auxiliary force control error are imported into the Gaussian regression algorithm for surface fitting to obtain the K value of the lowest point of the surface (i.e., the point where the predicted control error is minimized). p and K d The parameters are then imported back into the exoskeleton PD controller to update the parameters, repeating the human-machine-in-the-loop parameter iteration process, ultimately K. p and K d When the parameters converge, it means that the PD controller parameters have been tuned to the optimal level for the current wearer and walking conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of exoskeleton control, and in particular to a parameter setting method for an ankle exoskeleton PD controller for human-machine-in-the-loop debugging. Background Art

[0002] The exoskeleton system is a typical human-machine system. Its working process is the cooperation between the human body and the robot. The various subjective intentions of the human body are the core of planning, and it is implemented and expanded by combining the perception of sensor technology and the power advantage of the robot. The ankle exoskeleton applies an auxiliary torque to the ankle joint through the exoskeleton drive system, which partially replaces the force of the human ankle joint itself during walking, thereby reducing the metabolic consumption of the human body. Since the walking movement of the ankle joint has specific biomechanical properties, the auxiliary torque applied by the exoskeleton must have a suitable style to fit it in order to achieve the effect of replacing the force of the ankle joint. Therefore, the ankle exoskeleton must have a suitable controller to control the driving force of the exoskeleton according to the appropriate auxiliary torque style to achieve the target auxiliary torque required for the current gait cycle phase.

[0003] The current control of ankle exoskeletons often uses a PD controller based on force feedback, whose properties are determined by the proportional coefficient K p and differential coefficient K d However, different wearers and different walking conditions will affect the system composed of the exoskeleton and the human body, resulting in the K of the PD controller when achieving the optimal control effect. p and K d The parameters are often different. Therefore, it is necessary to adjust the parameters of the exoskeleton PD controller according to different working conditions to optimize the control effect. However, the exoskeleton has its own characteristics. Unlike general equipment, the controller parameters can be adjusted in isolation on the test bench. Instead, it must be combined with the target wearer and in the target walking condition to characterize the system controlled by the PD controller. At present, a human-machine-in-the-loop exoskeleton PD controller parameter adjustment method is urgently needed. Summary of the invention

[0004] The purpose of the present invention is to solve the above-mentioned defects in the prior art and provide a method for adjusting the parameters of the PD controller of the ankle joint exoskeleton in human-machine-in-the-loop debugging. The method collects the proportional coefficient K of the PD controller during the actual operation of the ankle joint exoskeleton in the walking condition. p and the differential coefficient K d The parameter combination and the corresponding auxiliary force control error are imported into the Gaussian regression algorithm for surface fitting to obtain the K value of the lowest point of the surface (i.e. the predicted control error is the smallest). p and K d The parameters are then imported back into the exoskeleton PD controller to update the parameters, and the parameter iteration process of the human-machine in the loop is repeated. Finally, Kp and K d When the parameters converge, it means that the PD controller parameters are adjusted to the optimal value for the current wearer and walking conditions.

[0005] The purpose of the present invention can be achieved by adopting the following technical solutions:

[0006] A parameter setting method for an ankle exoskeleton PD controller for human-machine-in-the-loop debugging, the parameter setting method comprising the following steps:

[0007] Step S1, select initial PD controller parameters, and establish an initial sample set for exoskeleton PD controller parameter tuning by recording the auxiliary force control error of the exoskeleton under the current PD controller parameters. This step provides an initial sample set for training the Gaussian regression process in step S2;

[0008] Step S2: Use the existing sample set including the initial sample set as training data, import it into the Gaussian regression algorithm for training, and repeatedly solve the optimal sample point until the convergence condition is met. The optimal sample point is the point that minimizes the error of the PD controller in each gait cycle. After the convergence condition is met, determine the optimal proportional coefficient K. p and the differential coefficient K d The values ​​are taken as the parameter tuning results of the ankle exoskeleton PD controller.

[0009] Furthermore, the process of step S1 is as follows:

[0010] S11, specify the proportional coefficient K of the PD controller p and the differential coefficient K d The initial domains of are [0, p0] and [0, d0], respectively. Sample with a step size of a0 and b0 in [0, p0] and [0, d0], respectively, as the initial sample set, and obtain the initial sample point matrix {X=[K p ,K d ],K p ∈{0,a0,2a0,…,p0},K d ∈{0,b0,2b0,…,d0}}, the initial sample point matrix is ​​used as the independent variable of the training set of the Gaussian regression algorithm in step S2. In order to obtain the dependent variable of the training set, mechanical sampling is performed in the initial sample point matrix to determine N uniformly distributed initial sample points X n ,n=1,2,…,N;

[0011] S12, select an initial sample point that has not been selected from the N initial sample points of the mechanical sampling, set it as the parameter of the current ankle exoskeleton PD controller, stipulate that the wearer performs walking movement in the current working condition, completes M complete gait cycles, and records the control error e in the process m,m=1,2,…,M;

[0012] S13, uniformly interpolate the recorded control errors in each gait cycle to obtain M control error sequences {e m,i ,m=1,2,…,M|i=1,2,…,100}, where e m,i represents the i-th element of the control error in the m-th gait cycle;

[0013] S14. In order to accurately evaluate the exoskeleton control error using different PD controller parameters, the evaluation index E is calculated for the control error sequence of each gait cycle. m , E m represents the evaluation index of the mth gait cycle, which is calculated as follows:

[0014]

[0015] where F i To control the size of the target ankle joint auxiliary torque corresponding to the error, M evaluation indexes E are calculated. m , m = 1, 2, ..., M, and then average the M evaluation indexes to get the average evaluation index

[0016] S15, repeat steps S12 to S14 until all N initial sample points are selected, and finally obtain the initial sample point X n The corresponding average evaluation index in Represents the average evaluation index of the nth initial sample point The average evaluation index is used as the dependent variable of the training set of the Gaussian regression algorithm in step S2.

[0017] Furthermore, the process of step S2 is as follows:

[0018] S21, import all existing sample points including the initial sample point into the Gaussian regression algorithm for training, wherein the parameter X of the current PD controller is n =[K p ,K d ] as the independent variable, and the average evaluation index As the dependent variable, based on the maximum likelihood method, a nonlinear numerical optimization algorithm such as the Newton method or the conjugate gradient method is used to optimize the hyperparameters of the Gaussian regression algorithm so that it best matches the true value distribution and noise distribution of the existing sample set, and then a fitting surface is obtained by regression. Each point on the fitting surface contains information about the independent variable and the dependent variable. The independent variable is a parameter of the PD controller, and the dependent variable is a predicted average evaluation index corresponding to the independent variable.

[0019] S22, retrieve the predicted dependent variable of each point on the lattice one by one on the fitting surface obtained by the trained Gaussian regression algorithm, and obtain the current optimal sample point x where the minimum value of the predicted dependent variable is located opt =[K popt ,K dopt ], where K popt and K dopt They are the proportional coefficient K of the PD controller respectively p and the differential coefficient K d The current optimal parameter value of the current optimal sample point is a local optimal sample point, not a global optimal sample point, and it is necessary to perform convergence judgment through steps S23 to S25;

[0020] S23, taking the current optimal parameter value K popt and K dopt As the new proportionality factor K p and the differential coefficient K d Set as the parameters of the current ankle exoskeleton PD controller, specify that the wearer walks in the current working condition, completes M complete gait cycles, and records the control error e during the process m ,m=1,2,…,M;

[0021] S24, repeat steps S13 to S14, and obtain the average evaluation index is the current optimal sample point x opt The average evaluation index of

[0022] S25, the current optimal sample point x opt =[k popt ,k dopt ] is recorded as a new sample point, and together with the initial sample point, it constitutes the existing sample set. If the Euclidean distance between any sample point in the existing sample set and the new sample point is less than a certain threshold, the convergence judgment of the Gaussian regression process is satisfied, and the average evaluation index between the point and the new sample point is selected. The smallest one is the best, that is, the average evaluation index The smallest point is the global optimal sample point, and the proportional coefficient K of the global optimal sample point is p and the differential coefficient K d The values ​​are taken as the parameter tuning results of the ankle exoskeleton PD controller.

[0023] Furthermore, the step S25 also includes:

[0024] Step S25.1: If the new sample point is not on the boundary of the domain, and the Euclidean distance to any point in the sample set is less than a certain threshold, it means that convergence has been reached. The average evaluation index between the arbitrary point and the new sample point is selected. The smallest one is the best, the average evaluation index The smallest proportionality factor K p and the differential coefficient K d The values ​​are taken as the parameter tuning results of the ankle exoskeleton PD controller;

[0025] Step S25.2: If the new sample point is not on the boundary of the definition domain, and the Euclidean distance between the new sample point and any point in the sample set is not less than a certain threshold, then the process steps are executed in sequence starting from step S21;

[0026] Step S25.3: If the new sample point is within the proportional coefficient K p and the differential coefficient K d On the boundary of the domain, in order to find the global optimal sample point more accurately, the domain is extended a certain distance Δl outside the boundary to form new domains [0, p] and [0, d], and then the process steps are executed in sequence starting from step S21.

[0027] Compared with the prior art, the present invention has the following advantages and effects:

[0028] (1) The present invention fully considers the problem that the optimal PD controller parameters of the exoskeleton under different working conditions are different, effectively reduces the auxiliary force control error of the actual operation of the exoskeleton under different working conditions, and maximizes the auxiliary effect of the exoskeleton.

[0029] (2) The present invention integrates the actual motion information of the person and continuously updates it during the control process of the exoskeleton. The entire debugging process is an online adjustment of the human-machine in the loop, repeatedly utilizing the model-free prediction capability of the Gaussian process, starting from one input and output combination after another, and gradually approaching the optimal value of the target.

[0030] (3) The present invention can be used to adjust the PD controller parameters of the ankle exoskeleton under different wearer and walking conditions to achieve the optimal control effect. The process only relies on the calculation of the exoskeleton and its host computer (PC, mobile terminal, MCU, etc.), and does not require the intervention of a specific test environment or equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0032] Figure 1 It is a schematic diagram of the parameter setting method of the human-machine-in-the-loop ankle exoskeleton PD controller in the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] Example 1

[0035] In this embodiment, the scene is a healthy person wearing an ankle exoskeleton and walking freely at an average walking speed of 1.25 m / s. The following specifically introduces the process of parameter adjustment of the PD controller of the ankle exoskeleton using the present invention during the walking process.

[0036] As attached Figure 1 As shown, the method for setting parameters of the human-machine-in-the-loop ankle exoskeleton PD controller disclosed in this embodiment includes the following steps:

[0037] Step S1, select the initial PD controller parameters, and establish the initial sample set for the exoskeleton PD controller parameter setting by recording the auxiliary force control error of the exoskeleton under the current PD controller parameters. The process is as follows:

[0038] Step S11: Specify the proportional coefficient K of the PD controller p and the differential coefficient K d The initial domains of K are [0,6] and [0,12] respectively. p and K d The domain of the definition of is sampled mechanically with a step size of 0.1 and 0.2 respectively, and the point matrix to be searched is obtained {X=[K p ,K d ],K p ∈{0,0.1,0.2,…,6},K d ∈{0,0.2,0.4,…,12}}, perform mechanical sampling and determine 9 uniformly distributed initial sample points X1=[1,3]、X2=[1,6]、X3=[1,9]、X4=[3,3]、X5=[3,6]、X6=[3,9]、X7=[5,3]、X8=[5,6]、X9=[5,9];

[0039] Step S12: select an initial sample point that has not been selected from the 9 initial sample points of the mechanical sampling, set it as the parameter of the current ankle exoskeleton PD controller, stipulate that the wearer performs walking movement in the current working condition, completes 12 complete gait cycles, and records the control error e in the process. m ,m=1,2,…,12;

[0040] Step S13: Perform uniform spline interpolation on the recorded control errors in each gait cycle to obtain 12 control error sequences {e m,i ,m=1,2,…,12|i=1,2,…,100};

[0041] Step S14: Calculate an evaluation index E for the control error sequence of each gait cycle m , E m represents the evaluation index of the mth gait cycle, which is calculated as follows

[0042]

[0043] where e m,i represents the ith element of the control error in the mth gait cycle, F i To control the size of the target ankle joint auxiliary torque corresponding to the error, 12 evaluation indexes E are obtained. m ,m=1,2,…,12, average the 12 evaluation indices to get the average evaluation index

[0044] Step S15: Repeat steps S12 to S14 until all nine initial sample points are selected, and finally obtain the initial sample point X n The corresponding average evaluation index in Represents the average evaluation index of the nth initial sample point

[0045] In this embodiment, the initial sample set for exoskeleton PD controller parameter tuning established in step S1 is shown in Table 1.

[0046] Table 1. Table of initial sample set for parameter setting of Example 1

[0047] Initial sample order <![CDATA[K p ]]> <![CDATA[K d ]]> E 1 1 3 44.714 2 1 6 38.507 3 1 9 34.888 4 3 3 20.247 5 3 6 21.047 6 3 9 21.906 7 5 3 16.286 8 5 6 18.293 9 5 9 20.204

[0048] Step S2: Use the existing sample set including the initial sample set as training data, import it into the Gaussian regression algorithm for training, repeatedly solve the optimal sample point until the convergence condition is met, and determine the optimal proportional coefficient K p and the differential coefficient K d The values ​​are taken as the parameter tuning results of the ankle exoskeleton PD controller. The process is as follows:

[0049] Step S21: All existing sample points including the initial sample points are introduced into the Gaussian regression algorithm for training, wherein the parameter X of the current PD controller is n =[K p ,K d ] as the independent variable, and the average evaluation index As the dependent variable, based on the maximum likelihood method, use nonlinear numerical optimization algorithms such as Newton's method or conjugate gradient method to optimize the hyperparameters of the Gaussian regression algorithm to best match the true value distribution and noise distribution of the existing sample set, and then regress to obtain the fitting surface of the independent variable and the dependent variable;

[0050] Step S22: retrieve the prediction dependent variable of each point on the lattice one by one on the fitting surface obtained by the trained Gaussian regression algorithm to obtain the current optimal sample point x where the minimum value of the prediction dependent variable is located. opt =[K popt ,K dopt ], where K dopt and K dopt They are the proportional coefficient K of the PD controller respectively p and the differential coefficient K d The current optimal parameter value of

[0051] Step S23: take the current optimal parameter value K popt and K dopt As the new proportionality factor K p and the differential coefficient K d Set as the parameters of the current ankle exoskeleton PD controller, specify that the wearer walks in the current working condition, completes M complete gait cycles, and records the control error e during the process m ,m=1,2,…,M;

[0052] Step S24: Repeat steps S13 to S14 to obtain the average evaluation index is the current optimal sample point x opt The average evaluation index of

[0053] S25, the current optimal sample point x opt =[k popt ,k dopt ] is recorded as a new sample point, and together with the initial sample point, it forms the existing sample set. If the Euclidean distance between any sample point in the existing sample set and the new sample point is less than a certain threshold, the average evaluation index between the point and the new sample point is selected. The smallest one is the best, the average evaluation index The smallest proportionality factor K p and the differential coefficient K d The values ​​are taken as the parameter tuning results of the ankle exoskeleton PD controller.

[0054] In this embodiment, step S25 further includes:

[0055] Step S25.1: If the new sample point is not on the boundary of the domain and its Euclidean distance to any point in the sample set is less than 1, it means that convergence has been achieved. The average evaluation index between the arbitrary point and the new sample point is selected. The smallest one is the best, the average evaluation index The smallest proportionality factor K p and the differential coefficient K d The values ​​are taken as the parameter tuning results of the ankle exoskeleton PD controller;

[0056] Step S25.2: If the new sample point is not on the boundary of the definition domain and the Euclidean distance between it and any point in the sample set is not less than 1, then the process steps are executed in order starting from step S21;

[0057] Step S25.3: If the new sample point is within the proportional coefficient K p and the differential coefficient K d If the domain of K is on the boundary of the domain, the domain of K is extended to a certain distance outside the boundary. p If the boundary is expanded by 1, d The boundary is expanded by 2 to form new domains [0, p] and [0, d], and then the process steps are executed in sequence starting from step S21.

[0058] In this embodiment, the process sample set obtained in step S2 is shown in Table 2.

[0059] Table 2. Sample set of parameter setting process of Example 1

[0060] Process Sample Order <![CDATA[K p ]]> <![CDATA[K d ]]> E 1 4.9 0 23.750 2 4.9 12 19.329 3 <![CDATA[ 4.5 ]]> <![CDATA[ 3.8 ]]> <![CDATA[ 14.281 ]]> 4 4.4 3.6 17.706

[0061] If the Euclidean distance between the sample points of process sample order 4 and the sample points of process sample order 3 is less than 1, it means that convergence has been achieved, and the average evaluation index of process sample order 3 and process sample order 4 is compared. Finally, the sample point of process sample order 3 is selected as the optimal point, and the proportional coefficient K p and the differential coefficient K d The values ​​are taken as the parameter setting results of the ankle exoskeleton PD controller

[0062] Example 2

[0063] In this embodiment, the same experimental scenario as in Embodiment 1 is adopted, and the parameter setting process of the PD controller for the ankle exoskeleton in this embodiment is specifically described below.

[0064] Step S1, select the initial PD controller parameters, and establish the initial sample set for the exoskeleton PD controller parameter setting by recording the auxiliary force control error of the exoskeleton under the current PD controller parameters. The process is as follows:

[0065] Step S11: Specify the proportional coefficient K of the PD controller p and the differential coefficient K d The initial domain of K is [0,6]. p and K d The domain of the definition is mechanically sampled with a step size of 0.1, and the point matrix to be searched is obtained {X=[K p ,K d ],K p ∈{0,0.1,0.2,…,6},K d ∈{0,0.1,0.2,…,6}}, perform mechanical sampling and determine 6 uniformly distributed initial sample points X1=[1,3], X2=[1,6], X3=[3,3], X4=[3,6], X5=[5,3], X6=[5,6];

[0066] Step S12: select an initial sample point that has not been selected from the six initial sample points of the mechanical sampling, set it as the parameter of the current ankle exoskeleton PD controller, stipulate that the wearer performs walking movement in the current working condition, completes 12 complete gait cycles, and records the control error e in the process. m ,m=1,2,…,12;

[0067] Step S13: Perform uniform spline interpolation on the recorded control errors in each gait cycle to obtain 12 control error sequences {e m,i ,m=1,2,…,12|i=1,2,…,100};

[0068] Step S14: Calculate an evaluation index E for the control error sequence of each gait cycle m , and average the average evaluation index The specific method can refer to step S14 of embodiment 1;

[0069] Step S15: Repeat steps S12 to S14 until all six initial sample points are selected, and finally obtain the initial sample point X n The corresponding average evaluation index

[0070] In this embodiment, the initial sample set for exoskeleton PD controller parameter tuning established in step S1 is shown in Table 3.

[0071] Table 3. Initial sample set for parameter setting of Example 2

[0072]

[0073]

[0074] Step S2: Use the existing sample set including the initial sample set as training data, import it into the Gaussian regression algorithm for training, repeatedly solve the optimal sample point until the convergence condition is met, and determine the optimal proportional coefficient K p and the differential coefficient K d The values ​​are taken as the parameter setting results of the ankle exoskeleton PD controller. For details, please refer to step S2 in the embodiment. In this embodiment, the process sample set obtained in step S2 is shown in Table 4.

[0075] Table 4. Sample set table of parameter setting process of Example 2

[0076]

[0077] If the Euclidean distance between the sample points of process sample order 5 and the sample points of process sample order 6 is less than 1, it means that convergence has been achieved, and the average evaluation index of process sample order 5 and process sample order 6 is compared. Finally, the sample point of process sample order 5 is selected as the optimal point, and the proportional coefficient K p and the differential coefficient K d The values ​​are taken as the parameter setting results of the ankle exoskeleton PD controller of this embodiment. This embodiment changes the initial sample data in Example 1, and uses the ankle exoskeleton PD controller parameter setting method with human-machine-in-the-loop debugging. After several parameter setting iterations, the optimal PD controller parameters are finally obtained, further proving the technical effect of the present invention.

[0078] In summary, this embodiment discloses a method for parameter setting of a PD controller for a human-machine-in-the-loop ankle exoskeleton. p and K d The human-machine-in-the-loop parameter setting method of this embodiment can be used to adjust the parameters of the PD controller of the ankle exoskeleton under different wearers and walking conditions to achieve the best control effect. The setting process is adjusted online by the human-machine-in-the-loop, without the intervention of a specific test environment or equipment. The human-machine-in-the-loop parameter setting method of this embodiment only relies on the calculation of the exoskeleton and its host computer (PC, mobile terminal, MCU, etc.), and does not rely on other external specific test environments and equipment. It can quickly and specifically set the parameters of the ankle exoskeleton PD controller.

[0079] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A method for setting parameters of an ankle exoskeleton PD controller for human-machine-in-the-loop debugging, characterized in that: The parameter setting method comprises the following steps: Step S1, selecting initial PD controller parameters, and establishing an initial sample set for exoskeleton PD controller parameter setting by recording the auxiliary force control error of the exoskeleton under the current PD controller parameters; Step S2: Use the existing sample set including the initial sample set as training data, import it into the Gaussian regression algorithm for training, repeatedly solve the optimal sample point until the convergence condition is met, and determine the optimal proportional coefficient K p and the differential coefficient K d The value is taken as the parameter setting result of the ankle exoskeleton PD controller; wherein the process of step S1 is as follows: S11, specify the proportional coefficient K of the PD controller p and the differential coefficient K d The initial domains of are [0, p0] and [0, d0], respectively. Sample with a step size of a0 and b0 in [0, p0] and [0, d0], respectively, as the initial sample set, and obtain the initial sample point matrix {X=[K p ,K d ],K p ∈{0,a0,2a0,…,p0},K d ∈{0,b0,2b0,…,d0}}, perform mechanical sampling in the initial sample point matrix and determine N uniformly distributed initial sample points X n ,n=1,2,…,N; S12, select an initial sample point that has not been selected from the N initial sample points of the mechanical sampling, set it as the parameter of the current ankle exoskeleton PD controller, stipulate that the wearer performs walking movement in the current working condition, completes M complete gait cycles, and records the control error e in the process m ,m=1,2,…,M; S13, uniformly interpolate the recorded control errors in each gait cycle to obtain M control error sequences {e m,i ,m=1,2,…,M|i=1,2,…,100}, where e m,i represents the i-th element of the control error in the m-th gait cycle; S14. Calculate the evaluation index E for the control error sequence of each gait cycle m , E m represents the evaluation index of the mth gait cycle, which is calculated as follows: where F i To control the size of the target ankle joint auxiliary torque corresponding to the error, M evaluation indexes E are calculated. m , m = 1, 2, ..., M, and then average the M evaluation indexes to get the average evaluation index S15, repeat steps S12 to S14 until all N initial sample points are selected, and finally obtain the initial sample point X n The corresponding average evaluation index in Represents the average evaluation index of the nth initial sample point The process of step S2 is as follows: S21, import all existing sample points including the initial sample point into the Gaussian regression algorithm for training, wherein the parameter X of the current PD controller is n =[K p ,K d ] as the independent variable, and the average evaluation index As the dependent variable, based on the maximum likelihood method, use the Newton method or the conjugate gradient method nonlinear numerical optimization algorithm to optimize the hyperparameters of the Gaussian regression algorithm so that it best matches the true value distribution and noise distribution of the existing sample set, and then regress to obtain the fitting surface of the independent variable and the dependent variable; S22, retrieve the predicted dependent variable of each point on the lattice one by one on the fitting surface obtained by the trained Gaussian regression algorithm, and obtain the current optimal sample point x where the minimum value of the predicted dependent variable is located opt =[K popt ,K dopt ], where K popt and K dopt They are the proportional coefficient K of the PD controller respectively p and the differential coefficient K d The current optimal parameter value of S23, taking the current optimal parameter value K popt and K dopt As the new proportionality factor K p and the differential coefficient K d Set as the parameters of the current ankle exoskeleton PD controller, specify that the wearer walks in the current working condition, completes M complete gait cycles, and records the control error e in the process m ,m=1,2,…,M; S24, repeat steps S13 to S14, and obtain the average evaluation index is the current optimal sample point x opt The average evaluation index of S25, the current optimal sample point x opt =[k popt ,k dopt ] is recorded as a new sample point, and together with the initial sample point, it forms the existing sample set. If the Euclidean distance between any sample point in the existing sample set and the new sample point is less than a certain threshold, the average evaluation index between the point and the new sample point is selected. The smallest one is the best, the average evaluation index The smallest proportionality factor K p and the differential coefficient K d The values ​​are taken as the parameter tuning results of the ankle exoskeleton PD controller.

2. The method for setting parameters of ankle exoskeleton PD controller for human-machine-in-the-loop debugging according to claim 1 is characterized in that: The step S25 also includes: Step S25.1: If the new sample point is not on the boundary of the domain, and the Euclidean distance to any point in the sample set is less than a certain threshold, it means that convergence has been reached. The average evaluation index between the arbitrary point and the new sample point is selected. The smallest one is the best, the average evaluation index The smallest proportionality factor K p and the differential coefficient K d The values ​​are taken as the parameter tuning results of the ankle exoskeleton PD controller; Step S25.2: If the new sample point is not on the boundary of the definition domain, and the Euclidean distance between the new sample point and any point in the sample set is not less than a certain threshold, then the process steps are executed in sequence starting from step S21; Step S25.3: If the new sample point is within the proportional coefficient K p and the differential coefficient K d If the domain is on the boundary of the definition domain, the definition domain is extended a certain distance Δl outside the boundary to form new definition domains [0, p] and [0, d], and the process steps are executed in sequence starting from step S21.

Citation Information

Patent Citations

  • Ankle joint flexible walking exoskeleton electric energy cost estimation method

    CN112711838A

  • On-demand auxiliary rehabilitation robot training method based on Bayesian optimization

    CN112932898A