A design method of gait recognition system based on single-node sensor

By combining a nine-axis inertial sensor and an air pressure sensor in a single-node gait recognition system, and using edge computing technology, the problems of low recognition rate and poor portability of the existing system are solved, and high-precision, low-cost gait recognition and Display effects in real time.

CN114964225BActive Publication Date: 2024-09-20YANSHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210460125.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-28
Publication Date
2024-09-20
Estimated Expiration
2042-04-28

AI Technical Summary

Technical Problem

The existing single-node gait recognition system has low recognition rate, poor portability, requires an external computer for data processing, and cannot display the recognition results in real time.

Method used

Design a gait recognition system based on a single node sensor, combined with a nine-axis inertial sensor and air pressure sensor, using edge computing technology, through the data collection module and data processing analysis module for data collection and real-time processing, and using a variety of machine learning classifiers Perform feature extraction and dimensionality reduction to achieve gait recognition and real-time display.

Benefits of technology

It achieves gait recognition with high recognition accuracy, with a recognition rate of more than 98%. The average errors in step length and step height calculations are 0.86% and 1.1% respectively. The system is portable, low-cost, and can display recognition results in real time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114964225B
    Figure CN114964225B
Patent Text Reader

Abstract

The present invention discloses a design method of a gait recognition system based on a single-node sensor, comprising the following steps: step S101, constructing a data acquisition module and a data processing and analysis module; step S102, making the data acquisition module into a foot ring and wearing it on the ankle of a tester to collect human motion data; step S103, transmitting the human motion data collected in step S102 to the data processing and analysis module through a wireless device for data analysis and processing, obtaining data on gait time domain characteristics, step length, step height and steering angle, and making a data set; step S104, using a variety of machine learning classifiers to perform model training to perform feature dimension reduction; step S105, after completing steps S102 to S104 on a computer, using Keil software to write the algorithm process of steps S102 to S104 into a microcontroller in C language to complete embedded development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of human motion recognition, and in particular to a design method of a gait recognition system based on a single-node sensor. Background Art

[0002] Human motion analysis and recognition based on inertial sensors is an emerging field of pattern recognition. It overcomes many shortcomings and limitations of traditional video motion recognition methods and has higher operability and practicality. Its essence is to collect vibration, magnetic field, angle and other signals that can represent human motion information through inertial sensors fixed on specific parts of the human body, and transmit them to the PC through a wireless transmission module, where the data is preprocessed, feature extracted and selected, and motion classified and recognized. Inertial sensors include accelerometers, magnetometers, gyroscopes, etc. They are integrated together as a single node, and the nodes form a wireless sensor network through wireless communication modules to form a motion capture system to capture human motion information.

[0003] Due to the complexity of human movements, there is currently no device that can accurately identify all movements, but the research on gait based on sensor nodes has been relatively in-depth. The multi-node motion capture system has a high recognition rate but is not easy to wear and requires a large amount of data to be processed. The single-node motion capture system is highly portable but has a low recognition rate. However, whether it is a single-node system or a multi-node system, its work content is only to collect data and upload it to the computer. It needs to rely on the computer for processing, analysis and recognition, and cannot display the recognition results in real time. Therefore, if a single-node system with high gait recognition rate, high gait data calculation accuracy, real-time display results, and easy to wear can be designed, it can greatly reduce the equipment cost and operation difficulty and improve efficiency. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a design method for a gait recognition system based on a single-node sensor. Under the premise of meeting the requirements of wearing and comfort, a nine-axis inertial sensor and an air pressure sensor are integrated to improve the recognition accuracy. At the same time, the edge computing technology is adopted so that the system does not require any external computer participation, and the recognition results and motion parameters can be displayed in real time.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: a gait recognition system design method based on a single-node sensor, comprising the following steps:

[0006] Step S101, constructing a data acquisition module and a data processing and analysis module: the data acquisition module includes a power module, a microcontroller, a nine-axis inertial sensor, an air pressure sensor and a wireless radio frequency module; the data processing and analysis module includes a wireless module and a microcontroller;

[0007] Step S102, the data acquisition module is made into a foot ring and worn on the ankle of the tester to collect human motion data, the collected human motion data includes acceleration, angular velocity, attitude angle and air pressure value generated by the four actions of walking, turning, climbing stairs and descending stairs of the tester, the X axis of the nine-axis inertial sensor corresponds to the forward direction of the human body, the Y axis is perpendicular to the ground and downward, and the Z axis points to the right direction of the human body;

[0008] Step S103, transmitting the human motion data collected in step S102 to a data processing and analysis module through a wireless device for data analysis and processing, obtaining data on gait time domain characteristics, step length, step height and turning angle, and making a data set;

[0009] Step S104, using a variety of machine learning classifiers to train the model and perform feature dimensionality reduction, the feature dimensionality reduction is to find the feature vectors with a contribution of more than 90%, and remove the irrelevant feature vectors. The features selected after feature dimensionality reduction are: the minimum value of the z-axis angular velocity and the height change calculated by the barometer;

[0010] Step S105: After completing steps S102 to S4 on the computer, use Keil software to write the algorithm process of steps S102 to S4 into a C language program and write it into a microcontroller to complete the embedded development.

[0011] A further improvement of the technical solution of the present invention is that the data analysis process in step S103 includes data preprocessing, gait cutting and time domain feature calculation.

[0012] A further improvement of the technical solution of the present invention is that the data preprocessing includes coordinate system conversion and noise reduction processing. The coordinate system conversion is to unify the acceleration in the human motion data collected by the nine-axis inertial sensor in step S102 under the earth coordinate system using the attitude angle coordinate system conversion matrix. The noise reduction processing includes removing outliers and filtering and denoising. The Laida criterion is used to eliminate outliers, and the extended Kalman filter is used to filter the noise caused by irregular tremor during movement.

[0013] A further improvement of the technical solution of the present invention is that the attitude angle coordinate system conversion matrix processing process is as follows:

[0014] Rotation matrix for rotation around the Y axis The angle ψ is the heading angle yaw in the attitude angle;

[0015] Rotation matrix for rotation around the Z axis Angle θ is the pitch angle in the attitude angle;

[0016] Rotation matrix for rotation around the X axis angle is the roll angle in the attitude angle;

[0017] Rotate in the order of YZX to get the rotation matrix

[0018]

[0019] The coordinate transformation equation is in, is the three-axis acceleration in the earth coordinate system, It is the three-axis acceleration in the nine-axis inertial sensor coordinate system.

[0020] Therefore, the conversion equation of the three-axis acceleration in the nine-axis inertial sensor coordinate system to the three-axis acceleration in the earth coordinate system is:

[0021]

[0022] The further improvement of the technical solution of the present invention is that after obtaining the three-axis acceleration in the earth coordinate system, the stance phase and the swing phase of the gait movement are determined by establishing multiple thresholds for the constraints of the three-axis acceleration and angular velocity, zero-speed correction is performed and the heading angle variance is calculated before entering the swing phase, a threshold for the heading angle variance is set to determine whether a turning action has been entered, if the variance is greater than the set threshold, it is determined that a turning action has been entered and the heading angle at this time is recorded, and data is continuously received until the variance regression threshold is reached, the turning action is determined to be completed and the heading angle at this time is recorded, and the steering angle is calculated based on the changes in the two heading angles; when entering the swing phase, data is continuously received and recorded until the swing phase ends, and the required features are calculated according to demand to determine the actions of walking on flat ground, going upstairs, and going downstairs, and the displacement obtained by double integration of the recorded three-axis acceleration and the barometer accurately measure the motion data of step length and step height.

[0023] A further improvement of the technical solution of the present invention is that the constraints of the multiple thresholds on the three-axis acceleration and angular velocity are: the variance threshold of the acceleration in the sliding window, the Z-axis acceleration amplitude and the time length, and the constraint equation is as follows:

[0024]

[0025] where acc i is the vertical acceleration, i is the sampling point, w is the window size, and λ1 is the threshold of the acceleration variance in the sliding window;

[0026] f(GZ max )>λ2

[0027] Among them GZ max It is a sample point with the largest absolute value of the z-axis angular velocity in the sliding window. The established function is the square of the amplitude and then reduced by a thousand times. λ2 is the threshold of the amplitude.

[0028] λ3 <i<λ4

[0029] Where i is the number of sample points accumulated after entering the swing phase, and λ3 and λ4 are the lower and upper limits of the threshold respectively.

[0030] A further improvement of the technical solution of the present invention is that: the empirical formula is:

[0031]

[0032] Where K is the constant parameter of calibration, a zmax is the minimum vertical acceleration in the swing phase, a zmin is the minimum acceleration in the vertical direction of the swing phase. The bias coefficient w is added to compensate for the difference caused by the sensor installation position. Therefore, the step length S1 estimated by the empirical formula is:

[0033]

[0034] The rectangle method is used for integration. The average acceleration of two adjacent sampling points is selected as the height a(x) of the rectangle. The time interval t between the two sampling points is calculated by the sampling rate. The instantaneous velocity of the sampling point can be obtained by integrating once, and the distance between the two adjacent sampling points can be obtained by integrating twice. The instantaneous velocity of the sampling point is:

[0035]

[0036] The step length S2 obtained by quadratic integration of acceleration is:

[0037]

[0038] Using the weighted linear combination method, the displacement S formula obtained by combining the double integration of the three-axis acceleration with the empirical formula is as follows:

[0039] S=γS1+(1-γ)S2,

[0040] Among them, γ is a constant parameter, λ∈(0,1).

[0041] A further improvement of the technical solution of the present invention is that the gait cutting adopts a multi-threshold gait phase detection method to determine the start and end positions of each gait and separate it from the continuous signal after data preprocessing. The gait phase detection is based on the fusion calculation of angular velocity and acceleration to analyze in real time whether the human body is in a static state. When the human body enters a non-static state, the acceleration and angular velocity fusion calculation is still used to analyze whether the human body swings to distinguish the turning action. When entering the swinging action, the real-time motion data is continuously received and saved until the swinging phase ends. The data generated by this swinging process is processed and analyzed to obtain the required features and return to the gait phase detection stage through the pointer to prepare for receiving the data of the next action.

[0042] A further improvement of the technical solution of the present invention is that the time domain feature calculation includes calculating the extreme value, mean value and variance of each separated gait.

[0043] A further improvement of the technical solution of the present invention is that the classifier in step S104 includes a SVM classifier, a K nearest neighbor classifier, a random forest classifier, a naive Bayes, and a discriminant analysis classifier.

[0044] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is:

[0045] The present invention integrates a single-node system of a nine-axis inertial sensor and an air pressure sensor, which can accurately identify walking and stair climbing and stair climbing movements that are difficult to distinguish, and greatly improves the recognition accuracy while meeting portability. Compared with the prior art, the recognition results of this system can be displayed in real time, each step can be calculated within 0.2s, the recognition rate reaches more than 98%, the average error of step length calculation is 0.86%, and the average error of step height calculation is 1.1%. This system has good portability, low cost, high accuracy, can adapt to most indoor environments, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a schematic diagram of the overall process of the single-node human gait real-time recognition system design method involved in the present invention;

[0047] Figure 2 A system structure diagram of the present invention;

[0048] Figure 3 The specific structure and wiring diagram of the data acquisition module and the data processing and analysis module in the present invention, wherein a is a structural diagram of the data acquisition module, b is a structural diagram of the data processing module, c is a wiring diagram of the data acquisition module, and d is a wiring diagram of the data processing module;

[0049] Figure 4 This is a flow chart for implementing the main algorithm involved in the present invention;

[0050] Figure 5 A schematic diagram of an experimental scene described in an experimental example of the present invention;

[0051] Figure 6 This is a comparison chart of the effect of altitude data processing in the stair climbing and stair climbing experiment of the present invention, where a is the data before processing and b is the data after denoising and filtering. The right curves of a and b are the original and processed altitude change curves of the entire experimental process, respectively, and the left curve is a partial enlarged view of the data in the right virtual box;

[0052] Figure 7The figure is a comparison diagram of the processing effects of the three-axis acceleration and angular velocity data in the flat ground walking experiment of the present invention, wherein a is the three-axis acceleration data before processing, b is the three-axis acceleration data after denoising and filtering, c is the three-axis angular velocity data before processing, and d is the three-axis angular velocity data after denoising and filtering;

[0053] Figure 8 The coordinate conversion principle diagram and coordinate system conversion schematic diagram involved in the present invention;

[0054] Fig. 9 This is a feature recognition effect diagram after machine learning feature extraction involved in the present invention. DETAILED DESCRIPTION

[0055] The present invention is further described in detail below in conjunction with embodiments:

[0056] like Figure 1 As shown, a design method of a gait recognition system based on a single-node sensor includes the following steps:

[0057] Step S101: construct a data acquisition module and a data processing and analysis module:

[0058] like Figure 2-Figure 3 As shown, the data acquisition module includes a power module, a microcontroller, a nine-axis inertial sensor, an air pressure sensor and a wireless radio frequency module; the data processing and analysis module includes a wireless module and a microcontroller unit (MCU). The nine-axis inertial sensor selects MPU9250, which integrates a 3-axis gyroscope, a 3-axis accelerometer and a 3-axis magnetometer. The air pressure sensor selects the high-resolution air pressure sensor MS5611-01BA01, whose resolution can reach 10cm, and the power supply uses a 3.7V lithium battery.

[0059] The microcontroller continuously reads the data of the nine-axis inertial sensor and the air pressure sensor through the IIC protocol, solves the attitude angle through the quaternion in the MCU, and obtains the real-time altitude through the air pressure altitude conversion formula. Then the MCU writes the three-axis acceleration, angular velocity and attitude angle obtained by the nine-axis inertial sensor at each moment and the altitude and temperature obtained by the air pressure sensor into a 32-bit packet and sends it to the data processing module through the wireless transmission module. The MCU is STM32F103C8T6, which is small in size, low in cost, multi-functional, and easy to implement embedded development. The MCU obtains real-time motion data through the wireless transmission module, which can be directly displayed in the host computer through the USB to TTL module, or the data can be simply processed and calculated according to the needs to obtain the intermediate quantity and displayed in real time in the host computer.

[0060] Step S102, the data acquisition module is made into a foot ring and worn on the tester's ankle to collect human motion data. The collected human motion data includes acceleration, angular velocity, attitude angle and air pressure value generated by the four actions of walking, turning, climbing stairs and going down stairs. The X-axis of the nine-axis inertial sensor corresponds to the forward direction of the human body, the Y-axis is perpendicular to the ground and downward, and the Z-axis points to the right direction of the human body. During the data collection process, a total of 5 volunteers were invited to participate in the experiment to provide motion data. After each volunteer wore the device, he moved freely in the corridor and stairs. There were no additional restrictions on the action posture. The worn device collected the original acceleration and other data generated by each volunteer in the walking, turning, climbing stairs and going up and down stairs, and sent and saved them in the computer.

[0061] Step S103, the human motion data collected in step S102 is transmitted to the data processing and analysis module through a wireless device for data analysis and processing. The data analysis and processing includes data preprocessing, gait cutting and time domain feature calculation, and the data of gait time domain features, step length, step height and steering angle are obtained and a data set is made. Due to the inherent noise interference of components and devices, distortion occurs, and the acceleration vector acquired by the sensor is based on the sensor's own coordinate system (that is, related to the wearing position of the device). In order to facilitate intuitive understanding and unified research, the data needs to be preprocessed, that is, coordinate system conversion and noise reduction processing. The attitude angle coordinate system conversion matrix is ​​used to unify all data samples in the same coordinate system (that is, the earth coordinate system). The noise reduction processing includes: using the Laida criterion to eliminate obvious outliers, and using the extended Kalman filter to filter the noise caused by irregular tremors during movement. The extended Kalman filter has a very good effect on filtering nonlinear data. The filtering effect is as follows: Figure 6 and Figure 7 shown.

[0062] The principle of coordinate transformation is as follows Figure 8 As shown, the rotation matrix around the Y axis The angle ψ is the heading angle yaw in the attitude angle;

[0063] Rotation matrix for rotation around the Z axis Angle θ is the pitch angle in the attitude angle;

[0064] Rotation matrix for rotation around the X axis angle is the roll angle in the attitude angle;

[0065] Rotate in the order of YZX to get the rotation matrix:

[0066]

[0067] The coordinate transformation equation is Here is the three-axis acceleration in the earth coordinate system, is the three-axis acceleration in the sensor coordinate system.

[0068] Therefore, the conversion equation of the three-axis acceleration in the sensor coordinate system to the three-axis acceleration in the earth coordinate system is:

[0069]

[0070] After obtaining the acceleration in the earth coordinate system, the stance phase and swing phase of the gait movement are determined by establishing multiple threshold constraints on the acceleration and angular velocity. This system proposes three constraints: (1) the variance threshold of the acceleration in the sliding window (2) the Z-axis acceleration amplitude (3) the time length. The constraint equation is as follows:

[0071]

[0072] where acc i is the vertical acceleration, i is the sampling point, and w is the window size. After multiple tests and comparisons, w is set to 4. λ1 is the threshold of the acceleration variance in the sliding window, which is determined by multiple experiments.

[0073] f(GZ max )>λ2,

[0074] Among them GZ max It is a sample point with the largest absolute value of the z-axis angular velocity in the sliding window. The established function is the square of the amplitude and then reduced by a thousand times. λ2 is the threshold of the amplitude, which is determined through multiple experiments.

[0075] λ3<i<λ4,

[0076] Where i is the number of sample points accumulated after entering the swing phase, λ3 and λ4 are the lower and upper limits of the threshold respectively. The values ​​of 16 and 72 are selected after multiple experiments.

[0077] Before entering the swing phase, zero speed correction is performed and the heading angle variance is calculated. The threshold of the heading angle variance in the sliding window is used to determine whether a turning action has been entered. If the variance is greater than the set threshold, it is determined to have entered a turning action and the heading angle at this time is recorded. Continue to receive data until the variance regression threshold is reached. The turning action is determined to have been completed and the heading angle at this time is recorded, and the steering angle is calculated based on the changes in these two heading angles. When entering the swing phase, data is continuously received and recorded until the end of the swing phase (multi-threshold judgment). The required features are calculated according to demand to determine the actions of walking on flat ground, going upstairs, and going downstairs. The recorded acceleration is double-integrated to obtain displacement, and the empirical formula and air pressure sensor are used to accurately measure step length, step height and other motion data.

[0078] Comparison of empirical formulas A bias coefficient w is added to compensate for the difference in sensor installation position. Where K is the constant parameter of calibration, a zmax is the minimum vertical acceleration in the swing phase, a zmin is the minimum vertical acceleration of the swing phase. S1 is the step length under the empirical formula.

[0079]

[0080] The acceleration has been converted to the inertial coordinate system in the data preprocessing stage. We only need to perform a second integration of the acceleration of the two axes on the horizontal plane and then calculate the sum of their squares to get the square of the displacement, and then take the square root to get the step length.

[0081] The present invention uses the rectangular method for integration, takes the average acceleration of two adjacent sampling points as the height a(x) of the rectangle, and calculates the time interval t between the two sampling points by the sampling rate. One integration can obtain the instantaneous speed of the sampling point, and two integrations can obtain the distance between two adjacent sampling points. The instantaneous speed of the sampling point is:

[0082] The displacement is:

[0083] The present invention combines these two algorithms and adopts a weighted linear combination method, and the formula is as follows:

[0084] S=γS1+(1-γ)S2

[0085] Where γ is a constant parameter, γ∈(0,1), S1 is the step size estimated by the empirical formula, and S2 is the step size obtained by the quadratic integration of acceleration.

[0086] The present invention accurately separates each gait in a continuous gait signal, extracts its time domain features to make a data set and labels it for subsequent model training using machine learning. Gait cutting is performed using a multi-threshold gait phase detection method. Gait phase detection is based on the fusion calculation of angular velocity and acceleration to analyze in real time whether the human body is in a static state. When the human body enters a non-static state, it still uses the fusion calculation of acceleration and angular velocity to analyze whether the human body swings to distinguish turning actions. When entering a swinging action, real-time motion data is continuously received and saved until the end of the swinging phase. The data generated by this swinging process is processed and analyzed to obtain the required features and return to the gait phase detection stage through a pointer to prepare for receiving data for the next action.

[0087] Because the heading angle changes sharply when turning, the Z-axis angular velocity fluctuates periodically when walking and the acceleration of each axis changes. Based on this, the starting and ending positions of each gait can be determined and separated from the continuous signal. After each gait is separated, the extreme value, mean, variance and other time domain features are calculated and statistically compiled into a data set.

[0088] Step S104: Use a variety of machine learning classifiers to train the model and perform feature dimensionality reduction. The classifiers include SVM classifier, K nearest neighbor classifier, random forest classifier, naive Bayes, and discriminant analysis classifier. Feature dimensionality reduction is to find feature vectors with a contribution of more than 90% and remove irrelevant feature vectors. The recognition rates of the motion data of the four testers under different dimensional features of each classifier are shown in Table 1 below:

[0089] Table 1

[0090]

[0091] After feature dimensionality reduction, two features, the minimum value of the z-axis angular velocity and the height change calculated by the barometer, were selected as the basis for judgment. The classification effect is as follows: Fig. 9 shown.

[0092] Step S105: After completing steps S102 to S4 on the computer, the algorithm process of steps S102 to S4 is written into a C language program using Keil software and written into the MCU of the microcontroller to complete the embedded development.

[0093] Figure 4 The algorithm flow shown in the figure is written in C language and embedded in the microcontroller. Some data processing effects are as follows: Figure 6 and Figure 7 As shown, the program sets the sampling rate of the nine-axis inertial sensor and the air pressure sensor to obtain raw data at 50 Hz. The acquisition device collects the raw data while packaging the data and sending it to the data processing and analysis module through the wireless radio frequency module for data preprocessing. The gait phase detection is based on the fusion calculation of angular velocity and acceleration to analyze in real time whether the human body is in a static state. When the human body enters a non-static state, the acceleration, angular velocity and time series multi-threshold judgment is used to analyze whether the human body enters the swing phase to identify the turning action. When entering the swing phase, the real-time motion data is continuously received and saved until the end of the swing phase. The data generated by this swing process is processed and analyzed to obtain the required features and return to the gait phase detection stage through the pointer to prepare for receiving the data of the next action.

[0094] In order to verify the effect of the present invention, the inventors also conducted the following test examples:

[0095] Two 24-year-old young men with an average height of 173 cm were selected as research subjects. In the experiment, the subjects walked at their usual speed and posture, and the experimenter wandered freely on the stairs and corridors. The simplified experimental scene was as follows: Figure 5As shown. The floor height is 4m, and the experimental plan is: walk from the designated position in the corridor to the stairs, and wander freely between the first to third floors. The activities of the experimenters include four actions: walking on the ground, going upstairs, going downstairs, and turning. Based on the above basic motion scenes, the single-node human gait real-time recognition system of the present invention is used to identify the gait of the subjects and estimate the step length, turning angle and height change. The experimental results are shown in Table 2 below. The true values ​​are the height, length and turning angle measured in the field (for the convenience of research, each turn is 90°). This experimental example illustrates that the gait recognition system of the present invention has good accuracy.

[0096] Table 2

[0097]

[0098] The present invention provides a sensor-based single-point real-time gait recognition system design method, which integrates a nine-axis inertial sensor and an air pressure sensor to improve recognition accuracy while meeting the requirements of wearing and comfort. At the same time, the edge computing technology is used to make the system completely free of external computer participation, and the recognition results and motion parameters can be displayed in real time. This system design method not only improves recognition accuracy, but also has low cost, good portability, and good timeliness, and has good application prospects for leg rehabilitation training for patients.

Claims

1. A design method for a gait recognition system based on a single-node sensor, characterized by: The steps include: Step S101, constructing a data acquisition module and a data processing and analysis module: the data acquisition module includes a power module, a microcontroller, a nine-axis inertial sensor, an air pressure sensor and a wireless radio frequency module; the data processing and analysis module includes a wireless module and a microcontroller; Step S102: The data acquisition module is made into an anklet and worn on the subject's ankle to collect human motion data. The collected human motion data includes acceleration, angular velocity, attitude angle, and air pressure generated by the subject's walking, turning, climbing stairs, and descending stairs. The nine-axis inertial sensor has an X-axis corresponding to the direction of the subject's forward movement, a Y-axis perpendicular to the ground and pointing downward, and a Z-axis pointing to the right side of the subject. Step S103: The human motion data collected in step S102 is transmitted to a data processing and analysis module via a wireless device for data analysis and processing to obtain data on gait time domain characteristics, step length, step height, and turning angle, and to create a data set; Step S104: Using multiple machine learning classifiers to train the model and perform feature dimensionality reduction. Feature dimensionality reduction involves finding feature vectors with a contribution of more than 90% and removing irrelevant feature vectors. The features selected after feature dimensionality reduction are: the minimum z-axis angular velocity and the altitude change calculated by the barometer; Step S105: After completing steps S102 to S4 on the computer, the algorithm process of steps S102 to S4 is written into a C language program using Keil software and written into the microcontroller to complete the embedded development.

2. The method for designing a gait recognition system based on a single-node sensor according to claim 1, characterized in that: The data analysis process in step S103 includes data preprocessing, gait segmentation and time domain feature calculation.

3. The method for designing a gait recognition system based on a single-node sensor according to claim 2, characterized in that: The data preprocessing includes coordinate system conversion and noise reduction processing. The coordinate system conversion is to unify the acceleration in the human body motion data collected by the nine-axis inertial sensor in step S102 under the earth coordinate system using the attitude angle coordinate system conversion matrix. The noise reduction processing includes removing outliers and filtering denoising. The outliers are eliminated using the Laida criterion, and the noise caused by irregular tremors during movement is filtered using an extended Kalman filter.

4. The method for designing a gait recognition system based on a single-node sensor according to claim 3, characterized in that: The attitude angle coordinate system conversion matrix processing process is as follows: Rotation matrix for rotation around the Y axis The angle ψ is the heading angle yaw in the attitude angle; Rotation matrix for rotation around the Z axis Angle θ is the pitch angle in the attitude angle; Rotation matrix around the X axis angle is the roll angle in the attitude angle; Rotate in the order of YZX to get the rotation matrix The coordinate transformation equation is in, is the three-axis acceleration in the Earth coordinate system, is the three-axis acceleration in the nine-axis inertial sensor coordinate system, Therefore, the conversion equation of the three-axis acceleration in the nine-axis inertial sensor coordinate system to the three-axis acceleration in the earth coordinate system is:

5. The method for designing a gait recognition system based on a single-node sensor according to claim 4, characterized in that: After obtaining the three-axis acceleration in the earth coordinate system, the stance phase and swing phase of the gait movement are determined by establishing multiple threshold constraints on the three-axis acceleration and angular velocity. Before entering the swing phase, zero-speed correction is performed and the heading angle variance is calculated. The threshold of the heading angle variance is set to determine whether a turning action has begun. If the variance is greater than the set threshold, it is determined that a turning action has begun and the heading angle at this time is recorded. Data is continued to be received until the variance regression threshold is reached. The turning action is determined to be completed and the heading angle at this time is recorded. The turning angle is calculated based on the changes in these two heading angles. When entering the swing phase, data is continuously received and recorded until the end of the swing phase. The required features are calculated according to needs to determine the actions of walking on flat ground, going up and down stairs. The recorded three-axis acceleration is double-integrated and combined with the displacement obtained by the empirical formula and the barometer to accurately measure the motion data of step length and step height.

6. The method for designing a gait recognition system based on a single-node sensor according to claim 5, characterized in that: The constraints of the multiple threshold detections are: the acceleration variance threshold in the sliding window, the Z-axis acceleration amplitude, and the time length. The constraint equation is as follows: where acc i is the vertical acceleration, i is the sampling point, w is the window size, and λ1 is the threshold of the acceleration variance in the sliding window; f(GZ max )>λ2, Among them GZ max It is the sample point with the largest absolute value of the z-axis angular velocity in the sliding window. The function established is the square of the amplitude and then reduced by a thousand times. λ2 is the amplitude threshold; λ3<i<λ4, Where i is the number of sample points accumulated after entering the swing phase, λ3 and λ4 are the lower and upper limits of the threshold respectively.

7. The method for designing a gait recognition system based on a single-node sensor according to claim 6, characterized in that: The empirical formula is: Where K is the constant parameter of calibration, a zmax is the minimum vertical acceleration in the swing phase, a zmin is the minimum acceleration in the vertical direction of the swing phase. The bias coefficient w is added to compensate for the difference caused by the sensor installation position. Therefore, the step length S1 estimated by the empirical formula is: The rectangle method is used for integration. The average acceleration of two adjacent sampling points is selected as the height a(x) of the rectangle. The time interval t between the two sampling points is calculated by the sampling rate. The instantaneous velocity of the sampling point can be obtained by integrating once, and the distance between the two adjacent sampling points can be obtained by integrating twice. The instantaneous velocity of the sampling point is: The step size S2 obtained by quadratic integration of acceleration is: The displacement S formula obtained by using weighted linear combination, double integration of three-axis acceleration and empirical formula is as follows: S=γS1+(1-γ)S2, Among them, γ is a constant parameter, γ∈(0,1).

8. The method for designing a gait recognition system based on a single-node sensor according to claim 7, characterized in that: The gait cutting adopts a multi-threshold gait phase detection method to determine the starting and ending positions of each gait and separate it from the continuous signal after data preprocessing. The gait phase detection is based on the fusion calculation of angular velocity and acceleration to analyze in real time whether the human body is in a static state. When the human body enters a non-static state, the acceleration, angular velocity and time series multi-threshold judgment is used to analyze whether the human body generates swing to distinguish the turning action. When the swing action begins, the real-time motion data is continuously received and saved until the end of the swing phase. The data generated by this swing process is processed and analyzed to obtain the required features and return to the gait phase detection stage through the pointer to prepare for receiving the data of the next action.

9. The method for designing a gait recognition system based on a single-node sensor according to claim 8, characterized in that: The time domain feature calculation includes calculating the extreme value, mean value, and variance of each separated gait.

10. The method for designing a gait recognition system based on a single-node sensor according to claim 1, characterized in that: The classifiers in step S104 include SVM classifier, K-nearest neighbor classifier, random forest classifier, naive Bayes classifier, and discriminant analysis classifier.