CN115127550A - A system for recognizing the motion state of the human body using a six-axis inertial measurement device - Google Patents
A system for recognizing the motion state of the human body using a six-axis inertial measurement device Download PDFInfo
- Publication number
- CN115127550A CN115127550A CN202210812255.2A CN202210812255A CN115127550A CN 115127550 A CN115127550 A CN 115127550A CN 202210812255 A CN202210812255 A CN 202210812255A CN 115127550 A CN115127550 A CN 115127550A
- Authority
- CN
- China
- Prior art keywords
- data
- measurement device
- inertial measurement
- circuit
- rigid
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
- G01C21/166—Mechanical, construction or arrangement details of inertial navigation systems
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
本发明公开了一种利用六轴惯性测量装置识别人体的运动状态的系统。其中,该系统包括:惯性测量装置,被配置为采集轴向惯性信息,获取人体的非规则运动数据;分类识别装置,被配置为通过预先训练的运动状态识别模型,来分类识别所述非规则运动数据,以确定所述人体的运动状态;其中,所述惯性测量装置包括:传感器测量电路,由三组精度大于阈值的单轴加速度计和陀螺仪组成;信号处理电路,与所述传感器测量电路刚柔结合一体化,其中,刚性电路部分采用螺钉装配在惯性测量装置内壁,柔性电路部分用于信号传输,所述信号处理电路用于对所述轴向惯性信息进行预处理,得到预处理的所述非规则运动数据。
The invention discloses a system for recognizing the motion state of a human body by using a six-axis inertial measurement device. Wherein, the system includes: an inertial measurement device, configured to collect axial inertial information, and obtain irregular motion data of the human body; a classification and identification device, configured to classify and identify the irregular motion through a pre-trained motion state identification model motion data to determine the motion state of the human body; wherein, the inertial measurement device includes: a sensor measurement circuit, consisting of three sets of single-axis accelerometers and gyroscopes whose accuracy is greater than a threshold; a signal processing circuit, which measures together with the sensor Rigid-flex integration of the circuit, wherein the rigid circuit part is assembled on the inner wall of the inertial measurement device with screws, the flexible circuit part is used for signal transmission, and the signal processing circuit is used for preprocessing the axial inertial information to obtain the preprocessing of the irregular motion data.
Description
技术领域technical field
本发明涉及惯性导航领域,具体而言,涉及一种利用六轴惯性测量装置识别人体的运动状态的系统。The present invention relates to the field of inertial navigation, in particular to a system for recognizing the motion state of a human body using a six-axis inertial measurement device.
背景技术Background technique
人体在某些特殊空间下的运动状态下可能存在一些非规则的行为,例如,狭小空间下的匍匐、蹲走动作。非规则人体运动状态的识别可用于人体安全监控、事故及灾难救援等领域。以事故及灾难救援为例,需要通过对人体运动状态的识别,实现快速高效的人员救援,以及防止次生灾害对救援人员造成伤害。但是,当前的非规则人体运动状态识别方法实时性和准确性都不够,无法应用于实际救援场景中。The human body may have some irregular behaviors in the motion state in some special spaces, such as crawling and squatting in a small space. The identification of irregular human motion states can be used in human safety monitoring, accident and disaster rescue and other fields. Taking accident and disaster rescue as an example, it is necessary to recognize the movement state of the human body to achieve rapid and efficient rescue of personnel, and to prevent secondary disasters from causing damage to rescuers. However, the current identification methods of irregular human motion state are not real-time and accurate enough to be applied in actual rescue scenarios.
针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种利用六轴惯性测量装置识别人体的运动状态的系统,以至少解决非规则人体运动状态识别不准确的技术问题。The embodiment of the present invention provides a system for identifying the motion state of a human body by using a six-axis inertial measurement device, so as to at least solve the technical problem of inaccurate identification of the motion state of an irregular human body.
根据本发明实施例的一个方面,提供了一种利用惯性测量装置识别运动状态的系统,包括:惯性测量装置,被配置为采集轴向惯性信息,获取人体的非规则运动数据;分类识别装置,被配置为通过预先训练的运动状态识别模型,来分类识别所述非规则运动数据,以确定所述人体的运动状态;其中,所述惯性测量装置包括:传感器测量电路,由三组精度大于阈值的单轴加速度计和陀螺仪组成;信号处理电路,与所述传感器测量电路刚柔结合一体化,其中,刚性电路部分采用螺钉装配在惯性测量装置内壁,柔性电路部分用于信号传输,所述信号处理电路用于对所述轴向惯性信息进行预处理,得到预处理的所述非规则运动数据。According to an aspect of the embodiments of the present invention, there is provided a system for identifying a motion state using an inertial measurement device, including: an inertial measurement device configured to collect axial inertial information and obtain irregular motion data of a human body; a classification and identification device, It is configured to classify and identify the irregular motion data through a pre-trained motion state recognition model to determine the motion state of the human body; wherein the inertial measurement device includes: a sensor measurement circuit, which consists of three sets of precision greater than a threshold value It is composed of a single-axis accelerometer and a gyroscope; the signal processing circuit is integrated with the rigid-flexible combination of the sensor measurement circuit, wherein the rigid circuit part is assembled on the inner wall of the inertial measurement device with screws, and the flexible circuit part is used for signal transmission. The signal processing circuit is used for preprocessing the axial inertia information to obtain the preprocessed irregular motion data.
在本发明实施例中,采用精确度更高的惯性测量装置来采集并预处理人体的非规则运动数据,并通过分类识别装置来识别这些非规则运动数据,从而实现了准确识别人体运动状态的技术效果,进而解决了非规则人体运动状态识别不准确的技术问题。In the embodiment of the present invention, an inertial measurement device with higher accuracy is used to collect and preprocess the irregular motion data of the human body, and the irregular motion data is identified by the classification and identification device, thereby realizing the accurate identification of the human body motion state. The technical effect is solved, and the technical problem of inaccurate identification of irregular human motion state is solved.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1是是根据本发明实施例的一种利用惯性测量装置识别运动状态的系统的结构示意图;1 is a schematic structural diagram of a system for identifying a motion state by using an inertial measurement device according to an embodiment of the present invention;
图2是是根据本发明实施例的另一种利用惯性测量装置识别运动状态的系统的结构示意图;2 is a schematic structural diagram of another system for identifying a motion state by using an inertial measurement device according to an embodiment of the present invention;
图3是根据本发明实施例的惯性测量装置整体装配示意图;3 is a schematic diagram of the overall assembly of an inertial measurement device according to an embodiment of the present invention;
图4是根据本发明实施例的刚柔一体化电路示意图;4 is a schematic diagram of a rigid-flex integrated circuit according to an embodiment of the present invention;
图5是根据本发明实施例的惯性测量装置底座结构示意图;5 is a schematic structural diagram of an inertial measurement device base according to an embodiment of the present invention;
图6是根据本发明实施例的惯性测量装置外壳结构示意图;6 is a schematic structural diagram of an inertial measurement device housing according to an embodiment of the present invention;
图7是根据本发明实施例的底位电路装配示意图;7 is a schematic diagram of a bottom-level circuit assembly according to an embodiment of the present invention;
图8是根据本发明实施例的前位电路装配示意图;FIG. 8 is a schematic diagram of a front-position circuit assembly according to an embodiment of the present invention;
图9是根据本发明实施例的顶位电路装配示意图;9 is a schematic diagram of a top-level circuit assembly according to an embodiment of the present invention;
图10是根据本发明实施例的侧位电路装配示意图;10 is a schematic diagram of a side position circuit assembly according to an embodiment of the present invention;
图11是根据本发明实施例的刚柔一体电路与底座组合体示意图;11 is a schematic diagram of a rigid-flex integrated circuit and a base assembly according to an embodiment of the present invention;
图12是根据本发明实施例的惯性测量装置的整体示意图;FIG. 12 is an overall schematic diagram of an inertial measurement device according to an embodiment of the present invention;
图13是根据本发明实施例的识别运动状态的方法的流程图。FIG. 13 is a flowchart of a method of identifying a motion state according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
实施例1Example 1
根据本发明实施例,提供了一种利用六轴惯性测量装置识别人体的运动状态的系统,如图1所示,该系统包括:According to an embodiment of the present invention, a system for identifying the motion state of a human body using a six-axis inertial measurement device is provided. As shown in FIG. 1 , the system includes:
惯性测量装置100,被配置为采集轴向惯性信息,获取人体的非规则运动数据;The
分类识别装置200,被配置为通过预先训练的运动状态识别模型,来分类识别所述非规则运动数据,以确定所述人体的运动状态。The classification and identification device 200 is configured to classify and identify the irregular motion data through a pre-trained motion state identification model, so as to determine the motion state of the human body.
其中,所述惯性测量装置包括:传感器测量电路,由三组精度大于阈值的单轴加速度计和陀螺仪组成;信号处理电路,与所述传感器测量电路刚柔结合一体化,其中,刚性电路部分采用螺钉装配在惯性测量装置内壁,柔性电路部分用于信号传输,所述信号处理电路用于对所述轴向惯性信息进行预处理,得到预处理的所述非规则运动数据。The inertial measurement device includes: a sensor measurement circuit, which is composed of three sets of single-axis accelerometers and gyroscopes with a precision greater than a threshold; a signal processing circuit, which is integrated with the sensor measurement circuit by rigid-flexible combination, wherein the rigid circuit part The screws are assembled on the inner wall of the inertial measurement device, the flexible circuit part is used for signal transmission, and the signal processing circuit is used for preprocessing the axial inertial information to obtain the preprocessed irregular motion data.
在一个示例性实施例中,三组精度大于阈值的单轴加速度计和陀螺仪按照右手定则正交组合,分别测量X轴、Y轴、Z轴加速度信息和角速度信息。In an exemplary embodiment, three groups of single-axis accelerometers and gyroscopes with an accuracy greater than a threshold are orthogonally combined according to the right-hand rule to measure the X-axis, Y-axis, Z-axis acceleration information and angular velocity information, respectively.
在一个示例性实施例中,三组精度大于阈值的单轴加速度计和陀螺仪和所述信号处理电路之间的信号通过所述刚柔电路内部走线传输。In an exemplary embodiment, signals between three sets of single-axis accelerometers and gyroscopes with an accuracy greater than a threshold value and the signal processing circuit are transmitted through the internal routing of the rigid-flex circuit.
在一个示例性实施例中,底部的所述刚性电路通过四个限位螺丝螺钉固定在底座上,柔性电路被弯折,将前位的所述刚性电路板通过螺钉固定在底座支柱构成的前位面,并将其他的所述刚性电路固定在底座支柱组成的顶面与侧面,数据连接器通过导线连接,将所述刚性电路、所述柔性电路与底座形成的组合体与所述惯性测量装置的外壳通过螺钉固定。In an exemplary embodiment, the rigid circuit at the bottom is fixed on the base by four limit screws, the flexible circuit is bent, and the rigid circuit at the front is fixed on the front formed by the base pillars by screws. and fix the other rigid circuits on the top and side surfaces of the base pillars. The data connectors are connected by wires to connect the rigid circuit, the flexible circuit and the base to the inertial measurement The housing of the device is secured with screws.
在一个示例性实施例中,所述信号处理电路还被配置为:对所述非规则运动数据进行以下预处理:滤波、数据归一化处理、特征提取和降维处理。In an exemplary embodiment, the signal processing circuit is further configured to perform the following preprocessing on the irregular motion data: filtering, data normalization, feature extraction, and dimensionality reduction.
在一个示例性实施例中,所述分类识别装置被配置为根据应用场景、特征维度和数据特点的不同,通过交叉验证的方式寻找最优的核函数及其参数,并利用所述核函数,对训练样本进行监督学习,计算分类器,以得到所述运动状态识别模型。In an exemplary embodiment, the classification and identification device is configured to search for an optimal kernel function and its parameters by means of cross-validation according to different application scenarios, feature dimensions and data characteristics, and use the kernel function, Supervised learning is performed on the training samples, and a classifier is calculated to obtain the motion state recognition model.
在一个示例性实施例中,所述分类识别装置被配置为:根据应用场景、特征维度和数据特点的不同,通过使用迭代网格搜索法寻找最优的核函数及其参数,并利用所述核函数,对训练样本进行监督学习,计算分类器,以得到所述运动状态识别模型。In an exemplary embodiment, the classification and identification device is configured to: search for an optimal kernel function and its parameters by using an iterative grid search method according to different application scenarios, feature dimensions and data characteristics, and use the Kernel function, supervised learning is performed on the training samples, and a classifier is calculated to obtain the motion state recognition model.
在一个示例性实施例中,所述分类识别装置还被配置为:设置迭代网格搜索法的各参数的搜索范围,并将搜索范围分为固定格数;遍历每个格子进行交叉验证,获取每个格子的识别率,并根据各个格子的识别率计算最大识别率和最小识别率的差值;在所述差值小于预设阈值时,输出当前最大识别率所对应的参数组合,作为所述核函数的参数,在所述差值大于所述预设阈值时,重新设置所述搜索范围,并执行上述步骤,直到所述差值小于预设阈值。In an exemplary embodiment, the classification and identification device is further configured to: set a search range of each parameter of the iterative grid search method, and divide the search range into a fixed number of grids; traverse each grid to perform cross-validation, and obtain The recognition rate of each grid, and the difference between the maximum recognition rate and the minimum recognition rate is calculated according to the recognition rate of each grid; when the difference is less than the preset threshold, the parameter combination corresponding to the current maximum recognition rate is output as the parameters of the kernel function, when the difference is greater than the preset threshold, reset the search range, and perform the above steps until the difference is less than the preset threshold.
在一个示例性实施例中,所述信号处理电路还被配置为:在动作三轴加速度数据中寻找测量点最大值H和最小值L;寻找三维角速度中最大值max和最小值min;基于所述测量点最大值H和最小值L、以及所述三维角速度中最大值max和最小值min,进行归一化处理。In an exemplary embodiment, the signal processing circuit is further configured to: find the maximum value H and the minimum value L of the measurement point in the motion three-axis acceleration data; find the maximum value max and the minimum value min in the three-dimensional angular velocity; The maximum value H and minimum value L of the measurement point, and the maximum value max and the minimum value min in the three-dimensional angular velocity are normalized.
在一个示例性实施例中,所述信号处理电路还被配置为:对训练矩阵进行奇异值分解,求其特征值与奇异值,根据主成分思想,奇异值越大,其包含的信息越多,得到所述训练矩阵中各成分的贡献率,进而求出累计贡献率,并按贡献率大小选取特征,以进行降维处理。In an exemplary embodiment, the signal processing circuit is further configured to: perform singular value decomposition on the training matrix, and obtain its eigenvalues and singular values. According to the principle of principal components, the larger the singular value, the more information it contains , the contribution rate of each component in the training matrix is obtained, and then the cumulative contribution rate is obtained, and features are selected according to the contribution rate for dimensionality reduction processing.
本实施例,分类识别装置通过机器学习的方法,首先将所采集的非规则运动数据进行预处理,转换为运动状态识别模型的输入向量,根据预训练的运动状态识别模型进行非规则人体运动状态的确定,提升了非规则人体运动状态识别的实时性和准确性,进而解决了非规则人体运动状态识别不准确的技术问题。In this embodiment, the classification and recognition device firstly preprocesses the collected irregular motion data by means of machine learning, converts it into an input vector of the motion state recognition model, and performs irregular human motion state according to the pretrained motion state recognition model. The determination of irregular human motion state improves the real-time and accuracy of the identification of irregular human motion state, and further solves the technical problem of inaccurate identification of irregular human motion state.
此外,本实施例还对惯性测量装置进行了改进。In addition, the present embodiment also improves the inertial measurement device.
现有技术中,惯性测量装置中采用的加速度计和陀螺仪通常直接采用一组三轴加速度传感器和三轴角速度传感器组成六轴惯性测量单元,直接对三个方向的惯性信息进行敏感,受传感器误差影响测量精度低。此外,传感器测量电路与信号处理电路通常采用导线焊接方式连接,装配操作复杂,占用空间大,容易造成接线错误、导线电磁干扰以及结构可靠性低等问题。In the prior art, the accelerometers and gyroscopes used in inertial measurement devices usually directly use a set of three-axis acceleration sensors and three-axis angular velocity sensors to form a six-axis inertial measurement unit, which is directly sensitive to inertial information in three directions, and is affected by the sensor. The error affects the measurement accuracy is low. In addition, the sensor measurement circuit and the signal processing circuit are usually connected by wire welding, the assembly operation is complicated, the space is occupied, and it is easy to cause problems such as wiring errors, electromagnetic interference of wires, and low structural reliability.
这些问题都会影响惯性测量装置的整体稳定性,进而影响惯性测量装置的采集数据的准确性。These problems will affect the overall stability of the inertial measurement device, thereby affecting the accuracy of the acquired data of the inertial measurement device.
本实施例对惯性测量装置进行了改进,针对采用三轴加速度计和三轴角速度传感器直接组成六轴惯性测量单元测量精度低的问题,分别采用三组高精度单轴加速度计和陀螺仪组成高精度六轴惯性测量单元。并且,传感器测量电路与信号处理电路采用刚柔结合一体化设计,刚性电路部分采用螺钉装配在测量装置内壁保证整体结构稳定可靠,通过柔性电路实现信号传输,简化装配流程,降低测量装置内部空间占用。In this embodiment, the inertial measurement device is improved. In order to solve the problem of low measurement accuracy of the six-axis inertial measurement unit directly formed by using a three-axis accelerometer and a three-axis angular velocity sensor, three groups of high-precision single-axis accelerometers and gyroscopes are respectively used to form a high-precision single-axis inertial measurement unit. Precision six-axis inertial measurement unit. In addition, the sensor measurement circuit and the signal processing circuit adopt an integrated design of rigid and flexible combination. The rigid circuit part is assembled on the inner wall of the measurement device with screws to ensure the overall structure is stable and reliable. Signal transmission is realized through the flexible circuit, which simplifies the assembly process and reduces the internal space occupation of the measurement device. .
通过上述改进,传感器测量电路采用刚柔一体化设计,极大简化装配操作流程。采用高精度单轴器件分别对三轴惯性信息进行敏感,提升了信息测量精度。测量电路之间采用柔性方法连接实现信号传输,减少空间占用和内部干扰,刚性电路部分与测量装置课题固连,提升整体结构可靠性,便于人体携带,且提高了信号传输稳定性。Through the above improvements, the sensor measurement circuit adopts a rigid-flexible integrated design, which greatly simplifies the assembly operation process. The use of high-precision single-axis devices is respectively sensitive to the three-axis inertial information, which improves the information measurement accuracy. The measurement circuits are connected by a flexible method to realize signal transmission, which reduces space occupation and internal interference. The rigid circuit part is fixedly connected with the measurement device, which improves the reliability of the overall structure, is convenient for the human body to carry, and improves the stability of signal transmission.
实施例2Example 2
根据本发明实施例,还提供了一种利用惯性测量装置识别运动状态的系统,如图2所示,该系统包括惯性测量装置100和分类识别装置200。本实施例中的惯性测量装置与实施例1中的结构和功能相同,此处不再赘述。According to an embodiment of the present invention, a system for recognizing a motion state by using an inertial measurement device is also provided. As shown in FIG. 2 , the system includes an
本实施例与实施例1不同的是分类识别装置200,本实施例的分类识别装置包括模型训练模块202,下面将详细描述模型训练模块如何进行模型训练。The difference between this embodiment and
支持向量机(support vector machine,简称SVM,从分类原理上来讲,它是一种将数据进行二分类的模型,定义为在特征空间上将分类间隔最大化的线性分类器。它的学习策略便是分类间隔最大化,将分类超平面寻找问题转化为一个凸二次规划问题求解。SVM是一种监督式机器学习算法,基于结构化风险最小原则,将置信范围和经验风险降到最小,从而提升了其泛化能力,即便在训练样本不多的情况下,也能实现较好的分类效果,该算法的核心是如何找到一个可以将样本分为两类的最优超平面,主要思想就是将平面内的线性可分问题推广到高维分类问题上Support vector machine (support vector machine, SVM for short, in terms of classification principle, it is a model for classifying data into two categories, defined as a linear classifier that maximizes the classification interval in the feature space. Its learning strategy is is to maximize the classification interval, and convert the classification hyperplane search problem into a convex quadratic programming problem to solve. SVM is a supervised machine learning algorithm, based on the principle of minimum structural risk, to minimize the confidence range and empirical risk, thereby It improves its generalization ability, and can achieve better classification results even when there are not many training samples. The core of the algorithm is how to find an optimal hyperplane that can divide the samples into two categories. The main idea is to Generalizing in-plane linearly separable problems to high-dimensional classification problems
但是在日常生活中需要分类的问题往往是多类的,比如人体的运动状态分类问题,需要的识别动作有行走、跑步、静止、上楼、下楼,坐下等多种常见动作,对于这种多分类问题,主要是通过组合多个二分类SVM来实现多分类SVM的构建,常见的方法有1-v-1 SVMs和1-v-r SVMs。1一v-r SVMs算法是最早的SVM解决多分类问题的方法,对于一个总共有k个类别的分类问题,将构造出k个子分类器,第i个分类器将第i类作为一类,将其他所有类作为另外一类进行分类器的构建,对于一个待分类数据,需要进行k次分类操作,计算每个分类器的分类函数值,选择最大的函数值对应的类别为其所属类。当类别较多时,单一类类别和剩余所有类别所对应的训练数据集具有较大的不对称性,并且存在数据分布复杂的情况,所训练出的分类器支持向量较多,分类计算量较大,另外,当分类函数值出现重复时,将会出现不可分问题。综合以上几点,这种多分类算法在实际应用中已经很少使用。本申请实施例重要使用的是1-v-1 SVMs方法。However, the problems that need to be classified in daily life are often of many types, such as the classification of the motion state of the human body. It is a multi-classification problem, mainly by combining multiple binary SVMs to realize the construction of multi-class SVMs. Common methods are 1-v-1 SVMs and 1-v-r SVMs. 1-v-r SVMs algorithm is the earliest method of SVM to solve multi-classification problems. For a classification problem with a total of k categories, k sub-classifiers will be constructed. All classes are used as another class to construct a classifier. For a data to be classified, it is necessary to perform k classification operations, calculate the classification function value of each classifier, and select the class corresponding to the largest function value as the class to which it belongs. When there are many categories, the training data sets corresponding to a single category and all the remaining categories have a large asymmetry, and there is a complex data distribution. , in addition, when the classification function values are repeated, there will be an inseparability problem. Based on the above points, this multi-classification algorithm has been rarely used in practical applications. The 1-v-1 SVMs method is mainly used in the examples of this application.
在一个示例中,1-v-1 SVMs分类方法原理如下:In one example, the 1-v-1 SVMs classification method works as follows:
对于一个总共有k个类别的分类问题,其总共构造出个子分类器,每个子分类器的训练数据仅需要这两类所对应的数据集,因此其数据复杂度要小于1-v-r算法。在数据验证时,遍历所有子分类器,每个子分类器的分类结果作为该类别的一票,统计最终所有类别的票数,选择票数最多的类别作为最终分类结果。对于将第i和第j类区分开来的分类器,定义第i类样本为正类样本,第j类样本为负类样本。For a classification problem with a total of k classes, it constructs a total of The training data of each sub-classifier only needs the corresponding data sets of the two categories, so the data complexity is smaller than the 1-vr algorithm. During data verification, all sub-classifiers are traversed, the classification result of each sub-classifier is used as a vote for the category, the final votes of all categories are counted, and the category with the most votes is selected as the final classification result. For the classifier that distinguishes the i-th and j-th classes, the i-th class sample is defined as a positive class sample, and the j-th class sample is a negative class sample.
SVM分类过程如下:The SVM classification process is as follows:
(1样本数据进行特征提取,并选取最优子集。(1) Feature extraction is performed on sample data, and the optimal subset is selected.
(2将每种动作特征集平分为训练集和测试集,并对动作样本集进行两两组合(在这里假设是六种动作分类,得到15种组合方式,设其为k1-k15。(2) Divide each action feature set into a training set and a test set, and combine the action sample sets in pairs (here, it is assumed that there are six action classifications, and 15 combinations are obtained, which are set as k1-k15.
(3从k1开始,训练集和测试集作为数据源,使用网格搜索算法进行最优参数搜索,并使用最优参数创建子分类器,记录其最优识别率。(3 Starting from k1, the training set and the test set are used as data sources, the grid search algorithm is used to search for the optimal parameters, and the optimal parameters are used to create a sub-classifier, and its optimal recognition rate is recorded.
(4分别对k2、k3......k15进行步骤(3中操作。(4 Perform the operations in step (3) on k2, k3...k15 respectively.
通过核函数对特征向量进行高维转化后,对训练样本进行监督学习,计算分类器的函数式为:其中:αi为拉格朗日乘子;K(xi,x)为计算样本点xi与x之间的内积,n代表参与建模的n个带标签的训练数据,i为第i个训练数据;αi为拉格朗日乘子;K(xi,x)代表计算训练数据xi与x之间的内积;b为常数;yi为训练数据xi对应的标签。After high-dimensional transformation of the feature vector through the kernel function, supervised learning is performed on the training samples, and the functional formula for calculating the classifier is: Among them: α i is the Lagrange multiplier; K(x i , x) is the inner product between the calculated sample points x i and x, n represents the n labeled training data participating in the modeling, and i is the first i training data; αi is the Lagrange multiplier; K(xi, x) represents the inner product between the training data xi and x; b is a constant; yi is the label corresponding to the training data xi.
下面将详细描述另一种核函数。Another kernel function will be described in detail below.
使用SVM对非线性可分问题分类,首先想到的将线性不可分数据通过一定的非线性映射关系将其映射到新的线性可分数据集内,然后再对其进行线性问题分类,假设其映射关系为φ,过程分为两个步骤:Using SVM to classify nonlinear separable problems, the first thought is to map the linear inseparable data to a new linear separable data set through a certain nonlinear mapping relationship, and then classify it as a linear problem, assuming its mapping relationship is φ, the process is divided into two steps:
(1建立映射关系φ,将数据映射到新数据空间。(1) Establish a mapping relationship φ, and map the data to the new data space.
(2对新数据空间的数据进行线性分类。(2) Linearly classify the data in the new data space.
(3此时分类函数可以表示为为如下形式:(3 At this time, the classification function can be expressed as the following form:
通过核函数对特征向量进行高维转化后,对训练样本进行监督学习,计算分类器的函数式为:其中,αi为拉格朗日乘子;(φ(xi),φ(x))为计算样本点xi与x之间的内积。只是先对x进行映射。现在找出一种方法可以将映射和内积同时进行,就可以将对线性不可分问题的分类简化为和线性可分问题同样的步骤,从而建立一个非线性学习机,而这种直接计算的方法就是本申请实施例所提到的核函数法。此处所说的″核″是一个函数,对所有的x和z,满足如下关系:After high-dimensional transformation of the feature vector through the kernel function, supervised learning is performed on the training samples, and the functional formula for calculating the classifier is: Among them, α i is the Lagrange multiplier; (φ(x i ), φ(x)) is the inner product between the calculated sample points x i and x. Just map x first. Now find a way to perform mapping and inner product at the same time, you can simplify the classification of linear inseparable problems to the same steps as linearly separable problems, so as to build a nonlinear learning machine, and this direct calculation method It is the kernel function method mentioned in the embodiments of the present application. The "kernel" referred to here is a function that, for all x and z, satisfies the following relationship:
k(x,z)=(φ(x),φ(z))k(x, z) = (φ(x), φ(z))
即,函数k(x,z)所得到的结果和映射后再进行内积操作(φ(x),φ(z))有相同的效果,通常向高维映射都伴随着维度爆炸式增长,高维数据进行内积操作需要大量的计算,因此,核函数可以做到节省大量的内积计算同时达到相同的内积效果。至此,对于线性不可分问题的分类函数可以表示为如下形式:That is, the result obtained by the function k(x, z) and the inner product operation (φ(x), φ(z)) after the mapping have the same effect. Usually, the high-dimensional mapping is accompanied by an explosive growth of dimensions, The inner product operation on high-dimensional data requires a lot of calculations, so the kernel function can save a lot of inner product calculations and achieve the same inner product effect. So far, the classification function for linearly inseparable problems can be expressed as follows:
核函数的应用既解决了线性不可分问题又避免了维度映射中维度增加带来的大量内积运算问题,对于核函数的选择,还没有同一个标准,根据应用场景、特征维度和数据特点的不同,一般通过交叉验证的方式寻找最优的核函数及其参数。下面对几种常用的核函数进行介绍并分析其应用场景,最后通过实验方式比较每种核函数对动作识别的性能表现。The application of the kernel function not only solves the linear inseparability problem but also avoids a large number of inner product operation problems caused by the increase of dimensions in the dimension mapping. There is no same standard for the selection of the kernel function. , and generally find the optimal kernel function and its parameters by means of cross-validation. The following introduces several commonly used kernel functions and analyzes their application scenarios, and finally compares the performance of each kernel function for action recognition through experiments.
核函数的选取:Selection of kernel function:
本申请实施例方法中所用的为径向基核函数(Radial Basis Function Kernel,RBF)The Radial Basis Function Kernel (RBF) is used in the method of the embodiment of the present application.
K(xi,xj)=exp(-γxi-xj 2)当γ>0K(x i , x j )=exp(-γx i -x j 2 ) when γ>0
式中:xi和xj为特征向量;γ为核函数的参数。In the formula: x i and x j are the eigenvectors; γ is the parameter of the kernel function.
这种核函数得到的SVM是一种与之对应的径向基函数的分类器。最关键的地方是这种核函数是所有核函数中不会出现较大偏差的函数。The SVM obtained by this kernel function is a classifier of the corresponding radial basis function. The most critical point is that this kernel function is a function that does not exhibit large deviations among all kernel functions.
下面将详细描述通过网格搜寻法来寻找核函数的过程。The process of finding the kernel function by the grid search method will be described in detail below.
核函数的选择需要尝试后根据分类效果决定,而不同的核函数具有不同的参数,参数对分类效果的好坏有着很重要的影响,因此本申请实施例需要进行每种核函数的参数寻优,并进行最优效果的比较,选择最适合的核函数。本申请采用网格搜索法来选择核函数。The selection of the kernel function needs to be tried and determined according to the classification effect, and different kernel functions have different parameters, and the parameters have a very important influence on the quality of the classification effect. Therefore, in the embodiment of the present application, it is necessary to optimize the parameters of each kernel function. , and compare the optimal effects to select the most suitable kernel function. The present application adopts a grid search method to select the kernel function.
本申请使用迭代网格搜索法搜索函数参数和惩罚因子c。具体过程如下:This application uses an iterative grid search method to search for function parameters and penalty factor c. The specific process is as follows:
(1、设置各参数搜索范围和,并将搜索范围分为固定格数。(1. Set the search range sum of each parameter, and divide the search range into a fixed number of cells.
(2、遍历每个格子进行交叉验证,并记录其对应的识别率。(2. Traverse each grid for cross-validation, and record its corresponding recognition rate.
(3、遍历一次后计算最大识别率和最小识别率的差值,若差值小于0.01则终止过程,输出当前最大识别率所对应的参数组合。若差值大于0.01则跳转至第(1步,对当前最大识别率所对应的格子进行迭代细分,直至满足差值小于0.01为止。(3. Calculate the difference between the maximum recognition rate and the minimum recognition rate after traversing once. If the difference is less than 0.01, the process is terminated, and the parameter combination corresponding to the current maximum recognition rate is output. If the difference is greater than 0.01, jump to (1)
下面将具体描述核函数的参数。The parameters of the kernel function will be specifically described below.
在此过程中,要确定的是惩罚因子C和核函数中的参数,通过调整这些参数,来提高识别的准确率。In this process, the parameters in the penalty factor C and the kernel function are determined, and the accuracy of recognition can be improved by adjusting these parameters.
C是惩罚系数,即对误差的宽容度。C越高,说明越不能容忍出现误差,容易过拟合。C越小,容易欠拟合。C过大或过小,泛化能力变差,因此找到合适的C对网络的优化有重要的作用。C is the penalty coefficient, which is the tolerance for error. The higher the C, the less tolerance for errors, and the easier it is to overfit. The smaller C is, the easier it is to underfit. If C is too large or too small, the generalization ability will become poor, so finding a suitable C plays an important role in the optimization of the network.
gamma是选择RBF函数作为kernel后,该函数自带的一个参数。隐含地决定了数据映射到新的特征空间后的分布,gamma越大,支持向量越少,gamma值越小,支持向量越多。支持向量的个数影响训练与预测的速度。Gamma is a parameter that comes with the RBF function after selecting it as the kernel. Implicitly determines the distribution of the data after mapping to the new feature space, the larger the gamma, the less the support vector, the smaller the gamma value, the more the support vector. The number of support vectors affects the speed of training and prediction.
实施例3Example 3
根据本发明实施例,还提供了一种利用惯性测量装置识别运动状态的系统,该系统包括惯性测量装置和分类识别装置。本实施例中的分类识别装置与实施例1和2中的结构和功能相同,此处不再赘述。According to an embodiment of the present invention, there is also provided a system for recognizing a motion state by using an inertial measurement device, and the system includes an inertial measurement device and a classification and identification device. The structure and function of the classification and identification device in this embodiment are the same as those in
本实施例与实施例1不同的是惯性测量装置,如图3至12所示,本实施例中的高精度六轴惯性测量装置由刚柔一体化电路、底座、外壳、数据连接器构成。其中,惯性信息测量电路采用刚柔电路板一体化设计方法,包括五块刚性电路板,并通过四部分柔性电路连接。刚柔一体化设计方法相较于传统导线连接方法,能够大大降低整体空间占用和简化装配操作流程,避免接线错误和降低电磁干扰,提升系统整体可靠性,从而为特殊空间例如救援救灾等恶劣环境下精确地检测人体的运动数据提供了可能。The difference between this embodiment and
刚柔一体化电路集成三个独立高精度单轴加速度计、三个独立高精度单轴陀螺仪和信号处理电路,加速度计和陀螺仪分别敏感测量装置三个方向上的加速度和角速度,实现对惯性信息的高精度测量。相较于采用单一三轴传感器或六轴惯性传感器方案,能够提升测量精度和系统稳定性。信号处理电路能够实现对传感器数据的高速实时传输,通过测量装置数据连接器发送给外部设备。The rigid-flex integrated circuit integrates three independent high-precision single-axis accelerometers, three independent high-precision single-axis gyroscopes and signal processing circuits. High-precision measurement of inertial information. Compared with the solution using a single three-axis sensor or six-axis inertial sensor, it can improve the measurement accuracy and system stability. The signal processing circuit can realize high-speed real-time transmission of sensor data, and send it to external equipment through the data connector of the measuring device.
刚柔电路板包括底部刚性电路板1、前位刚性电路板2、侧位刚性电路板一3、侧位刚性电路板二4、顶部刚性电路板5五块刚性电路与四部分连接刚性电路板的柔性电路部分。其中,底部刚性电路板与前位刚性电路板通过柔性电路板一6连接,前位刚性电路板与顶部刚性电路板通过柔性电路板二7连接,侧位刚性电路板一与顶部刚性电路板通过柔性电路板三8连接,侧位刚性电路板二与顶部刚性电路板通过柔性电路板四9连接。The rigid-flex circuit board includes the bottom
惯性测量装置底座具有四个高度相等的刚性限位支柱,包括两个前位支柱10和两个后位支柱11,四根限位支柱顶部分别有一个M1.6x6螺钉孔位13,四根限位支柱左右侧面分别有两个1.6mm通孔14,前后面分别有两个高度与侧面通孔高度不同的1.6mm通孔15,用于限位和固定刚柔一体电路。测量装置底座还具有四个螺钉孔位12用于固定和支撑刚柔电路。刚柔一体电路板可折叠装配于底座上并通过螺钉固定,然后可将底座与刚柔一体电路的组合体与测量装置壳体装配。The base of the inertial measurement device has four rigid limit struts of equal height, including two
在装配过程中,第一步将底部刚性电路板1两侧凹槽对准底座两个前位支柱10装配在底座上,并使用四根M1.2x4螺钉通过底部刚性电路板预留螺钉孔与底座四个螺钉孔位12对齐固定。底部刚性电路板装配示意图如图6所示。第二步弯折柔性电路板一6,将前位刚性电路板2紧贴底座两个后位支柱11,前位刚性电路板与后位支柱构成的平面保持平行。使用四根M1.6x8螺钉与四个螺母通过前位刚性电路板预留孔位与后位支柱侧面预留的通孔对齐固定。底部刚性电路板装配示意图如图7所示。第三步弯折柔性电路板二7,保持顶部刚性电路板5与底座限位支柱上侧面构成平面平行,使用四根M1.6x6螺钉通过顶部刚性电路板预留螺钉孔与四个底座限位支柱顶面预留的螺钉孔位对齐固定。底部刚性电路板装配示意图如图8所示。第四步弯折柔性电路板三8与柔性电路板四9,保持侧位刚性电路板一3和侧位刚性电路板二4分别与底座限位支柱构成的两个侧面平行,并使用四根M1.6x8螺钉与四个螺母通过两块侧位刚性电路板预留螺钉孔与底座限位支柱侧面预通孔对齐固定。底部刚性电路板装配示意图如图9所示。In the assembly process, the first step is to align the grooves on both sides of the bottom
刚柔一体电路与底座装配完成后组合体示意图如图11所示。The schematic diagram of the assembly after the rigid-flex integrated circuit and the base are assembled is shown in Figure 11.
数据连接器选用J30J-15ZKP型连接器,将连接器导线剪断至5cm左右,按设计线序焊接至一体电路板数据处理模块输出点位。将连接器J30J-15ZKP两侧原装螺钉取下,由内向外插入上盖梯形孔16,取特制螺钉与原装弹垫、垫片、螺母将其固定。将底座与外壳合上,取八根M1.2x4螺钉将底座与外壳接紧密。装配完成后整体示意图如图13所示。The data connector is J30J-15ZKP type connector, cut the connector wire to about 5cm, and solder it to the output point of the integrated circuit board data processing module according to the designed line sequence. Remove the original screws on both sides of the connector J30J-15ZKP, insert it into the
本申请实施例中,刚柔一体电路与底座接触部分电路板表面均无元器件以及触点分布,防止发生线路短路等问题,从而为恶劣情况下精确采集运动数据提供了可能。In the embodiment of the present application, the surface of the circuit board in the contact part between the rigid-flex integrated circuit and the base is free of components and contacts to prevent problems such as line short circuit, thereby providing the possibility for accurate collection of motion data under severe conditions.
下面将详细描述信号处理电路对所采集到的运动数据进行预处理的过程。The process of preprocessing the collected motion data by the signal processing circuit will be described in detail below.
步骤1,进行滤波处理。
通常原始信号数据即采集到的人体的非规则运动数据的序列很长,同时还包含大量噪声。因此,为了后续的特征值提取和算法精确度的提高,需要对原始信号数据进行处理,本申请采用的是移动中值滤波的方法。移动均值滤波算法是一种典型的线性滤波算法,对周期性噪声干扰有良好的抑制作用。它的主要原理是利用移动窗口的方式,并通过邻域平均法实现对原始数据的滤波。假设输入为X、输出为y,则移动均值滤波器的计算方法,如下式所示,其中M为移动均值滤波器的窗口大小。Usually, the original signal data, that is, the collected irregular motion data of the human body, has a long sequence and also contains a lot of noise. Therefore, in order to extract the eigenvalues and improve the accuracy of the algorithm subsequently, the original signal data needs to be processed, and the method of moving median filtering is adopted in this application. The moving average filtering algorithm is a typical linear filtering algorithm, which has a good inhibitory effect on periodic noise interference. Its main principle is to use the method of moving the window and realize the filtering of the original data through the neighborhood average method. Assuming that the input is X and the output is y, the calculation method of the moving average filter is shown in the following formula, where M is the window size of the moving average filter.
其中,n是窗口长度,y(n)是滤波计算后的输出。where n is the window length and y(n) is the output after filtering.
步骤2,数据归一化
由于本系统使用了惯性传感器的加速度数据和角速度数据,然而这两种数据由于物理意义的不同,数值范围差距较大,分别对其进行特征提取时最终的特征值范围也会较大,后续会对基于特征值的动作分类算法造成一定的干扰,数值大的特征对分类结果影响更大。因此,需要做归一化处理,具体算法步骤如下:Since this system uses the acceleration data and angular velocity data of the inertial sensor, however, due to the different physical meanings of these two kinds of data, the numerical range is quite different, and the final eigenvalue range will also be larger when the features are extracted separately. It will cause some interference to the action classification algorithm based on feature value, and the feature with large value has a greater impact on the classification result. Therefore, normalization processing is required, and the specific algorithm steps are as follows:
(1)、在动作三轴加速度数据中寻找测量点最大值H和最小值L。(1) Find the maximum value H and the minimum value L of the measurement point in the motion triaxial acceleration data.
(2)、同样寻找三维角速度中最大值max和最小值min。(2), also find the maximum value max and minimum value min in the three-dimensional angular velocity.
(3)、对三轴角速度数据分别作如下式的计算:(3) Calculate the following formulas for the three-axis angular velocity data:
式中L为归一化后最小值,H为归一化后最大值,ui表示原始数据点,vi表示归一化后数据点。where L is the normalized minimum value, H is the normalized maximum value, ui represents the original data point, and vi represents the normalized data point.
步骤3、特征提取。
理论上特征值越多越能表达出动作数据的特点,但是过多的特征值也会大幅增加计算量,所以要针对算法选取合适的特征值,以下是常用的数据特征提取方法。In theory, more eigenvalues can express the characteristics of action data, but too many eigenvalues will greatly increase the amount of calculation, so it is necessary to select appropriate eigenvalues for the algorithm. The following are commonly used data feature extraction methods.
均值:其中N为动作数据点数。Mean: where N is the number of action data points.
标准差:其中N为动作数据点数,xi表示第i个输入,表示输入值的平均值。Standard deviation: where N is the number of action data points, xi represents the ith input, Represents the average of the input values.
均方根:其中N为动作数据点数。Root mean square: where N is the number of action data points.
步骤4、PCA降维处理
主成分分析法PCA,Principle Component Analysis是一种常用的降维方法,是一种无监督的降维处理方法,通过对训练矩阵Dm×n进行奇异值分解,求其特征值λi与奇异值ui,根据主成分思想,奇异值越大,其包含的信息越多,然后得到Dm×n中各成分的贡献率,进而求出累计贡献率,并按贡献率大小选取特征。Principal Component Analysis (PCA), Principle Component Analysis is a commonly used dimensionality reduction method and an unsupervised dimensionality reduction processing method. The value ui , according to the principal component idea, the larger the singular value, the more information it contains, and then the contribution rate of each component in D m×n is obtained, and then the cumulative contribution rate is obtained, and the feature is selected according to the contribution rate.
其中,U和V为正交矩阵,Λ为m×n的非负对角阵,令Λ=Diag[λ1,λ2,...,λm],其特征值λi与奇异值ui的关系如下:λi=(ui)2 Among them, U and V are orthogonal matrices, Λ is a non-negative diagonal matrix of m×n, let Λ=Diag[λ1, λ2, ..., λm], the relationship between its eigenvalue λi and singular value ui is as follows: λ i =(u i ) 2
λi是训练矩阵D的特征根,根据主成分思想,奇异值越大,其包含的信息就越多,因此前1个主成分所组成的特征空间对应新的特征空间D′:λ i is the characteristic root of the training matrix D. According to the idea of principal components, the larger the singular value, the more information it contains. Therefore, the feature space composed of the first principal component corresponds to the new feature space D′:
D′m×l=U(:,1:l)×Λl×l D′ m×l =U(:,1:l)×Λ l×l
U(:,1:l)为前1列向量对应的矩阵,Λl×l为前1个较大奇异值对应的对角矩阵。由此得到D中各主成分的贡献率为Ci:U(:, 1:l) is the matrix corresponding to the first column vector, and Λ l×l is the diagonal matrix corresponding to the first larger singular value. From this, the contribution rate of each principal component in D is obtained as C i :
其中,λi和λj表示第i个和j个特征值。Among them, λi and λj represent the i-th and j-th eigenvalues.
相应地,累计贡献率CCorrespondingly, the cumulative contribution rate C
其中,m是矩阵的列数,k是行数。where m is the number of columns of the matrix and k is the number of rows.
通常情况下要求特征累计贡献率达到90%以上,才能保证被选择的特征包含运动的绝大多数信息。但是降维后如果维数太少会出现特征值不足而不能准确进行识别,维数太多就会出现计算量过大、识别时间长等问题。因此需要其它合适的方法选择特征,使得在合理降低维数的同时能缩短识别时间和提高分类精度。Usually, the cumulative contribution rate of features is required to reach more than 90%, so as to ensure that the selected features contain most of the motion information. However, after dimension reduction, if the number of dimensions is too small, there will be insufficient eigenvalues and the identification cannot be accurately performed. If the number of dimensions is too large, problems such as excessive computation and long identification time will occur. Therefore, other suitable methods are needed to select features, so that the recognition time can be shortened and the classification accuracy can be improved while reasonably reducing the dimension.
本实施例中,惯性测量装置识别运动状态的系统的实施步骤如下:In this embodiment, the implementation steps of the system for identifying the motion state of the inertial measurement device are as follows:
1、利用穿戴于胸部的惯性测量装置采集狭小及遮蔽空间等环境下的非规则运动状,并将采集到的数据分类完成且标注时间戳并通过无线通讯模块传送至分类识别装置。1. Use the inertial measurement device worn on the chest to collect irregular motions in small and sheltered spaces, and complete the classification of the collected data, mark the time stamp, and transmit it to the classification and identification device through the wireless communication module.
2、将采集到的目标行走步频和传感器信息进行数据处理分析,将不同的行为活动打上对应标签,形成数据标签对集。2. Perform data processing and analysis on the collected target walking cadence and sensor information, and label different behaviors with corresponding labels to form a data label pair set.
3、构建非规则的动作识别网络模型,并根据识别效果和动作的类别调节参数。3. Build an irregular action recognition network model, and adjust the parameters according to the recognition effect and the category of the action.
4、将得到的数据标签对集分为训练集和测试集,其中训练集送入搭建的网络模型进行训练,训练完成后利用测试集评估模型分类效果。4. Divide the obtained data label pairs into a training set and a test set, in which the training set is sent to the built network model for training, and the test set is used to evaluate the classification effect of the model after the training is completed.
5、将穿戴设备人员的实时数据导入到训练好的模型进行线上实时分类,进行评估。5. Import the real-time data of wearable personnel into the trained model for online real-time classification and evaluation.
实施例4Example 4
本发明实施例提供了一种利用六轴惯性测量装置识别人体的运动状态的系统和分类识别装置对非规则人体运动状态进行识别的方法,如图13所示,该方法包括:The embodiment of the present invention provides a system for recognizing the motion state of the human body by using a six-axis inertial measurement device and a method for identifying the motion state of an irregular human body by a classification and identification device. As shown in FIG. 13 , the method includes:
步骤S402,根据非规则运动数据,进行数据预处理,获得预处理后的非规则运动数据;Step S402, performing data preprocessing according to the irregular motion data to obtain preprocessed irregular motion data;
步骤S404,将所述预处理后的非规则运动数据,输入运动状态识别模型,得到所述运动状态识别模型输出的非规则人体运动状态识别类型。Step S404: Input the preprocessed irregular motion data into a motion state recognition model to obtain an irregular human body motion state recognition type output by the motion state recognition model.
其中,所述运动状态识别模型是基于预采集的非规则人体运动状态所对应的非规则运动数据,进行训练的多分类支持向量机Support Vector Machine,简称SVM模型。Wherein, the motion state recognition model is a multi-class Support Vector Machine, or SVM model for short, which is trained based on the irregular motion data corresponding to the irregular human motion state pre-collected.
在一个示例中,所述多分类SVM模型包括一对一支持向量机one-versus-oneSupport Vector Machines,简称1-v-1 SVMs或者pairwise模型;所述1-v-1 SVMs模型包括由第一公式计算得到的,多个非规则人体运动状态二分类SVM模型,其中,所述第一公式为:N=K(K-1)/2;其中,N为所述非规则人体运动状态二分类SVM模型的个数,K为所述1-v-1 SVMs模型所要识别的,非规则人体运动状态的总类别数。In an example, the multi-class SVM model includes one-versus-one Support Vector Machines, referred to as 1-v-1 SVMs or a pairwise model; the 1-v-1 SVMs model includes a first A plurality of two-category SVM models of irregular human motion states calculated by the formula, wherein the first formula is: N=K(K-1)/2; wherein, N is the two-category of the irregular human motion states The number of SVM models, K is the total number of categories of irregular human motion states to be identified by the 1-v-1 SVMs model.
在一个示例中,所述非规则运动数据包括:加速度数据、角速度数据;所述根据非规则运动数据,进行数据预处理,获得预处理后的非规则运动数据,包括:根据所述非规则运动数据,进行数据修整,获得修整后的非规则运动数据;其中,所述数据修整包括以下处理中的至少一种:异常数据处理、重复数据处理、缺失值填充;根据所述修整后的非规则运动数据,进行数据归一化,获得所述预处理后的非规则运动数据。In an example, the irregular motion data includes: acceleration data and angular velocity data; and performing data preprocessing according to the irregular motion data to obtain preprocessed irregular motion data includes: according to the irregular motion data, perform data trimming, and obtain trimmed irregular motion data; wherein, the data trimming includes at least one of the following processes: abnormal data processing, repeated data processing, and missing value filling; Motion data, perform data normalization to obtain the preprocessed irregular motion data.
在一个示例中,所述加速度数据由加速度采集设备获取,所述角速度由角速度采集设备获取;所述加速度采集设备包括加速度计;所述角速度采集设备包括陀螺仪;所述加速度数据为,根据三维空间位置确定的三轴加速度数据,包括:第一加速度数据、第二加速度数据、第三加速度数据;所述角速度数据为,根据三维空间位置确定的三轴角速度数据,包括:第一角速度数据、第二角速度数据、第三角速度数据。In an example, the acceleration data is acquired by an acceleration acquisition device, and the angular velocity is acquired by an angular velocity acquisition device; the acceleration acquisition device includes an accelerometer; the angular velocity acquisition device includes a gyroscope; the acceleration data is, according to three-dimensional The three-axis acceleration data determined by the spatial position includes: first acceleration data, second acceleration data, and third acceleration data; the angular velocity data is the three-axis angular velocity data determined according to the three-dimensional spatial position, including: first angular velocity data, The second angular velocity data and the third angular velocity data.
在一个示例中,所述方法还包括:获取训练数据,所述训练数据包括,经过标记和所述数据预处理的所述非规则运动数据;以及,将所述训练数据划分为训练集和测试集;构造分类器模型,并定义多个二分类模型;以及,将所述训练集输入所述分类器,通过调用实例化方法,建立初始的分类器模型;将所述测试集输入当前分类器模型,根据当前分类器模型的输出结果和所述测试集中的非规则人体运动状态类型标记,获得当前分类器模型的精确度;根据当前分类器模型的精确度,对分类器模型的模型参数根据网格搜索法进行参数寻优,直至训练得到精确度达到预定要求的所述多分类SVM模型。In one example, the method further includes: acquiring training data, the training data including the irregular motion data marked and preprocessed by the data; and dividing the training data into a training set and a test construct a classifier model, and define a plurality of binary classification models; and, input the training set into the classifier, and establish an initial classifier model by calling the instantiation method; input the test set into the current classifier Model, according to the output result of the current classifier model and the irregular human motion state type mark in the test set, the accuracy of the current classifier model is obtained; According to the accuracy of the current classifier model, the model parameters of the classifier model according to The grid search method is used to optimize parameters until the multi-class SVM model whose accuracy reaches a predetermined requirement is obtained through training.
在一个示例中,所述分类器模型由第二公式进行描述,其中,所述第二公式为:In one example, the classifier model is described by a second formula, wherein the second formula is:
其中,n代表参与建模的n个带标签的训练数据,i为第i个训练数据;αi为拉格朗日乘子;K(xi,x)代表计算训练数据xi与x之间的内积;b为常数;yi为训练数据xi对应的标签。Among them, n represents the n labeled training data participating in the modeling, i is the ith training data; αi is the Lagrange multiplier; K(xi, x) represents the calculation of the internal value between the training data xi and x product; b is a constant; yi is the label corresponding to the training data xi.
在一个示例中,所述网格搜索法包括:设置所述分类器模型中若干个待调整的参数,以及惩罚因子的搜索范围;以及,在所述搜索范围中,确定多个固定数值,形成数据网格;根据所述数据网格,将所述分类器模型参数以及所述惩罚因子遍历设置为所述数据网格所对应的参数,并记录不同参数下,所述分类器模型的精确度;若所述不同参数下,所述分类器模型的精确度中,最大值与最小值的差值不大于预设值,则将取得所述最大精确度所对应的所述模型参数及所述惩罚因子确定为所述分类器模型的取值;若所述不同参数下,所述分类器模型的精确度中,最大值与最小值的差值大于所述预设值,则根据取得所述最大精确度所对应的所述模型参数及所述惩罚因子,重复执行所述网格搜索法,直至所述差值不大于预设值。In one example, the grid search method includes: setting a number of parameters to be adjusted in the classifier model, and a search range for a penalty factor; and, in the search range, determining a plurality of fixed values to form Data grid; according to the data grid, set the classifier model parameters and the penalty factor traversal to the parameters corresponding to the data grid, and record the accuracy of the classifier model under different parameters If under the different parameters, in the accuracy of the classifier model, the difference between the maximum value and the minimum value is not greater than the preset value, then the model parameters corresponding to the maximum accuracy and the described model parameters will be obtained. The penalty factor is determined as the value of the classifier model; if the difference between the maximum value and the minimum value in the accuracy of the classifier model under the different parameters is greater than the preset value, then according to the obtained For the model parameter and the penalty factor corresponding to the maximum accuracy, the grid search method is repeatedly performed until the difference is not greater than a preset value.
在一个示例中,将六轴惯性测量装置固连于人体脚部,可采用零速修正方法结合扩展卡尔曼滤波器对系统状态向量误差进行估计,然后对捷联解算的状态向量进行修正,得到滤波估计后的人员位置、速度、姿态。零速修正方法可以有效地抑制加速度积分导致的惯性测量装置误差累积,但是要求惯性测量装置只能安装于脚部,并且要求在一定时间内脚部相对地面静止,以保证对状态向量的及时修正。零速修正方法算法大致可以分为两部分:零速检测和零速修正。In an example, the six-axis inertial measurement device is fixed to the foot of the human body, the zero-speed correction method combined with the extended Kalman filter can be used to estimate the system state vector error, and then the state vector of the strapdown solution can be corrected, The position, velocity, and attitude of the personnel after the filter estimation are obtained. The zero-speed correction method can effectively suppress the accumulation of inertial measurement device errors caused by acceleration integration, but requires that the inertial measurement device can only be installed on the feet, and the feet are required to be stationary relative to the ground within a certain period of time to ensure timely correction of the state vector . The zero-speed correction method algorithm can be roughly divided into two parts: zero-speed detection and zero-speed correction.
行人步行时,足部的运动可以分为静止和运动2种模式。零速检测主要完成的任务是识别人员脚部的静止阶段,并确定为步态周期内的零速区间。给定一段观测值序列,通过该观测值序列进行零速探测,对零速区间识别的准确性是影响ZUPT算法导航效果的关键因素之一。零速探测的要求是降低将运动状态误判为零速状态的概率并提高准确判断零速的概率,因为如果将运动状态误判断为零速状态将会给导航系统引入新的误差,如果将静止状态误判为运动状态则会减少对导航系统的修正次数。利用广义似然比检测法进行零速检测公式为:When a pedestrian walks, the motion of the foot can be divided into two modes: static and motion. The main task of zero-speed detection is to identify the stationary phase of the person's feet and determine it as the zero-speed interval in the gait cycle. Given a sequence of observations, the zero-speed detection is carried out through the sequence of observations, and the accuracy of identifying the zero-speed interval is one of the key factors affecting the navigation effect of the ZUPT algorithm. The requirement of zero-speed detection is to reduce the probability of misjudging the motion state as the zero-speed state and increase the probability of accurately judging the zero-speed state, because if the motion state is misjudged as the zero-speed state, it will introduce new errors to the navigation system. Misjudging the static state as the moving state will reduce the number of corrections to the navigation system. The formula for zero-speed detection using the generalized likelihood ratio detection method is:
式中:W为零速探测窗口大小;Zn是零速窗口内的传感器输出,In the formula: W is the size of the zero-speed detection window; Z n is the sensor output in the zero-speed window,
分别为加速度计和陀螺仪的噪声方差;为零速探测窗口内加速度计输出各轴比力平均值矢量,表示k时刻陀螺仪输出,n表示采样数量,表示k时刻加速度计输出,g表示重力加速度。 are the noise variances of the accelerometer and gyroscope, respectively; In the zero-speed detection window, the accelerometer outputs the average vector of the specific force of each axis, represents the gyro output at time k, n represents the number of samples, represents the accelerometer output at time k, and g represents the acceleration of gravity.
为零速检测设置一个检测阈值γT,用于确定数据的零速检测标志位Ck,公式如下:A detection threshold γ T is set for zero-speed detection, which is used to determine the zero-speed detection flag bit C k of the data. The formula is as follows:
其中,T表示零速检测的检验统计量,Un表示零速检测的观测量。零速修正的主要任务是利用零速区间的零速度作为观测量,通过扩展卡尔曼滤波器对状态变量误差进行滤波估计,然后对捷联惯性解算的结果进行修正。系统数学模型是基于导航误差模型建立的,惯性导航更新在时间更新中完成,量测更新在零速区间执行,量测更新之后就立即将状态变量误差反馈至导航更新结果,进行误差修正。Among them, T represents the test statistic of zero-speed detection, and U n represents the observed amount of zero-speed detection. The main task of the zero-speed correction is to use the zero-speed in the zero-speed interval as the observational quantity, filter and estimate the state variable error through the extended Kalman filter, and then correct the result of the strapdown inertial solution. The mathematical model of the system is established based on the navigation error model. The inertial navigation update is completed in the time update, and the measurement update is performed in the zero-speed interval. Immediately after the measurement update, the state variable error is fed back to the navigation update result for error correction.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210812255.2A CN115127550A (en) | 2022-07-12 | 2022-07-12 | A system for recognizing the motion state of the human body using a six-axis inertial measurement device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210812255.2A CN115127550A (en) | 2022-07-12 | 2022-07-12 | A system for recognizing the motion state of the human body using a six-axis inertial measurement device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115127550A true CN115127550A (en) | 2022-09-30 |
Family
ID=83384077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210812255.2A Pending CN115127550A (en) | 2022-07-12 | 2022-07-12 | A system for recognizing the motion state of the human body using a six-axis inertial measurement device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115127550A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102121829A (en) * | 2010-08-09 | 2011-07-13 | 汪滔 | Miniature inertia measurement system |
CN104482938A (en) * | 2014-10-24 | 2015-04-01 | 中国兵器工业集团第二一四研究所苏州研发中心 | Low temperature co-fired ceramic (LTCC) technology micro inertial measurement unit (MIMU)-based three-axis structure and manufacturing technology thereof |
CN109855621A (en) * | 2018-12-27 | 2019-06-07 | 国网江苏省电力有限公司检修分公司 | A kind of composed chamber's one skilled in the art's navigation system and method based on UWB and SINS |
CN110207692A (en) * | 2019-05-13 | 2019-09-06 | 南京航空航天大学 | A kind of inertia pre-integration pedestrian navigation method of map auxiliary |
CN110440798A (en) * | 2019-07-16 | 2019-11-12 | 北京自动化控制设备研究所 | Integrated micro inertial measurement unit and inertial navigation system in high precision |
CN111854739A (en) * | 2020-02-18 | 2020-10-30 | 重庆市皓颖科技发展有限公司 | Small-size high-precision inertial measurement unit |
-
2022
- 2022-07-12 CN CN202210812255.2A patent/CN115127550A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102121829A (en) * | 2010-08-09 | 2011-07-13 | 汪滔 | Miniature inertia measurement system |
CN104482938A (en) * | 2014-10-24 | 2015-04-01 | 中国兵器工业集团第二一四研究所苏州研发中心 | Low temperature co-fired ceramic (LTCC) technology micro inertial measurement unit (MIMU)-based three-axis structure and manufacturing technology thereof |
CN109855621A (en) * | 2018-12-27 | 2019-06-07 | 国网江苏省电力有限公司检修分公司 | A kind of composed chamber's one skilled in the art's navigation system and method based on UWB and SINS |
CN110207692A (en) * | 2019-05-13 | 2019-09-06 | 南京航空航天大学 | A kind of inertia pre-integration pedestrian navigation method of map auxiliary |
CN110440798A (en) * | 2019-07-16 | 2019-11-12 | 北京自动化控制设备研究所 | Integrated micro inertial measurement unit and inertial navigation system in high precision |
CN111854739A (en) * | 2020-02-18 | 2020-10-30 | 重庆市皓颖科技发展有限公司 | Small-size high-precision inertial measurement unit |
Non-Patent Citations (7)
Title |
---|
刘福朝: "低成本捷联微惯性测量单元设计与误差补偿", 《电子测试》, 25 March 2022 (2022-03-25), pages 28 - 30 * |
刘福朝: "微惯性测量单元设计及抗高过载性能分析", 《压电与声光》, vol. 44, no. 2, 20 April 2022 (2022-04-20), pages 289 - 293 * |
卞玉民: "MEMS惯性传感器现状与发展趋势", 《计测技术》, 28 August 2019 (2019-08-28), pages 50 - 56 * |
司玉仕: "基于惯性传感器的动作识别研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 February 2019 (2019-02-15), pages 140 - 537 * |
徐丽敏: "一种适用于跑步状态的惯性/零速/GPS室内外无缝组合导航定位方法", 《导航与控制》, 5 December 2019 (2019-12-05), pages 21 - 28 * |
汪宋兵: "基于UWB/MEMS组合的行人室内定位系统关键技术研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》, 15 June 2020 (2020-06-15), pages 029 - 7 * |
熊伟民: "可穿戴式运动识别系统及其算法的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 July 2019 (2019-07-15), pages 138 - 1064 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Tong et al. | HMM-based human fall detection and prediction method using tri-axial accelerometer | |
CN107219924B (en) | A Method of Air Gesture Recognition Based on Inertial Sensor | |
CN104586398A (en) | Old man falling detecting method and system based on multi-sensor fusion | |
CN110674875A (en) | A Pedestrian Motion Pattern Recognition Method Based on Deep Hybrid Model | |
CN107657277B (en) | Human body abnormal behavior detection and judgment method and system based on big data | |
US20220188646A1 (en) | Classifier with outlier detection algorithm | |
CN103116745B (en) | Based on the Falls Among Old People state modeling of Geometrical algebra, feature extraction and recognition methods | |
CN109976526A (en) | A kind of sign Language Recognition Method based on surface myoelectric sensor and nine axle sensors | |
Badawi et al. | Multimodal human activity recognition from wearable inertial sensors using machine learning | |
CN110555463B (en) | Gait feature-based identity recognition method | |
CN111914643A (en) | A Human Action Recognition Method Based on Skeletal Keypoint Detection | |
CN108170274A (en) | A kind of action identification method based on wearable device | |
CN114358279A (en) | Image recognition network model pruning method, device, equipment and storage medium | |
Kale et al. | Human posture recognition using artificial neural networks | |
CN111259956B (en) | Inertial sensor-based method for rapidly identifying unconventional behaviors of people | |
Liu et al. | Automatic fall risk detection based on imbalanced data | |
Nouriani et al. | Deep-learning-based human activity recognition using wearable sensors | |
Damirchi et al. | Arc-net: Activity recognition through capsules | |
Panahandeh et al. | Chest-mounted inertial measurement unit for pedestrian motion classification using continuous hidden Markov model | |
CN115265531A (en) | A system for identifying motion states using inertial measurement devices | |
CN115127550A (en) | A system for recognizing the motion state of the human body using a six-axis inertial measurement device | |
Wang et al. | Deeply integrated autoencoder-based anomaly detection and critical parameter identification for unmanned aerial vehicle actuators | |
WO2018014432A1 (en) | Voice application triggering control method, device and terminal | |
Natarajasivan et al. | Filter based sensor fusion for activity recognition using smartphone | |
US11494918B2 (en) | Moving state analysis device, moving state analysis method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |