CN105698815A - Method and device for adjusting pedometer data - Google Patents
Method and device for adjusting pedometer data Download PDFInfo
- Publication number
- CN105698815A CN105698815A CN201610174078.4A CN201610174078A CN105698815A CN 105698815 A CN105698815 A CN 105698815A CN 201610174078 A CN201610174078 A CN 201610174078A CN 105698815 A CN105698815 A CN 105698815A
- Authority
- CN
- China
- Prior art keywords
- detection threshold
- preset
- acceleration
- gait detection
- absolute value
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000001514 detection method Methods 0.000 claims abstract description 170
- 230000001133 acceleration Effects 0.000 claims abstract description 159
- 230000005021 gait Effects 0.000 claims abstract description 158
- 230000001105 regulatory effect Effects 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C22/00—Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
- G01C22/006—Pedometers
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
Description
技术领域technical field
本发明涉及终端技术领域,特别是涉及一种计步数据的调节方法及装置。The invention relates to the technical field of terminals, in particular to a method and device for adjusting step counting data.
背景技术Background technique
随着终端的不断发展,基于终端的运动应用程序越来越多,提高了用户运动的乐趣。With the continuous development of terminals, there are more and more terminal-based sports applications, which improves the fun of sports for users.
比如以步行检测软件为例,通过检测手机的抖动量判断用户是否在步行,以统计用户的步行数,具体当通过计步器检测手机的抖动量,如果手机的抖动量超过一定阈值时,终端判定用户在走路,否则判定用户没有在走路。但是,目前步行检测软件统计步行的阀值都采用固定值,也即采用同一个判断标准。由于每个人的身体状况都不一样,以及运动习惯不一样,走路步伐的轻重也有差别,使得触发终端的抖动量大小不同。比如有的人走路比较快,那么计步器检测到的抖动量比较大,有的人走路比较慢,则计步器检测到的抖动量会比较小,可见,采用这种固定阈值的计步方式容易漏计步数,导致计数不准确。For example, take the walking detection software as an example. It judges whether the user is walking by detecting the shaking of the mobile phone to count the number of steps the user has taken. Specifically, when the shaking of the mobile phone is detected by the pedometer, if the shaking of the mobile phone exceeds a certain threshold, the terminal It is determined that the user is walking, otherwise it is determined that the user is not walking. However, the current walking detection software uses a fixed threshold for statistical walking, that is, uses the same judgment standard. Since everyone's physical condition is different, as well as exercise habits, and the severity of walking steps are also different, the amount of vibration that triggers the terminal is different. For example, if some people walk faster, the amount of jitter detected by the pedometer is relatively large, and if some people walk slowly, the amount of jitter detected by the pedometer will be relatively small. It can be seen that using this fixed threshold pedometer This method is easy to miss the number of steps, resulting in inaccurate counting.
发明内容Contents of the invention
本发明实施例提供一种计步数据的调节方法及装置,以解决现有的计步方法,容易漏计步数,准确度较低的技术问题。The embodiment of the present invention provides a step counting data adjustment method and device to solve the technical problems of the existing step counting method, which is easy to miss the number of steps and has low accuracy.
为解决上述问题,本发明提供的技术方案如下:In order to solve the above problems, the technical solutions provided by the present invention are as follows:
本发明实施例提供一种计步数据的调节方法,其包括:An embodiment of the present invention provides a method for adjusting step counting data, which includes:
当检测到终端的加速度大于预设步态检测阈值时,获取所述终端在预设时长内预设方向上的平均加速度;When it is detected that the acceleration of the terminal is greater than a preset gait detection threshold, acquiring the average acceleration of the terminal in a preset direction within a preset time period;
根据所述平均加速度计算加速度绝对值;calculating an absolute value of acceleration according to the average acceleration;
判断所述加速度绝对值是否小于所述预设步态检测阈值;judging whether the absolute value of the acceleration is less than the preset gait detection threshold;
若判定所述加速度绝对值小于所述预设步态检测阈值,则对所述预设步态检测阈值进行调整,得到调整步态检测阈值,以使所述调整步态检测阈值与所述加速度绝对值相匹配;If it is determined that the absolute value of the acceleration is less than the preset gait detection threshold, the preset gait detection threshold is adjusted to obtain an adjusted gait detection threshold, so that the adjusted gait detection threshold is equal to the acceleration Absolute value matches;
使用所述调整步态检测阈值替换所述预设步态检测阈值。The preset gait detection threshold is replaced by the adjusted gait detection threshold.
本发明实施例还提供一种计步数据的调节装置,其包括:The embodiment of the present invention also provides a device for adjusting step counting data, which includes:
获取模块,用于当检测到终端的加速度大于预设步态检测阈值时,获取所述终端在预设时长内预设方向上的平均加速度;An acquisition module, configured to acquire the average acceleration of the terminal in a preset direction within a preset time period when it is detected that the acceleration of the terminal is greater than a preset gait detection threshold;
计算模块,用于根据所述平均加速度计算加速度绝对值;Calculation module, for calculating the absolute value of acceleration according to the average acceleration;
判断模块,用于判断所述加速度绝对值是否小于所述预设步态检测阈值;A judging module, configured to judge whether the absolute value of the acceleration is less than the preset gait detection threshold;
调整模块,用于当所述判断模块判定所述加速度绝对值小于所述预设步态检测阈值时,对所述预设步态检测阈值进行调整,得到调整步态检测阈值,以使所述调整步态检测阈值与所述加速度绝对值相匹配;An adjustment module, configured to adjust the preset gait detection threshold to obtain an adjusted gait detection threshold when the judging module determines that the absolute value of the acceleration is less than the preset gait detection threshold, so that the Adjusting the gait detection threshold to match the absolute value of the acceleration;
替换模块,用于使用所述调整步态检测阈值替换所述预设步态检测阈值。A replacement module, configured to use the adjusted gait detection threshold to replace the preset gait detection threshold.
相较于现有技术,本实施例的计步数据的调节方法及装置,当检测到终端的加速度大于预设步态检测阈值时,获取该终端在预设时长内预设方向上的平均加速度;根据该平均加速度计算加速度绝对值;判断该加速度绝对值是否小于该预设步态检测阈值;若判定该加速度绝对值小于该预设步态检测阈值,则对该预设步态检测阈值进行调整,得到调整步态检测阈值;并使用该调整步态检测阈值替换该预设步态检测阈值;由于在检测到用户步行时,获取终端的平均加速度,根据该平均加速度对预设步态检测阈值进行调整,从而能够在用户的步行抖动幅度偏小时,自适应地调整步态检测阈值,防止漏检的情况,提高了检测的准确性。Compared with the prior art, the step counting data adjustment method and device of this embodiment, when it is detected that the acceleration of the terminal is greater than the preset gait detection threshold, obtain the average acceleration of the terminal in the preset direction within the preset time length ; Calculate the absolute value of the acceleration according to the average acceleration; judge whether the absolute value of the acceleration is less than the preset gait detection threshold; if it is determined that the absolute value of the acceleration is less than the preset gait detection threshold, perform Adjust to obtain the adjusted gait detection threshold; and use the adjusted gait detection threshold to replace the preset gait detection threshold; since the average acceleration of the terminal is obtained when the user is walking is detected, the preset gait detection is performed according to the average acceleration The threshold value is adjusted, so that the gait detection threshold can be adaptively adjusted when the user's gait jitter amplitude is relatively small, so as to prevent missed detection and improve detection accuracy.
附图说明Description of drawings
图1为本发明实施例一提供的计步数据的调节方法的流程图;Fig. 1 is the flow chart of the step counting data adjustment method provided by Embodiment 1 of the present invention;
图2为本发明实施例二提供的计步数据的调节方法的流程图;Fig. 2 is a flow chart of the step counting data adjustment method provided by Embodiment 2 of the present invention;
图3为本发明实施例三提供的计步数据的调节方法的流程图;Fig. 3 is a flow chart of the step counting data adjustment method provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的计步数据的调节装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for adjusting step counting data provided by Embodiment 4 of the present invention;
图5为本发明实施例四提供的计步数据的调节装置的优选结构示意图。FIG. 5 is a schematic diagram of a preferred structure of the device for adjusting step counting data provided by Embodiment 4 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
请参照图1,图1为本发明实施例一提供的计步数据的调节方法的流程图。Please refer to FIG. 1 . FIG. 1 is a flowchart of a step counting data adjustment method provided by Embodiment 1 of the present invention.
本优选实施例的计步数据的调节方法,包括:The adjustment method of the step counting data of this preferred embodiment includes:
步骤S101,当检测到终端的加速度大于预设步态检测阈值时,获取该终端在预设时长内预设方向上的平均加速度。Step S101, when it is detected that the acceleration of the terminal is greater than a preset gait detection threshold, obtain the average acceleration of the terminal in a preset direction within a preset time period.
例如,当终端的加速度超过了预设步态检测阈值时,终端检测到用户步行,此时通过加速度传感器检测预设时长内终端在x、y、z三个方向上相对于静止状态时的加速度值,并计算x轴、y轴、z轴的加速度平均值ax、ay、az;该终端可以为手机、平板电脑等设备。For example, when the acceleration of the terminal exceeds the preset gait detection threshold, the terminal detects that the user is walking. At this time, the acceleration sensor detects the acceleration of the terminal in the three directions of x, y, and z relative to the static state within the preset time period. value, and calculate the acceleration averages a x , a y , a z of the x-axis, y-axis, and z-axis; the terminal can be a mobile phone, a tablet computer and other devices.
步骤S102,根据该平均加速度计算加速度绝对值。Step S102, calculating the absolute value of acceleration according to the average acceleration.
例如,终端根据x轴、y轴、z轴的加速度平均值ax、ay、az计算加速度绝对值am,比如加速度绝对值为公式1所示:For example, the terminal calculates the absolute value of acceleration a m according to the average acceleration values a x , a y , and a z of the x-axis, y-axis, and z-axis. For example, the absolute value of the acceleration is shown in Formula 1:
步骤S103,判断该加速度绝对值是否小于该预设步态检测阈值。Step S103, judging whether the absolute value of the acceleration is smaller than the preset gait detection threshold.
例如,终端在预设数据库中存储有预设步态检测阈值,终端判断加速度绝对值是否小于预设步态检测阈值,如果终端判断加速度绝对值大于或等于该预设步态检测阈值,表明用户的平均步行抖动幅度偏大,则反应终端预先设置的步态检测阈值的大小合适,可以满足检测步数的准确性,因此不对预设步态检测阈值进行调整;如果终端判断加速度绝对值小于该预设步态检测阈值,则执行步骤S104。For example, the terminal stores a preset gait detection threshold in the preset database, and the terminal judges whether the absolute value of the acceleration is less than the preset gait detection threshold, and if the terminal judges that the absolute value of the acceleration is greater than or equal to the preset gait detection threshold, it indicates that the user If the average walking jitter range is too large, the gait detection threshold preset by the reaction terminal is appropriate and can meet the accuracy of the detection steps, so the preset gait detection threshold is not adjusted; if the terminal judges that the absolute value of the acceleration is less than the If the gait detection threshold is preset, step S104 is executed.
步骤S104,若判定该加速度绝对值小于该预设步态检测阈值,对该预设步态检测阈值进行调整,得到调整步态检测阈值。Step S104, if it is determined that the absolute value of the acceleration is smaller than the preset gait detection threshold, adjust the preset gait detection threshold to obtain an adjusted gait detection threshold.
例如,当终端判断加速度绝对值小于该预设步态检测阈值时,表明用户的平均步行抖动幅度偏小,因此反应当前终端预先设置的步态检测阈值的大小不合适,容易造成步数漏检的情况。比如,此时终端将当前的预设步态检测阈值调小,将调小后的预设步态检测阈值作为调整步态检测阈值,以使该调整步态检测阈值与该加速度绝对值相匹配,即使得调整步态检测阈值与用户的步行抖动幅度匹配,防止漏检步数。For example, when the terminal judges that the absolute value of the acceleration is less than the preset gait detection threshold, it indicates that the user's average walking jitter is too small, so it reflects that the gait detection threshold preset by the current terminal is inappropriate, which may easily cause missed steps Case. For example, at this time, the terminal reduces the current preset gait detection threshold, and uses the reduced preset gait detection threshold as the adjusted gait detection threshold, so that the adjusted gait detection threshold matches the absolute value of the acceleration , that is, to adjust the gait detection threshold to match the user's walking vibration amplitude to prevent missing steps.
步骤S105,使用该调整步态检测阈值替换该预设步态检测阈值。Step S105, using the adjusted gait detection threshold to replace the preset gait detection threshold.
例如,终端在后续计步时,使用该调整步态检测阈值作为计数的依据,即当终端检测到加速度大于调整步态检测阈值时,则表明用户在步行,从而触发计步器计数。For example, the terminal uses the adjusted gait detection threshold as the basis for counting during subsequent step counting, that is, when the terminal detects that the acceleration is greater than the adjusted gait detection threshold, it indicates that the user is walking, thereby triggering the pedometer to count.
本优选实施例的计步数据的调节方法,由于在检测到用户步行时,获取终端在预设时长内预设方向上的平均加速度,并获取加速度绝对值,判断加速度绝对值是否小于预设步态检测阈值,若是,则对预设步态检测阈值进行调整,根据调整步态检测阈值进行计数,从而能够在用户的步行抖动幅度偏小时,自适应地调整步态检测阈值,防止步数漏检的情况,能提高检测的准确性。The method for adjusting the pedometer data in this preferred embodiment, since the average acceleration of the terminal in the preset direction within the preset time length is obtained when the user is walking is detected, and the absolute value of the acceleration is obtained, and it is judged whether the absolute value of the acceleration is less than the preset step If so, adjust the preset gait detection threshold, and count according to the adjusted gait detection threshold, so that when the user's walking jitter amplitude is small, the gait detection threshold can be adaptively adjusted to prevent missing steps It can improve the detection accuracy.
请参照图2,图2为本发明实施例二提供的计步数据的调节方法的流程图。Please refer to FIG. 2 . FIG. 2 is a flowchart of a step counting data adjustment method provided by Embodiment 2 of the present invention.
本优选实施例的计步数据的调节方法,包括:The adjustment method of the step counting data of this preferred embodiment includes:
步骤S201,当检测到终端的加速度大于预设步态检测阈值时,获取该终端在预设时长内预设方向上的平均加速度。Step S201, when it is detected that the acceleration of the terminal is greater than a preset gait detection threshold, acquire the average acceleration of the terminal in a preset direction within a preset time period.
例如,当终端的加速度超过了预设步态检测阈值时,终端检测到用户步行,此时通过加速度传感器检测预设时长内终端在x、y、z三个方向上相对于静止状态时的加速度值,并计算x轴、y轴、z轴的加速度平均值ax、ay、az;该终端可以为手机、平板电脑等设备。For example, when the acceleration of the terminal exceeds the preset gait detection threshold, the terminal detects that the user is walking. At this time, the acceleration sensor detects the acceleration of the terminal in the three directions of x, y, and z relative to the static state within the preset time period. value, and calculate the acceleration averages a x , a y , a z of the x-axis, y-axis, and z-axis; the terminal can be a mobile phone, a tablet computer and other devices.
步骤S202,根据该平均加速度计算加速度绝对值。Step S202, calculating the absolute value of acceleration according to the average acceleration.
例如,终端根据x轴、y轴、z轴的加速度平均值ax、ay、az计算加速度绝对值am,比如加速度绝对值为公式1所示:For example, the terminal calculates the absolute value of acceleration a m according to the average acceleration values a x , a y , and a z of the x-axis, y-axis, and z-axis. For example, the absolute value of the acceleration is shown in Formula 1:
步骤S203,判断该加速度绝对值是否小于该预设步态检测阈值。Step S203, judging whether the absolute value of the acceleration is smaller than the preset gait detection threshold.
例如,终端在预设数据库中存储有预设步态检测阈值,终端判断加速度绝对值是否小于预设步态检测阈值,如果终端判断加速度绝对值大于或等于该预设步态检测阈值,则执行步骤S204,如果终端判断加速度绝对值小于该预设步态检测阈值,则执行步骤S205。For example, the terminal stores a preset gait detection threshold in the preset database, and the terminal judges whether the absolute value of the acceleration is less than the preset gait detection threshold, and if the terminal judges that the absolute value of the acceleration is greater than or equal to the preset gait detection threshold, execute In step S204, if the terminal determines that the absolute value of the acceleration is less than the preset gait detection threshold, step S205 is executed.
步骤S204,若判定该加速度绝对值大于或等于该预设步态检测阈值,则不作处理。Step S204, if it is determined that the absolute value of the acceleration is greater than or equal to the preset gait detection threshold, no processing is performed.
例如,当终端判断加速度绝对值大于或等于该预设步态检测阈值时,表明用户的平均步行抖动幅度偏大,则反应当前终端预先设置的步态检测阈值的大小合适,可以满足检测步数的准确性,因此不对预设步态检测阈值进行调整。For example, when the terminal judges that the absolute value of the acceleration is greater than or equal to the preset gait detection threshold, it indicates that the user's average walking jitter is too large, and it reflects that the gait detection threshold preset by the current terminal is appropriate and can meet the detection steps. accuracy, so the preset gait detection threshold is not adjusted.
步骤S205,若判定该加速度绝对值小于该预设步态检测阈值,对该预设步态检测阈值进行调整,得到调整步态检测阈值。Step S205, if it is determined that the absolute value of the acceleration is less than the preset gait detection threshold, adjust the preset gait detection threshold to obtain an adjusted gait detection threshold.
例如,当终端判断加速度绝对值小于该预设步态检测阈值时,表明用户的平均步行抖动幅度偏小,因此反应终端预先设置的步态检测阈值的大小不合适,容易造成步数漏检的情况,此时终端将当前的预设步态检测阈值调小,将调小后的预设步态检测阈值作为调整步态检测阈值。For example, when the terminal judges that the absolute value of the acceleration is less than the preset gait detection threshold, it indicates that the user's average walking jitter is relatively small, so the response terminal preset gait detection threshold is inappropriate, which may easily lead to missing steps. In this case, the terminal reduces the current preset gait detection threshold, and uses the reduced preset gait detection threshold as the adjusted gait detection threshold.
为了提高调整的准确性,可以根据加速度绝对值计算调整因子,即该对该预设步态检测阈值进行调整,得到调整步态检测阈值的步骤包括:In order to improve the accuracy of the adjustment, the adjustment factor can be calculated according to the absolute value of the acceleration, that is, the preset gait detection threshold should be adjusted, and the steps for obtaining the adjusted gait detection threshold include:
A、根据该加速度绝对值获取调整因子;A. Obtain the adjustment factor according to the absolute value of the acceleration;
例如,终端可以在预设数据库中存储有多个加速度绝对值的区间,以及与每个区间对应的调整因子,该调整因子比如为大于0小于1的小数,终端查找与该加速度绝对值对应的区间,并将该区间对应的调整因子作为最终的调整因子;当然为了提高查找效率,该根据该加速度绝对值获取调整因子的步骤包括:For example, the terminal may store multiple intervals of the absolute value of acceleration in the preset database, and an adjustment factor corresponding to each interval. The adjustment factor is, for example, a decimal greater than 0 and less than 1, and the terminal searches for the interval corresponding to the absolute value of the acceleration. interval, and use the adjustment factor corresponding to the interval as the final adjustment factor; of course, in order to improve the search efficiency, the step of obtaining the adjustment factor according to the absolute value of the acceleration includes:
a1、计算该加速度绝对值与该预设步态检测阈值之间的差值;a1. Calculate the difference between the absolute value of the acceleration and the preset gait detection threshold;
a2、根据该差值获取该调整因子。a2. Obtain the adjustment factor according to the difference.
例如,终端预先在预设数据库存储有多个预设差值以及与每个差值对应的调整因子,当终端获取到加速度绝对值与该预设步态检测阈值之间的差值时,获取与该差值对应的预设差值,将该预设差值对应的调整因子作为最终的调整因子。For example, the terminal stores a plurality of preset difference values and adjustment factors corresponding to each difference value in advance in the preset database, and when the terminal obtains the difference between the absolute value of the acceleration and the preset gait detection threshold, the The preset difference corresponding to the difference, and the adjustment factor corresponding to the preset difference is used as the final adjustment factor.
当然为了降低终端的功耗,该根据该加速度绝对值获取调整因子的步骤包括:Of course, in order to reduce the power consumption of the terminal, the step of obtaining the adjustment factor according to the absolute value of the acceleration includes:
a3、在预设数据库中查找与该加速度绝对值对应的调整因子。a3. Find the adjustment factor corresponding to the absolute value of the acceleration in the preset database.
例如,终端预先在预设数据库存储有多个预设加速度以及与每个预设加速度对应的调整因子,终端获取与该加速度绝对值对应的预设加速度,将该预设加速度对应的调整因子作为最终的调整因子。For example, the terminal stores a plurality of preset accelerations and adjustment factors corresponding to each preset acceleration in the preset database in advance, the terminal obtains the preset acceleration corresponding to the absolute value of the acceleration, and uses the adjustment factor corresponding to the preset acceleration as The final adjustment factor.
B、根据该调整因子对该预设步态检测阈值进行调整,得到该调整步态检测阈值。B. Adjust the preset gait detection threshold according to the adjustment factor to obtain the adjusted gait detection threshold.
例如,将预设步态检测阈值乘以该调整因子,得到调整步态检测阈值。For example, the preset gait detection threshold is multiplied by the adjustment factor to obtain the adjusted gait detection threshold.
当然,为了提高终端的处理效率,该对该预设步态检测阈值进行调整,得到调整步态检测阈值的步骤包括:Of course, in order to improve the processing efficiency of the terminal, the preset gait detection threshold should be adjusted, and the step of obtaining the adjusted gait detection threshold includes:
(1)获取与该加速度绝对值对应的调整参数;(1) Obtain the adjustment parameter corresponding to the absolute value of the acceleration;
(2)根据该调整参数对预设调整基数进行调整,将调整后的预设调整基数作为该调整步态检测阈值。(2) Adjust the preset adjustment base according to the adjustment parameter, and use the adjusted preset adjustment base as the adjusted gait detection threshold.
例如,终端在预设数据库中存储有预设调整基数、多个预设加速度和与每个预设加速度对应的调整参数,终端获取加速度绝对值匹配的预设加速度,并将预设加速度对应的调整参数作为最终的调整参数。比如,终端使用调整参数乘以预设调整基数,该预设调整基数比如小于预设步态检测阈值。For example, the terminal stores a preset adjustment base, multiple preset accelerations, and adjustment parameters corresponding to each preset acceleration in the preset database, and the terminal obtains the preset acceleration whose absolute value of the acceleration matches, and stores the corresponding preset acceleration tuning parameters as the final tuning parameters. For example, the terminal multiplies the adjustment parameter by a preset adjustment base, and the preset adjustment base is, for example, smaller than a preset gait detection threshold.
步骤S206,使用该调整步态检测阈值替换该预设步态检测阈值。Step S206, using the adjusted gait detection threshold to replace the preset gait detection threshold.
例如,终端在后续计步时,使用该调整步态检测阈值作为计数的依据,即当终端检测到加速度大于调整步态检测阈值时,则表明用户在步行,从而触发计步器计数。For example, the terminal uses the adjusted gait detection threshold as the basis for counting during subsequent step counting, that is, when the terminal detects that the acceleration is greater than the adjusted gait detection threshold, it indicates that the user is walking, thereby triggering the pedometer to count.
本优选实施例的计步数据的调节方法,由于在检测到用户步行时,获取终端在预设时长内预设方向上的平均加速度,并获取加速度绝对值,判断加速度绝对值是否小于预设步态检测阈值,若否,则不对预设步态检测阈值进行调整若是,则对预设步态检测阈值进行调整,并根据调整步态检测阈值进行计数,从而能够在用户的步行抖动幅度偏小时,自适应地减小步态检测阈值,防止步数漏检的情况,提高了检测的准确性。The method for adjusting the pedometer data in this preferred embodiment, since the average acceleration of the terminal in the preset direction within the preset time length is obtained when the user is walking is detected, and the absolute value of the acceleration is obtained, and it is judged whether the absolute value of the acceleration is less than the preset step If not, do not adjust the preset gait detection threshold; , adaptively reduce the threshold of gait detection, prevent the missed detection of steps, and improve the accuracy of detection.
请参照图3,图3为本发明实施例三提供的计步数据的调节方法的流程图。Please refer to FIG. 3 . FIG. 3 is a flow chart of a step counting data adjustment method provided by Embodiment 3 of the present invention.
本实施例以终端为智能手机为例进行详细说明,本优选实施例的计步数据的调节方法,包括:This embodiment takes the terminal as a smart phone as an example to describe in detail. The method for adjusting step counting data in this preferred embodiment includes:
步骤S301,当智能手机检测到其加速度大于预设步态检测阈值时,获取该智能手机在预设时长内预设方向上的平均加速度。Step S301, when the smart phone detects that its acceleration is greater than a preset gait detection threshold, acquire the average acceleration of the smart phone in a preset direction within a preset time period.
例如,当智能手机的抖动量超过了预设步态检测阈值时,智能手机检测到用户步行,此时通过加速度传感器检测预设时长内智能手机在x、y、z三个方向上相对于静止状态时的加速度值,并计算x轴、y轴、z轴的加速度平均值ax、ay、az,比如,该预设步态检测阈值比如为450mg。For example, when the amount of shaking of the smart phone exceeds the preset gait detection threshold, the smart phone detects that the user is walking. At this time, the acceleration sensor detects that the smart phone is relatively stationary in the three directions of x, y, and z within a preset time period. state, and calculate the average acceleration values ax, ay, and az of the x-axis, y-axis, and z-axis. For example, the preset gait detection threshold is, for example, 450 mg.
步骤S302,智能手机根据该平均加速度计算加速度绝对值。Step S302, the smart phone calculates the absolute value of the acceleration according to the average acceleration.
例如,智能手机根据x轴、y轴、z轴的加速度平均值ax、ay、az计算加速度绝对值am,比如加速度绝对值为公式1所示:For example, the smart phone calculates the absolute value of acceleration a m according to the average acceleration values ax, ay, and az of the x-axis, y-axis, and z-axis. For example, the absolute value of the acceleration is shown in Formula 1:
步骤S303,智能手机判断该加速度绝对值是否小于该预设步态检测阈值。Step S303, the smart phone judges whether the absolute value of the acceleration is smaller than the preset gait detection threshold.
例如,智能手机在预设数据库中存储有预设步态检测阈值,智能手机判断加速度绝对值是否小于预设步态检测阈值,如果智能手机判断加速度绝对值大于或等于该预设步态检测阈值,则表明该用户的步伐会经常触发计步器,因此不对预设步态检测阈值进行调整,如果智能手机判断加速度绝对值小于该预设步态检测阈值,则表明该用户的步伐不能触发计步器,则执行步骤S304。For example, the smart phone stores a preset gait detection threshold in the preset database, and the smart phone judges whether the absolute value of the acceleration is less than the preset gait detection threshold, and if the smart phone judges that the absolute value of the acceleration is greater than or equal to the preset gait detection threshold , it indicates that the user's steps will often trigger the pedometer, so the preset gait detection threshold is not adjusted. If the smartphone judges that the absolute value of acceleration is less than the preset gait detection threshold, it indicates that the user's steps cannot trigger the pedometer. stepper, execute step S304.
步骤S304,若智能手机判定该加速度绝对值小于该预设步态检测阈值,获取与该加速度绝对值对应的调整参数。Step S304, if the smartphone determines that the absolute value of the acceleration is less than the preset gait detection threshold, acquire an adjustment parameter corresponding to the absolute value of the acceleration.
例如,智能手机在预设数据库中存储有预设调整基数、多个预设加速度和与每个预设加速度对应的调整参数,智能手机获取加速度绝对值匹配的预设加速度,并将预设加速度对应的调整参数作为最终的调整参数。For example, the smart phone stores preset adjustment bases, multiple preset accelerations, and adjustment parameters corresponding to each preset acceleration in the preset database, and the smart phone obtains the preset acceleration whose absolute value of the acceleration matches, and stores the preset acceleration The corresponding adjustment parameters are used as the final adjustment parameters.
比如当预设加速度为400mg,对应的调整参数为12;当预设加速度为350mg对应的调整参数为10。For example, when the preset acceleration is 400mg, the corresponding adjustment parameter is 12; when the preset acceleration is 350mg, the corresponding adjustment parameter is 10.
步骤S305,智能手机根据该调整参数对预设调整基数进行调整,将调整后的预设调整基数作为该调整步态检测阈值。Step S305, the smart phone adjusts the preset adjustment base according to the adjustment parameter, and uses the adjusted preset adjustment base as the adjusted gait detection threshold.
例如,该预设调整基数比如为最小阈值调整单位,该最小阈值调整单位比如为32mg。比如,当加速度绝对值为350mg时,获取到的调整参数为10,智能手机将调整参数乘以最小阈值调整单位得到调整步态检测阈值,即32mg*10,得到调整步态检测阈值为320mg。For example, the preset adjustment base is, for example, the minimum threshold adjustment unit, and the minimum threshold adjustment unit is, for example, 32 mg. For example, when the absolute value of the acceleration is 350 mg, the obtained adjustment parameter is 10, and the smart phone multiplies the adjustment parameter by the minimum threshold adjustment unit to obtain the adjusted gait detection threshold, that is, 32 mg*10, and the adjusted gait detection threshold is 320 mg.
步骤S306,智能手机使用该调整步态检测阈值替换该预设步态检测阈值。Step S306, the smartphone uses the adjusted gait detection threshold to replace the preset gait detection threshold.
例如,智能手机在后续计步时,使用该调整步态检测阈值作为计数的依据,即当智能手机检测到加速度大于320mg时,则表明用户在步行,触发计步器计数。For example, the smart phone uses the adjusted gait detection threshold as the basis for counting when counting steps. That is, when the smart phone detects that the acceleration is greater than 320mg, it indicates that the user is walking and triggers the pedometer to count.
本优选实施例的计步数据的调节方法,由于智能手机在检测到用户步行时,获取智能手机在预设时长内预设方向上的平均加速度,并获取加速度绝对值,判断加速度绝对值是否小于预设步态检测阈值,若是,则获取调整参数,根据该调整参数对预设调整基数进行调整,并使用调整后的预设调整基数进行计数,从而能够在用户的步行抖动幅度偏小时,自适应地调整步态检测阈值,防止漏检的情况,能提高检测的准确性。The adjustment method of the pedometer data in this preferred embodiment, since the smartphone detects that the user is walking, obtains the average acceleration of the smartphone in the preset direction within the preset duration, and obtains the absolute value of the acceleration, and judges whether the absolute value of the acceleration is less than Preset the gait detection threshold, if yes, obtain the adjustment parameter, adjust the preset adjustment base according to the adjustment parameter, and use the adjusted preset adjustment base for counting, so that when the user's walking jitter amplitude is too small, automatic Adaptively adjust the gait detection threshold to prevent missed detection and improve detection accuracy.
请参照图4,图4为本发明实施例四提供的计步数据的调节装置的结构示意图。本优选实施例的计步数据的调节装置40包括:获取模块41、计算模块42、判断模块43、调整模块44、替换模块45;Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of a device for adjusting step counting data provided by Embodiment 4 of the present invention. The adjusting device 40 of the pedometer data in this preferred embodiment includes: an acquisition module 41, a calculation module 42, a judgment module 43, an adjustment module 44, and a replacement module 45;
获取模块41,用于当检测到终端的加速度大于预设步态检测阈值时,获取该终端在预设时长内预设方向上的平均加速度;An acquisition module 41, configured to acquire an average acceleration of the terminal in a preset direction within a preset time period when it is detected that the acceleration of the terminal is greater than a preset gait detection threshold;
计算模块42,用于根据该平均加速度计算加速度绝对值;Calculation module 42, for calculating the absolute value of acceleration according to the average acceleration;
判断模块43,用于判断该加速度绝对值是否小于该预设步态检测阈值;A judging module 43, configured to judge whether the absolute value of the acceleration is less than the preset gait detection threshold;
调整模块44,用于当判断模块43判定该加速度绝对值小于该预设步态检测阈值时,对该预设步态检测阈值进行调整,得到调整步态检测阈值,以使该调整步态检测阈值与该加速度绝对值相匹配;The adjustment module 44 is used to adjust the preset gait detection threshold when the judgment module 43 judges that the absolute value of the acceleration is less than the preset gait detection threshold, so as to obtain the adjusted gait detection threshold, so that the adjusted gait detection The threshold is matched to the absolute value of the acceleration;
替换模块45,用于使用该调整步态检测阈值替换该预设步态检测阈值。A replacement module 45, configured to use the adjusted gait detection threshold to replace the preset gait detection threshold.
如图5所示,该调整模块44包括:第一获取子模块441和第一调整子模块442;As shown in Figure 5, the adjustment module 44 includes: a first acquisition sub-module 441 and a first adjustment sub-module 442;
第一获取子模块441,用于根据该加速度绝对值获取调整因子;The first obtaining sub-module 441 is used to obtain the adjustment factor according to the absolute value of the acceleration;
第一调整子模块442,用于根据该调整因子对该预设步态检测阈值进行调整,得到该调整步态检测阈值。The first adjustment sub-module 442 is configured to adjust the preset gait detection threshold according to the adjustment factor to obtain the adjusted gait detection threshold.
该第一获取子模块441具体用于:The first acquiring submodule 441 is specifically used for:
计算该加速度绝对值与该预设步态检测阈值之间的差值;calculating the difference between the absolute value of the acceleration and the preset gait detection threshold;
根据该差值获取该调整因子。The adjustment factor is obtained according to the difference.
该第一获取子模块441还用于:The first acquisition submodule 441 is also used for:
在预设数据库中查找与该加速度绝对值对应的调整因子。Look up the adjustment factor corresponding to the absolute value of the acceleration in the preset database.
该调整模块44还包括:第二获取子模块443和第二调整子模块444;The adjustment module 44 also includes: a second acquisition submodule 443 and a second adjustment submodule 444;
第二获取子模块443,用于获取与该加速度绝对值对应的调整参数;The second acquiring submodule 443 is configured to acquire an adjustment parameter corresponding to the absolute value of the acceleration;
第二调整子模块444,用于根据该调整参数对预设调整基数进行调整,将调整后的预设调整基数作为该调整步态检测阈值。The second adjustment sub-module 444 is configured to adjust the preset adjustment base according to the adjustment parameter, and use the adjusted preset adjustment base as the adjusted gait detection threshold.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities. For the specific implementation of each of the above modules, please refer to the previous method embodiments, which will not be repeated here.
本优选实施例的计步数据的调节装置,由于在检测到用户步行时,获取终端在预设时长内预设方向上的平均加速度,并获取加速度绝对值,判断加速度绝对值是否小于预设步态检测阈值,若是,则对预设步态检测阈值进行调整,并根据调整步态检测阈值进行计数,从而能够在用户的步行抖动幅度偏小时,自适应地调整步态检测阈值,防止步数漏检的情况,提高了检测的准确性。The device for adjusting the pedometer data in this preferred embodiment obtains the average acceleration of the terminal in the preset direction within the preset duration when the user is walking, and obtains the absolute value of the acceleration to determine whether the absolute value of the acceleration is less than the preset step If so, adjust the preset gait detection threshold and count according to the adjusted gait detection threshold, so that the gait detection threshold can be adaptively adjusted when the user's walking jitter amplitude is too small to prevent the number of steps In the case of missing detection, the detection accuracy is improved.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,ReadOnlyMemory)、随机存取记忆体(RAM,RandomAccessMemory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read-only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disk or optical disk, etc.
以上对本发明实施例所提供的一种计步数据的调节方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method and device for adjusting pedometer data provided by the embodiment of the present invention have been introduced in detail above. The principles and implementation methods of the present invention have been explained by using specific examples in this paper. The description of the above embodiments is only used to help Understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be construed as a limitation of the invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610174078.4A CN105698815B (en) | 2016-03-24 | 2016-03-24 | Step-counting data adjusting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610174078.4A CN105698815B (en) | 2016-03-24 | 2016-03-24 | Step-counting data adjusting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105698815A true CN105698815A (en) | 2016-06-22 |
CN105698815B CN105698815B (en) | 2018-07-27 |
Family
ID=56232676
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610174078.4A Active CN105698815B (en) | 2016-03-24 | 2016-03-24 | Step-counting data adjusting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105698815B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106092130A (en) * | 2016-06-24 | 2016-11-09 | 广东欧珀移动通信有限公司 | Pedometer step counting method, device and mobile terminal |
CN106643785A (en) * | 2016-12-28 | 2017-05-10 | 北京航空航天大学 | Method for multi-source information self-adaption step number detection based on MEMS inertial measurement unit |
CN106679691A (en) * | 2016-12-22 | 2017-05-17 | 广东欧珀移动通信有限公司 | Adjustment method and device for pedometer data, and mobile terminal |
CN107063291A (en) * | 2017-03-06 | 2017-08-18 | 建荣半导体(深圳)有限公司 | Step-recording method, step count set, meter step chip and mobile terminal |
CN107314777B (en) * | 2017-06-28 | 2020-01-17 | 厦门美图移动科技有限公司 | Method for dynamically setting step counting threshold value and mobile terminal |
WO2022230164A1 (en) * | 2021-04-30 | 2022-11-03 | 日本電気株式会社 | Information processing device, information processing method, and computer-readable medium |
CN118730160A (en) * | 2024-09-04 | 2024-10-01 | 山东建筑大学 | An adaptive and accurate step counting method based on low-cost accelerometer |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102954803A (en) * | 2012-08-09 | 2013-03-06 | 益体康(北京)科技有限公司 | Adaptive step-counting processing system and method |
CN103616034A (en) * | 2013-12-10 | 2014-03-05 | 山东省计算中心 | Network pedometer based on Bluetooth and step calculation method |
CN104089625A (en) * | 2014-07-31 | 2014-10-08 | 北京蟠桃互联科技有限公司 | Step counting method with self-learning capability |
CN104089624A (en) * | 2014-07-18 | 2014-10-08 | 赵佳 | Step counting method and terminal device |
CN104956185A (en) * | 2012-12-21 | 2015-09-30 | 高通股份有限公司 | Swing compensation in step detection |
-
2016
- 2016-03-24 CN CN201610174078.4A patent/CN105698815B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102954803A (en) * | 2012-08-09 | 2013-03-06 | 益体康(北京)科技有限公司 | Adaptive step-counting processing system and method |
CN104956185A (en) * | 2012-12-21 | 2015-09-30 | 高通股份有限公司 | Swing compensation in step detection |
CN103616034A (en) * | 2013-12-10 | 2014-03-05 | 山东省计算中心 | Network pedometer based on Bluetooth and step calculation method |
CN104089624A (en) * | 2014-07-18 | 2014-10-08 | 赵佳 | Step counting method and terminal device |
CN104089625A (en) * | 2014-07-31 | 2014-10-08 | 北京蟠桃互联科技有限公司 | Step counting method with self-learning capability |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106092130A (en) * | 2016-06-24 | 2016-11-09 | 广东欧珀移动通信有限公司 | Pedometer step counting method, device and mobile terminal |
CN106679691A (en) * | 2016-12-22 | 2017-05-17 | 广东欧珀移动通信有限公司 | Adjustment method and device for pedometer data, and mobile terminal |
CN106643785A (en) * | 2016-12-28 | 2017-05-10 | 北京航空航天大学 | Method for multi-source information self-adaption step number detection based on MEMS inertial measurement unit |
CN107063291A (en) * | 2017-03-06 | 2017-08-18 | 建荣半导体(深圳)有限公司 | Step-recording method, step count set, meter step chip and mobile terminal |
CN107314777B (en) * | 2017-06-28 | 2020-01-17 | 厦门美图移动科技有限公司 | Method for dynamically setting step counting threshold value and mobile terminal |
WO2022230164A1 (en) * | 2021-04-30 | 2022-11-03 | 日本電気株式会社 | Information processing device, information processing method, and computer-readable medium |
JP7552882B2 (en) | 2021-04-30 | 2024-09-18 | 日本電気株式会社 | Information processing device, information processing method, and program |
CN118730160A (en) * | 2024-09-04 | 2024-10-01 | 山东建筑大学 | An adaptive and accurate step counting method based on low-cost accelerometer |
Also Published As
Publication number | Publication date |
---|---|
CN105698815B (en) | 2018-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105698815B (en) | Step-counting data adjusting method and device | |
CN111092748B (en) | Alarm rule setting method, device, equipment and storage medium for Internet of things equipment | |
CN102520858B (en) | Mobile terminal application control method and device | |
CN106060417B (en) | A kind of flash lamp control method and terminal | |
US20180335823A1 (en) | Method and Apparatus for Reducing Power Consumption of Terminal Device | |
EP3349325B1 (en) | Charging method, charging device and terminal | |
CN111816178B (en) | Control method, device and equipment of voice equipment | |
US20140375552A1 (en) | Information processing apparatus, information processing method, and storage medium | |
CN106713734B (en) | Automatic focusing method and device | |
CN103051841A (en) | Method and device for controlling exposure time | |
US20160112701A1 (en) | Video processing method, device and system | |
WO2014166127A1 (en) | Image capturing method, apparatus, and electronic device | |
WO2019024641A1 (en) | Data synchronization method and apparatus, storage medium and electronic device | |
CN108418973A (en) | Fall detection method and related device | |
CN108197570A (en) | A kind of demographic method, device, electronic equipment and storage medium | |
CN105893185A (en) | Data backup method and device | |
WO2018010409A1 (en) | Power consumption warning method and apparatus | |
CN108510964A (en) | Screen brightness adjustment range adjustment method, device, terminal and storage medium | |
CN109643455B (en) | Camera calibration method and terminal | |
WO2015154446A1 (en) | Automatic execution method and device for operation of mobile terminal, and mobile terminal | |
CN105744142B (en) | A kind of image-pickup method and electronic equipment | |
CN106372003B (en) | Cache data cleaning method and device and terminal | |
CN110113201B (en) | Monitoring data processing method and device and monitoring system | |
CN105910620B (en) | Step-counting data processing method and device | |
JP2017192563A (en) | Activity meter and exercise amount calculation device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: Guangdong Opel Mobile Communications Co., Ltd. |