Thigh prosthesis control method, device and thigh prosthesis based on impedance parameter estimation

By dynamically generating impedance parameters, based on kernelized motion primitive modeling and probability distribution model, the problem of flexibility and versatility of impedance parameter generation in thigh prosthetic control is solved, achieving accurate and flexible control of thigh prostheses and adapting to different environments and Wearer characteristics.

CN117179976BActive Publication Date: 2024-09-27SOUTHERN UNIVERSITY OF SCIENCE AND TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311095881.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2024-09-27
Estimated Expiration
2043-08-28

AI Technical Summary

Technical Problem

Existing thigh prosthetic control methods are difficult to dynamically generate impedance parameters, resulting in the inability to accurately control prosthetic movement when factors such as sensor model and terrain change, and lack versatility and flexibility.

Method used

By obtaining the current task information, determining the key points of the target joint angle and torque, modeling the kernelized movement primitives, solving the parameters combined with the reference probability distribution model, dynamically generating impedance parameters, controlling the thigh prosthesis to complete walking movements, and simulating human biology. Smooth movement.

Benefits of technology

It achieves the flexibility and versatility of the thigh prosthesis, can adapt to different walking environments and wearer characteristics, reduces the time and energy of manually adjusting parameters, requires less pre-training data than the neural network method, and is easier to apply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117179976B
    Figure CN117179976B
Patent Text Reader

Abstract

The present application discloses a thigh prosthesis control method based on impedance parameter estimation, the method comprising: obtaining current task information of the thigh prosthesis, the current task information being used to represent information that affects the thigh prosthesis in executing a walking action; determining, based on the current task information, key points of a target joint angle and a target torque of a first joint corresponding to the current task information, the first joint comprising a knee joint and an ankle joint of the thigh prosthesis; performing kernelized motion primitive modeling on the above key points to obtain an initial probability distribution model; solving the parameters of the initial probability distribution model in combination with a reference probability distribution model to obtain a target joint angle-torque curve; the reference probability distribution model is obtained by training based on pre-training data of healthy people; controlling the thigh prosthesis to complete a walking action based on impedance parameters corresponding to the target joint angle-torque curve, the scheme of the present application can dynamically generate impedance parameters to achieve accurate control of the thigh prosthesis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a thigh prosthesis control method and device based on impedance parameter estimation, and a thigh prosthesis. Background Art

[0002] With the development of technology, thigh prostheses use advanced motors and drives to imitate the joint movements of normal people, thereby helping amputees restore their natural and smooth gait patterns. By setting the impedance parameters of the impedance controller, the thigh prosthesis can produce smooth movements similar to human biology when it contacts the ground.

[0003] Traditional control methods for thigh prostheses mainly rely on researchers to manually adjust impedance parameters based on the wearer's description and feedback, which is time-consuming and laborious. In existing technologies, impedance parameters can be automatically generated according to the motion state of the thigh prosthesis through neural networks, reinforcement learning, and data-driven methods, but these methods are often not universal. When factors such as sensor model and terrain change, the corresponding impedance parameters cannot be given, and thus the movement of the thigh prosthesis cannot be controlled.

[0004] Therefore, how to dynamically generate impedance parameters and more accurately control thigh prostheses is a technical problem that needs to be solved urgently. Summary of the invention

[0005] The purpose of the present application is to provide a thigh prosthesis control method, device and thigh prosthesis based on impedance parameter estimation, which can dynamically generate impedance parameters and achieve accurate control of the thigh prosthesis.

[0006] In a first aspect, an embodiment of the present application provides a control method for a thigh prosthesis, the method comprising:

[0007] Acquire current task information of the thigh prosthesis, where the current task information is used to represent information that affects the thigh prosthesis in performing walking actions;

[0008] According to the current task information, determine the key points of the target joint angle and the target torque of the first joint corresponding to the current task information, where the first joint includes the knee joint and the ankle joint of the thigh prosthesis;

[0009] The above key points are modeled with kernelized motion primitives to obtain an initial probability distribution model;

[0010] Combined with the reference probability distribution model, the initial probability distribution model is parameterized to obtain the target joint angle-torque curve; the reference probability distribution model is trained based on pre-training data of healthy people;

[0011] According to the impedance parameters corresponding to the target joint angle-torque curve, the thigh prosthesis is controlled to complete the walking action.

[0012] By obtaining the current task information of the thigh prosthesis and dynamically generating impedance parameters according to the current task information, when the factors affecting the walking process change, the thigh prosthesis can be controlled in a targeted manner to complete the walking action, and the flexibility is stronger. And by simulating the joint angle-torque curve of a healthy person, the impedance parameters suitable for the current task information can be automatically generated, so as to accurately control the thigh prosthesis to complete the smooth movement similar to human biology, which is not affected by the model of the thigh prosthesis or the height, weight and other characteristics of the wearer, and has better versatility and universality. Compared with manual adjustment of parameters, the solution of this application is more time-saving and labor-saving. Compared with the use of neural networks for parameter control, the solution of this application requires less pre-training data and is easier to use.

[0013] In a possible implementation manner of the first aspect, the method further includes:

[0014] Collecting pre-training data of healthy people walking under preset task information, wherein the preset task information includes multiple flat ground walking speeds, multiple stair heights, and multiple slope gradients; the pre-training data includes a reference joint angle and a reference torque of the first joint;

[0015] Based on the pre-training data, a reference probability distribution model of the joint angle-torque curve is generated. The reference probability distribution model is used to represent the probability of occurrence of each joint angle-torque curve in at least one joint angle-torque curve corresponding to each preset task information.

[0016] In a possible implementation manner of the first aspect, the reference probability distribution model satisfies the following formula:

[0017]

[0018] Among them, θ represents the joint angle, τ represents the torque, and μ k and∑ k Respectively represent the mean and covariance of the k-th single Gaussian distribution, π k express The probability distribution of belonging to the kth single Gaussian distribution.

[0019] In a possible implementation manner of the first aspect, kernelized motion primitive modeling is performed on the key points to obtain an initial probability distribution model, including:

[0020] The above key points are modeled with kernelized motion primitives to obtain an initial joint angle-torque curve, which satisfies the following formula:

[0021] τ(θ)=θ(θ) T ω

[0022] Among them, Θ(θ) represents the two-dimensional basis function, ω is a weight vector that obeys Gaussian distribution, which is used to represent the weight value of the two-dimensional basis function;

[0023] According to the above initial joint angle-torque curve, the initial probability distribution model is obtained, and the initial probability distribution model satisfies the following formula:

[0024] τ(θ)~N(θ(θ) T μ ω , Θ(θ) T ∑ ω θ(θ)

[0025] Among them, μ ω and∑ ω is the parameter to be solved, μ ω represents the mean of the Gaussian distribution that the weight vector ω obeys, ∑ ω The covariance of the Gaussian distribution followed by the weight vector ω.

[0026] In a possible implementation of the first aspect, the initial probability distribution model is parameterized in combination with the reference probability distribution model to obtain a target joint angle-torque curve, including:

[0027] Calculate the KL divergence between the initial probability distribution model and the reference probability distribution model;

[0028] The parameters to be solved of the initial probability distribution model are derived by the KL divergence minimization method to obtain the target probability distribution model;

[0029] According to the target probability distribution model, the target joint angle-torque curve is obtained.

[0030] In a possible implementation of the first aspect, the current task information includes one of the current flat ground walking speed, the current stair height, and the current slope gradient; the current flat ground walking speed is acquired by a first inertial sensor and a six-dimensional force sensor; the current stair height and the current slope gradient are acquired by a second inertial sensor and a depth camera.

[0031] In a possible implementation of the first aspect, controlling a thigh prosthesis to complete a walking action according to an impedance parameter corresponding to a target joint angle-torque curve includes:

[0032] The target joint angle-torque curve is piecewise fitted according to monotonicity to obtain a fitting straight line;

[0033] The slope of the fitting line is determined as the stiffness coefficient, the x-axis intercept of the piecewise fitting line is determined as the equilibrium angle, and the y-axis intercept of the piecewise fitting line is determined as the damping coefficient;

[0034] According to the stiffness coefficient, the balance angle and the damping coefficient, the thigh prosthesis is controlled to complete the walking action.

[0035] In a second aspect, the present application also provides a thigh prosthesis control device based on impedance parameter estimation, which has the function of implementing the method in the first aspect or any possible implementation thereof. Specifically, the device includes a unit that implements the method in the first aspect or any possible implementation thereof.

[0036] In one embodiment, the device comprises:

[0037] An acquisition unit, used for acquiring current task information of the thigh prosthesis, where the current task information is used for representing information affecting the thigh prosthesis in performing walking actions;

[0038] The processing unit is used to determine the key points of the target joint angle and the target torque of the first joint corresponding to the current task information according to the current task information, wherein the first joint includes the knee joint and the ankle joint of the thigh prosthesis; perform kernelized motion primitive modeling on the key points to obtain an initial probability distribution model; and perform parameter solving on the initial probability distribution model in combination with a reference probability distribution model to obtain a target joint angle-torque curve; the reference probability distribution model is obtained by training based on pre-training data of healthy persons;

[0039] The driving unit is used to control the thigh prosthesis to complete the walking action according to the impedance parameter corresponding to the target joint angle-torque curve.

[0040] In a third aspect, the present application further provides a thigh prosthesis. The thigh prosthesis includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method of any one of the implementation modes of the first aspect is implemented.

[0041] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of any one of the implementation modes of the first aspect is implemented.

[0042] In a fifth aspect, the present application further provides a computer program product, which, when executed on a thigh prosthesis, enables the thigh prosthesis to execute the method of any one of the implementation modes of the first aspect.

[0043] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0044] By obtaining the current task information of the thigh prosthesis and dynamically generating impedance parameters according to the current task information, when the factors affecting the walking process change, the thigh prosthesis can be controlled in a targeted manner to complete the walking action, and the flexibility is stronger. And by simulating the joint angle-torque curve of a healthy person, the impedance parameters suitable for the current task information can be automatically generated, so as to accurately control the thigh prosthesis to complete the smooth movement similar to human biology, which is not affected by the model of the thigh prosthesis or the height, weight and other characteristics of the wearer, and has good versatility and universality. Compared with manual adjustment of parameters, the solution of this application is more time-saving and labor-saving; compared with the use of neural networks for parameter control, the solution of this application requires less pre-training data and is easier to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0046] Figure 1 A schematic flow chart of the thigh prosthesis control method based on impedance parameter estimation provided in this application.

[0047] Figure 2 A schematic block diagram of a thigh prosthesis control method based on impedance parameter estimation provided in this application.

[0048] Figure 3 This is a schematic diagram of the fitting results of the target joint angle-torque curve of the knee joint when climbing a slope provided in this application.

[0049] Figure 4 This is a schematic diagram of the fitting results of the target joint angle-torque curve of the ankle joint when climbing a slope provided in this application.

[0050] Figure 5 Schematic diagram of the joint angle-torque curve of the knee joint generated by the characteristic model during the test process provided in this application.

[0051] Figure 6 Schematic diagram of the joint angle-torque curve of the knee joint generated by the characteristic model during the test process provided in this application.

[0052] Figure 7 This is a schematic diagram of the structure of the thigh prosthesis control device based on impedance parameter estimation provided in this application.

[0053] Figure 8 Schematic diagram of the structure of the thigh prosthesis provided for this application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] During daily walking, thigh amputees wearing passive prostheses usually need to twist their hip joints to actively lift the prosthesis to avoid collision between the prosthesis and the ground. This hip joint compensatory movement will increase the energy consumption of the amputee, easily causing fatigue to the amputee, and long-term use may even cause complications such as osteoarthritis and back pain to the thigh amputee. The powered thigh prosthesis uses motors and drivers to imitate the joint movement of normal people, which can inject energy into the amputee and reduce the metabolism of the amputee during walking, helping the amputee to restore a natural and smooth gait pattern. The control of the thigh prosthesis in the scheme of the present application is based on the above-mentioned powered thigh prosthesis. By generating impedance parameters, that is, the control parameters of the support phase of the thigh prosthesis, the thigh prosthesis is controlled to produce a compliant movement similar to human biology when in contact with the ground. This process is called impedance control, and its essence is to characterize the behavior of the knee and ankle joints with a series of finite states consisting of passive spring and damper behaviors, in which energy is transferred to the wearer by switching between equilibrium positions in each finite state. In this way, the prosthesis is guaranteed to be passive in each gait, so power can be generated by simply switching between modes.

[0056] Figure 1 It is a flow chart of the thigh prosthesis control method based on impedance parameter estimation provided in this application.

[0057] S101, obtaining current task information of the thigh prosthesis.

[0058] The current task information is used to represent information that affects the walking action performed by the thigh prosthesis.

[0059] When the thigh prosthesis walks in different scenarios, the impedance parameters that control the thigh prosthesis to perform walking actions will also change accordingly to adapt to specific scenarios. At this time, the scenario in which the thigh prosthesis is located can be regarded as a task, and the thigh prosthesis needs to complete the walking action under the current task information.

[0060] In one example, the current task information may include walking speed on flat ground, stair height when going up stairs, stair height when going down stairs, slope gradient when going up a slope, slope gradient when going down a slope, and the like.

[0061] S102, determining key points of a target joint angle and a target torque of a first joint corresponding to the current task information according to the current task information.

[0062] The first joints here include the knee and ankle joints of the thigh prosthesis.

[0063] After obtaining the current task information, it is necessary to determine the key points of the corresponding target joint angle and target torque according to the current task information. The target joint angle here refers to the joint angle of the thigh prosthesis predicted under the current task information, and the target torque here refers to the torque of the thigh prosthesis predicted under the current task information. In addition, since it is necessary to control the knee joint and ankle joint of the thigh prosthesis separately to achieve a more stable walking of the thigh prosthesis, the key points include two categories: knee joints and ankle joints. For each type of joint, the key points include the starting point, end point, maximum point and minimum point of the target joint angle and the starting point, end point, maximum point and minimum point of the target torque.

[0064] It should be understood that the maximum value and the minimum value here are a local maximum point and a local minimum point, which are used to represent the characteristics of the curve so as to more accurately generate curves corresponding to different joints.

[0065] In one possible implementation, these key points may be given manually based on prior knowledge or expert experience; in another possible implementation, these key points may also be given through a neural network model or other mathematical models. This application does not limit the way in which the key points are given.

[0066] S103, performing kernelized motion primitive modeling on the key points to obtain an initial probability distribution model.

[0067] According to the key points given in the above steps, the key points can be modeled. The modeling here uses the kernelized movement primitive (KMP) modeling algorithm. KMP avoids the explicit definition of basis functions and provides fewer open parameters. More importantly, due to kernel processing, KMP can model high-dimensional inputs and can be applied to parameter estimation and control of thigh prostheses with multi-dimensional control variables.

[0068] After the KMP modeling of the key points, the initial probability distribution model can be obtained. It should be noted that the key points of the knee joint and the key points of the ankle joint can obtain the corresponding initial probability distribution model through KMP modeling. It should be understood that the initial probability distribution model here is only a probability distribution model initialized with key points, and the corresponding relationship between the key points and the joint angle-torque curve has not been learned. In other words, what is obtained here is only a probability distribution model with parameters to be solved.

[0069] S104, combining the reference probability distribution model, solving the parameters of the initial probability distribution model to obtain the target joint angle-torque curve.

[0070] It should be noted that the reference probability distribution model is trained based on pre-training data of healthy people;

[0071] The reference probability distribution model can be regarded as the distribution law of the joint parameters of a healthy person when performing walking movements. Its function is equivalent to a demonstration teaching model. The thigh prosthesis needs to learn the laws of the demonstration teaching model and simulate it to form a control strategy similar to that of a healthy person.

[0072] Specifically, after obtaining the initial probability model of the joint, the unknown parameters of the initial probability model are solved by making the initial probability model and the reference probability distribution model have the same probability distribution law. After substituting the parameters, the joint angle-torque curve with the largest probability value is selected as the target joint angle-torque curve; the target joint angle-torque curve here is the joint angle-torque curve under the current task information, which is used to generate the impedance parameters of the corresponding joint.

[0073] S105, controlling the thigh prosthesis to complete the walking action according to the impedance parameter corresponding to the target joint angle-torque curve.

[0074] The target joint angle-torque curve will present different curve segments due to different current task information. According to the biomechanics of the lower limbs when the human body walks, each segment will be divided into different states belonging to the support phase. Each state corresponds to a set of impedance parameters. By switching different impedance parameters to switch the walking state, the thigh prosthesis can be controlled to complete the walking action.

[0075] By obtaining the current task information of the thigh prosthesis and dynamically generating impedance parameters according to the current task information, when the factors affecting the walking process change, the thigh prosthesis can be controlled in a targeted manner to complete the walking action, and the flexibility is stronger. And by simulating the joint angle-torque curve of a healthy person, the impedance parameters suitable for the current task information can be automatically generated, so as to accurately control the thigh prosthesis to complete the smooth movement similar to human biology, which is not affected by the model of the thigh prosthesis or the height, weight and other characteristics of the wearer, and has good versatility and universality; compared with manual adjustment of parameters, the solution of this application is more time-saving and labor-saving; compared with the use of neural networks for parameter control, the solution of this application uses KMP modeling, so less pre-training data is required, and the application is easier.

[0076] Figure 2 It is a schematic block diagram of the thigh prosthesis control method based on impedance parameter estimation provided by the present application. Figure 2 Can be seen as Figure 1 A specific example of the method shown.

[0077] S201, pre-collect a human walking data set and pre-train a feature model.

[0078] Pre-training data of several healthy people walking under preset task information are collected in advance, and the preset task information includes multiple flat ground walking speeds, multiple stair heights and multiple slope gradients; the pre-training data includes a reference joint angle and a reference torque of the first joint; the first joint includes the knee joint and the ankle joint.

[0079] Specifically, the joint angle (θ) and torque data (τ) of the knee and ankle joints of the lower limbs of healthy people walking on flat ground, stairs of different heights, and slopes of different slopes were collected, and the data were used to calculate the joint angle (θ) and torque (τ) of the knee and ankle joints of the lower limbs of healthy people walking on flat ground, stairs of different heights, and slopes of different slopes. and Indicates, where N represents the total amount of data under each task information. In one example, N is 200; M represents the total number of task information, including flat ground speed change, stair height change and slope gradient change. In one example, flat ground speed change includes the walking speed on the flat ground from 0.5m / s to 1.85m / s, gradually increasing at intervals of 0.05m / s; stair height change includes stairs going up and down, and the stair heights include 14cm, 15cm, 16cm and 17cm; slope gradient change includes up slope and down slope, and the slope gradients include 5°, 7°, 10°, 12°, 13° and 17°. The above data together constitute the human walking data set, which is also the pre-training data of healthy people in step S104.

[0080] According to the pre-training data, a reference probability distribution model of the joint angle-torque curve is generated. The reference probability distribution model is used to represent the probability of each joint angle-torque curve appearing in at least one joint angle-torque curve corresponding to each preset task information. Specifically, a Gaussian mixture model (GMM) is used to represent the probability distribution of the joint angle-torque curve in the above human walking data set. The formula of the process is as follows:

[0081]

[0082] in, represents the joint variable, μ k and∑ k Respectively represent the mean and covariance of the kth Gaussian distribution, π k Indicates the probability distribution that the data belongs to the kth single Gaussian distribution; in an example, the value of K is 5, that is, 5 single Gaussian distributions are used to form a Gaussian mixture model to estimate the joint probability distribution P(θ,τ).

[0083] Unlike neural networks that require a large amount of training data to learn, probability models can learn distribution patterns with less data, which greatly reduces the difficulty of data collection. Generally speaking, a mixture model can use any probability distribution. The Gaussian mixture model is used as the feature model here because the Gaussian distribution has good mathematical properties and good computing performance, and the Gaussian mixture model can smoothly approximate the density distribution of any shape.

[0084] Afterwards, the parameters of the Gaussian mixture model are solved by Gaussian mixture regression (GMR) to obtain a reference probability distribution of the joint angle-torque curve. The reference probability distribution can be regarded as a specific example of the reference probability distribution in step S104.

[0085] Solve the parameter μ of the Gaussian mixture model using the GMR algorithm k ,∑ k and π k , that is, find a set of parameters whose probability distribution determines the maximum probability of generating data points of the human walking data set. The process of solving the parameters of the GMR algorithm, that is, the process of training the human walking data set, is similar to the solution process in the prior art and will not be repeated here.

[0086] S202, acquiring task information of the prosthesis through a depth camera inertial sensor, etc. This step can be regarded as a specific example of step S101.

[0087] The task information of the prosthesis is equivalent to the current task information in step S101, specifically including one of the current flat ground walking speed, the current stair height and the current slope gradient;

[0088] In one implementation, the current walking speed on flat ground is acquired by collecting data from a first inertial sensor and a six-dimensional force sensor; specifically, the inertial sensor and the six-dimensional force sensor are used to estimate the speed of the powered thigh prosthesis during walking.

[0089] Exemplarily, the first inertial sensor is mounted on the residual limb of the amputee, and the six-dimensional force sensor is mounted at the ankle joint of the thigh prosthesis.

[0090] In one implementation, the current stair height and the current slope gradient are acquired by a second inertial sensor and a depth camera; specifically, the depth camera and the inertial sensor can be used to estimate the stair height and slope gradient when an amputee is walking while wearing a thigh prosthesis.

[0091] Exemplarily, the depth camera and the second inertial sensor may be modular acquisition modules bundled and installed on the knee joint of the prosthesis, or they may be independent devices.

[0092] S203, estimating the characteristic points of the joint angle and torque under the task information. This step can be regarded as a specific example of step S102.

[0093] For the current task information obtained in step S202, key points of joint angles and torques under the task information are manually given, mainly including a starting point, an end point, a maximum point, and a minimum point.

[0094] Since the joint angle-torque curves corresponding to different task information are different, in order to accurately generate the joint angle-torque curves, it is necessary to give the key points of the joint angle and torque. In one implementation, these key points can be manually given based on prior knowledge or expert experience. For example, the positions of the key points can refer to Figure 5 (b), (c) or Figure 6 (e) and (f) in the figure.

[0095] S204, using the feature model to generate a prosthetic joint angle-torque curve under the task information. This step can be regarded as a specific example of the step after the integration of steps S103 and S104.

[0096] The key points determined in the above step S203 are modeled with kernelized motion primitives to obtain an initial joint angle-torque curve; specifically, the target joint angle-torque curve under the current task information to be generated is first modeled with kernelized motion primitives (KMP) to obtain the initial joint angle-torque curve. The process is specifically expressed as follows:

[0097] τ(θ)=θ(θ) T ω,

[0098] Among them, τ(θ) represents the joint angle-torque curve. Since there are still unknown parameters in the curve, τ(θ) here is recorded as the initial joint angle-torque curve. Θ(θ) represents the multidimensional basis function. Since the model contains two variables, the joint angle θ and the joint torque τ, Θ(θ) here is a two-dimensional basis function. ω is the Gaussian distribution N(μ ω ,∑ ω ), which represents the weight value of the two-dimensional basis function under different task information.

[0099] Substituting the Gaussian distribution of ω into the KMP model, the joint angle-torque curve under the current task information obeys the following Gaussian distribution:

[0100] τ(θ)~N(θ(θ) T μ ω , Θ(θ) T ∑ ω Θ(θ)),

[0101] Among them, μω and∑ ω is the parameter to be solved, μ ω represents the mean of the Gaussian distribution that the weight vector ω obeys, ∑ ω The covariance of the Gaussian distribution obeyed by the weight vector ω. The probability distribution model shown in the above formula is also the initial probability distribution model in step S103.

[0102] The characteristic model of a healthy person is a demonstration teaching model. The joint angle-torque curve under the current task information must have the same probability distribution as the characteristic model of a healthy person in order to better simulate the normal and stable walking of a normal person.

[0103] In one implementation, the KL divergence between the initial probability distribution model and the reference probability distribution model may be calculated, and the specific calculation formula is as follows:

[0104]

[0105] Among them, D KL (·||·) represents the KL divergence between two probability distributions, P r (τ|θ) represents the probability distribution of the feature model in step S201, that is, the reference probability distribution model, P p (τ|θ) represents the probability distribution of the joint angle-torque curve under the current task information;

[0106] In one implementation, the parameters to be solved of the initial probability distribution model are derived by minimizing the KL divergence to obtain the target probability distribution model. The process can be expressed as:

[0107]

[0108] Among them, J(μ ω ,∑ ω ) is the objective function, which represents the value of KL divergence. By finding a set of parameters μ ω and∑ ω The KL divergence value is finally made smaller than the set threshold. In one example, the threshold is usually set to 1e-5. It should be understood that the value here is only an example, and the application does not specifically limit the threshold value.

[0109] In solving for the parameter μ ω and∑ ω Then, it is brought into the initial probability distribution model to obtain the target probability distribution model.

[0110] In one implementation, a target joint angle-torque curve can be obtained according to the target probability distribution model. Specifically, the joint angle-torque curve with the largest probability value is selected as the target joint angle-torque curve. The target joint angle-torque curve represents the relationship between the torque and the change of the joint angle; when the target probability distribution model is the target probability distribution model of the knee joint of a thigh prosthesis, the target joint angle-torque curve corresponding to the knee joint can be obtained; or, when the target probability distribution model is the target probability distribution model of the ankle joint of a thigh prosthesis, the target joint angle-torque curve corresponding to the ankle joint can be obtained.

[0111] S205, fitting the joint angle-torque curve using the least square method to calculate the impedance parameters. This step can be regarded as a specific example of step S105.

[0112] After obtaining the target joint angle-torque curve, the gait of the thigh prosthesis needs to be controlled according to the impedance parameters corresponding to the curve.

[0113] In one implementation, the target joint angle-torque curve is piecewise fitted according to monotonicity to obtain a fitting straight line, which can be expressed as:

[0114]

[0115] Among them, θ i is the independent variable, τ i is the dependent variable, k i is the slope of the fitted line, θ i,eq is the x-intercept of the fitted line, b i is the y-intercept of the fitted line, and i represents the knee joint and ankle joint of the thigh prosthesis. The above formula indicates that if the coefficient k i and b i is constrained to be positive, then in each substate of the support phase, the joint corresponding to this curve will be at θ i =θ i,eq and The exponential converges to a stable equilibrium.

[0116] Specifically, the least squares method can be used to perform piecewise fitting on the target joint angle-torque curve; it should be understood that other methods, such as Hough transform, etc., can also be used to perform piecewise fitting on the target joint angle-torque curve, and the present application does not limit the specific method of fitting the curve into a straight line.

[0117] After obtaining the fitting straight line, the impedance parameters of each sub-state can be obtained, that is, the torque in each sub-state can be described by the linear stiffness term and the linear damping term. Specifically, the slope of the fitting straight line is determined as the stiffness coefficient, the x-axis intercept of the fitting straight line is determined as the equilibrium angle, and the y-axis intercept of the fitting straight line is determined as the damping coefficient; that is, in the above formula, τ i is the torque generated by impedance control, k i is the stiffness coefficient, b i is the damping coefficient, θ i,eq is the equilibrium angle, θ i is the joint angle of the prosthesis movement, is the joint angular velocity of the prosthesis movement, and i represents the knee and ankle joints of the thigh prosthesis.

[0118] Specifically, Figure 3 The figure shows the fitting result of the target joint angle-torque curve of the knee joint when climbing a slope. According to monotonicity, the curve can be divided into three segments AB, CD and AC. The least squares method is used to fit the three segments to obtain A1B1, C1D1, and E1F1. Then, the slope of the line, that is, the stiffness coefficient, the x-axis intercept of the line, that is, the equilibrium angle, and the y-axis intercept of the line, that is, the damping coefficient, are calculated based on the three line segments.

[0119] Figure 4 The figure shows the fitting result of the target joint angle-torque curve of the ankle joint when climbing a slope. According to monotonicity, the curve can be divided into two segments AB and BC. The least squares method is used to fit the two segments to obtain A1B1 and C1D1. Then, the slope of the line, that is, the stiffness coefficient, is calculated based on the two line segments, the x-axis intercept of the line, that is, the equilibrium angle, and the y-axis intercept of the line, that is, the damping coefficient, is calculated.

[0120] In one implementation, the thigh prosthesis is controlled to complete the walking action according to the stiffness coefficient, the balance angle and the damping coefficient. The thigh prosthesis is driven to switch between different gaits by impedance control, so as to complete a coherent walking action. Specifically, according to the biomechanical theory of the lower limbs when the human body walks, the support phase can be further divided into two sub-modes, recorded as state 1 and state 2. State 1 starts from the heel touching the ground, and the knee joint immediately begins to bend to absorb the impact and start loading, while the ankle joint bends at the same time to achieve a flat foot state. In this state, both the knee and ankle joints have relatively high stiffness to prevent being bent and allow the standing knee to be properly bent, because state 1 contains most of the load-bearing functions. State 2 is the push-off stage. The sign of the beginning of this state is when the ankle joint bends beyond a preset angle, that is, the user's center of gravity is located in front of the stable foot. In this state, the knee joint stiffness is reduced to allow the knee to bend, and the ankle joint provides a plantar bending torque for pushing off. By automatically switching the impedance parameters, the two sub-states of the support phase can be switched, avoiding the problems caused by the traditional manual setting of impedance parameters. For example, researchers need to observe the gait characteristics of thigh amputees after wearing thigh prostheses and ask them whether they are satisfied with the current impedance parameters until a satisfactory gait is observed. This process of adjusting parameters usually requires researchers to spend a lot of energy and time. The solution of the present application can dynamically generate impedance parameters for different task information, has good generalization ability, and does not need to adjust specific parameters for each wearer, and has good versatility.

[0121] In order to test the characteristic model obtained in step S201, that is, the quality of the reference probability distribution model, the joint angle and torque data of 22 subjects in the data set collected in step S201 under the conditions of walking speeds of 0.8m / s, 1.1m / s and 1.4m / s on flat ground are selected for testing. The age of these 22 subjects is distributed between 21±3.4 years old, the height is distributed between 1.70±0.07m, and the weight is distributed between 68.3±10.83kg.

[0122] Figure 5 The schematic diagram of the joint angle-torque curve of the knee joint generated by the characteristic model in the test process provided in this application. The characteristic model generates the joint angle-torque curve of the knee joint according to steps S101 to S104 or steps S202 to S204. Figure 5 As shown, Figure 5 (a), (b), and (c) represent the joint angle-torque curve, joint angle curve, and torque curve of the knee joint, respectively.

[0123] Figure 6The schematic diagram of the joint angle-torque curve of the ankle joint generated by the characteristic model in the test process provided in this application. The characteristic model generates the joint angle-torque curve of the ankle joint according to steps S101 to S104 or steps S202 to S204. Figure 6 As shown, Figure 6 (d), (e), and (f) represent the joint angle-torque curve, joint angle curve, and torque curve of the ankle joint, respectively.

[0124] exist Figure 5 (b), (c) and Figure 6 In the joint angle curve and torque curve shown in (e) and (f), the black origin is the determined key point, the dotted line represents the predicted curve, the dark solid line represents the real curve in the data set, and the remaining curves are used for training. It can be seen that, whether it is the knee joint or the ankle joint, in the joint angle curve and torque curve, the dotted line and the dark solid line basically coincide, that is, the characteristic model of the solution of the present application, that is, the reference probability distribution model, can better learn the distribution law between the joint angle and the torque.

[0125] According to step S101 to step S104 or step S202 to step S204, the target joint angle-torque curve is obtained, and the root mean square error between the predicted values ​​of the joint angle and torque generated according to the curve and the true values ​​under the corresponding conditions in the data set is shown in Table 1.

[0126] Table 1

[0127]

[0128] It can be seen from Table 1 that the root mean square error between the predicted value and the true value of the joint angle and torque of the knee joint, as well as the joint angle and torque of the ankle joint are all less than the preset threshold. Therefore, it can be concluded that the reference probability model obtained by the applied scheme can better learn the distribution law between the joint angle and torque. The impedance parameters calculated based on Table 1 are shown in Table 2.

[0129] Table 2

[0130]

[0131] Table 2 is the impedance parameters calculated by executing step S105 or step S205 on the basis of Table 1. The data 4.7489 / 1.1919 in Table 2 indicates that in state 1 of the support phase, the stiffness coefficient is 4.7489, and in state 2 of the support phase, the stiffness coefficient is 1.1919, and the remaining data in the table have similar meanings. The stiffness coefficient, balance angle and damping coefficient of the knee joint and ankle joint at three different ground walking speeds in Table 2 are similar to the stiffness coefficient, balance angle and damping coefficient obtained by the prior art, such as neural network and other methods, and are also consistent with the biomechanical theory of lower limbs when the human body walks, so they can be directly applied to the control of thigh prostheses. In addition, it can be seen from Table 2 that at ground walking speeds of 0.8 (m / s), 1.1 (m / s) and 1.4 (m / s), the impedance parameters of the knee joint and ankle joint are different, which can be explained that according to different task information, the scheme of the present application can dynamically adjust the impedance parameters to adapt to different walking speeds or walking environments.

[0132] The above mainly introduces the method of the embodiment of the present application in conjunction with the accompanying drawings. It should be noted that all the numerical values ​​appearing in the above are only used for examples and do not constitute specific limitations on the present application. At the same time, it should be understood that although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence, these steps are not necessarily performed in sequence in the order shown in the figure. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the various embodiments described above may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a part of the steps or stages in other steps. The device of the embodiment of the present application is introduced below in conjunction with the accompanying drawings. For simplicity, when introducing the device below, it will be appropriately omitted, and the relevant content can refer to the relevant description in the above method introduction, and will not be repeated.

[0133] Figure 7 It is a schematic diagram of the structure of a thigh prosthesis control device based on impedance parameter estimation provided in an embodiment of the present application.

[0134] like Figure 7As shown, the device 1000 includes an acquisition unit 1001, a processing unit 1002 and a driving unit 1003. The device 1000 can perform any of the above thigh prosthesis control methods based on impedance parameter estimation. For example, the acquisition unit 1001 can be used to perform step S101, the processing unit 1002 can be used to perform steps S102 to S104, and the driving unit 1003 can be used to perform step S105. For another example, the acquisition unit 1001 can be used to perform steps S201 and S202, the processing unit 1002 can be used to perform steps S203 and S204, and the driving unit 1003 can be used to perform step S205.

[0135] In one implementation, the device 1000 may further include a storage unit for storing data such as impedance parameters, etc. The storage unit may be integrated in any one of the above units, or may be a unit independent of all the above units.

[0136] Figure 8 Schematic diagram of the structure of the thigh prosthesis provided in the embodiment of the present application. Figure 8 As shown, the thigh prosthesis 3000 of this embodiment includes: at least one processor 3100 ( Figure 8 Only one processor, a memory 3200, and a computer program 3210 stored in the memory 3200 and executable on at least one processor 3100 are shown. When the processor 3100 executes the computer program 3210, the steps in the above embodiments are implemented.

[0137] The processor 3100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0138] In some embodiments, the memory 3200 may be an internal storage unit of the thigh prosthesis 3000, such as a hard disk or memory of the thigh prosthesis 3000. In other embodiments, the memory 3200 may also be an external storage device of the thigh prosthesis 3000, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the thigh prosthesis 3000. Further, the memory 3200 may also include both an internal storage unit of the thigh prosthesis 3000 and an external storage device. The memory 3200 is used to store an operating system, an application program, a boot loader data, and other programs, such as a program code of a computer program. The memory 3200 may also be used to temporarily store data that has been output or is to be output.

[0139] It should be noted that the information interaction, execution process and other contents between the above-mentioned units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0140] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0141] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0142] The embodiments of the present application provide a computer program product, which can implement the above methods when the computer program product is run on a computer.

[0143] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera device / thigh prosthesis, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0144] It should be understood that the size of the sequence number of each step in the above-described embodiment does not mean the order of execution, and the order of execution of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application. In the description, for the purpose of explanation rather than for limitation, specific details such as specific system structure, technology and the like are proposed, so as to thoroughly understand the embodiment of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, the detailed description of well-known systems, devices, circuits and methods is omitted to prevent unnecessary details from hindering the description of the present application.

[0145] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0146] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0147] Additionally, in the specification of the present application and the description of the appended claims, the terms “include,” “comprise,” “have,” and their variations all mean “including but not limited to,” unless otherwise specifically emphasized.

[0148] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0149] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0150] In the embodiments provided in the present application, it should be understood that the disclosed devices, computer equipment and methods can be implemented in other ways. For example, the device and computer equipment embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0151] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A thigh prosthesis control method based on impedance parameter estimation, characterized in that: include: Acquiring current task information of the thigh prosthesis, where the current task information is used to represent information that affects the thigh prosthesis in performing walking actions; Determine, according to the current task information, key points of a target joint angle and a target torque of a first joint corresponding to the current task information, wherein the first joint includes a knee joint and an ankle joint of the thigh prosthesis; Performing kernelized motion primitive modeling on the key points to obtain an initial probability distribution model; In combination with the reference probability distribution model, the initial probability distribution model is parameterized to obtain a target joint angle-torque curve; The reference probability distribution model is trained based on pre-training data of healthy people; According to the impedance parameters corresponding to the target joint angle-torque curve, the thigh prosthesis is controlled to complete the walking action, including: according to the biomechanics of the lower limbs when the human body walks, each of the curve segments is divided into different states belonging to the support phase, each state corresponds to a set of impedance parameters, and the walking state is switched by switching different impedance parameters to control the thigh prosthesis to complete the walking action.

2. The method according to claim 1, characterized in that Before obtaining the current task information of the thigh prosthesis, the method further includes: Collecting the pre-training data of healthy people walking under preset task information, wherein the preset task information includes multiple flat ground walking speeds, multiple stair heights, and multiple slope gradients; the pre-training data includes a reference joint angle and a reference torque of the first joint; Based on the pre-training data, the reference probability distribution model of the joint angle-torque curve is generated, and the reference probability distribution model is used to represent the probability of occurrence of each joint angle-torque curve in at least one joint angle-torque curve corresponding to each preset task information.

3. The method according to claim 2, characterized in that The reference probability distribution model satisfies the following formula: Among them, θ represents the joint angle, τ represents the torque, and μ k and∑ k Respectively represent the mean and covariance of the k-th single Gaussian distribution, π k express The probability distribution of belonging to the kth single Gaussian distribution.

4. The method according to claim 1, characterized in that: The step of performing kernelized motion primitive modeling on the key points to obtain an initial probability distribution model includes: The key points are modeled using kernelized motion primitives to obtain an initial joint angle-torque curve, which satisfies the following formula: τ(θ)=Θ(θ) T oh Among them, Θ(θ) represents the two-dimensional basis function, ω is a weight vector obeying Gaussian distribution, used to represent the weight value of the two-dimensional basis function; According to the initial joint angle-torque curve, the initial probability distribution model is obtained, and the initial probability distribution model satisfies the following formula: τ(θ)~N(θ(θ) T ,m ω ,Θ(θ) T S ω I(i)) Among them, μ ω and∑ ω is the parameter to be solved, μ ω Represents the weight vector ω The mean of the Gaussian distribution, ∑ ω The covariance of the Gaussian distribution followed by the weight vector ω.

5. The method according to claim 1, characterized in that The combining reference probability distribution model, solving the parameters of the initial probability distribution model, and obtaining the target joint angle-torque curve include: Calculating the KL divergence between the initial probability distribution model and the reference probability distribution model; The parameters to be solved of the initial probability distribution model are derived by the KL divergence minimization method to obtain the target probability distribution model; The target joint angle-torque curve is obtained according to the target probability distribution model.

6. The method according to any one of claims 1 to 5, characterized in that The current task information includes one of the current flat ground walking speed, the current stair height and the current slope gradient; the current flat ground walking speed is acquired by a first inertial sensor and a six-dimensional force sensor; the current stair height and the current slope gradient are acquired by a second inertial sensor and a depth camera.

7. The method according to claim 1, characterized in that According to the impedance parameter corresponding to the target joint angle-torque curve, the thigh prosthesis is controlled to complete the walking action, including: Performing piecewise fitting on the target joint angle-torque curve according to monotonicity to obtain a fitting straight line; The slope of the fitting straight line is determined as the stiffness coefficient, the x-axis intercept of the fitting straight line is determined as the equilibrium angle, and the y-axis intercept of the fitting straight line is determined as the damping coefficient; According to the stiffness coefficient, the balance angle and the damping coefficient, the thigh prosthesis is controlled to complete the walking action.

8. A thigh prosthesis control device based on impedance parameter estimation, characterized in that: include: An acquisition unit, used for acquiring current task information of the thigh prosthesis, wherein the current task information is used for representing information affecting the thigh prosthesis in performing walking actions; a processing unit, configured to determine, according to the current task information, key points of a target joint angle and a target torque of a first joint corresponding to the current task information, wherein the first joint includes a knee joint and an ankle joint of the thigh prosthesis; Performing kernelized motion primitive modeling on the key points to obtain an initial probability distribution model; solving parameters of the initial probability distribution model in combination with a reference probability distribution model to obtain a target joint angle-torque curve; The reference probability distribution model is trained based on pre-training data of healthy people; The driving unit is used to control the thigh prosthesis to complete the walking action according to the impedance parameters corresponding to the target joint angle-torque curve, including: dividing each of the curve segments into different states belonging to the support phase according to the biomechanics of the lower limbs when the human body walks, each state corresponds to a set of impedance parameters, and the walking state is switched by switching different impedance parameters to control the thigh prosthesis to complete the walking action.

9. A thigh prosthesis comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the thigh prosthesis is caused to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a thigh prosthesis, the method according to any one of claims 1 to 7 is implemented.