CN111442785A - Step counting method, device and equipment based on inertia and storage medium - Google Patents

Step counting method, device and equipment based on inertia and storage medium Download PDF

Info

Publication number
CN111442785A
CN111442785A CN202010228394.1A CN202010228394A CN111442785A CN 111442785 A CN111442785 A CN 111442785A CN 202010228394 A CN202010228394 A CN 202010228394A CN 111442785 A CN111442785 A CN 111442785A
Authority
CN
China
Prior art keywords
acceleration
epoch
time
frequency
calculating
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
Application number
CN202010228394.1A
Other languages
Chinese (zh)
Other versions
CN111442785B (en
Inventor
郑文辉
蔡国发
周拓
方毅
韩国军
姚剑萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN202010228394.1A priority Critical patent/CN111442785B/en
Publication of CN111442785A publication Critical patent/CN111442785A/en
Application granted granted Critical
Publication of CN111442785B publication Critical patent/CN111442785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • G01C22/006Pedometers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation

Landscapes

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

Abstract

The application discloses a step counting method, device and storage medium based on inertia, wherein the method comprises the following steps: acquiring acceleration data meeting a preset threshold value, and recording epoch time; the epoch time is the sampling point time; acquiring the walking frequency of a person to be tested, and judging whether the walking frequency meets a preset frequency range; calculating the maximum contrast times of the acceleration peak values and the jumping length of jumping false peak values according to the frequency; and calculating the position of the acceleration peak value, and calculating to obtain the next search acceleration position according to the position of the acceleration peak value and the jump length. The method solves the problems that in the prior art, a neighborhood frame is divided into two neighborhood windows according to the motion state to remove false peaks, and a true peak is possibly lost, so that the precision is greatly reduced; each epoch is subjected to a judgment, and the calculation time is very large in accumulation, so that the technical problem of greatly reducing the working efficiency of the equipment is solved.

Description

Step counting method, device and equipment based on inertia and storage medium
Technical Field
The present application relates to the field of pedestrian positioning technologies, and in particular, to a step counting method based on inertia, a device and a storage medium.
Background
As location technology continues to evolve, location information becomes increasingly important because location-based services, such as navigation, tour guides, emergency assistance, etc., all make location information less important. Global Navigation Satellite System (GNSS) is developed in an outdoor environment, but in an indoor environment, due to building shielding and a closed indoor space, performance is remarkably reduced, and the GNSS cannot exert an accurate positioning effect indoors. The GNSS blind area positioning becomes a technical problem to be solved urgently. In the prior art, an inertial sensor is used for realizing Pedestrian Dead Reckoning (PDR) to solve GNSS blind area positioning, gait detection and step count counting in PDR positioning are important links, and the precision of step count directly influences the result of PDR. Whereas the prior art calculates the number of steps by an adaptive peak detection method. The walking of a person is divided into two states of walking and running, and the calculation steps are as follows: 1) calculating the integral acceleration, searching an acceleration potential peak value (the epoch refers to sampling point time) by using a 20-epoch sliding window to limit an acceleration threshold value to carry out primary judgment, dividing the state into an idle state and a motion state, wherein the peak value is less than 1.2g, the idle state (g is gravity acceleration) is adopted, and step counting is not carried out; the peak value is in the interval [1.2g,2g ], and the walking is judged; the peak value is more than 2 g; judging running and carrying out next judgment. 2) And calculating the time difference between the potential peak value and the previous peak value, and performing secondary judgment by using different time threshold values. The time difference satisfies the time threshold [0.3s,0.8s ] and is in a normal state; the abnormal state is satisfied with the time threshold value [0.2s,0.5s ]; and carrying out the next judgment. 3) And changing the size of the field window according to the motion state, and judging the potential peak and the neighborhood epoch for three times to remove the false peak. And (3) setting the neighborhood before and after the normal state as 10 epochs, setting the abnormal state as 5 epochs, recording one step if the potential peak value is the maximum value in the neighborhood, and otherwise, not performing step counting processing.
Because the neighborhood frame only has two kinds of neighborhood windows to remove false peaks according to the motion state, if the window length of 10 epochs is long, a true peak is very likely to be lost under the conditions that the person runs at high speed and the refreshing frequency of the equipment is low, the precision can be greatly reduced; each epoch is subjected to a decision, and the calculation time is very large in accumulation, which greatly reduces the working efficiency of the device.
Disclosure of Invention
The application provides a step counting method, device and storage medium based on inertia, which solves the problems that in the prior art, because a neighborhood frame is only divided into two neighborhood windows according to a motion state to remove false peaks, if the window length of 10 epochs is long, a true peak is probably lost under the conditions that a person runs at a high speed and the refreshing frequency of equipment is low, the precision can be greatly reduced; each epoch is subjected to a judgment, and the calculation time is very large in accumulation, so that the technical problem of greatly reducing the working efficiency of the equipment is solved.
The application provides a step counting method based on inertia in a first aspect, which comprises the following steps:
acquiring acceleration data meeting a preset threshold value, and recording epoch time; the epoch time is sampling point time;
acquiring the walking frequency of a person to be tested, and judging whether the walking frequency meets a preset frequency range;
calculating the maximum contrast times of the acceleration peak values and the jumping length of jumping false peak values according to the walking frequency data;
and calculating the position of the acceleration peak value, and calculating to obtain the position of the searched acceleration according to the maximum contrast times of the acceleration peak value and the jump length.
Optionally, the obtaining the walking frequency of the person to be tested and determining whether the walking frequency meets a preset frequency range further includes: and if the walking frequency is the first step of the testee, the walking frequency is 2 HZ.
Optionally, the calculating the maximum contrast number of the acceleration peak and the jumping degree of the jumping false peak according to the walking frequency data includes:
calculating the time required for obtaining one step in the epoch time according to a first formula:
Figure BDA0002428496970000021
wherein k represents k epoch time; n is a radical ofkThe time required for the person to be measured to walk one step in the time period of the k epoch; f. ofMiningIs the sampling frequency of the device;
Figure BDA0002428496970000022
the walking frequency of the person to be tested;
and calculating and obtaining a first comparison time according to a second formula:
Figure BDA0002428496970000023
wherein the content of the first and second substances,
Figure BDA0002428496970000024
the number of contrasts representing the acceleration of k epochs is
Figure BDA0002428496970000025
Calculating and obtaining the jump length according to a third formula:
Figure BDA0002428496970000031
wherein the content of the first and second substances,
Figure BDA0002428496970000032
represents a jump length of k epochs of
Figure BDA0002428496970000033
Optionally, calculating the position of the acceleration peak, and calculating to obtain the search acceleration position according to the maximum contrast number of the acceleration peak and the jump length specifically includes:
comparing the acceleration of the epoch time with the next epochThe acceleration of the epoch time is the peak value of the corresponding wave crest if the acceleration of the epoch time is larger; if the acceleration of the next epoch time is larger, the maximum contrast frequency of the next epoch time is
Figure BDA0002428496970000034
If the peak position is found, the jump length is determined
Figure BDA0002428496970000035
Anew after the peak position epoch
Figure BDA0002428496970000036
The epoch searches for a new acceleration that meets the threshold.
A second aspect of the present application provides an inertia-based step-counting device, comprising:
the data acquisition module is used for acquiring acceleration data meeting a preset threshold value and recording epoch time; the epoch time is sampling point time;
the judging module is used for acquiring the walking frequency of the person to be detected and judging whether the walking frequency meets a preset frequency range;
the first calculation module is used for calculating the maximum contrast times of the acceleration peak values and the jumping length of jumping false peak values according to the walking frequency data;
and the second calculation module is used for calculating the position of the acceleration peak value and calculating to obtain the position of the searched acceleration according to the maximum contrast times of the acceleration peak value and the jump length.
Optionally, the determining module is further configured to determine that the walking frequency is 2HZ if the walking frequency is the first step of the person to be tested.
Optionally, the first computing module comprises:
a time calculating unit, configured to calculate, according to a first formula, a time required to obtain a step in the epoch time:
Figure BDA0002428496970000037
wherein k represents k epoch time; n is a radical ofkThe time required for the person to be measured to walk one step in the time period of the k epoch; f. ofMiningIs the sampling frequency of the device;
Figure BDA0002428496970000038
the walking frequency of the person to be tested;
the first comparison frequency calculation unit is used for calculating and obtaining the comparison frequency according to a second formula:
Figure BDA0002428496970000041
wherein the content of the first and second substances,
Figure BDA0002428496970000042
the number of contrasts representing the acceleration of k epochs is
Figure BDA0002428496970000043
And the second comparison frequency calculation unit calculates and obtains the jump length according to a third formula:
Figure BDA0002428496970000044
wherein the content of the first and second substances,
Figure BDA0002428496970000045
represents a jump length of k epochs of
Figure BDA0002428496970000046
Optionally, the second calculating module is specifically configured to:
comparing the acceleration of the epoch time with the acceleration of the next epoch time, wherein if the acceleration of the epoch time is larger, the acceleration of the epoch time is the peak value of the corresponding wave crest; if yes, adding the next epoch timeIf the speed is higher, the maximum comparison time of the next epoch time is
Figure BDA0002428496970000047
If the peak position is found, the jump length is determined
Figure BDA0002428496970000048
Anew after the peak position epoch
Figure BDA0002428496970000049
The epoch searches for a new acceleration that meets the threshold.
A third aspect of the present application provides an inertia based step-counting device, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform an inertia based step-counting method according to the first aspect according to instructions in the program code.
A fourth aspect of the present application provides a computer-readable storage medium for storing program code for an inertia-based step counting method according to the first aspect.
According to the technical scheme, the method has the following advantages:
the application provides a step counting method based on inertia, which comprises the following steps:
acquiring acceleration data meeting a preset threshold value, and recording epoch time; the epoch time is sampling point time;
acquiring the walking frequency of a person to be tested, and judging whether the walking frequency meets a preset frequency range;
calculating the maximum contrast times of the acceleration peak values and the jumping length of jumping false peak values according to the walking frequency data;
and calculating the position of the acceleration peak value, and calculating to obtain the position of the searched acceleration according to the maximum contrast times of the acceleration peak value and the jump length.
According to the inertia-based step counting method, the size of a contrast window can be adjusted in a self-adaptive mode through a domain progressive contrast and jump false peak avoidance mechanism, and the required contrast times do not need to reach the tail end of the window; compared with a conventional window, the jump avoidance mechanism can self-adaptively adjust the size of the window and can directly jump off a false peak without calculation and comparison. The method solves the problems that in the prior art, a neighborhood frame is only divided into two neighborhood windows according to the motion state to remove false peaks, and if the window length of 10 epochs is long and the refreshing frequency of equipment is low, a true peak is very likely to be lost, so that the precision is greatly reduced; each epoch is subjected to a judgment, and the calculation time is very large in accumulation, so that the technical problem of greatly reducing the working efficiency of the equipment is solved.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of an inertia-based step-counting method provided herein;
FIG. 2 is a schematic structural diagram of an inertia-based step-counting device provided by the present application;
FIG. 3 is a vertical acceleration waveform of an inertia-based step-counting method provided herein;
fig. 4 is a schematic diagram of a false peak of an inertia-based step counting method provided by the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application provides a step counting method, device and storage medium based on inertia, which solves the problems that in the prior art, because a neighborhood frame is only divided into two neighborhood windows according to a motion state to remove false peaks, if the window length of 10 epochs is long, a true peak is probably lost under the conditions that a person runs at a high speed and the refreshing frequency of equipment is low, the precision can be greatly reduced; each epoch is subjected to a judgment, and the calculation time is very large in accumulation, so that the technical problem of greatly reducing the working efficiency of the equipment is solved.
For ease of understanding, please refer to fig. 1, 3 and 4, fig. 1 is a schematic flow chart of an embodiment of an inertia-based step counting method provided herein; FIG. 3 is a vertical acceleration waveform of an inertia-based step-counting method provided herein; fig. 4 is a schematic diagram of a false peak of an inertia-based step counting method provided by the present application.
In a first aspect, an embodiment of the present application provides an inertia-based step counting method, including:
100, acquiring acceleration data meeting a preset threshold value, and recording epoch time; the epoch time is sampling point time;
200, acquiring the walking frequency of a person to be tested, and judging whether the walking frequency accords with a preset frequency range;
300, calculating the maximum contrast times of the acceleration peak values and the jump length of the jump false peak values according to the walking frequency data;
and 400, calculating the position of the acceleration peak value, and calculating to obtain the position of the searched acceleration according to the maximum contrast times of the acceleration peak value and the jump length.
It should be noted that, according to the inertia-based step counting method provided in the embodiment of the present application, as can be observed from fig. 3 and fig. 4, when a person walks, the vertical acceleration also presents a regular waveform, and the waveform presented by the vertical acceleration in each step passes through the law of peak bottom-capping-peak bottom, so that when the person walks at a relatively uniform speed, the epoch experienced by the waveform in each step is reduced, and because the walking frequency is increased, the time for each step is reduced, and therefore the epoch is reduced.
The appearance of the false peak comes from the aftershock of the main vibration generated when the person walks by one step, and the vertical acceleration of the aftershock also meets the preset threshold value, so the false peak can appear. In order to accurately calculate the number of steps taken by a person, false peaks need to be removed. Assume that the sampling frequency of the device is fMiningAt k epoch and current acceleration akMeets a preset acceleration threshold value and has a walking frequency of
Figure BDA0002428496970000061
A first formula can be derived:
Figure BDA0002428496970000062
wherein k represents k epoch time; n is a radical ofkThe time required for the person to be measured to walk one step in the time period of the k epoch; f. ofMiningIs the sampling frequency of the device;
Figure BDA0002428496970000063
the walking frequency of the person to be tested;
because the value of k epoch is only in accordance with the threshold set by us, but not necessarily the peak value of acceleration at this step, the conventional method searches for the peak value of the first judgment to go through 20 epochs each time, so that the judgment wastes computation time, and the law that the walking waveform obtained by adopting the field progressive comparison is wave bottom-wave peak-wave bottom (in the above, the peak top and the peak bottom describe one epoch, and the wave peak and the wave bottom describe one epoch) is adopted, so that the time required for the k epoch to go further can be divided into 3 parts, namely, wave bottom, wave peak and wave bottom:
Figure BDA0002428496970000071
acceleration a in k epochkNeed to be connected with
Figure BDA0002428496970000072
Acceleration neighborhood progressive comparison of epochs with the rule of akFirst andak+1by contrast, if ak+1If it is larger, continue to take ak+1And ak+2Comparing, if the former has more acceleration than the latter, then quitting the cycle comparison, and considering the former as the peak value of the current peak, at the same time recording the current peak value as j, and calculating one step, so that the whole judging process compares the two epochs at most
Figure BDA0002428496970000073
Next, the process is carried out. In order to avoid false peaks of a section of epoch below the peak value, a jump false peak avoidance mechanism is used:
Figure BDA0002428496970000074
the waveform is divided into two parts, peak bottom-peak top, peak top-peak bottom. May then be at
Figure BDA0002428496970000075
The epoch starts to search for a new step which meets the threshold acceleration, so that the jump false peak avoiding mechanism can not only remove false peaks, but also reduce the calculation time.
Further, obtaining the walking frequency of the person to be tested, and determining whether the walking frequency meets the preset frequency range further comprises: if the walking frequency is the first step of the person to be tested, the walking frequency is 2 HZ.
It should be noted that, the acceleration meeting the empirical threshold of 1.12g is searched, and the time t of the current k epoch is recordedkAnd proceeds to the next step. The human walking frequency is typically [0.5,5 ]]HZ, calculating the current frequency:
Figure BDA0002428496970000076
if it is not
Figure BDA0002428496970000077
In [0.5,5 ]]HZ goes to the next step. If it is the first step, the frequency of the first step can be considered as 2Hz from the empirical value. Because of the first stepTime immediately before the absence of frequency of (c):
further, the air conditioner is provided with a fan,
the calculating the maximum contrast number of the acceleration peak and the jumping degree of the jumping false peak according to the walking frequency data comprises the following steps:
calculating the time required for obtaining one step in the epoch time according to a first formula:
Figure BDA0002428496970000078
wherein k represents k epoch time; n is a radical ofkThe time required for the person to be measured to walk one step in the time period of the k epoch; f. ofMiningIs the sampling frequency of the device;
Figure BDA0002428496970000079
the walking frequency of the person to be tested;
and calculating and obtaining a first comparison time according to a second formula:
Figure BDA0002428496970000081
wherein the content of the first and second substances,
Figure BDA0002428496970000082
the number of contrasts representing the acceleration of k epochs is
Figure BDA0002428496970000083
Calculating and obtaining the jump length according to a third formula:
Figure BDA0002428496970000084
wherein the content of the first and second substances,
Figure BDA0002428496970000085
represents a jump length of k epochs of
Figure BDA0002428496970000086
It should be noted that the window length of the judgment peak value and the jump length of the jump false peak avoidance mechanism are calculated. The vertical acceleration waveform shows that when a person walks in one step, the person has a regular fluctuation, namely peak bottom, peak top and peak bottom, so that the person is divided into three parts, namely wave bottom, wave peak and wave bottom, and the length of a window for judging the peak value can be obtained by a formula (2)
Figure BDA0002428496970000087
After the peak value, the aftershock of the walking vibration of a person may occur, and the aftershock also meets a preset threshold value, namely a false peak, so that the false peak can be perfectly avoided by a jumping false peak avoiding mechanism as long as the next search jumps from the top of the current peak to the bottom of a new waveform wave at the next time. Therefore, the waveform can be divided into peak bottom-peak top and peak top-peak bottom, and the jump length can be obtained by the formula (3)
Figure BDA0002428496970000088
Further, the calculating the position of the acceleration peak value, and the calculating and obtaining the search acceleration position according to the maximum contrast number of the acceleration peak value and the jump length specifically includes:
comparing the acceleration of the epoch time with the acceleration of the next epoch time, wherein if the acceleration of the epoch time is larger, the acceleration of the epoch time is the peak value of the corresponding wave crest; if the acceleration of the next epoch time is larger, the maximum contrast frequency of the next epoch time is
Figure BDA0002428496970000089
If the peak position is found, the jump length is determined
Figure BDA00024284969700000810
Anew after the peak position epoch
Figure BDA00024284969700000811
The epoch searches for a new acceleration that meets the threshold.
Note that the position of the peak is calculated, and the position of the acceleration is searched for next time. Firstly, a peak value is obtained by neighborhood progressive comparison, namely the acceleration a of k epochkAnd a of k +1 epochk+1By contrast, if ak+1Larger, enter next comparison with ak+2Comparison, the number of comparison is
Figure BDA00024284969700000812
If the former is larger than the latter, the former is considered to be the peak of this peak. The epoch of the peak at this time is
Figure BDA00024284969700000813
Figure BDA00024284969700000814
Recording the step of walking, and finally jumping to a new wave bottom at the position of the new wave bottom
Figure BDA00024284969700000815
An epoch.
The steps are the step counting method for the walking of the person. Tables 1 and 2 compare the results: the test is performed in 200 steps, because the present application is performed at the normal walking frequency, the accuracy of the result compared with 2 is almost the same, but if the device refresh frequency of the present application is less than 50HZ, the walking frequency of the person is 5HZ, and the false peak is removed by comparing 5 epochs before and after the neighborhood, and the 5 epochs in length can contain the previous true peak, so that a true peak is removed. Under the condition of calculation time, the method provided by the application can save time and can reduce the calculation time by about 29%.
Table one: step counting comparison
Figure BDA0002428496970000091
Table two: temporal comparison
Figure BDA0002428496970000092
For easy understanding, please refer to fig. 2, fig. 2 is a schematic structural diagram of an inertia-based step-counting device provided in the present application;
a second aspect of the present application provides an inertia-based step-counting device, comprising:
the data acquisition module 10 is used for acquiring acceleration data meeting a preset threshold value and recording epoch time; the epoch time is sampling point time;
the judging module 20 is used for acquiring the walking frequency of the person to be tested and judging whether the walking frequency meets a preset frequency range;
a first calculation module 30 for calculating the maximum contrast number of the acceleration peak and the jump length of the jump false peak according to the walking frequency data;
and the second calculation module 40 is used for calculating the position of the acceleration peak value and calculating and obtaining the position of the searched acceleration according to the maximum contrast times of the acceleration peak value and the jump length.
Further, the determining module 20 is further configured to determine that the walking frequency is 2HZ if the walking frequency is the first step of the subject.
Further, the first calculation module 30 includes:
a time calculating unit, configured to calculate, according to a first formula, a time required to obtain a step in the epoch time:
Figure BDA0002428496970000101
wherein k represents k epoch time; n is a radical ofkThe time required for the person to be measured to walk one step in the time period of the k epoch; f. ofMiningIs the sampling frequency of the device;
Figure BDA0002428496970000102
the walking frequency of the person to be tested;
the first comparison frequency calculation unit is used for calculating and obtaining the comparison frequency according to a second formula:
Figure BDA0002428496970000103
wherein the content of the first and second substances,
Figure BDA0002428496970000104
the number of contrasts representing the acceleration of k epochs is
Figure BDA0002428496970000105
And the second comparison frequency calculation unit calculates and obtains the jump length according to a third formula:
Figure BDA0002428496970000106
wherein the content of the first and second substances,
Figure BDA0002428496970000107
represents a jump length of k epochs of
Figure BDA0002428496970000108
Further, the second calculating module 40 is specifically configured to:
comparing the acceleration of the epoch time with the acceleration of the next epoch time, wherein if the acceleration of the epoch time is larger, the acceleration of the epoch time is the peak value of the corresponding wave crest; if the acceleration of the next epoch time is larger, the maximum contrast frequency of the next epoch time is
Figure BDA0002428496970000109
If the peak position is found, the jump length is determined
Figure BDA00024284969700001010
Anew after the peak position epoch
Figure BDA00024284969700001011
The epoch searches for a new acceleration that meets the threshold.
A third aspect of the present application provides an inertia-based step-counting device, the device comprising a processor and a memory:
the memory is used for storing the program codes and transmitting the program codes to the processor;
the processor is configured to execute an inertia based step counting method of the above embodiments according to instructions in the program code.
A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is configured to store program code for executing an inertia-based step counting method of the foregoing embodiment.
The terms "comprises," "comprising," and any other variation thereof in the description and the drawings described above are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. An inertia-based step-counting method, comprising:
acquiring acceleration data meeting a preset threshold value, and recording epoch time; the epoch time is sampling point time;
acquiring the walking frequency of a person to be tested, and judging whether the walking frequency meets a preset frequency range;
calculating the maximum contrast times of the acceleration peak values and the jumping length of jumping false peak values according to the walking frequency data;
and calculating the position of the acceleration peak value, and calculating to obtain the position of the searched acceleration according to the maximum contrast times of the acceleration peak value and the jump length.
2. The inertia-based step counting method according to claim 1, wherein the obtaining the walking frequency of the person under test and determining whether the walking frequency meets a preset frequency range further comprises: and if the walking frequency is the first step of the testee, the walking frequency is 2 HZ.
3. The inertia-based step counting method of claim 1, wherein the calculating the maximum number of comparisons of acceleration peaks and the degree of jumping false peaks from the walking frequency data comprises:
calculating the time required for obtaining one step in the epoch time according to a first formula:
Figure FDA0002428496960000011
wherein k represents k epoch time; n is a radical ofkThe time required for the person to be measured to walk one step in the time period of the k epoch; f. ofMiningIs the sampling frequency of the device;
Figure FDA0002428496960000012
the walking frequency of the person to be tested;
and calculating and obtaining a first comparison time according to a second formula:
Figure FDA0002428496960000013
wherein the content of the first and second substances,
Figure FDA0002428496960000014
the number of contrasts representing the acceleration of k epochs is
Figure FDA0002428496960000015
Calculating and obtaining the jump length according to a third formula:
Figure FDA0002428496960000016
wherein the content of the first and second substances,
Figure FDA0002428496960000017
represents a jump length of k epochs of
Figure FDA0002428496960000018
4. The inertia-based step counting method of claim 1, wherein the calculating the position of the acceleration peak and the calculating the search acceleration position according to the maximum contrast number of the acceleration peak and the jump length specifically comprises:
comparing the acceleration of the epoch time with the acceleration of the next epoch time, wherein if the acceleration of the epoch time is larger, the acceleration of the epoch time is the peak value of the corresponding wave crest; if the acceleration of the next epoch time is larger, the maximum contrast frequency of the next epoch time is
Figure FDA0002428496960000021
If the peak position is found, the jump length is determined
Figure FDA0002428496960000022
Anew after the peak position epoch
Figure FDA0002428496960000023
The epoch searches for a new acceleration that meets the threshold.
5. An inertia-based step-counting device, comprising:
the data acquisition module is used for acquiring acceleration data meeting a preset threshold value and recording epoch time; the epoch time is sampling point time;
the judging module is used for acquiring the walking frequency of the person to be detected and judging whether the walking frequency meets a preset frequency range;
the first calculation module is used for calculating the maximum contrast times of the acceleration peak values and the jumping length of jumping false peak values according to the walking frequency data;
and the second calculation module is used for calculating the position of the acceleration peak value and calculating to obtain the position of the searched acceleration according to the maximum contrast times of the acceleration peak value and the jump length.
6. The inertia-based step-counting device of claim 5, wherein the determining module is further configured to determine that the walking frequency is 2Hz if the walking frequency is the first step of the person under test.
7. The inertial-based step-counting device of claim 5, wherein the first computing module comprises:
a time calculating unit, configured to calculate, according to a first formula, a time required to obtain a step in the epoch time:
Figure FDA0002428496960000024
wherein k represents k epoch time; n is a radical ofkThe time required for the person to be measured to walk one step in the time period of the k epoch; f. ofMiningIs the sampling frequency of the device;
Figure FDA0002428496960000025
the walking frequency of the person to be tested;
the first comparison frequency calculation unit is used for calculating and obtaining the comparison frequency according to a second formula:
Figure FDA0002428496960000026
wherein the content of the first and second substances,
Figure FDA0002428496960000027
the number of contrasts representing the acceleration of k epochs is
Figure FDA0002428496960000028
And the second comparison frequency calculation unit calculates and obtains the jump length according to a third formula:
Figure FDA0002428496960000029
wherein the content of the first and second substances,
Figure FDA0002428496960000031
represents a jump length of k epochs of
Figure FDA0002428496960000032
8. The inertia-based step counting apparatus of claim 5, wherein the second computing module is specifically configured to:
comparing the acceleration of the epoch time with the acceleration of the next epoch time, wherein if the acceleration of the epoch time is larger, the acceleration of the epoch time is the peak value of the corresponding wave crest; if the acceleration of the next epoch time is larger, the maximum contrast frequency of the next epoch time is
Figure FDA0002428496960000033
If the peak position is found, the jump length is determined
Figure FDA0002428496960000034
Anew after the peak position epoch
Figure FDA0002428496960000035
The epoch searches for a new acceleration that meets the threshold.
9. An inertia-based step-counting device, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute an inertia based step-counting method according to any one of claims 1 to 4 according to instructions in the program code.
10. A computer-readable storage medium for storing program code for performing an inertia based step-counting method according to any one of claims 1 to 4.
CN202010228394.1A 2020-03-27 2020-03-27 Step counting method, device and equipment based on inertia and storage medium Active CN111442785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010228394.1A CN111442785B (en) 2020-03-27 2020-03-27 Step counting method, device and equipment based on inertia and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010228394.1A CN111442785B (en) 2020-03-27 2020-03-27 Step counting method, device and equipment based on inertia and storage medium

Publications (2)

Publication Number Publication Date
CN111442785A true CN111442785A (en) 2020-07-24
CN111442785B CN111442785B (en) 2021-01-26

Family

ID=71649025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010228394.1A Active CN111442785B (en) 2020-03-27 2020-03-27 Step counting method, device and equipment based on inertia and storage medium

Country Status (1)

Country Link
CN (1) CN111442785B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113008242A (en) * 2021-03-19 2021-06-22 深圳市慧鲤科技有限公司 User behavior data processing method, device, equipment and storage medium
CN114593747A (en) * 2020-12-04 2022-06-07 深圳市青橙无线科技有限公司 Search domain estimation method and step counting method based on energy accumulation prior

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105004349A (en) * 2015-06-30 2015-10-28 深圳市元征科技股份有限公司 Step calculation method
CN105180959A (en) * 2015-09-01 2015-12-23 北京理工大学 Anti-interference step counting method for wrist type step counting devices
CN106017502A (en) * 2016-05-17 2016-10-12 中国地质大学(武汉) Step counting method and electronic device
CN107462258A (en) * 2017-07-13 2017-12-12 河海大学 A kind of step-recording method based on mobile phone 3-axis acceleration sensor
CN109190553A (en) * 2018-08-30 2019-01-11 上海奥孛睿斯科技有限公司 Step detection method
KR20190017467A (en) * 2017-08-11 2019-02-20 아주대학교산학협력단 Step counter detection apparatus and method using quantized acceleration momentum signal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105004349A (en) * 2015-06-30 2015-10-28 深圳市元征科技股份有限公司 Step calculation method
CN105180959A (en) * 2015-09-01 2015-12-23 北京理工大学 Anti-interference step counting method for wrist type step counting devices
CN106017502A (en) * 2016-05-17 2016-10-12 中国地质大学(武汉) Step counting method and electronic device
CN107462258A (en) * 2017-07-13 2017-12-12 河海大学 A kind of step-recording method based on mobile phone 3-axis acceleration sensor
KR20190017467A (en) * 2017-08-11 2019-02-20 아주대학교산학협력단 Step counter detection apparatus and method using quantized acceleration momentum signal
CN109190553A (en) * 2018-08-30 2019-01-11 上海奥孛睿斯科技有限公司 Step detection method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114593747A (en) * 2020-12-04 2022-06-07 深圳市青橙无线科技有限公司 Search domain estimation method and step counting method based on energy accumulation prior
CN114593747B (en) * 2020-12-04 2024-04-05 深圳市青橙无线科技有限公司 Search domain estimation method and step counting method based on energy accumulation priori
CN113008242A (en) * 2021-03-19 2021-06-22 深圳市慧鲤科技有限公司 User behavior data processing method, device, equipment and storage medium
CN113008242B (en) * 2021-03-19 2024-06-07 深圳市慧鲤科技有限公司 User behavior data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111442785B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
US10653339B2 (en) Time and frequency domain based activity tracking system
JP6674791B2 (en) Congestion degree estimation method, number of persons estimation method, congestion degree estimation program, number of persons estimation program, and number of persons estimation system
US10423728B2 (en) Clustering method for a point of interest and related apparatus
RU2625370C2 (en) Method and device for detecting lift movement
CN111442785B (en) Step counting method, device and equipment based on inertia and storage medium
Ahn et al. RescueMe: An indoor mobile augmented-reality evacuation system by personalized pedometry
US20140378159A1 (en) Using movement patterns to anticipate user expectations
US20130184007A1 (en) Methods and apparatuses for context determination
EP2988099A1 (en) Estimating local motion of physical exercise
Sumida et al. Estimating heart rate variation during walking with smartphone
KR20140116481A (en) Activity classification in a multi-axis activity monitor device
EP2645064A1 (en) System and method for adjusting step detection based on motion information
EP3090684A1 (en) Pedometer and method for analyzing motion data
EP3090685A1 (en) Pedometer and method for analyzing motion data
US20140257766A1 (en) Adaptive probabilistic step detection for pedestrian positioning
CN107393260B (en) Sedentariness reminding method and device and wrist type sedentariness reminder
KR20140050639A (en) Context extraction
CN109523574A (en) A kind of run trace prediction technique and electronic equipment
US11782496B2 (en) Smart context subsampling on-device system
Pipelidis et al. A novel lightweight particle filter for indoor localization
EP3561452A1 (en) Information processing device, information processing method, and information processing program
CN113008242B (en) User behavior data processing method, device, equipment and storage medium
KR20120081739A (en) Apparatus and method for recognizing user state in real-time
CN109520508A (en) Localization method, device and positioning device
De Araujo et al. An algorithm for fall detection using data from smartwatch

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant