[go: up one dir, main page]

CN104757976B - A kind of Human Body Gait Analysis method and system based on Multi-sensor Fusion - Google Patents

A kind of Human Body Gait Analysis method and system based on Multi-sensor Fusion Download PDF

Info

Publication number
CN104757976B
CN104757976B CN201510178450.4A CN201510178450A CN104757976B CN 104757976 B CN104757976 B CN 104757976B CN 201510178450 A CN201510178450 A CN 201510178450A CN 104757976 B CN104757976 B CN 104757976B
Authority
CN
China
Prior art keywords
gait
sensor
human body
human
walking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510178450.4A
Other languages
Chinese (zh)
Other versions
CN104757976A (en
Inventor
王哲龙
仇森
赵红宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian University of Technology
Original Assignee
Dalian University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian University of Technology filed Critical Dalian University of Technology
Priority to CN201510178450.4A priority Critical patent/CN104757976B/en
Publication of CN104757976A publication Critical patent/CN104757976A/en
Application granted granted Critical
Publication of CN104757976B publication Critical patent/CN104757976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Measuring devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor or mobility of a limb
    • A61B5/112Gait analysis

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • Dentistry (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Physiology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

本发明涉及生物医学工程中的步态分析技术领域,提供一种基于多传感器融合的人体步态分析方法和系统,所述方法包括:根据人体运动特征,对传感器信号进行滤波处理消除信号噪声误差,使用改进的零速度更新算法消除积分误差,使其适用于不同的步行场景;使用迪纳维特‑哈坦伯格法融合多个传感器数据,减少腿部位置计算误差;经过误差矫正,精确计算被测者行走过程中的步速、步长、步频、步行周期和步行轨迹;建立步态数据库,通过分位数回归分析方法对不同被测者的步态数据进行统计分析。本发明能够提高步态参数测量精度,通过标准化处理使不同被测者的步态参数具有可比性。

The invention relates to the technical field of gait analysis in biomedical engineering, and provides a human gait analysis method and system based on multi-sensor fusion. The method includes: filtering sensor signals to eliminate signal noise errors according to human motion characteristics , use the improved zero-velocity update algorithm to eliminate the integral error, making it suitable for different walking scenes; use the Dinavit-Hartenberg method to fuse multiple sensor data to reduce the calculation error of the leg position; after error correction, accurate calculation The gait speed, step length, stride frequency, gait cycle and walking trajectory of the subjects during the walking process; the gait database is established, and the gait data of different subjects are statistically analyzed by the quantile regression analysis method. The invention can improve the measurement accuracy of gait parameters, and make the gait parameters of different measured persons comparable through standardized processing.

Description

一种基于多传感器融合的人体步态分析方法和系统A human gait analysis method and system based on multi-sensor fusion

技术领域technical field

本发明涉及步态分析技术领域,尤其涉及一种基于多传感器融合的人体步态分析方法和系统。The invention relates to the technical field of gait analysis, in particular to a human gait analysis method and system based on multi-sensor fusion.

背景技术Background technique

人体步态是人体步行过程中下肢协调关系的行为特征,涉及到个人运动习惯、健康状况、性别、年龄、职业等因素,人体步态检测具有显著的意义。例如,在运动康复方面,步态分析可以评估被测者下肢运动能力恢复情况。在远程医疗方面,便携式步态分析设备可以减少护理人员长时间值守。在个人导航方面,通过对行人下肢运动轨迹信息的计算可以实现在无GPS信号的环境下的位置定位。Human gait is the behavioral characteristic of the coordination relationship of the lower limbs in the process of human walking. It involves factors such as personal exercise habits, health status, gender, age, occupation, etc. Human gait detection has significant significance. For example, in terms of sports rehabilitation, gait analysis can evaluate the recovery of the testee's lower limb exercise ability. In terms of telemedicine, portable gait analysis devices can reduce long hours of caregiver attendance. In terms of personal navigation, the position positioning in an environment without GPS signals can be realized by calculating the trajectory information of the pedestrian's lower limbs.

现有的步态分析方法包括传统的基于目测法、足印法、光学信号、超声信号、压力信号等方法。专利号为7457439的美国专利System and method formotion capture使用多个摄像机恢复出身体的三维运动信息。但是基于光学的运动测量系统普遍存在信号遮挡问题,使用受限制;公开号为CN 102670207的专利介绍了一种基于足底压力的步态分析方法,通过分析足底压力分布随时间的变化来识别人体步态相位和下肢运动信息模式,但是此方法只能得到足部与地面接触时的压力变化,进而无法得到一个完整步态周期的步态信息;公开号为CN101694499的专利描述了一种行人步速测量的系统,通过固定于腹部正前方的双轴加速度传感器获得被测者在运动过程中的运动信号。这种方法很容易受到腹部软组织形变的影响,系统步速检测精度较低。Existing gait analysis methods include traditional methods based on visual inspection, footprint method, optical signal, ultrasonic signal, pressure signal and so on. The US Patent System and method formotion capture with the patent No. 7457439 uses multiple cameras to restore the three-dimensional motion information of the body. However, the optical-based motion measurement system generally has the problem of signal occlusion, and its use is limited; the patent with the publication number of CN 102670207 introduces a gait analysis method based on plantar pressure, which can be identified by analyzing the change of plantar pressure distribution over time. Human body gait phase and lower limb movement information mode, but this method can only obtain the pressure change when the foot is in contact with the ground, and then cannot obtain the gait information of a complete gait cycle; the patent with the publication number of CN101694499 describes a pedestrian The pace measurement system obtains the motion signal of the subject during the exercise through the biaxial acceleration sensor fixed in front of the abdomen. This method is easily affected by the deformation of the abdominal soft tissue, and the accuracy of system gait detection is low.

随着微型机电系统(MEMS)技术的高速发展,可穿戴式传感器在人体运动康复领域获得广泛应用。现有的基于穿戴式惯性传感器的步态分析方法都使用了零速度更新算法来消除误差累积,但是零速度更新的效果严重依赖于算法阈值的选择,现有的确定阈值的方法往往采用三轴加速度信号的模值结合角速度变化的变化率(一阶导数)来确定能够使用零速度更新算法的时间段。由于在站立期加速度和加速度值并不为零,而是在零附近波动,而且从加速度值和角速度值曲线来看,都不存在一个明显的波峰或者波谷。因此很难找到一个普遍适用的阈值检测方法。现有的步态分析方法都是计算绝对步速、步长和步频,并未考虑身高对检测结果的影响,这样得到的测量结果对于不同的被测对象不具备可比性。另外,由于腿部肌肉在运动过程中存在形变,会引起传感器坐标系与地面参考坐标系相对关系发生变化。而人体下肢各个部位只有足部适用零速度更新算法消除误差,其余部位的位置与方位角信息估算不可避免地存在较大误差。With the rapid development of microelectromechanical systems (MEMS) technology, wearable sensors have been widely used in the field of human sports rehabilitation. The existing gait analysis methods based on wearable inertial sensors all use the zero-velocity update algorithm to eliminate error accumulation, but the effect of zero-velocity update is heavily dependent on the selection of the algorithm threshold, and the existing methods for determining the threshold often use three-axis The modulus of the acceleration signal is combined with the rate of change (first derivative) of the angular velocity change to determine the time period during which the zero velocity update algorithm can be used. Since the acceleration and acceleration values are not zero during the stance period, but fluctuate around zero, and from the curves of acceleration values and angular velocity values, there is no obvious peak or trough. Therefore it is difficult to find a generally applicable threshold detection method. The existing gait analysis methods all calculate the absolute pace, step length and stride frequency, without considering the influence of height on the detection results, and the measurement results obtained in this way are not comparable for different measured objects. In addition, due to the deformation of the leg muscles during the movement, the relative relationship between the sensor coordinate system and the ground reference coordinate system will change. However, only the feet of the lower limbs of the human body apply the zero-velocity update algorithm to eliminate errors, and the estimation of the position and azimuth angle information of other parts inevitably has large errors.

发明内容Contents of the invention

本发明主要解决现有技术的难以有效地消除使用运动信号积分误差的技术问题,提出一种基于多传感器融合的人体步态分析方法和系统,以达到提高人体步行过程中下肢运动信息计算的精确性和可靠性的目的。The present invention mainly solves the technical problem in the prior art that it is difficult to effectively eliminate the integration error of the motion signal, and proposes a human gait analysis method and system based on multi-sensor fusion, in order to improve the accuracy of the calculation of lower limb motion information in the process of human walking. purpose of sex and reliability.

本发明提供了一种基于多传感器融合的人体步态分析方法,所述基于多传感器融合的人体步态分析方法包括:The invention provides a human gait analysis method based on multi-sensor fusion, the human gait analysis method based on multi-sensor fusion comprises:

步骤100,利用传感器采集人体步行过程中下肢的运动信号和三维地磁场分量信号,所述运动信号包括三维加速度信号和三维角速度信号;Step 100, using sensors to collect movement signals of lower limbs and three-dimensional geomagnetic field component signals during human walking, where the movement signals include three-dimensional acceleration signals and three-dimensional angular velocity signals;

步骤200,根据采集的运动信号和三维地磁场分量信号,获得人体的初始姿态,所述初始姿态包括人体初始静止站立状态的俯仰角、滚转角和偏航角,根据人体的初始姿态获得传感器坐标系与地面坐标系的偏差量,利用所述偏差量修正由传感器坐标系变换到地面坐标系的旋转矩阵,以对俯仰角、滚转角和偏航角进行补偿,并获得补偿后的人体初始方位信息;Step 200, obtain the initial posture of the human body according to the collected motion signal and the three-dimensional geomagnetic field component signal, the initial posture includes the pitch angle, roll angle and yaw angle of the human body's initial static standing state, and obtain the sensor coordinates according to the initial posture of the human body system and the ground coordinate system, and use the deviation to correct the rotation matrix transformed from the sensor coordinate system to the ground coordinate system, so as to compensate the pitch angle, roll angle and yaw angle, and obtain the initial orientation of the human body after compensation information;

步骤300,根据采集到的运动信号以及修正的旋转矩阵,获得人体从静止站立状态切换到行走状态的开始时刻,并从所述开始时刻开始使用扩展的卡尔曼滤波器进行传感器数据融合,更新人体方位信息,并根据采集的运动信号检测人体步行过程中的步态时相,进而获得人体步态参数,其中,所述步态时相包括支撑时相和摆动时相,支撑时相分为脚跟击地期、站立相中期、完全站立期和脚跟离地期,摆动时相分为加速期、摆动期和减速期;所述人体步态参数包括人体行走过程中的步速、步长、步频、步行周期和步行轨迹;Step 300, according to the collected motion signal and the corrected rotation matrix, obtain the starting moment when the human body switches from the standing state to the walking state, and use the extended Kalman filter to perform sensor data fusion from the starting moment to update the human body orientation information, and detect the gait phase in the human walking process according to the collected motion signals, and then obtain the human gait parameters, wherein, the gait phase includes a support phase and a swing phase, and the support phase is divided into heel phase Ground strike period, middle stance phase, full stance period and heel-off period, swing phase is divided into acceleration period, swing period and deceleration period; described human body gait parameters include pace, step length, step Frequency, walking cycle and walking trajectory;

步骤400,消除传感器误差积累,更新人体步态参数,包括:Step 400, eliminating sensor error accumulation and updating human gait parameters, including:

当检测到站立相中期小腿与地面垂直的时刻时,以着地的腿作为摆动轴被测者身体重心前移,对整个人体建立一级倒立摆模型,执行零速度更新算法消除误差,并更新获得的人体步态参数;When the moment when the calf is vertical to the ground in the middle stage of the stance phase is detected, the center of gravity of the subject’s body moves forward with the leg on the ground as the swing axis, and a first-order inverted pendulum model is established for the entire human body, and the zero-velocity update algorithm is executed to eliminate the error and update to obtain human gait parameters;

当检测到完全站立期时,足部完全贴合地面,足部小腿和大腿形成通过铰链关节连接的刚体,使用迪纳维特-哈坦伯格法建立下肢运动学模型,并融合腿部的运动信号和足部的运动信号,以消除误差,并更新获得的人体步态参数。When the full stance phase is detected, the foot is completely attached to the ground, and the calf and thigh of the foot form a rigid body connected by a hinge joint. The kinematic model of the lower body is established using the Dinavitt-Hartenberg method, and the motion of the leg is fused signal and the motion signal of the foot to eliminate errors and update the obtained human gait parameters.

进一步的,所述采集人体步行过程中下肢的运动信号和三维地磁场分量信号包括:Further, the collection of motion signals of lower limbs and three-dimensional geomagnetic field component signals during human walking includes:

通过三维转台和三维导轨对传感器进行标定;Calibrate the sensor through a three-dimensional turntable and a three-dimensional guide rail;

采集人体步行过程中下肢的运动信号和三维地磁场分量信号;Collect movement signals of lower limbs and three-dimensional geomagnetic field component signals during human walking;

对采集到的运动信号以及三维地磁场分量信号进行去噪声处理;Perform denoising processing on the collected motion signals and three-dimensional geomagnetic field component signals;

将采集到的运动信号和三维地磁场分量信号保存到存储设备中。The collected motion signals and three-dimensional geomagnetic field component signals are stored in a storage device.

进一步的,在步骤400之后,还包括:Further, after step 400, it also includes:

步骤500,对获得的人体步态参数进行标准化处理,进而建立人体步态数据库,包括:Step 500, standardize the obtained human gait parameters, and then establish a human gait database, including:

通过公式对步速进行标准化,通过公式对步长进行标准化,通过公式对步频进行标准化,得到标准化处理后的人体步态参数,其中,l1为被测者身高,lm为被测者所属年龄段人群的平均身高;V为对传感器信号积分运算得到的被测者步速,Vrel为标准步速,单位是米/秒,L为对步速积分运算得到的步长,Lrel为标准步长,单位是米/步,C为通过步行周期计算出的被测者单位时间内行走的步频,Crel为标准步频,单位是步/秒。by formula To normalize the pace, through the formula To normalize the step size, through the formula Standardize the stride frequency to obtain standardized human gait parameters, where l 1 is the height of the subject, l m is the average height of the age group the subject belongs to; The measurer's pace, V rel is the standard pace, the unit is m/s, L is the step length obtained by integrating the pace, L rel is the standard step length, the unit is m/step, and C is calculated through the walking cycle C rel is the standard stride frequency, and the unit is step/second.

进一步的,所述利用传感器采集人体步行过程中下肢的运动信号和三维地磁场分量信号,包括:Further, the use of sensors to collect movement signals of lower limbs and three-dimensional geomagnetic field component signals during human walking includes:

通过三轴加速度计和三轴陀螺仪采集人体步行过程中下肢的运动信号;The movement signals of the lower limbs during human walking are collected through a three-axis accelerometer and a three-axis gyroscope;

通过三轴电子罗盘采集人体步行过程中的三维地磁场分量信号;Collect the three-dimensional geomagnetic field component signal during human walking through the three-axis electronic compass;

三轴加速度计、三轴陀螺仪以及三轴电子罗盘安装在被测者的大腿中段、小腿中段以及足背位置。The three-axis accelerometer, the three-axis gyroscope and the three-axis electronic compass are installed on the mid-thigh, mid-calf and instep of the subject.

进一步的,通过所述下肢运动学模型建立的两个约束条件为:Further, the two constraints established by the lower limb kinematics model are:

其中,为基于小腿运动的膝关节位移向量,为基于足部的传感器计算出的脚踝位置向量,为通过置于大腿部位的传感器计算出的髋关节位移向量。in, is the knee joint displacement vector based on calf motion, is the ankle position vector calculated by the foot-based sensors, is the hip displacement vector calculated by the sensors placed in the thigh.

对应地,本发明还提供了一种基于多传感器融合的人体步态分析系统,所述基于多传感器融合的人体步态分析系统包括:数据采集装置和数据分析处理装置,数据采集装置用于利用传感器采集人体步行过程中下肢的运动信号和三维地磁场分量信号,所述运动信号包括三维加速度和三维角速度;所述数据分析处理装置包括初始姿态分析单元、步态参数计算单元和误差矫正单元;Correspondingly, the present invention also provides a human gait analysis system based on multi-sensor fusion, the human gait analysis system based on multi-sensor fusion includes: a data acquisition device and a data analysis and processing device, the data acquisition device is used to utilize The sensor collects the motion signal of the lower limbs and the three-dimensional geomagnetic field component signal during human walking, and the motion signal includes three-dimensional acceleration and three-dimensional angular velocity; the data analysis and processing device includes an initial posture analysis unit, a gait parameter calculation unit and an error correction unit;

初始姿态分析单元,用于根据采集的运动信号和三维地磁场分量信号,获得人体的初始姿态,所述运动信号包括三维加速度信号和三维角速度信号,根据人体的初始姿态获得传感器坐标系与地面坐标系的偏差量,利用所述偏差量修正由传感器坐标系变换到地面坐标系的旋转矩阵,以对俯仰角、滚转角和偏航角进行补偿,并获得补偿后的人体初始方位信息;The initial posture analysis unit is used to obtain the initial posture of the human body according to the collected motion signal and the three-dimensional geomagnetic field component signal, the motion signal includes the three-dimensional acceleration signal and the three-dimensional angular velocity signal, and obtains the sensor coordinate system and the ground coordinate according to the initial posture of the human body System deviation, using the deviation to modify the rotation matrix transformed from the sensor coordinate system to the ground coordinate system, to compensate the pitch angle, roll angle and yaw angle, and obtain the compensated initial orientation information of the human body;

步态参数计算单元,用于根据采集到的运动信号以及修正的旋转矩阵,获得人体从静止站立状态切换到行走状态的开始时刻,并从所述开始时刻开始使用扩展的卡尔曼滤波器进行传感器数据融合,更新人体方位信息,并根据采集的运动信号检测人体步行过程中的步态时相,进而获得人体步态参数,其中,所述步态时相包括支撑时相和摆动时相,支撑时相分为脚跟击地期、站立相中期、完全站立期和脚跟离地期,摆动时相分为加速期、摆动期和减速期;所述人体步态参数包括人体行走过程中的步速、步长、步频、步行周期和步行轨迹;The gait parameter calculation unit is used to obtain the start moment when the human body switches from the standing state to the walking state according to the collected motion signal and the corrected rotation matrix, and use the extended Kalman filter to perform sensor Data fusion, update the orientation information of the human body, and detect the gait phase in the walking process of the human body according to the collected motion signals, and then obtain the gait parameters of the human body, wherein the gait phase includes the support phase and the swing phase, and the support phase The phases are divided into the heel-strike phase, the middle phase of the stance phase, the complete standing phase and the heel-off phase, and the swing phase is divided into the acceleration phase, the swing phase and the deceleration phase; , step length, stride frequency, walking cycle and walking trajectory;

误差矫正单元,用于消除传感器误差积累,更新人体步态参数,包括:当检测到站立相中期小腿与地面垂直的时刻时,以着地的腿作为摆动轴被测者身体重心前移,对整个人体建立一级倒立摆模型,执行零速度更新算法消除误差,并更新获得的人体步态参数;当检测到完全站立期时,足部完全贴合地面,足部小腿和大腿形成通过铰链关节连接的刚体,使用迪纳维特-哈坦伯格法建立下肢运动学模型,并融合腿部的运动信号和足部的运动信号,以消除误差,并更新获得的人体步态参数。The error correction unit is used to eliminate the accumulation of sensor errors and update the gait parameters of the human body, including: when the moment when the calf is perpendicular to the ground in the middle stage of the stance phase is detected, the center of gravity of the subject's body moves forward with the leg on the ground as the swing axis, and the whole The human body establishes a first-level inverted pendulum model, executes a zero-velocity update algorithm to eliminate errors, and updates the obtained human gait parameters; when the full stance phase is detected, the foot is completely attached to the ground, and the calf and thigh of the foot are connected through a hinge joint The rigid body of the lower limbs is established using the Dinavitt-Hartenberg method, and the motion signals of the legs and feet are fused to eliminate errors and update the obtained human gait parameters.

进一步的,所述数据采集装置包括惯性传感器标定单元、传感器信号采集单元、数据滤波单元和自容式数据存储单元;Further, the data acquisition device includes an inertial sensor calibration unit, a sensor signal acquisition unit, a data filtering unit and a self-contained data storage unit;

惯性传感器标定单元,用于通过三维转台和三维导轨对传感器进行标定;The inertial sensor calibration unit is used to calibrate the sensor through the three-dimensional turntable and the three-dimensional guide rail;

传感器信号采集单元,用于采集人体步行过程中下肢的运动信号和三维地磁场分量信号;The sensor signal acquisition unit is used to collect the motion signal of the lower limbs and the three-dimensional geomagnetic field component signal during human walking;

数据滤波单元,用于对采集到的运动信号以及三维地磁场分量信号进行去噪声处理;The data filtering unit is used for denoising the collected motion signal and three-dimensional geomagnetic field component signal;

自容式数据存储单元,用于将采集到的运动信号和三维地磁场分量信号保存到存储设备中。The self-capacity data storage unit is used to save the collected motion signal and three-dimensional geomagnetic field component signal into the storage device.

进一步的,所述基于多传感器融合的人体步态分析系统,还包括:Further, the human gait analysis system based on multi-sensor fusion also includes:

步态数据库单元,用于对获得的人体步态参数进行标准化处理,进而建立人体步态参数数据库,具体用于;通过公式对步速进行标准化,通过公式对步长进行标准化,通过公式对步频进行标准化,其中,l1为被测者身高,lm为被测者所属年龄段人群的平均身高;V为对传感器信号积分运算得到的被测者步速,Vrel为标准步速,单位是米/秒;为对步速积分运算得到的步长,Lrel为标准步长,单位是米/步;C为通过步行周期计算出的被测者单位时间内行走的步频,Crel为标准步频,单位是步/秒。The gait database unit is used to standardize the obtained human gait parameters, and then establish a human gait parameter database, which is specifically used for; through the formula To normalize the pace, through the formula To normalize the step size, through the formula Standardize the stride frequency, where l 1 is the height of the testee, l m is the average height of the age group of the testee; V is the pace of the testee obtained by integrating the sensor signal, V rel is the standard step Speed, the unit is m/s; is the step length obtained by integrating the step speed, L rel is the standard step length, the unit is m/step; C is the step frequency of the subject per unit time calculated through the walking cycle , C rel is the standard stride frequency, the unit is step/second.

进一步的,所述数据采集装置包括三轴加速度计、三轴陀螺仪和三轴电子罗盘;Further, the data acquisition device includes a three-axis accelerometer, a three-axis gyroscope and a three-axis electronic compass;

三轴加速度计和三轴陀螺仪采集人体步行过程中下肢的运动信号;The three-axis accelerometer and the three-axis gyroscope collect the movement signals of the lower limbs during human walking;

三轴电子罗盘采集人体步行过程中的三维地磁场分量信号;The three-axis electronic compass collects three-dimensional geomagnetic field component signals during human walking;

三轴加速度计、三轴陀螺仪以及三轴电子罗盘安装在被测者的大腿中段,小腿中段以及足背位置。A three-axis accelerometer, a three-axis gyroscope and a three-axis electronic compass are installed on the middle part of the thigh, the middle part of the calf and the dorsum of the foot of the subject.

进一步的,在误差矫正单元中,通过下肢运动学模型建立的两个约束条件为:Further, in the error correction unit, the two constraints established by the lower limb kinematics model are:

其中,为基于小腿运动的膝关节位移向量,为基于足部的传感器计算出的脚踝位置向量,为通过置于大腿部位的传感器计算出的髋关节位移向量。in, is the knee joint displacement vector based on calf motion, is the ankle position vector calculated by the foot-based sensors, is the hip displacement vector calculated by the sensors placed in the thigh.

本发明提供的一种基于多传感器融合的人体步态分析方法和系统,与现有技术相比具有以下优点:A human gait analysis method and system based on multi-sensor fusion provided by the present invention has the following advantages compared with the prior art:

1、使用放置在小腿的辅助传感器显著提高了足部零速度更新算法的有效性。1. The use of auxiliary sensors placed on the lower leg significantly improves the effectiveness of the foot zero velocity update algorithm.

2、将机器人领域迪纳维特-哈坦伯格坐标变换方法应用在下肢运动模型,减少位置计算误差,提高了腿部位置信息的计算精度。2. Apply the Dynawirt-Hartenberg coordinate transformation method in the field of robotics to the lower limb motion model to reduce the position calculation error and improve the calculation accuracy of the leg position information.

3、将测算出的人体步态参数中的步速、步长、步频进行标准化处理,实现不同被测者步态数据具有横向可比性。对不同性别,不同年龄被测者的步态数据进行分位数回归分析,可以得到步态参数的变化趋势。3. Standardize the pace, step length, and stride frequency among the calculated human gait parameters, so as to realize the horizontal comparability of the gait data of different subjects. By performing quantile regression analysis on the gait data of subjects of different genders and ages, the changing trend of gait parameters can be obtained.

4、数据采集不依赖于外部设备,完全自容式存储,消除了无线传输模式数据丢包的弊端。4. Data acquisition does not depend on external equipment, and it is completely self-contained storage, which eliminates the disadvantages of data packet loss in wireless transmission mode.

5、测量精度高,灵敏度高,成本较低,方便操作者使用,可用于步态信息的精确测量和人体其他部位的运动信息检测。5. It has high measurement accuracy, high sensitivity, low cost, and is convenient for operators to use. It can be used for accurate measurement of gait information and detection of motion information of other parts of the human body.

附图说明Description of drawings

图1为本发明实施例提供的基于多传感器融合的人体步态分析方法的实现流程图;Fig. 1 is the implementation flowchart of the human gait analysis method based on multi-sensor fusion provided by the embodiment of the present invention;

图2为本发明实施例中传感器安装示意图;Fig. 2 is a schematic diagram of sensor installation in an embodiment of the present invention;

图3为本发明实施例中三轴加速度、三轴陀螺仪和三轴电子罗盘采集的数据示意图;3 is a schematic diagram of data collected by a three-axis acceleration, a three-axis gyroscope and a three-axis electronic compass in an embodiment of the present invention;

图4为本发明实施例中人体下肢传感器的坐标系变换示意图;Fig. 4 is a schematic diagram of the coordinate system transformation of the human lower limb sensor in the embodiment of the present invention;

图5为本发明实施例中实例1计算得到的被测者沿矩形路线行走两圈的三维方向角信息示意图;Fig. 5 is a schematic diagram of three-dimensional direction angle information of the subject who walks two circles along the rectangular route calculated in Example 1 in the embodiment of the present invention;

图6为本发明实施例中实例1计算得到的被测者沿直线行走十步的足部三维角度信息示意图;6 is a schematic diagram of the three-dimensional angle information of the foot of the measured person walking ten steps along a straight line calculated in Example 1 in the embodiment of the present invention;

图7为下肢疼痛与下肢关节旋转角度的关系示意图;Fig. 7 is a schematic diagram of the relationship between lower limb pain and lower limb joint rotation angle;

图8为本发明实施例中实例2计算得到的被测者攀登两层楼梯时三维坐标系下的步行轨迹示意图;Fig. 8 is the schematic diagram of the walking track under the three-dimensional coordinate system when the subject climbs two floors of stairs calculated by Example 2 in the embodiment of the present invention;

图9为本发明实施例提供的基于多传感器融合的人体步态分析系统的结构图。FIG. 9 is a structural diagram of a human gait analysis system based on multi-sensor fusion provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明解决的技术问题、采用的技术方案和达到的技术效果更加清楚,下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。In order to make the technical problems solved by the present invention, the technical solutions adopted and the technical effects achieved clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.

实施例一Embodiment one

图1为本发明实施例提供的基于多传感器融合的人体步态分析方法的实现流程图。本发明实施例提供的基于多传感器融合的人体步态分析方法可以由本发明实施例提供的基于多传感器融合的人体步态分析系统来执行,该系统可以由软件和/或硬件来实现。如图1所示,本发明实施例提供的基于多传感器融合的人体步态分析方法包括:Fig. 1 is a flow chart of the realization of the human gait analysis method based on multi-sensor fusion provided by the embodiment of the present invention. The human gait analysis method based on multi-sensor fusion provided by the embodiment of the present invention can be executed by the human gait analysis system based on multi-sensor fusion provided by the embodiment of the present invention, and the system can be realized by software and/or hardware. As shown in Figure 1, the human gait analysis method based on multi-sensor fusion provided by the embodiment of the present invention includes:

步骤100,利用传感器采集人体步行过程中下肢的运动信号和三维地磁场分量信号。Step 100, using sensors to collect movement signals of lower limbs and three-dimensional geomagnetic field component signals during human walking.

其中,所述运动信号包括三维加速度信号和三维角速度信号。具体的,通过三维转台和三维导轨对传感器进行标定;采集人体步行过程中下肢的运动信号和三维地磁场分量信号;对采集到的运动信号以及三维地磁场分量信号进行去噪声处理;将采集到的运动信号和三维地磁场分量信号保存到存储设备中。其中,去噪声处理可以包括对检测到的三维加速度信号、三维角速度信号以及三维地磁场分量信号进行高通(0.001赫兹)滤波,低通(5赫兹)滤波和陷波(50赫兹)处理。图2为本发明实施例中传感器安装示意图。参照图2,可以通过三轴加速度计和三轴陀螺仪采集人体步行过程中下肢的运动信号,通过三轴电子罗盘采集人体步行过程中的三维地磁场分量信号;三轴加速度计、三轴陀螺仪以及三轴电子罗盘安装在人体大腿中段、小腿中段和足背位置。图3为本发明实施例中三轴加速度、三轴陀螺仪和三轴电子罗盘采集的数据示意图。将三轴加速度、三轴陀螺仪和三轴电子罗盘采集的数据用计算机进行处理可得到图3。图3中X、Y和Z分别代表传感器的三个相互正交的坐标轴,VPT代表运动信号能量,用于检测步行开始时刻,ZUPT代表零速度更新算法开关信号。Wherein, the motion signal includes a three-dimensional acceleration signal and a three-dimensional angular velocity signal. Specifically, the sensor is calibrated through the three-dimensional turntable and the three-dimensional guide rail; the motion signal of the lower limbs and the three-dimensional geomagnetic field component signal during human walking are collected; the collected motion signal and the three-dimensional geomagnetic field component signal are de-noised; the collected The motion signal and the three-dimensional geomagnetic field component signal are stored in the storage device. Wherein, the denoising processing may include performing high-pass (0.001 Hz) filtering, low-pass (5 Hz) filtering and notch wave (50 Hz) processing on the detected three-dimensional acceleration signal, three-dimensional angular velocity signal and three-dimensional geomagnetic field component signal. Fig. 2 is a schematic diagram of sensor installation in the embodiment of the present invention. Referring to Figure 2, the movement signals of the lower limbs during human walking can be collected through the three-axis accelerometer and the three-axis gyroscope, and the three-dimensional geomagnetic field component signals during the human walking process can be collected through the three-axis electronic compass; the three-axis accelerometer, three-axis gyroscope The instrument and the three-axis electronic compass are installed on the mid-thigh, mid-calf and instep of the human body. Fig. 3 is a schematic diagram of data collected by a three-axis acceleration, a three-axis gyroscope and a three-axis electronic compass in an embodiment of the present invention. Figure 3 can be obtained by processing the data collected by the three-axis acceleration, three-axis gyroscope and three-axis electronic compass with a computer. In Figure 3, X, Y, and Z represent the three mutually orthogonal coordinate axes of the sensor, VPT represents the energy of the motion signal, which is used to detect the starting moment of walking, and ZUPT represents the switch signal of the zero speed update algorithm.

为了采集数据的准确性,在采集数据之前可以通过三维转台和三维导轨对传感器进行标定,目的是避免因传感器基线漂移带来的误差。标定的具体过程为:加速度计静态参数标定,利用重力g,使传感器每个轴分别与重力方向重合,检测传感器输出与g的偏差量;加速度计动态参数标定,利用三维导轨,施加额定方向的加速度,将传感器分别固定于导轨三个轴向,感应导轨由于电机牵引皮带产生的固定加速度,与传感器输出量进行比对计算得到偏差量;陀螺仪静态参数标定,传感器静置,三轴输出应该为零,若不为零,分别记录每个轴向的偏差量;陀螺仪动态参数标定,传感器固定于转台上,使传感器重心与转台中心重和,分别使陀螺仪的三轴与转台转轴重合,打开电机对转台施加固定转速,记录陀螺仪输出值与转台转速对比得到偏移量。所述偏移量在后续计算公式中进行消除,从而消除传感器固有误差。For the accuracy of data collection, the sensor can be calibrated through the three-dimensional turntable and three-dimensional guide rail before collecting data, in order to avoid errors caused by sensor baseline drift. The specific process of calibration is: the static parameter calibration of the accelerometer, using the gravity g to make each axis of the sensor coincide with the gravity direction, and detecting the deviation between the sensor output and g; the dynamic parameter calibration of the accelerometer, using the three-dimensional guide rail, applying Acceleration, the sensor is respectively fixed on the three axes of the guide rail, and the fixed acceleration generated by the induction guide rail due to the motor traction belt is compared with the output of the sensor to calculate the deviation; the static parameter calibration of the gyroscope, the sensor is static, and the output of the three axes should be If it is not zero, record the deviation of each axis separately; gyroscope dynamic parameter calibration, the sensor is fixed on the turntable, so that the center of gravity of the sensor and the center of the turntable are reconciled, and the three axes of the gyroscope coincide with the rotation axis of the turntable , turn on the motor to apply a fixed speed to the turntable, record the output value of the gyroscope and compare the speed of the turntable to obtain the offset. The offset is eliminated in the subsequent calculation formula, thereby eliminating the inherent error of the sensor.

具体的,采集到的人体步行过程中下肢的运动信号(三维加速度信号和三维角速度信号)和三维地磁场分量信号的数据保存在移动存储卡(SD卡),之后通过读卡器传送到对数据进行分析处理的设备中。Specifically, the collected motion signals (three-dimensional acceleration signals and three-dimensional angular velocity signals) and three-dimensional geomagnetic field component signals of the lower limbs during human walking are stored in a mobile memory card (SD card), and then transmitted to the data center through a card reader. in equipment for analytical processing.

步骤200,根据采集的运动信号和三维地磁场分量信号,获得人体的初始姿态,根据人体的初始姿态获得传感器坐标系与地面坐标系的偏差量,利用所述偏差量修正由传感器坐标系变换到地面坐标系的旋转矩阵,以对俯仰角、滚转角和偏航角进行补偿,并获得补偿后的人体初始方位信息。Step 200, obtain the initial posture of the human body according to the collected motion signal and the three-dimensional geomagnetic field component signal, obtain the deviation between the sensor coordinate system and the ground coordinate system according to the initial posture of the human body, and use the deviation to correct the transformation from the sensor coordinate system to The rotation matrix of the ground coordinate system is used to compensate the pitch angle, roll angle and yaw angle, and obtain the initial orientation information of the human body after compensation.

其中,所述初始姿态包括人体初始静止站立状态的俯仰角、滚转角和偏航角。测量开始时被测者处于静止站立状态,通过测量重力在矢平面和水平面的分量得到俯仰角和滚转角,电子罗盘测量地球磁场在传感器三个平面的分量来计算初始偏航角。具体的过程为:以重力加速度g作为参考向量,获得重力加速度在矢平面和水平面的分量进而到俯仰角和滚转角;以地磁场矢量在当地水平面的分量H作为参考向量,通过三轴电子罗盘的水平方向X轴和Y轴的测量值Hx和Hy与H的比值来计算初始方位与正北方向的夹角,进而获得偏航角。Wherein, the initial posture includes the pitch angle, roll angle and yaw angle of the human body's initial static standing state. At the beginning of the measurement, the subject is standing still. The pitch angle and roll angle are obtained by measuring the components of gravity on the sagittal plane and the horizontal plane. The electronic compass measures the components of the earth's magnetic field on the three planes of the sensor to calculate the initial yaw angle. The specific process is: take the gravitational acceleration g as the reference vector, obtain the components of the gravitational acceleration on the sagittal plane and the horizontal plane, and then get the pitch angle and roll angle; take the component H of the geomagnetic field vector on the local horizontal plane as the reference vector, and use the three-axis electronic compass The ratio of the measured values H x and H y of the horizontal X-axis and Y-axis to H is used to calculate the angle between the initial azimuth and the true north direction, and then obtain the yaw angle.

图4为本发明实施例中人体下肢传感器的坐标系变换示意图。参照图4,人体处于静止站立状态的时候,在地面参考坐标系中,重力加速度向量为[0,0,g]T,经过旋转矩阵到传感器坐标系的计算值为[x,y,z]T,在传感器坐标系中加速度的测量值为[a,b,c]T、[x,y,z]T和[a,b,c]T均表示在传感器坐标系中重力加速度向量,对这两个向量做向量积可得到误差[ex,ey,ez]T,利用这个误差向量即可修正旋转矩阵。修正后的传感器坐标系如图4。上述修正只是把地面参考坐标系和传感器坐标系的X-O-Y平面重合起来,对于绕Z轴的旋转,也即偏航角,加速度计无计可施,其测量值始终为[0,0,g]T,只能依靠磁力计来进一步做补偿。三轴电子罗盘测量对象为磁场矢量,在较纯净的电磁环境下,电子罗盘测量对象为地磁场,地磁场的方向与水平面呈一个夹角,地磁场在三个平面的分量记为[u,v,w]T,如果传感器的X轴对准正北方向,则v=0,地磁分量即为[u,0,w]T,电子罗盘在传感器坐标系的输出为[i,j,k]T,经过加速度计补偿(坐标系旋转)之后得到[i′,j′,k′]T,在地面参考坐标系的X-O-Y平面上,[u,0,w]T的投影为u,[i′,j′,k′]T的投影为地磁在X-O-Y平面的投影向量大小必然是相同的,所以有同时w=k′,这样处理后的[i′,j′,k′]T经过旋转矩阵的转置回转到传感器坐标系,得到的向量与[i,j,k]T做向量积求误差,再次修正旋转矩阵,完成对偏航角补偿,使用所述偏差量修正后可以得到精确的初始四元数。初始四元数用来描述被测对象的初始的方位信息,被测对象的方位变化可以在初始四元数的基础上通过四元数乘法计算得出。初始四元数的理论值为[1,0,0,0]TFig. 4 is a schematic diagram of the coordinate system transformation of the human lower limb sensor in the embodiment of the present invention. Referring to Figure 4, when the human body is standing still, in the ground reference coordinate system, the gravitational acceleration vector is [0,0,g] T , and the calculated value from the rotation matrix to the sensor coordinate system is [x,y,z] T , the measured value of acceleration in the sensor coordinate system is [a,b,c] T , [x,y,z] T and [a,b,c] T all represent the gravitational acceleration vector in the sensor coordinate system, for The error [e x , e y , e z ] T can be obtained by doing the vector product of these two vectors, and the rotation matrix can be corrected by using this error vector. The corrected sensor coordinate system is shown in Figure 4. The above correction is only to coincide the XOY plane of the ground reference coordinate system and the sensor coordinate system. For the rotation around the Z axis, that is, the yaw angle, the accelerometer has nothing to do, and its measured value is always [0,0,g] T , only Magnetometers can be relied upon for further compensation. The measurement object of the three-axis electronic compass is the magnetic field vector. In a relatively pure electromagnetic environment, the measurement object of the electronic compass is the geomagnetic field. The direction of the geomagnetic field forms an included angle with the horizontal plane. The components of the geomagnetic field in the three planes are recorded as [u, v,w] T , if the X axis of the sensor is aligned with the true north direction, then v=0, the geomagnetic component is [u,0,w] T , and the output of the electronic compass in the sensor coordinate system is [i,j,k ] T , after accelerometer compensation (coordinate system rotation), [i′,j′,k′] T is obtained. On the XOY plane of the ground reference coordinate system, the projection of [u,0,w] T is u, [ i′,j′,k′] The projection of T is The size of the projection vectors of the geomagnetic field on the XOY plane must be the same, so there is At the same time w=k', the processed [i',j',k'] T is transferred to the sensor coordinate system through the transposition of the rotation matrix, and the obtained vector is vector product with [i,j,k] T to find the error , modify the rotation matrix again to complete the compensation of the yaw angle, and the accurate initial quaternion can be obtained after using the deviation correction. The initial quaternion is used to describe the initial orientation information of the measured object, and the orientation change of the measured object can be calculated by quaternion multiplication on the basis of the initial quaternion. The theoretical value of the initial quaternion is [1,0,0,0] T .

步骤300,根据采集到的运动信号以及修正的旋转矩阵,获得人体从静止站立状态切换到行走状态的开始时刻,并从所述开始时刻开始使用扩展的卡尔曼滤波器进行传感器数据融合,更新人体方位信息,并根据采集的运动信号检测人体步行过程中的步态时相,进而获得人体步态参数。Step 300, according to the collected motion signal and the corrected rotation matrix, obtain the starting moment when the human body switches from the standing state to the walking state, and use the extended Kalman filter to perform sensor data fusion from the starting moment to update the human body Orientation information, and detect the gait phase of the human body in the process of walking according to the collected motion signals, and then obtain the human body gait parameters.

其中,人体从静止站立状态切换到行走状态的开始时刻,即迈出第一步的时刻,获得人体从静止站立状态切换到行走状态的开始时刻的方式是:通过加速度能量信号阈值检测来实现的。在被测者从静止状态切换到步行状态时,通过计算加速度信号能量与预设的阈值λ做比较,当加速度信号能量第一次大于阈值λ的时刻,就是人体行走的开始时刻,公式中,ax表示加速度计输出信号在地面坐标系X轴的分量,ay表示加速度计输出信号在地面坐标系Y轴的分量,az表示加速度计输出信号在地面坐标系Z轴的分量。Among them, the starting moment when the human body switches from the standing still state to the walking state, that is, the moment when the first step is taken, the way to obtain the starting moment when the human body switches from the standing still state to the walking state is: through the acceleration energy signal threshold detection. . When the subject switches from a stationary state to a walking state, by calculating the energy of the acceleration signal Compared with the preset threshold λ, when the energy of the acceleration signal is greater than the threshold λ for the first time, it is the moment when the human body starts to walk. In the formula, a x represents the component of the accelerometer output signal on the X-axis of the ground coordinate system, a y Indicates the component of the accelerometer output signal on the Y-axis of the ground coordinate system, and a z indicates the component of the accelerometer output signal on the Z-axis of the ground coordinate system.

从所述开始时刻,开始使用扩展的卡尔曼滤波器进行传感器数据融合,更新人体方位信息,并根据采集的运动信号检测人体步行过程中的步态时相,进而获得人体步态参数。扩展的卡尔曼滤波器是一种最优化的自回归数据处理算法。本发明中利用扩展的卡尔曼滤波器在滤波值附近,应用泰勒展开算法将非线性系统展开,将二阶以上的高阶项全部舍去,从而原系统就变成了一个线性系统,再利用标准卡尔曼滤波算法的思想对系统线性化模型进行滤波融合,从而实现传感器数据融合。使用扩展的卡尔曼滤波器进行传感器数据融合之后,更新人体方位信息,即更新四元数,并根据采集的运动信号检测人体步行过程中的步态时相,进而获得人体步态参数。其中,步态时相包括支撑时相和摆动时相,支撑时相分为脚跟击地期、站立相中期、完全站立期和脚跟离地期,摆动时相分为加速期、摆动期和减速期。例如,通过图3可以分析人体的步态时相。人体步态参数包括人体行走过程中的步速、步长、步频、步行周期和步行轨迹。获得人体步态参数的过程为:对三维加速度向量进行积分运算得到三维速度向量,之后对三维速度向量进行积分得到三维位移向量;结合计算得出的步行周期信息,可以计算出步速、步长和步频参数;通过四元数与欧拉角的关系,可以计算出三维方位角;综合所述三维位移向量和方位角,使用三维坐标轴对整个步行过程进行描述即可得到步行轨迹。初始足部三维位置设定为[X0,Y0,Z0]T,通过对三维速度向量积分将每一个数据采样时刻的足部位置信息更新为[Xt,Yt,Zt]T,所述方位角包括步行过程中足部运动滚转角、俯仰角和偏航角。由初始四元数规定的初始方位通过陀螺仪检测的角速度信息,使用四元数乘法运算将方位更新为综合所述三维位置和方位角可以得到步行轨迹。From the start moment, the extended Kalman filter is used for sensor data fusion, the orientation information of the human body is updated, and the gait phase in the process of human walking is detected according to the collected motion signals, and then the gait parameters of the human body are obtained. The extended Kalman filter is an optimal autoregressive data processing algorithm. In the present invention, the extended Kalman filter is used in the vicinity of the filter value, and the Taylor expansion algorithm is used to expand the nonlinear system, and all the higher-order items above the second order are discarded, so that the original system becomes a linear system, and the reuse The idea of the standard Kalman filter algorithm is to filter and fuse the linearized model of the system to achieve sensor data fusion. After using the extended Kalman filter for sensor data fusion, the orientation information of the human body is updated, that is, the quaternion is updated, and the gait phase in the process of human walking is detected according to the collected motion signals, and then the gait parameters of the human body are obtained. Among them, the gait phase includes the support phase and the swing phase. The support phase is divided into the heel strike phase, the middle stance phase, the full stance phase and the heel off the ground phase. The swing phase is divided into the acceleration phase, the swing phase and the deceleration phase. Expect. For example, the gait phase of the human body can be analyzed through Fig. 3 . Human gait parameters include pace, step length, stride frequency, walking cycle and walking trajectory during human walking. The process of obtaining human gait parameters is as follows: the three-dimensional acceleration vector is integrated to obtain the three-dimensional velocity vector, and then the three-dimensional velocity vector is integrated to obtain the three-dimensional displacement vector; combined with the calculated walking cycle information, the pace and step length can be calculated and step frequency parameters; through the relationship between the quaternion and the Euler angle, the three-dimensional azimuth angle can be calculated; the three-dimensional displacement vector and the azimuth angle can be integrated, and the whole walking process can be described using the three-dimensional coordinate axis to obtain the walking track. The initial three-dimensional position of the foot is set to [X 0 , Y 0 , Z 0 ] T , and the foot position information at each data sampling moment is updated to [X t , Y t , Z t ] T by integrating the three-dimensional velocity vector , the azimuth angle includes the foot movement roll angle, pitch angle and yaw angle during walking. the initial orientation specified by the initial quaternion Using the angular velocity information detected by the gyroscope, use the quaternion multiplication operation to update the orientation as Combining the three-dimensional position and azimuth angle can obtain the walking trajectory.

步骤400,消除传感器误差积累,更新人体步态参数。Step 400, eliminate sensor error accumulation, and update human gait parameters.

由于步骤300中的两次积分运算会产生并且放大积分误差,在步行过程中每一步的站立相中期,如果满足零速度更新算法条件,就根据足部完全贴合地面时刻的速度和加速度均为零的特定域假设消除传感器误差积累,使人体步态参数更准确,误差限制在步行运动的每一小步之内,最大限度减少误差。Since the two integral calculations in step 300 will generate and amplify the integral error, in the middle of the stance phase of each step in the walking process, if the zero-velocity update algorithm condition is satisfied, the velocity and acceleration at the moment when the foot is completely attached to the ground are equal to The specific domain assumption of zero eliminates the accumulation of sensor errors, making the human gait parameters more accurate, and the error is limited within each small step of walking motion, minimizing the error.

当检测到站立相中期小腿与地面垂直的时刻时,以着地的腿作为摆动轴被测者身体重心前移,对整个人体建立一级倒立摆模型,执行零速度更新算法消除误差,并更新获得的人体步态参数。具体过程为:步行过程中,人体以单脚支撑地面,以着地的那条腿作为摆动轴被测者身体重心前移,对整个人体可以建立一级倒立摆模型,根据倒立摆模型的重力势能在最高点达到最大值,速度达到最小值的原理,结合安置在小腿部位的传感器加速度信号找到站立相腿部速度最小时刻,此时刻即为适用零速度更新算法的起始时刻。利用小腿处固定的传感器检测速度最小时刻,确定此处为小腿与地面垂直时刻,也即零速度更新算法开始执行的时刻。执行零速度更新算法消除误差,避免积分误差引入到下一个步态周期,能够提高零速度更新算法的有效性。When the moment when the calf is vertical to the ground in the middle stage of the stance phase is detected, the center of gravity of the subject’s body moves forward with the leg on the ground as the swing axis, and a first-order inverted pendulum model is established for the entire human body, and the zero-velocity update algorithm is executed to eliminate the error and update to obtain human gait parameters. The specific process is: in the process of walking, the human body supports the ground with one foot, and the center of gravity of the subject's body moves forward with the leg on the ground as the swing axis. A first-level inverted pendulum model can be established for the entire human body. According to the gravitational potential energy of the inverted pendulum model The principle of reaching the maximum value at the highest point and the minimum value of the speed, combined with the acceleration signal of the sensor placed on the lower leg to find the minimum leg speed moment in the standing phase, this moment is the starting moment for the zero-speed update algorithm. Use the fixed sensor at the calf to detect the minimum speed moment, and determine that this is the moment when the calf is perpendicular to the ground, that is, the moment when the zero-speed update algorithm starts to execute. Executing the zero-velocity update algorithm eliminates errors and avoids introducing integral errors into the next gait cycle, which can improve the effectiveness of the zero-velocity update algorithm.

当检测到完全站立期时,足部完全贴合地面,足部、小腿和大腿可视为通过铰链关节连接的刚体,使用迪纳维特-哈坦伯格法(Denavit-Hartenberg)建立下肢运动学模型,并融合腿部的运动信号和足部的运动信号,以消除误差,并更新获得的人体步态参数。具体过程为:参照图2,结合大腿,小腿和足部的生理学限制和联动关系,比如膝关节只有一个活动自由度,踝关节具有三个活动自由度,对于无法直接使用零速度更新算法的腿部传感器定位,使用迪纳维特-哈坦伯格法建立下肢运动学模型,通过下肢运动学模型建立的两个约束条件,来减少腿部传感器位置和方位角估算误差。下肢运动学模型的两个约束条件为:When the full stance phase is detected, the foot is fully attached to the ground, and the foot, calf, and thigh can be considered as rigid bodies connected by hinge joints, and the lower body kinematics are established using the Denavit-Hartenberg method model, and fuse the motion signal of the leg and the motion signal of the foot to eliminate the error and update the obtained human gait parameters. The specific process is as follows: Referring to Figure 2, combined with the physiological constraints and linkage relationship of the thigh, calf and foot, for example, the knee joint has only one degree of freedom of movement, and the ankle joint has three degrees of freedom of movement. For legs that cannot directly use the zero-velocity update algorithm The lower limb kinematics model is established using the Dinavitt-Hartenberg method, and the two constraints established by the lower limb kinematics model are used to reduce the position and azimuth estimation errors of the leg sensor. The two constraints of the lower limb kinematics model are:

其中,表示基于小腿运动的膝关节位移向量,表示基于足部的传感器计算出的脚踝位置向量,表示通过置于大腿部位的传感器计算出的髋关节位移向量,in, represents the knee joint displacement vector based on the calf motion, represents the ankle position vector calculated by the foot-based sensors, represents the hip displacement vector calculated by the sensors placed in the thigh,

其中,α、β、γ分别为绕X、Y、Z轴旋转的欧拉角,L1为通过人体测量器测出的小腿长度。Among them, α, β, and γ are the Euler angles around the X, Y, and Z axes respectively, and L 1 is the length of the calf measured by the anthropometer.

步骤500,对获得的人体步态参数进行标准化处理,进而建立人体步态数据库。Step 500, standardize the acquired human gait parameters, and then establish a human gait database.

由于每个人都会本能地选择最适合其运动能力的步速,步长和步频,步速的显著下降是一个明显的病理指标。所以对实验获得的大量步速、步长、步频进行标准化处理,需要考虑身高对检测结果的影响。很明显步速与下肢长度l0密切正相关,l0难以准确测量,于是用身高l1代替,被测者平均身高记为Lm。对获得的人体步态参数进行标准化处理的过程为:通过公式对步速进行标准化,通过公式对步长进行标准化,通过公式对步频进行标准化,其中,l1为被测者身高,lm为被测者所属年龄段人群的平均身高;V为对传感器信号积分运算得到的被测者步速,Vrel为标准步速,单位是米/秒,L为对步速积分运算得到的步长,Lrel为标准步长,单位是米/步,C为通过步行周期计算出的被测者单位时间内行走的步频,Crel为标准步频,单位是步/秒,明显偏离标准范围的步态指标意味着不稳定的步态。对计算出的步速、步长和步频参数进行标准化处理,能够使计算出的步态参数具有横向可比性。Since everyone instinctively chooses the pace, length, and frequency that best suit their athletic ability, a significant decrease in pace is a clear indicator of pathology. Therefore, it is necessary to consider the influence of height on the detection results when standardizing a large number of paces, step lengths, and stride frequencies obtained in experiments. It is obvious that the pace is closely positively correlated with the length of the lower limbs l 0 , l 0 is difficult to measure accurately, so the height l 1 is used instead, and the average height of the subjects is recorded as L m . The process of standardizing the obtained human gait parameters is as follows: through the formula To normalize the pace, through the formula To normalize the step size, through the formula Standardize the stride frequency, where l 1 is the height of the testee, l m is the average height of the age group of the testee; V is the pace of the testee obtained by integrating the sensor signal, V rel is the standard step Speed, the unit is m/s, L is the step length obtained by integrating the step speed, L rel is the standard step length, the unit is m/step, C is the step that the subject walks per unit time calculated through the walking cycle C rel is the standard stride frequency, and the unit is steps per second. A gait index that deviates significantly from the standard range means an unstable gait. Normalizing the calculated parameters of stride speed, stride length and stride frequency enables lateral comparability of the calculated gait parameters.

通过建立步速、步长、步频、步行周期和步行轨迹等人体步态参数的数据库,对不同性别,不同年龄被测者,能够实现对海量步态数据进行分位数回归分析,得出人体步态参数的变化趋势。并且可以将计算出的步速、步长、步频、步行轨迹等步态参数以饼图、柱状图和雷达图等形式直观地显示在数据库界面。By establishing a database of human gait parameters such as pace speed, step length, stride frequency, walking cycle, and walking trajectory, it is possible to perform quantile regression analysis on massive gait data for subjects of different genders and ages, and obtain Trends in human gait parameters. And the calculated gait parameters such as pace, step length, stride frequency, and walking trajectory can be intuitively displayed on the database interface in the form of pie charts, histograms, and radar charts.

本发明提供的基于多传感器融合的人体步态分析方法,不仅适用于平地行走,对于上下楼梯运动同样适用。下面以实例的形式对本实施例提供的方案进行说明:The human body gait analysis method based on multi-sensor fusion provided by the present invention is not only suitable for walking on flat ground, but also suitable for moving up and down stairs. The scheme provided by this embodiment is described below in the form of an example:

实例1,在室内平地行走的实施例中,被测者在绑定步态分析系统之后执行一次“跺脚”动作,使被测者佩戴的传感器感应到一个明显的起始信号,这个信号用来完成视频跟踪系统VICON和传感器的数据同步。随后的两组实验分别是:被测者沿着光学跟踪系统VICON测量区域内的矩形路线行走两圈;被测者以自己舒适的步伐沿直线行走十步。上位机为数据计算和输出终端,通过移动存储介质将下位机采集到的数据传入步态分析上位机软件,计算得到各项步态参数。数据分析与处理流程如图1所示。下位机采集的步态数据上传到上位机步态分析软件,首先经过高通和低通数字滤波处理,滤去与步态分析应用无关的高频和低频信号。由于被测者在测量开始必然有静止站立的阶段,满足系统初始化条件,此时加速度计仅感受重力加速度,利用加速度计读数计算出初始俯仰角和滚转角。利用电子罗盘检测地磁分量,计算初始偏航角。在步行开始后的站立相中期使用零速度更新算法消除误差。图5为本发明实施例中实例1计算得到的被测者沿矩形路线步行两圈的三维方向角度信息,将图5的计算结果与视频跟踪系统计算的数值对比,角度误差小于2°,说明本方法可以长时间精确计算步态信息。为了获得足部角度细节,排除步行方向改变的影响,被测者按照自己舒服的步伐沿直线行走十步,通过置于足部的传感器计算其步行过程中足角的变化,可以评估足内旋或者足外翻的程度,帮助被测者选择合适的鞋子。图6为本发明实施例中实例1被测者直线行走时足部三维角度信息示意图。图7为下肢疼痛与下肢关节旋转角度的关系示意图。Example 1, in the embodiment of indoor walking on flat ground, the subject performs a "stomp" action after binding the gait analysis system, so that the sensor worn by the subject senses an obvious initial signal, which is used to Complete the data synchronization between the video tracking system VICON and the sensor. The following two groups of experiments were: the subject walked two circles along the rectangular route in the VICON measurement area of the optical tracking system; the subject walked ten steps along a straight line at his own comfortable pace. The upper computer is the data calculation and output terminal, and the data collected by the lower computer is transmitted to the gait analysis upper computer software through the mobile storage medium, and various gait parameters are calculated. The flow chart of data analysis and processing is shown in Figure 1. The gait data collected by the lower computer is uploaded to the upper computer gait analysis software, and firstly processed by high-pass and low-pass digital filters to filter out high-frequency and low-frequency signals irrelevant to the application of gait analysis. Since the subject must stand still at the beginning of the measurement, the system initialization conditions are met. At this time, the accelerometer only feels the acceleration of gravity, and the initial pitch angle and roll angle are calculated using the accelerometer readings. Use the electronic compass to detect the geomagnetic component and calculate the initial yaw angle. Errors were eliminated using a zero-velocity update algorithm in the middle of the stance phase after the onset of walking. Fig. 5 is the three-dimensional direction angle information obtained by the subject calculated in Example 1 in the embodiment of the present invention and walks two circles along the rectangular route. The calculation result in Fig. 5 is compared with the numerical value calculated by the video tracking system, and the angle error is less than 2°, indicating that This method can accurately calculate gait information for a long time. In order to obtain the details of the foot angle and exclude the influence of changes in the walking direction, the subject walked ten steps in a straight line according to his own comfortable pace, and the sensor placed on the foot calculated the change of the foot angle during walking, and the internal rotation of the foot could be evaluated Or the degree of foot eversion, to help the subject choose the right shoes. FIG. 6 is a schematic diagram of the three-dimensional angle information of the foot of the subject in Example 1 walking straight in the embodiment of the present invention. Fig. 7 is a schematic diagram of the relationship between lower limb pain and lower limb joint rotation angle.

实例2,在本实施例中,被测者完成攀登两层楼梯的运动,采集到的数据首先存储在SD卡,实验结束之后通过读卡器传入步态分析上位机软件,计算各项参数。在单位时间内对同一被测者多次进行楼梯运动实验,可以评估其耐力。楼梯运动能提高心血管功能,强壮心肌收缩力,提高肺功能,增加肺活量,发展下肢肌肉力量,提高膝关节韧性。楼梯运动能力间接反映被测者的心血管和肺功能指标,以及下肢关节的强度和韧性。图8为本发明实施例中实例2计算得到的被测者攀登两层楼梯时三维坐标系下的步行轨迹示意图。Example 2, in this embodiment, the subject completes the movement of climbing two floors of stairs, and the collected data is first stored in the SD card. After the experiment is over, the card reader is passed into the gait analysis host computer software to calculate various parameters . The endurance of stair exercise can be evaluated by performing the stair exercise experiment on the same subject several times per unit time. Stair exercise can improve cardiovascular function, strengthen myocardial contractility, improve lung function, increase lung capacity, develop lower limb muscle strength, and improve knee joint toughness. The stair exercise capacity indirectly reflects the subjects' cardiovascular and pulmonary function indicators, as well as the strength and toughness of the joints of the lower extremities. FIG. 8 is a schematic diagram of the walking track in the three-dimensional coordinate system when the subject climbs two floors of stairs calculated in Example 2 of the embodiment of the present invention.

本实施例提供的基于多传感器融合的人体步态分析方法,能够解决现有技术使用零速度更新算法的有效性问题,通过融合足部和腿部的传感器数据,能够精确地找到适用零速度更新算法的起始时刻,基于足部完全贴合地面的时刻速度和加速度均为零的特定域假设减少误差或误差积累,将误差限制在步行过程的每一小步中,避免了误差积累;针对腿部位置计算不适用零速度更新算法的情况,能够通过下肢的拓扑结构模型建立的约束条件,达到减少位置计算误差的效果。针对身高因素对于步态参数的影响,本发明对步速、步长和步频参数进行标准化处理,能够消除身高因素对步态参数的影响,达到不同人的步态参数具有可比性的效果。对标准化的步态参数汇总建立步态数据库,通过分位数回归分析可以得到人体步态参数随性别,年龄的变化趋势。本实施例提供的方法能够精确找到适用零速度更新算法的起始时刻,保证零速度更新算法的有效性,从而降低积分误差,提高步态参数计算的可靠性。本发明提供的方法也可以用于人体其他肢体部位的运动信息测量。The human gait analysis method based on multi-sensor fusion provided by this embodiment can solve the problem of the validity of the zero-velocity update algorithm used in the prior art, and can accurately find the suitable zero-velocity update algorithm by fusing the sensor data of feet and legs. At the initial moment of the algorithm, based on the specific domain assumption that the speed and acceleration are zero when the foot is completely attached to the ground, the error or error accumulation is reduced, and the error is limited to each small step in the walking process to avoid error accumulation; In the case where the zero-velocity update algorithm is not applicable to the calculation of the leg position, the constraint conditions established by the topological structure model of the lower limbs can be used to reduce the position calculation error. Aiming at the influence of the height factor on the gait parameters, the present invention standardizes the parameters of the pace, step length and stride frequency, which can eliminate the influence of the height factor on the gait parameters and achieve the effect that the gait parameters of different people are comparable. The gait database is established by summarizing standardized gait parameters, and the variation trend of human gait parameters with gender and age can be obtained through quantile regression analysis. The method provided in this embodiment can accurately find the initial moment for which the zero-speed update algorithm is applicable, and ensure the validity of the zero-speed update algorithm, thereby reducing integral errors and improving the reliability of gait parameter calculation. The method provided by the invention can also be used for the measurement of motion information of other body parts.

实施例二Embodiment two

图9为本发明实施例提供的基于多传感器融合的人体步态分析系统的结构示意图。如图9所示,本发明实施例提供的基于多传感器融合的人体步态分析系统包括:数据采集装置和数据分析处理装置,数据采集装置用于利用传感器采集人体步行过程中下肢的运动信号和三维地磁场分量信号,所述运动信号包括三维加速度和三维角速度;所述数据分析处理装置包括初始姿态分析单元、步态参数计算单元和误差矫正单元;FIG. 9 is a schematic structural diagram of a human gait analysis system based on multi-sensor fusion provided by an embodiment of the present invention. As shown in Figure 9, the human gait analysis system based on multi-sensor fusion provided by the embodiment of the present invention includes: a data acquisition device and a data analysis and processing device, the data acquisition device is used to use sensors to collect movement signals and The three-dimensional geomagnetic field component signal, the motion signal includes three-dimensional acceleration and three-dimensional angular velocity; the data analysis and processing device includes an initial posture analysis unit, a gait parameter calculation unit and an error correction unit;

初始姿态分析单元,用于根据采集的运动信号和三维地磁场分量信号,获得人体的初始姿态,所述运动信号包括三维加速度信号和三维角速度信号,根据人体的初始姿态获得传感器坐标系与地面坐标系的偏差量,利用所述偏差量修正由传感器坐标系变换到地面坐标系的旋转矩阵,以对俯仰角、滚转角和偏航角进行补偿,并获得补偿后的人体初始方位信息;The initial posture analysis unit is used to obtain the initial posture of the human body according to the collected motion signal and the three-dimensional geomagnetic field component signal, the motion signal includes the three-dimensional acceleration signal and the three-dimensional angular velocity signal, and obtains the sensor coordinate system and the ground coordinate according to the initial posture of the human body System deviation, using the deviation to modify the rotation matrix transformed from the sensor coordinate system to the ground coordinate system, to compensate the pitch angle, roll angle and yaw angle, and obtain the compensated initial orientation information of the human body;

步态参数计算单元,用于根据采集到的运动信号以及修正的旋转矩阵,获得人体从静止站立状态切换到行走状态的开始时刻,并从所述开始时刻开始使用扩展的卡尔曼滤波器进行传感器数据融合,更新人体方位信息,并根据采集的运动信号检测人体步行过程中的步态时相,进而获得人体步态参数,其中,所述步态时相包括支撑时相和摆动时相,支撑时相分为脚跟击地期、站立相中期、完全站立期和脚跟离地期,摆动时相分为加速期、摆动期和减速期;所述人体步态参数包括人体行走过程中的步速、步长、步频、步行周期和步行轨迹;The gait parameter calculation unit is used to obtain the start moment when the human body switches from the standing state to the walking state according to the collected motion signal and the corrected rotation matrix, and use the extended Kalman filter to perform sensor Data fusion, update the orientation information of the human body, and detect the gait phase in the process of human walking according to the collected motion signals, and then obtain the gait parameters of the human body, wherein the gait phase includes the support phase and the swing phase, and the support phase The phases are divided into the heel-strike phase, the middle phase of the stance phase, the complete standing phase and the heel-off phase, and the swing phase is divided into the acceleration phase, the swing phase and the deceleration phase; , step length, stride frequency, walking cycle and walking trajectory;

误差矫正单元,用于消除传感器误差积累,更新人体步态参数,包括:当检测到站立相中期小腿与地面垂直的时刻时,以着地的腿作为摆动轴被测者身体重心前移,对整个人体建立一级倒立摆模型,执行零速度更新算法消除误差,并更新获得的人体步态参数;当检测到完全站立期时,足部完全贴合地面,足部小腿和大腿形成通过铰链关节连接的刚体,使用迪纳维特-哈坦伯格法建立下肢运动学模型,并融合腿部的运动信号和足部的运动信号,以消除误差,并更新获得的人体步态参数。The error correction unit is used to eliminate the accumulation of sensor errors and update the gait parameters of the human body, including: when the moment when the calf is perpendicular to the ground in the middle stage of the stance phase is detected, the center of gravity of the subject's body moves forward with the leg on the ground as the swing axis, and the whole The human body establishes a first-level inverted pendulum model, executes a zero-velocity update algorithm to eliminate errors, and updates the obtained human gait parameters; when the full stance phase is detected, the foot is completely attached to the ground, and the calf and thigh of the foot are connected through a hinge joint The rigid body of the lower limbs is established using the Dinavitt-Hartenberg method, and the motion signals of the legs and feet are fused to eliminate errors and update the obtained human gait parameters.

在上述方案中,所述数据采集装置包括惯性传感器标定单元、传感器信号采集单元、数据滤波单元和自容式数据存储单元;惯性传感器标定单元,用于通过三维转台和三维导轨对传感器进行标定;传感器信号采集单元,用于采集人体步行过程中下肢的运动信号和三维地磁场分量信号;数据滤波单元,用于对采集到的运动信号以及三维地磁场分量信号进行去噪声处理;自容式数据存储单元,用于将采集到的运动信号和三维地磁场分量信号保存到存储设备中。具体的,数据预处理单元的去噪声处理包括对检测到的三维加速度信号、三维角速度信号以及三维地磁场分量信号进行高通(0.001赫兹)滤波,低通(5赫兹)滤波和陷波(50赫兹)处理。其中,自容式数据存储单元,是将采集到的人体步行过程中下肢的运动信号和三维地磁场分量信号的数据保存在移动存储卡(SD卡),之后通过读卡器传送到数据分析处理装置。In the above solution, the data acquisition device includes an inertial sensor calibration unit, a sensor signal acquisition unit, a data filtering unit, and a self-contained data storage unit; the inertial sensor calibration unit is used to calibrate the sensor through a three-dimensional turntable and a three-dimensional guide rail; The sensor signal acquisition unit is used to collect the motion signal of the lower limbs and the three-dimensional geomagnetic field component signal during human walking; the data filtering unit is used to denoise the collected motion signal and the three-dimensional geomagnetic field component signal; the self-contained data The storage unit is used to store the collected motion signals and three-dimensional geomagnetic field component signals in a storage device. Specifically, the denoising processing of the data preprocessing unit includes high-pass (0.001 Hz) filtering, low-pass (5 Hz) filtering and notch (50 Hz )deal with. Among them, the self-contained data storage unit is to store the collected motion signals of the lower limbs and the three-dimensional geomagnetic field component signals in the mobile memory card (SD card), and then transmit them to the data analysis and processing through the card reader. device.

其中,所述数据采集装置包括三轴加速度计、三轴陀螺仪和三轴电子罗盘;三轴加速度计和三轴陀螺仪采集人体步行过程中下肢的运动信号;三轴电子罗盘采集人体步行过程中的三维地磁场分量信号;三轴加速度计、三轴陀螺仪以及三轴电子罗盘安装在被测者的大腿中段,小腿中段以及足背位置。Wherein, the data acquisition device includes a three-axis accelerometer, a three-axis gyroscope and a three-axis electronic compass; the three-axis accelerometer and the three-axis gyroscope collect the movement signals of the lower limbs during human walking; the three-axis electronic compass collects the human walking process The three-dimensional geomagnetic field component signal; the three-axis accelerometer, the three-axis gyroscope and the three-axis electronic compass are installed on the mid-thigh, mid-calf and instep of the subject.

进一步的,所述基于多传感器融合的人体步态分析系统,还包括:Further, the human gait analysis system based on multi-sensor fusion also includes:

步态数据库单元,用于对获得的人体步态参数进行标准化处理,进而建立人体步态参数数据库,具体用于;通过公式对步速进行标准化,通过公式对步长进行标准化,通过公式对步频进行标准化,其中,l1为被测者身高,lm为被测者所属年龄段人群的平均身高;V为对传感器信号积分运算得到的被测者步速,Vrel为标准步速,单位是米/秒;L为对步速积分运算得到的步长,Lrel为标准步长,单位是米/步;C为通过步行周期计算出的被测者单位时间内行走的步频,Crel为标准步频,单位是步/秒。The gait database unit is used to standardize the obtained human gait parameters, and then establish a human gait parameter database, which is specifically used for; through the formula To normalize the pace, through the formula To normalize the step size, through the formula Standardize the stride frequency, where l 1 is the height of the testee, l m is the average height of the age group of the testee; V is the pace of the testee obtained by integrating the sensor signal, V rel is the standard step speed, the unit is m/s; L is the step length obtained by integrating the step speed; L rel is the standard step length, the unit is m/step; Frequency, C rel is the standard stride frequency, the unit is step/second.

在误差矫正单元中,通过下肢运动学模型建立的两个约束条件为:In the error correction unit, the two constraints established by the lower limb kinematics model are:

其中,为基于小腿运动的膝关节位移向量,为基于足部的传感器计算出的脚踝位置向量,为通过置于大腿部位的传感器计算出的髋关节位移向量。in, is the knee joint displacement vector based on calf motion, is the ankle position vector calculated by the foot-based sensors, is the hip displacement vector calculated by the sensors placed in the thigh.

本实施例提供的基于多传感器融合的人体步态分析系统,通过数据采集装置采集人体步行过程中下肢的运动信号和三维地磁场分量信号,通过初始姿态分析单元获得人体初始方位信息,通过步态参数计算单元获得人体步态参数,并通过误差矫正单元消除传感器误差积累,更新人体步态参数,本实施例提供的系统能够精确找到适用零速度更新算法的起始时刻,保证零速度更新算法的有效性,从而降低积分误差,提高步态参数计算的可靠性。The human gait analysis system based on multi-sensor fusion provided by this embodiment collects the movement signals of the lower limbs and the three-dimensional geomagnetic field component signals during human walking through the data acquisition device, obtains the initial orientation information of the human body through the initial posture analysis unit, and obtains the initial orientation information of the human body through the gait The parameter calculation unit obtains the gait parameters of the human body, and eliminates the accumulation of sensor errors through the error correction unit to update the gait parameters of the human body. The system provided in this embodiment can accurately find the initial moment when the zero-speed update algorithm is applicable, ensuring the accuracy of the zero-speed update algorithm. Effectiveness, thereby reducing the integral error and improving the reliability of gait parameter calculation.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: Modifications to the technical solutions described in the foregoing embodiments, or equivalent replacement of some or all of the technical features thereof, do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the various embodiments of the present invention.

Claims (8)

1. A human gait analysis method based on multi-sensor fusion is characterized by comprising the following steps:
step 100, acquiring motion signals of lower limbs and three-dimensional geomagnetic field component signals in the walking process of a human body by using a sensor, wherein the motion signals comprise three-dimensional acceleration signals and three-dimensional angular velocity signals;
200, acquiring an initial posture of a human body according to the acquired motion signal and the three-dimensional geomagnetic field component signal, wherein the initial posture comprises a pitch angle, a roll angle and a yaw angle of the human body in an initial static standing state, acquiring a deviation amount of a sensor coordinate system and a ground coordinate system according to the initial posture of the human body, correcting a rotation matrix transformed from the sensor coordinate system to the ground coordinate system by using the deviation amount, compensating the pitch angle, the roll angle and the yaw angle, and acquiring compensated initial orientation information of the human body;
step 300, according to the collected motion signals and the corrected rotation matrix, obtaining the starting time of switching the human body from a static standing state to a walking state, performing sensor data fusion by using an expanded Kalman filter from the starting time, updating human body orientation information, and detecting a gait time phase in the walking process of the human body according to the collected motion signals so as to obtain human body gait parameters, wherein the gait time phase comprises a support time phase and a swing time phase, the support time phase comprises a heel strike period, a standing phase middle period, a full standing period and a heel off period, and the swing time phase comprises an acceleration period, a swing period and a deceleration period; the human body gait parameters comprise the pace, the step length, the step frequency, the walking cycle and the walking track in the human body walking process;
step 400, eliminating sensor error accumulation and updating human gait parameters, comprising:
when the time that the crus are vertical to the ground in the standing phase is detected, the center of gravity of the tested person body moves forwards by taking the grounded legs as swing axes, a first-stage inverted pendulum model is built for the whole person, a zero-speed updating algorithm is executed to eliminate errors, and the obtained gait parameters of the person are updated;
when a full standing period is detected, the foot is completely attached to the ground, the crus and the thighs of the foot form a rigid body connected through hinge joints, a lower limb kinematics model is established by using a Dinavier-Hartmanberg method, and a motion signal of the legs and a motion signal of the foot are fused to eliminate errors and update the obtained human gait parameters.
2. The human gait analysis method based on multi-sensor fusion of claim 1, wherein the collecting the motion signals of the lower limbs and the three-dimensional geomagnetic field component signals during the human walking process comprises:
calibrating the sensor through the three-dimensional turntable and the three-dimensional guide rail;
collecting motion signals of lower limbs and three-dimensional geomagnetic field component signals in the walking process of a human body;
denoising the acquired motion signals and the three-dimensional geomagnetic field component signals;
and storing the acquired motion signal and the three-dimensional geomagnetic field component signal into a storage device.
3. The multi-sensor fusion based human gait analysis method according to claim 1, characterized in that after step 400, it further comprises:
step 500, performing standardization processing on the obtained human gait parameters, and further establishing a human gait database, which comprises the following steps:
by the formulaNormalizing the pace by formulaNormalizing the step size by formulaStandardizing the step frequency to obtain the human gait parameters after the standardized treatment, wherein l1For the height of the subject,. lmThe average height of the population in the age group of the tested person; v is the pace of the person to be measured obtained by integrating the sensor signal, VrelIs standard pace in meter/second, L is step length obtained by integrating pacerelIs standard step length in meter/step, C is walking frequency of the measured person in unit time calculated by walking period, CrelIs a standard step frequency in steps/second.
4. The method for analyzing human gait based on multi-sensor fusion according to claim 1, characterized in that the two constraints established by the lower limb kinematics model are:
∫ ∫ 0 t a k G d t = [ x k G , y k G , z k G ] T + [ x h G , y h G , z h G ] T ;
∫ ∫ 0 t a a G d t = ∫ ∫ 0 t a k G d t + [ x a G , y a G , z a G ] T ;
wherein,is a knee joint displacement vector based on the calf motion,an ankle position vector calculated for the foot-based sensor,is the hip joint displacement vector calculated by a sensor placed on the thigh part.
5. A multi-sensor fusion based human gait analysis system, characterized in that the multi-sensor fusion based human gait analysis system comprises: the data acquisition device is used for acquiring motion signals of lower limbs and three-dimensional geomagnetic field component signals in the walking process of a human body by using a sensor, and the motion signals comprise three-dimensional acceleration and three-dimensional angular velocity; the data analysis processing device comprises an initial posture analysis unit, a gait parameter calculation unit and an error correction unit;
the system comprises an initial attitude analysis unit, a ground coordinate system and a sensor coordinate system, wherein the initial attitude analysis unit is used for acquiring an initial attitude of a human body according to acquired motion signals and three-dimensional geomagnetic field component signals, acquiring a deviation amount of the sensor coordinate system and the ground coordinate system according to the initial attitude of the human body, correcting a rotation matrix transformed from the sensor coordinate system to the ground coordinate system by using the deviation amount, compensating a pitch angle, a roll angle and a yaw angle and acquiring compensated initial orientation information of the human body;
the gait parameter calculating unit is used for obtaining the starting time of switching the human body from a static standing state to a walking state according to the collected motion signals and the corrected rotation matrix, performing sensor data fusion by using an expanded Kalman filter from the starting time, updating human body position information, and detecting a gait time phase in the walking process of the human body according to the collected motion signals so as to obtain human body gait parameters, wherein the gait time phase comprises a support time phase and a swing time phase, the support time phase comprises a heel hitting period, a standing phase middle period, a full standing period and a heel off period, and the swing time phase comprises an acceleration period, a swing period and a deceleration period; the human body gait parameters comprise the pace, the step length, the step frequency, the walking cycle and the walking track in the human body walking process;
the error correction unit is used for eliminating the error accumulation of the sensor and updating the gait parameters of the human body, and comprises: when the time that the crus are vertical to the ground in the standing phase is detected, the center of gravity of the tested person body moves forwards by taking the grounded legs as swing axes, a first-stage inverted pendulum model is built for the whole person, a zero-speed updating algorithm is executed to eliminate errors, and the obtained gait parameters of the person are updated; when a full standing period is detected, the foot is completely attached to the ground, the crus and the thighs of the foot form a rigid body connected through hinge joints, a lower limb kinematics model is established by using a Dinavier-Hartmanberg method, and a motion signal of the legs and a motion signal of the foot are fused to eliminate errors and update the obtained human gait parameters.
6. The human gait analysis system based on multi-sensor fusion of claim 5, characterized in that the data acquisition device comprises an inertial sensor calibration unit, a sensor signal acquisition unit, a data filtering unit and a self-contained data storage unit;
the inertial sensor calibration unit is used for calibrating the sensor through the three-dimensional turntable and the three-dimensional guide rail;
the sensor signal acquisition unit is used for acquiring a motion signal of the lower limbs and a three-dimensional geomagnetic field component signal in the walking process of the human body;
the data filtering unit is used for denoising the acquired motion signals and the three-dimensional geomagnetic field component signals;
and the self-contained data storage unit is used for storing the acquired motion signals and the three-dimensional geomagnetic field component signals into storage equipment.
7. The multi-sensor fusion based human gait analysis system according to claim 5, characterized in that it further comprises:
the gait database unit is used for carrying out standardized processing on the obtained human gait parameters so as to establish a human gait parameter database, and is particularly used for; by the formulaNormalizing the pace by formulaNormalizing the step size by formulaNormalizing the step frequency, wherein1For the height of the subject,. lmThe average height of the population in the age group of the tested person; v is the pace of the person to be measured obtained by integrating the sensor signal, VrelIs a standard pace, in meters per second; l is the step length obtained by integrating the step speed, LrelIs standard step length, and the unit is meter per step; c is the unit time travel of the tested person calculated by the walking cycleStep frequency of walking, CrelIs a standard step frequency in steps/second.
8. The system for analyzing human gait based on multi-sensor fusion according to claim 5, characterized in that in the error correction unit, the two constraints established by the lower limb kinematics model are:
∫ ∫ 0 t a k G d t = [ x k G , y k G , z k G ] T + [ x h G , y h G , z h G ] T ;
∫ ∫ 0 t a a G d t = ∫ ∫ 0 t a k G d t + [ x a G , y a G , z a G ] T ;
wherein,is a knee joint displacement vector based on the calf motion,an ankle position vector calculated for the foot-based sensor,is the hip joint displacement vector calculated by a sensor placed on the thigh part.
CN201510178450.4A 2015-04-16 2015-04-16 A kind of Human Body Gait Analysis method and system based on Multi-sensor Fusion Active CN104757976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510178450.4A CN104757976B (en) 2015-04-16 2015-04-16 A kind of Human Body Gait Analysis method and system based on Multi-sensor Fusion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510178450.4A CN104757976B (en) 2015-04-16 2015-04-16 A kind of Human Body Gait Analysis method and system based on Multi-sensor Fusion

Publications (2)

Publication Number Publication Date
CN104757976A CN104757976A (en) 2015-07-08
CN104757976B true CN104757976B (en) 2017-07-21

Family

ID=53640331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510178450.4A Active CN104757976B (en) 2015-04-16 2015-04-16 A kind of Human Body Gait Analysis method and system based on Multi-sensor Fusion

Country Status (1)

Country Link
CN (1) CN104757976B (en)

Families Citing this family (56)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104998381A (en) * 2015-07-20 2015-10-28 上海交通大学 Gait rectification system based on wearable sensing and tactile feedback
CN106370178B (en) * 2015-07-21 2020-09-22 阿里巴巴集团控股有限公司 Attitude measurement method and device of mobile terminal equipment
JP6660110B2 (en) * 2015-07-23 2020-03-04 原田電子工業株式会社 Gait analysis method and gait analysis system
CN105310654A (en) * 2015-08-06 2016-02-10 跑动(厦门)信息科技有限公司 Foot pronation detection method and smart shoe pad for detecting pronation
TWI582389B (en) * 2015-10-26 2017-05-11 行政院原子能委員會核能研究所 Navigation system for inertial positioning with gait detection method
CN105509691B (en) * 2015-11-03 2018-01-26 北京时代拓灵科技有限公司 The detection method of multisensor group fusion and the circular method for acoustic for supporting head tracking
TWI570659B (en) * 2015-11-09 2017-02-11 真茂科技股份有限公司 Smart health evaluation system and equipment
CN106767807B (en) * 2015-11-20 2020-07-03 北京航空航天大学 A comprehensive measurement method of pedestrian stride length based on height and motion characteristics
CN108697377A (en) * 2016-01-25 2018-10-23 贝泰米亚公司 gait analyzer system and method
CN105769206B (en) * 2016-02-25 2018-10-09 苏州大学 A kind of gait phase method of discrimination based on upper and lower extremities movable information
CN105769408A (en) * 2016-03-17 2016-07-20 王义水 Corrective shoe, corrective shoe insole and correcting method
CN105975753A (en) * 2016-04-28 2016-09-28 努比亚技术有限公司 Method for calculating moving speed of user and mobile terminal
CN106225784B (en) * 2016-06-13 2019-02-05 国家海洋局第二海洋研究所 Pedestrian dead reckoning method based on low-cost multi-sensor fusion
CN106168485B (en) * 2016-07-18 2019-09-10 北京方位捷讯科技有限公司 Walking track data projectional technique and device
CN109414188B (en) * 2016-08-09 2020-09-29 皇家飞利浦有限公司 Processing device and method for determining a walking motion of a subject
CN106595912A (en) * 2016-11-01 2017-04-26 中国海洋大学 Real-time detection evaluation system for human foot dynamic mechanics and method
CN106419928B (en) * 2016-11-03 2018-04-10 浙江大学 A kind of wearable device and the real-time step-length measuring method for the equipment
WO2018081986A1 (en) * 2016-11-03 2018-05-11 浙江大学 Wearable device and real-time step length measurement method for device
CN106333692A (en) * 2016-11-15 2017-01-18 上海市共进通信技术有限公司 The leg or foot wearing device and method for detecting human gait cycle and step length
CN106643713B (en) * 2016-12-22 2021-01-26 威海北洋电气集团股份有限公司 Estimation method and device for zero-speed correction pedestrian locus for smooth and adaptive adjustment of threshold
CN106767804B (en) * 2016-12-28 2018-03-27 华中科技大学 The multidimensional data measurement apparatus and method of a kind of moving object
CN106767805B (en) * 2017-01-08 2023-08-18 上海拓攻机器人有限公司 High-precision inertial measurement method and measurement system based on MEMS sensor array
CN106767790B (en) * 2017-01-12 2019-11-08 厦门大学 A Method for Estimating Pedestrian Movement Tracking by Fusion of Human Lower Limb Motion Model and Kalman Filter
CN107260176A (en) * 2017-06-07 2017-10-20 深圳市奇诺动力科技有限公司 Plantar pressure measuring device and method
CN107607976A (en) * 2017-07-28 2018-01-19 烟台持久钟表有限公司 The Big Dipper and autonomic sensor positioner and its localization method
CN107702711B (en) * 2017-09-15 2021-12-21 上海交通大学 Pedestrian course calculation system based on low-cost sensor and map constraint
CN107423730B (en) * 2017-09-20 2024-02-13 湖南师范大学 Human gait behavior active detection and recognition system and method based on semantic folding
CN107582063A (en) * 2017-09-20 2018-01-16 深圳市行者机器人技术有限公司 A kind of gait detects ring
WO2019061513A1 (en) * 2017-09-30 2019-04-04 华为技术有限公司 Attitude matrix calculating method and device
CN108325201B (en) * 2017-12-20 2020-02-11 上海电气集团股份有限公司 Step frequency detection method and device based on multi-source information fusion
CN108537101B (en) * 2018-01-05 2022-03-25 浙江大学 Pedestrian positioning method based on state recognition
CN108378854B (en) * 2018-02-07 2021-10-29 北京摩高科技有限公司 An attitude measurement capture analysis system and its calculation method
CN108520242A (en) * 2018-04-11 2018-09-11 上海理工大学 Method and device for heel detection for gait recognition
CN108836346A (en) * 2018-04-16 2018-11-20 大连理工大学 A kind of Human Body Gait Analysis method and system based on inertial sensor
CN108801267B (en) * 2018-06-22 2020-09-15 西安电子科技大学 An indoor anchor-free localization method based on fusion of multi-sensors
CN109645970B (en) * 2018-12-25 2021-08-03 广州康盛科技有限公司 Method and equipment for evaluating cardio-pulmonary aptitude of drug-dropping person
CN110059633A (en) * 2019-04-19 2019-07-26 西北工业大学 A kind of body gait based on ultrasound perception and its personal identification method
CN110103216B (en) * 2019-04-25 2021-07-30 深圳市工匠社科技有限公司 Robot control method and related product
CN110604546A (en) * 2019-07-29 2019-12-24 桂林医学院附属医院 Parkinson disease monitoring method and device and storage medium
CN110558991B (en) * 2019-07-30 2022-05-20 福建省万物智联科技有限公司 Gait analysis method
CN110420029A (en) * 2019-08-03 2019-11-08 苏州自如医疗器械有限公司 A kind of walking step state wireless detecting system based on Multi-sensor Fusion
CN110652299B (en) * 2019-08-20 2021-09-24 南京航空航天大学 Multi-source sensor information fusion system for lower extremity soft exoskeleton
CN110693501A (en) * 2019-10-12 2020-01-17 上海应用技术大学 Wireless walking gait detection system based on multi-sensor fusion
CN111012358B (en) * 2019-12-26 2023-02-10 浙江福祉科创有限公司 Human ankle joint motion trajectory measurement method and wearable device
CN111685772B (en) * 2020-05-29 2021-07-09 清华大学 Exoskeleton robot measurement system, walking gait modeling analysis method and equipment
WO2021258333A1 (en) * 2020-06-24 2021-12-30 中国科学院深圳先进技术研究院 Gait abnormality early identification and risk early-warning method and apparatus
CN111700620B (en) * 2020-06-24 2022-08-05 中国科学院深圳先进技术研究院 A method and device for early identification and risk early warning of abnormal gait
CN112472531A (en) * 2020-12-17 2021-03-12 大连理工大学 Gait smoothing algorithm of lower limb exoskeleton robot for medical rehabilitation and assisted walking
CN112957034A (en) * 2021-03-17 2021-06-15 中山大学 Gait evaluation method and system based on multiple parameters
CN118625860A (en) * 2021-08-17 2024-09-10 深圳市火乐科技发展有限公司 Projection equipment calibration method, projection equipment and storage medium
CN113662535B (en) * 2021-09-14 2022-07-01 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Gait detection method, device, equipment and storage medium
CN115500821A (en) * 2022-10-09 2022-12-23 吉林大学 Calibration method of pelvic segmental skeletal system based on human anatomy
CN116211290B (en) * 2023-02-20 2024-01-30 汕头大学 A method and system for posture monitoring and evaluation of ankle pump movements
CN116295741B (en) * 2023-02-23 2023-08-22 浙江大学 A method and system for monitoring body weight based on air cushion
CN116224800A (en) * 2023-03-23 2023-06-06 合肥中科深谷科技发展有限公司 Balance control method, system and storage medium for rotating two-stage inverted pendulum
CN116616749A (en) * 2023-05-24 2023-08-22 西北工业大学 A Method for Analyzing Movement Posture of Human Lower Limbs

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6301964B1 (en) * 1997-10-14 2001-10-16 Dyhastream Innovations Inc. Motion analysis system
US8694251B2 (en) * 2010-11-25 2014-04-08 Texas Instruments Incorporated Attitude estimation for pedestrian navigation using low cost mems accelerometer in mobile applications, and processing methods, apparatus and systems
CN102323854B (en) * 2011-03-11 2013-10-16 中国科学院研究生院 Human motion capture device
CN102824177B (en) * 2012-07-25 2014-11-26 王哲龙 Three-dimensional human body gait quantitative analysis system and method
CN103776446B (en) * 2013-10-29 2017-01-04 哈尔滨工程大学 A kind of pedestrian's independent navigation computation based on double MEMS-IMU
CN103968827B (en) * 2014-04-09 2017-11-28 北京信息科技大学 A kind of autonomic positioning method of wearable body gait detection
CN104296750B (en) * 2014-06-27 2017-05-03 大连理工大学 A zero-speed detection method and device, and a pedestrian navigation method and system

Also Published As

Publication number Publication date
CN104757976A (en) 2015-07-08

Similar Documents

Publication Publication Date Title
CN104757976B (en) A kind of Human Body Gait Analysis method and system based on Multi-sensor Fusion
CN108836346A (en) A kind of Human Body Gait Analysis method and system based on inertial sensor
KR101751760B1 (en) Method for estimating gait parameter form low limb joint angles
CN107174255B (en) Three-dimensional gait information acquisition and analysis method based on Kinect somatosensory technology
JP5594975B2 (en) Gait analyzer
Roetenberg et al. Xsens MVN: Full 6DOF human motion tracking using miniature inertial sensors
JP6660110B2 (en) Gait analysis method and gait analysis system
Aminian et al. Capturing human motion using body‐fixed sensors: outdoor measurement and clinical applications
JP6183906B2 (en) Gait estimation device and program, fall risk calculation device and program
Lee et al. 3D spinal motion analysis during staircase walking using an ambulatory inertial and magnetic sensing system
CN115655265B (en) Pedestrian navigation indoor positioning method based on inertial sensing
Horenstein et al. Validation of magneto-inertial measuring units for measuring hip joint angles
Lin et al. Assessment of shoulder range of motion using a wearable inertial sensor network
WO2018132999A1 (en) Human body step length measuring method for use in wearable device and measuring device of the method
Guo et al. Balance and knee extensibility evaluation of hemiplegic gait using an inertial body sensor network
CN114287890A (en) Motor function assessment method for Parkinson's patients based on MEMS sensor
Mallat et al. Sparse visual-inertial measurement units placement for gait kinematics assessment
Madrigal et al. Hip and lower limbs 3D motion tracking using a double-stage data fusion algorithm for IMU/MARG-based wearables sensors
CN113229806A (en) Wearable human body gait detection and navigation system and operation method thereof
WO2024124638A1 (en) Wearable single-node device for leg posture estimation and measurement method
CN112107290B (en) System, method and software application for predicting KAM for multiple gait cycles of a subject
CN108030497A (en) A gait analysis device and method based on IMU inertial sensor
CN116206358A (en) A method and system for predicting movement patterns of lower extremity exoskeleton based on VIO system
Li et al. Quantitative analysis of abnormal and normal gait based on inertial sensors
Alam et al. Gait speed estimation using Kalman Filtering on inertial measurement unit data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant