CN106248100A - A kind of step-recording method and terminal - Google Patents
A kind of step-recording method and terminal Download PDFInfo
- Publication number
- CN106248100A CN106248100A CN201610537654.7A CN201610537654A CN106248100A CN 106248100 A CN106248100 A CN 106248100A CN 201610537654 A CN201610537654 A CN 201610537654A CN 106248100 A CN106248100 A CN 106248100A
- Authority
- CN
- China
- Prior art keywords
- time window
- waveform
- interior
- user
- move
- 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.)
- Withdrawn
Links
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
Abstract
The embodiment of the invention discloses a kind of step-recording method and terminal, during to improve user movement in terms of step precision.Described method includes: obtain waveform r (t) that the real time acceleration data of user movement brief acceleration meter output are constituted;Judge that user is at time window TnThe most whether move and move a step, the most then carry out step number and add up;If cannot judge, user is at described time window TnThe most whether move and move a step, then add up, based on inertia compensation algorithm, the step number that user moves.The present invention will combine based on waveform similarity with based on inertia compensation algorithm, it is possible to whether the user accurately calculated in motion moves one's steps and the step number of movement under various scenes.
Description
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of step-recording method and terminal.
Background technology
Along with science and technology development and MEMS (Micro-Electro-Mechanical System,
MEMS) inertial sensor is universal, the increasing electronic equipment such as pedometer, mobile phone, intelligent watch have gyroscope and
Accelerometer, can help user's statistics collection movable information, analyzes the kinestate of user.
Existing step-recording method is the accekeration being gathered user movement by accelerometer mostly, finds the crest of acceleration
And trough, the difference of adjacent peaks and trough is compared with the threshold value preset, judges whether user occurs according to comparative result
Move one's steps.If moving one's steps, then add up a step.
But, the threshold value used in above-mentioned existing step-recording method, it sets by more multifactor, and the motion of such as people is special
Levy, the impact of acceleration calculation equipment etc., cause the method to be only applicable to user's uniform motion and terminal unit position be fixing
Scene, and the scene of non-uniform movement loiters etc. for user and/or field time terminal unit position changes relative to human body
Scape (such as, terminal unit takes waves on foot etc.) is easy to judge by accident, causes meter step precise decreasing.On the other hand,
For terminal units such as mobile phones, mobile phone is uncertain relative to the position of human body, and the moving scene of people is different, also results in meter step essence
Degree decline, such as, mobile phone take wave on foot, mobile phone is placed on trouser pocket stair activity etc..
Summary of the invention
The embodiment of the present invention provides a kind of step-recording method and terminal, during to improve user movement in terms of step precision.
First aspect, embodiments provides a kind of step-recording method, and described method includes:
Obtain waveform r (t) that the real time acceleration data of user movement brief acceleration meter output are constituted;
Judge that described user is at time window TnThe most whether move and move a step, the most then carry out step number and add up, described time window
Mouth TnIt it is any two adjacent trough span on time shaft t in described waveform r (t);
If cannot judge, described user is at described time window TnThe most whether move and move a step, then tire out based on inertia compensation algorithm
Count the step number that described user moves.
On the other hand, embodiments providing a kind of terminal, described terminal includes:
Waveform acquiring unit, by obtaining the waveform that based on user movement brief acceleration, the real time acceleration data of output are constituted
r(t);
First summing elements, is used for judging that described user is at time window TnThe most whether move and move a step, the most then walk
Number is cumulative, described time window TnIt it is any two adjacent trough span on time shaft t in described waveform r (t);
Second summing elements, if for judging that described user is at described time window TnThe most whether move and move a step, then
The step number that described user moves is added up based on inertia compensation algorithm.
The waveform r that the embodiment of the present invention is consisted of the real time acceleration data obtaining the output of user movement brief acceleration meter
(t);Judge that described user is at time window TnThe most whether move and move a step, the most then carry out step number and add up, described time window Tn
It it is any two adjacent trough span on time shaft t in described waveform r (t);If cannot judge, described user is when described
Between window TnThe most whether move and move a step, then add up, based on inertia compensation algorithm, the step number that described user moves, it is possible to increase user
Meter step precision during motion.
Accompanying drawing explanation
In order to be illustrated more clearly that embodiment of the present invention technical scheme, required use in embodiment being described below
Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is some embodiments of the present invention, general for this area
From the point of view of logical technical staff, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow diagram of the step-recording method that the embodiment of the present invention one provides;
Fig. 2 be the embodiment of the present invention two provide the user movement carrying terminal containing acceleration calculation equipment time described in
The waveform diagram that the real time acceleration data of acceleration calculation equipment output are constituted;
Fig. 3 is the schematic flow diagram of the step-recording method that the embodiment of the present invention three provides;
Fig. 4 is the schematic block diagram of the terminal that the embodiment of the present invention four provides;
Fig. 5 is the schematic block diagram of the terminal that the embodiment of the present invention five provides;
Fig. 6 is the schematic block diagram of the terminal that the embodiment of the present invention six provides;
Fig. 7 is the schematic block diagram of the terminal that the embodiment of the present invention seven provides;
Fig. 8 is the schematic block diagram of the terminal that the embodiment of the present invention eight provides;
Fig. 9 is the schematic block diagram of the terminal that the embodiment of the present invention nine provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of protection of the invention.
Should be appreciated that when using in this specification and in the appended claims, term " includes " and " comprising " instruction
Described feature, entirety, step, operation, element and/or the existence of assembly, but it is not precluded from one or more further feature, whole
Body, step, operation, element, assembly and/or the existence of its set or interpolation.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Hereafter clearly indicating other situation, otherwise " ", " " and " being somebody's turn to do " of singulative is intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is
Refer to the one or more any combination being associated in the item listed and likely combine, and including that these combine.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase is " if really
Fixed " or " if be detected that [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " ring
Should be in determining " or " [described condition or event] once being detected " or " in response to [described condition or event] being detected ".
In implementing, the terminal described in the embodiment of the present invention includes but not limited to such as have touch sensitive surface
Mobile phone, laptop computer or the tablet PC of (such as, touch-screen display and/or touch pad) etc other just
Portable device.It is to be further understood that in certain embodiments, described equipment not portable communication device, but have tactile
Touch the desk computer of sensing surface (such as, touch-screen display and/or touch pad).
In discussion below, describe the terminal including display and touch sensitive surface.It is, however, to be understood that
It is that terminal can include such as physical keyboard, mouse and/or control other physical user-interface device one or more of bar.
Terminal supports various application programs, such as following in one or more: drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, dish imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support the application of application program, photo management application program, digital camera application program, digital camera application program, web-browsing
Program, digital music player application and/or video frequency player application program.
The various application programs that can perform in terminal can use at least one of such as touch sensitive surface public
Physical user-interface device.Among applications and/or can adjust in corresponding application programs and/or change and touch sensitive table
The corresponding information of display in one or more functions in face and terminal.So, the public physical structure of terminal (such as, touches
Sensing surface) the various application programs with the most directly perceived and transparent user interface can be supported.
See accompanying drawing 1, be the schematic flow diagram of a kind of step-recording method that the embodiment of the present invention provides.The present embodiment is fallen into a trap step
The executive agent of method can be the terminal with acceleration calculation equipment.Terminal can be mobile phone, panel computer etc..Such as accompanying drawing 1
Shown step-recording method can comprise the following steps S101 to S103, describes in detail as follows:
S101, obtains waveform r (t) that the real time acceleration data of user movement brief acceleration meter output are constituted.
In embodiments of the present invention, " user " refers to carry the people of the terminal containing accelerometer, such as, carries also
The people of the mobile terminal of accelerometer.As one embodiment of the invention, obtain the real-time of user movement brief acceleration meter output
Waveform r (t) that acceleration information is constituted may is that and obtains the terminal acceleration information in x-axis, y-axis and z-axis direction the most in real time
ax、ayAnd az, then, these data are carried out the filtering of signal, finally, according to formulaThe number calculated
According to and with time t as variable, the curve plotted at two dimensional surface is exactly waveform r (t) that real time acceleration data are constituted.
S102, it is judged that user is at time window TnThe most whether move and move a step, the most then carry out step number and add up, wherein, the time
Window TnIt it is any two adjacent trough span on time shaft t in waveform r (t).
In embodiments of the present invention, time window TnBe in waveform r (t) the adjacent trough of any two on time shaft t
Span.As shown in Figure 2, in waveform r (t), the moment T that trough is correspondingrnThe moment T corresponding with adjacent troughrn-aBetween time
Between span be exactly time window Tn.As one embodiment of the invention, it is judged that user is at time window TnThe most whether move that move a step can
Being based on waveform similarity, it is judged that user is at time window TnThe most whether move and move a step, specifically can be as follows
S1021 and step S1022 realize:
S1021, calculates time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aBetween similarity P, its
In, time window Tn-1It is next-door neighbour time window Tn, on time shaft t prior to time window TnAnd in waveform r (t) two adjacent
Trough span on time shaft t.
Specifically, it is assumed that two signals are respectively x (t), y (t), dependency statistically is utilized to ask for this two segment signal
Correlation coefficient, i.e. time window TnInterior waveform raWith time window Tn-1Interior waveform raSimilarity P between '.At this
In bright embodiment, when two sections of waveforms are identical, the value of similarity P is 1, and time entirely different, the value of similarity P is 0.Thus say
Bright, the value of similarity P is the biggest, time window TnInterior waveform raWith time window Tn-1Interior waveform ra' the most similar, otherwise, phase
The least like the value of degree P, time window TnInterior waveform raWith time window Tn-1Interior waveform ra' the most dissimilar.
It should be noted that calculating time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aBetween
Before similarity P, it is also possible to moving one's steps, frequency the most effectively judges.In embodiments of the present invention, it is described by judging
Time window TnWhether within the scope of the default cycle of moving one's steps, such as, if judged in 0.2s to 2 second.
S1022, if time window TnInterior waveform raWith time window Tn-1Interior waveform raSimilarity P between ' is more than
The similarity threshold P presetv, it is determined that user is at time window TnInterior shifting moves a step.
In embodiments of the present invention, similarity threshold PvIt it is an empirical value.As previously described, because the value of similarity P is more
Greatly, time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aThe most similar, therefore, similarity threshold PvShould be
Time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aSimilarity minima corresponding time similar.
S103, if cannot judge, user is at time window TnThe most whether move and move a step, then add up based on inertia compensation algorithm
The step number that user moves.
Knowable to the step-recording method of above-mentioned accompanying drawing 1 example, when based on waveform similarity, it is impossible to judge whether user is moving one's steps
Time, calculate whether user is moving based on inertia compensation algorithm, and the step number that accumulative user moves.Compared to prior art only
Using based on waveform similarity or the like, cannot calculate the step number that user moves in some scenarios, the present invention will be based on
Waveform similarity and combining based on inertia compensation algorithm, when the former cannot calculate the step number that user moves, the latter is as one
Plant compensatory algorithm, therefore, it is possible to whether the user accurately calculated in motion moves one's steps and the step number of movement under various scenes.
See accompanying drawing 3, be the schematic flow diagram of the step-recording method that another embodiment of the present invention provides.The present embodiment is fallen into a trap step
The executive agent of method is terminal.Terminal can be the mobile terminal such as mobile phone, panel computer.Step-recording method can as shown in Figure 3
Comprise the following steps S301 to S305, describe in detail as follows:
S301, obtains waveform r (t) that the real time acceleration data of user movement brief acceleration meter output are constituted.
In embodiments of the present invention, " user " refers to carry the people of the terminal containing accelerometer, such as, carries also
The people of the mobile terminal of accelerometer.As one embodiment of the invention, obtain the user carrying the terminal containing accelerometer
Waveform r (t) that the real time acceleration data of motion brief acceleration meter output are constituted may is that and obtains terminal the most in real time at x-axis, y
The acceleration information a in axle and z-axis directionx、ayAnd az, then, these data are carried out the filtering of signal, finally, according to formulaThe data calculated with time t as variable, the curve plotted at two dimensional surface is exactly to accelerate in real time
Waveform r (t) that degrees of data is constituted.
S302, it is judged that user is at time window TnThe most whether move and move a step, the most then carry out step number and add up, wherein, the time
Window TnIt it is any two adjacent trough span on time shaft t in waveform r (t).
In embodiments of the present invention, time window TnBe in waveform r (t) the adjacent trough of any two on time shaft t
Span.As shown in Figure 2, in waveform r (t), the moment T that trough is correspondingrnThe moment T corresponding with adjacent troughrn-aBetween time
Between span be exactly time window Tn.As one embodiment of the invention, it is judged that user is at time window TnThe most whether move and move a step
Can be based on waveform similarity, it is judged that user is at time window TnThe most whether move and move a step, specifically can be as follows
S3021 and step S3022 realize:
S3021, calculates time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aBetween similarity P, its
In, time window Tn-1It is next-door neighbour time window Tn, on time shaft t prior to time window TnAnd in waveform r (t) two adjacent
Trough span on time shaft t.
Specifically, it is assumed that two signals are respectively x (t), y (t), dependency statistically is utilized to ask for this two segment signal
Correlation coefficient, i.e. time window TnInterior waveform raWith time window Tn-1Interior waveform raSimilarity P between '.At this
In bright embodiment, when two sections of waveforms are identical, the value of similarity P is 1, and time entirely different, the value of similarity P is 0.Thus say
Bright, the value of similarity P is the biggest, time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aThe most similar, otherwise, phase
The least like the value of degree P, time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aThe most dissimilar.
It should be noted that calculating time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aBetween
Before similarity P, it is also possible to moving one's steps, frequency the most effectively judges.In embodiments of the present invention, it is described by judging
Time window TnWhether within the scope of the default cycle of moving one's steps, such as, if judged in 0.2s to 2 second.
S3022, if time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aBetween similarity P be more than
The similarity threshold P presetv, it is determined that user is at time window TnInterior shifting moves a step.
In embodiments of the present invention, similarity threshold PvIt it is an empirical value.As previously described, because the value of similarity P is more
Greatly, time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aThe most similar, therefore, similarity threshold PvShould be
Time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aSimilarity minima corresponding time similar.
S303, if cannot judge, user is at time window TnThe most whether move and move a step, then ask for Preset Time window TaInterior ripple
Meansigma methods r of shape amplitudeavgAnd dynamic threshold rg, wherein, rg=k*ravg, k is empirical coefficient.
In embodiments of the present invention, Preset Time window TaMeansigma methods r of interior waveforms amplitudeavgI.e. ravg=(rn+rn-1
+,...,+r2+r1)/n.It should be noted that in order to solve signal disturbing, need effective cadence is judged.In the present invention
In embodiment, Preset Time window T can asked foraMeansigma methods r of interior waveforms amplitudeavgAnd dynamic threshold rgBefore, pass through
Judge Preset Time window TaWhether within the scope of the default cycle of moving one's steps, such as, if sentenced in 0.2s to 2 second
Disconnected.
S304, compares Preset Time window TaThe peak value r of interior waveformmaxWith dynamic threshold rgAnd valley rminWith dynamic threshold
Value rgMagnitude relationship.
S305, if rmaxMore than rg, and rminLess than rg, it is determined that user is at time window TnInterior shifting moves a step and adds up.
Knowable to the step-recording method of above-mentioned accompanying drawing 3 example, when based on waveform similarity, it is impossible to judge whether user is moving one's steps
Time, calculate whether user is moving based on inertia compensation algorithm, and the step number that accumulative user moves.Compared to prior art only
Using based on waveform similarity or the like, cannot calculate the step number that user moves in some scenarios, the present invention will be based on
Waveform similarity and combining based on inertia compensation algorithm, when the former cannot calculate the step number that user moves, the latter is as one
Plant compensatory algorithm, therefore, it is possible to whether the user accurately calculated in motion moves one's steps and the step number of movement under various scenes.
See accompanying drawing 4, be the schematic block diagram of a kind of terminal that the embodiment of the present invention provides.Terminal can be mobile phone, put down
The mobile terminals such as plate computer, but it is not limited to this, it is also possible to for other-end, do not limit.The terminal bag of the present embodiment
The each module included each step in the embodiment performing accompanying drawing 1 or accompanying drawing 3 correspondence, specifically refer to accompanying drawing 1 or accompanying drawing 3 with
And the associated description in the embodiment of accompanying drawing 1 or accompanying drawing 3 correspondence, do not repeat.The terminal of the present embodiment includes that waveform obtains
Unit the 401, first summing elements 402 and the second summing elements 403, wherein:
Waveform acquiring unit 401, by obtaining what the real time acceleration data of output based on user movement brief acceleration were constituted
Waveform r (t);
First summing elements 402, is used for judging that user is at time window TnThe most whether move and move a step, the most then walk
Number is cumulative, wherein, and time window TnIt it is any two adjacent trough span on time shaft t in waveform r (t);
Second summing elements 403, if for judging that user is at time window TnThe most whether move and move a step, then based on used
Property backoff algorithm adds up the step number that user moves.
First summing elements 402 of accompanying drawing 4 example can include that computing unit 501 and first determines unit 502, such as accompanying drawing
The terminal that the embodiment of the present invention five shown in 5 provides, wherein:
Computing unit 501, is used for calculating time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aBetween
Similarity P, wherein, time window Tn-1It is next-door neighbour time window Tn, on time shaft t prior to time window TnAnd waveform r (t)
In two adjacent troughs span on time shaft t;
First determines unit 502, if for time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aBetween
Similarity P more than preset similarity threshold Pv, it is determined that user is at time window TnInterior shifting moves a step.
The terminal of accompanying drawing 5 example can also include the first judging unit 601, and the embodiment of the present invention six carries as shown in Figure 6
The terminal of confession.First judging unit 601 calculates time window T for computing unit 501nInterior waveform raWith time window Tn-1In
Waveform r 'aBetween similarity P before, it is judged that time window TnWhether within the scope of the default cycle of moving one's steps.
Second summing elements 403 of accompanying drawing 4 example can include that asking for unit 701, comparing unit 702 and second determines list
Unit 703, the terminal that the embodiment of the present invention seven provides as shown in Figure 7, wherein:
Ask for unit 701, be used for asking for Preset Time window TaMeansigma methods r of interior waveforms amplitudeavgAnd dynamic threshold rg,
Wherein, rg=k*ravg, k is empirical coefficient;
Comparing unit 702, is used for comparing Preset Time window TaThe peak value r of interior waveformmaxWith dynamic threshold rgAnd valley
rminWith dynamic threshold rgMagnitude relationship;
Second determines unit 703, if for rmaxMore than rg, and rminLess than rg, it is determined that user is at time window TnIn
Shifting moves a step and adds up.
The terminal of accompanying drawing 7 example can also include the second judging unit 801, and the embodiment of the present invention eight carries as shown in Figure 6
The terminal of confession.Second judging unit 801 is used for asking for unit 701 and asks for Preset Time window TaThe meansigma methods of interior waveforms amplitude
ravgAnd dynamic threshold rgBefore, it is judged that Preset Time window TaWhether within the scope of the default cycle of moving one's steps.
See Fig. 9, be a kind of terminal schematic block diagram of another embodiment of the present invention offer.In the present embodiment as depicted
Terminal may include that one or more processor 901;One or more input equipments 902, one or more outut devices
903 and memorizer 904.Above-mentioned processor 901, input equipment 902, outut device 903 and memorizer 904 are by bus 905 even
Connect.
Memorizer 904 is used for storing programmed instruction.
Processor 901 is for performing following operation according to the programmed instruction of memorizer 904 storage: add when obtaining user movement
Waveform r (t) that the real time acceleration data of velometer output are constituted;Judge that described user is at time window TnThe most whether move one
Step, the most then carry out step number and add up;If cannot judge, described user is at described time window TnThe most whether move and move a step, then base
The step number that described user moves is added up in inertia compensation algorithm, described time window TnIt it is any two in described waveform r (t)
Adjacent trough span on time shaft t.
Further, processor 901 is additionally operable to calculate time window TnInterior waveform raWith time window Tn-1Interior waveform
r′aBetween similarity P;If similarity P is more than the similarity threshold P presetv, it is determined that described user is at described time window
TnInterior shifting moves a step, wherein, and time window Tn-1It is next-door neighbour time window Tn, on time shaft t prior to time window TnAnd ripple
Two adjacent troughs span on time shaft t in shape r (t).
Further, processor 901 is additionally operable to calculate time window TnInterior waveform raWith time window Tn-1Interior waveform
r′aBetween similarity P before, it is judged that time window TnWhether within the scope of the default cycle of moving one's steps.
Further, processor 901 is additionally operable to ask for Preset Time window TaMeansigma methods r of interior waveforms amplitudeavgAnd it is dynamic
State threshold value rg;Relatively Preset Time window TaThe peak value r of interior waveformmaxWith dynamic threshold rgAnd valley rminWith dynamic threshold rg
Magnitude relationship;If rmaxMore than rg, and rminLess than rg, it is determined that user is at time window TnInterior shifting moves a step and adds up, its
In, rg=k*ravg, k is empirical coefficient.
Further, processor 901 is additionally operable to ask for Preset Time window TaMeansigma methods r of interior waveforms amplitudeavgAnd it is dynamic
State threshold value rgBefore, it is judged that Preset Time window TaWhether within the scope of the default cycle of moving one's steps.
Should be appreciated that in embodiments of the present invention, alleged processor 901 can be CPU (Central
Processing Unit, CPU), this processor can also is that other general processors, digital signal processor (Digital
Signal Processor, DSP), special IC (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device can also be the processor etc. of any routine.
Input equipment 902 can include that Trackpad, fingerprint adopt sensor (for gathering the finger print information of user and fingerprint
Directional information), mike etc., outut device 903 can include display (LCD etc.), speaker etc..
This memorizer 904 can include read only memory and random access memory, and to processor 901 provide instruction and
Data.A part for memorizer 904 can also include nonvolatile RAM.Such as, memorizer 904 can also be deposited
The information of storage device type.
In implementing, processor 901, input equipment 902 and outut device 903 described in the embodiment of the present invention can
Implementation described in the first embodiment of the step-recording method that the execution embodiment of the present invention provides and the second embodiment, it is possible to
The implementation of execution terminal described by the embodiment of the present invention, does not repeats them here.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example that the embodiments described herein describes
Unit and algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware
With the interchangeability of software, the most generally describe composition and the step of each example according to function.This
A little functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Specially
Industry technical staff can use different methods to realize described function to each specifically should being used for, but this realization is not
It is considered as beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience of description and succinctly, and the end of foregoing description
End and the specific works process of unit, be referred to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, can be passed through it
Its mode realizes.Such as, device embodiment described above is only schematically, such as, and the division of described unit, only
Being only a kind of logic function to divide, actual can have other dividing mode, the most multiple unit or assembly to tie when realizing
Close or be desirably integrated into another system, or some features can be ignored, or not performing.It addition, shown or discussed phase
Coupling between Hu or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication
Connect, it is also possible to be electric, machinery or other form connect.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention terminal can merge according to actual needs, divides and delete.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize embodiment of the present invention scheme
Purpose.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to be that two or more unit are integrated in a unit.Above-mentioned integrated
Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit
Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part in other words prior art contributed, or this technical scheme completely or partially can be with the form of software product
Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer
Equipment (can be personal computer, server, or the network equipment etc.) performs the complete of method described in each embodiment of the present invention
Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art, in the technical scope that the invention discloses, can readily occur in the amendment of various equivalence or replace
Changing, these amendments or replacement all should be contained within protection scope of the present invention.Therefore, protection scope of the present invention should be with right
The protection domain required is as the criterion.
Claims (10)
1. a step-recording method, it is characterised in that described method includes:
Obtain waveform r (t) that the real time acceleration data of user movement brief acceleration meter output are constituted;
Judge that described user is at time window TnThe most whether move and move a step, the most then carry out step number and add up, described time window Tn
It it is any two adjacent trough span on time shaft t in described waveform r (t);
If cannot judge, described user is at described time window TnThe most whether move and move a step, then add up institute based on inertia compensation algorithm
State the step number that user moves.
Method the most according to claim 1, it is characterised in that the described user of described judgement is at time window TnThe most whether move
Move a step and include:
Calculate described time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aBetween similarity P, the described time
Window Tn-1It is to be close to described time window Tn, on described time shaft t prior to described time window TnAnd described waveform r (t)
In two adjacent troughs span on time shaft t;
If described similarity P is more than the similarity threshold P presetv, it is determined that described user is at described time window TnInterior movement one
Step.
Method the most according to claim 2, it is characterised in that described calculating described time window TnInterior waveform raWith time
Between window Tn-1Interior waveform r 'aBetween similarity P before, described method also includes:
Judge described time window TnWhether within the scope of the default cycle of moving one's steps.
Method the most according to claim 1, it is characterised in that described add up described user based on inertia compensation algorithm and move
Step number include:
Ask for Preset Time window TaMeansigma methods r of interior waveforms amplitudeavgAnd dynamic threshold rg, described rg=k*ravg, described k
For empirical coefficient;
Relatively described Preset Time window TaThe peak value r of interior waveformmaxWith described dynamic threshold rgAnd valley rminWith described dynamically
Threshold value rgMagnitude relationship;
If described rmaxMore than described rg, and described rminLess than described rg, it is determined that described user is at time window TnInterior movement
One step also adds up.
Method the most according to claim 4, it is characterised in that described in ask for Preset Time window TaPutting down of interior waveforms amplitude
Average ravgAnd dynamic threshold rgBefore, described method also includes:
Judge described Preset Time window TaWhether within the scope of the default cycle of moving one's steps.
6. a terminal, it is characterised in that described terminal includes:
Waveform acquiring unit, by obtaining the waveform r that based on user movement brief acceleration, the real time acceleration data of output are constituted
(t);
First summing elements, is used for judging that described user is at time window TnThe most whether move and move a step, the most then carry out step number and tire out
Add, described time window TnIt it is any two adjacent trough span on time shaft t in described waveform r (t);
Second summing elements, if for judging that described user is at described time window TnThe most whether move and move a step, then based on used
Property backoff algorithm adds up the step number that described user moves.
Terminal the most according to claim 6, it is characterised in that described first summing elements includes:
Computing unit, is used for calculating described time window TnInterior waveform raWith time window Tn-1Interior waveform r 'aBetween phase
Seemingly spend P, described time window Tn-1It is to be close to described time window Tn, on described time shaft t prior to described time window TnAnd
And two adjacent troughs span on time shaft t in described waveform r (t);
First determines unit, if for described similarity P more than the similarity threshold P presetv, it is determined that described user is described
Time window TnInterior shifting moves a step.
Terminal the most according to claim 7, it is characterised in that described terminal also includes:
First judging unit, calculates described time window T for described computing unitnInterior waveform raWith time window Tn-1In
Waveform r 'aBetween similarity P before, it is judged that described time window TnWhether within the scope of the default cycle of moving one's steps.
Terminal the most according to claim 6, it is characterised in that described second summing elements includes:
Ask for unit, be used for asking for Preset Time window TaMeansigma methods r of interior waveforms amplitudeavgAnd dynamic threshold rg, described rg
=k*ravg, described k is empirical coefficient;
Comparing unit, for relatively described Preset Time window TaThe peak value r of interior waveformmaxWith described dynamic threshold rgAnd valley
rminWith described dynamic threshold rgMagnitude relationship;
Second determines unit, if for described rmaxMore than described rg, and described rminLess than described rg, it is determined that described user
At time window TnInterior shifting moves a step and adds up.
Terminal the most according to claim 9, it is characterised in that described terminal also includes:
Second judging unit, be used for described in ask for unit and ask for Preset Time window TaMeansigma methods r of interior waveforms amplitudeavgAnd it is dynamic
State threshold value rgBefore, it is judged that described Preset Time window TaWhether within the scope of the default cycle of moving one's steps.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610537654.7A CN106248100A (en) | 2016-07-07 | 2016-07-07 | A kind of step-recording method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610537654.7A CN106248100A (en) | 2016-07-07 | 2016-07-07 | A kind of step-recording method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106248100A true CN106248100A (en) | 2016-12-21 |
Family
ID=57613053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610537654.7A Withdrawn CN106248100A (en) | 2016-07-07 | 2016-07-07 | A kind of step-recording method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106248100A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107270932A (en) * | 2017-07-25 | 2017-10-20 | 电子科技大学 | Automatic step-recording method for terminal device |
CN107361774A (en) * | 2017-07-18 | 2017-11-21 | 北京动亮健康科技有限公司 | A kind of motion monitoring system and method based on cadence |
CN107393260A (en) * | 2017-07-31 | 2017-11-24 | 青岛真时科技有限公司 | A kind of sitting based reminding method, device and wrist type sitting reminiscences |
CN110044375A (en) * | 2019-04-30 | 2019-07-23 | 杭州电子科技大学 | A kind of novel step-recording method based on accelerometer |
CN112484747A (en) * | 2020-12-08 | 2021-03-12 | 北京小米松果电子有限公司 | Step counting method, step counting device and storage medium |
WO2021237659A1 (en) * | 2020-05-29 | 2021-12-02 | Beijing Didi Infinity Technology And Development Co., Ltd. | Indoor navigation |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008250963A (en) * | 2007-03-30 | 2008-10-16 | Matsushita Electric Works Ltd | Pedometer |
CN102954803A (en) * | 2012-08-09 | 2013-03-06 | 益体康(北京)科技有限公司 | Adaptive step-counting processing system and method |
CN102654405B (en) * | 2011-03-04 | 2014-09-10 | 美新半导体(无锡)有限公司 | Gait counting method and device based on acceleration sensor |
CN104713568A (en) * | 2015-03-31 | 2015-06-17 | 上海帝仪科技有限公司 | Gait recognition method and corresponding pedometer |
CN105004349A (en) * | 2015-06-30 | 2015-10-28 | 深圳市元征科技股份有限公司 | Step calculation method |
-
2016
- 2016-07-07 CN CN201610537654.7A patent/CN106248100A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008250963A (en) * | 2007-03-30 | 2008-10-16 | Matsushita Electric Works Ltd | Pedometer |
CN102654405B (en) * | 2011-03-04 | 2014-09-10 | 美新半导体(无锡)有限公司 | Gait counting method and device based on acceleration sensor |
CN102954803A (en) * | 2012-08-09 | 2013-03-06 | 益体康(北京)科技有限公司 | Adaptive step-counting processing system and method |
CN104713568A (en) * | 2015-03-31 | 2015-06-17 | 上海帝仪科技有限公司 | Gait recognition method and corresponding pedometer |
CN105004349A (en) * | 2015-06-30 | 2015-10-28 | 深圳市元征科技股份有限公司 | Step calculation method |
Non-Patent Citations (1)
Title |
---|
李越 等: "基于加速度传感器的无按键计步腕表低功耗算法", 《传感器与微系统》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107361774A (en) * | 2017-07-18 | 2017-11-21 | 北京动亮健康科技有限公司 | A kind of motion monitoring system and method based on cadence |
CN107361774B (en) * | 2017-07-18 | 2020-03-17 | 北京动亮健康科技有限公司 | Motion monitoring system and method based on step frequency |
CN107270932A (en) * | 2017-07-25 | 2017-10-20 | 电子科技大学 | Automatic step-recording method for terminal device |
CN107393260A (en) * | 2017-07-31 | 2017-11-24 | 青岛真时科技有限公司 | A kind of sitting based reminding method, device and wrist type sitting reminiscences |
CN107393260B (en) * | 2017-07-31 | 2020-04-21 | 歌尔科技有限公司 | Sedentariness reminding method and device and wrist type sedentariness reminder |
CN110044375A (en) * | 2019-04-30 | 2019-07-23 | 杭州电子科技大学 | A kind of novel step-recording method based on accelerometer |
WO2021237659A1 (en) * | 2020-05-29 | 2021-12-02 | Beijing Didi Infinity Technology And Development Co., Ltd. | Indoor navigation |
CN112484747A (en) * | 2020-12-08 | 2021-03-12 | 北京小米松果电子有限公司 | Step counting method, step counting device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106248100A (en) | A kind of step-recording method and terminal | |
US9030428B2 (en) | Generating haptic effects for dynamic events | |
JP6649947B2 (en) | Classifying touch input as unintentional or intentional | |
US9380148B2 (en) | Screen unlocking method, device and terminal | |
CN106441350A (en) | Step counting method and terminal | |
US9047011B2 (en) | Apparatus and method for providing a dynamic user interface in consideration of physical characteristics of a user | |
CN109739223B (en) | Robot obstacle avoidance control method and device, terminal device and storage medium | |
US20160246378A1 (en) | Systems and methods for providing context-sensitive haptic notification frameworks | |
CN106210521A (en) | A kind of photographic method and terminal | |
WO2014105934A1 (en) | Dynamic user interfaces adapted to inferred user contexts | |
CN105824610A (en) | Method and device for arranging application program icons based on terminal | |
CN106201178A (en) | A kind of adjustment screen display direction control method and terminal | |
CN106951069A (en) | The control method and virtual reality device of a kind of virtual reality interface | |
US20110199323A1 (en) | Touch sensing method and system using the same | |
CN108021242A (en) | Gyro data processing method, mobile terminal and computer-readable recording medium | |
CN106101450A (en) | The compensation method of a kind of ambient light intensity and mobile terminal | |
CN106406938A (en) | Application download method and terminal | |
CN108760214A (en) | Projected angle of impact acquisition methods and Related product | |
CN106200976A (en) | A kind of motion-activated method and terminal | |
CN107466387A (en) | A kind of method and device for detecting touch manner | |
CN106372476A (en) | Terminal and unlocking method thereof | |
CN106529231A (en) | User touch operation identification method and terminal | |
CN109634428A (en) | Electronic equipment, feedback prompts method, apparatus and terminal device | |
CN108509125A (en) | Method, apparatus, terminal and the computer readable storage medium of page turning | |
US10444899B2 (en) | Multiple threshold motion tolerance to filter coordinate jitter in touch sensing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20161221 |