[summary of the invention]
In view of the shortcoming of above-mentioned prior art, a purpose of the present invention is to provide a kind of step-counting processing system and method so that the acceleration signal that in the human walking procedure, produces during the sensing human body walking, and with this as the foundation of calculating the human body walking step number.
For reaching above-mentioned and other purpose, the invention provides a kind of step-counting processing system, comprising: the acceleration sensing unit, in order to human body in the sensing current time interval in walking process because of human body vibrate up and down the acceleration signal Gi that produces (x, y, z); Measuring unit, in order to measure this acceleration signal Gi (x, y, z) and the angle between the terrestrial attraction vector G0; Arithmetic element, in order to according to this acceleration signal Gi (x, y, z) and the angle between the terrestrial attraction vector G0, to this acceleration signal Gi (x, y, z) carry out the project of the direction of terrestrial attraction vector, to calculate this acceleration signal Gi (x, y, z), and exported in the component of vertical direction; Analytic unit, in order in the current time interval of analyzing the output of this arithmetic element (z) whether the waveform character in the component of vertical direction is continuous crest and trough for x, y to acceleration signal Gi; And meter step unit, be the acceleration signal Gi (x in the current time interval of this arithmetic element output in order to analysis result according to this analytic unit, y, z) when the waveform character of the component of vertical direction is continuous crest and trough to the operation that adds up of the step number of human body walking.
This arithmetic element is also calculated this acceleration signal Gi (x in the last time interval, y, z) in the mean value of the component of vertical direction, maximal value, and minimum value, and the mean value that gets according to institute's computing, maximal value, and minimum operation goes out this acceleration signal Gi (x in the current time interval, y, z) in the crest parameter and the trough parameter of the component waveform of vertical direction, and with the crest parameter that calculates and crest parameter and the trough parameter in the trough parameter update current time interval, and upgrade current this acceleration signal Gi (x, y is z) in the component maximal value of vertical direction, and minimum value.
(x, y z) are divided into several wave bands in the waveform of vertical direction and detect this analytic unit, to determine the sinusoidal waveform that amplitude is enough big to the acceleration signal Gi in the current schedule time.
This step-counting processing system also comprises display unit, and this display unit shows in order to the accumulated result to this meter step unit.
This acceleration sensing unit is a 3-axis acceleration sensor.
The present invention also provides a kind of meter step disposal route, comprising: in current time interval the sensing human body in walking process because of human body vibrate up and down the acceleration signal Gi that produces (x, y, z); Measure this acceleration signal Gi (x, y, z) and the angle between the terrestrial attraction vector G0; According to this acceleration signal Gi (x, y, z) and the angle between the direction of terrestrial attraction vector G0, to this acceleration signal Gi (x, y z) carry out the project of terrestrial attraction direction, with calculate this acceleration signal Gi (x, y is z) in the component of vertical direction; According to acceleration signal Gi in the last time interval (x, y, z) in the components operation of vertical direction go out acceleration signal Gi in the last time interval (x, y is z) in mean value, maximal value and the minimum value of the component of vertical direction; According to this acceleration signal Gi (x in the last time interval, y, z) in mean value, maximal value and the minimum operation current time interval of the component of vertical direction acceleration signal Gi (x, y is z) in the crest parameter and the trough parameter of the component of vertical direction; Upgrade acceleration signal Gi in the current time interval (x, y is z) in crest parameter, trough parameter, maximal value and the minimum value of the component of vertical direction; (z) whether the waveform character in the component of vertical direction is continuous crest and trough for x, y to analyze acceleration signal Gi in the current time interval; And when analysis result be in the current time interval acceleration signal Gi (x, y, z) when the waveform character of the component of vertical direction is continuous crest and trough to the operation that adds up of the step number of human body walking.
Acceleration signal Gi (x in analyzing current time interval, y, z) in the step of the waveform character of the component of vertical direction, to the acceleration signal Gi (x in the current schedule time, y, z) be divided into several wave bands in the waveform of vertical direction and detect, to determine the sinusoidal waveform that amplitude is enough big.
This meter step disposal route also comprises the step that the accumulation result with the step number of human locomotion shows.
Compared to prior art, step-counting processing system of the present invention and method, main seeing through to carrying out sensing because of the human body acceleration signal that produces that vibrates up and down among the human walking procedure, and the acceleration signal that is sensed made project to the earth's core gravity direction, when obtaining human body walking in the waveform of the component of the acceleration signal that vertical direction was produced, and whether be that continuous crest and trough analyzed to this acceleration signal in the waveform character of the component of vertical direction, and with analysis result as the time do not carry out the foundation that step number adds up.Because adopt analyzing among the human walking procedure because of human body, this case vibrates the acceleration signal that produces up and down in the waveform character of the component of vertical direction, as the meter foundation in step, can accurately count the step, avoid adopting in the existing Wrist watch type mechanical type pendulum sensor, need user's arm to swing naturally, can sense the situation of its swing by this passometer, and reach the meter caused disappearance of function in step.
[embodiment]
Person as shown in Figure 1, show the basic framework block schematic diagram of step-counting processing system 1 of the present invention, step-counting processing system 1 of the present invention can be provided to human body for example between waist, hand-held, institute wears on the clothing or entrained bag is interior etc.As shown in the figure, step-counting processing system 1 comprises:acceleration sensing unit 11, measuringunit 12,arithmetic element 13,analytic unit 14 and meter step unit 15.Below promptly step-counting processing system 1 of the present invention is elaborated.
Acceleration sensing unit 11 for example is a 3-axis acceleration sensor, the acceleration signal Gi (x, the y that produce because of the buttock to head vibration in walking process in order to human body in the sensing current time interval T1, z), and with the acceleration signal Gi that sensed (x, y z) are exported.
Measuringunit 12 in order to measure this acceleration signal Gi (x, y, z) and the angle α between the terrestrial attraction vector G0, and with its measurement result output.
Arithmetic element 13 is according to the acceleration signal Gi (x ofacceleration sensing unit 11 outputs, y, z) and acceleration signal Gi (x, the y of measuringunit 12 output, z) and the angle α between the terrestrial attraction vector G0, (x, y z) carry out the project of the direction of terrestrial attraction vector to this acceleration signal Gi, to calculate this acceleration signal Gi (x, y z) in the component Gz of vertical direction, and is exported.
What need special instruction is, because step-counting processing system 1 of the present invention is worn the situation difference in human body, acceleration signal Gi (the x that makesarithmetic element 13 outputs, y, z) amplitude in the waveform of the component Gz of vertical direction can produce sizable difference, in addition noise that may run in the moving process and repercussions disturb, and need dynamically to adjust the parameter of correlated judgment crest and trough.
For this reason, thearithmetic element 13 of this case is also calculated the interior acceleration signal Gi of a last time interval T0 (T0=T1) (x, y is z) in mean value (Gavg), maximal value (Gpeak) and the minimum value (Gvally) of the component Gz of vertical direction.
Afterwards, the mean value (Gavg) thatarithmetic element 13 gets according to institute's computing, maximal value (Gpeak) and minimum value (Gvally) calculate this acceleration signal Gi (x in the current time interval T1, y, z) in the crest parameter Up_bound and the trough parameter L ow_bound of the component Gz of vertical direction waveform, the concrete operation equation is as shown in the formula shown in (1), (2):
Up_bound=(Gpeak-Gavg)/4+Gavg (1)
Low_bound=(Gvally-Gavg)/10+Gavg (2)
And with the crest parameter that calculates and trough parameter as crest parameter in the current time interval and trough parameter, thereby reach the parameter of dynamic adjustment crest and trough, and acceleration signal Gi (x in the above time interval T0, y, z) in the maximal value of the component Gz of vertical direction and minimum value respectively as current this acceleration signal Gi (x, y is z) in the component maximal value and the minimum value of vertical direction.
What need specify is herein, when crest parameter Up_bound and trough parameter L ow_bound by above-mentioned equation (1), (2) computing gained are too high or too low, then replaces Gavg in equation (1), (2) with Gavg+/-0.08.
Analytic unit 14 is analyzed acceleration signal Gi in the current time interval T1 of thesearithmetic element 13 outputs, and (z) whether the waveform character in the component Gz of vertical direction is continuous crest and trough for x, y.In the present invention, whether 14 pairs of inputs of analytic unit waveform wherein is a complete sinusoidal waveform for the waveform that several wave bands detect to determine this input.Wherein, the input waveform needs in regular turn by begin 5 detections to state=4 from state=0 totally.State=0 is the initial state that waveform is judged, surpasses the size that above-mentioned equation (1) calculates the Up_bound of gained when waveform rises, and enters state=1, and the expression waveform has met the amplitude requirement of sinusoidal wave Sin ascent stage; Waveform is reversed to decline, enters state=2, and the expression waveform has been crossed crest, enters the sinusoidal wave Sin decline stage; Surpass the size that above-mentioned equation (2) calculates the Low_bound of gained when waveform descends, enter state=3, the expression waveform has met the amplitude requirement of sinusoidal wave Sin decline stage; When waveform is reversed to rising, enter state=4, the expression waveform has been crossed trough, enters sinusoidal wave Sin ripple and rises last ascent stage, when waveform rises above above-mentioned Gavg, can judge that the waveform of inputanalytic unit 13 is a complete sinusoidal waveform.This moment,analytic unit 14 impelled the meter step number ofmeter step unit 15 to add 1.
In addition, step-counting processing system 1 of the present invention also comprises the count step number of display unit (not icon) indemonstration step unit 15.
See through flow process that step-counting processing system 1 of the present invention carries out meter step disposal route of the present invention as shown in Figure 2.This meter step disposal route comprises following implementation step, in step S21, and the acceleration signal Gi (x that human body vibrates up and down and produces because of human body in walking process in the sensing current time interval T1, y, z), and with the acceleration signal Gi (x that is sensed, y z) is exported.Then proceed to step S22.
In step S22, measure this acceleration signal Gi (x, y, z) and the angle α between the terrestrial attraction vector G0, and with its measurement result output.Then proceed to step S23.
In step S23, according to this acceleration signal Gi (x, y, z) and the angle α between the direction of terrestrial attraction vector G0, (x, y z) carry out the project of terrestrial attraction direction to this acceleration signal Gi, (x, y is z) in the component Gz of vertical direction to calculate this acceleration signal Gi.Then proceed to step S24.
In step S24, (x, y is z) in mean value (Gavg), maximal value (Gpeak) and the minimum value (Gvally) of the component Gz of vertical direction to calculate the interior acceleration signal Gi of a last time interval T0 (T0=T1).Then, proceed to step S25.
In step S25, mean value (Gavg), maximal value (Gpeak) and minimum value (Gvally) according to step S24 computing gained calculate this acceleration signal Gi (x in the current time interval T1, y, z) in the crest parameter Up_bound and the trough parameter L ow_bound of the component Gz of vertical direction waveform, the concrete operation equation is as mentioned above shown in equation (1), (2).Then proceed to step S26.
In step S26, dynamically adjust current time interval crest parameter and trough parameter, (x, y is z) in the component maximal value and the minimum value of vertical direction for current this acceleration signal Gi.Promptly with the crest parameter Up_bound of step S25 computing gained and trough parameter L ow_bound crest parameter and trough parameter as current time interval, with acceleration signal Gi (x in the time interval T0 of step S24 computing gained, y, z) in the maximal value of the component Gz of vertical direction and minimum value respectively as current this acceleration signal Gi (x, y is z) in the component maximal value and the minimum value of vertical direction.Then proceed to step S27.
In step S27, (x, y z) in the waveform character of the component Gz of vertical direction, then proceed to step S28 to analyze acceleration signal Gi in the current time interval T1.
In step S28, judge the acceleration signal Gi (x in the current time interval T1, y, z) whether the waveform character in the component Gz of vertical direction is continuous crest and trough, if then proceed to step S29, if not, then return this step S21 with in next time interval T2 (T2=T1=T0) of sensing in walking process because of human body vibrate up and down the acceleration signal Gi that produces (x, y, z).
What must propose explanation is, in step 27, (z) whether the waveform in the component Gz of vertical direction is a complete sinusoidal waveform for the waveform that several wave bands detect with definite this input for x, y to the acceleration signal Gi in the current time interval T1.Wherein, the input waveform needs in regular turn by begin 5 detections to state=4 from state=0 totally.State=0 is the initial state that waveform is judged, surpasses the size that above-mentioned equation (1) calculates the Up_bound of gained when waveform rises, and enters state=1, and the expression waveform has met the amplitude requirement of sinusoidal wave Sin ascent stage; Waveform is reversed to decline, enters state=2, and the expression waveform has been crossed crest, enters the sinusoidal wave Sin decline stage; Surpass the size that above-mentioned equation (2) calculates the Low_bound of gained when waveform descends, enter state=3, the expression waveform has met the amplitude requirement of sinusoidal wave Sin decline stage; When waveform is reversed to rising, enter state=4, the expression waveform has been crossed trough, enter sinusoidal wave Sin ripple and rise last ascent stage, when waveform rises above above-mentioned Gavg, can judge that (z) waveform in the component Gz of vertical direction is a complete sinusoidal waveform for x, y for acceleration signal Gi in the current time interval T1.
In step S29, the step number of human body walking adds 1.
In addition, after step S29, also comprise the step that the accumulation result with the step number of human locomotion shows.