Control method and device of lower limb walking aid and readable storage medium
By obtaining the acceleration information of the user's lower limb joints, judging the movement intention and generating an inertial trajectory, it solves the problem that existing smart walkers cannot feedback the user's movement status in real time, achieves precise response to the user's movement and personalized assistance, and enhances the assistance. Adaptability and flexibility.
Patent Information
- Application Number
- CN202411042722.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-01
AI Technical Summary
Existing smart walkers are difficult to provide real-time feedback on the user's lower limb movement status, cannot adjust power-assisted parameters at high frequency and accurately, and lack effective assistance to the user's active movement ability.
By obtaining the three-axis acceleration information of each selected limb joint of the user, the user's movement intention is determined, the global skeletal point pose and joint rotation pose are determined, and the inertial trajectory is generated based on the root velocity and world space velocity to control the walker. Achieve real-time response and personalized assistance to user movements.
It achieves precise identification and response to the user's movement intentions, provides more comprehensive and accurate speed control, adapts to different users' walking habits, and provides real-time feedback on the movement status of the lower limbs, enhancing the adaptability and flexibility of assistance.
Smart Images

Figure CN118717488A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of intelligent rehabilitation equipment control, and specifically relates to a control method, device and readable storage medium for a lower limb walker. Background Art
[0002] As the global aging trend accelerates and the elderly population increases, the mobility problems of the elderly are becoming more and more prominent. Many people need to rely on walkers to help them walk and maintain balance during postoperative recovery. The target groups of smart walkers are mainly elderly people with limited mobility and postoperative patients who may need external assistance to walk due to age, disease or other factors.
[0003] Current intelligent walkers include purely passive walkers and ultrasonic sensor series walker systems. For purely passive walkers, the advantage is low cost, but they cannot cover the entire rehabilitation cycle of patients and lack assistance training for patients' active movement ability. For ultrasonic sensor array systems, the key gait data such as step length and cadence are extracted by measuring the position of the patient's foot. The advantage of this method is that the object being measured is relatively certain, but the walker may need to stabilize the foot before applying the assist torque. It may be difficult to estimate the real-time position during dynamic movement, and the update speed of parameters such as step length and cadence is limited. For systems that optimize the walker's assistance parameters based on data such as ground slope and vehicle body load, these parameters cannot provide high-frequency and real-time feedback on the true movement status of the patient's lower limbs. Summary of the invention
[0004] The technical purpose of the present application is to provide a lower limb walker control method to address the above shortcomings of existing walker control methods, so as to pay more attention to the user's real-time movement status and the participation of the entire limb during the user's movement.
[0005] In order to achieve the above technical objectives, this application adopts the following technical solutions.
[0006] In a first aspect, an embodiment of the present application provides a method for controlling a lower limb walker, comprising: obtaining motion information of each selected limb joint of a walker user, the selected limb joints including waist joints, the motion information including acceleration information of three axes;
[0007] The movement intention of the actuator user is determined according to the movement information. When it is determined that the walking aid user has the movement intention, the following steps are performed:
[0008] According to the motion information, determine the relative postures of the other joints of the selected limb joints except the waist joint relative to the waist joint, and determine the global skeleton point postures of all the selected limb joints according to the relative postures; according to the global skeleton point postures, call the inverse kinematics solver to determine the global joint rotation posture; according to the global joint rotation posture, call the forward kinematics solver function to determine the root velocity; according to the acceleration of each axis of the waist node, obtain the world space velocity;
[0009] determining a travel speed of the lower limb walker based on the root speed and the world space speed;
[0010] An inertial trajectory is determined according to the travel speed; and a trajectory instruction is generated according to the global joint rotation posture and the inertial trajectory to control the walker.
[0011] In some implementations, determining the motion intention of the actuator user according to the motion information includes:
[0012] According to the motion information of any limb joint among the selected limb joints, if the variance of the acceleration of the x-axis, y-axis or z-axis increases and then stabilizes within a set range, and the mean of the x-axis, y-axis or z-axis stabilizes within a set range, it is determined that the walker user has an intention to move.
[0013] In some embodiments, after obtaining the motion information of each selected limb joint of the walking aid user, the method further includes:
[0014] Determining whether the walker user has fallen; if it is determined that the walker user has not fallen, determining the movement intention of the actuator user according to the movement information;
[0015] Determining whether the walking aid user has fallen, comprising:
[0016] Determine a window mean of the acceleration information on the x-axis, y-axis or z-axis in a preset time sliding window according to the motion information of any limb joint in the selected limb joints;
[0017] Determining the window variance of the preset time sliding window according to the mean;
[0018] If the window variance is greater than a preset threshold, it is determined that the walker user has fallen, otherwise it is determined that the walker user has not fallen, and a fall status flag signal is generated, so as to generate the fall warning instruction according to the fall status flag signal to control the walker.
[0019] In some implementations, determining whether the walking aid user has fallen further comprises:
[0020] While obtaining the movement information of each selected limb joint of the walker user, the video data of the walker user is collected;
[0021] Based on the video data, extracting pixel coordinates of skeleton key points within a preset time sliding window;
[0022] If the cumulative error sum of the pixel coordinates of each skeleton key point in the current frame of the preset time sliding window minus the pixel coordinates of the skeleton key point in the first frame in the preset time sliding window is negative, and the cumulative error sum is greater than the error threshold, it is judged that the walker user has fallen; otherwise, it is judged that the walker user has not fallen, and the fall status flag signal is generated.
[0023] In some implementations, determining whether the walking aid user has fallen further comprises:
[0024] In the picture extracted within the preset time sliding window, if no skeleton key points are included, it is determined that the walker user has fallen, otherwise it is determined that the walker user has not fallen, and the fall state flag signal is generated.
[0025] In some implementations, determining a travel speed of the lower limb walker based on the root speed and the world space speed includes:
[0026] The final travel speed is determined according to the probability of the foot of the walking aid user contacting the ground, and the expression is as follows:
[0027]
[0028] Among them, v is the final travel speed, v e is the world space velocity, v f is the root velocity, s is the probability of the walker user’s foot in contact with the ground, is the upper limit of the probability of foot contacting the ground, and s is the lower limit of the probability of foot contacting the ground.
[0029] In some embodiments, the method further includes: when the generated inertial trajectory does not satisfy the trajectory constraint condition, entering a visual trajectory generation process to update the trajectory instruction;
[0030] The inertial trajectory constraint condition is that the total trajectory length and / or the acceleration change rate of the trajectory is less than or equal to respective set thresholds.
[0031] In some embodiments, the visual trajectory generation process includes:
[0032] While obtaining the movement information of each selected limb joint of the walker user, video data of the walker user is collected; based on the video data, a human posture estimation model is obtained, wherein the human posture estimation model includes key points of the human body;
[0033] Based on the human body key points and arm parts, a rotation joint is determined; the rotation joint is determined as a rotation key point, and the key points of the human body key points corresponding to the connecting joints on both sides of the rotation joint are respectively used as the first connection key point and the second connection key point, so as to construct a joint rotation plane; the joint rotation plane includes a first vector formed from the first connection key point to the rotation key point, and a second vector formed from the second connection key point to the rotation key point; based on the rotation key point, the first vector and the second vector, the posture rotation angle information of the user's arm joint is obtained;
[0034] Selecting the posture rotation angle information between the preset maximum angle and the minimum angle to obtain the corrected posture rotation angle data; accumulating the corrected posture rotation angle data to obtain the left and right trajectory information;
[0035] Accumulating the root velocity to obtain front and rear trajectory information;
[0036] According to the left-right trajectory information and the front-back trajectory information, a trajectory instruction is updated to control the walker.
[0037] In a second aspect, an embodiment of the present application provides a lower limb walker control device, comprising:
[0038] A motion information acquisition module is configured to obtain motion information of each selected limb joint of the walker user, the selected limb joints including waist joints, and the motion information includes acceleration information of three axes;
[0039] a motion intention recognition module, configured to determine the motion intention of the actuator user according to the motion information, and to call the IMU human posture inference module when it is determined that the walker user has a motion intention;
[0040] The IMU human posture inference module is configured to determine the relative postures of the other joints of the selected limb joints except the waist joint relative to the waist joint according to the motion information, and determine the global skeleton point postures of all the selected limb joints according to the relative postures; according to the global skeleton point postures, call the inverse kinematics solver to determine the global joint rotation posture; according to the global joint rotation posture, call the forward kinematics solver function to determine the root velocity; according to the acceleration of each axis of the waist node, obtain the world space velocity; based on the root velocity and the world space velocity, determine the travel velocity of the lower limb walker;
[0041] The instruction generation module is configured to determine an inertial trajectory according to the travel speed; and generate a trajectory instruction to control the walker according to the global joint rotation posture and the inertial trajectory.
[0042] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements a method for controlling a lower limb walker as provided in any possible implementation manner of the first aspect.
[0043] Compared with the prior art, the control method of a lower limb walker provided in an embodiment of the present application can accurately identify the user's movement intention by acquiring the three-axis motion information of each selected limb node of the walker user, thereby ensuring that the walker can respond to the user's movement needs in a timely manner and provide more personalized assistance; when determining the travel speed, the method not only takes into account the root speed, but also combines the speeds of other selected limb joints in the world space, making the speed control more comprehensive and accurate; the travel speed and global joint rotation posture of the walker are determined based on the user's motion information, and then the inertial trajectory is determined, so it can adapt to the walking habits and needs of different users, has stronger adaptability and flexibility, and provides real-time feedback on the true movement status of the patient's lower limbs.
[0044] The control device for a lower limb walker provided in an embodiment of the present application has the same beneficial technical effects as the above control method for a lower limb walker, which will not be elaborated herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The drawings described herein are only configured for explanation purposes and are not intended to limit the scope of the present application in any way. In addition, the shapes and proportional dimensions of the components in the drawings are only schematic and are configured to help understand the present application, and are not specifically limited to the shapes and proportional dimensions of the components of the present application. Those skilled in the art can select various possible shapes and proportional dimensions to implement the present application according to the specific circumstances under the guidance of the present application.
[0046] In the attached picture:
[0047] Figure 1 It is a left side schematic diagram of the structure of the lower limb walker according to an embodiment of the present application;
[0048] Figure 2 It is a right side schematic diagram of the structure of the lower limb walker according to an embodiment of the present application;
[0049] Figure 3 This is a schematic diagram of a patient using a lower limb walker to actively assist walking in a standing position in an embodiment of the present application;
[0050] Figure 4 This is a schematic diagram of a patient using a lower limb walker to passively assist walking in a sitting position in an embodiment of the present application;
[0051] Figure 5 A flow chart of a method for controlling a lower limb walker provided in one embodiment of the present application;
[0052] Figure 6 This is a schematic diagram of the principle of the IMU sensor;
[0053] Figure 7 A schematic diagram of the waveform for collecting motion information from the IMU sensor;
[0054] Figure 8 This is a schematic diagram of the wearing method of the IMU sensor in the embodiment of the present application;
[0055] Fig. 9 This is a schematic diagram of the acceleration mean value change waveform of a certain IMU sensor on the x-axis in an embodiment of the present application;
[0056] Fig.10 This is a schematic diagram of the acceleration variance change waveform of a certain IMU sensor on the x-axis in an embodiment of the present application;
[0057] Fig.11 The change of the movement intention of the walking aid user in the embodiment of the present application;
[0058] Fig.12 This is a schematic diagram of the results of modeling and aligning the SMPL model based on the motion information collected by the IMU sensor in an embodiment of the present application;
[0059] Fig.13 This is a schematic diagram of the pose estimation process implemented in an embodiment of the present application;
[0060] Fig.14 This is a schematic diagram of the fall status determination process in an embodiment of the present application;
[0061] Fig.15 This is a schematic diagram of the trajectory constraint judgment process in an embodiment of the present application;
[0062] Fig.16 This is a schematic diagram of the left and right trajectory generation process in an embodiment of the present application;
[0063] Fig.17 This is a schematic diagram of the BlazePose 33-point model skeleton;
[0064] Fig.18 It is a schematic diagram of the joint rotation plane;
[0065] Fig.19 Extract several different shoulder poses;
[0066] Fig. 20 This is a schematic diagram of raising the left arm in the embodiment;
[0067] Fig.21 Schematic diagram of the time-consuming experiment comparison between the final trajectory generation and the visual key points;
[0068] Fig. 22A schematic diagram of the structure of a lower limb walker control device provided in one embodiment of the present application;
[0069] Reference numerals:
[0070] 1-wheel hub motor, 2-walker body, 3-angle sensor, 4-camera, 5-controller, 6-joystick control device, 7-battery, 8-seat plate, 9-IMU sensor. DETAILED DESCRIPTION
[0071] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0072] The lower limb walker of the embodiment of the present application is a wheelchair-like device that can turn left and right and move forward and backward in a nearly flat environment. The walker user (patient) can perform active or passive walking movements such as turning, moving forward or backward according to his or her own needs.
[0073] Figure 1 and Figure 2 FIG. 2 shows a schematic diagram of the structure of a lower limb walker according to an embodiment of the present application. Figure 1 and Figure 2 As shown, the lower limb walker includes a walker body 2, a battery 7, a driving device, a rocker control device 6 and a controller 5; the battery 7 is configured to provide a power source for the driving device; the driving device is configured to convert the power source into mechanical energy to drive the walker body 2 to move, and the driving device can be as shown in FIG. Figure 1 The hub motor 1 shown; the rocker control device 6 is configured to receive manual operation instructions from the walker user and transmit the manual operation instructions to the controller 5; the controller 5 is configured to execute the manual operation instructions to drive the drive device; the controller 5 is also configured to execute the control method of the lower limb walker provided in the embodiment of the present application.
[0074] like Figure 3 and Figure 4As shown, the walker allows the patient to sit on it and walk actively. The walker body 2 also includes a flip-up seat plate 8. After the patient flips up the seat plate 8, the patient can stand up on his own (active movement). In some embodiments, the walker body 2 also includes an angle sensor 3. The angle of the flip-up flap 8 is collected by the angle sensor 3. The angle can be controlled by a rocker control device 6 to enable the patient to perform assisted walking in a standing posture (active movement) or a full sitting posture (passive movement). When the walker works in passive mode, the rocker can be used as an electric wheelchair. In the passive movement mode, the flap 8 is not flipped up, and the patient sits on the flap 8. In this mode, the patient can use the rocker control device 6 (also called a rocker arm) to send instructions to the controller 5 so that the controller 5 can obtain the front, back, left and right displacements.
[0075] The present application embodiment provides a control method for a lower limb walker, which can be applied in a patient's active motion mode, including:
[0076] Step S1: obtaining motion information of each selected limb node of the walker user, the selected limb node includes the waist joint, and the motion information includes acceleration information of three axes;
[0077] Step S2: Determine the movement intention of the actuator user according to the movement information. If it is determined that the walker user has the movement intention, execute step 3:
[0078] Step S3: According to the motion information, determine the relative posture of the other joints of the selected limb joints except the waist joint relative to the waist joint, and determine the global skeleton point posture of all selected limb joints according to the relative posture; according to the global skeleton point posture, call the inverse kinematics solver to determine the global joint rotation posture θ; according to the global joint rotation posture θ, call the forward kinematics solver function to determine the root velocity v f ;According to the acceleration of each axis of the waist node, obtain the world space velocity v e ; Based on the root velocity v f and world space velocity v e Determine the travel speed v of the lower limb walker;
[0079] Step S4: Determine the inertial trajectory information according to the travel speed v; generate a trajectory instruction according to the global joint rotation posture θ and the inertial trajectory information to control the walker according to the trajectory instruction.
[0080] In a specific embodiment, in step S1, an inertial measurement sensor (IMU sensor) is used to measure the motion information of the limb joint selected by the walker user. The inertial measurement sensor can measure the acceleration, angular velocity and Euler angle in the x, y and z axes. The schematic diagram of the inertial measurement sensor principle is shown in FIG. Figure 6 The working principle is that after a certain initialization process, the IMU sensor can continuously send the acceleration, angular velocity and Euler angle data of each axis. Figure 7 It shows the acceleration data changes in a stationary state.
[0081] In some embodiments, the IMU sensor is worn as Figure 8 As shown in the figure, six IMU sensors can be used to collect movement information of the head, arms, legs and waist joints of the walker user.
[0082] In a specific embodiment, the IMU sensor is used to continuously obtain the posture information of the patient's selected limb joints to continuously integrate the three-axis acceleration and the three-axis angular velocity to obtain effective motor input, dynamically adjust the window length of the time sliding window, and perform window observation processing on the integration result. The corresponding relationship between the original message and the transmission message of the IMU sensor is as follows:
[0083]
[0084] Among them, Acc represents the acceleration of the IMU sensor, Gry represents the angular velocity of the IMU sensor, Qua represents the Euler angle of the IMU sensor, and the x, y, and z subscripts represent the orthogonal coordinate axes of the IMU sensor installation position.
[0085] After obtaining the motion information of each single limb joint one by one, they are combined into a multi-joint state group matrix. Such a matrix contains the angular velocity, acceleration and Euler angle information of multiple joints, which is expressed as formula (2):
[0086]
[0087] where x(0) i Indicates the acceleration of the x-axis measured by the i-th IMU sensor, x(1) i Indicates the acceleration of the y-axis measured by the i-th IMU sensor, x(2) i represents the acceleration of the z-axis measured by the i-th IMU sensor; x(3) i represents the angular velocity of the x-axis measured by the i-th IMU sensor, x(4) i Indicates the angular velocity of the y-axis measured by the i-th IMU sensor, x(5) i represents the angular velocity of the z-axis measured by the i-th IMU sensor; x(6) i represents the Euler angle of the x-axis measured by the i-th IMU sensor, x(7) i Indicates the Euler angle of the y-axis measured by the i-th IMU sensor, x(8) i It represents the Euler angle of z-axis measured by the i-th IMU sensor. The subscript i represents the IMU sensor number.
[0088] The displacement of the walker is controlled according to the motion information of the limb nodes obtained by the IMU sensor. If real-time motion posture reading is used for control quantity output throughout the process, many tiny displacements may be caused. In this regard, an embodiment of the present application determines the motion intention of the actuator user based on the motion information.
[0089] In some embodiments, a motion intention recognition method based on the variance and mean of acceleration of any axis is introduced to accurately determine the start and stop of the walker. In the embodiments, several typical user control states are defined as motion and stop. In the motion state, the posture data can be allowed to directly drive the walker to move; in the stop state, the posture data can be shielded to drive the walker, and the recovery state will drive the walker to return to the zero position state.
[0090] For example, it can be determined whether the walker user is performing sudden movements, such as when swinging his arms, a large angular velocity change will occur in the direction of movement, while when he is stationary, there will not be such a large change. Therefore, the sudden change in angular velocity can be used as a criterion for starting movement intention detection.
[0091] In some embodiments, when the average angular velocity of the x-axis, y-axis and / or z-axis of a limb joint (such as an arm) is greater than a set threshold, the motion intention detection program is started, and when it is lower than the set threshold, the motion intention detection program is exited. By monitoring the sudden change of angular velocity, the embodiment of the present application can more accurately capture the moment when the user intends to start or end movement, reducing the possibility of misjudgment; when no significant angular velocity change is detected (that is, the user is in a relatively static state), the motion intention detection program is exited, which can reduce unnecessary calculations and sensor activities of the walker, thereby saving energy.
[0092] After entering the motion intention detection program, the acceleration information of the x-axis, y-axis or z-axis can be scanned to determine the variance and mean of the acceleration for motion intention recognition.
[0093] As an example, step S2 determines the motion intention of the actuator user according to the motion information, including: according to the motion information of any limb joint in the selected limb joints, if the variance of the acceleration of the x-axis, y-axis or z-axis increases and stabilizes in the set range, and the mean of the x-axis, y-axis or z-axis stabilizes in the set range, then it is judged that the walker user has the intention to move. By calculating the variance and mean, the statistical change trend of the three acceleration components can be measured. The mean of the data indicates the concentration level of the data, and the variance reflects its degree of dispersion. The increase in variance and stabilization in the set range indicate that the user's limbs have begun a relatively stable motion pattern, rather than random small fluctuations. At the same time, the stability of the acceleration mean further confirms the continuity of this motion pattern, thereby improving the accuracy of the judgment of the user's motion intention. Setting the stable range of the variance and mean as the judgment condition can effectively filter out noise and unnecessary interference, making the system's judgment of the user's motion intention more robust.
[0094] For any IMU sensor, there are three acceleration decompositions X, Y, and Z on the x-axis, y-axis, or z-axis, and their variance and mean can be calculated respectively.
[0095] The mean is calculated as follows:
[0096]
[0097] in, They represent the acceleration mean of variables X, Y, and \respectively, and n represents the number of samples. Represent the i-th observation value of variables X, Y, and Z respectively.
[0098] The formula for calculating variance is as follows:
[0099]
[0100] Among them, Var(x), Var(y), Var(z) represent the variance of variables X, Y, and Z respectively, and n represents the number of samples. denote the i-th observation value of X, Y, and Z respectively, represent the means of variables X, Y, and Z respectively.
[0101] In a specific embodiment, the acceleration data of the three axes can be stored in a data container, the motion intention flag can be set according to the determination result, and the mean and variance of the acceleration can be calculated in real time according to the data in the data container. When the mean value is stable at a certain value and the variance is stable at a certain value, it can be considered that the user wants to use this force input to control the movement of the device, and the motion intention flag is activated, and the rest of the stages are not activated.
[0102] Taking the x-axis as an example, the method of judging the motion intention is explained. When the mean value of the x-axis data of the IMU sensor is greater than a certain threshold, it can be considered that a certain force input occurs in the axial direction of the IMU sensor. Fig. 9 It reflects the process of the acceleration mean value rising, stabilizing and then releasing under the input of force. The mean value will experience four stages of sudden rise (10 to 12 stages, 50 to 54 stages), fluctuation (12 to 20 stages, 52 to 62 stages), stabilization (20 to 30 stages, 60 to 70 stages) and release to zero (30 to 50 stages, after 70 stages).
[0103] The variance of acceleration also goes through four processes: first it rises suddenly, then fluctuates and then stabilizes within a certain range, then it drops and then stabilizes within a range, and finally returns to zero. Fig.10 It shows the changes in data during the same period.
[0104] For each single-axis motion input process, such as a punch, a corresponding acceleration change sequence will be generated in the direction of the motion. In a specific embodiment, only a relatively stable stage is used as the motion intention flag as the activation stage, and possible partial jitter is avoided. Fig.11 The data shows the changes in the movement intentions of walker users during the same period.
[0105] The embodiment of the present application uses the variance and mean of acceleration in motion information to perform synchronous comparison to distinguish motion intentions. By analyzing the variance value characteristics and mean characteristics of the user, the motion intentions can be distinguished according to the stage calculation results, and the user's action intentions can be accurately identified to provide accurate input and stop states for subsequent trajectory generation.
[0106] By mounting the IMU sensor directly on the user, human posture can be reconstructed without the aid of visual sensors. A technical choice with a great advantage in the task of human posture reconstruction is the Inertial Measurement Unit (IMU), which can record orientation and acceleration and is small in size, so it can be easily worn on the body.
[0107] Commercial systems rely on dense placement of IMUs, which fully define the pose space of the human body for accurate skeletal reconstruction. However, placing a dozen or more sensors on the body can be invasive, time-consuming, and prone to errors, such as replacing sensors during installation, sensors running out of power midway, etc. Early research in the field has demonstrated that it is possible to recover full-body pose from a small set of sensors (such as 6 IMUs), although performing motion capture from sparse IMUs is extremely challenging because the problem is severely constrained.
[0108] Currently, a typical method is the data-driven method, which directly gives a training data set consisting of multiple training sequences and stipulates that the task is to learn a function that predicts the posture parameters of the SMPL model (human posture model) from the sparse IMU input data (gravitational acceleration and direction of each sensor). Using only 6 IMUs may not be able to fully represent the standard SMPL model, because the same group of x may correspond to multiple SMPL model postures.
[0109] In order to solve the technical problem that using 6 IMUs may not be able to fully represent the standard SMPL model, in some embodiments of the present application, such as Fig.13 As shown, step S3 is a trajectory generation step, including using bidirectional recurrent neural networks (biRNN) to respectively obtain the relative pose of the leaf node relative to the root node (referred to as the leaf node relative pose) g(1) and the global skeleton point pose of all selected limb joints (referred to as the global skeleton point pose) g(2). In a specific embodiment, the waist joint among the limb joints can be selected as the root joint (root node), and the other joints among the limb joints excluding the waist joint can be selected as the leaf joints (leaf nodes).
[0110] Recurrent Neural Networks (RNN), a method that summarizes the entire motion history through a fixed-length hidden state vector, can access both future and past information at the same time. This feature can help the network model significantly improve the predicted posture parameters.
[0111] biRNN takes all time information into account by running two units forward and backward respectively. Time information is utilized by using biRNN, which propagates information forward and backward in time; during training, the model can access the complete sequence, while during testing, the model can access more frames in the past and only a few frames in the future, so that accurate posture estimates can be generated and latency can be reduced. For the dataset, the AMASS dataset and the DIP-IMU dataset can be used as training sets, and the DIP-IMU dataset and the TotalCapture dataset can be used as test sets. A virtual inertial sensor is placed in the AMASS dataset, and inertial measurement values (acceleration and rotation) are artificially generated. The annotation of the supporting foot is generated for the AMASS and TotalCapture datasets, wherein the embodiment of the present application assumes that the displacement of the foot in two adjacent frames is less than a certain threshold and is marked as a supporting foot.
[0112] In some embodiments, step 3 may be continued to see Fig.13 , the biRNN network is used to implement the leaf joint position estimation module and the leaf joint position registration module respectively.
[0113] Among them, the leaf joint position estimation module takes the Euler angle Qua of the leaf node as input and outputs the relative pose g(1) of the leaf node; the leaf joint registration module takes the relative pose g(1) of the leaf node as input and outputs the global skeleton point pose g(2) in the SMPL model corresponding to the leaf node.
[0114] The pose1 node shown in the following formula contains the relative pose g(1) of the leaf node. The Euler angles Qua of the leaf node (other limb joints except the waist joint in the pre-selected limb joints) relative to the root node (waist joint) on the x-axis, y-axis and z-axis are x 、Qua y 、Qua z and its relative spatial position Pos on the x-axis, y-axis, and z-axis relative to the root node x 、Pos y 、Pos z ;
[0115]
[0116] like Fig.13 As shown, using the trained biRNN, read an input x of 6 sets of sensor raw data all , and synchronously output the pose group data pose that marks the specific poses of these 6 groups of sensors in the SMPL model all , and obtain the global skeleton point pose g(2), which can be expressed as follows:
[0117]
[0118] Pose group data pose all These six posture data each have information such as rotation angle and relative spatial coordinates. Among them, the waist joint pose0 is the root node and can be regarded as the origin of the entire human body coordinate system. Its rotation angle is variable but the spatial position remains basically unchanged, keeping the relative spatial relationship of the six postures stable.
[0119] As an example, the inverse kinematics solver IK of the SMPL model is used, and the global skeleton point pose g(2) is taken as input to obtain the global joint rotation pose θ, that is, the pose rotation angle of all joints relative to the root node. For the global joint rotation pose of the root node, the pose rotation angle measured by the IMU sensor located at the root node is directly used.
[0120] In the specific implementation, the root velocity v is determined f and world space velocity v e The methods include:
[0121] 1) Branch prediction root speed v based on physical constraints f. And use the forward kinematics solver to calculate the root velocity v f , root velocity v f Represents the relative spatial velocity of the foot relative to the root node, where θ(t) is the rotation of all leaf nodes except the root node relative to the root node at time t (joint rotation posture), FK represents the forward kinematics solution function, and l represents the length of each limb;
[0122] v f (t)=FK(θ(t-1);l)-FK(θ(t);l)(11);
[0123] 2) Predict the world speed based on the physical constraint branch. The world space speed v is obtained by integrating and summing the acceleration of each axis of the root node. e .
[0124] This estimated root velocity v can then be f and world space velocity v e The velocities are merged together to form a final merged travel velocity v.
[0125] In some embodiments, the global joint rotation position θ and the limb length l from the foot to the waist in the human posture model (SMPL model) are obtained, and the forward kinematics solver function FK (θ, l) in the human posture model is called to calculate the spatial coordinate p of the foot relative to the root. f , record the interval between two adjacent moments as time cost The spatial coordinate changes The root velocity v can be obtained f .
[0126]
[0127] When considering actual motion, we need not only the relative correspondence between these six sets of postures, but also the motion speed of the entire world coordinate system. Here, we use the method of integrating and summing the accelerations x(0), x(1), and x(2) of the root node x-axis, y-axis, or z-axis of the waist to obtain the world space speed v e , calculate the integral of the acceleration of each axis within n moments to synthesize the world space velocity v e The expression is as follows:
[0128]
[0129] World space speed v e and root velocity v f are all vectors containing the xyz three-axis velocities. Step S4 can integrate the travel velocity v to obtain the inertial trajectory traj in the world coordinate system. imu , the formula is as follows.
[0130]
[0131] In some embodiments, in step S3, based on the root velocity v f and world space velocity v e , the walking speed v of the lower limb walker is determined by using the probability s that the walker user's foot is in contact with the ground, specifically including:
[0132] The speed fusion is performed according to the probability s of foot contacting the ground. When the probability s of foot contacting the ground is large, the speed based on the root speed v is selected. f When the probability s of both feet contacting the ground is small, the world space speed v is selected e The local velocity v of the root node in its own coordinate system can be estimated by root (t), which is then converted to a world space velocity v based on the root rotation measured by the IMU sensor mounted on the waist node e .
[0133] In some embodiments, when the probability of the supporting foot contacting the ground is at an intermediate value, the probability of the foot contacting the ground s may be used to perform two predicted linear interpolations to obtain two root velocities v f and world space velocity v e Smooth fusion and transition. The probability s of the feet touching the ground depends on the rate of change of the Euler angles of the feet in the two frames of data. s represents the lower limit of the probability threshold. When the probability s of the feet touching the ground is less than the lower limit s of the probability threshold, the travel speed v adopts the world space speed v e . Represents the upper bound of the probability threshold, above which the root velocity v calculated using positive kinematics is used f , when the probability is in the middle, use v e and v f Weighted fusion is performed to obtain the fused moving speed v. The specific formula is as follows.
[0134] v e (t) = v root (t),
[0135]
[0136] In some embodiments, Fig.13 As shown, the biRNN network can be used to implement the ground contact estimation module. The ground contact estimation module inputs the leaf node relative posture g(1) and the leaf node Euler angle Qua, and outputs the probability s of the foot contacting the ground.
[0137] In a specific embodiment, each bidirectional recurrent neural network (biRNN) can be specifically implemented as a bidirectional long short-term memory network (BiLSTM). This application does not introduce the BiLSTM network in detail.
[0138] In a specific embodiment, each bidirectional recurrent neural network needs to be trained in advance, and the training process includes: defining the network structure, using bidirectional LSTM to implement biRNN in the specific implementation, presetting the sequence length of biRNN, the size of the input feature, the number of hidden layer units, the number of LSTM layers, the number of output categories, the batch size, the number of training rounds, and the learning rate. Divide the data into a training set, a validation set, and a test set. Initialize the parameters of biRNN, including weights and biases. For each training sample, forward propagation is performed through biRNN. biRNN includes two RNN layers, one traversing the sequence from front to back, and the other traversing the sequence from back to front. Finally, the outputs of the two RNN layers are combined. Calculate the loss: compare the output obtained by forward propagation with the true label and calculate the loss function. Back propagation: according to the loss function, calculate the gradient, and update the parameters of biRNN through a back propagation algorithm (such as back propagation through time, BPTT). Use an optimization algorithm (such as stochastic gradient descent SGD, Adam, etc.) to update the weights and biases of the network. Iterate the training until the predetermined number of iterations is reached or the early stopping condition is met. Evaluate model performance on validation and test sets, and adjust model parameters and hyperparameters to optimize performance. After training is complete, save model parameters for later use.
[0139] Among them, 1) the leaf joint position estimation module estimates the relative positions of the five leaf nodes (excluding other joints of the waist joint) relative to the root node (waist joint) based on the Euler angle Qua obtained by the IMU sensor, and outputs the leaf node pose g(1). Among them, represents the loss function of the biRNN module, p leaf (t) represents the spatial position of the nodes except the waist nodes at time t, represents the real spatial position of the nodes except the waist node at time t;
[0140]
[0141] 2) The leaf joint position registration module outputs all joint positions of the leaf node pose g(1) and connects the inertial measurement value to form the global skeleton point pose g(2) to represent the pose corresponding to each node in the global skeleton SMPL model. Represents the loss function of the biRNN, p all (t) represents the spatial position of the nodes except the waist nodes at time t, represents the real spatial position of the nodes except the waist node at time t;
[0142]
[0143] 3) Ground contact estimation module. According to the relative position g(1) of the leaf node and the Euler angle Qua of the leaf node, the contact probability s between the foot and the ground is output. Represents the cross entropy loss function of the biRNN, where s lfoot Left foot moving distance between frames, s rfoot is the distance the right foot moves between frames, represents the real spatial position of the left foot, Indicates the real spatial position of the right foot;
[0144]
[0145] In some embodiments, after step S1 obtains the movement information of each selected limb joint of the walker user, it also includes: determining whether the walker user falls; if it is determined that the walker user has not fallen, determining the movement intention of the actuator user according to the movement information.
[0146] like Fig.14 As shown, in some embodiments, determining whether the walking aid user has fallen includes:
[0147] Determine a window mean of the acceleration information on the x-axis, y-axis or z-axis in a preset time sliding window according to the motion information of any limb joint in the selected limb joints;
[0148] According to the mean, determine the window variance of the preset time sliding window;
[0149] If the window variance is greater than a preset threshold, it is determined that the walker user has fallen, and a fall status flag signal is generated, so as to generate a fall warning instruction according to the fall status flag signal to control the walker.
[0150] For example, all In each column of data, x(0)0, x(1)0, and x(2)0 are the accelerations of the x, y, and z axes obtained by the first IMU sensor. Taking the x axis as an example, the acceleration values on the axis are The time sliding window method is used to open the window of the sequence, and the mean is calculated first. Then calculate the acceleration window variance Var(data x ), if the variance is greater than the threshold, it can be determined as a fall.
[0151]
[0152] In some embodiments, determining whether the walker user falls also includes: acquiring the movement information of each selected limb joint of the walker user while collecting video data of the walker user; extracting the pixel coordinates of the skeletal key points within a preset time sliding window based on the video data; if the cumulative error sum of the pixel coordinates of each skeletal key point in the current frame of the preset time sliding window minus the pixel coordinates of the skeletal key point in the first frame of the preset time sliding window is negative, and the cumulative error sum is greater than the error threshold, then it is determined that the walker user has fallen, otherwise it is determined that the walker user has not fallen, and a fall status flag signal is generated.
[0153] For example, the following formula is used to detect whether the visual skeleton key points have been significantly displaced. First, the pixel coordinates pos(i) of the skeleton key points at each moment and several moments before the time sliding window are recorded: t , i represents the bone key point number, t represents the bone moment number, for example, pos(i)0 represents a pixel coordinate group of the x-axis coordinate x(i)0 and the y-axis coordinate y(i)0 of the i-th bone key point at the 0th moment inside the sliding window. The current pixel y coordinate y(i) of each bone key point current Subtract the pixel y coordinate y(i)0 of the first frame in the window. If the cumulative y-axis error and If it is negative and greater than the threshold, it can be determined that a large displacement has occurred, that is, a fall.
[0154]
[0155] pos(i)0=(x(i)0,y(i)0) (22).
[0156] In some embodiments, determining whether the walker user has fallen further includes: if the image extracted within the preset time sliding window does not include skeletal key points, then determining that the walker user has fallen.
[0157] Some embodiments provide a control method for a lower limb walker, such as Figure 5 As shown, based on the above embodiment, step S6 is also included: when the generated inertial trajectory does not meet the trajectory constraint condition, the visual trajectory generation process is entered to update the trajectory instruction; wherein the trajectory constraint condition is that the total length of the trajectory and / or the acceleration change rate of the trajectory is less than or equal to the respective set thresholds.
[0158] In a specific embodiment, Fig.15 As shown, after the inertial trajectory is generated, the total length of the trajectory and the acceleration change rate of the trajectory are checked. If they exceed (i.e., are greater than) the set threshold, the trajectory constraint condition is not met. The generated inertial trajectory sequence is usually a velocity value sequence.
[0159] In some embodiments, the visual trajectory generation process includes:
[0160] Step 501: while acquiring the movement information of each selected limb joint of the walker user, collect video data of the walker user; based on the video data, acquire a human posture estimation model, the human posture estimation model including key points of the human body;
[0161] Step 502: determine the rotation joint based on the human body key points and the arm parts; determine the rotation joint as the rotation key point, and use the key points of the human body key points corresponding to the joints connected on both sides of the rotation joint as the first connection key point and the second connection key point, so as to construct a joint rotation plane; the joint rotation plane includes a first vector formed from the first connection key point to the rotation key point, and a second vector formed from the second connection key point to the rotation key point; based on the rotation key point, the first vector and the second vector, obtain the position rotation angle information of the user's arm joint;
[0162] Step 503: Select the posture rotation angle information between the preset maximum angle and the minimum angle to obtain the corrected posture rotation angle data; accumulate the corrected posture rotation angle data to obtain the left and right trajectory information (process as shown in FIG. Fig.16 The root speed is accumulated to obtain the front and rear trajectory information; according to the left and right trajectory information and the front and rear trajectory information, the trajectory command is updated to control the walker.
[0163] In the embodiment of the present application, the visual trajectory generation process is used to generate the visual trajectory, including the left and right trajectories traj lr and the trajectories traj fb , the left and right trajectories are determined according to the rotation angle angle of the left and right arms. Raising the left arm generates a left-turn trajectory, and raising the right arm generates a right-turn trajectory. According to the root velocity v f Determine the forward and backward trajectory. Generate visual motion trajectories through visual assistance, reduce reliance on fixed control strategies, and increase the flexibility of walker control.
[0164] In the embodiment of the present application, a human body image is extracted based on video data, a BlazePose 3 3-point model is used based on the human body image, and a human body posture estimation model is obtained based on the human body image.
[0165] The human key point skeleton is the output result of visual human posture detection. The embodiment of the present application uses this result to detect specific joints to realize the rotation monitoring of specific key points. The general output result is a skeleton key point model based on the camera field of view. Here, the BlazePose 33-point model is taken as an example. After detection, the model will generate a human body into a skeleton including limbs and head, such as Fig.17 The key point generation component is very important. It can obtain the position information of the key points of the human body through images or sensors, and provide data support for subsequent motion analysis.
[0166] Here, the embodiment of the present application draws on an analysis method based on synthesizing two vectors from three key points of a plane. Based on the two vector information, the joint rotation angle and angular velocity can be calculated in real time. In view of the fact that the depth information provided by a monocular camera is limited, the embodiment of the present application uses the key point information of the plane to simplify the calculation. Fig.18 In the joint rotation plane shown in the figure, the joint quadrant positions of 0° (360°), 90°, 180°, and 270° are calibrated, and the corresponding joint rotation key point P2 and connection key points P1 and P3 are obtained to obtain the rotation angle angle. Several different shoulder posture extraction situations are shown in the figure. Fig.19 shown.
[0167] Get the coordinates of the rotation key point P2 and the connection key point P1 and P3 to determine the fixed edge P 12 and the rotation edge P 32 , solve for the first vector P 12 (denoted as p1) and the second vector P 32 (denoted as p2) inner product inner_product, where p 1x 、p 1y is the horizontal and vertical coordinates of vector p1, p 2x 、p 2y Similarly, divide the inner_product by the vector L 12 The modulus length p 1norm and vector L 32 The modulus length p 2norm The product of the two vectors gives the cosine value of the vector, and the inverse cosine function arccos() is used to obtain the actual rotation angle angle.
[0168] inner_product = p1·p2 = p 1x p 1x +p 2x p 2y (twenty three);
[0169]
[0170] Please refer to Fig.17 When the right shoulder joint rotation angle analysis is needed, the minimum analysis module can be obtained by setting point 11 as the connection key point P1, point 12 as the rotation key point P2, and point 14 as the connection key point P3. Fig.18 The joint analysis plane is shown in Figure 2. Several different shoulder pose extraction situations are shown in Figure 2. Fig.19 shown.
[0171] The method for generating the left and right visual trajectories uses the vertical axes of the left and right arms to collect the rotation angles. If the left arm is raised above a set threshold, it turns left. Fig. 20The process of raising the left arm is shown. If the right hand is greater than the set threshold, it turns right, but the rotation angle is not allowed to be greater than the minimum angle of a single rotation. min and the maximum angle angle max , so the posture rotation angle information between the preset maximum angle and minimum angle is selected, and the expression is as follows:
[0172] angle=max(angle min , min(angle,angle max )) (27).
[0173] Left and right trajectory traj lr is the rotation angle of the left and right arms raised and the corresponding adjacent time time cost It can be understood that here angle may include the rotation angle angle of the left arm raised l , and the rotation angle of the right arm raised angle r , where the front and rear trajectories traj fb is the root velocity v f and the corresponding adjacent time Cost The specific integration process is as follows:
[0174] angle=angle l +angle r (28);
[0175]
[0176] traj visual =traj lr +traj fb (31).
[0177] Where i is the time sequence number, n is the total number of time, traj visual The visual track.
[0178] IMU sensors may have zero bias errors, scale factor errors, misalignment errors and non-orthogonal errors, nonlinear errors, temperature errors, etc. Although these errors have corresponding solution algorithms, some unexpected situations in the walking process may still be unavoidable, such as cumulative errors under sudden changes in temperature, installation position offset caused by patient movement during walking, etc. For situations where the IMU generates a long cumulative trajectory and a small visual rotation amount, or the IMU generates a short cumulative trajectory and a large visual rotation amount, some embodiments use the weighted summation of the above-mentioned inertial trajectory and visual trajectory. The specific formula is as follows, where K is the inertial trajectory traj IMU The compensation weight parameter, 1-K is the visual v visualThe compensation weight parameter of the two is used to synthesize the fusion trajectory traj all .
[0179] traj all =(1-K)·traj visual +Ktraj IMU ;0≤K<1(32).
[0180] Based on the above embodiments, in some embodiments, a trajectory instruction is generated, the trajectory instruction includes a speed instruction or an angular velocity instruction, and before the trajectory instruction is transmitted to the controller of the walker, the speed instruction or the angular velocity instruction is multiplied by a linear scaling compensation coefficient.
[0181] The single-step moving distance controlled by the controller determines how far each control instruction will move forward, and the specific size of the single-step moving distance is the linear scaling compensation coefficient multiplied by the standard moving step length. The specific value can be set, and there are only two levels (active or passive).
[0182] As an example, when the flap 8 is not flipped up, the walker is in a passive mode, and the linear scaling compensation coefficient can be set larger; when the flap 8 is flipped up, the walker is in an active mode, and the linear scaling compensation coefficient is set smaller.
[0183] The embodiment of the present application records the time consumption of generating key points by simply using visual trajectories and the time consumption of fusing inertial trajectories and visual trajectories to form the final trajectory sequence provided by the embodiment of the present application. Five sets of tests were conducted. Both methods collected 70 data points. The time consumption of the five sets of data was compared. Fig.21 As shown, the embodiment of the present application can draw two conclusions. One is that the overall time consumption is about 53 milliseconds, which can maintain an update speed of about 20hz. The second is that from the time consumption comparison between the final trajectory and the visual key points, the cost of the visual key points is still relatively large, and the subsequent detection can only accelerate the processing process of abnormalities.
[0184] Through the above embodiments, the embodiments of the present application propose a control method for a lower limb walker, which provides an estimation method for the patient's left and right limb movement posture through an IMU sensor and a multi-stage detection RNN method; by accurately identifying the user's left and right limb movement posture, the system is convenient for distinguishing between the start and stop states. By automatically integrating the data generated by the IMU sensor, a suitable power-assisted trajectory is quickly generated to meet the needs of the walker moving forward, backward, left turn, and right turn, so as to achieve synchronous power-assisted movement of the patient and the walker, and help exercise the patient's active movement ability. The system estimates the degree of bone rotation of key points of the human body in the visual space, and compensates and corrects the degree of power-assisted movement of the walker.
[0185] Corresponding to the control method of a lower limb walker provided in the above embodiment, the embodiment of the present application also provides a control device for a lower limb walker, such as Fig. 22 As shown, it includes a motion information acquisition module, a motion intention recognition module, an IMU human posture reasoning module and an instruction generation module.
[0186] The motion information acquisition module is configured to obtain motion information of each selected limb joint of the walker user, the selected limb joints including waist joints, and the motion information includes acceleration information of three axes;
[0187] The motion intention recognition module is configured to determine the motion intention of the actuator user according to the motion information, and when it is determined that the walker user has the motion intention, the IMU human posture inference module is called;
[0188] The IMU human posture inference module is configured to determine the relative postures of the other joints of the selected limb joints except the waist joint relative to the waist joint according to the motion information, and determine the global skeleton point postures of all selected limb joints according to the relative postures; according to the global skeleton point postures, call the inverse kinematics solver to determine the global joint rotation posture; according to the global joint rotation postures, call the forward kinematics solver function to determine the root velocity; according to the acceleration of each axis of the waist node, obtain the world space velocity; and determine the travel velocity of the lower limb walker based on the root velocity and the world space velocity;
[0189] The instruction generation module is configured to determine the inertial trajectory according to the travel speed; and generate trajectory instructions to control the walker according to the global joint rotation posture and the inertial trajectory.
[0190] In some embodiments, the control device of the lower limb walker also includes a visual human posture reasoning module, and the human posture reasoning module is configured to execute the above visual trajectory generation process.
[0191] The control device of the lower limb walker provided in the embodiment of the present application can implement the control method of the lower limb walker provided in the embodiment of the present application, but the implementation device of the control method of the lower limb walker provided in the present application includes but is not limited to the control device of the lower limb walker listed in the present embodiment. All structural deformations and replacements of the prior art made according to the principles of the present application are included in the protection scope of the present application.
[0192] The embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is configured to implement the control method for the lower limb walker as described above when the program is executed.
[0193] The control method, device and readable storage medium of the lower limb walker provided by the present application are introduced in detail above. The principles and implementation methods of the present application are explained by using specific examples in the embodiments of the present application. The description of the above embodiments is only configured to help understand the concept of the present application and should not be understood as limiting the scope of protection of the present application.
Claims
1. A method for controlling a lower limb walker, characterized in that: include: Acquire motion information of each selected limb joint of the walker user, the selected limb joints including waist joints, the motion information including acceleration information of three axes; The movement intention of the actuator user is determined according to the movement information. When it is determined that the walking aid user has the movement intention, the following steps are performed: According to the motion information, determine the relative postures of the other joints of the selected limb joints except the waist joint relative to the waist joint, and determine the global skeleton point postures of all the selected limb joints according to the relative postures; according to the global skeleton point postures, call the inverse kinematics solver to determine the global joint rotation posture; according to the global joint rotation posture, call the forward kinematics solver function to determine the root velocity; according to the acceleration of each axis of the waist node, obtain the world space velocity; based on the root velocity and the world space velocity, determine the travel velocity of the lower limb walker; An inertial trajectory is determined according to the travel speed; and a trajectory instruction is generated according to the global joint rotation posture and the inertial trajectory to control the walker.
2. The control method of the lower limb walker according to claim 1, characterized in that: Determining the motion intention of the actuator user according to the motion information includes: According to the motion information of any limb joint among the selected limb joints, if the variance of the acceleration of the x-axis, y-axis or z-axis increases and then stabilizes within a set range, and the mean of the x-axis, y-axis or z-axis stabilizes within a set range, it is determined that the walker user has an intention to move.
3. The control method of the lower limb walker according to claim 1, characterized in that: After obtaining the motion information of each selected limb joint of the walker user, it also includes: Determining whether the walker user has fallen; if it is determined that the walker user has not fallen, determining the movement intention of the actuator user according to the movement information; Determining whether the walking aid user has fallen, comprising: Determine a window mean of the acceleration information on the x-axis, y-axis or z-axis in a preset time sliding window according to the motion information of any limb joint in the selected limb joints; Determining the window variance of the preset time sliding window according to the mean; If the window variance is greater than a preset threshold, it is determined that the walker user has fallen; otherwise, it is determined that the walker user has not fallen, and a fall status flag signal is generated, so as to generate the fall warning instruction according to the fall status flag signal to control the walker.
4. The control method of the lower limb walker according to claim 3, characterized in that: Determining whether the walker user has fallen further includes: While obtaining the movement information of each selected limb joint of the walker user, the video data of the walker user is collected; Based on the video data, extracting pixel coordinates of skeleton key points within a preset time sliding window; If the cumulative error sum of the pixel coordinates of each skeleton key point in the current frame of the preset time sliding window minus the pixel coordinates of the skeleton key point in the first frame in the preset time sliding window is negative, and the cumulative error sum is greater than the error threshold, it is judged that the walker user has fallen; otherwise, it is judged that the walker user has not fallen, and the fall status flag signal is generated.
5. The control method of the lower limb walker according to claim 4, characterized in that: Determining whether the walker user has fallen further includes: In the picture extracted within the preset time sliding window, if no skeleton key points are included, it is determined that the walker user has fallen, otherwise it is determined that the walker user has not fallen, and the fall state flag signal is generated.
6. The control method of the lower limb walker according to claim 1, characterized in that: Determining a travel speed of the lower limb walker based on the root speed and the world space speed includes: The final travel speed is determined according to the probability of the foot of the walking aid user contacting the ground, and the expression is as follows: Among them, v is the final travel speed, v e is the world space velocity, v f is the root velocity, s is the probability of the walker user’s foot in contact with the ground, is the upper limit of the probability of foot contacting the ground, and s is the lower limit of the probability of foot contacting the ground.
7. The control method of the lower limb walker according to claim 1, characterized in that: The method further includes: when the generated inertial trajectory does not satisfy the trajectory constraint condition, entering the visual trajectory generation process to update the trajectory instruction; The inertial trajectory constraint condition is that the total trajectory length and / or the acceleration change rate of the trajectory is less than or equal to respective set thresholds.
8. The control method of the lower limb walker according to claim 7, characterized in that: The visual trajectory generation process includes: While obtaining the movement information of each selected limb joint of the walker user, video data of the walker user is collected; based on the video data, a human posture estimation model is obtained, wherein the human posture estimation model includes key points of the human body; Based on the human body key points and arm parts, a rotation joint is determined; the rotation joint is determined as a rotation key point, and the key points of the human body key points corresponding to the connecting joints on both sides of the rotation joint are respectively used as the first connection key point and the second connection key point, so as to construct a joint rotation plane; the joint rotation plane includes a first vector formed from the first connection key point to the rotation key point, and a second vector formed from the second connection key point to the rotation key point; based on the rotation key point, the first vector and the second vector, the posture rotation angle information of the user's arm joint is obtained; Selecting the posture rotation angle information between the preset maximum angle and the minimum angle to obtain the corrected posture rotation angle data; accumulating the corrected posture rotation angle data to obtain the left and right trajectory information; Accumulating the root velocity to obtain front and rear trajectory information; According to the left-right trajectory information and the front-back trajectory information, a trajectory instruction is updated to control the walker.
9. A control device for a lower limb walker, characterized in that: include: A motion information acquisition module is configured to obtain motion information of each selected limb joint of the walker user, the selected limb joints including waist joints, and the motion information includes acceleration information of three axes; a motion intention recognition module, configured to determine the motion intention of the actuator user according to the motion information, and to call the IMU human posture inference module when it is determined that the walker user has a motion intention; The IMU human posture inference module is configured to determine the relative postures of the other joints of the selected limb joints except the waist joint relative to the waist joint according to the motion information, and determine the global skeleton point postures of all the selected limb joints according to the relative postures; according to the global skeleton point postures, call the inverse kinematics solver to determine the global joint rotation posture; according to the global joint rotation posture, call the forward kinematics solver function to determine the root velocity; according to the acceleration of each axis of the waist node, obtain the world space velocity; based on the root velocity and the world space velocity, determine the travel velocity of the lower limb walker; The instruction generation module is configured to determine an inertial trajectory according to the travel speed; and generate a trajectory instruction to control the walker according to the global joint rotation posture and the inertial trajectory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed, the control method of the lower limb walker as described in any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Scene interaction system based on upper limb rotation training equipment and active intention
CN121695463A
