[go: up one dir, main page]

CN114578367B - Real-time motion trail monitoring method, device, equipment and readable storage medium - Google Patents

Real-time motion trail monitoring method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN114578367B
CN114578367B CN202210188102.5A CN202210188102A CN114578367B CN 114578367 B CN114578367 B CN 114578367B CN 202210188102 A CN202210188102 A CN 202210188102A CN 114578367 B CN114578367 B CN 114578367B
Authority
CN
China
Prior art keywords
moment
joint
point cloud
distance
real
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
CN202210188102.5A
Other languages
Chinese (zh)
Other versions
CN114578367A (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.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
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 Wuhan University WHU filed Critical Wuhan University WHU
Priority to CN202210188102.5A priority Critical patent/CN114578367B/en
Publication of CN114578367A publication Critical patent/CN114578367A/en
Application granted granted Critical
Publication of CN114578367B publication Critical patent/CN114578367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • G01S15/08Systems for measuring distance only
    • G01S15/32Systems for measuring distance only using transmission of continuous waves, whether amplitude-, frequency-, or phase-modulated, or unmodulated
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/50Systems of measurement, based on relative movement of the target
    • G01S15/58Velocity or trajectory determination systems; Sense-of-movement determination systems
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/50Systems of measurement, based on relative movement of the target
    • G01S15/58Velocity or trajectory determination systems; Sense-of-movement determination systems
    • G01S15/588Velocity or trajectory determination systems; Sense-of-movement determination systems measuring the velocity vector
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/88Sonar systems specially adapted for specific applications
    • G01S15/93Sonar systems specially adapted for specific applications for anti-collision purposes
    • G01S15/931Sonar systems specially adapted for specific applications for anti-collision purposes of land vehicles

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The application relates to a real-time motion trail monitoring method, a device, equipment and a readable storage medium, which relate to the technical field of motion monitoring, wherein point cloud data is obtained in real time from a point cloud database through a rotation vector sent by a wearable device, the distance between an intelligent terminal and the wearable device is measured by utilizing frequency modulation continuous wave ultrasonic dynamic ranging, and real-time real position coordinates of a joint are obtained through prediction through a hidden Markov model based on the point cloud data, the distance between the intelligent terminal and the wearable device and instantaneous acceleration information sent by the wearable device, so that the monitoring and tracking of the motion trail of the joint are realized. According to the application, the real-time monitoring and tracking of the joint movement are realized through the intelligent terminal and the wearable equipment, the use cost can be effectively reduced, the movement track is monitored through the rotation vector information and the acceleration information acquired by the wearable equipment, and the accuracy of the movement track monitoring can be effectively ensured.

Description

实时运动轨迹监测方法、装置、设备及可读存储介质Real-time motion trajectory monitoring method, device, equipment and readable storage medium

技术领域Technical Field

本申请涉及运动监测技术领域,特别涉及一种实时运动轨迹监测方法、装置、设备及可读存储介质。The present application relates to the field of motion monitoring technology, and in particular to a real-time motion trajectory monitoring method, device, equipment and readable storage medium.

背景技术Background technique

随着经济日益发展,人民群众生活水平提高的同时,健身意识也在逐步增强。比如,越来越多的人逐渐从室内主动走出到户外,并选择合适的健身运动以增强体质。不过,在运动的过程中,人们由于运动姿势不规范往往易导致引发多种肌肉和骨骼相关的健康问题,更严重的情况下,错误的健身动作会伤及内脏。因此,通过合理的运动监测方法来矫正人们运动时的不规范姿势是非常重要的。As the economy develops and people's living standards improve, their awareness of fitness is also increasing. For example, more and more people are gradually moving from indoors to outdoors and choosing appropriate fitness exercises to improve their physical fitness. However, during exercise, people's improper exercise postures often lead to a variety of muscle and bone-related health problems. In more serious cases, incorrect fitness movements can damage internal organs. Therefore, it is very important to correct people's improper exercise postures through reasonable exercise monitoring methods.

相关技术中,往往通过建立人体的骨骼模型来实现运动姿态和轨迹的监测。不过,现有技术中的高精度实时建模方法大部分需要基于图像或者视频方可实现,其意味着对人体姿态和轨迹的监测需依赖于图像或视频的质量,换而言之也就是依赖拍摄设备的质量。因此,虽然采用基于图像或视频的方法在高品质图像或高清晰视频的前提下能有足够的准确率以及实时性,但是,其存在成本高的问题,且对于户外运动者来说,布置可跟踪的高成本拍摄设备对其在运动期间实时跟踪显然是不现实的;此外,高成本的拍摄设备在光线差的情况下仍不能获得高清晰的图片,由此可见,基于图像或者视频实现的高精度实时建模方法还存在受环境因素(比如光线、温度和湿度等)影响大的问题,进而可能导致建模结果存在误差。In the related art, the monitoring of motion posture and trajectory is often achieved by establishing a human skeleton model. However, most of the high-precision real-time modeling methods in the prior art need to be based on images or videos to be realized, which means that the monitoring of human posture and trajectory depends on the quality of the image or video, in other words, it depends on the quality of the shooting equipment. Therefore, although the image or video-based method can have sufficient accuracy and real-time performance under the premise of high-quality images or high-definition videos, it has the problem of high cost, and for outdoor athletes, it is obviously unrealistic to arrange high-cost tracking equipment to track them in real time during exercise; in addition, high-cost shooting equipment still cannot obtain high-definition pictures under poor light conditions. It can be seen that the high-precision real-time modeling method based on images or videos is still greatly affected by environmental factors (such as light, temperature and humidity, etc.), which may lead to errors in the modeling results.

发明内容Summary of the invention

本申请提供一种实时运动轨迹监测方法、装置、设备及可读存储介质,以解决相关技术中存在的成本高和受环境因素影响大的问题。The present application provides a real-time motion trajectory monitoring method, device, equipment and readable storage medium to solve the problems of high cost and great influence of environmental factors existing in the related technology.

第一方面,提供了一种实时运动轨迹监测方法,包括以下步骤:In a first aspect, a real-time motion trajectory monitoring method is provided, comprising the following steps:

接收可穿戴设备发送的第一关节在第T时刻的第一旋转向量和第一瞬时加速度信息;Receiving a first rotation vector and a first instantaneous acceleration information of a first joint at a time T sent by a wearable device;

基于第一旋转向量从预设的点云数据库中查找出对应的第一位置集合,预设的点云数据库包括旋转向量和位置集合之间的映射关系,位置集合包括与关节对应的多个预设位置坐标;Based on the first rotation vector, a corresponding first position set is found from a preset point cloud database, where the preset point cloud database includes a mapping relationship between the rotation vector and the position set, and the position set includes a plurality of preset position coordinates corresponding to the joint;

获取第一关节在第T-1时刻的第二位置集合,并根据所述第二位置集合和第一位置集合从预设的点云数据库中筛选出第一点云状态空间,所述第一点云状态空间包括多个点云状态,每个点云状态由第一位置集合中的预设位置坐标和第二位置集合中的预设位置坐标组成;Acquire a second position set of the first joint at time T-1, and filter out a first point cloud state space from a preset point cloud database according to the second position set and the first position set, wherein the first point cloud state space includes a plurality of point cloud states, each point cloud state being composed of preset position coordinates in the first position set and preset position coordinates in the second position set;

基于调频连续波测距计算在第T时刻的智能终端与可穿戴设备间的距离,得到第一距离;Calculate the distance between the smart terminal and the wearable device at time T based on frequency modulated continuous wave ranging to obtain a first distance;

分别获取在第T-1时刻的智能终端与可穿戴设备间的第二距离、在第T-2时刻的智能终端与可穿戴设备间的第三距离、第一关节在第T-1时刻的第一实际位置坐标和第一关节在第T-2时刻的第二实际位置坐标;Respectively obtain the second distance between the smart terminal and the wearable device at the T-1th moment, the third distance between the smart terminal and the wearable device at the T-2th moment, the first actual position coordinates of the first joint at the T-1th moment, and the second actual position coordinates of the first joint at the T-2th moment;

基于第一距离、第二距离、第三距离、第一实际位置坐标和第二实际位置坐标计算出智能终端在第T时刻的位置坐标;Calculate the location coordinates of the smart terminal at time T based on the first distance, the second distance, the third distance, the first actual location coordinates, and the second actual location coordinates;

将第一瞬时加速度信息、第一点云状态空间和智能终端在第T时刻的位置坐标输入至隐马尔可夫模型,得到第一关节在第T时刻的第三实际位置坐标。The first instantaneous acceleration information, the first point cloud state space and the position coordinates of the intelligent terminal at the Tth moment are input into the hidden Markov model to obtain the third actual position coordinates of the first joint at the Tth moment.

一些实施例中,在所述接收可穿戴设备发送的第一关节在第T时刻的第一旋转向量和第一瞬时加速度信息的步骤之前,还包括:In some embodiments, before the step of receiving the first rotation vector and the first instantaneous acceleration information of the first joint at the T moment sent by the wearable device, the method further includes:

基于D-H模型对手臂运动进行建模,得到连杆模型;The arm motion is modeled based on the D-H model to obtain the linkage model;

将手臂上的多个关节角输入至所述连杆模型,得到多个旋转向量;Inputting multiple joint angles on the arm into the link model to obtain multiple rotation vectors;

创建各个旋转向量与其对应的包括多个预设位置坐标的位置集合间的映射关系,得到点云数据库。A mapping relationship between each rotation vector and its corresponding position set including a plurality of preset position coordinates is created to obtain a point cloud database.

一些实施例中,所述隐马尔可夫模型中的模型参数包括初始概率分布、状态转移概率分布和输出概率分布,所述状态转移概率分布的概率表达式包含瞬时加速度信息、智能终端的位置坐标以及智能终端与可穿戴设备间的距离,所述输出概率分布为1。In some embodiments, the model parameters in the hidden Markov model include an initial probability distribution, a state transition probability distribution, and an output probability distribution, the probability expression of the state transition probability distribution includes instantaneous acceleration information, the location coordinates of the smart terminal, and the distance between the smart terminal and the wearable device, and the output probability distribution is 1.

一些实施例中,所述可穿戴设备包括惯性传感器和加速度传感器,所述惯性传感器用于采集第一关节在第T时刻的第一旋转向量,所述加速度传感器用于采集第一关节在第T时刻的第一瞬时加速度信息。In some embodiments, the wearable device includes an inertial sensor and an acceleration sensor, the inertial sensor is used to collect the first rotation vector of the first joint at the Tth moment, and the acceleration sensor is used to collect the first instantaneous acceleration information of the first joint at the Tth moment.

第二方面,提供了一种实时运动轨迹监测装置,包括:In a second aspect, a real-time motion trajectory monitoring device is provided, comprising:

接收单元,其用于接收可穿戴设备发送的第一关节在第T时刻的第一旋转向量和第一瞬时加速度信息;A receiving unit, configured to receive a first rotation vector and a first instantaneous acceleration information of a first joint at a time T sent by a wearable device;

查找单元,其用于基于第一旋转向量从预设的点云数据库中查找出对应的第一位置集合,预设的点云数据库包括旋转向量和位置集合之间的映射关系,位置集合包括与关节对应的多个预设位置坐标;A search unit, which is used to search for a corresponding first position set from a preset point cloud database based on the first rotation vector, the preset point cloud database includes a mapping relationship between the rotation vector and the position set, and the position set includes a plurality of preset position coordinates corresponding to the joint;

生成单元,其用于获取第一关节在第T-1时刻的第二位置集合,并根据所述第二位置集合和第一位置集合从预设的点云数据库中筛选出第一点云状态空间,所述第一点云状态空间包括多个点云状态,每个点云状态由第一位置集合中的预设位置坐标和第二位置集合中的预设位置坐标组成;a generating unit, which is used to obtain a second position set of the first joint at the time T-1, and filter out a first point cloud state space from a preset point cloud database according to the second position set and the first position set, wherein the first point cloud state space includes a plurality of point cloud states, each point cloud state is composed of preset position coordinates in the first position set and preset position coordinates in the second position set;

测距单元,其用于基于调频连续波测距计算在第T时刻的智能终端与可穿戴设备间的距离,得到第一距离;A distance measuring unit, which is used to calculate the distance between the smart terminal and the wearable device at the Tth moment based on the frequency modulated continuous wave ranging to obtain a first distance;

获取单元,其用于分别获取在第T-1时刻的智能终端与可穿戴设备间的第二距离、在第T-2时刻的智能终端与可穿戴设备间的第三距离、第一关节在第T-1时刻的第一实际位置坐标和第一关节在第T-2时刻的第二实际位置坐标;an acquisition unit, which is used to respectively acquire a second distance between the smart terminal and the wearable device at the T-1th moment, a third distance between the smart terminal and the wearable device at the T-2th moment, a first actual position coordinate of the first joint at the T-1th moment, and a second actual position coordinate of the first joint at the T-2th moment;

计算单元,其用于基于第一距离、第二距离、第三距离、第一实际位置坐标和第二实际位置坐标计算出智能终端在第T时刻的位置坐标;A calculation unit, which is used to calculate the position coordinates of the smart terminal at the Tth moment based on the first distance, the second distance, the third distance, the first actual position coordinates and the second actual position coordinates;

预测单元,其用于将第一瞬时加速度信息、第一点云状态空间和智能终端在第T时刻的位置坐标输入至隐马尔可夫模型,得到第一关节在第T时刻的第三实际位置坐标。The prediction unit is used to input the first instantaneous acceleration information, the first point cloud state space and the position coordinates of the intelligent terminal at the Tth moment into the hidden Markov model to obtain the third actual position coordinates of the first joint at the Tth moment.

一些实施例中,所述装置还包括创建单元,其用于:In some embodiments, the apparatus further comprises a creating unit, which is configured to:

基于D-H模型对手臂运动进行建模,得到连杆模型;The arm motion is modeled based on the D-H model to obtain the linkage model;

将手臂上的多个关节角输入至所述连杆模型,得到多个旋转向量;Inputting multiple joint angles on the arm into the link model to obtain multiple rotation vectors;

创建各个旋转向量与其对应的包括多个预设位置坐标的位置集合间的映射关系,得到点云数据库。A mapping relationship between each rotation vector and its corresponding position set including a plurality of preset position coordinates is created to obtain a point cloud database.

一些实施例中,所述隐马尔可夫模型中的模型参数包括初始概率分布、状态转移概率分布和输出概率分布,所述状态转移概率分布的概率表达式包含瞬时加速度信息、智能终端的位置坐标以及智能终端与可穿戴设备间的距离,所述输出概率分布为1。In some embodiments, the model parameters in the hidden Markov model include an initial probability distribution, a state transition probability distribution, and an output probability distribution, the probability expression of the state transition probability distribution includes instantaneous acceleration information, the location coordinates of the smart terminal, and the distance between the smart terminal and the wearable device, and the output probability distribution is 1.

一些实施例中,所述可穿戴设备包括惯性传感器和加速度传感器,所述惯性传感器用于采集第一关节在第T时刻的第一旋转向量,所述加速度传感器用于采集第一关节在第T时刻的第一瞬时加速度信息。In some embodiments, the wearable device includes an inertial sensor and an acceleration sensor, the inertial sensor is used to collect the first rotation vector of the first joint at the Tth moment, and the acceleration sensor is used to collect the first instantaneous acceleration information of the first joint at the Tth moment.

第三方面,提供了一种实时运动轨迹监测设备,包括:存储器和处理器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行,以实现前述的实时运动轨迹监测方法。In a third aspect, a real-time motion trajectory monitoring device is provided, comprising: a memory and a processor, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the aforementioned real-time motion trajectory monitoring method.

第四方面,提供了一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,当所述计算机程序被处理器执行时,以实现前述的实时运动轨迹监测方法。In a fourth aspect, a computer-readable storage medium is provided, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the aforementioned real-time motion trajectory monitoring method is implemented.

本申请提供的技术方案带来的有益效果包括:可实现对关节运动的实时监测和追踪,并有效降低使用成本的同时,降低外界环境因素对旋转向量信息和加速度信息采集精度的影响,以有效保证运动轨迹监测的准确性。The beneficial effects brought about by the technical solution provided in this application include: it can realize real-time monitoring and tracking of joint movement, effectively reduce the cost of use, and reduce the impact of external environmental factors on the accuracy of rotation vector information and acceleration information collection, so as to effectively ensure the accuracy of motion trajectory monitoring.

本申请提供了一种实时运动轨迹监测方法、装置、设备及可读存储介质,通过可穿戴设备发送的旋转向量从点云数据库中实时获取点云数据,并利用调频连续波超声动态测距测得智能终端与可穿戴设备间的距离,再基于点云数据、智能终端与可穿戴设备间的距离以及可穿戴设备发送的瞬时加速度信息并通过隐马尔可夫模型预测得到关节的实时真实位置坐标,进而实现对关节运动轨迹的监测追踪。由此可见,本申请只需通过一部智能终端和一个可穿戴设备即可实现对关节运动的实时监测和追踪,其无需布置可跟踪的高成本拍摄设备,有效降低了使用成本,且通过可穿戴设备采集的旋转向量信息和加速度信息来实现运动轨迹的监测,可有效降低外界环境因素对旋转向量信息和加速度信息采集精度的影响,进而能有效保证运动轨迹监测的准确性。The present application provides a real-time motion trajectory monitoring method, device, equipment and readable storage medium, which obtains point cloud data from a point cloud database in real time through the rotation vector sent by the wearable device, and uses frequency-modulated continuous wave ultrasonic dynamic ranging to measure the distance between the smart terminal and the wearable device, and then based on the point cloud data, the distance between the smart terminal and the wearable device, and the instantaneous acceleration information sent by the wearable device, the real-time true position coordinates of the joint are obtained through hidden Markov model prediction, thereby realizing the monitoring and tracking of the joint motion trajectory. It can be seen that the present application only needs to use a smart terminal and a wearable device to realize real-time monitoring and tracking of joint motion, and it does not need to arrange high-cost tracking shooting equipment, which effectively reduces the cost of use, and the rotation vector information and acceleration information collected by the wearable device are used to realize the monitoring of the motion trajectory, which can effectively reduce the influence of external environmental factors on the accuracy of the rotation vector information and acceleration information collection, thereby effectively ensuring the accuracy of motion trajectory monitoring.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1为本申请实施例提供的一种实时运动轨迹监测方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a real-time motion trajectory monitoring method provided in an embodiment of the present application;

图2为本申请实施例提供的一种实时运动轨迹监测设备的结构示意图。FIG. 2 is a schematic diagram of the structure of a real-time motion trajectory monitoring device provided in an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

本申请实施例提供了一种实时运动轨迹监测方法、装置、设备及可读存储介质,其能解决相关技术中存在的成本高和受环境因素影响大的问题。The embodiments of the present application provide a real-time motion trajectory monitoring method, device, equipment and readable storage medium, which can solve the problems of high cost and great influence of environmental factors existing in the related technology.

图1是本申请实施例提供的一种实时运动轨迹监测方法,包括以下步骤:FIG1 is a real-time motion trajectory monitoring method provided by an embodiment of the present application, comprising the following steps:

步骤S10:接收可穿戴设备发送的第一关节在第T时刻的第一旋转向量和第一瞬时加速度信息;Step S10: receiving the first rotation vector and the first instantaneous acceleration information of the first joint at the time T sent by the wearable device;

进一步的,所述可穿戴设备包括惯性传感器和加速度传感器,所述惯性传感器用于采集第一关节在第T时刻的第一旋转向量,所述加速度传感器用于采集第一关节在第T时刻的第一瞬时加速度信息。Furthermore, the wearable device includes an inertial sensor and an acceleration sensor, the inertial sensor is used to collect a first rotation vector of the first joint at the Tth moment, and the acceleration sensor is used to collect first instantaneous acceleration information of the first joint at the Tth moment.

进一步的,在所述接收可穿戴设备发送的第一关节在第T时刻的第一旋转向量和第一瞬时加速度信息的步骤之前,还包括:Furthermore, before the step of receiving the first rotation vector and the first instantaneous acceleration information of the first joint at the T moment sent by the wearable device, the method further includes:

基于D-H模型对手臂运动进行建模,得到连杆模型;The arm motion is modeled based on the D-H model to obtain the linkage model;

将手臂上的多个关节角输入至所述连杆模型,得到多个旋转向量;Inputting multiple joint angles on the arm into the link model to obtain multiple rotation vectors;

创建各个旋转向量与其对应的包括多个预设位置坐标的位置集合间的映射关系,得到点云数据库。A mapping relationship between each rotation vector and its corresponding position set including a plurality of preset position coordinates is created to obtain a point cloud database.

步骤S20:基于第一旋转向量从预设的点云数据库中查找出对应的第一位置集合,预设的点云数据库包括旋转向量和位置集合之间的映射关系,位置集合包括与关节对应的多个预设位置坐标;Step S20: searching a corresponding first position set from a preset point cloud database based on the first rotation vector, wherein the preset point cloud database includes a mapping relationship between the rotation vector and the position set, and the position set includes a plurality of preset position coordinates corresponding to the joint;

步骤S30:获取第一关节在第T-1时刻的第二位置集合,并根据所述第二位置集合和第一位置集合从预设的点云数据库中筛选出第一点云状态空间,所述第一点云状态空间包括多个点云状态,每个点云状态由第一位置集合中的预设位置坐标和第二位置集合中的预设位置坐标组成;Step S30: obtaining a second position set of the first joint at the time T-1, and filtering out a first point cloud state space from a preset point cloud database according to the second position set and the first position set, wherein the first point cloud state space includes a plurality of point cloud states, each point cloud state being composed of preset position coordinates in the first position set and preset position coordinates in the second position set;

步骤S40:基于调频连续波测距计算在第T时刻的智能终端与可穿戴设备间的距离,得到第一距离;Step S40: Calculate the distance between the smart terminal and the wearable device at the Tth moment based on the frequency modulated continuous wave ranging to obtain a first distance;

步骤S50:分别获取在第T-1时刻的智能终端与可穿戴设备间的第二距离、在第T-2时刻的智能终端与可穿戴设备间的第三距离、第一关节在第T-1时刻的第一实际位置坐标和第一关节在第T-2时刻的第二实际位置坐标;Step S50: respectively obtaining the second distance between the smart terminal and the wearable device at the T-1th moment, the third distance between the smart terminal and the wearable device at the T-2th moment, the first actual position coordinates of the first joint at the T-1th moment, and the second actual position coordinates of the first joint at the T-2th moment;

步骤S60:基于第一距离、第二距离、第三距离、第一实际位置坐标和第二实际位置坐标计算出智能终端在第T时刻的位置坐标;Step S60: Calculate the location coordinates of the smart terminal at time T based on the first distance, the second distance, the third distance, the first actual location coordinates, and the second actual location coordinates;

步骤S70:将第一瞬时加速度信息、第一点云状态空间和智能终端在第T时刻的位置坐标输入至隐马尔可夫模型,得到第一关节在第T时刻的第三实际位置坐标。Step S70: input the first instantaneous acceleration information, the first point cloud state space and the position coordinates of the intelligent terminal at the Tth moment into the hidden Markov model to obtain the third actual position coordinates of the first joint at the Tth moment.

进一步的,所述隐马尔可夫模型中的模型参数包括初始概率分布、状态转移概率分布和输出概率分布,所述状态转移概率分布的概率表达式包含瞬时加速度信息、智能终端的位置坐标以及智能终端与可穿戴设备间的距离,所述输出概率分布为1。Furthermore, the model parameters in the hidden Markov model include an initial probability distribution, a state transition probability distribution and an output probability distribution, the probability expression of the state transition probability distribution includes instantaneous acceleration information, the position coordinates of the smart terminal and the distance between the smart terminal and the wearable device, and the output probability distribution is 1.

本申请只需通过一部智能终端和一个可穿戴设备即可实现对关节运动的实时监测和追踪,其无需布置可跟踪的高成本拍摄设备,有效降低了使用成本,且通过可穿戴设备采集的旋转向量信息和加速度信息来实现运动轨迹的监测,可有效降低外界环境因素对旋转向量信息和加速度信息采集精度的影响,进而能有效保证运动轨迹监测的准确性。The present application can realize real-time monitoring and tracking of joint movements through only a smart terminal and a wearable device. It does not need to deploy high-cost tracking shooting equipment, effectively reducing the cost of use. The rotation vector information and acceleration information collected by the wearable device can be used to monitor the motion trajectory, which can effectively reduce the impact of external environmental factors on the accuracy of the rotation vector information and acceleration information collection, thereby effectively ensuring the accuracy of motion trajectory monitoring.

示范性的,随着移动可穿戴设备的大量普及,可穿戴设备在如医疗、娱乐、安全和健身等领域逐渐变得炙手可热起来;而其能够提供高精度活动数据,为人类的生活提供诸多便利的关键技术在于智能可穿戴设备的动作感知技术,其依靠动作识别技术可以监测一个人的行走、跑步和骑行时的动作数据,并通过人工智能的方法来监测人们的行为动作,进而对运动时产生的动作不规范问题做出提醒,以避免日积月累产生的健身安全隐患。目前被广泛使用的可穿戴设备包括智能腕带、智能手环和智能腰带等,其主要通过获取一个人身体不同部位的动作数据来监测人的行为动作,而使用单一可穿戴设备进行动作行为的监测是其进一步的发展趋势。本实施例中便可通过可穿戴设备来获取用于监测实时运动轨迹的旋转向量信息和瞬时加速度信息,其中,可穿戴设备可以为智能手环,也可是智能腕带,亦或是智能腰带,还可是其他能够实现旋转向量信息和瞬时加速度信息采集的可穿戴设备,因此可穿戴设备的具体选择可根据实际需求确定,在此不作限定。Exemplarily, with the widespread popularity of mobile wearable devices, wearable devices have gradually become popular in fields such as medical care, entertainment, safety and fitness; and the key technology that can provide high-precision activity data and provide many conveniences for human life lies in the motion sensing technology of smart wearable devices, which can monitor a person's walking, running and riding motion data by relying on motion recognition technology, and monitor people's behavior and actions through artificial intelligence methods, and then remind them of irregular motion problems during exercise to avoid fitness safety hazards that accumulate over time. Currently, widely used wearable devices include smart wristbands, smart bracelets and smart belts, etc., which mainly monitor people's behavior and actions by obtaining motion data of different parts of a person's body, and using a single wearable device to monitor motion behavior is its further development trend. In this embodiment, the rotation vector information and instantaneous acceleration information for monitoring real-time motion trajectory can be obtained through a wearable device, wherein the wearable device can be a smart bracelet, a smart wristband, or a smart belt, or other wearable devices that can realize the collection of rotation vector information and instantaneous acceleration information, so the specific selection of wearable devices can be determined according to actual needs, and is not limited here.

本实施例在通过可穿戴设备来获取旋转向量信息和瞬时加速度信息之前,先进行点云数据库的创建。其中,以可穿戴设备为智能手环为例,使用手臂上肢与小臂作为连杆模型,并使用标准D-H模型(Denavit-Hartenberg模型被广泛的用于机器人运动学中,其表示了对机器人连杆和关节进行建模的一种非常简单的方法,可用于表示在任何坐标中的变换)建模:通过连杆长度Li、连杆偏移di、扭转角αi、关节角θi四个参数建立连杆坐标系,并经过两次平移和两次旋转后建立如公式(1)所示的相邻连杆的齐次变换矩阵AiIn this embodiment, before obtaining the rotation vector information and instantaneous acceleration information through the wearable device, a point cloud database is first created. Taking the wearable device as a smart bracelet as an example, the upper limb and the forearm of the arm are used as the connecting rod model, and the standard DH model (Denavit-Hartenberg model is widely used in robot kinematics, which represents a very simple method for modeling robot connecting rods and joints, and can be used to represent transformations in any coordinates) is used for modeling: the connecting rod coordinate system is established through four parameters: connecting rod length Li , connecting rod offset di , torsion angle αi , and joint angle θi , and after two translations and two rotations, the homogeneous transformation matrix Ai of adjacent connecting rods as shown in formula (1) is established.

其中,关节角θi包括五个,其分别表示肩部屈曲/伸展、外展/内收和内/外旋以及肘部屈/伸和前臂内/外旋。本实施例通过广泛遍历所有运动的状态,建立腕部关节旋转向量信息与位置信息的映射,即每个旋转向量都会有与其对应的多个预设位置坐标,而多个预设坐标形成一个位置集合,因此一个旋转向量都会存在一个与其具有映射关系的位置集合,并对其进行保存形成点云数据库,以供点云运动监测使用。Among them, the joint angles θ i include five, which respectively represent shoulder flexion/extension, abduction/adduction and internal/external rotation, elbow flexion/extension and forearm internal/external rotation. This embodiment establishes a mapping between wrist joint rotation vector information and position information by extensively traversing all motion states, that is, each rotation vector will have multiple preset position coordinates corresponding to it, and multiple preset coordinates form a position set, so a rotation vector will have a position set with a mapping relationship, and it is saved to form a point cloud database for point cloud motion monitoring.

此外,两个旋转向量分别对应的位置集合可形成一个点云状态空间,而点云状态空间中又会包含多个点云状态,且每个点云状态分别由两个位置集合中的预设位置坐标组成。比如,旋转向量F对应位置集合F′,位置集合F′={F′1,F′2},F′1和F′2均表示与旋转向量F对应的位置坐标;旋转向量M对应位置集合M′,位置集合M′={M′1,M′2,M′3},M′1、M′2和M′3均表示与旋转向量M对应的位置坐标;那么旋转向量F和旋转向量M组成的点云状态空间S={(F′1,M′1),(F′1,M′2),(F′1,M′3),(F′2,M′1),(F′2,M′2),(F′2,M′3)},且该点云状态空间包括六个点云状态:(F′1,M′1)、(F′1,M′2)、(F′1,M′3)、(F′2,M′1)、(F′2,M′2)、(F′2,M′3)。In addition, the position sets corresponding to the two rotation vectors can form a point cloud state space, and the point cloud state space will contain multiple point cloud states, and each point cloud state is composed of preset position coordinates in the two position sets. For example, the rotation vector F corresponds to the position set F′, position set F′={F′ 1 ,F′ 2 }, F′ 1 and F′ 2 both represent the position coordinates corresponding to the rotation vector F; the rotation vector M corresponds to the position set M′, position set M′={M′ 1 ,M′ 2 ,M′ 3 }, M′ 1 , M′ 2 and M′ 3 all represent the position coordinates corresponding to the rotation vector M; then the point cloud state space S composed of the rotation vector F and the rotation vector M is S={(F′ 1 ,M′ 1 ),(F 1 ,M′ 2 ),(F′ 1 ,M′ 3 ),(F′ 2 ,M′ 1 ),(F′ 2 ,M′ 2 ),(F′ 2 ,M′ 3 )}, and the point cloud state space includes six point cloud states: (F′ 1 ,M′ 1 ),(F′ 1 ,M′ 2 ),(F′ 1 ,M′ 3 )}. 3 ), (F′ 2 ,M′ 1 ), (F′ 2 ,M′ 2 ), (F′ 2 ,M′ 3 ).

因此,本实施例可通过智能手环内置的惯性传感器和加速度传感器分别采集各个关节的旋转向量信息和瞬时加速度信息,并基于旋转向量信息和瞬时加速度信息实现对人体运动轨迹的监测,其中,智能手环实时采集的加速度信息可作为隐马尔可夫模型的观测量,对运动的位置进行预测,进而输出预测的位置三元组,其无需布设高成本的拍摄设备,可有效解决因光线、运动距离、运动场地等因素而造成的一系列不良影响。Therefore, this embodiment can respectively collect the rotation vector information and instantaneous acceleration information of each joint through the built-in inertial sensor and acceleration sensor of the smart bracelet, and monitor the human body's motion trajectory based on the rotation vector information and instantaneous acceleration information. Among them, the acceleration information collected by the smart bracelet in real time can be used as the observation quantity of the hidden Markov model to predict the position of the movement, and then output the predicted position triplet. It does not require the deployment of high-cost shooting equipment, and can effectively solve a series of adverse effects caused by factors such as light, movement distance, and sports venue.

另外,本实施例在智能手环所形成的点云数据的基础上,还使用了FMCW(Frequency Modulated Continuous Wave,调频连续波)超声动态测距的方法与点云预测算法混合,以约束点云数据空间,使得在不增加用户使用成本的情况下,仅通过一部智能终端和一个佩戴在手腕的智能手环,就可以实时对手臂的运动轨迹进行监测追踪。In addition, based on the point cloud data formed by the smart bracelet, this embodiment also uses a FMCW (Frequency Modulated Continuous Wave) ultrasonic dynamic ranging method mixed with a point cloud prediction algorithm to constrain the point cloud data space, so that the movement trajectory of the arm can be monitored and tracked in real time through only a smart terminal and a smart bracelet worn on the wrist without increasing the user's usage cost.

FMCW超声测距是在扫频周期内发射频率变化的连续波,被物体反射后的回波和发射信号有一定的频率差,通过测量频率差可以获得目标与声波信号发生源的距离信息。由于差频信号频率较低,因此可以使用相对简单的硬件处理,其适合用于数据采集并进行数字信号处理;且由于FMCW超声测距收发同时,理论上不存在脉冲雷达所存在的测距盲区,并且发射信号的平均功率等于峰值功率,因此只需要小功率的器件即可实现,从而降低了被截获干扰的概率。FMCW ultrasonic ranging is to transmit a continuous wave with a changing frequency within a frequency sweep period. The echo reflected by the object has a certain frequency difference with the transmitted signal. By measuring the frequency difference, the distance information between the target and the source of the sound wave signal can be obtained. Since the difference frequency signal has a low frequency, it can be processed with relatively simple hardware, which is suitable for data acquisition and digital signal processing. And since FMCW ultrasonic ranging transmits and receives at the same time, in theory, there is no ranging blind spot that exists in pulse radar, and the average power of the transmitted signal is equal to the peak power, so only low-power devices are needed to achieve it, thereby reducing the probability of being intercepted and interfered.

以下将对FMCW超声测距原理作进一步解释。The principle of FMCW ultrasonic ranging will be further explained below.

设fs(t)、fe(t)分别表示发出信号和接收信号的频率变化函数,并假设相对速度vr为0,则在信号的上下沿有如下关系:Assume fs (t) and fe (t) represent the frequency variation functions of the transmitted and received signals respectively, and assume that the relative speed vr is 0, then the following relationship exists at the rising and falling edges of the signal:

fe(t)=fs(t-τ) (3) fe (t)= fs (t-τ) (3)

式中,f0表示最低频率,fc表示FMCW波的频率带宽,tc表示FMCW波的周期,t表示时间,τ表示声音从出发到接收到的时间差;In the formula, f0 represents the lowest frequency, fc represents the frequency bandwidth of the FMCW wave, tc represents the period of the FMCW wave, t represents the time, and τ represents the time difference from the departure to the reception of the sound;

fs(t)、fe(t)之间存在频差函数fb(t):There is a frequency difference function f b (t) between f s (t) and fe (t):

fb(t)=fs(t)-fe(t) (4)f b (t) = f s (t) - fe (t) (4)

设发出的信号为一余弦波,则其时间域的变化如下:Assuming the emitted signal is a cosine wave, its change in the time domain is as follows:

式(5)中,us(t)是发送信号函数,表示发送信号的幅值,fs(t)表示发送信号的频率,φs表示发送信号的相位差;In formula (5), u s (t) is the sending signal function, represents the amplitude of the transmitted signal, fs (t) represents the frequency of the transmitted signal, and φs represents the phase difference of the transmitted signal;

则接收到的信号在时间域变化如下:The received signal changes in the time domain as follows:

式(6)中,ue(t)表示接收信号函数,表示接收信号的幅值,fe(t)表示接收信号的频率,φe表示接收信号的相位差。In formula (6), ue (t) represents the received signal function, represents the amplitude of the received signal, fe (t) represents the frequency of the received signal, and φe represents the phase difference of the received signal.

基于式(4)至式(6)可得到:Based on equations (4) to (6), we can obtain:

然后,将ue(t)与us(t)相乘,得到混合波um(t):Then, multiply ue (t) and us (t) to get the mixed wave um (t):

从式(8)可以看出,最终得到的混合波的频率只与fb(t)有关,而所要确定的相对距离/>c表示声波的速度,fc表示FMCW波的频率带宽,tc表示FMCW波的周期,其中,fb(t)可以通过混合波um(t)低通滤波后,使用傅里叶变换得到,且相对距离R与fb(t)成正比,由此可见,可以通过混合波来解算相对距离R。From formula (8), we can see that the frequency of the final mixed wave is It is only related to f b (t), and the relative distance to be determined/> c represents the speed of the sound wave, f c represents the frequency bandwidth of the FMCW wave, and t c represents the period of the FMCW wave. Among them, f b (t) can be obtained by low-pass filtering the mixed wave um (t) and then using Fourier transform, and the relative distance R is proportional to f b (t). It can be seen that the relative distance R can be solved by the mixed wave.

因此,本实施例基于调频连续波测距计算出智能终端与可穿戴设备之间的距离,并通过该距离来约束点云数据空间。其中,智能终端可以是智能手机,也可以是平板,其具体选择可根据实际需求确定,在此不作限定。本实施例以智能终端为智能手机为例,通过智能手机与智能手环之间发送超声波,实现两台设备之间的位置测距。Therefore, this embodiment calculates the distance between the smart terminal and the wearable device based on frequency modulated continuous wave ranging, and constrains the point cloud data space through this distance. Among them, the smart terminal can be a smart phone or a tablet. The specific choice can be determined according to actual needs and is not limited here. This embodiment takes the smart terminal as a smart phone as an example, and realizes the position ranging between the two devices by sending ultrasonic waves between the smart phone and the smart bracelet.

最终需要将通过智能手环和智能手机获取到的相关信息输入至隐马尔可夫模型来预测人体运动的轨迹。Ultimately, the relevant information obtained through smart bracelets and smartphones needs to be input into the hidden Markov model to predict the trajectory of human movement.

其中,隐马尔可夫模型中的隐马尔可夫链随机生成的状态的序列,称为状态序列;每一个状态有一个输出,由此产生可观测的随机数列,称为观测数列,同时观测序列也可以作为一个时序序列。隐马尔可夫模型由初始概率分布、状态转移概率分布以及输出概率分布决定,即λ=(A,B,π);其中λ表示隐马尔可夫模型,A为状态转移概率矩阵,B为输出概率矩阵,π为初始状态概率向量。A、B和π称为隐马尔可夫模型的三要素。The sequence of states randomly generated by the hidden Markov chain in the hidden Markov model is called the state sequence; each state has an output, which generates an observable random number sequence, called the observation sequence, and the observation sequence can also be used as a time series. The hidden Markov model is determined by the initial probability distribution, the state transition probability distribution, and the output probability distribution, that is, λ=(A,B,π); where λ represents the hidden Markov model, A is the state transition probability matrix, B is the output probability matrix, and π is the initial state probability vector. A, B, and π are called the three elements of the hidden Markov model.

隐马尔可夫模型主要用于解决以下三类基本问题:Hidden Markov models are mainly used to solve the following three basic problems:

1)概率计算问题:给定模型λ=(A,B,π)和被观测的序列O=(o1,o2,…,oT),计算在模型λ下序列O出现的概率P(O|λ)。1) Probability calculation problem: Given a model λ = (A, B, π) and an observed sequence O = (o 1 , o 2 , …, o T ), calculate the probability P(O|λ) of the sequence O occurring under the model λ.

2)学习问题:已知观测序列O=(o1,o2,…,oT),估计模型λ=(A,B,π)的参数,使在该模型下观测序列的概率最大,其通常使用极大似然估计的方法来估计参数。2) Learning problem: Given an observation sequence O = (o 1 , o 2 , …, o T ), estimate the parameters of the model λ = (A, B, π) to maximize the probability of the observation sequence under the model. The maximum likelihood estimation method is usually used to estimate the parameters.

3)预测问题,也称作解码问题:已知模型λ=(A,B,π)和观测序列O=(o1,o2,…,oT),解算出能够输出该观测序列的概率最大的隐藏状态序列。3) Prediction problem, also called decoding problem: Given the model λ = (A, B, π) and the observation sequence O = (o 1 , o 2 , …, o T ), calculate the hidden state sequence with the highest probability of outputting the observation sequence.

本申请主要涉及隐马尔可夫有关的预测问题,而维特比(Viterbi algorithm)算法是目前较为主流的预测算法,由于其使用的是动态规划的思想,能够解决掉贪心算法的不足之处,实际上其也能有效的求出概率最大的状态序列,是目前使用频率最高的预测算法。因此本实施例将在运动监测中大量运用维特比算法来推测运动时肢体的位置,从而刻画运动轨迹,为运动规范性评估提供可靠数据依据。This application mainly involves prediction problems related to hidden Markov, and the Viterbi algorithm is currently the more mainstream prediction algorithm. Since it uses the idea of dynamic programming, it can solve the shortcomings of the greedy algorithm. In fact, it can also effectively find the state sequence with the highest probability, and is currently the most frequently used prediction algorithm. Therefore, this embodiment will use the Viterbi algorithm extensively in motion monitoring to infer the position of the limbs during movement, thereby describing the movement trajectory and providing reliable data basis for the evaluation of movement norms.

具体的,可使用三个连续时间间隔的位置作为关节的一个点云状态,此时可以计算处于这个点云状态时关节的加速度,并将加速度值作为观测量,且恰当地设计状态转移概率,就可以使用维特比算法来推测最可能存在的位置点。Specifically, the positions of three consecutive time intervals can be used as a point cloud state of the joint. At this time, the acceleration of the joint when it is in this point cloud state can be calculated, and the acceleration value can be used as the observation value. By properly designing the state transition probability, the Viterbi algorithm can be used to infer the most likely position point.

其中,维特比算法有O(|S|2T)的时间复杂度,S为状态空间大小,T为时间序列的大小;假设状态为位置的三元组,那么S=N3,则维特比算法的时间复杂度为O(N6T)。因此,为了减小维特比算法的时间复杂度,需要对状态内位置的连续性作出限制,将输出概率放入状态转移概率中计算以及减小S的复杂度,以使得最终时间复杂度可以减小到O(N3T)。具体实现如下:Among them, the Viterbi algorithm has a time complexity of O(|S| 2 T), S is the size of the state space, T is the size of the time series; assuming that the state is a triple of positions, then S = N 3 , then the time complexity of the Viterbi algorithm is O(N 6 T). Therefore, in order to reduce the time complexity of the Viterbi algorithm, it is necessary to restrict the continuity of the position in the state, put the output probability into the state transition probability calculation and reduce the complexity of S, so that the final time complexity can be reduced to O(N 3 T). The specific implementation is as follows:

根据隐马尔可夫模型的抽象函数λ=(A,B,π)可知,需要得知隐藏状态的初始概率分布、转移概率分布以及输出概率分布,而由维特比算法可知还需要获取可观测的时间序列;本实施例将加速度信息作为观测输出,将一段时间ΔT的位移量作为隐藏状态(也即点云状态),即 表明从T-1时刻的位置/>到T时刻的位置/>的位移二元组,i表示任意一状态,其中,T-1时刻到T时刻之间的时间间隔可以设为0.05s。According to the abstract function λ=(A, B, π) of the hidden Markov model, it is necessary to know the initial probability distribution, transition probability distribution and output probability distribution of the hidden state, and it is known from the Viterbi algorithm that an observable time series needs to be obtained; this embodiment uses acceleration information as the observed output and the displacement over a period of time ΔT as the hidden state (that is, the point cloud state), that is Indicates the position from time T-1/> Position at time T/> The displacement tuple is , i represents any state, and the time interval between time T-1 and time T can be set to 0.05s.

针对初始概率分布:由于不清楚初始位置,因此可以简单的对所有的状态采用一致分布。当T=1时状态空间大小为N2,但关节的运动范围由于速度限制为在一个很有限的空间内,且采样率越高,则空间越小。因此,可以将状态空间减小到αN2,其中α远小于1,则:Regarding the initial probability distribution: Since the initial position is unclear, we can simply use a uniform distribution for all states. When T = 1, the state space size is N 2 , but the range of motion of the joint is limited to a very limited space due to speed, and the higher the sampling rate, the smaller the space. Therefore, the state space can be reduced to αN 2 , where α is much smaller than 1, then:

针对状态转移概率分布:将从时刻T到时刻T+1对应的状态i转移到状态j的状态转移概率用Pr=(statej|statei;T,T+1)来表示;该概率由三部分组成:第一部分,首先运动轨迹是连续的,也就是说状态i与状态j必须存在连续性,即状态i的终点为状态j的起点,这一连续性的性质可以将空间复杂度由O(N4T)降至O(N3T),因此可采用以下函数来表示这一关系:Regarding the state transition probability distribution: the state transition probability of transferring from state i corresponding to time T to time T+1 to state j is expressed by Pr=(state j |state i ; T, T+1); this probability consists of three parts: the first part, first of all, the motion trajectory is continuous, that is, there must be continuity between state i and state j, that is, the end point of state i is the starting point of state j. This continuity property can reduce the space complexity from O( N4T ) to O( N3T ), so the following function can be used to express this relationship:

其中,I表示0-1概率分布,表示时刻T下,状态i的终点对应的位置。Where I represents the 0-1 probability distribution, Indicates the position corresponding to the end point of state i at time T.

第二部分,与传统的维特比算法不同,本实施例直接将被观测量引入状态转移概率分布中来,即采用状态中的位置信息来表示加速度,即预测的加速度值acceli,j,并计算预测的加速度与通过智能手环实际测得的瞬时加速度之间的差值,假设其差值应满足高斯分布,那么第二部分的概率可以表示为:In the second part, unlike the traditional Viterbi algorithm, this embodiment directly introduces the observed value into the state transition probability distribution, that is, the position information in the state is used to represent the acceleration, that is, the predicted acceleration value accel i,j , and the difference between the predicted acceleration and the instantaneous acceleration actually measured by the smart bracelet is calculated. Assuming that the difference should satisfy the Gaussian distribution, the probability of the second part can be expressed as:

其中,σ为常数,accelobserve表示智能手环实际测得的瞬时加速度。Among them, σ is a constant, and accel observe represents the instantaneous acceleration actually measured by the smart bracelet.

第三部分,对于新的状态j2,其位置必须属于能够从点云数据库中查询到的位置集合SetT+1,即:Part 3: For the new state j 2 , its position It must belong to the location set Set T+1 that can be queried from the point cloud database, that is:

最终的状态转移概率分布可以表示为:The final state transition probability distribution can be expressed as:

针对输出概率分布:由于本实施例将被观测量引入至状态概率分布部分,因此可以将输出概率设为1。Regarding the output probability distribution: since the observed quantity is introduced into the state probability distribution part in this embodiment, the output probability can be set to 1.

然后,从隐马尔可夫模型的维特比算法中分别获取T-1时刻与T时刻对应的预测的状态stateT-1和stateT,其中stateT-1表示第T-1时刻预测的状态值,stateT表示第T时刻预测的状态值。因此,可以从两个连续的状态空间内获取唯一一个三元组,即<locT-2,locT-1,locT>,其中locT-2、locT-1和locT分别表示第T-2、T-1、T时刻关节点的实际位置坐标;与此同时,可以从FMCW测距的算法中获取第T-2、T-1、T时刻智能手环与智能手机之间的距离distT-2、distT-1和distT;再根据已知上述六个信息,可以从中求解椭球方程,获取智能手机在运动监测坐标系下的位置坐标并在第T+1时刻的维特比预测算法中,可以通过计算与/>中的/>的距离来对点云空间进行约束,即在隐马尔可夫模型中状态转移概率中添加第四部分:Then, the predicted states state T -1 and state T corresponding to time T-1 and time T are obtained from the Viterbi algorithm of the hidden Markov model, where state T-1 represents the predicted state value at time T-1, and state T represents the predicted state value at time T. Therefore, a unique triplet can be obtained from two continuous state spaces, namely <loc T-2 , loc T-1 , loc T >, where loc T-2 , loc T-1 and loc T represent the actual position coordinates of the joint points at time T-2, T-1 and T respectively; at the same time, the distances dist T-2, dist T-1 and dist T between the smart bracelet and the smart phone at time T-2 , T-1 and T can be obtained from the FMCW ranging algorithm; based on the above six known information, the ellipsoid equation can be solved to obtain the position coordinates of the smart phone in the motion monitoring coordinate system. And in the Viterbi prediction algorithm at time T+1, it can be calculated by With/> In/> The distance is used to constrain the point cloud space, that is, to add the fourth part to the state transition probability in the hidden Markov model:

其中,表示第T+1时刻、/>状态中/>到/>的距离,即ε表示允许的最小误差。in, Indicates the T+1th moment, /> Status/> To/> The distance ε represents the minimum allowed error.

因此,状态转移概率可以改写为以下形式:Therefore, the state transition probability can be rewritten as follows:

由此可见,根据隐马尔可夫模型和维特比算法,可以解算出各个关节的位置,从而刻画运动轨迹。It can be seen that according to the hidden Markov model and Viterbi algorithm, the position of each joint can be solved to characterize the motion trajectory.

以下将对本实施例作进一步解释。This embodiment will be further explained below.

本实施例以固定200Hz的频率采集原始数据,比如采集智能手环上T时刻的腕关节的旋转向量Rot以及瞬时加速度信息Acc,并在数据预处理时通过均值降采样的方法,输出50Hz预处理完成后的数据流Q={Rot,Acc};其中预处理阶段,使用低通滤波器对数据做降噪处理。其次通过获取的旋转向量Rot在预设的点云数据库中进行查询,查找出对应的位置集合,并从预设的点云数据库中获取T-1时刻的腕关节的位置集合;再根据这两个位置集合从预设的点云数据库中获取与旋转向量Rot相匹配的点云状态空间,并将其输入至隐马尔可夫模型中。This embodiment collects raw data at a fixed frequency of 200Hz, such as collecting the rotation vector Rot of the wrist joint at time T on the smart bracelet and the instantaneous acceleration information Acc, and outputs the data stream Q = {Rot, Acc} after 50Hz preprocessing through the mean downsampling method during data preprocessing; in the preprocessing stage, a low-pass filter is used to reduce noise on the data. Secondly, the obtained rotation vector Rot is queried in the preset point cloud database to find the corresponding position set, and the position set of the wrist joint at time T-1 is obtained from the preset point cloud database; then, based on these two position sets, the point cloud state space matching the rotation vector Rot is obtained from the preset point cloud database, and it is input into the hidden Markov model.

然后通过智能手环与智能手机之间的双发双收FMCW超声频段的声波来计算在第T时刻的智能手机与智能手环间的距离;其中,本实施例通过单峰监测的方法分别计算两个不同频段的FMCW的声音从发出到接收到的时间差,进而补偿两个不同智能设备之间的时钟误差,同时通过选择三角波形来弥补由于运动而产生的多普勒效应,最终求解出距离。Then, the distance between the smart phone and the smart bracelet at the Tth moment is calculated by using the dual-transmit and dual-receive FMCW ultrasonic frequency band sound waves between the smart bracelet and the smart phone. Among them, this embodiment calculates the time difference from the emission to the reception of the FMCW sounds of two different frequency bands by a single-peak monitoring method, thereby compensating for the clock error between the two different smart devices, and at the same time, by selecting a triangular waveform to compensate for the Doppler effect caused by movement, and finally solves the distance.

最后,结合T-1时刻和T-2时刻获得的点云状态与测距的距离信息,计算出智能手机在第T时刻的位置坐标,并在每次隐马尔可夫模型预测迭代计算每个状态的概率时引入加速度信息作为观测量,最终预测出一个T时刻最可能存在的状态,进而得到第T时刻腕关节最有可能的位置坐标,最终能实时地进行运动轨迹监测和追踪;其中,可将智能手机在第T时刻的位置坐标作为下一次迭代时的点云空间约束。Finally, the point cloud states obtained at time T-1 and time T-2 are combined with the distance information of the ranging to calculate the position coordinates of the smartphone at time T. The acceleration information is introduced as the observation quantity when calculating the probability of each state in each hidden Markov model prediction iteration. Finally, the most likely state at time T is predicted, and the most likely position coordinates of the wrist joint at time T are obtained, so that the motion trajectory can be monitored and tracked in real time. The position coordinates of the smartphone at time T can be used as the point cloud space constraint for the next iteration.

传统的运动监测方法主要采取基于视觉的数据或者使用佩戴在人体多个位置的传感器数据,这些方法对场地的限制及其严格和要求高,且普通人在健身的时候无法满足其运动监测的硬性要求,可用性较低。而本申请仅使用佩戴在人身体手腕处的智能可穿戴设备与智能手机,在不添加用户使用成本的前提下,能对人运动轨迹进行实时的监测,使得用户可以随时随地监测,不受场地限制,其可用性高。此外,由于本申请通过引入两个超声声源的方法,在不添加任何硬件成本以及软件优化的前提下,实现两部智能设备的时钟同步,保证本申请即开即用,以达到易用性高和可用性强的目的;同时通过获取惯性传感数据与超声测距的方式,将其与改进的隐马尔可夫模型进行混合,最终可使精度达到7-10cm的实时轨迹追踪误差。Traditional motion monitoring methods mainly use visual data or sensor data worn at multiple locations on the human body. These methods are very strict and demanding on the site, and ordinary people cannot meet the rigid requirements of their motion monitoring when exercising, and their usability is low. However, this application only uses smart wearable devices and smart phones worn on the wrists of the human body. Without adding user usage costs, it can monitor the human motion trajectory in real time, allowing users to monitor anytime and anywhere without being restricted by the site, and its usability is high. In addition, since this application introduces two ultrasonic sound sources, it can achieve clock synchronization of two smart devices without adding any hardware costs and software optimization, ensuring that this application is ready to use, so as to achieve the purpose of high ease of use and strong usability; at the same time, by obtaining inertial sensor data and ultrasonic ranging, it is mixed with an improved hidden Markov model, and finally the accuracy can reach 7-10cm real-time trajectory tracking error.

本申请实施例还提供了一种实时运动轨迹监测装置,包括:The present application also provides a real-time motion trajectory monitoring device, including:

接收单元,其用于接收可穿戴设备发送的第一关节在第T时刻的第一旋转向量和第一瞬时加速度信息;A receiving unit, configured to receive a first rotation vector and a first instantaneous acceleration information of a first joint at a time T sent by a wearable device;

查找单元,其用于基于第一旋转向量从预设的点云数据库中查找出对应的第一位置集合,预设的点云数据库包括旋转向量和位置集合之间的映射关系,位置集合包括与关节对应的多个预设位置坐标;A search unit, which is used to search for a corresponding first position set from a preset point cloud database based on the first rotation vector, the preset point cloud database includes a mapping relationship between the rotation vector and the position set, and the position set includes a plurality of preset position coordinates corresponding to the joint;

生成单元,其用于获取第一关节在第T-1时刻的第二位置集合,并根据所述第二位置集合和第一位置集合从预设的点云数据库中筛选出第一点云状态空间,所述第一点云状态空间包括多个点云状态,每个点云状态由第一位置集合中的预设位置坐标和第二位置集合中的预设位置坐标组成;a generating unit, which is used to obtain a second position set of the first joint at the time T-1, and filter out a first point cloud state space from a preset point cloud database according to the second position set and the first position set, wherein the first point cloud state space includes a plurality of point cloud states, each point cloud state is composed of preset position coordinates in the first position set and preset position coordinates in the second position set;

测距单元,其用于基于调频连续波测距计算在第T时刻的智能终端与可穿戴设备间的距离,得到第一距离;A distance measuring unit, which is used to calculate the distance between the smart terminal and the wearable device at the Tth moment based on the frequency modulated continuous wave ranging to obtain a first distance;

获取单元,其用于分别获取在第T-1时刻的智能终端与可穿戴设备间的第二距离、在第T-2时刻的智能终端与可穿戴设备间的第三距离、第一关节在第T-1时刻的第一实际位置坐标和第一关节在第T-2时刻的第二实际位置坐标;an acquisition unit, which is used to respectively acquire a second distance between the smart terminal and the wearable device at the T-1th moment, a third distance between the smart terminal and the wearable device at the T-2th moment, a first actual position coordinate of the first joint at the T-1th moment, and a second actual position coordinate of the first joint at the T-2th moment;

计算单元,其用于基于第一距离、第二距离、第三距离、第一实际位置坐标和第二实际位置坐标计算出智能终端在第T时刻的位置坐标;A calculation unit, which is used to calculate the position coordinates of the smart terminal at the Tth moment based on the first distance, the second distance, the third distance, the first actual position coordinates and the second actual position coordinates;

预测单元,其用于将第一瞬时加速度信息、第一点云状态空间和智能终端在第T时刻的位置坐标输入至隐马尔可夫模型,得到第一关节在第T时刻的第三实际位置坐标。The prediction unit is used to input the first instantaneous acceleration information, the first point cloud state space and the position coordinates of the intelligent terminal at the Tth moment into the hidden Markov model to obtain the third actual position coordinates of the first joint at the Tth moment.

由此可见,本申请只需通过一部智能终端和一个可穿戴设备即可实现对关节运动的实时监测和追踪,其无需布置可跟踪的高成本拍摄设备,有效降低了使用成本,且通过可穿戴设备采集的旋转向量信息和加速度信息来实现运动轨迹的监测,可有效降低外界环境因素对旋转向量信息和加速度信息采集精度的影响,进而能有效保证运动轨迹监测的准确性。It can be seen that the present application can realize real-time monitoring and tracking of joint movements through only a smart terminal and a wearable device. It does not need to deploy high-cost tracking shooting equipment, which effectively reduces the cost of use. The rotation vector information and acceleration information collected by the wearable device can be used to monitor the motion trajectory, which can effectively reduce the influence of external environmental factors on the accuracy of the rotation vector information and acceleration information collection, thereby effectively ensuring the accuracy of motion trajectory monitoring.

进一步的,所述装置还包括创建单元,其用于:Furthermore, the device also includes a creating unit, which is used to:

基于D-H模型对手臂运动进行建模,得到连杆模型;The arm motion is modeled based on the D-H model to obtain the linkage model;

将手臂上的多个关节角输入至所述连杆模型,得到多个旋转向量;Inputting multiple joint angles on the arm into the link model to obtain multiple rotation vectors;

创建各个旋转向量与其对应的包括多个预设位置坐标的位置集合间的映射关系,得到点云数据库。A mapping relationship between each rotation vector and its corresponding position set including a plurality of preset position coordinates is created to obtain a point cloud database.

进一步的,所述隐马尔可夫模型中的模型参数包括初始概率分布、状态转移概率分布和输出概率分布,所述状态转移概率分布的概率表达式包含瞬时加速度信息、智能终端的位置坐标以及智能终端与可穿戴设备间的距离,所述输出概率分布为1。Furthermore, the model parameters in the hidden Markov model include an initial probability distribution, a state transition probability distribution and an output probability distribution, the probability expression of the state transition probability distribution includes instantaneous acceleration information, the position coordinates of the smart terminal and the distance between the smart terminal and the wearable device, and the output probability distribution is 1.

进一步的,所述可穿戴设备包括惯性传感器和加速度传感器,所述惯性传感器用于采集第一关节在第T时刻的第一旋转向量,所述加速度传感器用于采集第一关节在第T时刻的第一瞬时加速度信息。Furthermore, the wearable device includes an inertial sensor and an acceleration sensor, the inertial sensor is used to collect a first rotation vector of the first joint at the Tth moment, and the acceleration sensor is used to collect first instantaneous acceleration information of the first joint at the Tth moment.

需要说明的是,所属本领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置和各单元的具体工作过程,可以参考前述实时运动轨迹监测方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and each unit can refer to the corresponding process in the aforementioned real-time motion trajectory monitoring method embodiment, and will not be repeated here.

上述实施例提供的装置可以实现为一种计算机程序的形式,该计算机程序可以在如图2所示的实时运动轨迹监测设备上运行。The apparatus provided in the above embodiment may be implemented in the form of a computer program, and the computer program may be run on the real-time motion trajectory monitoring device as shown in FIG. 2 .

本申请实施例还提供了一种实时运动轨迹监测设备,包括:通过系统总线连接的存储器、处理器和网络接口,存储器中存储有至少一条指令,至少一条指令由处理器加载并执行,以实现前述的实时运动轨迹监测方法的全部步骤或部分步骤。An embodiment of the present application also provides a real-time motion trajectory monitoring device, including: a memory, a processor and a network interface connected through a system bus, the memory storing at least one instruction, and the at least one instruction being loaded and executed by the processor to implement all or part of the steps of the aforementioned real-time motion trajectory monitoring method.

其中,网络接口用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will appreciate that the structure shown in FIG2 is only a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device to which the present application solution is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

处理器可以是CPU,还可以是其他通用处理器、数字信号处理器(Digital SignalProcessor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程逻辑门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件分立硬件组件等。通用处理器可以是微处理器,或者该处理器也可以是任何常规的处理器等,处理器是计算机装置的控制中心,利用各种接口和线路连接整个计算机装置的各个部分。The processor may be a CPU, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc. The processor is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device.

存储器可用于存储计算机程序和/或模块,处理器通过运行或执行存储在存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现计算机装置的各种功能。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如视频播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如视频数据、图像数据等)等。此外,存储器可以包括高速随存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘、智能存储卡(SmartMedia Card,SMC)、安全数字(Secure digital,SD)卡、闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件或其他易失性固态存储器件。The memory can be used to store computer programs and/or modules. The processor realizes various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a video playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as video data, image data, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device or other volatile solid-state storage device.

本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时,实现前述的实时运动轨迹监测方法的全部步骤或部分步骤。The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, all or part of the steps of the aforementioned real-time motion trajectory monitoring method are implemented.

本申请实施例实现前述的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only memory,ROM)、随机存取存储器(Random Accessmemory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The embodiment of the present application implements all or part of the aforementioned process, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of each of the above methods when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、服务器或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, servers or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

本申请是参照根据本申请实施例的方法、设备(系统)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims (10)

1. The real-time motion track monitoring method is characterized by comprising the following steps of:
Receiving a first rotation vector and first instantaneous acceleration information of a first joint at a T moment, which are sent by wearable equipment;
Searching a corresponding first position set from a preset point cloud database based on the first rotation vector, wherein the preset point cloud database comprises a mapping relation between the rotation vector and the position set, and the position set comprises a plurality of preset position coordinates corresponding to the joints;
Acquiring a second position set of a first joint at a T-1 moment, and screening a first point cloud state space from a preset point cloud database according to the second position set and the first position set, wherein the first point cloud state space comprises a plurality of point cloud states, and each point cloud state consists of preset position coordinates in the first position set and preset position coordinates in the second position set;
Calculating the distance between the intelligent terminal and the wearable equipment at the T moment based on the frequency modulation continuous wave ranging to obtain a first distance;
Respectively acquiring a second distance between the intelligent terminal and the wearable device at the T-1 moment, a third distance between the intelligent terminal and the wearable device at the T-2 moment, a first actual position coordinate of the first joint at the T-1 moment and a second actual position coordinate of the first joint at the T-2 moment;
Calculating the position coordinate of the intelligent terminal at the T moment based on the first distance, the second distance, the third distance, the first actual position coordinate and the second actual position coordinate;
And inputting the first instantaneous acceleration information, the first cloud state space and the position coordinate of the intelligent terminal at the T moment into a hidden Markov model to obtain a third actual position coordinate of the first joint at the T moment.
2. The method for monitoring a real-time motion trajectory according to claim 1, further comprising, before the step of receiving the first rotation vector and the first instantaneous acceleration information of the first joint at the T-th time transmitted by the wearable device:
Modeling arm movement based on the D-H model to obtain a connecting rod model;
Inputting a plurality of joint angles on an arm to the connecting rod model to obtain a plurality of rotation vectors;
And creating a mapping relation between each rotation vector and a corresponding position set comprising a plurality of preset position coordinates, and obtaining a point cloud database.
3. The method for monitoring a real-time motion trajectory according to claim 1, wherein: the model parameters in the hidden Markov model comprise initial probability distribution, state transition probability distribution and output probability distribution, wherein the probability expression of the state transition probability distribution comprises instantaneous acceleration information, position coordinates of the intelligent terminal and the distance between the intelligent terminal and the wearable device, and the output probability distribution is 1.
4. The method for monitoring a real-time motion trajectory according to claim 1, wherein: the wearable device comprises an inertial sensor and an acceleration sensor, wherein the inertial sensor is used for acquiring a first rotation vector of a first joint at a T moment, and the acceleration sensor is used for acquiring first instantaneous acceleration information of the first joint at the T moment.
5. A real-time motion trajectory monitoring device, comprising:
The receiving unit is used for receiving a first rotation vector and first instantaneous acceleration information of a first joint at a T moment, which are sent by the wearable equipment;
The searching unit is used for searching a corresponding first position set from a preset point cloud database based on the first rotation vector, the preset point cloud database comprises a mapping relation between the rotation vector and the position set, and the position set comprises a plurality of preset position coordinates corresponding to the joint;
The generating unit is used for acquiring a second position set of the first joint at the T-1 moment, and screening a first point cloud state space from a preset point cloud database according to the second position set and the first position set, wherein the first point cloud state space comprises a plurality of point cloud states, and each point cloud state consists of preset position coordinates in the first position set and preset position coordinates in the second position set;
The distance measuring unit is used for calculating the distance between the intelligent terminal and the wearable equipment at the T moment based on the frequency modulation continuous wave distance measurement to obtain a first distance;
The acquisition unit is used for respectively acquiring a second distance between the intelligent terminal and the wearable device at the T-1 moment, a third distance between the intelligent terminal and the wearable device at the T-2 moment, a first actual position coordinate of the first joint at the T-1 moment and a second actual position coordinate of the first joint at the T-2 moment;
The calculating unit is used for calculating the position coordinate of the intelligent terminal at the T moment based on the first distance, the second distance, the third distance, the first actual position coordinate and the second actual position coordinate;
The prediction unit is used for inputting the first instantaneous acceleration information, the first cloud state space and the position coordinate of the intelligent terminal at the T moment into the hidden Markov model to obtain the third actual position coordinate of the first joint at the T moment.
6. The real-time motion trajectory monitoring device of claim 5, further comprising a creation unit for:
Modeling arm movement based on the D-H model to obtain a connecting rod model;
Inputting a plurality of joint angles on an arm to the connecting rod model to obtain a plurality of rotation vectors;
And creating a mapping relation between each rotation vector and a corresponding position set comprising a plurality of preset position coordinates, and obtaining a point cloud database.
7. The real-time motion profile monitoring device of claim 5, wherein: the model parameters in the hidden Markov model comprise initial probability distribution, state transition probability distribution and output probability distribution, wherein the probability expression of the state transition probability distribution comprises instantaneous acceleration information, position coordinates of the intelligent terminal and the distance between the intelligent terminal and the wearable device, and the output probability distribution is 1.
8. The real-time motion profile monitoring device of claim 5, wherein: the wearable device comprises an inertial sensor and an acceleration sensor, wherein the inertial sensor is used for acquiring a first rotation vector of a first joint at a T moment, and the acceleration sensor is used for acquiring first instantaneous acceleration information of the first joint at the T moment.
9. A real-time motion trajectory monitoring device, comprising: a memory and a processor, the memory having stored therein at least one instruction that is loaded and executed by the processor to implement the real-time motion profile monitoring method of any one of claims 1 to 4.
10. A computer-readable storage medium, characterized by: the computer readable storage medium stores a computer program which, when executed by a processor, implements the real-time motion profile monitoring method of any one of claims 1 to 4.
CN202210188102.5A 2022-02-28 2022-02-28 Real-time motion trail monitoring method, device, equipment and readable storage medium Active CN114578367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210188102.5A CN114578367B (en) 2022-02-28 2022-02-28 Real-time motion trail monitoring method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210188102.5A CN114578367B (en) 2022-02-28 2022-02-28 Real-time motion trail monitoring method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114578367A CN114578367A (en) 2022-06-03
CN114578367B true CN114578367B (en) 2024-05-07

Family

ID=81777649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210188102.5A Active CN114578367B (en) 2022-02-28 2022-02-28 Real-time motion trail monitoring method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114578367B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115857836B (en) * 2023-02-10 2023-05-26 中南大学湘雅医院 Information storage method and device based on big data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561881A (en) * 2009-05-19 2009-10-21 华中科技大学 Emotion identification method for human non-programmed motion
CN112947771A (en) * 2021-01-11 2021-06-11 上海龙旗科技股份有限公司 Method, device and equipment for realizing space trajectory input

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9261979B2 (en) * 2007-08-20 2016-02-16 Qualcomm Incorporated Gesture-based mobile interaction

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561881A (en) * 2009-05-19 2009-10-21 华中科技大学 Emotion identification method for human non-programmed motion
CN112947771A (en) * 2021-01-11 2021-06-11 上海龙旗科技股份有限公司 Method, device and equipment for realizing space trajectory input

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Dynamic Gesture Recognition in the Internet of Things;Li, Gongfa;IEEE Access;20181018;23713-23724 *
基于主动行为表达的高效互动识别方法;呙维;中国科技论文;20150723;全文 *

Also Published As

Publication number Publication date
CN114578367A (en) 2022-06-03

Similar Documents

Publication Publication Date Title
Yang et al. Mm-fi: Multi-modal non-intrusive 4d human dataset for versatile wireless sensing
An et al. Mars: mmwave-based assistive rehabilitation system for smart healthcare
Zhang et al. A survey of mmWave-based human sensing: Technology, platforms and applications
CN112005198A (en) Hand state reconstruction based on multiple inputs
CN111902847A (en) Real-time processing of hand state representation model estimation
Ceccon et al. Motion analysis of front crawl swimming applying CAST technique by means of automatic tracking
Zhang et al. Synthesized millimeter-waves for human motion sensing
CN104700433A (en) Vision-based real-time general movement capturing method and system for human body
CN110506296A (en) Systems, methods, and apparatus for tracking a body or part thereof
WO2021159294A1 (en) Physical sign detection method, apparatus, and device
EP3425591B1 (en) System and method for tracking body joints
CN114578367B (en) Real-time motion trail monitoring method, device, equipment and readable storage medium
CN110502107A (en) Wearable real-time action instructs system and method
CN113743234A (en) Target action determining method, target action counting method and electronic device
CN114847931A (en) Human motion tracking method, device and computer readable storage medium
Hao et al. Cromosim: A deep learning-based cross-modality inertial measurement simulator
CN111772640B (en) Limb exercise training guiding method, device and storage medium
CN100361070C (en) A Skeleton Motion Extraction Method Based on Optical Motion Capture Data
Wu et al. mmhpe: Robust multi-scale 3d human pose estimation using a single mmwave radar
Prima et al. Single camera 3d human pose estimation for tele-rehabilitation
CN118865446A (en) A multi-person attitude estimation method based on millimeter-wave radar
CN111353345B (en) Method, apparatus, system, electronic device, and storage medium for providing training feedback
Niu et al. Ultramotion: High-precision ultrasonic arm tracking for real-world exercises
CN110515466B (en) Motion capture system based on virtual reality scene
Cao et al. A portable system for tof camera based human body detection and pose estimation

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
GR01 Patent grant
GR01 Patent grant