A gait analysis method and system

By obtaining the depth map, acceleration, magnetic field and angular velocity information of the lower leg, combined with the ESKF method, the position and posture of the lower leg are calculated, which solves the problem of environmental interference in gait analysis in the existing technology and achieves more accurate gait analysis. .

CN118370534BActive Publication Date: 2024-09-17ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410806235.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-17
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Existing motion capture systems are susceptible to interference from the external lighting environment and magnetic field environment during gait analysis, resulting in inaccurate positioning and inaccurate motion parameters, making it difficult to accurately analyze gait.

Method used

The gait analysis method is used to obtain the depth map, acceleration information, magnetic field information and angular velocity information of the lower leg, and the position information and attitude information of the lower leg are calculated and combined with the ESKF state estimation method for correction and fusion to obtain the gait analysis results. The system includes an array ranging sensor, an inertial sensor and a communication module. It uses depth maps and inertial sensor data to calculate the position and attitude of the lower leg to avoid interference from the external environment.

Benefits of technology

It achieves precise positioning of the lower limbs, reduces heading drift errors, improves the accuracy of gait analysis, and avoids interference from the external optical and magnetic field environment on the inertial sensor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118370534B
    Figure CN118370534B
Patent Text Reader

Abstract

The present application discloses a gait analysis method and system, which includes the steps of: obtaining a depth map, acceleration information, magnetic field information and angular velocity information of the calf; calculating the position information and posture information of the calf according to the depth map, acceleration information, magnetic field information and angular velocity information; and calculating the gait analysis result according to the position information and posture information. The system includes an array ranging sensor, an inertial sensor, a communication module and a main control module. The present application can obtain the position information and posture information of the calf through the array ranging sensor and the inertial sensor, which is not affected by the external optical environment; further, the position information and posture information are used to accurately locate the lower limbs and obtain the gait analysis result, thereby avoiding the interference of the external magnetic field environment on the inertial sensor, solving the problem of heading drift, reducing the heading error, and making the gait analysis result more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of sports biomechanics, and in particular to a gait analysis method and system. Background Art

[0002] Gait analysis is essential for studying the biomechanics of movement as it provides temporal and spatial parameters related to walking patterns. By analyzing the collected lower limb motion data, gait analysis has a variety of uses, including physical activity assessment, disease diagnosis, fall detection, and facilitating human-robot interaction with exoskeletons. Motion capture systems are the main tools for gait analysis, which can obtain kinematic information related to the lower limbs. Although optical systems are commonly used for gait analysis, they have limitations such as high cost, complex setup, and sensitivity to lighting conditions. In addition, due to their complex setup requirements, these optical motion capture systems can only be used indoors.

[0003] Many studies have aimed to simplify wearable motion capture systems for acquiring outdoor gait information. These systems typically use inertial measurement units (IMUs) mounted on the thigh, calf, and foot. However, basic IMU setups face challenges in accurately estimating lower limb posture due to issues such as magnetic field interference and long-term heading drift. To address the heading drift issue, the zero-velocity update (ZUPT) method was introduced. However, ZUPT still faces challenges with acceleration disturbances caused by foot impact. Some have explored combining IMUs with other sensors such as ultrasonic range sensors to improve localization accuracy and reduce heading drift. However, this work did not show how to use the distance sensors on the foot to calculate the foot posture. In addition, the foot-mounted sensing system does not have good wear resistance. The sensor system mounted on the calf focuses on detecting the movement of the calf. In biomechanics, the sensor system mounted on the calf does not have a zero velocity state (ZVS). Integrating cameras, global positioning systems, and IMUs can simultaneously detect gait parameters and localize, but the weight of the system may hinder walking, and its update rate may not meet the needs of dynamic gait detection. Another method integrates wind flow sensors with IMUs to detect gait parameters, but it lacks positioning capabilities and cannot eliminate environmental wind speed interference. Summary of the invention

[0004] The present application provides a gait analysis method and system to solve the problem that the motion capture system in the prior art is easily disturbed by the external lighting environment and magnetic field environment when detecting and analyzing gait, resulting in inaccurate positioning, inaccurate motion parameters, and easy heading drift, thereby causing inaccurate gait analysis.

[0005] To solve the above technical problems, a technical solution adopted in the present application is to provide a gait analysis method, comprising the steps of: obtaining a depth map, acceleration information, magnetic field information and angular velocity information of the calf part; calculating and obtaining the position information and posture information of the calf part based on the depth map, acceleration information, magnetic field information and angular velocity information; and calculating and obtaining the gait analysis result based on the position information and posture information.

[0006] In some embodiments, the step of calculating and obtaining the position information and posture information of the calf part includes: merging the thigh part and the calf part into a retractable rigid rod, using the rigid rod as the rotation axis of the greater trochanter of the leg, the geometric center of the greater trochanter of the leg is located at the upper end of the thigh part, and calculating and obtaining the gait analysis result based on the merged rigid rod.

[0007] In some embodiments, the step of calculating and obtaining the position information and posture information of the calf part further includes: establishing a global coordinate system { O G}、Body coordinate system{ O B} and the calf coordinate system { O D}; The global coordinate system { O G The origin of the body coordinate system { O B The origin of the lower leg coordinate system is located at the geometric center of the central greater trochanter, and the geometric center of the central greater trochanter is located in the middle of the body. O D} is located on the rigid rod; obtain the calf part in the global coordinate system { O G}、Body coordinate system{ O B} and the calf coordinate system { O D}, and calculate the gait analysis result.

[0008] In some embodiments, the step of calculating and obtaining the position information and posture information of the calf part also includes: the depth map includes multiple angular areas, and the width of the depth map is calculated based on the distance between two angular areas in the horizontal direction and the corresponding horizontal field of view angles, and the height of the depth map is calculated based on the distance between two angular areas in the vertical direction and the corresponding vertical field of view angles; the pitch angle of the calf part is calculated based on the distance between the two angular areas in the horizontal direction and the width of the depth map, and the roll angle of the calf part is calculated based on the distance between the two angular areas in the vertical direction and the height of the depth map; the first posture information of the calf part is obtained based on the pitch angle and the roll angle; the second posture information of the calf part is calculated based on the acceleration information and the angular velocity information; the third posture information of the calf part is calculated based on the magnetic field information; the second posture information is corrected and fused based on the first posture information and the third posture information to obtain the posture information of the calf part.

[0009] In some embodiments, the step of calculating the position information and posture information of the calf part further includes: the depth map also includes a plurality of inner areas, and the average distance between the inner areas and the pitch angle and roll angle are calculated to obtain the position information and posture information of the calf part in the calf coordinate system { O D}; wherein the calf part is in the calf coordinate system { O D} includes an initial position and a moving position; based on the initial position and the moving position, the displacement of the calf part is calculated, and based on the displacement, the yaw angle of the calf part is calculated; based on the average distance between the inner areas, the pitch angle, the roll angle and the yaw angle, the calf part in the global coordinate system { O G} to obtain the first position information of the calf part; according to the acceleration information and the angular velocity information, calculate and obtain the second position information of the calf part; according to the magnetic field information, calculate and obtain the third position information of the calf part; according to the first position information and the third position information, correct and fuse the second position information to obtain the position information of the calf part.

[0010] In some embodiments, the step of calculating and obtaining the position information and posture information of the calf part also includes: using the ESKF state estimation method to define an initial error state; using the first position information, first posture information, third position information and third posture information to calculate and update the error state; according to the error state, correcting the second position information and the second posture information to obtain the position information and posture information of the calf part.

[0011] In some embodiments, the step of calculating and obtaining the gait analysis result includes: establishing a left leg coordinate system { O B1} and right leg coordinate system { O B2}, the leg greater trochanter includes the left leg greater trochanter and the right leg greater trochanter, the left leg coordinate system { O B1 The origin of the right leg coordinate system is located at the geometric center of the greater trochanter of the left leg. O B2 The origin of the body coordinate system {O B}; respectively calculate and obtain the left leg coordinate system { O B1} and the right leg coordinate system { O B2} to the origin of the body coordinate system {O B}; measure the initial distance from the calf part of the left leg to the walking surface, and the initial distance from the calf part of the right leg to the walking surface; respectively calculate the calf part of the left leg and the calf part of the right leg in the global coordinate system { O G According to the above measurement data and calculation data, respectively, the left foot and the right foot are calculated in the body coordinate system {O B} in the location information.

[0012] In some embodiments, the step of calculating and obtaining the gait analysis result further includes: respectively calculating the position of the left foot and the right foot in the body coordinate system {0 B}, identify gait events, and segment gait cycles; wherein, the gait events include heel touchdown events and toe-off events, and the gait cycle includes a stance phase and a swing phase; the heel touchdown event represents the beginning of the stance phase, the toe-off event represents the end of the stance phase and the beginning of the swing phase, and the next heel touchdown event represents the end of the swing phase; gait parameters are calculated based on the gait events and gait cycles; the gait parameters include walking time, step length and walking speed.

[0013] In some embodiments, the step of calculating and obtaining the gait analysis result further includes: the gait event also includes a foot contact event, according to the left foot and the right foot in the body coordinate system {0 B} and the foot contact event, calculate the step width; calculate the body coordinate system { O B}; According to the heading rotation angle and the step length, the body coordinate system { O B}The origin of the global coordinate system is O G}; According to the body coordinate system { O B}The origin of the global coordinate system is O G}, and the left foot and the right foot are in the body coordinate system {O B}, calculate the position information of the left foot and the right foot in the global coordinate system { O G}; According to the body coordinate system { O B}, the origin, left foot, and right foot in the global coordinate system { O G}, obtain the body movement trajectory, and obtain the gait analysis result.

[0014] The present application also provides a gait analysis system, comprising an array ranging sensor, an inertial sensor, a communication module and a main control module; the array ranging sensor, the inertial sensor and the communication module are arranged in a shell, and an electric control board and a power supply module are arranged in the shell; the inertial sensor is used to obtain acceleration information, magnetic field information and angular velocity information of the calf part; the array ranging sensor is used to obtain a depth map of the calf part; the power supply module is used to supply power to the array ranging sensor, the inertial sensor and the communication module; the communication module is electrically connected to the array ranging sensor and the inertial sensor, and is used to send the detection data of the array ranging sensor and the inertial sensor to the main control module; the main control module obtains a gait analysis result based on the detection data according to the gait analysis method described above.

[0015] The beneficial effects of the present application are as follows: the present application discloses a gait analysis method and system, the method comprising the steps of: obtaining a depth map, acceleration information, magnetic field information and angular velocity information of the calf; calculating and obtaining the position information and posture information of the calf according to the depth map, acceleration information, magnetic field information and angular velocity information; calculating and obtaining the gait analysis result according to the position information and posture information. The system comprises an array ranging sensor, an inertial sensor, a communication module and a main control module; the array ranging sensor, the inertial sensor and the communication module are arranged in a housing, and an electric control board and a power supply module are arranged in the housing; the inertial sensor is used to obtain the acceleration information, magnetic field information and angular velocity information of the calf; the array ranging sensor is used to obtain the depth map of the calf; the power supply module is used to power the array ranging sensor, the inertial sensor and the communication module; the communication module is electrically connected to the array ranging sensor and the inertial sensor, and is used to send the detection data of the array ranging sensor and the inertial sensor to the main control module; the main control module obtains the gait analysis result according to the gait analysis method based on the detection data. The present application can obtain the position information and posture information of the calf part through array ranging sensors and inertial sensors, without being affected by the external optical environment; further, the position information and posture information are used to achieve precise positioning of the lower limbs, obtain gait analysis results, avoid interference of the external magnetic field environment on the inertial sensor, solve the problem of heading drift, reduce heading errors, and make the gait analysis results more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flowchart of a gait analysis method of the present application;

[0017] Figure 2 It is a schematic diagram of the composition of a gait analysis system of the present application;

[0018] Figure 3 It is a schematic diagram of establishing a coordinate system in a gait analysis method of the present application;

[0019] Figure 4 This is a schematic diagram of a depth map in a gait analysis method of the present application. Figure 1 ;

[0020] Figure 5 This is a schematic diagram of a depth map in a gait analysis method of the present application. Figure 2 ;

[0021] Figure 6 It is a posture solution principle diagram in S2 of a gait analysis method of the present application;

[0022] Figure 7 It is a lower limb kinematic model in a gait analysis method of this application Figure 1 ;

[0023] Figure 8 It is a lower limb kinematic model in a gait analysis method of this application Figure 2 ;

[0024] Fig. 9 It is a schematic diagram of the estimation principle of gait events in a gait analysis method of the present application;

[0025] Fig.10 This is the principle of walking trajectory planning in a gait analysis method of this application Figure 1 ;

[0026] Fig.11 This is the principle of walking trajectory planning in a gait analysis method of this application Figure 2 ;

[0027] Fig.12 This is the result of an indoor experiment in a gait analysis method of this application. Figure 1 ;

[0028] Fig.13 This is the result of an indoor experiment in a gait analysis method of this application. Figure 2 ;

[0029] Fig.14 This is the result of an indoor experiment in a gait analysis method of this application. Figure 3 ;

[0030] Fig.15 This is the result of an outdoor experiment in a gait analysis method of this application. Figure 1 ;

[0031] Fig.16 This is the result of an outdoor experiment in a gait analysis method of this application. Figure 2 . DETAILED DESCRIPTION

[0032] In order to facilitate the understanding of the present application, the present application is described in more detail below in conjunction with the accompanying drawings and specific embodiments. The preferred embodiments of the present application are provided in the accompanying drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described in this specification. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive.

[0033] It should be noted that, unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present application. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more related listed items.

[0034] Figure 1 The flowchart of the gait analysis method of the present application comprises the following steps:

[0035] S1: Obtain the depth map, acceleration information, magnetic field information and angular velocity information of the calf area.

[0036] S2: Calculate and obtain the position information and posture information of the calf part according to the depth map, acceleration information, magnetic field information and angular velocity information.

[0037] S3: Calculate and obtain gait analysis results based on the position information and posture information.

[0038] Combination Figure 2 The present application can obtain the position information and posture information of the calf part through the array ranging sensor 1 and the inertial sensor 2, which is not affected by the external optical environment; further, the precise positioning of the lower limbs is achieved through the position information and posture information, and the gait analysis results are obtained, thereby avoiding the interference of the external magnetic field environment on the inertial sensor 2, solving the problem of heading drift, reducing the heading error, and making the gait analysis results more accurate.

[0039] Combine the following Figures 1 to 16 , this application is described in detail with specific embodiments.

[0040] like Figure 1 As shown, the gait analysis method provided in the embodiment of the present application is described in detail as follows:

[0041] S1: Obtain the depth map, acceleration information, magnetic field information and angular velocity information of the calf area.

[0042] Specific, combined Figure 2The array ranging sensor 1 and the inertial sensor 2 are arranged in a shell 5, and the shell 5 is tied to the calf. An electric control board 6 is arranged in the shell 5, the inertial sensor 2 is arranged on the upper part of the electric control board 6, and the array ranging sensor 1 is arranged on the lower part of the electric control board 6. The length and width of the electric control board 6 are both 22 mm.

[0043] In this embodiment, the inertial sensor 2 is a chip ICM-20948, and the inertial sensor 2 includes an accelerometer, a magnetometer, and a gyroscope. The acceleration information, magnetic field information, and angular velocity information of the calf are obtained by using the inertial sensor 2. The array ranging sensor 1 is a chip VL53L5CX. The resolution of the array ranging sensor 1 is configured to 4×4 mode, and the sampling rate is configured to 60Hz. The array ranging sensor 1 is used to obtain a depth map of the calf.

[0044] S2: Calculate and obtain the position information and posture information of the calf part according to the depth map, acceleration information, magnetic field information and angular velocity information.

[0045] First, a swing model is established based on the walking characteristics of human lower limbs. The thigh and calf are combined into a retractable rigid rod, and the rigid rod is used as the rotation axis of the greater trochanter of the leg. The geometric center of the greater trochanter of the leg is located at the upper end of the thigh.

[0046] Further, such as Figure 3 As shown, establish the global coordinate system { O G}、Body coordinate system{ O B} and the calf coordinate system { O D}. Global coordinate system { O G}Origin O G Located on the walking surface, the body coordinate system { O B}Origin O B Located at the geometric center of the central greater trochanter, the geometric center of the central greater trochanter is located in the middle of the body, the calf coordinate system { O D}Origin O D Located on a rigid rod, origin O D In this embodiment, the X-axis, Y-axis and Z-axis of the three coordinate systems correspond to the medial-lateral (ML), anterior-posterior (AP) and vertical directions of the body, respectively.

[0047] Combination Figure 2 , Figure 4 , Figure 5 As shown, the depth map measured by the array ranging sensor 1 is in a 4×4 format. Figure 4 , Figure 5 As shown, in the global coordinate system { O G}, the depth map includes multiple corner areas (0, 3, 12, 15), multiple inner areas (5, 6, 9, 10), and other areas (1, 2, 4, 7, 8, 11, 13, 14). t Time has come t+1 At this moment, the lower leg will tilt and translate, and the array ranging sensor 1 will record the depth map Depth t and Depth t+1 .like Figure 4 As shown, when the distances of the four corner areas (0, 3, 12, 15) are equal, the corresponding depth map Depth t , at this time, the array ranging sensor 1 is parallel to the ground, indicating that the calf is not tilted; Figure 5 As shown in Figure 2, when the distances of the four corner areas (0, 3, 12, 15) are not equal, the corresponding depth map Depth t+1 , at this time, the array ranging sensor 1 is not parallel to the ground, which means that the lower leg is tilted. According to the data table of the array ranging sensor 1, the vertical and horizontal field of view angles of the angle zone (0, 3, 12, 15) are 45° and 45° respectively; the vertical and horizontal field of view angles of the inner zone (5, 6, 9, 10) are 22.5° and 22.5° respectively.

[0048] Furthermore, the width of the depth map is calculated based on the distance between the two horizontal angle zones (0, 3) of the depth map and the corresponding horizontal field of view angle, and the height of the depth map is calculated based on the distance between the two vertical angle zones (0, 12) and the corresponding vertical field of view angle, which are respectively expressed by the following formulas:

[0049]

[0050] in, Represents the width of the depth map, represents the height of the depth map, represents the horizontal field of view, represents the vertical field of view, represents one of the corner areas, Represents distance.

[0051] Furthermore, the pitch angle of the calf is calculated based on the distance between the two horizontal angular areas (0, 3) of the depth map and the width of the depth map, and the roll angle of the calf is calculated based on the distance between the two vertical angular areas (0, 12) and the height of the depth map, which are respectively expressed by the following formulas:

[0052]

[0053] in, Represents the pitch angle of the calf area, Represents the roll angle of the calf area.

[0054] Furthermore, first posture information of the calf part is obtained according to the pitch angle and the roll angle.

[0055] Further, such as Figure 4 , Figure 5 , Figure 6 As shown, according to the average distance between the inner areas (5, 6, 9, 10) of the depth map and the pitch angle and roll angle, the calf part in the calf coordinate system { O D}; the calf part is in the calf coordinate system { O D The positions in the calf coordinate system { O D The position in} is obtained by the following formula:

[0056]

[0057] Among them, the calf part is in the calf coordinate system { O D} is located in ( , , ), A reference vector is established Vref , , Represents range.

[0058] Furthermore, in a straight gait, the displacement of the calf in the medial-lateral (ML) direction of the body is 0, while in a turning gait, the displacement is not 0. Figure 6 As shown in the figure, the kinematic model uses the supporting foot as the rotation axis, and the calf and the supporting foot form an inverted cone motion trajectory, and in the standing stage, the height of the calf is constant. In the turning gait, the displacement of the calf is calculated based on the initial position and the motion position, and the yaw angle of the calf is calculated based on the displacement, which is expressed by the following formula:

[0059]

[0060] in, represents the yaw angle, Represents the displacement of the calf in the medial-lateral (ML) direction of the body. Represents the displacement of the calf in the anterior-posterior (AP) direction of the body.

[0061] Furthermore, according to the average distance, pitch angle, roll angle and yaw angle between the inner areas (5, 6, 9, 10), the calf position in the global coordinate system { O G}, and obtain the first position information of the calf part, which is expressed by the following formulas:

[0062]

[0063] Among them, the lower leg part is in the global coordinate system { O G} is located in ( , , ), , , Represents a three-dimensional range.

[0064] Further, according to Figure 2 The acceleration information and angular velocity information obtained by the inertial sensor 2 in the embodiment of the present invention are used to calculate the second position information and the second posture information of the calf. The third position information and the third posture information of the calf are calculated based on the magnetic field information obtained by the inertial sensor 2. The second position information and the second posture information are corrected and fused based on the first position information, the first posture information, the third position information and the third posture information to obtain the position information and the posture information of the calf.

[0065] Specifically, the state estimation method of ESKF (Error State Kalman Filter) is used to define the initial error state and nominal state, where the nominal state is the second position information and the second posture information of the calf. The nominal state and the error state are expressed by the following formula:

[0066]

[0067] in, represents the nominal state, represents the error state, Represents the second position information of the calf part, Represents the speed of the calf area, The quaternion representing the second posture information of the calf part, Represents the acceleration deviation of the calf area, Represents the angular velocity deviation of the calf area, represents the error of the second position information of the calf part, Represents the error in the speed of the calf area, The error of the quaternion representing the second posture information of the calf, represents the error of the acceleration deviation of the calf area, This represents the error in the angular velocity deviation of the calf area.

[0068] Therefore, the true state can be expressed by the following formula:

[0069]

[0070] in, Represents the real state.

[0071] Furthermore, the error state system is expressed by the following formula:

[0072]

[0073] in, represents the discrete update of the error state, represents the state transfer matrix, which describes the change of the error state system over time. represents the input matrix, represents a random pulse vector.

[0074] The prediction equation for ESKF is:

[0075]

[0076] in, represents the estimated error state, , , They are expressed by the following formulas:

[0077]

[0078]

[0079]

[0080]

[0081] Furthermore, the error state is calculated and updated using the first position information, the first posture information, the third position information and the third posture information; and the second position information and the second posture information are corrected according to the error state to obtain the position information and posture information of the calf part.

[0082] Specifically, the first position information and the first posture information are expressed by the following formula:

[0083]

[0084] in, represents the observation matrix of array ranging sensor 1, ( , , ) represents the first position information of the calf part, ( , , ) represents the speed of the calf area.

[0085] The magnetometer provides azimuth information (i.e. third position information and third attitude information) by sensing the earth's magnetic field. Figure 2 The measurement model of the magnetometer in the inertial sensor 2 is expressed by the following formula:

[0086]

[0087] in, represents the observation matrix of the magnetometer, represents the rotation matrix converted by the magnetometer, represents the magnetic flux vector.

[0088] Furthermore, the Euler method is used to update the nominal state, and the following formula is used for calculation:

[0089]

[0090] in, Represents the second position information of the calf part, Represents the speed of the calf area, The quaternion representing the second posture information of the calf part, Represents the acceleration deviation of the calf area, Represents the angular velocity deviation of the calf area, Represents the acceleration measurement value of the lower leg area, Represents the angular velocity measurement of the calf area, represents the unit sampling time, represents the acceleration due to gravity, Representative based on The resulting rotation matrix.

[0091] The correction equation for ESKF is:

[0092]

[0093] in, represents the Kalman gain, represents the estimated value of the error state, represents the forecast covariance matrix, The Jacobian matrix representing the error state, represents the covariance matrix of the noise, represents the observation data (i.e., the first position information, the first posture information, the third position information, and the third posture information), represents the observation model, represents the identity matrix, .

[0094] Therefore, the position information and posture information of the calf part (i.e., the best true state estimation value) are expressed by the following formula:

[0095]

[0096] in, represents the best true state estimate, represents the updated nominal state, Represents the updated error status.

[0097] S3: Calculate and obtain gait analysis results based on the position information and posture information.

[0098] Specifically, Figure 7 , Figure 8 As shown, the array ranging sensor 1 and the inertial sensor 2 are arranged in the same housing 5, and two identical housings 5 ​​are respectively tied to the calf of the left leg and the calf of the right leg.

[0099] Establish the left leg coordinate system { O B1} and right leg coordinate system { O B2}, the greater trochanter of the leg includes the greater trochanter of the left leg and the greater trochanter of the right leg, the left leg coordinate system { O B1}Origin O B1 Located at the geometric center of the greater trochanter of the left leg, the right leg coordinate system { O B2}Origin O B2The geometric center of the greater trochanter of the right leg is located at the geometric center of the greater trochanter of the left leg, and the geometric center of the greater trochanter of the right leg is located at the upper end of the left leg. The rotation axes of the left leg and the right leg correspond to the greater trochanter of the left leg and the greater trochanter of the right leg, respectively.

[0100] Measuring body coordinate system B} Origin O B The height of the left leg is calculated separately. O B1}Origin O B1 and the right leg coordinate system { O B2}Origin O B2 To the body coordinate system {O B} Origin O B ; measure the initial distance from the calf of the left leg to the walking surface, and the initial distance from the calf of the right leg to the walking surface; respectively calculate the calf of the left leg and the calf of the right leg in the global coordinate system { O G} in the position.

[0101] According to the above measurement data and calculation data, the coordinates of the left foot and the right foot in the body coordinate system {O B} and is expressed as follows:

[0102]

[0103]

[0104] Among them, the left foot is in the body coordinate system {O B}The location information in , the right foot is in the body coordinate system {O B}The location information in , is the body coordinate system {O B} Origin O B Height, is the left leg coordinate system { O B1}Origin O B1 To the body coordinate system {O B} Origin O B The distance is the right leg coordinate system { O B2}Origin O B2 To the body coordinate system {O B} Origin O BThe distance is the initial distance from the calf of the left leg to the walking surface, is the initial distance from the calf of the right leg to the walking surface; the calf of the left leg is in the global coordinate system { O G} is located in , the lower leg of the right leg is in the global coordinate system { O G} is located in .

[0105] Further, combined with Fig. 9 , respectively, according to the left foot and right foot in the body coordinate system {O B}, identify gait events, and segment gait cycles.

[0106] The gait events include heel strike event (HS) and toe off event (TO). B} in the forward maximum position When , it represents the heel touch event (HS) corresponding to the left or right foot; the left or right foot in the body coordinate system {O B} reaches the maximum backward speed When the stance leg is pushed off, it accelerates backward, representing a toe-off event (TO) for either the left or right foot. Fig. 9 The square boxes represent heel strike events (HS), and the circles represent toe-off events (TO).

[0107] The gait cycle includes the stance phase and the swing phase. The stance phase accounts for 62% of the entire gait cycle, and the swing phase accounts for 38% of the entire gait cycle. The heel strike event (HS) represents the beginning of the stance phase, the toe-off event (TO) represents the end of the stance phase and the beginning of the swing phase, and the next heel strike event (HS) represents the end of the swing phase. The gait cycle is defined from one heel strike event (HS) to the next heel strike event (HS).

[0108] By identifying whether the left foot or the right foot is in the body coordinate system {O B} in the forward maximum position and the left or right foot in the body coordinate system {O B The maximum backward speed achieved in , the present application simplifies the detection of gait events and the segmentation of gait cycles.

[0109] Furthermore, gait parameters are calculated based on gait events and gait cycles; wherein gait parameters include walking time, step length and walking speed. Walking time is defined as the time interval between two heel touchdown events (HS) or the time interval between two toe-off events (TO); step length is defined as the longitudinal straight-line distance between two points when the heels touch the ground in sequence during walking; walking speed is the ratio of step length to walking time. Gait parameters are obtained by the following formulas:

[0110]

[0111]

[0112]

[0113] in, represents walking time, represents the step length, represents the pace, represent t The moment of heel strike (HS), represent t+1 The moment of heel strike (HS), Represents the left or right foot in the body coordinate system {O B} in the anterior-posterior (AP) direction.

[0114] Further, such as Fig.10 , Fig.11 As shown, gait events also include foot strike events (MS). Fig.10 The straight-line gait events of the left and right feet are shown, and there are five key moments in the straight-line gait events: t The moment represents the occurrence of the left heel strike event (HS-left), marking the beginning of the left foot's stance phase; t+1 The moment indicates the occurrence of the left foot touching the ground event (MS-left), marking the midpoint of the left foot's support phase, when the left foot is in a vertical state; t+2 The moment represents the occurrence of the right foot heel strike event (HS-right), marking the beginning of the stance phase of the right foot; t+3 The moment indicates the occurrence of the right foot touching the ground event (MS-right), marking the midpoint of the right foot's stance phase, when the right foot is in a vertical position; t+4 The moment represents the occurrence of the second heel strike event of the left foot (HS-left), marking the beginning of the second support phase of the left foot. Therefore, the stride generated by the two feet consists of four phases: the first phase is from t Time has come t+1At this moment, the left foot is in the initial stage of the support phase and gradually reaches a stable state; the second stage is from t+1 Time has come t+2 moment, this stage indicates that the left foot has reached a stable supporting state; the third stage is from t+2 Time has come t+3 At this moment, the right foot is in the initial stage of the support phase and gradually reaches a stable state; the fourth stage is from t+3 Time has come t+4 This stage shows that the right foot has achieved a stable supporting state.

[0115] Therefore, according to the left and right feet in the body coordinate system {O B} and the foot contact event (MS), the step width is calculated; the step width refers to the distance between the left foot contact event (MS-left) and the right foot contact event (MS-right), between the left foot and the right foot in the body coordinate system {O B The distance in the medial-lateral (ML) direction of the} is expressed by the following formula:

[0116]

[0117] in, represents the step width, Represents the left foot in the body coordinate system {O B} in the medial-lateral (ML) direction, Represents the right foot in the body coordinate system {O B} in the medial-lateral (ML) direction.

[0118] Furthermore, Fig.11 The turning gait of the left foot and the right foot is shown. At this time, the body coordinate system {O B}With respect to the global coordinate system{ O G} Rotational displacement occurs, and the step lengths of the left and right feet differ. Based on the step length and step width, the body coordinate system is calculated. O B}Origin O B The heading rotation angle is expressed by the following formula:

[0119]

[0120] in, Represents the origin O B The heading rotation angle, represents the stride length of the left foot, represents the stride length of the right foot, Represents the step width.

[0121] Furthermore, according to the heading rotation angle and step length, the body coordinate system { O B}Origin O B In the global coordinate system { O G}, expressed as follows:

[0122]

[0123] in, Represents the body coordinate system { O B}Origin O B In the global coordinate system { O G}, is the body coordinate system {O B} Origin O B height.

[0124] Further, according to the body coordinate system { O B}Origin O B In the global coordinate system { O G}, and the positions of the left and right feet in the body coordinate system {O B}, calculate the position information of the left and right feet in the global coordinate system { O G}, expressed as follows:

[0125]

[0126]

[0127]

[0128] in, Represents the left foot in the global coordinate system { O G}, Represents the right foot in the global coordinate system { O G}, Represents the left foot in the body coordinate system {O B}, Represents the right foot in the body coordinate system {O B}, Represents the body coordinate system { OB} and the global coordinate system { O G} is the rotation matrix between them.

[0129] Finally, according to the body coordinate system { O B}Origin O B , left foot, right foot in the global coordinate system { O G}, get the position as Fig.11 The body motion trajectory shown in the figure is used to obtain the gait analysis results.

[0130] like Figure 12 to Figure 14 As shown, it is a test result diagram of the indoor experiment of the gait analysis method provided by the present application. The indoor experiment detects the gait parameters and determines its accuracy by walking 10 meters. Specifically, the subject wears the array ranging sensor 1 and the inertial sensor 2 on the calf of the right leg and walks 10 meters at the average walking speed of a normal person. Figure 12 to Figure 14 The calf of the subject's right leg is shown in the body coordinate system {O B} along the anterior-posterior (AP) direction of the body, and the posture of the calf of the right leg. The step length of the right foot represents the displacement along the Y axis. In this experiment, the measurement results show that the step length is 66 cm. According to the step length, the walking time is analyzed to be 0.6 seconds and the walking speed is 1.1 m / s. It can be concluded that the gait parameters have high accuracy.

[0131] like Fig.15 , Fig.16 The figure shows the test results of an outdoor experiment of the gait analysis method provided by the present application. The outdoor experiment verifies the accuracy of the method in locating the human body by having the subject walk in a circular corridor. Specifically, the circular corridor is a flat circular path, 16 meters long and 10 meters wide, in which the subject walks in a counterclockwise direction. Fig.15 and Fig.16 The figure shows that the subject completed four turns in total during the experiment, which shows the high accuracy of the method in locating the human body.

[0132] Corresponding to the gait analysis method of the above embodiment, Figure 2 A schematic diagram of the composition of a gait analysis system provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0133] refer to Figure 2The system includes an array ranging sensor 1, an inertial sensor 2, a communication module 3 and a main control module 4; the array ranging sensor 1, the inertial sensor 2 and the communication module 3 are arranged in a shell 5, and an electric control board 6 and a power supply module 7 are arranged in the shell 5.

[0134] The inertial sensor 2 is arranged on the upper part of the electric control board 6, and is used to obtain the acceleration information, magnetic field information and angular velocity information of the calf part; the array ranging sensor 1 is arranged on the lower part of the electric control board 6, and is used to obtain the depth map of the calf part; the power supply module 7 is used to supply power to the array ranging sensor 1, the inertial sensor 2 and the communication module 3; the communication module 3 is electrically connected to the array ranging sensor 1 and the inertial sensor 2, and is used to send the detection data of the array ranging sensor 1 and the inertial sensor 2 to the main control module 4; the main control module 4 obtains the gait analysis result based on the detection data according to the above-mentioned gait analysis method.

[0135] It should be noted that since the above-mentioned gait analysis system is based on the same concept as the embodiment of the method of the present application, its specific functions, the process of each module realizing its respective functions and the technical effects brought about can be specifically referred to the description of the embodiment shown in the above-mentioned gait analysis method, and will not be repeated here.

[0136] It can be seen that the present application discloses a gait analysis method and system, which includes the steps of: obtaining a depth map, acceleration information, magnetic field information and angular velocity information of the calf; calculating the position information and posture information of the calf according to the depth map, acceleration information, magnetic field information and angular velocity information; calculating the gait analysis result according to the position information and posture information. The system includes an array ranging sensor, an inertial sensor, a communication module and a main control module; the array ranging sensor, the inertial sensor and the communication module are arranged in a shell, and an electric control board and a power supply module are arranged in the shell; the inertial sensor is used to obtain the acceleration information, magnetic field information and angular velocity information of the calf; the array ranging sensor is used to obtain the depth map of the calf; the power supply module is used to power the array ranging sensor, the inertial sensor and the communication module; the communication module is electrically connected to the array ranging sensor and the inertial sensor, and is used to send the detection data of the array ranging sensor and the inertial sensor to the main control module; the main control module obtains the gait analysis result according to the gait analysis method based on the detection data. The present application can obtain the position information and posture information of the calf part through array ranging sensors and inertial sensors, without being affected by the external optical environment; further, the position information and posture information are used to achieve precise positioning of the lower limbs, obtain gait analysis results, avoid interference of the external magnetic field environment on the inertial sensor, solve the problem of heading drift, reduce heading errors, and make the gait analysis results more accurate.

[0137] The above are merely embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structural transformations made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A gait analysis method, It is characterized in that Includes steps: Obtaining the depth map, acceleration information, magnetic field information and angular velocity information of the calf; Calculate and obtain the position information and posture information of the calf part according to the depth map, acceleration information, magnetic field information and angular velocity information; Calculate and obtain gait analysis results according to the position information and posture information; The step of calculating and obtaining the position information and posture information of the calf part includes: The thigh part and the calf part are combined into a retractable rigid rod, the rigid rod is used as the rotation axis of the greater trochanter of the leg, the geometric center of the greater trochanter of the leg is located at the upper end of the thigh part, and the gait analysis result is obtained by calculation based on the combined rigid rod; The step of calculating and obtaining the position information and posture information of the calf part further includes: Establish global coordinate system { O G }、Body coordinate system{ O B } and the calf coordinate system { O D }; The global coordinate system { O G The origin of the body coordinate system { O B The origin of the lower leg coordinate system is located at the geometric center of the central greater trochanter, and the geometric center of the central greater trochanter is located in the middle of the body. O D } has its origin located on the rigid rod; Get the lower leg part in the global coordinate system { O G }、Body coordinate system{ O B } and the calf coordinate system { O D }, calculate and obtain the gait analysis result; The step of calculating and obtaining the position information and posture information of the calf part further includes: The depth map includes a plurality of angular areas, and the width of the depth map is calculated based on the distance between two angular areas in the horizontal direction and the corresponding horizontal field of view angles, and the height of the depth map is calculated based on the distance between two angular areas in the vertical direction and the corresponding vertical field of view angles; The pitch angle of the calf part is calculated based on the distance between the two angular areas in the horizontal direction and the width of the depth map, and the roll angle of the calf part is calculated based on the distance between the two angular areas in the vertical direction and the height of the depth map; Obtaining first posture information of the calf part according to the pitch angle and the roll angle; Calculating and obtaining second posture information of the calf part according to the acceleration information and the angular velocity information; Calculating and obtaining third posture information of the calf part according to the magnetic field information; The second posture information is corrected and fused according to the first posture information and the third posture information to obtain the posture information of the calf area.

2. The gait analysis method according to claim 1, It is characterized in that The step of calculating and obtaining the position information and posture information of the calf part further includes: The depth map also includes a plurality of inner areas, and the average distance between the inner areas and the pitch angle and the roll angle are calculated to obtain the distance between the calf part and the calf coordinate system { O D }; wherein the calf part is in the calf coordinate system { O D The position in} includes the initial position and the moving position; According to the initial position and the moving position, the displacement of the calf part is calculated, and according to the displacement, the yaw angle of the calf part is calculated; The average distance between the inner areas, the pitch angle, the roll angle and the yaw angle are calculated to obtain the angle of the calf part in the global coordinate system { O G }, obtaining the first position information of the calf part; Calculate and obtain second position information of the calf part according to the acceleration information and the angular velocity information; Calculating and obtaining third position information of the calf part according to the magnetic field information; The second position information is corrected and fused according to the first position information and the third position information to obtain the position information of the calf area.

3. The gait analysis method according to claim 2, It is characterized in that The step of calculating and obtaining the position information and posture information of the calf part further includes: Use the ESKF state estimation method to define the initial error state; Calculate and update the error state using the first position information, the first posture information, the third position information and the third posture information; According to the error state, the second position information and the second posture information are corrected to obtain the position information and posture information of the calf part.

4. The gait analysis method according to claim 3, It is characterized in that The step of calculating and obtaining the gait analysis result includes: Establish the left leg coordinate system { O B1 } and right leg coordinate system { O B2 }, the leg greater trochanter includes the left leg greater trochanter and the right leg greater trochanter, the left leg coordinate system { O B1 The origin of the right leg coordinate system is located at the geometric center of the greater trochanter of the left leg. O B2 The origin of the right leg is located at the geometric center of the greater trochanter of the right leg, the geometric center of the greater trochanter of the left leg is located at the upper end of the left leg, and the geometric center of the greater trochanter of the right leg is located at the upper end of the right leg; Measuring the body coordinate system {O B }; respectively calculate and obtain the left leg coordinate system { O B1 } and the right leg coordinate system { O B2 } to the origin of the body coordinate system {O B }; measure the initial distance from the calf part of the left leg to the walking surface, and the initial distance from the calf part of the right leg to the walking surface; respectively calculate the calf part of the left leg and the calf part of the right leg in the global coordinate system { O G } in the position; According to the above measurement data and calculation data, the left foot and the right foot are respectively calculated in the body coordinate system {0 B } in the location information.

5. The gait analysis method according to claim 4, It is characterized in that The step of calculating and obtaining the gait analysis result also includes: According to the left foot and the right foot in the body coordinate system {O B }, identifying gait events and segmenting gait cycles; wherein the gait events include heel-touching events and toe-off events, and the gait cycle includes a stance phase and a swing phase; the heel-touching event represents the beginning of the stance phase, the toe-off event represents the end of the stance phase and the beginning of the swing phase, and the next heel-touching event represents the end of the swing phase; Gait parameters are calculated based on the gait events and gait cycles; the gait parameters include walking time, step length and walking speed.

6. The gait analysis method according to claim 5, It is characterized in that The step of calculating and obtaining the gait analysis result also includes: The gait event also includes a foot contact event, according to which the left foot and the right foot are in the body coordinate system {0 B } and the foot touching the ground event, and calculate the step width; According to the step length and step width, the body coordinate system { O B }The heading rotation angle of the origin; According to the heading rotation angle and the step length, the body coordinate system { O B The origin of the global coordinate system is O G } in the position; According to the body coordinate system { O B The origin of the global coordinate system is O G }, and the left foot and the right foot are in the body coordinate system {O B }, calculate the position information of the left foot and the right foot in the global coordinate system { O G } in the position; According to the body coordinate system { O B }, the origin, left foot, and right foot in the global coordinate system { O G }, obtain the body movement trajectory, and obtain the gait analysis result.

7. A gait analysis system, It is characterized in that It includes an array ranging sensor, an inertial sensor, a communication module and a main control module; the array ranging sensor, the inertial sensor and the communication module are arranged in a shell, and the shell is provided with an electric control board and a power supply module; The inertial sensor is used to obtain acceleration information, magnetic field information and angular velocity information of the calf area; the array ranging sensor is used to obtain a depth map of the calf area; the power module is used to supply power to the array ranging sensor, the inertial sensor and the communication module; the communication module is electrically connected to the array ranging sensor and the inertial sensor, and is used to send detection data of the array ranging sensor and the inertial sensor to the main control module; the main control module obtains a gait analysis result based on the detection data according to the gait analysis method according to any one of claims 1 to 6.