Implementation method for gait feature extraction and abnormal gait recognition of traditional Chinese medicine inspection diagnosis
By extracting three-dimensional gait features through the cascade depth model and OBI Zhongguang acquisition equipment, combined with the SVM classifier, it solves the difficulty and high cost of gait feature extraction in traditional Chinese medicine consultation, and achieves low-cost and efficient gait abnormality detection. identification, improving diagnostic accuracy and efficiency.
Patent Information
- Application Number
- CN202410785311.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
AI Technical Summary
Gait feature extraction in TCM consultation is difficult, costly and inefficient, making it difficult to achieve accurate diagnosis and rehabilitation monitoring of early cardiovascular and cerebrovascular diseases.
The cascaded depth model is used for three-dimensional posture estimation to extract human gait features, including step width, stride length, leg lift height difference, gait cycle, center of gravity and pelvic changes. Through feature visualization, normalization and threshold setting, combined with Austrian Compare light collection equipment and SVM classifier to realize the identification and classification of abnormal gait.
It realizes low-cost and efficient gait feature extraction and abnormal gait identification, improves the accuracy and efficiency of diagnosis, and can collect accurate three-dimensional gait features without sensors, which is suitable for the modernization and intelligence of traditional Chinese medicine consultation.
Smart Images

Figure CN118749953A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of gait feature extraction and abnormal gait recognition in traditional Chinese medicine visual diagnosis, and in particular to a method for realizing three-dimensional gait feature extraction and abnormal gait recognition in the field of traditional Chinese medicine visual diagnosis. Background Art
[0002] Traditional Chinese medicine diagnosis is based on observation of the patient's appearance, tongue, and gait to diagnose diseases. Gait analysis, as part of the diagnosis, can reveal an individual's health status, such as balance, muscle strength, and cardiovascular status. Modern gait analysis techniques, such as motion capture and plantar pressure measurement, are detailed but expensive and complex to operate, limiting their widespread application. The development of computer vision and deep learning technologies has provided new approaches for non-invasive gait analysis, making it possible to capture gait information through video, thereby simplifying the data collection process. However, the study of associating gait features with diseases still faces challenges, such as the difficulty of feature extraction, the semantic description of the association between gait and disease, and the distinction of subtle gait differences. Cardiovascular and cerebrovascular diseases, such as stroke and Parkinson's disease, have a high incidence in my country, and early diagnosis and accurate rehabilitation monitoring are crucial to the treatment effect. Gait abnormalities, such as gait instability, fatigue, small stride, and slow walking speed, may be early signs of these diseases.
[0003] In summary, how to obtain the patient's gait information through the patient's walking trajectory at low cost and high efficiency is the key to the clinical research of TCM diagnosis by observation. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method for extracting gait features and identifying abnormal gait in traditional Chinese medicine diagnosis based on visual inspection, using a cascaded deep model to perform three-dimensional posture estimation, extract human gait features, and establish an abnormal gait classification model based on multidimensional features.
[0005] The present invention adopts the following technical solutions to solve the above technical problems:
[0006] A method for extracting gait features and identifying abnormal gait in traditional Chinese medicine inspection includes the following steps:
[0007] Step 1: Combine the cascaded depth model to realize the detection of human body three-dimensional posture estimation;
[0008] Step 2, extracting the spatiotemporal parameters of the lower limb gait of the human body, including step width, stride, leg lift height difference, gait cycle, and changes in the center of gravity and pelvis;
[0009] Among them, step width refers to the shortest horizontal distance between the left and right heel contact points in a gait cycle;
[0010] Stride length is the horizontal distance the body moves from the time one heel strikes the ground to the time the same foot strikes the ground again;
[0011] The leg lift height difference refers to the vertical displacement of the knee or ankle during the process of the swinging leg descending from the highest point to the ground contact in a gait cycle.
[0012] The gait cycle refers to the complete process from one heel touching the ground to the same foot touching the ground again, which is divided into the stance phase and the swing phase.
[0013] Center of gravity change refers to the vertical and horizontal movement of the center of gravity of the human body during a gait cycle.
[0014] Changes in the pelvis include tilt, rotation, and lateral movement of the pelvis during a gait cycle;
[0015] Step 3, calculate the lower limb joint angles through three-dimensional key points, including left and right hip joint flexion and extension angles, internal and external rotation angles, adduction and abduction angles, left and right knee joint flexion angles, and the angle between the two limbs; use the basic axes and basic planes of the human body to locate and orient the human body in space, that is, the sagittal axis is the direction of human body forward;
[0016] Step 4: Select features through feature visualization. If the feature changes are not obvious during walking and there is no obvious difference compared with the normal person data, the feature will be eliminated in this way.
[0017] Step 5: feature normalization. Since the three-dimensional gait features are represented as time series of different lengths, the maximum value normalization is used to map the sequence to between 0 and 1.
[0018]
[0019] Among them, x is the original data, x min is the minimum value of the data, x max is the maximum value of the data, x scale is the normalized data;
[0020] Step 6, setting the characteristic threshold interval, according to the theory of traditional Chinese medicine and the three-dimensional space coordinate parameters, combined with the statistical distribution of the gait parameters of the normal population, determining the normal range threshold of each gait characteristic parameter; for each characteristic parameter, setting the upper and lower thresholds to distinguish between normal gait and abnormal gait;
[0021] Step 7, calculate the corresponding normalized threshold value according to the original threshold range; for each feature, determine the normalized threshold value of the normal range and the abnormal range; send the obtained gait features to the classifier for training, and obtain the classification results to realize the recognition and classification of different gaits.
[0022] As a further preferred embodiment of the method for implementing three-dimensional gait feature extraction and abnormal gait assessment of the present invention, the specific process of step 1 is as follows: combining with the Obi light acquisition device to realize the three-dimensional posture estimation of the human body; converting the acquired color video into video frames and inputting them into the cascaded deep model network, the first stage obtains the human body heat map through the heat map regression model, and each heat map shows the probability distribution of the possible position of the key point in the input image; the output of the first stage is used as the input of the second stage, and the human body heat map is input into the three-dimensional posture regression model to predict the depth information of the two-dimensional key points in the three-dimensional space to obtain the three-dimensional coordinates of 17 human body key points including the head, neck, chest, spine, hip, left hip joint, right hip joint, left knee joint, right knee joint, left ankle, and right ankle.
[0023] As a further preferred solution of the method for implementing three-dimensional gait feature extraction and abnormal gait assessment of the present invention, the specific process of step 2 is as follows:
[0024] After obtaining relatively accurate coordinates of the three-dimensional human skeleton key points, the coordinates of 17 skeleton key points are extracted; the feature calculation formula is as follows:
[0025] (1) Step width calculation: The step width refers to the lateral distance between the two feet landing points. The step width is calculated by comparing the lateral (x-axis) distance between the two ankle key points at the same time. The absolute value is taken to determine the change in the value. The specific calculation is as follows:
[0026] S1=|(x 右脚 -x 左脚 )|;
[0027] (2) Stride calculation: Stride refers to the distance between one foot landing and the other foot landing again, usually referring to the distance in the forward direction. The stride is obtained by calculating the front-to-back position difference between the two relative foot landing points. The specific calculation is as follows:
[0028] S2=(z 右脚 -z 左脚 );
[0029] (3) Calculation of the height difference between the two feet: The height difference between the two feet refers to the vertical height difference between the two feet during the gait cycle. The height difference value during the gait cycle is obtained by calculating the vertical coordinates (z-axis) of the key points of the two ankles. The specific calculation is as follows:
[0030] ΔH=(y 右脚 -y 左脚 );
[0031] (5) Pelvic movement changes: By calculating the abnormal movements caused by excessive left and right tilt of the pelvis during walking, we can determine whether there is an abnormal gait. By performing triangular plane positioning monitoring through the three key points of Hip, Rhip, and Lip, and calculating the angles between this plane and the sagittal and coronal planes, we can determine whether there is an abnormal gait movement of pelvic anterior tilt and excessive tilt during walking. The specific calculation formula is:
[0032] Determine the coordinates: P1(x1,y1,z1), P2(x2,y2,z2), and P3(x3,y3,z3);
[0033] Determine the vector: and
[0034] Determine the vector cross product:
[0035] Determine the cross integral quantity: n x =v y ·u z -v z ·u y , n y =v z ·u x -v x ·u z , n z =v x ·u y -v y ·u x ;
[0036] Determine the plane: n x ·x+n y y+n z z+D=0; where D is a constant of the plane equation, which can be determined and calculated by the specific coordinate values;
[0037] Calculate the angle between planes: Calculate the angle according to the plane angle theorem. Suppose plane 1 is A1x+B1y+C1z+D1=0, plane 2 is A2x+B2y+C2z+D2=0, and for plane P1, the normal vector n1 is (A1, B1, C1);
[0038] For plane P2, the normal vector n2 is (A2, B2, C2); the angle θ between the two normal vectors is calculated using the dot product of vectors and the concept of vector length; the dot product of the two normal vectors is: n1·n2=A1A2+B1B2+C1C2, and the lengths (modulus) of the normal vectors n1 and n2 are:
[0039] The cosine of the angle θ between the two normal vectors is:
[0040] Substituting the expressions for the dot product and the modulus, we obtain:
[0041] Calculate the error angle θ using the arccosine function:
[0042] The resulting angle θ will be in radians. If the angle value is needed, it can be converted from radians to degrees using the following conversion relationship:
[0043] (6) Movement of the center of gravity: During walking, the center of gravity moves forward and also moves up, down, left, and right in a small range. The movement of the center of gravity can be monitored by counting the changes in the key points of the hip.
[0044] As a further preferred solution of the method for implementing three-dimensional gait feature extraction and abnormal gait assessment of the present invention, the specific process of step 3 is as follows:
[0045] Calculate the body's basic axes:
[0046] The frontal axis of the human body is the coronal axis, which is in the left-right direction and parallel to the horizontal plane. It is represented by the vector from the right shoulder to the left shoulder or the vector from the right hip to the left hip:
[0047]
[0048] The vertical axis of the human body is from top to bottom, and is represented by the vector from the neck to the spine or the midpoint of the line between the two shoulders to the midpoint of the line between the two hips:
[0049]
[0050] The sagittal axis, frontal axis and vertical axis of the human body are perpendicular to each other. The cross product operation is performed on the frontal axis and the vertical axis of the human body and normalized to ensure accuracy:
[0051]
[0052] Calculate the human body fundamentals:
[0053] The plane equations of the basic sections of the human body can be determined from the basic axes of the human body; The components are (a1, a2, a3) and (b1, b2, b3). The calculation process is as follows:
[0054] Human body horizontal plane:
[0055] Human sagittal plane:
[0056] The coronal plane of the human body is the frontal plane: Calculate the angle of the human lower limb joints:
[0057] Define the bone vector from the hip joint to the knee joint as The bone vector from the knee to the ankle is
[0058]
[0059] Defining vectors The mapping on the sagittal plane of the human body is vector The mapping on the sagittal plane of the human body is
[0060]
[0061] Hip flexion and extension angle: The angle between the projection on the sagittal plane of the human body and the vertical axis of the human body:
[0062]
[0063] Hip adduction and abduction angle: The angle between the projection on the frontal plane and the vertical axis of the human body:
[0064]
[0065] Hip internal and external rotation angle: and the vertical axis of the human body are respectively Angle between vertical plane projections:
[0066]
[0067] Knee flexion angle: and The angle between:
[0068]
[0069] As a further preferred embodiment of the method for implementing a three-dimensional gait feature extraction and abnormal gait assessment of the present invention, in step 7, a SVM classifier based on a one-to-one principle is used, and the SVM classifier uses an RBF kernel function, which is expressed as:
[0070]
[0071] Where x and x' are input sample vectors, ||xx′|| 2 represents the Euclidean distance, and σ is a parameter that controls the attenuation speed of the RBF kernel function. After the trained nonlinear SVM is obtained, the gait parameters collected by the human body following the walking-assisting rehabilitation robot are input into the network to realize accurate recognition and classification of gait.
[0072] Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects:
[0073] 1. The present invention relates to a method for extracting gait features in TCM visual diagnosis based on deep learning, aiming to solve the problems of strong subjectivity, low efficiency and difficulty in quantification in gait feature extraction during traditional TCM visual diagnosis. The technical solution constructs a three-dimensional posture estimation model and uses the collaborative work of convolutional neural networks (CNN) and recurrent neural networks (RNN) to conduct in-depth analysis of the patient's gait video and automatically extract key gait features. The system includes three modules: data acquisition, feature extraction and classification, which can assist doctors in making more accurate diagnoses. The main purpose of the present invention is to assist TCM doctors in objectively analyzing gait features during visual diagnosis and improve the accuracy and efficiency of diagnosis. A large number of experiments have verified that this method has significant advantages in the accuracy and robustness of gait feature extraction, and provides a new way to modernize and intelligentize TCM visual diagnosis.
[0074] 2. The gait feature extraction method of the present invention has the characteristics of simple equipment and simple implementation. It does not require the subjects to wear sensors. Using a monocular acquisition device, it can collect relatively accurate human key points and three-dimensional gait features of the lower limbs, realize abnormal gait recognition, and has guiding significance for gait recognition and evaluation of the elderly and patients with gait disorders. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0076] Figure 1 This is a schematic diagram of the data collection scenario;
[0077] Figure 2 Schematic diagram of 17 marker points for 3D pose estimation;
[0078] Figure 3 Schematic diagram of the subject's stride length and step width;
[0079] Figure 4 This is a schematic diagram of the range of up and down movement of the subject's center of gravity when walking;
[0080] Figure 5 Schematic diagram of the range of movement of the subject's pelvis when walking;
[0081] Figure 6 It is a schematic diagram of the basic axes and planes of the human body;
[0082] Figure 7 This is a schematic diagram for calculating the three degrees of freedom angles of the human hip joint;
[0083] Figure 8 This is a schematic diagram for calculating one degree of freedom angle of the human knee joint;
[0084] Fig. 9 It is a structural block diagram of a specific implementation mode of the present invention. DETAILED DESCRIPTION
[0085] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings:
[0086] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The present invention is described in detail below based on the drawings and preferred embodiments, and the purpose and effect of the present invention will become clearer. It should be understood that the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.
[0087] A method for extracting three-dimensional gait features and evaluating abnormal gait comprises the following steps:
[0088] Step 1) Combined with the Obi Zhongguang acquisition equipment to realize the three-dimensional posture estimation of the human body; the collected color video is converted into video frames and input into the cascaded deep model network. The first stage obtains the human body heat map through the heat map regression model. Each heat map shows the probability distribution of the possible position of the key point in the input image. The output of the first stage is used as the input of the second stage. The human body heat map is input into the three-dimensional posture regression model to predict the depth information of the two-dimensional key points in the three-dimensional space to obtain the three-dimensional coordinates of 17 human body key points including the head, neck, chest, spine, hip, left hip joint, right hip joint, left knee joint, right knee joint, left ankle, and right ankle;
[0089] Step 2) Extract the spatiotemporal parameters of the lower limb gait of the human body, including step width, stride, leg lift height difference, gait cycle, and changes in the center of gravity and pelvis, where step width refers to the shortest horizontal distance between the left and right heel touchdown points in a gait cycle. Stride refers to the horizontal distance the body moves forward from one heel touching the ground to the same foot touching the ground again. Leg lift height difference refers to the vertical displacement of the knee joint or ankle during the process of the swinging leg descending from the highest point to the ground touching in a gait cycle. The gait cycle refers to the complete process from one heel touching the ground to the same foot touching the ground again, which can be divided into the stance phase and the swing phase. The change of the center of gravity refers to the movement of the center of gravity of the human body in the vertical and horizontal directions in a gait cycle. Changes in the pelvis include tilt, rotation and lateral movement of the pelvis in a gait cycle;
[0090] Step 3) Calculate the lower limb joint angles through three-dimensional key points, including left and right hip joint flexion and extension angles, internal and external rotation angles, adduction and abduction angles, left and right knee joint flexion angles, and the angle between the two limbs; use the basic axes and basic planes of the human body to locate and orient the human body in space, that is, the sagittal axis is the direction of human body forward;
[0091] Step 4) Feature selection is performed through feature visualization. If the feature changes are not obvious during walking and there is no obvious difference compared with the normal person data, the feature is eliminated in this way.
[0092] Step 5) feature normalization: since the three-dimensional gait features are represented as time series of different lengths, the maximum value normalization is used to map the sequence to between 0 and 1;
[0093]
[0094] Among them, x is the original data, x min is the minimum value of the data, x max is the maximum value of the data, x scale is the normalized data.
[0095] Step 6) Set the characteristic threshold interval, and determine the normal range threshold of each gait characteristic parameter based on the theory of traditional Chinese medicine and the three-dimensional space coordinate parameters, combined with the statistical distribution of the gait parameters of the normal population. For each characteristic parameter, set the upper and lower thresholds to distinguish between normal gait and abnormal gait.
[0096] Step 7) Calculate the corresponding normalized threshold value based on the original threshold interval. For each feature, determine the normalized threshold value of the normal range and the abnormal range. Send the obtained gait features into the classifier for training, and obtain the classification results to realize the recognition and classification of different gaits.
[0097] 2. The method for extracting three-dimensional gait features and evaluating abnormal gait according to claim 1, wherein the specific process of step 2) is as follows:
[0098] After obtaining relatively accurate coordinates of the key points of the 3D human skeleton, the coordinates of 17 key points of the skeleton are extracted. The feature calculation formula is as follows:
[0099] (1) Step width calculation: Step width refers to the lateral distance between the two feet landing points. The step width is calculated by comparing the lateral (x-axis) distance between the two ankle key points at the same time. Since the positive and negative values of the step width have no reference significance for determining the direction of travel, the absolute value is taken here and only the change in its value is judged.
[0100] S1=|(x 右脚 -x 左脚 )|;
[0101] (2) Stride calculation: Stride refers to the distance between one foot landing and the other foot landing again, usually in the forward direction. The stride can be calculated by calculating the difference between the front and rear positions of the two relative foot landing points.
[0102] S2=(z 右脚 -z 左脚 );
[0103] (3) Calculation of the height difference between the two feet: The height difference between the two feet refers to the vertical height difference between the two feet during the gait cycle. By calculating the vertical coordinates (z-axis) of the key points of the two ankles, the height difference value during the gait cycle can be obtained.
[0104] ΔH=(y 右脚 -y 左脚 );
[0105] (5) Pelvic movement changes: By calculating the abnormal movements caused by excessive left and right tilt of the pelvis during walking, we can determine whether there is an abnormal gait. The three key points of Hip, Rhip, and Lip are used for triangular plane positioning monitoring. By calculating the angles between this plane and the sagittal and coronal planes, we can determine whether there is an abnormal gait movement of pelvic anterior tilt and excessive tilt during walking. The specific calculation formula is:
[0106] Determine the coordinates: P1(x1,y1,z1), P2(x2,y2,z2), and P3(x3,y3,z3);
[0107] Determine the vector: and
[0108] Determine the vector cross product:
[0109] Determine the cross integral quantity: nx =v y ·u z -v z ·u y , n y =v z ·u x -v x ·u z , n z =v x ·u y -v y ·u x
[0110] Determine the plane: n x ·x+n y y+n z z+D=0 (D is the constant of the plane equation, which can be determined and calculated by the specific coordinate values)
[0111] Calculate the angle between planes: Calculate the angle according to the plane angle theorem. Assume that plane 1 is A1x+B1y+C1z+D1=0, and plane 2 is A2x+B2y+C2z+D2=0. For plane P1, the normal vector n1 is (A1, B1, C1). For plane P2, the normal vector n2 is (A2, B2, C2). Use the dot product of vectors and the concept of vector length to calculate the angle θ between the two normal vectors. The dot product of the two normal vectors is: n1·n2=A1A2+B1B2+C1C2. The lengths (modulus) of the normal vectors n1 and n2 are:
[0112] The cosine of the angle θ between the two normal vectors is:
[0113] Substituting the expressions for the dot product and the modulus, we obtain:
[0114] Finally, the error angle θ is calculated by the arccosine function:
[0115] The resulting angle θ will be in radians. If the angle value is needed, it can be converted from radians to degrees using the following conversion relationship:
[0116] (6) Movement of the center of gravity: During walking, the center of gravity moves forward and also moves up, down, left, and right in a small range. The movement of the center of gravity can be monitored by counting the changes in the key points of the hip.
[0117] The specific process of step 3) is as follows:
[0118] First calculate the basic axis of the human body:
[0119] The frontal axis (coronal axis) of the human body is in the left-right direction and is parallel to the horizontal plane. It can be represented by the vector from the right shoulder to the left shoulder or the vector from the right hip to the left hip.
[0120]
[0121] The vertical axis of the human body is in a top-down direction and can be represented by a vector from the neck to the spine or from the midpoint of the line between the two shoulders to the midpoint of the line between the two hips.
[0122]
[0123] The sagittal axis, the frontal axis and the vertical axis of the human body are perpendicular to each other. The cross product operation is performed on the frontal axis and the vertical axis of the human body and normalized (unitized) to ensure accuracy.
[0124]
[0125] Calculate the human body fundamentals:
[0126] The plane equations of the basic sections of the human body can be determined from the basic axes of the human body. The components of are (a1, a2, a3) and (b1, b2, b3). The calculation process is as follows:
[0127] Human body horizontal plane:
[0128] Human sagittal plane:
[0129] Human coronal plane (frontal plane): Calculate the angle of the human lower limb joints:
[0130] Define the bone vector from the hip joint to the knee joint as The bone vector from the knee to the ankle is
[0131]
[0132] Defining vectors The mapping on the sagittal plane of the human body is vector The mapping on the sagittal plane of the human body is
[0133]
[0134] Hip flexion and extension angle: The angle between the projection on the sagittal plane of the human body and the vertical axis of the human body.
[0135]
[0136] Hip adduction and abduction angle: The angle between the projection on the frontal plane and the vertical axis of the human body.
[0137]
[0138] Hip internal and external rotation angle: and the vertical axis of the human body are respectively The angle between vertical plane projections.
[0139]
[0140] Knee flexion angle: and The angle between.
[0141]
[0142] 4. The method for extracting three-dimensional gait features and evaluating abnormal gait according to claim 1, characterized in that in step 7), a SVM classifier based on a one-to-one principle is used, and the SVM classifier uses an RBF kernel function, which is expressed as:
[0143]
[0144] where x and x' are input sample vectors, ||xx′|| 2 represents the Euclidean distance, and σ is a parameter that controls the decay speed of the RBF kernel function. After the trained nonlinear SVM is obtained, the gait parameters collected by the human body following the walking rehabilitation robot are input into the network to realize accurate recognition and classification of gait.
[0145] In order to make the technical problems, solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific examples.
[0146] The present invention provides a method for extracting three-dimensional gait features and evaluating abnormal gait. The method flow is as follows: Figure 1 shown.
[0147] The camera is set to a standardized distance (5m) from the test object to separate the subject from other people. Based on the principle that the subject always walks towards the acquisition device and is closest to the center of the picture, this study proposes a center point positioning method based on the YOLOv5 target detection model. The center position of the picture is located by the diagonal line of the picture and marked as O. Similarly, the center positions of all detected human targets are marked as p1, p2, p3...p n (Assuming n targets are detected), calculate the center p of all detected targets in the picture nThe distance from the center point O can well separate the subject from other detected people.
[0148] Step 1: Collect RGB data of subjects through clinical trials.
[0149] In this example, 75 normal people and 75 cardiovascular and cerebrovascular patients were collected. The 3D key points were obtained by performing 3D posture estimation on the separated single person. The marker points and the corresponding 3D key points are shown in Table 1.
[0150] Table 1
[0151] Marking Points 3D Key Points Marking Points Bone Node Marking Points Bone Node Marking Points Bone Node 0 Hip 4 Lhip 8 Thorax 12 Lelbow 1 Rhip 5 Lknee 9 Neck 13 Lwrist 2 Lhip 6 Lfoot 10 Head 14 Rshoulder 3 Rfoot 7 Spine 11 Lshoulder 15 Relbow 16 Rwrist
[0152] Step 2: Extract gait features
[0153] This example extracts stride length and stride speed as the spatiotemporal features of gait.
[0154] The extraction algorithm of gait spatiotemporal features from walking trajectory data can be summarized into the following steps:
[0155] (1) Preprocessing the acquired three-dimensional key point coordinate data of the human body to remove the gross errors of the coordinates of the marking points;
[0156] (2) Calculate the center positions of the left ankle (marker point 6) and the right ankle (marker point 3) to obtain stride length, step width, and foot lift height;
[0157] (3) Use the basic axes, basic planes, and three-dimensional key points of the human body, hips, and knees, to calculate the angles of the left and right hip joints, knee joints, and the angles between the two limbs.
[0158] Those skilled in the art can understand that the above are only preferred examples of the invention and are not intended to limit the invention. Although the invention is described in detail with reference to the above examples, those skilled in the art can still modify the technical solutions recorded in the above examples or replace some of the technical features with equivalents. Any modification, equivalent replacement, etc. made within the spirit and principle of the invention should be included in the protection scope of the invention. All technical features in this embodiment can be freely combined according to actual needs.
[0159] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for extracting gait features and identifying abnormal gait based on TCM visual diagnosis, characterized in that: The specific steps include: Step 1: Combine the cascaded depth model to realize the detection of human body three-dimensional posture estimation; Step 2, extracting the spatiotemporal parameters of the lower limb gait of the human body, including step width, stride, leg lift height difference, gait cycle, and changes in the center of gravity and pelvis; Among them, step width refers to the shortest horizontal distance between the left and right heel contact points in a gait cycle; Stride length is the horizontal distance the body moves from the time one heel strikes the ground to the time the same foot strikes the ground again; The leg lift height difference refers to the vertical displacement of the knee or ankle during the process of the swinging leg descending from the highest point to the ground contact in a gait cycle. The gait cycle refers to the complete process from one heel touching the ground to the same foot touching the ground again, which is divided into the stance phase and the swing phase. Center of gravity change refers to the vertical and horizontal movement of the center of gravity of the human body during a gait cycle. Changes in the pelvis include tilt, rotation, and lateral movement of the pelvis during a gait cycle; Step 3, calculate the lower limb joint angles through three-dimensional key points, including left and right hip joint flexion and extension angles, internal and external rotation angles, adduction and abduction angles, left and right knee joint flexion angles, and the angle between the two limbs; use the basic axes and basic planes of the human body to locate and orient the human body in space, that is, the sagittal axis is the direction of human body forward; Step 4: Select features through feature visualization. If the feature changes are not obvious during walking and there is no obvious difference compared with the normal person data, the feature will be eliminated in this way. Step 5: feature normalization. Since the three-dimensional gait features are represented as time series of different lengths, the maximum value normalization is used to map the sequence to between 0 and 1. Among them, x is the original data, x min is the minimum value of the data, x max is the maximum value of the data, x scale is the normalized data; Step 6, setting the characteristic threshold interval, according to the theory of traditional Chinese medicine and the three-dimensional space coordinate parameters, combined with the statistical distribution of the gait parameters of the normal population, determining the normal range threshold of each gait characteristic parameter; for each characteristic parameter, setting the upper and lower thresholds to distinguish between normal gait and abnormal gait; Step 7, calculate the corresponding normalized threshold value according to the original threshold range; for each feature, determine the normalized threshold value of the normal range and the abnormal range; send the obtained gait features to the classifier for training, and obtain the classification results to realize the recognition and classification of different gaits.
2. The method for extracting three-dimensional gait features and evaluating abnormal gait according to claim 1, characterized in that: The specific process of step 1 is as follows: the three-dimensional posture estimation of the human body is realized by combining the Obi Zhongguang acquisition device; the collected color video is converted into video frames and input into the cascaded deep model network. In the first stage, the human body heat map is obtained through the heat map regression model, and each heat map shows the probability distribution of the possible position of the key point in the input image; The output of the first stage is used as the input of the second stage. The human body heat map is input into the 3D posture regression model to predict the depth information of the 2D key points in the 3D space to obtain the 3D coordinates of 17 human body key points including the head, neck, chest, spine, hip, left hip joint, right hip joint, left knee joint, right knee joint, left ankle, and right ankle.
3. The method for extracting three-dimensional gait features and evaluating abnormal gait according to claim 1, characterized in that: The specific process of step 2 is as follows: After obtaining relatively accurate coordinates of the three-dimensional human skeleton key points, the coordinates of 17 skeleton key points are extracted; the feature calculation formula is as follows: (1) Step width calculation: The step width refers to the lateral distance between the two feet landing points. The step width is calculated by comparing the lateral (x-axis) distance between the two ankle key points at the same time. The absolute value is taken to determine the change in the value. The specific calculation is as follows: S1=|(x 右脚 -x 左脚 )|; (2) Stride calculation: Stride refers to the distance between one foot landing and the other foot landing again, usually referring to the distance in the forward direction. The stride is obtained by calculating the front-to-back position difference between the two relative foot landing points. The specific calculation is as follows: S2=(from 右脚 -With 左脚 ); (3) Calculation of the height difference between the two feet: The height difference between the two feet refers to the vertical height difference between the two feet during the gait cycle. The height difference value during the gait cycle is obtained by calculating the vertical coordinates (z-axis) of the key points of the two ankles. The specific calculation is as follows: ΔH=(y 右脚 -y 左脚 ); (5) Pelvic movement changes: By calculating the abnormal movements caused by excessive left and right tilt of the pelvis during walking, we can determine whether there is an abnormal gait. By performing triangular plane positioning monitoring through the three key points of Hip, Rhip, and Lip, and calculating the angles between this plane and the sagittal and coronal planes, we can determine whether there is an abnormal gait movement of pelvic anterior tilt and excessive tilt during walking. The specific calculation formula is: Determine the coordinates: P1(x1,y1,z1), P2(x2,y2,z2), and P3(x3,y3,z3); Determine the vector: and Determine the vector cross product: Determine the cross integral quantity: n x =v y ·u z -v z ·u y , n y =v z ·u x -v x ·u z , n z =v x ·u y -v y ·u x ; Determine the plane: n x ·x+n y y+n z z+D=0; where D is a constant of the plane equation, which can be determined and calculated by the specific coordinate values; Calculate the angle between planes: Calculate the angle according to the plane angle theorem. Suppose plane 1 is A1x+B1y+C1z+D1=0, plane 2 is A2x+B2y+C2z+D2=0, and for plane P1, the normal vector n1 is (A1, B1, C1); For plane P2, the normal vector n2 is (A2, B2, C2); the angle θ between the two normal vectors is calculated using the dot product of vectors and the concept of vector length; the dot product of the two normal vectors is: n1·n2=A1A2+B1B2+C1C2, and the lengths (modulus) of the normal vectors n1 and n2 are: The cosine of the angle θ between the two normal vectors is: Substituting the expressions for the dot product and the modulus, we obtain: Calculate the error angle θ using the arccosine function: The resulting angle θ will be in radians. If the angle value is needed, it can be converted from radians to degrees using the following conversion relationship: (6) Movement of the center of gravity: During walking, the center of gravity moves forward and also moves up, down, left, and right in a small range. The movement of the center of gravity can be monitored by counting the changes in the key points of the hip.
4. The method for extracting three-dimensional gait features and evaluating abnormal gait according to claim 1, characterized in that: The specific process of step 3 is as follows: Calculate the body's basic axes: The frontal axis of the human body is the coronal axis, which is in the left-right direction and parallel to the horizontal plane. It is represented by the vector from the right shoulder to the left shoulder or the vector from the right hip to the left hip: The vertical axis of the human body is from top to bottom, and is represented by the vector from the neck to the spine or the midpoint of the line between the two shoulders to the midpoint of the line between the two hips: The sagittal axis, frontal axis and vertical axis of the human body are perpendicular to each other. The cross product operation is performed on the frontal axis and the vertical axis of the human body and normalized to ensure accuracy: Calculate the human body fundamentals: The plane equations of the basic sections of the human body can be determined from the basic axes of the human body; The components are (a1, a2, a3) and (b1, b2, b3). The calculation process is as follows: Human body horizontal plane: Human sagittal plane: The coronal plane of the human body is the frontal plane: Calculate the angle of the human lower limb joints: Define the bone vector from the hip joint to the knee joint as The bone vector from the knee to the ankle is Defining vectors The mapping on the sagittal plane of the human body is vector The mapping on the sagittal plane of the human body is Hip flexion and extension angle: The angle between the projection on the sagittal plane of the human body and the vertical axis of the human body: Hip adduction and abduction angle: The angle between the projection on the frontal plane and the vertical axis of the human body: Hip internal and external rotation angle: and the vertical axis of the human body are respectively Angle between vertical plane projections: Knee flexion angle: and The angle between:
5. The method for extracting three-dimensional gait features and evaluating abnormal gait according to claim 1, characterized in that: In step 7, a SVM classifier based on the one-to-one principle is used. The SVM classifier uses the RBF kernel function, which is expressed as: Where x and x' are input sample vectors, ||xx′|| 2 represents the Euclidean distance, and σ is a parameter that controls the attenuation speed of the RBF kernel function. After the trained nonlinear SVM is obtained, the gait parameters collected by the human body following the walking-assisting rehabilitation robot are input into the network to realize accurate recognition and classification of gait.
Citation Information
Cited By
Abnormal gait detection method and system based on machine learning decision classification
CN118948262A
Sitting posture human spine stability evaluation method in vibration environment and related equipment
CN119453927A
Method for evaluating spinal stability of a seated human body in a vibrating environment, and related device
CN119453927B
Gait analysis and anomaly detection system and method for intelligent wearable device
CN119791650A
Real-time monitoring system for physical exercise of teenagers
CN120356673A
