CN104089624B - A method and a terminal device pedometer - Google Patents

A method and a terminal device pedometer Download PDF

Info

Publication number
CN104089624B
CN104089624B CN 201410344625 CN201410344625A CN104089624B CN 104089624 B CN104089624 B CN 104089624B CN 201410344625 CN201410344625 CN 201410344625 CN 201410344625 A CN201410344625 A CN 201410344625A CN 104089624 B CN104089624 B CN 104089624B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
time
adjacent
value
frequency
acceleration
Prior art date
Application number
CN 201410344625
Other languages
Chinese (zh)
Other versions
CN104089624A (en )
Inventor
璧典匠
赵佳
Original Assignee
璧典匠
赵佳
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
Grant date

Links

Abstract

本发明提供一种计步方法及终端设备。 The present invention provides a method and a terminal apparatus pedometer. 计步方法包括:实时获取终端设备的加速度值;确定加速度值中的极大值和极小值;当相邻极大值和极小值之差大于加速度阈值时,对两个相邻极大值或两个相邻极小值之间的加速度值进行频域变换,获得两个相邻极大值或两个相邻极小值对应时间内的步行频率;如果前述对应时间内的步行频率大于预设频率阈值,则确定持有终端设备的用户在前述对应时间内移动一步,将步数加1。 Method pedometer comprising: an acceleration value acquired in real time a terminal device; determining the maximum value and the minimum value of the acceleration values; when the difference between the maximum value and the minimum acceleration threshold values ​​is greater than the adjacent pair of two adjacent maximum an acceleration value between the minimum value or adjacent two frequency domain transformed values ​​to obtain two adjacent maxima or minima corresponding to two adjacent frequencies in the walking time; walking if a frequency within the corresponding time a frequency greater than a predetermined threshold value, it is determined that the user holds the mobile terminal device in the corresponding time step, plus a number of steps. 本发明技术方案可以降低计步时发生误判的概率,提高计步精度。 Aspect of the present invention can reduce the probability of misjudgment occurs when the pedometer, the pedometer to improve accuracy.

Description

计步方法及终端设备【技术领域】 Method and terminal equipment pedometer FIELD

[0001] 本发明涉及分析及测量控制技术领域,尤其涉及一种计步方法及终端设备。 [0001] The present invention relates to the analysis and measurement and control technology, and particularly, to a method and a terminal apparatus pedometer. 【背景技术】 【Background technique】

[0002] 随着科学技术的发展以及微机电系统(Micro-Electro-Mechanical System, MEMS)惯性传感器的普及,计步器、手机、智能手表等越来越多的电子设备拥有了陀螺和加速度计,因此可以帮助用户统计收集运动信息,分析用户的运行状态。 [0002] With the development of science and technology as well as micro-electromechanical systems (Micro-Electro-Mechanical System, MEMS) inertial sensors popularity of pedometers, mobile phones, smart watches more and more electronic devices have a gyroscope and accelerometer , it can help users run the state statistics collected information movement, analysis of the user.

[0003] 现有计步方法大多是通过加速度计采集用户的加速度值,找到加速度的波峰和波谷,将相邻波峰和波谷之差与预设的阈值进行比较,根据比较结果判断用户是否发生移步。 [0003] Most of the conventional methods pedometer acceleration value by the accelerometer acquired user to find the acceleration peaks and troughs, adjacent peaks and valleys of the difference with a preset threshold value, it is determined whether the user-shifted according to the comparison result step. 该方法中使用的阈值的设定受较多因素,例如人的运动特征、加速度计的影响,这样该方法仅适用于用户匀速运动的场景,对于走走停停等非匀速运动的场景很容易发生误判,导致计步精度下降。 The method of setting a threshold used by many factors, such as motion characteristics, whether the influence of the accelerometer such that the method is applicable only to users uniform motion scene, the scene is easy for a non-uniform motion stop and go, etc. misjudgment occurs, resulting in decreased accuracy pedometer. 【发明内容】 [SUMMARY]

[0004] 本发明的多个方面提供一种计步方法及终端设备,用以降低计步时发生误判的概率,提高计步精度。 [0004] Aspects of the present invention provides a method and a terminal apparatus pedometer to reduce the probability of false positive occurs when a pedometer, the pedometer to improve accuracy.

[0005] 本发明的一方面,提供一种计步方法,包括: [0005] In one aspect of the present invention, there is provided a pedometer comprising:

[0006] 实时获取终端设备的加速度值; [0006] the terminal device in real time acquired acceleration value;

[0007] 确定所述加速度值中的极大值和极小值; [0007] determining maximum and minimum values ​​of the acceleration values;

[0008] 当相邻极大值和极小值之差大于加速度阈值时,对包括所述相邻极大值和极小值中的极大值的两个相邻极大值或包括所述相邻极大值和极小值中的极小值的两个相邻极小值之间的加速度值进行频域变换,获得所述两个相邻极大值或两个相邻极小值对应时间内的步行频率; [0008] When the difference between the maximum and minimum values ​​is greater than the acceleration threshold value adjacent, said adjacent pair comprising two adjacent maximum values ​​of the maximum value and the maximum value or minimum value comprising said the minimum acceleration values ​​between adjacent values ​​of the adjacent minima maxima and minima values ​​of the two frequency domain transformation, two neighboring maxima or minima of the two adjacent obtained within a time corresponding to walking frequency;

[0009] 如果所述两个相邻极大值或两个相邻极小值对应时间内的步行频率大于预设频率阈值,则确定持有所述终端设备的用户在所述两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1。 [0009] If the two frequencies in adjacent walking two neighboring maxima or minima corresponding to the frequency of time greater than a preset threshold value, it is determined that the user of the terminal device holds the two adjacent two adjacent maxima or minima within a time corresponding to one step, the number of steps is incremented.

[0010] 本发明的另一方面,提供一种终端设备,包括: [0010] Another aspect of the present invention, there is provided a terminal device, comprising:

[0011] 第一获取模块,用于实时获取所述终端设备的加速度值; [0011] a first obtaining module, configured to acquire the acceleration values ​​of the terminal device in real time;

[0012] 第一确定模块,用于确定所述加速度值中的极大值和极小值; [0012] a first determining module, the maximum and minimum values ​​for determining the acceleration value;

[0013] 第二获取模块,用于在相邻极大值和极小值之差大于加速度阈值时,对包括所述相邻极大值和极小值中的极大值的两个相邻极大值或包括所述相邻极大值和极小值中的极小值的两个相邻极小值之间的加速度值进行频域变换,获得所述两个相邻极大值或两个相邻极小值对应时间内的步行频率; [0013] a second obtaining module, configured to, when the difference between the maximum and minimum values ​​is greater than the acceleration threshold value adjacent, the adjacent two of said maximum value comprises a maximum value and the minimum value adjacent maxima or minima comprising two maxima and minima in the adjacent acceleration value between the minimum value of neighboring frequency domain transformation, to obtain the two neighboring maxima or two adjacent minima corresponding to walking frequency within a time;

[0014] 第二确定模块,用于在所述两个相邻极大值或两个相邻极小值对应时间内的步行频率大于预设频率阈值时,确定持有所述终端设备的用户在所述两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1。 [0014] The second determining module configured in the two neighboring maxima or two adjacent frequencies within walking minimal value corresponding to a frequency greater than a preset time threshold, determining that the user holds the terminal device the two adjacent maxima or adjacent minima corresponding to two time shifted by one step, the number of steps is incremented.

[0015] 在本发明技术方案中,实时获取终端设备的加速度值,确定加速度值中的极大值和极小值,将相邻极大值和极小值之差与加速度阈值进行比较,此时并不是直接根据比较结果确定用户是否发生移步,而是继续对包括上述参与比较的极大值的两个相邻极大值或包括上述参与比较的极小值的两个相邻极小值之间的加速度值进行频域变换,获得两个相邻极大值或两个相邻极小值对应时间内的步行频率,进一步从频域进行判断,只有在步行频率大于预设频率阈值时,才确定持有终端设备的用户在两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1,由于同时基于时域和频域特征进行计步分析,因此有利于降低计步时发生误判的概率,提高计步精度。 [0015] In the aspect of the present invention, the acceleration value acquired in real time a terminal device, determines maximum and minimum value of the acceleration values, the difference between adjacent maxima and minima of the acceleration threshold value, this when the determination is not a direct result of the comparison whether the user venue occurred, but continue to comprise two adjacent maxima of the above-described comparison maxima participating comprises two adjacent or above a minimum value comparison involvement minimal an acceleration value between the values ​​of frequency-domain transform, to obtain two adjacent maxima or minima corresponding to two adjacent frequencies in the walking time is further determined from the frequency domain, only a frequency greater than the preset walking frequency threshold only when the user holding the terminal device is determined within a time corresponding to one step in two two adjacent maxima or adjacent minima, plus a number of steps, since the pedometer simultaneously time domain and frequency domain features based analysis, and thus help to reduce the probability of miscarriage of justice occurs when the pedometer, counting steps to improve accuracy. 【附图说明】 BRIEF DESCRIPTION

[0016] 为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 [0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following prior art embodiments or drawings required for describing the embodiment will be used, a brief introduction, apparent in the following description of the drawings are Some embodiments of the present invention, those of ordinary skill in the art is concerned, without any creative effort, and may also obtain other drawings based on these drawings.

[0017] 图1为本发明一实施例提供的计步方法的流程示意图; [0017] FIG. 1 the flow meter provided in the method step a schematic view of an embodiment of the invention;

[0018] 图2为本发明另一实施例提供的计步方法的流程示意图; [0018] FIG. 2 is a schematic flow meter step process according to another embodiment of the invention provides a schematic diagram;

[0019] 图3为本发明又一实施例提供的计步方法的流程示意图; [0019] Figure 3 further pedometer according to an embodiment of the method a schematic flow chart of the present invention;

[0020] 图4为本发明一实施例提供的终端设备的结构示意图; [0020] FIG. 4 is a schematic configuration of the terminal apparatus according to an embodiment of the present invention;

[0021] 图5为本发明另一实施例提供的终端设备的结构示意图。 [0021] FIG. 5 is a schematic configuration of the terminal apparatus according to another embodiment of the present invention. 【具体实施方式】 【detailed description】

[0022]为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0022] In order that the invention object, technical solutions, and advantages of the embodiments more clearly, the following the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described the embodiment is an embodiment of the present invention is a part, but not all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, those of ordinary skill in the art to make all other embodiments without creative work obtained by, it falls within the scope of the present invention.

[0023]图1为本发明一实施例提供的计步方法的流程示意图。 [0023] FIG. 1 is a schematic flow diagram step counting method according to an embodiment of the present invention. 如图1所示,该方法包括: [0024] 101、实时获取终端设备的加速度值。 As shown in FIG 1, the method comprising: [0024] 101, the acceleration value acquired in real time a terminal device.

[0025] 本实施例的执行主体可以是任何内置有惯性传感器的终端设备,该终端设备通常被用户随身携带,以便通过该终端设备对用户进行计步。 Execution subject [0025] embodiment of the present embodiment may be any terminal device with a built-in inertia sensor, which is generally a user terminal device to carry, for counting steps of the user terminal device. 举例说明,终端设备可以是手机、 智能手表、计步器或iPad等等。 Way of example, the terminal device may be a mobile phone, smart watch, a pedometer or the like iPad. 终端设备内的惯性传感器可以是任何可以测量终端设备的加速度的器件,例如可以是加速度计。 Inertial sensors within the terminal device may be any device that can measure acceleration of the terminal device, for example, may be an accelerometer.

[0026] 具体的,终端设备内的惯性传感器会测量终端设备的运动信息,这里的运动信息主要是指终端设备的加速度值。 [0026] Specifically, the inertial sensor in the terminal apparatus measures the motion information of the terminal device, where the motion information value of the terminal mainly refers to the acceleration device. 终端设备内用于进行计步的部件,例如控制器,可以从惯性传感器实时获取终端设备的加速度值。 The terminal device for carrying out step counting means, for example a controller, a terminal device may acquire real-time acceleration value from the inertial sensor.

[0027] 102、确定上述加速度值中的极大值和极小值。 [0027] 102, determines the maximum and minimum values ​​of the acceleration values.

[0028] 在该步骤中,终端设备使用加速度值的绝对值来确定极大值和极小值。 [0028] In this step, the absolute value of the acceleration terminal device determines maximum and minimum values. 也就是说, 这里的极大值和极小值都是指加速度值的绝对值。 In other words, where the maximum and minimum values ​​refer to the absolute value of the acceleration value. 具体的,终端设备可以按照以下方式计算加速度值中的极大值和极小值,即如果ak-i>ak且ak+i>ak,则确定k时刻的加速度值是极小值;如果ai-i<ai且ai +1<ai,则确定1时刻的加速度值是极大值。 Specifically, the terminal device may calculate the maximum value and the minimum value of the acceleration values ​​in such a manner that if ak-i> ak and ak + i> ak, it is determined that the acceleration values ​​at time k is the minimum value; if ai -i <ai and ai +1 <ai, it is determined that the acceleration value is a maximum time. 其中,a表示加速度值的绝对值,a的下角标表示加速度值对应的时刻,举例说明,ak-ι是k-1时刻的加速度值,ak是k时刻的加速度值,31^是1-1时刻的加速度值,81+1是1 + 1时刻的加速度值,等等。 Wherein, a represents an absolute value of the acceleration value, a is the acceleration of the subscript denotes the value corresponding to the timing illustrated, ak-ι is an acceleration value of time k-1, ak is an acceleration value at time k, 1-1 ^ 31 time acceleration value, 1 + 81 + 1 is the value of an acceleration time, and the like.

[0029]值得说明的是,在步骤102中确定出的极大值和极小值可以是多个。 [0029] It should be noted that the determination in step 102 the maximum and minimum values ​​may be plural.

[0030] 103、当相邻极大值和极小值之差大于加速度阈值时,对包括该相邻极大值和极小值中的极大值的两个相邻极大值或包括该相邻极大值和极小值中的极小值的两个相邻极小值之间的加速度值进行频域变换,获得两个相邻极大值或两个相邻极小值对应时间内的步行频率。 [0030] 103, when the difference between adjacent maxima and minima values ​​is greater than the acceleration threshold value comprises a maximum of two adjacent maximum values ​​of the adjacent maxima and minima values ​​of the or comprises the minimum acceleration values ​​between adjacent values ​​of the adjacent minima maxima and minima values ​​of the two frequency domain transform, to obtain two adjacent maxima or adjacent minima corresponding to two times within walking frequency.

[0031] 在确定上述加速度值中的极大值和极小值之后,将相邻极大值和极小值之差与加速度阈值进行比较,根据比较结果初步判断持有终端设备的用户在该包括这里涉及的"相邻极大值和极小值"中的极大值的两个相邻极大值或包括这里涉及的"相邻极大值和极小值"中的极小值的两个相邻极小值对应时间内是否可能发生移步。 [0031] After determining the maximum value and the minimum value of the acceleration values, the difference between adjacent maxima and minima of the acceleration threshold according to the comparison results of the preliminary determination of the terminal device held by the user including maximum value "adjacent maximum and minimum values" involved here in the two adjacent minima or maxima comprising "adjacent maximum and minimum values" herein relates in venue may occur if the time corresponding to two adjacent minima. 该判断主要是从时域角度进行的初步判断。 This initial judgment is determined primarily from the perspective of the time domain.

[0032] 在此说明,包括上述"相邻极大值和极小值"中的极大值的两个相邻极大值是指上述"相邻极大值和极小值"中的极大值,以及与上述"相邻极大值和极小值"中的极大值相邻的另一个极大值。 [0032] In this description, including the above-described two maxima "adjacent maximum and minimum values" adjacent maximum value is above electrode "adjacent maximum and minimum values" in maximum value adjacent the other maximum value is greater, and the above-mentioned "adjacent maximum value and the minimum value" in the. 为便于描述,本实施例以下将包括上述"相邻极大值和极小值"中的极大值的两个相邻极大值,简称为两个相邻极大值。 For ease of description, the present embodiment comprises two maxima below the "adjacent maximum and minimum values" adjacent local maximum value, referred to as the two adjacent maxima.

[0033] 相应的,包括上述"相邻极大值和极小值"中的极小值的两个相邻极小值是指上述"相邻极大值和极小值"中的极小值,以及与上述"相邻极大值和极小值"中的极小值相邻的另一个极小值。 [0033] Accordingly, the two adjacent minimum value of the minimum value comprises a "adjacent maximum and minimum values" in the above refers to "adjacent maximum value and the minimum value" in the minimum another minimum value adjacent minimum values, and the above-mentioned "adjacent maximum value and the minimum value" in the. 为便于描述,本实施例以下将包括上述"相邻极大值和极小值"中的极小值的两个相邻极小值,简称为两个相邻极小值。 For ease of description, the present embodiment will include two minima adjacent the minimum value "adjacent maximum value and the minimum value" is simply referred to as two adjacent minima.

[0034] 举例说明,上述步骤102中的ai和ak是相邻的极大值和极小值,则将ai-ak与加速度阈值R进行比较,根据比较结果初步判断持有终端设备的用户在两个相邻极大值或两个相邻极小值对应时间内是否可能发生移步。 [0034] illustrative, and the above-described steps ai ak 102 is adjacent to the maximum and minimum value, the acceleration ai-ak with a threshold value R according to the comparison results of the preliminary determination of the terminal device held by the user two adjacent maxima or adjacent minima corresponding to two possible time whether the venue.

[0035]当判断出相邻极大值和极小值之差大于上述加速度阈值时,gpai-ak>R,说明持有终端设备的用户在两个相邻极大值或两个相邻极小值对应时间内可能发生移步;当判断出相邻极大值和极小值之差不大于上述加速度阈值时,即a^akSR,说明持有终端设备的用户在两个相邻极大值或两个相邻极小值对应时间内不可能发生移步。 [0035] When determining that the difference between adjacent maxima and minima values ​​is greater than the acceleration threshold value, gpai-ak> R, the user holds the terminal device described in the two neighboring maxima or two adjacent poles a small value corresponding to the venue and time possible; when it is determined that the difference between adjacent local maximum value and the minimum value of the acceleration is not greater than the threshold value, i.e., a ^ akSR, the user holds the terminal device described in the two adjacent maximum the value or values ​​corresponding to two adjacent minima venue time can not occur.

[0036] 当持有终端设备的用户在两个相邻极大值或两个相邻极小值对应时间内可能发生移步时,终端设备进一步根据加速度值的频域信息来从频域来判断持有终端设备的用户在上述两个相邻极大值或两个相邻极小值对应时间内是否会发生移步。 [0036] When the user holds the venue may occur in two adjacent terminal device maxima or minima corresponding to two adjacent time, the terminal apparatus is further from the frequency domain to frequency domain information in accordance with the acceleration values whether the venue will occur within time determination device held by the user terminal corresponding to the said two adjacent two neighboring maxima or minima. 具体的,终端设备将上述两个相邻极大值或两个相邻极小值之间的加速度值进行频域变换,获得上述两个相邻极大值或两个相邻极小值对应时间内的步行频率。 Specifically, the acceleration value between the terminal device the two adjacent maxima or adjacent minima two frequency domain transform, to obtain the above two adjacent maxima or adjacent minima corresponding to two walking frequencies in time. 步行频率是指对上述两个相邻极大值或两个相邻极小值之间的加速度值进行频域变换得到的频域里的频率。 Walking acceleration frequency is a value between the two adjacent maxima or adjacent minima two frequency domain transform of the frequency domain in the frequency.

[0037] 可选的,上述频域变换可以是离散傅里叶变换(Discrete Fourier Transform, DFT),也可以使用小波变换等其他频率提取信息,但不限于此。 [0037] Alternatively, in the frequency domain transform may be a discrete Fourier transform (Discrete Fourier Transform, DFT), other frequencies may be used wavelet transform to extract information, but is not limited thereto. 例如,可以根据公式 For example, according to the formula

Figure CN104089624BD00061

,对上述两个相邻极大值或两个相邻极小值之间的加速度值进行DFT。 , The acceleration values ​​between two adjacent maxima or adjacent minima for two DFT. 其中,a(n)表示由两个相邻极大值或两个相邻极小值之间的加速度值构成的序列,k表示步行频率,A( k)表示步行频率对应的幅值。 Wherein, a (n) represented by two adjacent maxima or acceleration values ​​between two sequences constituting a minimum value adjacent, k is walking frequency, A (k) represents a frequency corresponding to the magnitude of walk.

[0038] 在此说明,在该步骤中,可以使用两个相邻极大值,也可以使用两个相邻极小值。 [0038] In this description, in this step, two adjacent maximum values, may also be used two adjacent minima.

[0039] 上述两个相邻极大值对应时间是指两个极大值对应的时刻之间的时间;两个相邻极小值对应时间是指两个极小值对应的时刻之间的时间。 [0039] The values ​​correspond to two adjacent maximum time is the time between two maxima corresponding to the time; two adjacent minima corresponding to the time is the time between two minima corresponding time.

[0040] 104、如果上述两个相邻极大值或两个相邻极小值对应时间内的步行频率大于预设频率阈值,则确定持有上述终端设备的用户在上述两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1。 [0040] 104, if the above two adjacent maxima or minima corresponding to two adjacent frequencies in the walking time is greater than a predetermined frequency threshold value, it is determined that the user holds the terminal apparatus in the above-described two adjacent poles a large value corresponding to the minimum value or adjacent two time shifted by one step, the number of steps is incremented.

[0041 ]在获得两个相邻极大值或两个相邻极小值对应时间内的步行频率后,将该步行频率与预设频率阈值进行比较,如果该步行频率大于预设频率阈值,说明用户的动作幅度较大,应该是发生了移步,因此,确定持有终端设备的用户在上述两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1,实现对用户的计步。 After [0041] walking time frequency to obtain two adjacent maxima or adjacent minima corresponding to two, the walking frequency compared with a preset threshold frequency, if the frequency is greater than a preset walking frequency threshold, described a significant reduction action of the user, a venue should happen, therefore, is determined corresponding to the user terminal device held within one step in the above two adjacent maxima or adjacent minima two, the number of steps incremented by 1 to count the user's step.

[0042] 由上述分析可知,终端设备在获得加速度值后,确定加速度值中的极大值和极小值,将相邻极大值和极小值之差与加速度阈值进行比较,此时并不是直接根据比较结果确定用户是否发生移步,而只是作为初步判断;在相邻极大值和极小值之差大于加速度阈值时,进一步将包括上述参与比较的极大值的两个相邻极大值或包括上述参与比较的极小值的两个相邻极小值之间的加速度值进行频域变换,获得两个相邻极大值或两个相邻极小值对应时间内的步行频率,进一步从频域进行判断,只有在步行频率大于预设频率阈值时,才确定持有终端设备的用户在相应时间内发生移步,同时将步数加1。 [0042] apparent from the above analysis, the terminal device after obtaining the acceleration values, determining the maximum value and the minimum value of the acceleration values, the difference between adjacent maxima and minima of the acceleration threshold value, and at this time not determined directly according to the comparison result whether the user venue occurred, but merely as a preliminary judgment; when the difference between adjacent maxima and minima is greater than the acceleration threshold value, further comprising the comparison involved in the above two adjacent maxima includes an acceleration value maximum or minimum value between adjacent two of said minimum value comparison participation frequency domain transformation is performed to obtain the two neighboring maxima or minima corresponding to two adjacent time walking frequency is further determined from the frequency domain, only a frequency greater than the preset walking frequency threshold value, it determines the venue the user terminal device holding occurs during that time, while the number of steps is incremented. 由于同时基于时域和频域特征进行计步分析,因此,本实施例有利于降低计步时发生误判的概率,提高了计步精度。 Since the pedometer simultaneously and frequency domain analysis based on characteristics, therefore, the present embodiment facilitates reducing the probability of false positive occurs when a pedometer, the pedometer improved accuracy.

[0043] 图2为本发明另一实施例提供的计步方法的流程示意图。 Schematic flow chart of the pedometer according to the method provided in [0043] FIG 2 a further embodiment of the present invention. 如图2所示,该方法包括: 2, the method comprising:

[0044] 201、实时获取终端设备的加速度值。 [0044] 201, the acceleration value acquired in real time a terminal device.

[0045] 202、确定上述加速度值中的极大值和极小值。 [0045] 202, determines the maximum and minimum values ​​of the acceleration values.

[0046] 203、将相邻极大值和极小值之差与加速度阈值进行比较,以判断相邻极大值和极小值之差是否大于加速度阈值,如果是,则执行步骤204;如果否,则返回执行步骤201及后续其他步骤。 [0046] 203, the difference between the maximum and the adjacent minimum values ​​of the acceleration threshold value to determine whether the difference between adjacent maxima and minima values ​​is greater than the acceleration threshold value, if yes, step 204 is performed; if NO, step 201 and other subsequent steps is returned.

[0047] 204、对包括上述相邻极大值和极小值中的极大值的两个相邻极大值或包括上述相邻极大值和极小值中的极小值的两个相邻极小值之间的加速度值进行频域变换,获得两个相邻极大值或两个相邻极小值对应时间内的步行频率。 [0047] 204, both comprising two adjacent maxima or minima of the adjacent maximum and minimum values ​​comprises values ​​of the adjacent maximum value and the minimum maximum values ​​of acceleration frequency domain transform value between a minimum value adjacent to obtain two adjacent maxima or walking two frequencies in adjacent time corresponding to the minimum value.

[0048] 205、将上述两个相邻极大值或两个相邻极小值对应时间内的步行频率与预设频率阈值进行比较,以判断该步行频率是否大于预设频域阈值,如果是,则执行步骤206,如果否,则执行步骤207。 [0048] 205, the above-described two neighboring maxima or minima corresponding to adjacent two walk frequency within a predetermined frequency threshold time is compared to determine whether the frequency is greater than the preset frequency domain foot threshold, if yes, perform step 206, and if not, step 207 is executed.

[0049] 206、确定持有上述终端设备的用户在上述两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1,并返回执行步骤201及后续其他步骤。 [0049] 206, determines that the user holds the terminal device corresponding to the above two adjacent maxima or adjacent minima two time shifted by one step, the number of steps incremented by 1, and returns to step 201 and other subsequent step.

[0050] 207、确定用户在上述两个相邻极大值或两个相邻极小值对应时间内没有移动,并返回执行步骤201及后续其他步骤。 [0050] 207, the mobile determines that the user is not within the time corresponding to the above two adjacent maxima or adjacent minima two, and returns to step 201 and other subsequent steps.

[0051]上述步骤201-步骤206可参见图1所示实施例中的有关描述,在此不再赘述。 [0051] The above steps 201- see step 206 shown in FIG. 1 for a description of embodiments of the embodiment, which is not repeated herein.

[0052]在本实施例中,在获得两个相邻极大值或两个相邻极小值对应时间内的步行频率后,将该步行频率与预设频率阈值进行比较。 After [0052] In the present embodiment, two walking obtaining minima corresponding to two temporally adjacent maxima or adjacent frequencies, the walking frequency preset frequency threshold. 如果该步行频率大于预设频率阈值,说明用户的动作幅度较大,应该是发生了移步,因此,确定持有终端设备的用户在上述两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1,实现对用户的计步。 If the frequency is greater than a preset walking frequency threshold, indicating a large range of motion of the user, should be the venue occurred, therefore, the terminal apparatus determines a user holding said two adjacent two neighboring maxima or minima time corresponding to the value by one step, the number of steps incremented by 1 to count the user's step. 如果该步行频率不大于预设频率阈值,说明用户的动作幅度较小,不会发生移步,因此,确定持有终端设备的用户在上述两个相邻极大值或两个相邻极小值对应时间内没有移动,相应的,步数也就不需要加1。 If the frequency is not greater than the preset walking frequency threshold, the user's action described a lesser extent, the venue does not occur, therefore, the terminal apparatus determines a user holding said two adjacent two neighboring maxima or minima It does not move within the corresponding time value, and correspondingly, there is no need to add a number of steps.

[0053] 由上述分析可知,在本实施例中,只有从时域和频域的角度都判断出用户发生移步时,才确定用户真的发生移步,将步数加1;反之,只有时域和频域中有一个判断出用户没有发生移步,则确定用户没有发生移步,步数不加1,这种同时基于时域和频域特征进行计步分析的方式有利于降低计步时发生误判的概率,提高计步精度。 [0053] From the above analysis, in the present embodiment, only from the perspective of the time domain and frequency domain are determined that the user occurs venue, the venue was determined that the user does occur, the number of steps incremented by 1; otherwise, only the time and frequency domains is determined that a user has not occurred venue, the venue is determined that the user has not occurred, steps 1 without, at the same time that the pedometer and frequency domain analysis feature-based manner helps reduce the count the probability of miscarriage of justice occurs when the step to improve the accuracy of the pedometer.

[0054] 在上述各实施例的基础上,在将相邻极大值和极小值之差与加速度阈值进行比较之后,计步方法还包括:计算第一时间内的加速度值的方差,将上述加速度阈值更新为该方差。 [0054] On the basis of the above embodiments, after comparing the difference between the maximum and minimum values ​​of the adjacent acceleration threshold, step counting method further comprises: calculating the variance of the acceleration values ​​within a first time, the acceleration threshold value is updated to the variance. 其中,第一时间是指从第一时间点到当前时刻且长度等于第一指定时长的时间。 Wherein the first time is the first point in time to the current time point and a length equal to the first specified length of time. 例如, 第一时间可以是当前时刻之前N秒,N是自然数。 For example, the first time may be N seconds before the current time, N is a natural number. 例如,可以根据 For example, according to

Figure CN104089624BD00081
Figure CN104089624BD00082

计算第一时间内的加速度值的方差。 Calculating the variance of the acceleration value within the first time. 其中,δ表示方差;if表示第一时间内的平均加速度值, I ai表示第一时间内的第i个加速度值。 Wherein, δ represents the variance; if represents an average acceleration value in a first time, I ai represents the i-th acceleration value in a first time.

[0055] 上述步骤的目的主要是利用过去一段时间内的加速度值对加速度阈值进行更新, 以使加速度阈值动态变化,更加适应用户当前的运动状态,进而提高使用加速度阈值做出的比较结果的精度,为提高计步精度做出贡献。 [0055] The purpose of the steps described above mainly for the acceleration threshold value is updated using the acceleration values ​​in the last period of time, so that the dynamic change in the acceleration threshold value, better adapted to the current movement state of the user, thereby improving the accuracy of using the comparison results of the acceleration threshold is made of In order to improve the accuracy of counting steps to contribute.

[0056] 在此说明,更新后的加速度阈值将会用于下一次的计步过程中,这里所说的计步过程是指执行图1或图2所示实施例中的步骤的过程。 [0056] In this description, the acceleration threshold will be updated for the next step of the process of the count, here a count step process refers to the process steps in the implementation of the embodiment shown in FIG. 1 or FIG 2.

[0057] 图3为本发明又一实施例提供的计步方法的流程示意图。 [0057] Fig 3 a schematic flow meter further step process according to an embodiment of the present invention. 本实施例方法可基于图1 或图2所示实施例实现,以基于图1所示实施例为例,则如图3所示,该方法在步骤104之后还包括: The present embodiment may be a method based on the embodiment shown in FIG. 1 or FIG. 2 embodiment implemented, based on the embodiment shown in FIG. 1 as an example, is shown in Figure 3, the method further comprises, after the step 104:

[0058] 105、对第二时间内的加速度值进行频域变换,获得第二时间内的步行频率,第二时间是从第二时间点到当前时刻且长度等于第二指定时长的时间。 [0058] 105, a second acceleration value in the time frequency domain transform, to obtain a second frequency within a walking time, the second time is a long time from the current time to the second time point and a length equal to the second specified time.

[0059]例如,第二时间可以是当前时刻之前财少,N是自然数。 [0059] For example, the second time may be a little time before the current fiscal, N being a natural number.

[0000] 可选的,上述频域变换可以是DFT,但不限于此。 [0000] Alternatively, in the frequency domain the DFT transform may be, but is not limited thereto. 例如,可以根据公式 For example, according to the formula

Figure CN104089624BD00083

对第二时间内的加速度值进行DFT。 A second acceleration value in the time DFT. 其中,b (η)表示由第二时间内的加速度值构成的序列,k表示步行频率,B(k)表示步行频率对应的幅值。 Wherein, b (η) constituting the acceleration value represented by the sequence in the second time, k represents a frequency walking, B (k) represents a frequency corresponding to the magnitude of walk.

[0061] 106、根据第二时间内的步行频率计算用户当前的步长。 [0061] 106. The frequency calculating walking time of the current user in the second step.

[0062] 具体的,在获得第二时间内的步行频率后,根据第二时间内的步行频率确定人走路时的频率分量,根据该频率分量确定用户当前的步长。 [0062] Specifically, after obtaining the walking frequency within a second time, when the frequency component is determined according to the walking person walking frequency within a second time, the user determines a current step size based on the frequency component.

[0063]步骤106的一种优选实现方式可以为:根据公式A = af+b,计算用户当前的步长。 One kind of [0063] preferred implementation of step 106 may be: according to the formula A = af + b, a current user of the computing step. 其中,λ为用户当前的步长;f为第二时间内的步行频率;a、b为经验值,例如a可以取0.63,b可以取0.7。 Wherein, [lambda] is the step size of the current user; walk frequency F is within a second time; a, B is an empirical value, for example, can take a 0.63, b may take 0.7.

[0064]在本实施例中,除了计算出用户的步数之外,进一步计算用户的步长,在提高计步精度的同时,有利于向用户提供更加完善的计步信息。 [0064] In the present embodiment, in addition to calculate the number of steps of the user outside the user's computing step further, while improving the accuracy of counting steps, advantageously provides more complete information to the user of the pedometer.

[0065]需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。 [0065] Incidentally, the foregoing embodiments of the methods for, for ease of description, it is described as a series combination of actions, those skilled in the art should understand that the present invention is not described in the operation sequence It limited since according to the present invention, some steps may be performed simultaneously or in other sequences. 其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。 Secondly, those skilled in the art should also understand that the embodiments are described in the specification are exemplary embodiments, actions and modules involved are not necessarily required by the present invention.

[0066] 在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。 [0066] In the above embodiment, the description of the various embodiments have different emphases, certain embodiments not detailed in part, be related descriptions in other embodiments.

[0067] 图4为本发明一实施例提供的终端设备的结构示意图。 [0067] FIG. 4 is a schematic configuration of the terminal apparatus according to an embodiment of the present invention. 如图4所示,该终端设备包括:第一获取模块41、第一确定模块42、第二获取模块43和第二确定模块44。 4, the terminal apparatus comprising: a first acquisition module 41, a first determining module 42, a second acquisition module 43 and the second determining module 44.

[0068] 第一获取模块41,用于实时获取终端设备的加速度值。 [0068] The first acquisition module 41, an acceleration value acquired in real time a terminal device. 优选的,终端设备还包括惯性传感器45。 Preferably, the terminal device 45 further includes an inertial sensor. 第一获取模块41可以与惯性传感器45连接,利用惯性传感器45实时获取终端设备的加速度值。 A first acquisition module 41 may be connected to the inertial sensor 45, the acceleration value acquired in real time the terminal device 45 of the inertial sensor.

[0069]第一确定模块42,与第一获取模块41连接,用于确定第一获取模块41获取的加速度值中的极大值和极小值。 [0069] The first determining module 42, 41 is connected to the first acquiring module, for acquiring a first determining the maximum and minimum value of the acceleration value acquired in module 41.

[0070] 第二获取模块43,与第一确定模块42连接,用于在第一确定模块42确定的相邻极大值和极小值之差大于加速度阈值时,对包括所述相邻极大值和极小值中的极大值的两个相邻极大值或包括所述相邻极大值和极小值中的极小值的两个相邻极小值之间的加速度值进行频域变换,获得所述两个相邻极大值或两个相邻极小值对应时间内的步行频率。 [0070] The second acquisition module 43, connected to the first determining module 42, in a first determining module 42 determines the difference between adjacent maxima and minima values ​​is greater than the acceleration threshold value, including the adjacent poles the minimum acceleration values ​​between two adjacent maxima or minima comprising two maxima and minima in the adjacent neighboring maxima and minima of a large value of frequency-domain transform to obtain a frequency within the walking two adjacent maxima or adjacent minima corresponding to two times.

[0071] 第二确定模块44,与第二获取模块43连接,用于在第二获取模块43获取的两个相邻极大值或两个相邻极小值对应时间内的步行频率大于预设频率阈值时,确定持有终端设备的用户在所述两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1。 [0071] The second determination module 44, 43 is connected with a second acquiring module, for acquiring the second of the two adjacent maximum value obtaining module 43, or two adjacent minima corresponding to walking frequency greater than a predetermined time when the set frequency threshold value, determines that the user holds the terminal equipment of the two neighboring maxima or minima corresponding to the two-step movement of adjacent time, the number of steps is incremented. [0072]在一可选实施方式中,第二确定模块44还可用于在第二获取模块43获取的两个相邻极大值或两个相邻极小值对应时间内的步行频率不大于预设频率阈值时,确定用户在所述两个相邻极大值或两个相邻极小值对应时间内没有移动,并触发第一获取模块41及其他模块继续执行计步操作。 [0072] In an alternative embodiment, the second determination module 44 may also be used in two adjacent maximum values ​​of a second acquisition module 43 acquires the minimum value or adjacent two of the time corresponding to walking frequency no greater than when a predetermined frequency threshold, determining that the user in the two adjacent two neighboring maxima or no movement within the time corresponding to the minimum value, and trigger the first acquisition module 41 and other modules to continue operation of the pedometer.

[0073]在一可选实施方式中,如图5所示,所述终端设备还包括:第一计算模块46和更新模块47。 [0073] In an alternative embodiment, shown in Figure 5, the terminal apparatus further comprises: a first calculating module 46 and the module 47 updates.

[0074]第一计算模块46,用于计算第一时间内的加速度值的方差,第一时间是从第一时间点到当前时刻且长度等于第一指定时长的时间。 [0074] The first calculation module 46, an acceleration variance values ​​within a first time for calculating a first time point from the first time to the current time point and a length equal to the first length of time specified.

[0075]更新模块47,与第一计算模块46连接,用于将加速度阈值更新为第一计算模块46 计算出的方差。 [0075] The updating module 47, connected to the first calculating module 46, configured to update a first acceleration threshold calculation module 46 calculates the variance. 更新模块47还与第二获取模块43连接,用于向第二获取模块43提供更新后的加速度阈值,以便第二获取模块43在下一次计步操作中使用。 Updating module 47 and the second acquisition module 43 is also connected to a second acceleration threshold after obtaining module 43 provides updates to the second acquisition module 43 is the next step used in the operation count.

[0076]进一步,如图5所示,该终端设备还可以包括:第三获取模块48和第二计算模块49。 [0076] Further, as shown in Figure 5, the terminal apparatus may further comprise: a third acquisition module 48 and the second computing module 49. [0077]第三获取模块48,用于对第二时间内的加速度值进行频域变换,获得第二时间内的步行频率,第二时间是从第二时间点到当前时刻且长度等于第二指定时长的时间。 [0077] The third acquisition module 48, a second acceleration value in the time frequency domain transform, to obtain a second frequency within a walking time, the second time from the second time point to the current time point and a length equal to the second when the designated long time.

[0078]第二计算模块49,与第三获取模块48连接,用于根据第三获取模块48获取的第二时间内的步行频率计算用户当前的步长。 [0078] The second calculation module 49, connected to the third acquisition module 48, for computing a third frequency within a walking acquiring module 48 acquires a second time the user of the current step size.

[0079]例如,第二计算模块49具体可用于根据公式A = af+b,计算用户当前的步长;其中, λ为用户当前的步长;f为第二时间内的步行频率;a、b为经验值。 [0079] For example, the second calculating module 49 may be specifically configured according to the formula A = af + b, a current user of the computing step; wherein, [lambda] is the step size of the current user; walk frequency F is within a second time; a, b is an empirical value.

[0080] 本实施例提供的终端设备,在获得加速度值后,确定加速度值中的极大值和极小值,将相邻极大值和极小值之差与加速度阈值进行比较,此时并不是直接根据比较结果确定用户是否发生移步,而只是作为初步判断;在相邻极大值和极小值之差大于加速度阈值时,进一步将包括上述参与比较的极大值的两个相邻极大值或包括上述参与比较的极小值的两个相邻极小值之间的加速度值进行频域变换,获得两个相邻极大值或两个相邻极小值对应时间内的步行频率,进一步从频域进行判断,只有在步行频率大于预设频率阈值时,才确定持有终端设备的用户在相应时间内发生移步,同时将步数加1。 [0080] the terminal device provided in the present embodiment, after obtaining the acceleration values, determining maximum and minimum value of the acceleration values, the difference between the maximum value and the minimum neighboring value is compared with an acceleration threshold value, then not determined directly according to the comparison result whether the user venue occurred, but merely as a preliminary judgment; when the difference between the maximum and minimum values ​​is greater than the acceleration threshold value adjacent, further comprising comparing two phases involved in the above-described maxima o includes an acceleration value or a maximum value between two adjacent minima minimum value comparison is involved in the frequency domain transform to obtain the time corresponding to two adjacent maxima or adjacent minima two when walking frequency is further determined from the frequency domain, only a frequency greater than the preset walking frequency threshold value, it determines the venue the user terminal device holding occurs during that time, while the number of steps is incremented. 由于本实施例提供的终端设备同时基于时域和频域特征进行计步分析,因此,有利于降低计步时发生误判的概率, 提高计步精度。 Since the terminal device provided in the present embodiment simultaneously pedometer and frequency domain analysis based on feature, therefore, help to reduce the probability of false positive occurs when a pedometer, the pedometer to improve accuracy.

[0081] 所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统, 装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 [0081] Those skilled in the art may clearly understand that, for convenience and brevity of description, specific working process of the foregoing system, apparatus, and unit may refer to the corresponding process in the foregoing method embodiments, not described herein again .

[0082] 在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。 [0082] The present invention provides several embodiments, it should be understood that the system, apparatus and method disclosed may be implemented in other manners. 例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。 For example, the described apparatus embodiments are merely illustrative of, for example, the unit division is merely logical function division, there may be other division in actual implementation, for example, a plurality of units or components may be combined or It can be integrated into another system, or some features may be ignored or not performed. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be through some interface, device, or indirect coupling or communication connection unit, may be electrical, mechanical, or other forms.

[0083]所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0083] The unit described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in one place, or may be distributed to a plurality of networks unit. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0084] 另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 [0084] Additionally, functional units may be integrated in various embodiments of the present invention in a processing unit, separate units may be physically present, may be two or more units are integrated into one unit. 上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。 The integrated unit may be implemented in the form of hardware, software functional units in hardware may also be implemented.

[0085] 上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。 [0085] The integrated unit implemented in the form of a software functional unit described above may be stored in a computer-readable storage medium. 上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。 In a storage medium and includes several instructions that enable a computer device (may be a personal computer, a server, or network device) or (processor) to perform various embodiments of the present invention, the method of storing the software functional unit some of the steps. 而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory ,R0M)、随机存取存储器(Random Access Memory ,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium comprising: a variety of medium U disk, mobile hard disk, a read-only memory (Read-Only Memory, R0M), a random access memory (Random Access Memory, RAM), magnetic disk, or an optical disc capable of storing program code .

[0086] 最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换; 而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 [0086] Finally, it should be noted that: the above embodiments are intended to illustrate the present invention, rather than limiting;. Although the present invention has been described in detail embodiments, those of ordinary skill in the art should be understood: may still be made to the technical solutions described in each embodiment of the modified or part of the technical features equivalents; as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from the technical solutions of the embodiments of the present invention and scope.

Claims (10)

  1. 1. 一种计步方法,其特征在于,包括: 实时获取终端设备的加速度值; 确定所述加速度值中的极大值和极小值; 当相邻极大值和极小值之差大于加速度阈值时,对包括所述相邻极大值和极小值中的极大值的两个相邻极大值或包括所述相邻极大值和极小值中的极小值的两个相邻极小值之间的加速度值进行频域变换,获得所述两个相邻极大值或两个相邻极小值对应时间内的步行频率; 如果所述两个相邻极大值或两个相邻极小值对应时间内的步行频率大于预设频率阈值,则确定持有所述终端设备的用户在所述两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1。 A pedometer method comprising: acquiring acceleration values ​​in real time a terminal device; determining maximum and minimum values ​​of the acceleration values; when the difference between adjacent maxima and minima values ​​is greater than when the acceleration threshold, comprising two pairs of two adjacent maximum values ​​of said maximum value of maximum and minimum values ​​of adjacent or neighboring comprises the minimum value of the maximum and minimum values ​​of a minimum value of the acceleration value between adjacent frequency domain transform, a frequency within the walking two neighboring maxima or minima corresponding to the two adjacent time obtained; if the two adjacent maximum walking in the frequency value corresponding to the minimum value or adjacent two times greater than a predetermined frequency threshold, determining that the user of the terminal device held in the two neighboring maxima or minima corresponding to adjacent two time moving step, the step number is incremented.
  2. 2. 根据权利要求1所述的方法,其特征在于,还包括: 如果所述两个相邻极大值或两个相邻极小值对应时间内的步行频率不大于预设频率阈值,则确定所述用户在所述两个相邻极大值或两个相邻极小值对应时间内没有移动。 2. The method according to claim 1, characterized in that, further comprising: if the two adjacent frequencies within walking two neighboring maxima or minima corresponding to the time is not greater than a predetermined frequency threshold value, determining that the user of the two adjacent maxima or adjacent two minimum no movement within the corresponding time.
  3. 3. 根据权利要求1所述的方法,其特征在于,还包括: 计算第一时间内的加速度值的方差,将所述加速度阈值更新为所述方差,所述第一时间是从第一时间点到当前时刻且长度等于第一指定时长的时间。 3. The method according to claim 1, characterized in that, further comprising: calculating the variance of the acceleration values ​​in a first time, the acceleration threshold value is updated to the variance, the first time from a first time point to the current time point and a length equal to the first length of time specified.
  4. 4. 根据权利要求1-3任一项所述的方法,其特征在于,所述确定持有所述终端设备的用户在所述两个相邻极大值或两个相邻极小值对应时间内移动一步之后,还包括: 对第二时间内的加速度值进行频域变换,获得所述第二时间内的步行频率,根据所述第二时间内的步行频率计算所述用户当前的步长,所述第二时间是从第二时间点到当前时刻且长度等于第二指定时长的时间。 4. The method according to any one of claims 1-3, wherein the determining of the user terminal device held in the two neighboring maxima or minima corresponding to adjacent two after the time shifting step, further comprising: a second acceleration value in the time frequency domain transform to obtain a frequency within the second walking time, calculated according to a frequency within the walking time of the second step of the current user length, the second time from the second time point to the current time point and a length equal to the length of the second designated time.
  5. 5. 根据权利要求4所述的方法,其特征在于,所述根据所述第二时间内的步行频率计算所述用户当前的步长,包括: 根据公式X = af+b,计算所述用户当前的步长; 其中,λ为所述用户当前的步长; f为所述第二时间内的步行频率; a、b为经验值。 The method as claimed in claim 4, wherein the calculating step of the user according to the current walking frequency within the second time, comprising: according to the formula X = af + b, calculates the user the current step size; wherein, λ is the step size of the current user; walk frequency F is within the second time; a, b is an empirical value.
  6. 6. -种终端设备,其特征在于,包括: 第一获取模块,用于实时获取所述终端设备的加速度值; 第一确定模块,用于确定所述加速度值中的极大值和极小值; 第二获取模块,用于在相邻极大值和极小值之差大于加速度阈值时,对包括所述相邻极大值和极小值中的极大值的两个相邻极大值或包括所述相邻极大值和极小值中的极小值的两个相邻极小值之间的加速度值进行频域变换,获得所述两个相邻极大值或两个相邻极小值对应时间内的步行频率; 第二确定模块,用于在所述两个相邻极大值或两个相邻极小值对应时间内的步行频率大于预设频率阈值时,确定持有所述终端设备的用户在所述两个相邻极大值或两个相邻极小值对应时间内移动一步,将步数加1。 6. - type of terminal equipment, characterized by comprising: a first acquiring module, for acquiring the acceleration values ​​of the real terminal device; a first determining module, for determining the maximum and minimum acceleration values value; a second acquiring module, configured to, when the difference between adjacent maxima and minima is greater than the acceleration threshold values, including said two adjacent maxima adjacent maxima and minima values ​​pole It comprises two large value or a minimum value in the maximum and minimum values ​​of the acceleration value between the adjacent minimum values ​​of the adjacent frequency domain transform, to obtain the two neighboring maxima or two second determination means for the two frequency within walking two adjacent maxima or adjacent minima corresponding time frequency greater than a preset threshold value; minimum value corresponding to the adjacent frequency in the walking time determining user holding the terminal device of the two adjacent maxima or adjacent minima corresponding to two time shifted by one step, the number of steps is incremented.
  7. 7. 根据权利要求6所述的终端设备,其特征在于,所述第二确定模块还用于在所述两个相邻极大值或两个相邻极小值对应时间内的步行频率不大于预设频率阈值时,确定所述用户在所述两个相邻极大值或两个相邻极小值对应时间内没有移动。 The terminal apparatus according to claim 6, wherein said second module is further for determining the two adjacent maxima or two adjacent frequencies in the walking time does not correspond to the minimum value when the frequency is greater than a predetermined threshold value, determining that the user of the two adjacent maxima or adjacent two minimum no movement within the corresponding time.
  8. 8. 根据权利要求6所述的终端设备,其特征在于,还包括: 第一计算模块,用于计算第一时间内的加速度值的方差,所述第一时间是从第一时间点到当前时刻且长度等于第一指定时长的时间; 更新模块,用于将所述加速度阈值更新为所述方差。 8. The terminal device according to claim 6, characterized in that, further comprising: a first calculation module, the variance of the acceleration values ​​used for calculating a first time within the first time from a first time point to the current and the length of time equal to the first specified length of time; updating module, for updating the threshold value of the acceleration variance.
  9. 9. 根据权利要求6-8任一项所述的终端设备,其特征在于,还包括: 第三获取模块,用于对第二时间内的加速度值进行频域变换,获得所述第二时间内的步行频率,所述第二时间是从第二时间点到当前时刻且长度等于第二指定时长的时间; 第二计算模块,用于根据所述第二时间内的步行频率计算所述用户当前的步长。 9. A terminal apparatus according to claim any one of claims 6-8, characterized in that, further comprising: a third acquisition module, a second acceleration value in the time frequency domain transform, to obtain the second time walking frequencies within, the second time from the second time point to the current time point and a length equal to a duration of a second specified time; second calculation module for calculating according to a frequency within the walking time said second user the current step.
  10. 10. 根据权利要求9所述的终端设备,其特征在于,所述第二计算模块具体用于根据公式A = af+b,计算所述用户当前的步长; 其中,λ为所述用户当前的步长; f为所述第二时间内的步行频率; a、b为经验值。 The terminal apparatus according to claim 9, wherein the second calculation module is configured according to the formula A = af + b, a current user of the computing step; wherein, [lambda] is the current user step size; F frequency within the walking the second time; a, b is an empirical value.
CN 201410344625 2014-07-18 2014-07-18 A method and a terminal device pedometer CN104089624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410344625 CN104089624B (en) 2014-07-18 2014-07-18 A method and a terminal device pedometer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410344625 CN104089624B (en) 2014-07-18 2014-07-18 A method and a terminal device pedometer

Publications (2)

Publication Number Publication Date
CN104089624A true CN104089624A (en) 2014-10-08
CN104089624B true CN104089624B (en) 2016-11-09

Family

ID=51637362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410344625 CN104089624B (en) 2014-07-18 2014-07-18 A method and a terminal device pedometer

Country Status (1)

Country Link
CN (1) CN104089624B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104596537B (en) * 2015-02-02 2017-12-29 林联华 The method of one kind pedometer
CN105698815B (en) * 2016-03-24 2018-07-27 广东欧珀移动通信有限公司 The method of adjustment data and a step counting means
CN105953814A (en) * 2016-06-21 2016-09-21 广东欧珀移动通信有限公司 Step counting method, step counting device and mobile terminal

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009266060A (en) * 2008-04-28 2009-11-12 Aichi Micro Intelligent Corp Pedometer
CN102087109A (en) * 2009-12-04 2011-06-08 财团法人资讯工业策进会 System, device and method for estimating position
CN102282575A (en) * 2009-01-19 2011-12-14 西铁城控股株式会社 Pedometer
CN102297701A (en) * 2010-06-22 2011-12-28 雅马哈株式会社 Pedometer
CN103076619A (en) * 2012-12-27 2013-05-01 山东大学 System and method for performing indoor and outdoor 3D (Three-Dimensional) seamless positioning and gesture measuring on fire man
CN103344249A (en) * 2013-06-17 2013-10-09 中国人民解放军总参谋部第六十一研究所 Step counting method based on short-time spectral analysis of inertial sensor
CN103411607A (en) * 2013-08-30 2013-11-27 华中师范大学 Method for pedestrian step size estimation and dead reckoning
CN103591959A (en) * 2013-09-28 2014-02-19 曹元� Positioning method of indoor personnel
CN103727959A (en) * 2013-12-31 2014-04-16 歌尔声学股份有限公司 Step counting method and step counting device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7610813B2 (en) * 2006-09-29 2009-11-03 Intel Corporation Method and apparatus for a self-powered RFID-readable pedometer

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009266060A (en) * 2008-04-28 2009-11-12 Aichi Micro Intelligent Corp Pedometer
CN102282575A (en) * 2009-01-19 2011-12-14 西铁城控股株式会社 Pedometer
CN102087109A (en) * 2009-12-04 2011-06-08 财团法人资讯工业策进会 System, device and method for estimating position
CN102297701A (en) * 2010-06-22 2011-12-28 雅马哈株式会社 Pedometer
CN103076619A (en) * 2012-12-27 2013-05-01 山东大学 System and method for performing indoor and outdoor 3D (Three-Dimensional) seamless positioning and gesture measuring on fire man
CN103344249A (en) * 2013-06-17 2013-10-09 中国人民解放军总参谋部第六十一研究所 Step counting method based on short-time spectral analysis of inertial sensor
CN103411607A (en) * 2013-08-30 2013-11-27 华中师范大学 Method for pedestrian step size estimation and dead reckoning
CN103591959A (en) * 2013-09-28 2014-02-19 曹元� Positioning method of indoor personnel
CN103727959A (en) * 2013-12-31 2014-04-16 歌尔声学股份有限公司 Step counting method and step counting device

Also Published As

Publication number Publication date Type
CN104089624A (en) 2014-10-08 application

Similar Documents

Publication Publication Date Title
CN102184549A (en) Motion parameter determination method and device and motion auxiliary equipment
JP2006228061A (en) Face tracing program and face tracing method
CN103530543A (en) Behavior characteristic based user recognition method and system
CN103079013A (en) Application operation method and device of mobile terminal and mobile terminal
CN103699795A (en) Exercise behavior identification method and device and exercise intensity monitoring system
CN103402256A (en) Indoor positioning method based on WiFi (Wireless Fidelity) fingerprints
Kjærgaard et al. Unsupervised power profiling for mobile devices
US20120154117A1 (en) Supplementing biometric identification with device identification
CN103399632A (en) Gesture control method and mobile terminal
CN103345627A (en) Action recognition method and device
CN102509088A (en) Hand motion detecting method, hand motion detecting device and human-computer interaction system
CN105184325A (en) Human body action recognition method and mobile intelligent terminal
US20140044279A1 (en) Multi-microphone audio source separation based on combined statistical angle distributions
CN104197952A (en) User walk step counting method and device and mobile terminal
CN103914518A (en) Clustering method and clustering device
JP2012203736A (en) Electronic device, control method and control program
CN104197935A (en) Indoor localization method based on mobile intelligent terminal
US20150193005A1 (en) User-directed personal information assistant
US9576179B2 (en) User authentication method and apparatus based on fingerprint and electrocardiogram (ECG) signal
WO2014153727A1 (en) Signal processing to extract a pedestrian&#39;s moving direction
JP2011156132A (en) Mode identification device, mode identification method, and program
CN103083025A (en) Gait Analysis Device
CN102279037A (en) Method and apparatus for weighing of live animals
CN103908259A (en) Intelligent wearable device and human motion monitoring and recognition method
CN104731307A (en) Somatic action identifying method and man-machine interaction device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model