CN107908497B - Step frequency calculation method and device and wearable device - Google Patents

Step frequency calculation method and device and wearable device Download PDF

Info

Publication number
CN107908497B
CN107908497B CN201711217839.0A CN201711217839A CN107908497B CN 107908497 B CN107908497 B CN 107908497B CN 201711217839 A CN201711217839 A CN 201711217839A CN 107908497 B CN107908497 B CN 107908497B
Authority
CN
China
Prior art keywords
step frequency
frequency information
cache
information
interval
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.)
Active
Application number
CN201711217839.0A
Other languages
Chinese (zh)
Other versions
CN107908497A (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 Transtek Medical Electronics Co Ltd
Original Assignee
Guangdong Transtek Medical Electronics Co Ltd
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 Transtek Medical Electronics Co Ltd filed Critical Guangdong Transtek Medical Electronics Co Ltd
Priority to CN201711217839.0A priority Critical patent/CN107908497B/en
Publication of CN107908497A publication Critical patent/CN107908497A/en
Application granted granted Critical
Publication of CN107908497B publication Critical patent/CN107908497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0727Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system
    • 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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/073Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/076Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0804Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches with main memory updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention provides a step frequency calculation method, a step frequency calculation device and wearable equipment, and relates to the technical field of motion detection, wherein the step frequency calculation method comprises the steps of obtaining step frequency information according to a preset time interval; storing the step frequency information of the latest n time intervals to a cache, wherein n is more than or equal to 2; acquiring the step frequency information of the latest time interval, judging whether the step frequency information is abnormal or not, and if not, updating the step frequency information in the cache according to the sequence of the time interval; if yes, discarding the step frequency information; the step frequency information in the cache is calculated to obtain average step frequency information, the technical problems that the existing wearable equipment has hysteresis and lacks stability in step frequency detection are solved, and the technical effect of improving the real-time performance and stability of step frequency detection is achieved.

Description

Step frequency calculation method and device and wearable device
Technical Field
The invention relates to the technical field of motion detection, in particular to a step frequency calculation method, a step frequency calculation device and wearable equipment.
Background
With the continuous development of science and technology, wearable equipment has become very popular in people's daily life. Through wearable equipment, the user can pay attention to the motion condition of self constantly, knows the health status of self. Among them, the step-counting function has been used by many wearable devices as a basic method of recording the amount of physical exercise.
Further, the step-counting function includes recording various parameters, such as: step number, step frequency, distance and time, etc. The step frequency is an important exercise intensity index, and has very important significance for evaluating the physical condition of the user.
Existing wearable devices typically record step frequency in two ways: the first method is that the step number information of a user is recorded by taking minutes as a unit, and then the average step frequency information by taking minutes as a unit is obtained; the second method is to record the step number information in units of seconds, and then obtain the average step frequency information in units of seconds.
However, the existing wearable device has a certain degree of deficiency in detecting the step frequency of the user. Firstly, a certain time lag exists in a mode of obtaining average step frequency information by taking minutes as a unit, and the real-time exercise intensity of a user is difficult to reflect; furthermore, the step frequency information obtained by taking the second as the unit has large fluctuation and poor stability, and has no reference for evaluating the exercise condition of the user.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for calculating a stride frequency, and a wearable device, so as to solve the technical problems of hysteresis and stability of the wearable device in acquiring the stride frequency information of a user in the prior art.
In a first aspect, an embodiment of the present invention provides a step frequency calculation method, applied to a processor, including:
acquiring step frequency information according to a preset time interval;
storing the step frequency information of the latest n time intervals to a cache, wherein n is more than or equal to 2;
acquiring the step frequency information of the latest time interval, judging whether the step frequency information is abnormal or not,
if not, updating the step frequency information in the cache according to the sequence of the time intervals;
if yes, discarding the step frequency information;
and calculating the step frequency information in the cache to obtain average step frequency information.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the obtaining step frequency information according to a preset time interval specifically includes:
acquiring the initial end step number information of the time interval and the end step number information of the time interval;
and subtracting the initial end step number information from the end step number information to obtain the step frequency information.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where before the obtaining step frequency information of a latest time interval and determining whether the step frequency information is abnormal, the method further includes:
setting a numerical value interval of the step frequency information;
an anomaly count threshold is set.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the updating, according to the sequence of the time intervals, the step frequency information in the cache specifically includes: comparing the step frequency information with the value interval,
if the step frequency information belongs to the numerical value interval, updating the step frequency information in the cache;
if the step frequency information is larger than the numerical value interval, updating the step frequency information in the cache to be a fixed value;
and if the step frequency information is smaller than the number of the numerical value intervals and is larger than the abnormal counting threshold value, updating the step frequency information in the cache to be 0.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the updating the step frequency information in the cache specifically includes:
discarding the step frequency information with the longest storage time in the cache, prepositioning the rest step frequency information in the cache, and releasing partial space of the cache;
and storing the step frequency information in the partial space.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the calculating step frequency information in the cache to obtain average step frequency information specifically includes:
setting a calculation threshold;
judging whether the quantity of the step frequency information in the cache reaches the calculation threshold value;
if not, acquiring the sum of the step frequency information in the cache and the sum of the time intervals, and calculating to obtain the average step frequency information;
if so, taking the time interval as a period, acquiring the sum of the step frequency information in the cache and the sum of the time interval, and calculating to obtain the average step frequency information.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the obtaining a sum of the step frequency information in the cache and a sum of the time intervals, and the calculating to obtain the average step frequency information specifically includes:
acquiring the step number information per second according to the sum of the step frequency information in the cache and the sum of the time intervals;
and calculating to obtain the average step frequency information according to the step number information per second.
With reference to the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the discarding the step frequency information specifically includes:
and if the step frequency information is smaller than the number of the numerical value intervals and smaller than the abnormal counting threshold value, discarding the step frequency information.
In a second aspect, an embodiment of the present invention further provides a step frequency calculation apparatus, including: the step frequency information acquisition module is used for acquiring step frequency information according to a preset time interval;
the storage module is used for storing the step frequency information of the latest n time intervals to a cache, wherein n is more than or equal to 2;
an information judging module for obtaining the step frequency information of the latest time interval, judging whether the step frequency information is abnormal,
if not, updating the step frequency information in the cache according to the sequence of the time intervals;
if yes, discarding the step frequency information;
and the calculating module is used for calculating the step frequency information in the cache to obtain the average step frequency information.
In a third aspect, the present invention further provides a wearable device, including the step frequency calculation method provided in the first aspect and the step frequency calculation apparatus provided in the second aspect.
The embodiment of the invention has the following beneficial effects: the embodiment of the invention provides a step frequency calculation method, a step frequency calculation device and wearable equipment, wherein the method comprises the following steps: acquiring step frequency information according to a preset time interval; storing the step frequency information of the latest n time intervals to a cache, wherein n is more than or equal to 2; acquiring the step frequency information of the latest time interval, judging whether the step frequency information is abnormal or not, and if not, updating the step frequency information in the cache according to the sequence of the time interval; if yes, discarding the step frequency information; and calculating the step frequency information in the cache to obtain average step frequency information. The step frequency information is calculated after being judged, and the step frequency information is updated by taking the time interval as the period, so that the real-time performance and the stability of the step frequency information are improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a step frequency calculation method according to an embodiment of the present invention;
fig. 2 is a flowchart of updating the step frequency information in the cache in the step frequency calculation method according to the second embodiment of the present invention;
fig. 3 is a flowchart of calculating the step frequency information in the cache to obtain the average step frequency information in the step frequency calculation method according to the second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a step frequency calculating device according to a third embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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 invention.
At present, the existing wearable device has hysteresis and instability for measuring the user step frequency, and based on this, the step frequency calculation method, the step frequency calculation device and the wearable device provided by the embodiments of the present invention can improve the real-time performance and stability for measuring the user step frequency.
For the understanding of the present embodiment, first, a detailed description will be given of a step frequency calculation method disclosed in the embodiment of the present invention,
the first embodiment is as follows:
fig. 1 shows a flowchart of a step frequency calculation method provided in an embodiment of the present invention, where the method includes:
step S110: acquiring step frequency information according to a preset time interval;
specifically, the time interval may be set differently according to different use environments, but it should be noted that once the time interval is determined, the later calculation of the step frequency information is updated based on the determined time interval.
The specific way of acquiring the step frequency information includes:
acquiring initial end step number information step of the time interval1And the end step number information step of the time interval2
And subtracting the initial end step number information from the end step number information to obtain the step frequency information substep.
substep=step2-step1
Step, for example, with a time interval of 2 seconds1Indicates the number of steps in the initial 2 second phase, step2The number of steps of the 2-second end stage is shown, and the number of steps taken by the 2-second time interval is obtained by subtracting, namely the 2-second step frequency information.
Step S120: storing the step frequency information of the latest n time intervals to a cache, wherein n is more than or equal to 2;
it should be noted here that the buffer isThe step frequency information of the time interval provides a buffer queue, and the data is stored from right to left or from bottom to top. Taking the right-to-left storage manner as an example, the stride frequency information of the first time interval1Is stored to the rightmost side of the buffer queue, when the step frequency information of the second time interval is substap2Is stored in a main buffer queue, and the buffer will store the stride frequency information1Prepending a memory space to free memory space for storing stride frequency information substep2
Step S130: acquiring the step frequency information of the latest time interval, judging whether the step frequency information is abnormal or not,
if not, step S131: updating the step frequency information in the cache according to the sequence of the time intervals;
if yes, step S132: discarding the step frequency information;
specifically, when the buffer queue is completely occupied by the step frequency information, if new step frequency information is generated, the processor of the wearable device determines the step frequency information. The judgment basis is that before the step frequency information of the latest time interval is obtained and whether the step frequency information is abnormal or not is judged, the numerical value interval of the step frequency information is set. The data interval is based on the fastest and slowest pace frequency of the normal person in the time interval.
When the step frequency information of the user is not less than the value interval, the step frequency information is judged to be normal step frequency information and is updated to the cache.
When the step frequency information of the user is smaller than the numerical interval, the processor analyzes the step frequency information and judges whether the step frequency information is abnormal. Specifically, after the processor obtains the step frequency information smaller than the numerical space, the processor continues to obtain the step frequency information subsequent to the step frequency information and judges whether the subsequent step frequency information is smaller than the numerical space or not until the step frequency information obtained by the processor is larger than the numerical space; and then the processor counts the number of the step frequency information smaller than the numerical space.
It should be added that the processor is preset with an abnormal counting threshold, and determines the number of the step frequency information smaller than the numerical value space according to the abnormal counting threshold. If the step frequency information is smaller than the number of the numerical value spaces and is larger than the abnormal counting threshold value, the processor judges that the user stops running or walking in the state and determines the step frequency information as normal, and updates the step frequency information to a cache; if the step frequency information is less than the number of the numerical value spaces less than the abnormal counting threshold value, the processor judges the step frequency information which is considered to be abnormal for the user to stay temporarily in the state and discards the step frequency information.
Step S133: and calculating the step frequency information in the cache to obtain average step frequency information.
Specifically, the processor calculates the sum sumstep of all the step frequency information in the buffer queue, counts the sum sumtime of the time intervals corresponding to all the step frequency information, calculates and obtains the step number information stepavg per second,
Figure BDA0001485874470000081
further, according to the step number information stepvg per second, average step frequency information stepfreq is obtained through calculation.
stepfreq=stepavg×60
The step frequency calculation method provided by the embodiment of the invention comprises the steps of firstly, acquiring step frequency information according to a preset time interval; then storing the step frequency information of the latest n (n is more than or equal to 2) time intervals to a cache; then, acquiring the step frequency information of the latest time interval, judging whether the step frequency information is abnormal or not, and if not, updating the step frequency information in the cache according to the sequence of the time interval; if yes, discarding the step frequency information; and finally, calculating the step frequency information in the cache to obtain average step frequency information. The step frequency calculation method provided by the embodiment of the invention calculates the obtained step frequency information after judging, and updates the step frequency information by taking the time interval as a period, thereby improving the real-time property and the stability of the step frequency information.
Example two:
on the basis of the first embodiment, an embodiment of the present invention provides a step frequency calculation method, which is executed by a processor, and is different from the first embodiment in that the embodiment of the present invention further provides a method for updating step frequency information in a cache in the step frequency calculation method, as shown in fig. 2. The method comprises the following steps:
step S1311: and comparing the step frequency information with the value interval.
Here, before obtaining the step frequency information of the latest time interval and determining whether the step frequency information is abnormal, the method further includes: setting a value interval freq of the step frequency information; an anomaly count threshold error is set.
The value interval of the step frequency information is based on the fastest and slowest step frequency of the normal person, usually in seconds, and the interval is: freq is more than or equal to 1 and less than or equal to 8. When the step frequency information substep is compared with the value interval freq, the following three situations occur:
step S1312: if the step frequency information belongs to the numerical value interval, updating the step frequency information in the cache; that is, the stride frequency information substep will be stored in the buffer queue at this time.
It should be noted that the buffering provides a buffering queue for the step frequency information of the time interval, and the data is stored from right to left or from bottom to top. Taking the right-to-left storage manner as an example, the stride frequency information of the first time interval1Is stored to the rightmost side of the buffer queue, when the step frequency information of the second time interval is substap2Is stored in a main buffer queue, and the buffer will store the stride frequency information1Prepending a memory space to free memory space for storing stride frequency information substep2
And when the number of the stored step frequency information substeps exceeds the length of the buffer queue, the buffer will update the stored step frequency information substeps, which specifically includes: discarding the step frequency information with the longest storage time in the cache, preposing the rest step frequency information in the cache, and releasing partial space of the cache; storing the step frequency information in the partial space.
Furthermore, when the step frequency information belongs to the value interval, the update speed of the step frequency information in the buffer is in a period of time interval.
Step S1313: if the step frequency information is larger than the numerical interval, updating the step frequency information in the cache to be a fixed value; specifically, at this time, the maximum value 8 of the numerical value interval is stored in the buffer queue instead of the specific value in the stride frequency information substep. The specific updating process step S1312 has already been described, and is not repeated here.
Step S1314: and if the step frequency information is smaller than the number n of the numerical value intervals and is larger than the abnormal counting threshold error, updating the step frequency information in the cache.
It should be noted that the user may have a short stop or stop during running or walking. Here an anomaly count threshold error is introduced to distinguish between the two behaviors.
When the step frequency information substep is smaller than the value interval freq, that is, the substep is 0, the number n of the step frequency information substep smaller than the value interval starts to increase. By setting an abnormal counting threshold error, when n is less than or equal to error, the processor judges that the user stays temporarily; when n is greater than or equal to error, the processor judges that the user is the termination of running or walking. It should be noted that the step frequency information generated when the user stops running or walking represents that the actual exercise condition of the user should be recorded in the buffer queue, and the short stop cannot represent the actual exercise step frequency condition of the user and should not be recorded in the buffer queue.
Therefore, when the number n of the step frequency information smaller than the value section (step 0) is larger than the abnormality count threshold error, the step frequency information step 0 is updated to the buffer. The specific updating process step S1312 has already been described, and is not repeated here.
It should be added that if the step frequency information substep at this time is counted in the buffer after being compared with the above abnormal count threshold, new step frequency information generated by the user continuing to run or walk is sequentially updated in the buffer. It should be noted that the previous part of the consecutive n pieces of stride information (0) will be proposed to the leftmost side of the buffer queue, and the part of the consecutive n pieces of stride information (0) will be sequentially shifted out of the buffer as the new stride information is updated to the buffer. This is done to reduce the impact on the calculation of the average step frequency information.
If the number of the step frequency information smaller than the number interval is smaller than the abnormality count threshold, the step frequency information is discarded.
That is, when the number n of the step frequency information smaller than the value interval (substap is 0) is smaller than the abnormal count threshold error, the processor determines that the user is in a short staying period at this time, and the step frequency information at this time should not be stored in the buffer, otherwise, the calculation of the average step frequency information is affected.
In addition, an embodiment of the present invention further provides a method for calculating the step frequency information in the cache to obtain the average step frequency information in the step frequency calculation method, as shown in fig. 3. The method comprises the following steps:
step S1341: setting a calculation threshold;
it should be noted that, according to the amount of the step frequency information in the buffer queue, the data operation manner of the processor is different, and the critical point of the amount is the calculation threshold.
Step S1342: judging whether the quantity of the step frequency information in the cache reaches the calculation threshold value;
step S1343: if not, acquiring the sum of the step frequency information in the cache and the sum of the time intervals, and calculating to obtain the average step frequency information;
specifically, when the number of the step frequency information in the cache queue is smaller than the calculation threshold, the processor judges that the user is in the initial stage of running or walking, the number of the step frequency information is small and the difference is large, and further, the average step frequency information obtained through one-time calculation can reflect the real running or walking condition better through the sum of the step frequency information in the cache of the stage and the sum of the time intervals. The embodiment of the specific calculation method has already been described, and is not repeated here.
Step S1344: if so, the sum of the step frequency information in the cache and the sum of the time intervals are obtained by taking the time intervals as a period, and the average step frequency information is obtained by calculation.
Specifically, when the number of the step frequency information in the buffer queue is larger than the calculation threshold, the processor judges that the user is in a stable stage or an end stage of running or walking. At this time, with the time interval as a period, every time a new piece of step frequency information is added or updated in the buffer queue, the processor calculates the average step frequency information of this stage by the sum of the step frequency information in the buffer and the sum of the time intervals.
Further, acquiring a sum of the step frequency information in the cache and a sum of the time intervals, and calculating to obtain the average step frequency information specifically includes:
acquiring the step number information per second according to the sum of the step frequency information in the cache and the sum of the time intervals;
and calculating to obtain the average step frequency information according to the step number information per second.
EXAMPLE III
Fig. 4 shows a schematic structural diagram of a step frequency calculation apparatus according to an embodiment of the present invention. The device includes:
a step frequency information obtaining module 401, configured to obtain step frequency information according to a preset time interval;
a storage module 402, configured to store the step frequency information of the latest n time intervals to a cache, where n is greater than or equal to 2;
an information determining module 403, configured to obtain the step frequency information of the latest time interval, determine whether the step frequency information is abnormal,
if not, updating the step frequency information in the cache according to the sequence of the time intervals;
if yes, discarding the step frequency information;
a calculating module 404, configured to calculate the step frequency information in the cache to obtain average step frequency information.
The step frequency calculating device provided by the embodiment of the invention has the same technical characteristics as the step frequency calculating method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Example four
The embodiment of the present invention provides a wearable device, which includes the step frequency calculation method described in the first embodiment, the second embodiment, and the step frequency calculation apparatus described in the third embodiment, which are not repeated here.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
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 ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and 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 of devices or units through some communication interfaces, 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 invention 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of 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 invention. 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.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A step frequency calculation method applied to a processor comprises the following steps:
acquiring step frequency information according to a preset time interval; the step frequency information is obtained by subtracting the step number information of the starting end from the step number information of the ending end;
storing the step frequency information of the latest n time intervals to a cache, wherein n is more than or equal to 2;
setting a numerical interval and an abnormal counting threshold of the step frequency information;
acquiring the step frequency information of the latest time interval, judging whether the step frequency information is abnormal or not based on the number of the step frequency information smaller than the numerical value interval and the abnormal counting threshold value,
if the step frequency information is normal, updating the step frequency information in the cache according to the sequence of the time intervals;
if the step frequency information is abnormal, updating the step frequency information in the cache to be 0; the step frequency information is abnormal, namely the number of the step frequency information smaller than the numerical value interval is larger than the abnormal counting threshold;
calculating the step frequency information in the cache to obtain average step frequency information;
the updating the step frequency information in the cache according to the sequence of the time intervals specifically includes: comparing the step frequency information with the numerical value interval, and updating the step frequency information in the cache if the step frequency information belongs to the numerical value interval; if the step frequency information is larger than the numerical value interval, updating the step frequency information in the cache to be a fixed value; and if the step frequency information is smaller than the number of the numerical value intervals and is larger than the abnormal counting threshold value, updating the step frequency information in the cache to be 0.
2. The step frequency calculation method according to claim 1, wherein the updating the step frequency information in the cache specifically includes:
discarding the step frequency information with the longest storage time in the cache, prepositioning the rest step frequency information in the cache, and releasing partial space of the cache;
and storing the step frequency information in the partial space.
3. The step frequency calculation method according to claim 1, wherein the calculating step frequency information in the buffer to obtain average step frequency information specifically includes:
setting a calculation threshold;
judging whether the quantity of the step frequency information in the cache reaches the calculation threshold value;
if not, acquiring the sum of the step frequency information in the cache and the sum of the time intervals, and calculating to obtain the average step frequency information;
if so, taking the time interval as a period, acquiring the sum of the step frequency information in the cache and the sum of the time interval, and calculating to obtain the average step frequency information.
4. The step frequency calculation method according to claim 3, wherein obtaining a sum of the step frequency information in the buffer and a sum of the time intervals, and calculating to obtain the average step frequency information specifically comprises:
acquiring the step number information per second according to the sum of the step frequency information in the cache and the sum of the time intervals;
and calculating to obtain the average step frequency information according to the step number information per second.
5. The method of stride frequency computation of claim 1 wherein the method further comprises:
and if the step frequency information is smaller than the number of the numerical value intervals and smaller than the abnormal counting threshold value, discarding the step frequency information.
6. A step frequency calculation apparatus, comprising:
the step frequency information acquisition module is used for acquiring step frequency information according to a preset time interval; the step frequency information is obtained by subtracting the step number information of the starting end from the step number information of the ending end;
the storage module is used for storing the step frequency information of the latest n time intervals to a cache, wherein n is more than or equal to 2;
the setting module is used for setting the numerical interval and the abnormal counting threshold of the step frequency information;
the information judgment module is used for acquiring the step frequency information of the latest time interval, judging whether the step frequency information is abnormal or not based on the number of the numerical value intervals and the abnormal counting threshold value, and updating the step frequency information in the cache according to the sequence of the time interval if the step frequency information is normal; if the step frequency information is abnormal, updating the step frequency information in the cache to be 0; the step frequency information is abnormal, namely the number of the step frequency information smaller than the numerical value interval is larger than the abnormal counting threshold;
the calculating module is used for calculating the step frequency information in the cache to obtain average step frequency information;
the information judgment module is further configured to compare the step frequency information with the numerical interval, and update the step frequency information in the cache if the step frequency information belongs to the numerical interval; if the step frequency information is larger than the numerical value interval, updating the step frequency information in the cache to be a fixed value; and if the step frequency information is smaller than the number of the numerical value intervals and is larger than the abnormal counting threshold value, updating the step frequency information in the cache to be 0.
7. A wearable device, characterized in that the wearable device is configured to perform the step frequency calculation method of any of claims 1 and 3-5.
8. A wearable device comprising the stride frequency calculation apparatus of claim 6.
CN201711217839.0A 2017-11-28 2017-11-28 Step frequency calculation method and device and wearable device Active CN107908497B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711217839.0A CN107908497B (en) 2017-11-28 2017-11-28 Step frequency calculation method and device and wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711217839.0A CN107908497B (en) 2017-11-28 2017-11-28 Step frequency calculation method and device and wearable device

Publications (2)

Publication Number Publication Date
CN107908497A CN107908497A (en) 2018-04-13
CN107908497B true CN107908497B (en) 2021-08-31

Family

ID=61849230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711217839.0A Active CN107908497B (en) 2017-11-28 2017-11-28 Step frequency calculation method and device and wearable device

Country Status (1)

Country Link
CN (1) CN107908497B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263871B (en) * 2019-06-26 2023-04-18 深圳市悦动天下科技有限公司 Step-counting cheating detection method and device, intelligent terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101173869A (en) * 2006-05-05 2008-05-07 尤洛考普特公司 Method and apparatus for diagnosing a mechanism
CN104814728A (en) * 2015-05-28 2015-08-05 京东方科技集团股份有限公司 Running guide method and running guide device
CN106963388A (en) * 2017-04-12 2017-07-21 佛山市量脑科技有限公司 A kind of reponse system of Intelligent insole
CN107048570A (en) * 2017-04-12 2017-08-18 佛山市量脑科技有限公司 A kind of data analysis processing method of Intelligent insole

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8347149B2 (en) * 2008-10-01 2013-01-01 Cardiac Pacemakers, Inc. System and method for providing fault tolerant processing in an implantable medical device
US8560069B2 (en) * 2010-01-05 2013-10-15 Siemens Medical Solutions Usa, Inc. System for cardiac arrhythmia detection
CN104750965B (en) * 2013-12-31 2018-03-23 ***通信集团公司 A kind of determination method and device of user movement state
CN104197952B (en) * 2014-09-02 2017-06-30 百度在线网络技术(北京)有限公司 A kind of user's walking step-recording method, device and mobile terminal
US10488222B2 (en) * 2015-11-02 2019-11-26 David Martin Mobile device control leveraging user kinematics
CN105279370A (en) * 2015-09-10 2016-01-27 上海卓易科技股份有限公司 Running data recording method and system
CN106807049A (en) * 2017-01-17 2017-06-09 孙天舒 Cadence modification method and device
CN107167159B (en) * 2017-04-26 2020-06-23 青岛海信移动通信技术股份有限公司 Mobile terminal step counting method and mobile terminal
CN107361774B (en) * 2017-07-18 2020-03-17 北京动亮健康科技有限公司 Motion monitoring system and method based on step frequency

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101173869A (en) * 2006-05-05 2008-05-07 尤洛考普特公司 Method and apparatus for diagnosing a mechanism
CN104814728A (en) * 2015-05-28 2015-08-05 京东方科技集团股份有限公司 Running guide method and running guide device
CN106963388A (en) * 2017-04-12 2017-07-21 佛山市量脑科技有限公司 A kind of reponse system of Intelligent insole
CN107048570A (en) * 2017-04-12 2017-08-18 佛山市量脑科技有限公司 A kind of data analysis processing method of Intelligent insole

Also Published As

Publication number Publication date
CN107908497A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN103712632B (en) A kind of step-recording method based on 3 axle accelerometers and pedometer
EP2962637B1 (en) Human motion status monitoring method and device
CN110366387B (en) Measuring and assessing sleep quality
WO2017101755A1 (en) Micro-activity state monitoring and wearable device
US20100070669A1 (en) Smart profiler
US20220246015A1 (en) Fall detection method and apparatus, and wearable device
WO2013128972A1 (en) Movement determination device, movement determination system and movement determination method
CN110445680A (en) Network flow abnormal detecting method, device and server
CN107908497B (en) Step frequency calculation method and device and wearable device
CN109388550B (en) Cache hit rate determination method, device, equipment and readable storage medium
CN110731766A (en) Health monitoring method and system
CN112735563A (en) Recommendation information generation method and device and processor
KR101945459B1 (en) Apparatus, method, and computer program for measuring eye dryness risk
CN113017589A (en) Heart rate correction method, system and computer readable medium
CN111765898B (en) Step counting method, step counting device and computer readable storage medium
CN108882913B (en) AF detection with S1 variability
CN106445698B (en) Method and device for acquiring step counting data
CN112529432A (en) Voltage sag severity evaluation method and device and electronic equipment
JP5985328B2 (en) Storage battery residual value rating device and program
JP5534163B2 (en) Action determination device, action determination system, action determination method, and program
JP7323235B2 (en) Image tracking device, image tracking method, and program
CN111765899B (en) Step counting judgment method and device and computer readable storage medium
JP5522338B2 (en) Situation judging device, situation judging system, method and program thereof
CN114418427A (en) Gas meter matching method and system
JP4162538B2 (en) Biological signal measuring device

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