Nothing Special   »   [go: up one dir, main page]

CN110455316B - Self-adaptive zero-speed interval detection method - Google Patents

Self-adaptive zero-speed interval detection method Download PDF

Info

Publication number
CN110455316B
CN110455316B CN201910793466.4A CN201910793466A CN110455316B CN 110455316 B CN110455316 B CN 110455316B CN 201910793466 A CN201910793466 A CN 201910793466A CN 110455316 B CN110455316 B CN 110455316B
Authority
CN
China
Prior art keywords
zero
angular velocity
interval
initial
speed
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
CN201910793466.4A
Other languages
Chinese (zh)
Other versions
CN110455316A (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.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
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 Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN201910793466.4A priority Critical patent/CN110455316B/en
Publication of CN110455316A publication Critical patent/CN110455316A/en
Application granted granted Critical
Publication of CN110455316B publication Critical patent/CN110455316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; 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/16Navigation; 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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C25/00Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
    • G01C25/005Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass initial alignment, calibration or starting-up of inertial devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Gyroscopes (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

本发明提供了一种自适应零速区间检测方法,属于行人导航定位技术领域。包括:S1:实时获取惯性器件的输出数据,所述输出数据包括所述惯性器件的角速度信息和加速度信息;S2:根据所述角速度信息确定角速度零速检测的初始角速度能量阈值;S3:根据所述初始角速度能量阈值对角速度零速检测的滑动窗口进行角速度零速检测,确定所述滑动窗口内的检测点数目和所述滑动窗口对应的区间状态;S4:根据所述检测点数目和所述滑动窗口对应的区间状态对所述初始角速度能量阈值进行自适应调整,得到基于所述初始角速度能量阈值的初始零速区间;S5:根据所述加速度信息对所述初始零速区间进行加速度零速检测,对所述初始零速区间进行修正,获得修正零速区间。

Figure 201910793466

The invention provides an adaptive zero-speed interval detection method, which belongs to the technical field of pedestrian navigation and positioning. Including: S1: obtain the output data of the inertial device in real time, and the output data includes the angular velocity information and acceleration information of the inertial device; S2: determine the initial angular velocity energy threshold for angular velocity zero velocity detection according to the angular velocity information; S3: according to the The initial angular velocity energy threshold value performs angular velocity zero velocity detection on the sliding window of angular velocity zero velocity detection, and determines the number of detection points in the sliding window and the interval state corresponding to the sliding window; S4: According to the number of detection points and the The interval state corresponding to the sliding window adaptively adjusts the initial angular velocity energy threshold to obtain an initial zero velocity interval based on the initial angular velocity energy threshold; S5: perform acceleration and zero velocity on the initial zero velocity interval according to the acceleration information Detecting and correcting the initial zero-speed interval to obtain a corrected zero-speed interval.

Figure 201910793466

Description

一种自适应零速区间检测方法An adaptive zero-speed interval detection method

技术领域technical field

本发明涉及行人导航定位技术领域,具体涉及一种自适应零速区间检测方法。The invention relates to the technical field of pedestrian navigation and positioning, in particular to an adaptive zero-speed interval detection method.

背景技术Background technique

零速更新方法是行人导航系统广泛采用的一种误差修正手段,其根据行人步态中周期性地存在零速区间的特点对导航解算的位置误差进行周期性清零。零速更新的前提是准确、有效地检测行人运动过程中的零速区间。常用的零速区间检测方法有加速度模值法、角速度模值法、加速度滑动标准差法或多种方法综合,但是,现有的零速区间检测方法中阈值设置固定或单一,不能根据步态的变化进行自适应调整,对多步态运动的适应性差。The zero-speed update method is an error correction method widely used in the pedestrian navigation system. It periodically clears the position error of the navigation solution according to the characteristics of the zero-speed interval in the pedestrian's gait. The premise of zero-speed update is to accurately and effectively detect the zero-speed interval in the process of pedestrian movement. Commonly used zero-speed interval detection methods include acceleration modulo method, angular velocity modulo method, acceleration sliding standard deviation method, or a combination of multiple methods. However, the existing zero-speed interval detection methods have fixed or single threshold settings, and cannot The changes of gait are adaptively adjusted, and the adaptability to multi-gait movements is poor.

发明内容SUMMARY OF THE INVENTION

本发明解决的问题是现有零速区间检测方法对多步态适应性差的问题。The problem solved by the present invention is that the existing zero-speed interval detection method has poor adaptability to multiple gaits.

本发明一方面提供一种自适应零速区间检测方法,包括:One aspect of the present invention provides an adaptive zero-speed interval detection method, comprising:

S1:实时获取惯性器件的输出数据,所述输出数据包括所述惯性器件的角速度信息和加速度信息;S1: Obtain output data of the inertial device in real time, where the output data includes angular velocity information and acceleration information of the inertial device;

S2:根据所述角速度信息确定角速度零速检测的初始角速度能量阈值;S2: Determine the initial angular velocity energy threshold for angular velocity zero velocity detection according to the angular velocity information;

S3:根据所述初始角速度能量阈值对角速度零速检测的滑动窗口进行角速度零速检测,确定所述滑动窗口内的检测点数目和所述滑动窗口对应的区间状态;S3: perform zero-speed angular velocity detection on the sliding window of zero-speed angular-velocity detection according to the initial angular-velocity energy threshold, and determine the number of detection points in the sliding window and the interval state corresponding to the sliding window;

S4:根据所述检测点数目和所述滑动窗口对应的区间状态对所述初始角速度能量阈值进行自适应调整,得到基于所述初始角速度能量阈值的初始零速区间;S4: adaptively adjust the initial angular velocity energy threshold according to the number of detection points and the interval state corresponding to the sliding window to obtain an initial zero velocity interval based on the initial angular velocity energy threshold;

S5:根据所述加速度信息对所述初始零速区间进行加速度零速检测,对所述初始零速区间进行修正,获得修正零速区间。S5: Perform acceleration zero-speed detection on the initial zero-speed interval according to the acceleration information, and correct the initial zero-speed interval to obtain a corrected zero-speed interval.

可选地,所述S4步骤包括:Optionally, the S4 step includes:

S410:根据所述检测点数目计算所述滑动窗口对应的时间t;S410: Calculate the time t corresponding to the sliding window according to the number of detection points;

S420:根据所述时间t和所述滑动窗口对应的区间状态对所述初始角速度能量阈值进行自适应调整,得到基于所述初始角速度能量阈值的所述初始零速区间。S420: Adaptively adjust the initial angular velocity energy threshold according to the time t and the interval state corresponding to the sliding window to obtain the initial zero velocity interval based on the initial angular velocity energy threshold.

可选地,所述S420步骤包括:Optionally, the step S420 includes:

当所述滑动窗口对应的区间状态为运动区间时,判断所述时间t的大小是否满足t1≤t≤t2,其中,t1为第一预设时间,t2为第二预设时间:是,回到S3步骤,对下一滑动窗口进行角速度零速检测;否,对所述初始角速度能量阈值Tω进行自适应调整,并根据所述初始角速度能量阈值的调整次数进行零速区间判断;When the interval state corresponding to the sliding window is a motion interval, determine whether the size of the time t satisfies t 1 ≤t≤t 2 , where t 1 is the first preset time, and t 2 is the second preset time : Yes, go back to step S3, and perform zero-speed angular velocity detection on the next sliding window; No, perform adaptive adjustment on the initial angular velocity energy threshold T ω , and carry out the zero-speed interval according to the adjustment times of the initial angular velocity energy threshold judge;

当所述滑动窗口对应的区间状态为零速区间时,判断所述时间t的大小是否满足t≥t3,其中t3为第三预设时间:是,所述滑动窗口确定为所述初始零速区间;否,对所述初始角速度能量阈值进行自适应调整,并根据所述初始角速度能量阈值的调整次数进行零速区间判断。When the interval state corresponding to the sliding window is a zero-speed interval, determine whether the size of the time t satisfies t≥t 3 , where t 3 is the third preset time: yes, the sliding window is determined as the initial Zero-speed interval; if no, adaptively adjust the initial angular velocity energy threshold, and judge the zero-velocity interval according to the adjustment times of the initial angular velocity energy threshold.

可选地,当所述滑动窗口对应的区间状态为运动区间时,所述对所述初始角速度能量阈值进行自适应调整步骤包括:Optionally, when the interval state corresponding to the sliding window is a motion interval, the step of adaptively adjusting the initial angular velocity energy threshold includes:

当所述时间t的大小满足t<t1时,减小所述初始角速度能量阈值Tω;When the size of the time t satisfies t<t 1 , reducing the initial angular velocity energy threshold Tω;

当所述时间t的大小满足t>t2时,增大所述初始角速度能量阈值。When the size of the time t satisfies t>t 2 , the initial angular velocity energy threshold is increased.

可选地,当所述滑动窗口对应的区间状态为零速区间时,所述对所述初始角速度能量阈值进行自适应调整为:Optionally, when the interval state corresponding to the sliding window is a zero-speed interval, the adaptive adjustment to the initial angular velocity energy threshold is:

增大所述初始角速度能量阈值。Increase the initial angular velocity energy threshold.

可选地,所述并根据所述初始角速度能量阈值的调整次数进行零速区间判断包括:Optionally, performing the zero-speed interval judgment according to the adjustment times of the initial angular velocity energy threshold includes:

统计所述初始角速度能量阈值的调整次数,判断所述初始角速度能量阈值的调整次数是否超过预设值:否,回到S3步骤;是,判断所述滑动窗口是否为零速区间:是,所述滑动窗口确定为所述初始零速区间;否,回到S3步骤,对下一滑动窗口进行角速度零速检测。Count the adjustment times of the initial angular velocity energy threshold, and judge whether the adjustment times of the initial angular velocity energy threshold exceed the preset value: No, go back to step S3; Yes, judge whether the sliding window is in the zero-speed range: Yes, so The sliding window is determined to be the initial zero-velocity interval; if not, go back to step S3, and perform zero-velocity detection of angular velocity on the next sliding window.

可选地,所述S5步骤包括:Optionally, the S5 step includes:

S510:根据所述初始零速区间内的初始零速区间检测点对应的所述加速度信息确定加速度零速检测的加速度幅值阈值;S510: Determine an acceleration amplitude threshold for acceleration zero-speed detection according to the acceleration information corresponding to the detection points in the initial zero-speed interval in the initial zero-speed interval;

S520:根据所述加速度幅值阈值对所有所述初始零速区间检测点进行加速度零速检测,对所述初始零速区间进行修正,获得修正零速区间。S520: Perform acceleration zero-speed detection on all the initial zero-speed interval detection points according to the acceleration amplitude threshold, and correct the initial zero-speed interval to obtain a corrected zero-speed interval.

可选地,所述S510步骤包括:Optionally, the step S510 includes:

S511:根据所述初始零速区间检测点对应的所述加速度信息计算所有所述初始零速区间检测点对应的加速度幅值;S511: Calculate acceleration amplitudes corresponding to all the initial zero-speed interval detection points according to the acceleration information corresponding to the initial zero-speed interval detection points;

S512:对所有所述初始零速区间检测点对应的所述加速度幅值进行排序,根据排序后的所述加速度幅值生成临时区间;S512: Sort the acceleration amplitudes corresponding to all the initial zero-speed interval detection points, and generate a temporary interval according to the sorted acceleration amplitudes;

S513:根据所述临时区间内临时区间检测点对应的所述加速度幅值确定所述加速度幅值阈值。S513: Determine the acceleration amplitude threshold according to the acceleration amplitude corresponding to the detection point in the temporary interval in the temporary interval.

可选地,所述S520步骤包括:Optionally, the step S520 includes:

根据所述加速度幅值阈值依次对所述初始零速区间检测点进行加速度零速检测,获得所有零加速状态的所述初始零速区间检测点;Perform acceleration zero-speed detection on the initial zero-speed interval detection points in sequence according to the acceleration amplitude threshold value, and obtain all the initial zero-speed interval detection points in the zero-acceleration state;

根据所有零加速状态的所述初始零速区间检测点生成所述修正零速区间。The modified zero-speed interval is generated according to the initial zero-speed interval detection points of all zero-acceleration states.

可选地,所述步骤S2包括:Optionally, the step S2 includes:

S210:根据所述角速度信息计算前n(n≥1)个检测点的角速度能量;S210: Calculate the angular velocity energy of the first n (n≥1) detection points according to the angular velocity information;

S220:根据所述角速度能量计算角速度能量均值和角速度能量标准差;S220: Calculate the mean value of angular velocity energy and the standard deviation of angular velocity energy according to the angular velocity energy;

S230:根据所述角速度能量均值和所述角速度能量标准差确定所述初始角速度能量阈值。S230: Determine the initial angular velocity energy threshold according to the angular velocity energy mean value and the angular velocity energy standard deviation.

本发明所述自适应零速区间检测方法,通过惯性器件输出的角速度信息确定初始角速度能量阈值,使得所述初始角速度能量阈值与行人的初始步态相匹配;再根据所述初始角速度能量阈值对滑动窗口进行角速度零速检测,确定所述滑动窗口内的检测点数目和所述滑动窗口对应的区间状态,并根据区间状态和所述检测点数目对所述初始角速度能量阈值进行自适应调整,通过渐进逼急的方式调整所述初始角速度能量阈值,得到基于所述初始角速度能量阈值的初始零速区间,降低了零速状态检测点的漏检几率;再通过加速度零速检测对所述初始零速区间进行修正,得到较为准确的所述修正零速区间,本发明所述自适应零速区间检测方法能够在行人运动过程中,渐进调整所述初始角速度能量阈值,能够实现多步态的零速区间检测,检测可靠性高,实用性强。In the self-adaptive zero-speed interval detection method of the present invention, the initial angular velocity energy threshold is determined by the angular velocity information output by the inertial device, so that the initial angular velocity energy threshold matches the pedestrian's initial gait; Sliding the window to perform zero-speed angular velocity detection, determining the number of detection points in the sliding window and the interval state corresponding to the sliding window, and adaptively adjusting the initial angular velocity energy threshold according to the interval state and the number of detection points, The initial angular velocity energy threshold is adjusted in a gradual and urgent manner to obtain an initial zero velocity interval based on the initial angular velocity energy threshold, which reduces the probability of missed detection of the zero velocity state detection point; The zero-speed interval is corrected to obtain the more accurate corrected zero-speed interval. The adaptive zero-speed interval detection method of the present invention can gradually adjust the initial angular velocity energy threshold during the pedestrian movement process, and can realize multi-gait. Zero-speed interval detection, high detection reliability and strong practicability.

附图说明Description of drawings

图1为本发明所述自适应零速区间检测方法的总体流程图;Fig. 1 is the overall flow chart of the self-adaptive zero-speed interval detection method according to the present invention;

图2为本发明所述自适应零速区间检测方法其中一种实施方式S2步骤的流程图;FIG. 2 is a flowchart of steps S2 of one embodiment of the adaptive zero-speed interval detection method according to the present invention;

图3为本发明所述自适应零速区间检测方法其中一种实施方式中S4步骤的流程图;3 is a flowchart of step S4 in one embodiment of the adaptive zero-speed interval detection method according to the present invention;

图4为本发明所述自适应零速区间检测方法其中一种实施方式中零速区间和运动区间示意图。FIG. 4 is a schematic diagram of a zero-speed interval and a motion interval in one embodiment of the adaptive zero-speed interval detection method according to the present invention.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

请参阅图4,在行人运动中以左脚为例:Pose1-Pose2为运动区间,也就是从左脚离开地面到脚掌与地面接触所对应步态过程为运动区间,Pose3-Pose4为零速区间,也就是左脚始终与地面接触所对应的步态过程为零速区间;在行人导航中,一般通过零速区间获得运动观测量而对运动参数进行修正,而在实际中脚掌着地对应的零速区间还包括速度为零,加速度不为零的情况,因此,一般都结合速度和加速度综合判断。而由于各人差异和多步态的存在,零速区间检测的适应性差。Please refer to Figure 4, taking the left foot as an example in the pedestrian movement: Pose1-Pose2 is the movement interval, that is, the gait process from the left foot leaving the ground to the contact with the ground is the movement interval, and Pose3-Pose4 is the zero-speed interval , that is, the gait process corresponding to the left foot always in contact with the ground is in the zero-speed interval; in pedestrian navigation, the motion parameters are generally corrected by obtaining motion observations in the zero-speed interval. The speed range also includes the case where the speed is zero and the acceleration is not zero. Therefore, the speed and acceleration are generally combined to make a comprehensive judgment. However, due to individual differences and the existence of multiple gaits, the adaptability of zero-speed interval detection is poor.

本发明的发明人根据长时间的研究,提出了一种渐进调整的自适应性零速区间检测方法。其主要依据为,不论行人处于何种步态,其零速区间不会过短,其运动区间不会过长。本发明首先通过对惯性器件的输出数据进行处理,得到角速度零速检测的初始角速度能量阈值,然后以渐进逼近的方式调整所述初始角速度能量阈值,直至行人步态初步符合行人运动基本规律,得到一个基于初始角速度能量阈值的初始零速区间,此时步骤主要目的是尽可能的不漏零速检测点,此时初始零速区间较真实的零速区间大,再通过加速度零速检测进行零速修正,得到修正零速区间。The inventor of the present invention proposes a progressively adjusted adaptive zero-speed interval detection method based on long-term research. The main basis is that no matter what gait a pedestrian is in, the zero-speed interval will not be too short, and the motion interval will not be too long. The invention firstly processes the output data of the inertial device to obtain the initial angular velocity energy threshold for angular velocity zero-velocity detection, and then adjusts the initial angular velocity energy threshold in a progressive approximation manner until the pedestrian gait initially conforms to the basic law of pedestrian motion, and obtains An initial zero-speed interval based on the initial angular velocity energy threshold. The main purpose of this step is to not leak the zero-speed detection point as much as possible. At this time, the initial zero-speed interval is larger than the real zero-speed interval, and then zero-speed detection is performed through the acceleration zero-speed detection. Speed correction to get the corrected zero-speed range.

应当说明的是,在本说明书中,以同一时间点所述惯性器件输出的一个数据组作为一个检测点进行分析;滑动窗口表示由多个检测点组成的区间,滑动窗口是一个区间长度,也就是检测点数目会发生改变的区间,当检测点对应的状态发生改变时,所述滑动窗口结束,下一滑动窗口的初始起点为所述滑动窗口之后的第一个检测点。在本说明书,所述滑动窗口对应的区间状态为零速区间或,所述滑动窗口为零速区间,均表示由所述滑动窗口内的检测点组成的区间为零速区间;所述滑动窗口对应的区间状态为运动区间或,所述滑动窗口为运动区间,均表示由所述滑动窗口内的检测点组成的区间为运动区间。It should be noted that, in this specification, a data group output by the inertial device at the same time point is used as a detection point for analysis; the sliding window represents an interval composed of multiple detection points, and the sliding window is an interval length, also It is the interval in which the number of detection points will change. When the state corresponding to the detection point changes, the sliding window ends, and the initial starting point of the next sliding window is the first detection point after the sliding window. In this specification, the interval state corresponding to the sliding window is a zero-speed interval or, and the sliding window is a zero-speed interval, which means that the interval composed of the detection points in the sliding window is a zero-speed interval; the sliding window The corresponding interval state is a motion interval or, and the sliding window is a motion interval, both indicating that the interval composed of detection points in the sliding window is a motion interval.

请参阅图1,一种自适应零速区间检测方法,包括:Please refer to Figure 1, an adaptive zero-speed interval detection method, including:

S1:实时获取惯性器件的输出数据,所述输出数据包括所述惯性器件的角速度信息和加速度信息;S1: Obtain output data of the inertial device in real time, where the output data includes angular velocity information and acceleration information of the inertial device;

S2:根据所述角速度信息确定角速度零速检测的初始角速度能量阈值TωS2: Determine the initial angular velocity energy threshold T ω for angular velocity zero velocity detection according to the angular velocity information;

S3:根据所述初始角速度能量阈值Tω对角速度零速检测的滑动窗口进行角速度零速检测,确定所述滑动窗口内的检测点数目L和所述滑动窗口对应的区间状态;S3: carry out angular velocity zero velocity detection on the sliding window of angular velocity zero velocity detection according to the initial angular velocity energy threshold T ω , and determine the number L of detection points in the sliding window and the interval state corresponding to the sliding window;

S4:根据所述检测点数目L和所述滑动窗口对应的区间状态对所述初始角速度能量阈值Tω进行自适应调整,得到基于所述初始角速度能量阈值的初始零速区间;S4: adaptively adjust the initial angular velocity energy threshold T ω according to the number of detection points L and the interval state corresponding to the sliding window to obtain an initial zero velocity interval based on the initial angular velocity energy threshold;

S5:根据所述加速度信息对所述初始零速区间进行加速度零速检测,对所述初始零速区间进行修正,获得修正零速区间。S5: Perform acceleration zero-speed detection on the initial zero-speed interval according to the acceleration information, and correct the initial zero-speed interval to obtain a corrected zero-speed interval.

请参阅图2,在一些实施例中,所述S2步骤包括:Referring to FIG. 2, in some embodiments, the step S2 includes:

S210:根据所述角速度信息计算前n(n≥1)个检测点的角速度能量。S210: Calculate the angular velocity energy of the first n (n≥1) detection points according to the angular velocity information.

具体地,从开始检测计算,获取前n个检测点的所述角速度信息,并计算其对应的角速度能量;角速度能量ωi计算公式为:Specifically, from the beginning of detection and calculation, the angular velocity information of the first n detection points is obtained, and the corresponding angular velocity energy is calculated; the calculation formula of angular velocity energy ω i is:

Figure BDA0002180158920000061
Figure BDA0002180158920000061

其中

Figure BDA0002180158920000062
Figure BDA0002180158920000063
为三轴陀螺仪在第i(1≤i≤n,n<30)个检测点获取到的角速度信息。in
Figure BDA0002180158920000062
and
Figure BDA0002180158920000063
is the angular velocity information obtained by the three-axis gyroscope at the i-th (1≤i≤n, n<30) detection point.

S220:根据所述角速度能量计算角速度能量均值μω和角速度能量标准差σωS220: Calculate the angular velocity energy mean value μ ω and the angular velocity energy standard deviation σ ω according to the angular velocity energy.

具体地,角速度能量均值μω计算公式为:Specifically, the calculation formula of the average angular velocity energy μ ω is:

Figure BDA0002180158920000064
Figure BDA0002180158920000064

角速度能量标准差σω计算公式为:The formula for calculating the standard deviation of angular velocity energy σ ω is:

Figure BDA0002180158920000065
Figure BDA0002180158920000065

S230:根据所述角速度能量均值μω和所述角速度能量标准差σω确定所述初始角速度能量阈值TωS230: Determine the initial angular velocity energy threshold T ω according to the angular velocity energy mean value μ ω and the angular velocity energy standard deviation σ ω .

具体地,取出ω12,…ωn中满足下式的角速度能量分别记为ωi,其中i=1,2,…,W,W≤nSpecifically, take out the angular velocity energies satisfying the following formula in ω 1 , ω 2 ,...

ωi≤μω1σω ω i ≤ μ ω1 σ ω

其中λ1为常数,由实验数据标定,在本实施例中,λ1=5,where λ 1 is a constant, which is calibrated by experimental data. In this embodiment, λ 1 =5,

取所述初始角速度能量阈值Tω为:Take the initial angular velocity energy threshold T ω as:

Tω=max{ωi}T ω =max{ω i }

当然,应当理解的是,在一些实施例中,可以取所述初始角速度能量阈值Tω为:Of course, it should be understood that, in some embodiments, the initial angular velocity energy threshold T ω can be taken as:

Tω=μω1σω T ω = μ ω1 σ ω

这样,根据所述角速度信息首先计算前n(n>1)个检测点的角速度能量均值μω和角速度能量标准差σω,再根据所述角速度能量均值μω和所述角速度能量标准差σω确定所述初始角速度能量阈值Tω,不管开始检测时行人处于何种步态,所述初始角速度能量阈值Tω均与所述角速度能量均值μω和所述角速度能量标准差σω相关联,所述初始角速度能量阈值Tω都能够与行人达到步态的初步适应,为后续对所述初始角速度能量阈值Tω进行自适应调整提供了基础,符合多步态零速区间检测的需要,可靠高,实用性强。In this way, firstly calculate the mean angular velocity energy μ ω and the standard deviation σ ω of angular velocity energy of the first n (n>1) detection points according to the angular velocity information, and then calculate the mean value μ ω of angular velocity energy and the standard deviation σ of angular velocity energy according to the angular velocity information. ω determines the initial angular velocity energy threshold T ω , no matter what gait the pedestrian is at when the detection starts, the initial angular velocity energy threshold T ω is associated with the angular velocity energy mean value μ ω and the angular velocity energy standard deviation σ ω , the initial angular velocity energy threshold T ω can achieve the preliminary adaptation of the gait with pedestrians, which provides a basis for the subsequent adaptive adjustment of the initial angular velocity energy threshold T ω , which meets the needs of multi-gait zero-speed interval detection, High reliability and strong practicability.

在一些实施例中,所述S3步骤包括:In some embodiments, the S3 step includes:

S310:从前至后依次对所述滑动窗口中的检测点进行角速度零速检测,直至角速度零速检测数据满足第一结束条件。S310: Perform angular velocity zero-speed detection on the detection points in the sliding window sequentially from front to back, until the angular velocity zero-speed detection data satisfies the first end condition.

具体地,根据角速度零速检测公式进行角速度零速检测,所述角速度零速检测公式为:Specifically, the angular velocity zero velocity detection is performed according to the angular velocity zero velocity detection formula, and the angular velocity zero velocity detection formula is:

Figure BDA0002180158920000071
Figure BDA0002180158920000071

其中,j为从开始检测计算第j个检测点,Cj ω为第j个检测点对应的运动状态,当Cj ω=1时,第j个检测点对应的运动状态为零速状态,当Cj ω=0时,第j个检测点对应的运动状态为运动状态;Among them, j is the j-th detection point calculated from the beginning of detection, C j ω is the motion state corresponding to the j-th detection point, when C j ω = 1, the motion state corresponding to the j-th detection point is zero-speed state, When C j ω =0, the motion state corresponding to the jth detection point is the motion state;

所述第一结束条件为:The first end condition is:

Figure BDA0002180158920000081
Figure BDA0002180158920000081

其中,P为所述滑动窗口内的第一个检测点,L0为大于0的整数;Wherein, P is the first detection point in the sliding window, and L 0 is an integer greater than 0;

S320:当所述角速度零速检测数据满足第一结束条件时,确定所述滑动窗口内的所述检测点数目L。S320: When the angular velocity zero velocity detection data satisfies the first end condition, determine the number L of the detection points in the sliding window.

具体的,所述检测点数目L:L=L0;第(P+L0-1)个检测点为所述滑动窗口内的最后一个检测点;Specifically, the number of detection points L: L=L 0 ; the (P+L 0 -1)th detection point is the last detection point in the sliding window;

S330:当所述滑动窗口内第一个检测点为零速状态时,所述滑动窗口对应的区间状态为零速区间,当所述滑动窗口内第一个检测点为运动状态时,所述滑动窗口对应的区间状态为运动区间。S330: When the first detection point in the sliding window is in the zero-speed state, the interval state corresponding to the sliding window is in the zero-speed interval, and when the first detection point in the sliding window is in the motion state, the The interval state corresponding to the sliding window is the motion interval.

具体地,当

Figure BDA0002180158920000082
时,所述滑动窗口对应的区间状态为零速区间,当
Figure BDA0002180158920000083
时,所述滑动窗口对应的区间状态为运动区间。Specifically, when
Figure BDA0002180158920000082
, the interval state corresponding to the sliding window is the zero-speed interval, and when
Figure BDA0002180158920000083
, the interval state corresponding to the sliding window is a motion interval.

应当理解的是,在另一些实施例中,所述S310步骤还包括:It should be understood that, in other embodiments, the step S310 further includes:

当所述滑动窗口内第一个检测点为零速状态时,以所述第一个检测点从后至前依次对所述滑动窗口之前的检测点进行角速度零速检测,直至所述角速度零速检测数据满足第二结束条件。When the first detection point in the sliding window is in a zero-velocity state, the angular velocity zero-velocity detection is performed on the detection points before the sliding window from the back to the front of the first detection point until the angular velocity is zero. The fast detection data satisfies the second end condition.

也就是说,当

Figure BDA0002180158920000084
时,根据所述角速度零速检测公式以P为起点从后至前依次对所述滑动窗口之前的检测点进行角速度零速检测,直至所述角速度零速检测数据满足第二结束条件。That is, when
Figure BDA0002180158920000084
, according to the angular velocity zero velocity detection formula, with P as the starting point, angular velocity zero velocity detection is performed on the detection points before the sliding window sequentially from the back to the front, until the angular velocity zero velocity detection data satisfies the second end condition.

所述第二结束条件为:The second end condition is:

Figure BDA0002180158920000085
Figure BDA0002180158920000085

或者

Figure BDA0002180158920000086
or
Figure BDA0002180158920000086

其中,L1为大于0的整数。Wherein, L 1 is an integer greater than 0.

相应的,在所述步骤S320中,所述检测点数目L:L=L0+L1。应当理解的是,此时,所述滑动窗口对应的区间发生改变,所述滑动窗口内的第一个检测点P有:P=P-L1+1。Correspondingly, in the step S320, the number of detection points L: L=L 0 +L 1 . It should be understood that, at this time, the interval corresponding to the sliding window changes, and the first detection point P in the sliding window is: P=PL 1 +1.

这样,当所述滑动窗口对应的区间状态为零速状态时,当所述初始角速度能量阈值Tω进行自适应调整后,所述滑动窗口对应的范围相应的根据所述初始角速度能量阈值Tω向前和向后调整,避免了漏零速状态检测点的发生,可靠性高,实用性强。In this way, when the interval state corresponding to the sliding window is zero-speed state, after the initial angular velocity energy threshold T ω is adaptively adjusted, the range corresponding to the sliding window is correspondingly based on the initial angular velocity energy threshold T ω Forward and backward adjustment avoids the occurrence of leaking zero-speed state detection points, with high reliability and strong practicability.

请参阅图3,所述S4步骤包括:Referring to Figure 3, the step S4 includes:

S410:根据所述检测点数目L计算所述滑动窗口对应的时间t。S410: Calculate the time t corresponding to the sliding window according to the number L of detection points.

具体地,所述时间t=(L-1)*t0,其中t0为所述惯性器件的检测周期,本实施例中,所述惯性器件的检测频率为100Hz,也就是说t0为0.01s。Specifically, the time t=(L-1)*t 0 , where t 0 is the detection period of the inertial device. In this embodiment, the detection frequency of the inertial device is 100 Hz, that is, t 0 is 0.01s.

S420:根据所述时间t和所述滑动窗口对应的区间状态对所述初始角速度能量阈值Tω进行自适应调整,得到基于所述初始角速度能量阈值Tω的所述初始零速区间。S420: Adaptively adjust the initial angular velocity energy threshold T ω according to the time t and the interval state corresponding to the sliding window to obtain the initial zero velocity interval based on the initial angular velocity energy threshold T ω .

具体地,在一些实施例中,所述S420步骤包括:Specifically, in some embodiments, the step S420 includes:

当所述滑动窗口对应的区间状态为运动区间时,判断所述时间t的大小是否满足t1≤t≤t2,其中,t1为第一预设时间,t2为第二预设时间:是,回到S3步骤,对下一滑动窗口进行角速度零速检测;否,对所述初始角速度能量阈值Tω进行自适应调整,并根据所述初始角速度能量阈值Tω的调整次数进行零速区间判断;When the interval state corresponding to the sliding window is a motion interval, determine whether the size of the time t satisfies t 1 ≤t≤t 2 , where t 1 is the first preset time, and t 2 is the second preset time : Yes, go back to step S3, and perform zero-speed angular velocity detection on the next sliding window; No, perform adaptive adjustment on the initial angular velocity energy threshold T ω , and perform zero-speed adjustment according to the adjustment times of the initial angular velocity energy threshold T ω speed interval judgment;

当所述滑动窗口对应的区间状态为零速区间时,判断所述时间t的大小是否满足t≥t3,其中t3为第三预设时间:是,所述滑动窗口确定为所述初始零速区间;否,对所述初始角速度能量阈值Tω进行自适应调整,并根据所述初始角速度能量阈值Tω的调整次数进行零速区间判断。When the interval state corresponding to the sliding window is a zero-speed interval, determine whether the size of the time t satisfies t≥t 3 , where t 3 is the third preset time: yes, the sliding window is determined as the initial Zero-speed interval; if no, adaptively adjust the initial angular velocity energy threshold T ω , and judge the zero-velocity interval according to the adjustment times of the initial angular velocity energy threshold T ω .

应当理解的是,当所述滑动窗口为运动区间时,根据人的运动特性,在任何步态中,运动区间既不会过短也不会过长,通过判断所述时间t的大小是否满足t1≤t≤t2,确定是否需要调整所述初始角速度能量阈值Tω,判断依据可靠,实用性强。所述第一预设时间t1、所述第二预设时间t2根据实验数据标定,在一些实施例中,所述第一预设时间t1=0.05s,所述第二预设时间t2=3s,在本实施例中,所述第一预设时间t1=0.1s,所述第二预设时间t2=2s。It should be understood that when the sliding window is a movement interval, according to the movement characteristics of a person, in any gait, the movement interval is neither too short nor too long. By judging whether the size of the time t satisfies the t 1 ≤ t ≤ t 2 , it is determined whether the initial angular velocity energy threshold value T ω needs to be adjusted, and the judgment basis is reliable and practical. The first preset time t 1 and the second preset time t 2 are calibrated according to experimental data. In some embodiments, the first preset time t 1 =0.05s, the second preset time t 2 =3s, in this embodiment, the first preset time t 1 =0.1s, and the second preset time t 2 =2s.

应当理解的是,所述下一滑动窗口的起点为所述滑动窗口之后的第一个检测点。It should be understood that the starting point of the next sliding window is the first detection point after the sliding window.

具体地,当所述滑动窗口对应的区间状态为运动区间时,所述对所述初始角速度能量阈值Tω进行自适应调整步骤包括:Specifically, when the interval state corresponding to the sliding window is a motion interval, the step of adaptively adjusting the initial angular velocity energy threshold T ω includes:

当所述时间t的大小满足t<t1时,减小所述初始角速度能量阈值TωWhen the size of the time t satisfies t<t 1 , reducing the initial angular velocity energy threshold T ω ;

当所述时间t的大小满足t>t2时,增大所述初始角速度能量阈值TωWhen the size of the time t satisfies t>t 2 , the initial angular velocity energy threshold T ω is increased.

具体地,在一些实施例中,当所述时间t的大小满足t<t1时,所述初始角速度能量阈值Tω的调整方式为:Tω=k1*Tω,其中,k1<1,k1为常数,由实验数据标定;在一些实施例中,k1=0.85,本实施例中,所述k1=0.95;在另一些实施中,当所述时间t的大小满足t<t1时,所述初始角速度能量阈值Tω的调整方式为:Tω=minj=P,…,P+Lj}。Specifically, in some embodiments, when the size of the time t satisfies t<t 1 , the adjustment method of the initial angular velocity energy threshold T ω is: T ω =k 1 *T ω , where k 1 < 1, k 1 is a constant, which is calibrated by experimental data; in some embodiments, k 1 =0.85, in this embodiment, the k 1 =0.95; in other implementations, when the size of the time t satisfies t When <t 1 , the adjustment method of the initial angular velocity energy threshold value T ω is: T ω =min j=P, . . . , P+Lj }.

具体地,在一些实施例中,当所述时间t的大小满足t>t2时,所述初始角速度能量阈值Tω的调整方式为:Tω=k2*Tω,其中,k2>1,k2为常数,由实验数据标定;在一些实施例中,k2=1.15,本实施例中,所述k2=1.05。Specifically, in some embodiments, when the size of the time t satisfies t>t 2 , the adjustment method of the initial angular velocity energy threshold T ω is: T ω =k 2 *T ω , where k 2 > 1, k 2 is a constant, which is calibrated by experimental data; in some embodiments, k 2 =1.15, and in this embodiment, the k 2 =1.05.

这样,当所述滑动窗口为运动区间时,判断所述时间t是否满足t1≤t≤t2,当所述时间t的大小不满足t1≤t≤t2时,分具体情况对所述初始角速度能量阈值Tω进行自适应调整,通过渐进逼近的方式调整所述初始角速度能量阈值Tω,当所述时间t的大小满足t1≤t≤t2时,确定所述滑动窗口符合运动区间的规律,确定所述滑动窗口为运动区间,进行下一滑动窗口的检测,可靠性高,实用性强。In this way, when the sliding window is a motion interval, it is judged whether the time t satisfies t 1 ≤t≤t 2 , and when the size of the time t does not satisfy t 1 ≤t≤t 2 , it is determined whether the time t satisfies t 1 ≤t≤t 2 . The initial angular velocity energy threshold T ω is adaptively adjusted, and the initial angular velocity energy threshold T ω is adjusted by asymptotic approximation. When the size of the time t satisfies t 1 ≤ t ≤ t 2 , it is determined that the sliding window meets the The law of the motion interval, the sliding window is determined as the motion interval, and the detection of the next sliding window is performed, which has high reliability and strong practicability.

具体的,当所述滑动窗口对应的区间状态为零速区间时,根据人的运动特性,在任何步态中,零速区间不会过短,通过判断所述时间t的大小是否满足第三预设时间确定是否需要调整所述初始角速度能量阈值Tω,判断依据可靠。所述第三预设时间t3根据实验数据标定,在一些实施例中,所述第三预设时间t3:t3=1.5s,在本实施例中,所述时间t3=0.5s。Specifically, when the interval state corresponding to the sliding window is the zero-speed interval, according to the movement characteristics of the person, in any gait, the zero-speed interval will not be too short, and by judging whether the size of the time t satisfies the third The preset time determines whether the initial angular velocity energy threshold T ω needs to be adjusted, and the judgment basis is reliable. The third preset time t 3 is calibrated according to experimental data. In some embodiments, the third preset time t 3 : t 3 =1.5s, and in this embodiment, the time t 3 =0.5s .

具体地,当所述滑动窗口对应的区间状态为零速区间时,所述对所述初始角速度能量阈值Tω进行自适应调整为:Specifically, when the interval state corresponding to the sliding window is a zero-speed interval, the adaptive adjustment to the initial angular velocity energy threshold T ω is:

增大所述初始角速度能量阈值TωIncrease the initial angular velocity energy threshold T ω .

具体地,在一些实施例中,当所述时间t的大小不满足:t≥t3时,所述初始角速度能量阈值Tω的调整方式为:Tω=k3*Tω,其中,k3>1,k3为常数,由实验数据标定;在另一些实施例中,所述初始角速度能量阈值Tω的调整方式为:Specifically, in some embodiments, when the size of the time t does not satisfy: t≥t 3 , the adjustment method of the initial angular velocity energy threshold T ω is: T ω =k 3 *T ω , where k 3 > 1, k 3 is a constant, which is calibrated by experimental data; in other embodiments, the adjustment method of the initial angular velocity energy threshold T ω is:

Figure BDA0002180158920000111
Figure BDA0002180158920000111

其中,k4、k5为整数,由实验数据标定,较佳地,k4+k5≤L,具体地,在一些实施例中k4=L,k5=0;这样,增大了所述初始角速度能量阈值Tω,通过渐进逼近的方式调整所述初始角速度能量阈值Tω,可靠性高,实用性强。Wherein, k 4 and k 5 are integers, which are calibrated by experimental data. Preferably, k 4 +k 5 ≤L. Specifically, in some embodiments, k 4 =L, k 5 =0; The initial angular velocity energy threshold T ω is adjusted by asymptotic approximation, which has high reliability and strong practicability.

这样,当所述滑动窗口对应的区间状态为零速区间时,判断所述时间t是否满足t≥t3,当所述时间t的大小不满足t≥t3时,通过渐进逼近的方式调整所述初始角速度能量阈值Tω,避免了漏零速状态检测点的发生,当所述时间t满足t≥t3时,确定所述滑动窗口符合零速区间的规律,确定所述滑动窗口为所述初始零速区间,可靠性高,实用性强。In this way, when the interval state corresponding to the sliding window is in the zero-speed interval, it is judged whether the time t satisfies t≥t 3 , and when the size of the time t does not satisfy t ≥ t 3 , it is adjusted by means of asymptotic approximation The initial angular velocity energy threshold T ω avoids the occurrence of a leaking zero velocity state detection point. When the time t satisfies t ≥ t 3 , it is determined that the sliding window conforms to the law of the zero velocity interval, and the sliding window is determined to be The initial zero-speed interval has high reliability and strong practicability.

所述并根据所述初始角速度能量阈值Tω的调整次数进行所述零速区间判断包括:The determination of the zero-speed interval according to the adjustment times of the initial angular velocity energy threshold T ω includes:

统计所述初始角速度能量阈值Tω的调整次数,判断所述初始角速度能量阈值Tω的调整次数是否超过预设值:否,回到S3步骤;是,判断所述滑动窗口是否为零速区间:是,所述滑动窗口确定为所述初始零速区间;否,回到S3步骤,对下一滑动窗口进行角速度零速检测。Count the adjustment times of the initial angular velocity energy threshold T ω , and judge whether the adjustment times of the initial angular velocity energy threshold T ω exceed the preset value: No, go back to step S3; Yes, judge whether the sliding window is in the zero-speed interval : Yes, the sliding window is determined to be the initial zero-speed interval; No, go back to step S3, and perform zero-speed angular velocity detection on the next sliding window.

具体地,所述预设值可以根据实验值确定,也可以人为指定。这样,当所述初始角速度能量阈值Tω调整次数超过预设值时,停止对所述初始角速度能量阈值Tω的调整,避免大量的运算,降低了数据处理难度,同时,还能在一定程度上确保所述初始零速区间数据的可靠性,可靠性高,实用性强。应当理解的是,在同一滑动窗口的检测中,无论所述滑动窗口为运动区间还是零速区间时,均统计所述初始角速度能量阈值Tω的调整次数。Specifically, the preset value may be determined according to an experimental value, or may be designated manually. In this way, when the number of times of adjustment of the initial angular velocity energy threshold T ω exceeds a preset value, the adjustment of the initial angular velocity energy threshold T ω is stopped, avoiding a large number of operations, reducing the difficulty of data processing, and at the same time, it can also be adjusted to a certain extent. In order to ensure the reliability of the initial zero-speed interval data, the reliability is high and the practicability is strong. It should be understood that, in the detection of the same sliding window, regardless of whether the sliding window is in the motion interval or the zero velocity interval, the adjustment times of the initial angular velocity energy threshold T ω are counted.

在一些实施例中,所述S5步骤包括:In some embodiments, the S5 step includes:

S510:根据所述初始零速区间内的初始零速区间检测点对应的所述加速度信息确定加速度零速检测的加速度幅值阈值;S510: Determine an acceleration amplitude threshold for acceleration zero-speed detection according to the acceleration information corresponding to the detection points in the initial zero-speed interval in the initial zero-speed interval;

S520:根据所述加速度幅值阈值对所有所述初始零速区间检测点进行加速度零速检测,对所述初始零速区间进行修正,获得修正零速区间。S520: Perform acceleration zero-speed detection on all the initial zero-speed interval detection points according to the acceleration amplitude threshold, and correct the initial zero-speed interval to obtain a corrected zero-speed interval.

具体地,所述S510步骤包括:Specifically, the step S510 includes:

S511:根据所述初始零速区间检测点对应的所述加速度信息计算所有所述初始零速区间检测点对应的加速度幅值。S511: Calculate acceleration amplitudes corresponding to all the initial zero-speed interval detection points according to the acceleration information corresponding to the initial zero-speed interval detection points.

具体地,加速度幅值计算公式为:Specifically, the acceleration amplitude calculation formula is:

Figure BDA0002180158920000121
Figure BDA0002180158920000121

其中,

Figure BDA0002180158920000122
Figure BDA0002180158920000123
分别为所述惯性器件在第i个检测点获取到的加速度信息。in,
Figure BDA0002180158920000122
and
Figure BDA0002180158920000123
are the acceleration information obtained by the inertial device at the i-th detection point, respectively.

S512:对所有所述初始零速区间检测点对应的所述加速度幅值进行排序,根据排序后的所述加速度幅值生成临时区间。S512: Sort the acceleration amplitudes corresponding to all the detection points in the initial zero-speed interval, and generate a temporary interval according to the sorted acceleration amplitudes.

具体地,所述排序可以是升序/降序排列,所述L为所述初始零速区间检测点的个数,对所有所述初始零速区间检测点对应的所述加速度幅值进行升序/降序排列,排序后对应的L个加速度幅值分别记为f′1,f′2,…,f′L,所述临时区间对应的加速度幅值分别记为f′Q-R+1,f′Q-R+2,…,f′Q+R,其中,

Figure BDA0002180158920000124
1/4≤k6<1/2,k6由实验数据标定,在一些实施例中,k6=1/4,也就是说,Q为大于等于L/2的最小整数,R为大于等于L/4的最小整数。Specifically, the sorting may be in ascending/descending order, the L is the number of detection points in the initial zero-speed interval, and the acceleration amplitudes corresponding to all the detection points in the initial zero-speed interval are in ascending/descending order Arranged, the corresponding L acceleration amplitudes after sorting are respectively denoted as f′ 1 , f′ 2 ,...,f′ L , and the acceleration amplitudes corresponding to the temporary interval are respectively denoted as f′ Q-R+1 , f′ Q-R+2 ,…,f′ Q+R , where,
Figure BDA0002180158920000124
1/4≤k 6 <1/2, k 6 is calibrated by experimental data, in some embodiments, k 6 =1/4, that is, Q is the smallest integer greater than or equal to L/2, R is greater than or equal to The smallest integer of L/4.

S513:根据所述临时区间内临时区间检测点对应的所述加速度幅值确定所述加速度幅值阈值。S513: Determine the acceleration amplitude threshold according to the acceleration amplitude corresponding to the detection point in the temporary interval in the temporary interval.

具体地,所述S513步骤包括:Specifically, the step S513 includes:

根据所述临时区间内所述临时区间检测点对应的所述加速度幅值计算加速度幅值均值μf和加速度幅值标准差σfCalculate acceleration amplitude mean μ f and acceleration amplitude standard deviation σ f according to the acceleration amplitude corresponding to the detection point of the temporary interval in the temporary interval;

根据所述加速度幅值均值μf和所述加速度幅值标准差σf计算所述加速度幅值阈值。The acceleration amplitude threshold is calculated according to the acceleration amplitude mean μ f and the acceleration amplitude standard deviation σ f .

具体的,所述加速度幅值均值μf计算公式为:Specifically, the calculation formula of the mean value of acceleration amplitude μ f is:

Figure BDA0002180158920000131
Figure BDA0002180158920000131

所述加速度幅值标准差σf计算公式为:The calculation formula of the standard deviation σ f of the acceleration amplitude is:

Figure BDA0002180158920000132
Figure BDA0002180158920000132

具体的,所述加速度幅值阈值包括加速度幅值上阈值Tf上和加速度幅值上阈值Tf下,具体地,Specifically, the acceleration amplitude threshold includes an upper acceleration amplitude threshold T f above and an acceleration amplitude upper threshold T f below , specifically,

所述加速度幅值上阈值Tf上:Tf上=μf2σfThe acceleration amplitude upper threshold T f : T f upper = μ f2 σ f ,

所述加速度幅值上阈值Tf下:Tf下=μf3σfThe acceleration amplitude upper threshold T f is below : T f below = μ f3 σ f ,

其中,λ2和λ3为常数,由实验数据标定,在一些实施例中,λ2=3,λ3=3。Wherein, λ 2 and λ 3 are constants, which are calibrated by experimental data, in some embodiments, λ 2 =3, λ 3 =3.

具体地,所述S520步骤包括:Specifically, the step S520 includes:

根据所述加速度幅值阈值依次对所述初始零速区间检测点进行加速度零速检测,获得所有零加速状态的所述初始零速区间检测点。Acceleration zero-speed detection is performed on the initial zero-speed interval detection points in sequence according to the acceleration amplitude threshold value, and all the initial zero-speed interval detection points in the zero-acceleration state are obtained.

具体地,根据所述加速度幅值上阈值Tf上和所述加速度幅值上阈值Tf下从前至后依次对所述初始零速区间检测点进行加速度零速检测,加速度零速检测公式为:Specifically, according to the acceleration amplitude upper threshold T f and the acceleration amplitude upper threshold T f , the acceleration zero-speed detection is performed on the initial zero-speed interval detection points in sequence from front to back, and the acceleration zero-speed detection formula is: :

Figure BDA0002180158920000133
Figure BDA0002180158920000133

其中,其中

Figure BDA0002180158920000134
为j时刻的运动状态,1表示零加速状态,0表示运动状态。of which, of which
Figure BDA0002180158920000134
is the motion state at time j, 1 represents the zero acceleration state, and 0 represents the motion state.

根据所有零加速状态的所述初始零速区间检测点生成所述修正零速区间。The modified zero-speed interval is generated according to the initial zero-speed interval detection points of all zero-acceleration states.

应当说明的是,正常情况下,所有零加速状态的连续所述初始零速区间检测点组成所述修正零速区间,但是,在一些极端情况下,所有零加速状态的所述初始零速区间检测点不是完全连续的,此时,若相邻零加速状态的所述初始零速区间检测点之间间隔了运动状态的所述初始零速区间检测点时,只要运动状态的所述初始零速区间检测点的数目不超过预设值S,认为运动状态的所述初始零速区间检测点属于所述修正零速区间,所述预设值S根据实验数据标定,在一些实施例中所述预设值S:

Figure BDA0002180158920000141
1/8≤k7<1/4。但是在后续进行行人定位导航时,采用处于零加速状态的连续所述初始零速区间检测点进行定位导航。It should be noted that, under normal circumstances, the continuous initial zero-speed interval detection points of all zero-acceleration states constitute the corrected zero-speed interval, but, in some extreme cases, the initial zero-speed intervals of all zero-acceleration states The detection points are not completely continuous. At this time, if the initial zero-speed interval detection points of the motion state are separated from the initial zero-speed interval detection points of the adjacent zero acceleration states, only the initial zero-speed interval detection points of the motion state are required. The number of detection points in the speed interval does not exceed the preset value S, and it is considered that the initial zero-speed interval detection points in the motion state belong to the corrected zero-speed interval, and the preset value S is calibrated according to experimental data. In some embodiments, the The preset value S:
Figure BDA0002180158920000141
1/8≤k 7 <1/4. However, in the subsequent pedestrian positioning and navigation, the continuous initial zero-speed interval detection points in the zero-acceleration state are used for positioning and navigation.

应当说明的是,当所述修正零速区间之后,回到S3步骤,进行下一个滑动窗口的角速度零速检测,此时,所述下一滑动窗口的起点为所述初始零速区间之后的第一个检测点。It should be noted that after the correction of the zero-speed interval, return to step S3 to perform the angular velocity zero-velocity detection of the next sliding window. At this time, the starting point of the next sliding window is after the initial zero-velocity interval. The first detection point.

在本实施例中,IMU绑在脚背,树莓派固定在腰部,在80m*60m的长方形操场上运动。实验中采集了4组数据,其中两组为正常行走时采集的,分别运动了193步和204步,记为W_193和W_204;另外两组为混合运动时采集的,分别运动了133步和145步,记为Hunhe_133和Hunhe_145,同时采用三条件法进行零速检测,检测结果如表1所示,分析表1中的数据可知,当运动步态为单一的行走时,自适应算法和三条件法的平均漏检率分别为0.505%和1%;当运动步态混合时,两者的平均漏检率分别为0.375%和28.925%。In this embodiment, the IMU is tied to the instep, and the Raspberry Pi is fixed to the waist to exercise on the 80m*60m rectangular playground. Four groups of data were collected in the experiment, of which two groups were collected during normal walking, moving 193 steps and 204 steps respectively, denoted as W_193 and W_204; the other two groups were collected during mixed exercise, moving 133 steps and 145 steps respectively. Steps are recorded as Hunhe_133 and Hunhe_145. At the same time, the three-condition method is used for zero-speed detection. The detection results are shown in Table 1. Analysis of the data in Table 1 shows that when the motion gait is a single walking, the adaptive algorithm and the three conditions The average missed detection rates of the two methods were 0.505% and 1%, respectively; when the motion gait was mixed, the average missed detection rates of the two methods were 0.375% and 28.925%, respectively.

无论是单一运动还是混合运动,自适应算法的步数漏检率均低于三条件法,当步态比较单一时,两者均能较为准确的检测出步数,但自适应算法的准确率更高;当步态多变时,自适应算法仍能较为准确的检测到步数,但三条件法则出现多步漏检,不能准确的检测出步数;证明本方法不仅能准确的检测出步数,而且对步态的自适应性强。Whether it is a single movement or a mixed movement, the missed detection rate of the number of steps of the adaptive algorithm is lower than that of the three-condition method. When the gait is relatively simple, both can accurately detect the number of steps, but the accuracy of the adaptive algorithm is higher than that of the three-condition method. higher; when the gait is changeable, the adaptive algorithm can still detect the number of steps more accurately, but the three-condition rule has many missed steps and cannot accurately detect the number of steps; it proves that this method can not only accurately detect the number of steps The number of steps, and the adaptability to the gait is strong.

表1自适应算法与三条件法步数检测结果对比Table 1 Comparison of the step number detection results between the adaptive algorithm and the three-condition method

Figure BDA0002180158920000151
Figure BDA0002180158920000151

注:Note:

Figure BDA0002180158920000152
Figure BDA0002180158920000152

本发明所述自适应零速区间检测方法,首先通过惯性器件输出的角速度信息确定初始角速度能量阈值Tω,使得所述初始角速度能量阈值Tω与行人的初始步态相匹配;再根据所述初始角速度能量阈值Tω对滑动窗口进行角速度零速检测,确定所述滑动窗口内的检测点数目L和所述滑动窗口对应的区间状态,并根据区间状态和所述检测点数目L对所述初始角速度能量阈值Tω进行自适应调整,通过渐进逼急的方式调整所述初始角速度能量阈值Tω,得到基于所述初始角速度能量阈值的初始零速区间,降低了零速状态检测点的漏检几率;再通过加速度零速检测对所述初始零速区间进行修正,得到较为准确的所述修正零速区间。本发明能够在行人运动过程中,渐进调整所述初始角速度能量阈值Tω,能够实现多步态的零速区间检测,可靠性高,实用性强。The self-adaptive zero-speed interval detection method of the present invention first determines the initial angular velocity energy threshold T ω through the angular velocity information output by the inertial device, so that the initial angular velocity energy threshold T ω matches the pedestrian's initial gait; The initial angular velocity energy threshold T ω performs angular velocity zero-velocity detection on the sliding window, determines the number L of detection points in the sliding window and the interval state corresponding to the sliding window, and according to the interval state and the number of detection points L The initial angular velocity energy threshold T ω is adaptively adjusted, and the initial angular velocity energy threshold T ω is adjusted in a progressive and urgent manner to obtain the initial zero velocity interval based on the initial angular velocity energy threshold, which reduces the leakage of the zero velocity state detection point. Then, the initial zero-speed interval is corrected through the acceleration zero-speed detection to obtain the more accurate corrected zero-speed interval. The present invention can gradually adjust the initial angular velocity energy threshold T ω in the process of pedestrian movement, can realize multi-gait zero-speed interval detection, has high reliability and strong practicability.

虽然本公开披露如上,但本公开的保护范围并非仅限于此。本领域技术人员在不脱离本公开的精神和范围的前提下,可进行各种变更与修改,这些变更与修改均将落入本发明的保护范围。Although the present disclosure is disclosed above, the scope of protection of the present disclosure is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present disclosure, and these changes and modifications will fall within the protection scope of the present invention.

Claims (8)

1. An adaptive zero-speed interval detection method is characterized by comprising the following steps:
s1: acquiring output data of an inertial device in real time, wherein the output data comprises angular velocity information and acceleration information of the inertial device;
s2: determining an initial angular velocity energy threshold T of angular velocity zero-speed detection according to the angular velocity informationω
S3: according to the initial angular velocity energy threshold value TωCarrying out angular velocity zero-speed detection on a sliding window for angular velocity zero-speed detection, and determining the number L of detection points in the sliding window and an interval state corresponding to the sliding window;
s4: calculating the time T corresponding to the sliding window according to the number L of the detection points, and carrying out energy threshold T on the initial angular velocity according to the time T and the interval state corresponding to the sliding windowωCarrying out self-adaptive adjustment to obtain an initial zero-speed interval based on the initial angular speed energy threshold value:
when the interval state corresponding to the sliding window is a motion interval, judging whether the time t meets t or not1≤t≤t2Wherein, t1Is a first predetermined time, t2For a second preset time: returning to the step of S3, performing angular velocity zero-speed detection on the next sliding window; no, for the initial angular velocity energy threshold TωPerforming self-adaptive adjustment and according to the initial angular velocity energy threshold value TωThe zero-speed interval is judged according to the adjustment times;
when the interval state corresponding to the sliding window is a zero-speed interval, judging whether the time t meets the condition that t is more than or equal to t3Wherein t is3For a third preset time: if yes, the sliding window is determined as the initial zero-speed interval; no, for the initial angular velocity energy threshold TωPerforming self-adaptive adjustment and according to the initial angular velocity energy threshold value TωThe zero-speed interval is judged according to the adjustment times;
s5: and carrying out acceleration zero-speed detection on the initial zero-speed interval according to the acceleration information, and correcting the initial zero-speed interval to obtain a corrected zero-speed interval.
2. The adaptive zero-velocity interval detection method as claimed in claim 1, wherein the energy threshold T for the initial angular velocity is set when the interval status corresponding to the sliding window is a motion intervalωThe step of performing adaptive adjustment comprises:
when the time t satisfies the condition that t is less than t1While decreasing said initial angular velocity energy threshold Tω
When the size of the time t satisfies t > t2While increasing the initial angular velocity energy threshold Tω
3. The adaptive zero-velocity interval detection method of claim 1, wherein the energy threshold T for the initial angular velocity is set when the interval status corresponding to the sliding window is a zero-velocity intervalωThe self-adaptive adjustment is as follows:
increasing the initial angular velocity energy threshold Tω
4. The adaptive interval zero-velocity detection method of claim 1, wherein said detecting is based on said initial angular velocity energy threshold TωThe zero-speed interval judgment of the adjustment times comprises the following steps:
counting the initial angular velocity energy threshold TωJudging the initial angular velocity energy threshold value TωWhether the adjustment times exceed a preset value: otherwise, go back to step S3; if yes, judging whether the sliding window is a zero-speed interval: if yes, the sliding window is determined as the initial zero-speed interval; otherwise, the process returns to step S3, and angular velocity zero speed detection is performed for the next sliding window.
5. The adaptive zero-speed interval detection method of claim 1, wherein the step of S5 comprises:
s510: determining an acceleration amplitude threshold value of acceleration zero-speed detection according to the acceleration information corresponding to the initial zero-speed interval detection point in the initial zero-speed interval;
s520: and performing acceleration zero-speed detection on all the initial zero-speed interval detection points according to the acceleration amplitude threshold, and correcting the initial zero-speed interval to obtain the corrected zero-speed interval.
6. The adaptive zero-speed interval detection method of claim 5, wherein the step S510 comprises:
s511: calculating acceleration amplitudes corresponding to all the initial zero-speed interval detection points according to the acceleration information corresponding to the initial zero-speed interval detection points;
s512: sequencing the acceleration amplitudes corresponding to all the initial zero-speed interval detection points, and generating a temporary interval according to the sequenced acceleration amplitudes;
s513: and determining the acceleration amplitude threshold according to the acceleration amplitude corresponding to the detection point of the temporary interval in the temporary interval.
7. The adaptive zero-velocity interval detection method of claim 6, wherein the step S520 comprises:
sequentially carrying out acceleration zero-speed detection on the initial zero-speed interval detection points according to the acceleration amplitude threshold value to obtain all the initial zero-speed interval detection points in a zero-acceleration state;
and generating the corrected zero-speed interval according to the initial zero-speed interval detection points in all zero acceleration states.
8. The adaptive zero-speed interval detection method according to claim 1, wherein the step S2 includes:
s210: calculating the angular velocity energy of the first n (n is more than or equal to 1) detection points according to the angular velocity information;
s220: calculating the angular velocity energy mean value mu according to the angular velocity energyωSum angular velocity energy standard deviation sigmaω
S230: according to the angular velocity energy mean value muωAnd the angular velocity energy scaleTolerance sigmaωDetermining the initial angular velocity energy threshold Tω
CN201910793466.4A 2019-08-27 2019-08-27 Self-adaptive zero-speed interval detection method Active CN110455316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910793466.4A CN110455316B (en) 2019-08-27 2019-08-27 Self-adaptive zero-speed interval detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910793466.4A CN110455316B (en) 2019-08-27 2019-08-27 Self-adaptive zero-speed interval detection method

Publications (2)

Publication Number Publication Date
CN110455316A CN110455316A (en) 2019-11-15
CN110455316B true CN110455316B (en) 2021-08-06

Family

ID=68489194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910793466.4A Active CN110455316B (en) 2019-08-27 2019-08-27 Self-adaptive zero-speed interval detection method

Country Status (1)

Country Link
CN (1) CN110455316B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111707294B (en) * 2020-08-20 2020-11-06 中国人民解放军国防科技大学 Method and device for pedestrian navigation zero-speed interval detection based on optimal interval estimation
CN113092819B (en) * 2021-04-14 2022-11-18 东方红卫星移动通信有限公司 Dynamic zero-speed calibration method and system for foot accelerometer
CN114034297A (en) * 2021-10-22 2022-02-11 北京自动化控制设备研究所 An adaptive zero-speed interval determination method
CN114088090A (en) * 2021-12-03 2022-02-25 山东大学 A foot-binding type pedestrian foot zero speed detection method and system
CN114279441B (en) * 2021-12-15 2023-12-29 中国科学院深圳先进技术研究院 Zero-speed interval detection method, pedestrian navigation system and storage medium
WO2023108498A1 (en) * 2021-12-15 2023-06-22 中国科学院深圳先进技术研究院 Zero-speed interval detection method, pedestrian navigation system and storage medium
CN119197542A (en) * 2024-11-27 2024-12-27 中国人民解放军海军航空大学 Adaptive zero-speed detection algorithm based on interval search under variable speed motion conditions

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419080B (en) * 2008-06-13 2011-04-20 哈尔滨工程大学 Mini quick-connecting inertia measurement system zero speed correcting method
KR101371655B1 (en) * 2010-12-30 2014-03-12 울산대학교 산학협력단 System for detecting zero velocity interval and method for detecting zero velocity interval
CN102680000A (en) * 2012-04-26 2012-09-19 北京航空航天大学 Zero-velocity/course correction application online calibrating method for optical fiber strapdown inertial measuring unit
CN104880199B (en) * 2014-02-27 2018-05-29 日本电气株式会社 Zero velocity update method, Gait measurement method and apparatus
CN105547291B (en) * 2015-12-31 2018-11-30 湖南格纳微信息科技有限公司 The adaptive static detection method of indoor occupant freedom positioning system
CN106643713B (en) * 2016-12-22 2021-01-26 威海北洋电气集团股份有限公司 Estimation method and device for zero-speed correction pedestrian locus for smooth and adaptive adjustment of threshold
CN108362282B (en) * 2018-01-29 2020-10-27 哈尔滨工程大学 Inertial pedestrian positioning method based on self-adaptive zero-speed interval adjustment

Also Published As

Publication number Publication date
CN110455316A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN110455316B (en) Self-adaptive zero-speed interval detection method
CN103411607B (en) Pedestrian&#39;s step-size estimation and dead reckoning method
CN103983273B (en) A kind of real-time step-size estimation method based on acceleration transducer
CN110945515A (en) Intent and slot detection for digital assistants
CN110245718A (en) A kind of Human bodys&#39; response method based on joint time-domain and frequency-domain feature
JP2018503328A5 (en)
CN109308437B (en) Motion recognition error correction method, electronic device, and storage medium
CN103793510A (en) Classifier construction method based on active learning
CN105913051A (en) Device and method for updating template library for face image recognition
CN107886158A (en) A kind of bat optimized algorithm based on Iterated Local Search and Stochastic inertia weight
CN103630147A (en) Zero-speed detection method for individually autonomous navigation system based on hidden Markov model (HMM)
CN108426582A (en) Three-dimensional map matching process in pedestrian room
CN104089625A (en) Step counting method with self-learning capability
CN102462497B (en) Method and system for identifying human body movement behaviors
CN103411628B (en) A kind of disposal route of MEMS gyro instrument Random Drift Error
CN107392106B (en) A dual-threshold-based human activity endpoint detection method
CN114034297A (en) An adaptive zero-speed interval determination method
CN109993108A (en) A kind of gesture error correction method, system and device in augmented reality environment
JP2017192563A (en) Activity meter and exercise amount calculation device
CN112933579B (en) Motion quality evaluation method and device and storage medium
CN113499066B (en) Multi-node fall early warning method and system based on DTW gait difference
CN103826202A (en) Method for improving WiFi positioning result jumping based on cell phone sensor information
CN107270932A (en) Automatic step-recording method for terminal device
CN114913595B (en) Motion mode recognition method, device, electronic equipment and storage medium
CN114061616A (en) An adaptive wave peak detection pedometer method

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