CN107270932A - Automatic step-recording method for terminal device - Google Patents

Automatic step-recording method for terminal device Download PDF

Info

Publication number
CN107270932A
CN107270932A CN201710610834.8A CN201710610834A CN107270932A CN 107270932 A CN107270932 A CN 107270932A CN 201710610834 A CN201710610834 A CN 201710610834A CN 107270932 A CN107270932 A CN 107270932A
Authority
CN
China
Prior art keywords
acceleration magnitude
step number
sampled point
current
terminal device
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.)
Pending
Application number
CN201710610834.8A
Other languages
Chinese (zh)
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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201710610834.8A priority Critical patent/CN107270932A/en
Publication of CN107270932A publication Critical patent/CN107270932A/en
Pending legal-status Critical Current

Links

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

Abstract

The invention discloses a kind of automatic step-recording method for terminal device, it includes:The acceleration of terminal device collection is obtained, and extracts the acceleration magnitude with ground generally vertical direction;When the acceleration magnitude of current sampling point, which is met, to impose a condition, judge whether current step number is more than setting step number:When current step number is less than setting step number, current step number is accumulated once, and export current step number;When current step number is more than or equal to setting step number, neighbouring current sampling point setting value length of window is obtained, and calculate the weighted average of setting value length of window;The cumulative acceleration magnitude decrement of set amount sampled point behind the cumulative acceleration magnitude increment and current sampling point of set amount sampled point before current sampling point is calculated, the set amount is equal to 1/2nd weighted averages after rounding;When cumulative acceleration magnitude increment and cumulative acceleration magnitude decrement sum are more than the first predetermined threshold value, then current step number is accumulated once, and export current step number.

Description

Automatic step-recording method for terminal device
Technical field
Field is recorded the present invention relates to sports equipment, and in particular to a kind of automatic step-recording method for terminal device.
Background technology
With the development and the increasingly raising of people's living standard of society, increasingly focus on healthy lifestyles, wherein, Stroll during leisure, all set walked on foot and in life in travelling can as people as exercise mode it One.Everyone daily or monthly walked how many step, whether can be obtained as people good exercising way judgment criteria it One.
In the prior art, the meter step software generally installed using electronic pedometer or smart mobile phone calculates the step of people's walking Number.Electronic pedometer is mainly made up of acceleration transducer and electronic counter.People's center of gravity in walking can be moved up and down, so that In the vertical direction can produce acceleration, when the acceleration on vertical direction exceedes presetting threshold value, then it is assumed that people is expert at Walk, and record a step.But meter step mode of the prior art, it is not accurate enough, it will usually the situation of misdescription record occur, so as to lead Final meter step result is caused to there is certain error with actual step number of walking.
The content of the invention
For above-mentioned deficiency of the prior art, the invention provides it is a kind of count step accuracy rate it is higher be used for terminal device Automatic step-recording method.
In order to reach foregoing invention purpose, the technical solution adopted by the present invention is:
There is provided a kind of automatic step-recording method for terminal device, this method it include:
The acceleration of terminal device collection is obtained, and extracts the acceleration magnitude with ground generally vertical direction;
When the acceleration magnitude of current sampling point, which is met, to impose a condition, judge whether current step number is more than setting step number:
When current step number is less than setting step number, current step number is accumulated once, and export current step number;
When current step number is more than or equal to setting step number, neighbouring current sampling point setting value length of window is obtained, and Calculate the weighted average of setting value length of window;
Calculate and set before current sampling point behind the cumulative acceleration magnitude increment and current sampling point of set amount sampled point The cumulative acceleration magnitude decrement of quantitative sampled point, the set amount is equal to 1/2nd weighted averages after rounding;
When cumulative acceleration magnitude increment and cumulative acceleration magnitude decrement sum are more than the first predetermined threshold value, then will currently it walk Number is accumulated once, and exports current step number.
Beneficial effects of the present invention are:This programme is when realizing meter step, first using the acceleration of the vertical direction extracted Value judges that the center of gravity of personnel, whether in motion, in the case where motion occurs in center of gravity, people is removed by imposing a condition in walking During acceleration pseudo- peak value, become again by judging whether sampled point meets the change of acceleration in whole walking process afterwards Gesture, progressively to reject the peak value for being unsatisfactory for walking movement trend.Meter step is judged with traditional center of gravity that only carries out using this method, its The error rate occurred during meter step is far below conventional method.
Brief description of the drawings
Fig. 1 is the flow chart of automatic step-recording method one embodiment for terminal device.
Part acceleration decomposes the design sketch on X-axis, Y-axis and Z axis when Fig. 2 is walking.
Embodiment
The embodiment to the present invention is described below, in order to which those skilled in the art understand this hair It is bright, it should be apparent that the invention is not restricted to the scope of embodiment, for those skilled in the art, As long as various change is in the spirit and scope of the present invention that appended claim is limited and is determined, these changes are aobvious and easy See, all are using the innovation and creation of present inventive concept in the row of protection.
With reference to Fig. 1, Fig. 1 shows the flow chart of automatic step-recording method one embodiment for terminal device.Such as Fig. 1 institutes Show, this method 100 includes step 101 to step 106.
When people normally walks, the change for the acceleration meeting generating period that mobile phone is collected, the acceleration of vertical direction (z-axis) Degree is periodically more obvious, and center of gravity moves up and down when it can embody human motion.Therefore this programme is in a step 101, obtain eventually The acceleration of end equipment collection, and extract the acceleration magnitude with ground generally vertical direction.
When implementing, when this programme preferably counts step, the Z axis of the acceleration module of the terminal device substantially hangs down with ground Directly.During meter step, the acceleration that this programme is obtained is 50 samplings of progress in 1s, that is, forms 50 sampled points.
In a step 102, when the acceleration magnitude of current sampling point, which is met, to impose a condition, judge whether current step number is more than Set step number.
In one embodiment of the invention, it is described to impose a condition as current sampling point acceleration magnitude while meeting following institute Have ready conditions:
Current sampling point acceleration magnitude is more than a upper sampled point acceleration magnitude, next sampled point acceleration magnitude and second Time interval between predetermined threshold value, and the sampled point institute at current sampling point and upper meter step moment more than the 3rd predetermined threshold value, A upper meter using for moment of step a little accumulates once corresponding sampled point for step number.
In step 103, when current step number is less than setting step number, current step number is accumulated once, and export current step Number, and return to step 101.
At step 104, when current step number is more than or equal to setting step number, neighbouring current sampling point setting value is obtained Length of window, and the weighted average of setting value length of window is calculated, and perform step 105 and step 106.It is neighbouring currently to adopt Sampling point is that in terms of time coordinate axle, it is the length of window on the left side time coordinate axle of current sampling point.
Length of window therein is the sampling number between the sampled point of two neighboring meter step, and the sampled point of the meter step is Current step number sampled point corresponding when accumulating once.
As shown in Fig. 2 in terms of the acceleration magnitude of Z axis, it is assumed that be accumulated once in the 130th current step number of sample point, It is accumulated once in the 150th current step number of sample point, then the 130th sampled point to adopting between the 150th sampled point Sampling point number is the length of a window.
In one embodiment of the invention, the specific formula for calculation of the weighted average of setting value length of window is calculated For:Wherein, αiFor the weights of respective window length, 0 < αi< 1,W is weighted average;WiFor neighbour Sampled point number in i-th of length of window of nearly current sampling point;M is the number of window.
In step 105, calculate current sampling point before set amount sampled point cumulative acceleration magnitude increment and currently The cumulative acceleration magnitude decrement of set amount sampled point behind sampled point, the set amount is equal to 1/2nd weightings after rounding Average value.
Specifically, it is assumed that weighted average is 6, the serial number 20 of current sampling point, then set amount before current sampling point What individual sampled point was referred to is the 17th, 18 and 19 sampled points, behind current sampling point the reference of set amount sampled point be the 21st, 22 and 23 sampled points.When being odd number for weighted average, then set amount is equal to 1/2nd weighted averages after rounding, Assuming that weighted average is respectively 7,9,11, then 1/2nd weighted averages, which are rounded, is defaulted as 3,4,5.
Wherein, the acceleration magnitude increment of adding up is that latter one sampled point acceleration magnitude subtracts above one in two neighboring sampled point The accumulated value of the difference of individual sampled point acceleration magnitude.Cumulative acceleration magnitude decrement is an above sampling in two neighboring sampled point Point acceleration magnitude subtracts the accumulated value of the difference of latter one sampled point acceleration magnitude.
During implementation, the preferably cumulative acceleration magnitude increment E of this programme1With cumulative acceleration magnitude decrement E2Calculation formula difference For:
Wherein, aiFor ith sample point, ai-1For the i-th -1 sampled point;ai+1For i+1 sampled point;W is flat for weighting Average, m is the sequence number of current sampling point.
In step 106, when cumulative acceleration magnitude increment and cumulative acceleration magnitude decrement sum are more than the first predetermined threshold value When, then current step number is accumulated once, and export current step number.
(current sampling point is met in acceleration magnitude for the method provided below using this programme and existing traditional step-recording method Impose a condition with regard to meter step once) to being walked along direct route and carrying out contrast experiment, experimental result along the step number that U-shaped route is walked See that Tables 1 and 2 is as follows:
Table 1 along straight line path walk when error rate
Walking step number 20 100 500 2000 5000 10000 15000
This method error rate 0.0289 0.0271 0.0296 0.0321 0.0343 0.0396 0.0387
Conventional method error rate 0.0344 0.0350 0.0366 0.0372 0.0345 0.0402 0.0396
Table 2 along U-shaped route walk when error rate
Walking step number 20 100 500 2000 5000 10000 15000
This method error rate 0.0275 0.0322 0.0339 0.0351 0.0373 0.0411 0.0421
Conventional method error rate 0.0475 0.0411 0.0432 0.0484 0.0493 0.0482 0.0523
Wherein, error rate errRate calculation formula:Wherein, M is the step measured using step-recording method Number, N is the actual step number walked, for the computing that takes absolute value.From the foregoing, it will be observed that the accuracy rate of the step-recording method of scheme is far above tradition Method, especially in curve.

Claims (7)

1. the automatic step-recording method for terminal device, it is characterised in that methods described includes:
The acceleration of terminal device collection is obtained, and extracts the acceleration magnitude with ground generally vertical direction;
When the acceleration magnitude of current sampling point, which is met, to impose a condition, judge whether current step number is more than setting step number:
When current step number is less than setting step number, current step number is accumulated once, and export current step number;
When current step number is more than or equal to setting step number, neighbouring current sampling point setting value length of window is obtained, and calculate The weighted average of setting value length of window;
Set amount behind the cumulative acceleration magnitude increment and current sampling point of set amount sampled point before calculating current sampling point The cumulative acceleration magnitude decrement of individual sampled point, the set amount is equal to 1/2nd weighted averages after rounding;
When cumulative acceleration magnitude increment and cumulative acceleration magnitude decrement sum are more than the first predetermined threshold value, then current step number is tired out Plus once, and export current step number.
2. the automatic step-recording method according to claim 1 for terminal device, it is characterised in that it is described impose a condition for Current sampling point acceleration magnitude is more than a upper sampled point acceleration magnitude, next sampled point acceleration magnitude and the second default threshold Time interval between value, and current sampling point and the sampled point at upper meter step moment is more than the 3rd predetermined threshold value.
3. the automatic step-recording method according to claim 1 for terminal device, it is characterised in that the length of window is Sampling number between the sampled point of two neighboring meter step, the sampled point of the meter step is corresponding when being accumulated once for current step number Sampled point.
4. according to any described automatic step-recording methods for terminal device of claim 1-3, it is characterised in that described cumulative Acceleration magnitude increment subtracts an above sampled point acceleration magnitude for latter one sampled point acceleration magnitude in two neighboring sampled point Difference accumulated value.
5. according to any described automatic step-recording methods for terminal device of claim 1-3, it is characterised in that described cumulative Acceleration magnitude decrement is above a sampled point acceleration magnitude subtracts latter one sampled point acceleration magnitude in two neighboring sampled point Difference accumulated value.
6. according to any described automatic step-recording methods for terminal device of claim 1-3, it is characterised in that calculate setting The specific formula for calculation of the weighted average of value length of window is:
<mrow> <mi>w</mi> <mo>=</mo> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>m</mi> </munderover> <msub> <mi>&amp;alpha;</mi> <mi>i</mi> </msub> <msub> <mi>W</mi> <mi>i</mi> </msub> </mrow>
Wherein, αiFor the weights of respective window length, 0 < αi< 1,W is weighted average;WiFor neighbouring present sample Sampled point number in i-th of length of window of point;M is the number of window.
7. the automatic step-recording method according to claim 1 for terminal device, it is characterised in that during meter step, the end The Z axis of the acceleration module of end equipment is substantially vertical with ground.
CN201710610834.8A 2017-07-25 2017-07-25 Automatic step-recording method for terminal device Pending CN107270932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710610834.8A CN107270932A (en) 2017-07-25 2017-07-25 Automatic step-recording method for terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710610834.8A CN107270932A (en) 2017-07-25 2017-07-25 Automatic step-recording method for terminal device

Publications (1)

Publication Number Publication Date
CN107270932A true CN107270932A (en) 2017-10-20

Family

ID=60079109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710610834.8A Pending CN107270932A (en) 2017-07-25 2017-07-25 Automatic step-recording method for terminal device

Country Status (1)

Country Link
CN (1) CN107270932A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197082A (en) * 2017-12-05 2018-06-22 东南大学 A kind of step-recording method according to paces Reliability estimation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130085677A1 (en) * 2011-09-30 2013-04-04 Apple Inc. Techniques for improved pedometer readings
CN104089624A (en) * 2014-07-18 2014-10-08 赵佳 Step counting method and terminal device
CN104596537A (en) * 2015-02-02 2015-05-06 成都星炫科技有限公司 Step calculation method
CN105444763A (en) * 2015-11-17 2016-03-30 吉林大学 IMU indoor positioning method
CN106197418A (en) * 2016-06-22 2016-12-07 西安交通大学 The indoor orientation method that a kind of fingerprinting based on sliding window merges with sensor
CN106248100A (en) * 2016-07-07 2016-12-21 深圳市金立通信设备有限公司 A kind of step-recording method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130085677A1 (en) * 2011-09-30 2013-04-04 Apple Inc. Techniques for improved pedometer readings
CN104089624A (en) * 2014-07-18 2014-10-08 赵佳 Step counting method and terminal device
CN104596537A (en) * 2015-02-02 2015-05-06 成都星炫科技有限公司 Step calculation method
CN105444763A (en) * 2015-11-17 2016-03-30 吉林大学 IMU indoor positioning method
CN106197418A (en) * 2016-06-22 2016-12-07 西安交通大学 The indoor orientation method that a kind of fingerprinting based on sliding window merges with sensor
CN106248100A (en) * 2016-07-07 2016-12-21 深圳市金立通信设备有限公司 A kind of step-recording method and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
洪皓: "基于智能手机MEMS的行人定位方法实证研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
王文杰等: "基于手机加速度传感器的计步算法设计", 《工业控制计算机》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197082A (en) * 2017-12-05 2018-06-22 东南大学 A kind of step-recording method according to paces Reliability estimation
CN108197082B (en) * 2017-12-05 2021-06-11 东南大学 Step counting method based on step reliability estimation

Similar Documents

Publication Publication Date Title
CN104567912B (en) Method for realizing pedometer on Android mobile phone
CN104197952B (en) A kind of user&#39;s walking step-recording method, device and mobile terminal
CN104964685B (en) A kind of decision method of mobile phone athletic posture
EP3340248B1 (en) A method and an apparatus for determining training status
CN102445214B (en) Step counting method based on 3D (three-dimensional) gravity sensor of intelligent mobile phone
CN106767888A (en) A kind of meter based on Wave crest and wave trough detection walks algorithm
CN104841117B (en) The method of counting and system of times of exercise based on mobile terminal acceleration transducer
TWI486880B (en) Automatic identifying method for exercise mode
CN107091650A (en) A kind of software step-recording method based on mobile phone acceleration and range sensor
CN104596537A (en) Step calculation method
TW201525423A (en) A step counting method and pedometer based on 3-axis accelerometer
CN102133103B (en) Method for recognizing human walking gait cycle with electromyographic signal
WO2010083562A1 (en) Activity detection
CN105142745A (en) Extending game play with physical activity monitoring device
CN103425895A (en) Multi-sensor motion and posture monitoring and analyzing method and system
EP3090685A1 (en) Pedometer and method for analyzing motion data
CN105444763A (en) IMU indoor positioning method
CN105574471B (en) The recognition methods of the method for uploading, user behavior of user behavior data and device
CN110811578A (en) Step counting device and step counting method thereof, controller and readable storage medium
CN105651303A (en) Pace counting system and pace counting method based on three-axis acceleration sensor
CN105509763A (en) Step-counting interference removal method and device
CN103727954A (en) Pedometer
CN107270932A (en) Automatic step-recording method for terminal device
Zhao et al. Healthy: A diary system based on activity recognition using smartphone
CN110168316B (en) Foot step counting method, device and equipment based on step frequency

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171020

RJ01 Rejection of invention patent application after publication