CN107941236B - Step counting method, step counting device and storage medium - Google Patents

Step counting method, step counting device and storage medium Download PDF

Info

Publication number
CN107941236B
CN107941236B CN201711272625.3A CN201711272625A CN107941236B CN 107941236 B CN107941236 B CN 107941236B CN 201711272625 A CN201711272625 A CN 201711272625A CN 107941236 B CN107941236 B CN 107941236B
Authority
CN
China
Prior art keywords
current
action
stage
value
preset time
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
CN201711272625.3A
Other languages
Chinese (zh)
Other versions
CN107941236A (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 CN201711272625.3A priority Critical patent/CN107941236B/en
Publication of CN107941236A publication Critical patent/CN107941236A/en
Application granted granted Critical
Publication of CN107941236B publication Critical patent/CN107941236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • G01C22/006Pedometers

Abstract

The invention provides a step counting method, a step counting device and a storage medium, and relates to the technical field of electronics. The step counting method comprises the steps of judging whether a first invalid action current quantity value of an invalid action characteristic in first preset time exceeds a first threshold value or not when the current stage is in a starting stage, judging whether a first valid action current quantity value of a valid action characteristic in the first preset time exceeds a second threshold value or not when the first invalid action current quantity value of the invalid action characteristic in the first preset time does not exceed the first threshold value, controlling the current stage to enter a step counting stage when the first valid action current quantity value exceeds the second threshold value, and counting steps according to the first valid action current quantity value. The step counting method solves the problem that the conventional step counting method is easily interfered by other actions of a user, so that step counting errors are caused by misjudgment.

Description

Step counting method, step counting device and storage medium
Technical Field
The invention relates to the technical field of electronics, in particular to a step counting method, a step counting device and a storage medium.
Background
With the development of electronic technology and the popularization of various electronic devices, nowadays, more and more wearable devices or handheld mobile terminal devices are integrated with micro-electromechanical system inertial sensors, the inertial sensors are generally integrated with accelerometers, angular velocity sensors (gyroscopes) and geomagnetic sensors (electronic compasses), and handheld mobile terminals such as wearable devices or mobile phones can help users to count and collect motion information when the users move, and the motion state and the body health state of the users can be obtained through analysis according to the motion information.
Most of the existing step counting technologies collect acceleration data of user movement through an accelerometer, effective step waveforms are detected in waveforms of the acceleration data based on a threshold value, and whether step counting is carried out or not is judged based on the number of the effective step waveforms. However, the valid step waveform obtained based on threshold detection alone may be an interference clutter generated by the user while moving, resulting in erroneous step counting.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a step counting method, a step counting device and a storage medium, so as to solve the problem of step counting error caused by misjudgment in the conventional step counting method.
In a first aspect, an embodiment of the present invention provides a step counting method, where when a current stage is in a starting stage, the step counting method determines whether a first invalid motion current quantity value of an invalid motion feature within a first preset time exceeds a first threshold, and if not, determines whether a first valid motion current quantity value of a valid motion feature within the first preset time exceeds a second threshold. And when the current numerical value of the first effective action exceeds the second threshold value, controlling the current stage to enter a step counting stage, and counting steps according to the current numerical value of the first effective action.
In summary of the first aspect, after the determining whether the first invalid motion current quantity value of the invalid motion feature within the first preset time exceeds the first threshold, the method further includes: and when the current number value of the first ineffective action of the ineffective action characteristics in first preset time exceeds a first threshold value, controlling the current stage to be kept at the starting stage, and resetting the current number value of the first effective action to be zero. After the determining whether the first effective motion current quantity value of the effective motion feature in the first preset time exceeds the second threshold, the method further includes: and when the first effective action current quantity value of the effective action characteristics in the first preset time exceeds a second threshold value, controlling the current stage to be kept at the starting stage, and updating the first effective action current quantity value based on the new effective action characteristics obtained in the first preset time.
In summary of the first aspect, the step counting according to the current quantity value of the first effective action includes: converting the current magnitude of the first valid action into a first new increment number, and counting the first new increment number into a total number of steps.
In summary of the first aspect, after the controlling the current phase to enter the step counting phase, the method further includes: and judging whether the effective action characteristics within the second preset time are obtained within the second preset time. And when the effective action characteristics within the second preset time are obtained within the second preset time, obtaining a second effective action current quantity value of the effective action characteristics within the second preset time. The step counting according to the current quantity value of the first effective action comprises the following steps: and counting steps according to the current quantity value of the first effective action and the current quantity value of the second effective action.
In summary of the first aspect, after determining whether the effective motion feature within the second preset time is obtained within the second preset time, the method further includes: and when the effective action characteristics within the second preset time are not acquired within the second preset time, controlling the current stage to enter the starting stage. Judging whether a third effective action current number value of effective action characteristics in third preset time after the starting stage is re-entered exceeds a second threshold value, if so, multiplying the frequency of the effective action characteristics in the second preset time by the length of the third preset time to obtain a third effective action current number value, converting the third effective action current number value into a third new step number, and counting the third new step number into the total step number. And then controlling the current stage to enter the step counting stage.
In summary of the first aspect, after the controlling the current phase to enter the step counting phase, the method further includes: and judging whether a second invalid action current quantity value of the invalid action characteristics in fourth preset time exceeds a third threshold value, if so, controlling the current stage to enter the starting stage, and clearing the first new increment number.
In a second aspect, an embodiment of the present invention provides a step counting device, where the step counting device includes a determining module, a switching module, and a step counting module. The judging module is used for judging whether the effective action current quantity value of the effective action characteristic or the ineffective action current quantity value of the ineffective action characteristic exceeds a specified threshold value. The switching module is used for controlling the current stage to enter the starting stage or the step counting stage. And the step counting module is used for counting steps according to the current number value of the first effective action and the current number value of the effective action after entering the step counting stage.
In summary of the second aspect, the determining module includes a first determining unit, a second determining unit, a third determining unit, a fourth determining unit, and a fifth determining unit. The first judging unit is used for judging whether a first invalid action current quantity value of the invalid action characteristic in a first preset time exceeds a first threshold value. The second judging unit is used for judging whether a first effective action current quantity value of the effective action characteristic in the first preset time exceeds a second threshold value. The third judging unit is used for judging whether the effective action characteristics within the second preset time are obtained within the second preset time. The fourth judging unit is used for judging whether a third effective action current quantity value of the effective action characteristics in a third preset time after the starting stage is re-entered exceeds a second threshold value. The fifth judging unit is used for judging whether the second invalid action current quantity value of the invalid action characteristic in the fourth preset time exceeds a third threshold value.
In summary of the second aspect, the step counting module includes a step number conversion unit and a step number accumulation unit. The step number conversion unit is used for converting the effective action current number value of the effective action characteristic into the step number. The step number accumulation unit is used for counting the step number into the total step number.
In a third aspect, an embodiment of the present invention further provides a storage medium stored in a computer, where the storage medium includes a plurality of instructions configured to cause the computer to execute the above method.
The beneficial effects provided by the invention are as follows:
the invention provides a step counting method, a step counting device and a storage medium. The step counting method comprises the steps of judging whether a first invalid action current quantity value of an invalid action characteristic in first preset time exceeds a first threshold value or not when the current stage is in a starting stage, judging whether a first valid action current quantity value of a valid action characteristic in the first preset time exceeds a second threshold value or not when the first invalid action current quantity value of the invalid action characteristic in the first preset time does not exceed the first threshold value, controlling the current stage to enter a step counting stage when the first valid action current quantity value exceeds the second threshold value, and counting steps according to the first valid action current quantity value. The step counting method solves the problem that the conventional step counting method is easily interfered by other actions of a user, so that step counting errors are caused by misjudgment.
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 the practice of the embodiments 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.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram showing a configuration of a step counter 100 applicable to an embodiment of the present application;
FIG. 2 is a flowchart of a step counting method according to a first embodiment of the present invention;
FIG. 3 is a logic diagram illustrating the decision to switch the current stage according to the first embodiment of the present invention;
fig. 4 is a block diagram of a step-counting device according to a second embodiment of the present invention.
Icon: 100-step counting equipment; 101-a memory; 102-a memory controller; 103-a processor; 104-peripheral interfaces; 105-an input-output unit; 106-an audio unit; 107-a display unit; 200-step counting device; 210-a judgment module; 220-a switching module; 230-step counting module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a block diagram illustrating a step counting device 100 applicable to an embodiment of the present application. The step-counting device 100 may comprise a step-counting apparatus, a memory 101, a memory controller 102, a processor 103, a peripheral interface 104, an input-output unit 105, an audio unit 106, a display unit 107.
The memory 101, the memory controller 102, the processor 103, the peripheral interface 104, the input/output unit 105, the audio unit 106, and the display unit 107 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The step-counting device comprises at least one software functional module which can be stored in the memory 101 in the form of software or firmware (firmware) or is fixed in an Operating System (OS) of the step-counting device. The processor 103 is adapted to execute executable modules stored in the memory 101, such as software functional modules or computer programs comprised by the step counter.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 101 is configured to store a program, and the processor 103 executes the program after receiving an execution instruction, and the method executed by the server defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 103, or implemented by the processor 103.
The processor 103 may be an integrated circuit chip having signal processing capabilities. The Processor 103 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor 103 may be any conventional processor or the like.
The peripheral interface 104 couples various input/output devices to the processor 103 as well as to the memory 101. In some embodiments, the peripheral interface 104, the processor 103, and the memory controller 102 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input and output unit 105 is used for providing input data for a user to realize the interaction of the user and the server (or the local terminal). The input/output unit 105 may be, but is not limited to, a mouse, a keyboard, and the like.
Audio unit 106 provides an audio interface to a user, which may include one or more microphones, one or more speakers, and audio circuitry.
The display unit 107 provides an interactive interface (e.g. a user interface) between the step-counting device 100 and a user or for displaying image data to a user reference. In this embodiment, the display unit 107 may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor 103 for calculation and processing.
It will be appreciated that the configuration shown in FIG. 1 is merely illustrative and that the step counting device 100 may also include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
First embodiment
Referring to fig. 2, fig. 2 is a flowchart of a step counting method according to a first embodiment of the present invention, as shown in fig. 2, the step counting method specifically includes the following steps:
step S100: when the current stage is in the starting stage, whether the current quantity value of the first invalid action of the invalid action characteristic in the first preset time exceeds a first threshold value is judged, and if not, the step S200 is executed.
And before judging whether the current quantity value of the first invalid action of the invalid action characteristics in the first preset time exceeds a first threshold value, acquiring action data of user action and extracting effective motion characteristics and invalid motion characteristics from the action data. The normal human step frequency is between 1 hz and 5 hz, i.e. the step interval is between 0.2 s and 1 s, but some human arm swings and steps are not in agreement, which results in a sinusoidal waveform in one axis of the sensor representing two steps, so the step interval should be between 0.2 s and 2 s, based on which the sampling frequency of the motion sensor (e.g. 25 hz) for acquiring the user's motion is determined, and the motion data needs to be slide-filtered to remove noise in the waveform before extracting the valid and invalid motion features from the motion data.
The body generates a periodically varying acceleration in the vertical direction when the person walks and also a periodically varying acceleration in the direction of travel due to the hand swinging motion during walking of the user, wherein the periodic variation resembles a sinusoidal waveform variation. The absolute value of the difference between the peak value and the valley value of the sine wave is the amplitude, and the time difference between the two sine wave peak values is the step interval, namely the time elapsed for generating a new step. Therefore, as an embodiment, in the motion data in this embodiment, the waveform with the step interval between 0.2 second and 2 seconds and the amplitude of 0.16g or more is the valid step feature, and the other waveforms are the invalid step features.
In most of the existing step counting methods, an accelerometer is used for collecting an acceleration value of a user movement, the difference between a wave crest and a wave trough of a waveform of the acceleration value is compared with a preset threshold value, and whether step counting is carried out or not is judged according to a comparison result. The step counting method only screens out effective step waveforms, judges whether a user is in a starting stage or a step counting stage according to the effective step waveforms, and counts steps by converting the effective step waveforms into step numbers, interference clutter may be generated by hand motions, bouncing motions and the like of the user during motion, and the interference clutter may be misjudged as the effective step waveforms, so that step counting errors are caused. To solve this problem, in the present embodiment, in addition to the valid motion feature, an invalid motion feature is extracted from the motion data, and whether to proceed to the next determination according to the valid motion feature is determined based on the invalid motion feature.
The first preset time may be adjusted according to actual needs and usage habits of a user, and optionally, the first preset time in this embodiment may be set to any value within one to five seconds.
The first current number value of the invalid actions is the sum of the numbers of the invalid action characteristics in the first preset time. Meanwhile, the first threshold may be adjusted according to different motion scenarios or motion habits of different users, and as an implementation manner, the first threshold in this embodiment may be set to any value between 5 and 12.
In addition, when the current number value of the first ineffective action of the ineffective action characteristic in the first preset time exceeds a first threshold value, the user is considered not to move at steps in the stage, the current stage is controlled to be kept in the starting stage, and the current number value of the first effective action is reset to zero.
Step S200: and judging whether the current quantity value of the first effective action of the effective action characteristic in the first preset time exceeds a second threshold value, and if so, executing the step S300.
The first effective motion current quantity value is the sum of the quantities of the effective motion characteristics in the first preset time. Meanwhile, the second threshold may also be adjusted according to different motion scenarios or motion habits of different users, and as an implementation manner, the first threshold in this embodiment may be set to any value between 5 and 15.
In addition, when the first effective action current quantity value of the effective action characteristics in the first preset time does not exceed the second threshold value, the user is considered not to enter a traveling state, the current stage is controlled to be kept in the starting stage, and the first effective action current quantity value is updated based on the new effective action characteristics obtained in the first preset time.
As an embodiment, when the current first effective motion quantity value of the effective motion feature within the first preset time exceeds a second threshold, the similarity determination of the effective motion feature is further required. Because the steps generated when the user travels are continuous and have certain similarity, whether the effective step characteristics are generated by interference or not can be judged according to the similarity of the steps, the similarity judgment can be that the difference of the step intervals between every two effective step characteristics is less than 250 milliseconds or the difference of the amplitudes between every two effective step characteristics is less than 0.16g, and in addition, the similarity judgment can be carried out on the step intervals and the amplitudes by using other mathematical methods such as standard deviation and the like respectively, which is not listed in the invention.
Step S300: and controlling the current stage to enter a step counting stage, and counting steps according to the current numerical value of the first effective action.
And after controlling the current stage to enter a step counting stage, converting the current value of the first effective action into a first new step increasing number, and counting the first new step increasing number into the total step number. And converting a second effective action current quantity value of the effective action characteristics which is newly acquired in a second preset time of the step counting stage into a second new step number increasing step number, and counting the second new step number increasing step number into a total step number. As an implementation manner, the second preset time may be adjusted according to specific needs, and in this embodiment, the second preset time is 2 seconds.
When the step conversion is performed, such as converting the current magnitude of the first effective action into the first new increment step, the step waveform can be considered to represent two steps when the magnitude is greater than 0.78g and the step interval is greater than 450 ms, the step can be considered to represent two steps when the magnitude is greater than 0.16g and the step interval is greater than 1 s, and the effective step waveforms in other cases are considered to be one step.
Referring to fig. 3, fig. 3 is a logic diagram of a decision for switching the current stage according to a first embodiment of the present invention.
As an embodiment, in the second preset time, it is further determined whether to acquire an effective action feature within the second preset time. If yes, controlling the current stage to be kept in the step counting stage; and if not, determining that the user stops moving the step, and controlling the current stage to enter the starting stage again.
Further, after the starting stage is entered again, whether a third effective action current quantity value of the effective action characteristics in a third preset time exceeds a second threshold value is judged. If so, determining that misjudgment occurs, multiplying the frequency of the effective action characteristic in the second preset time and the length of the third preset time to obtain a third effective action current number value, converting the third effective action current number value into a third new step number, counting the third new step number into the total step number, and controlling the current stage to enter the step counting stage again to count steps.
It should be noted that, in the step counting stage, it may also be that other motions, such as arm swing and jumping, of the user cause erroneous recognition, and recognize other motion features as the valid motion features, so that in the step counting stage, it is determined whether a second invalid motion current number value of the invalid motion features within a fourth preset time exceeds a third threshold, and if so, the current stage is controlled to enter the starting stage, and the first new increment number is cleared.
It should be understood that the acceleration value of the user's movement is collected by the accelerometer, and in the present embodiment, the collected acceleration value can be decomposed into acceleration values in three coordinate axis directions perpendicular to each other, x, y, and z. When the series of judgment is carried out, valid step waveforms and invalid step waveforms acquired by the x, y and z step counting axes are acquired and analyzed in sequence, and after all the step counting axes are analyzed, the current stage is judged to be switched. For example, in the second preset time, whether effective action characteristics in the second preset time are acquired is judged, and if yes, the current stage is controlled to be kept in the step counting stage; if not, judging whether the average copy of the effective action characteristics obtained by the detection of other step counting shafts exceeds a preset threshold value, selecting the step counting shaft with better signal quality, namely the step counting shaft with larger average amplitude of the effective action characteristics, as a new main step counting shaft, and exiting the step counting stage when the average amplitude of the effective action characteristics of other step counting shafts does not exceed the preset threshold value. For example, when the current main step counting axis is an x step counting axis and no effective action feature is collected by the x step counting axis in a preset time window, whether average amplitudes of the effective action features collected by the y step counting axis and the z step counting axis exceed a preset threshold value is judged: when the average amplitude of the effective action characteristics acquired by the y step counting shaft and the z step counting shaft does not exceed a preset threshold value, switching the current stage to a starting stage; when the average amplitude of the effective action characteristics acquired by one of the y step counting shaft or the z step counting shaft exceeds a preset threshold value, assuming that the average amplitude is the y step counting shaft, selecting the y step counting shaft as a new main step counting shaft, keeping the current stage as a step counting stage, converting the number of the effective action characteristics of the y step counting shaft in a preset window time into a new step number, and counting the new step number into a total step number; when the average amplitude of the effective action characteristics acquired by the y step counting axis and the z step counting axis exceeds a preset threshold, judging which step counting axis has larger average amplitude of the effective action characteristics, assuming that the average amplitude of the effective action characteristics of the y step counting axis is larger, selecting the y step counting axis as a new main step counting axis, keeping the current stage as a step counting stage, converting the number of the effective action characteristics of the y step counting axis in a preset window time into a new step number, and counting the total step number.
In the step counting method provided in the first embodiment of the present invention, when the current stage is in the starting stage, it is determined whether a first invalid motion current quantity value of an invalid motion feature within a first preset time exceeds a first threshold, and if not, it is determined whether a first valid motion current quantity value of an valid motion feature within the first preset time exceeds a second threshold, and when the first valid motion current quantity value exceeds the second threshold, the current stage is controlled to enter the step counting stage, and step counting is performed according to the first valid motion current quantity value. And after controlling the current stage to enter a step counting stage, judging whether effective action characteristics within second preset time are obtained or not within second preset time, if not, re-entering the starting stage, and after the step counting stage detects that the effective action characteristics are misjudged, performing step number compensation and re-entering the step counting stage. The step counting method provided by the embodiment accurately converts the effective action characteristics and the ineffective action characteristics of the user in the starting stage and the step counting stage by simultaneously acquiring and according to the effective action characteristics and the ineffective action characteristics of the user, and simultaneously avoids misjudgment and wrong step counting caused by the misjudgment compensation by analyzing the current quantity value of the ineffective action characteristics and the step number compensation.
Second embodiment
In order to implement the step counting method, the second embodiment of the present invention provides a step counting device 200. Referring to fig. 4, fig. 4 is a block diagram of a step counter according to a second embodiment of the present invention.
The step counting device 200 comprises a judging module 210, a switching module 220 and a step counting module 230.
The determining module 210 is configured to determine whether a valid motion current quantity value of the valid motion feature or an invalid motion current quantity value of the invalid motion feature exceeds a specified threshold.
To make the determination distinction more clear, the determining module 210 includes a first determining unit, a second determining unit, a third determining unit, a fourth determining unit and a fifth determining unit.
The first judging unit is used for judging whether a first invalid action current quantity value of the invalid action characteristic in a first preset time exceeds a first threshold value.
And the second judging unit is used for judging whether the current quantity value of the first effective action of the effective action characteristic in the first preset time exceeds a second threshold value.
And the third judging unit is used for judging whether the effective action characteristics within the second preset time are obtained within the second preset time.
And the fourth judging unit is used for judging whether the current quantity value of the third effective action of the effective action characteristics in the third preset time after the starting stage is re-entered exceeds a second threshold value.
And the fifth judging unit is used for judging whether the second invalid action current quantity value of the invalid action characteristic in the fourth preset time exceeds a third threshold value.
The switching module 220 is configured to control the current stage to enter the starting stage or the step counting stage.
The step counting module 230 is configured to count steps according to the current number value of the first effective action and the current number value of the effective action after entering the step counting stage.
Optionally, the step counting module 230 includes a step number conversion unit and a step number accumulation unit.
The step number conversion unit is used for converting the current number value of the effective action characteristic into the step number. And the step number accumulation unit is used for counting the step number into the total step number.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
In summary, the present invention provides a step counting method, a step counting device and a storage medium. The step counting method comprises the steps of judging whether a first invalid action current quantity value of an invalid action characteristic in first preset time exceeds a first threshold value or not when the current stage is in a starting stage, judging whether a first valid action current quantity value of a valid action characteristic in the first preset time exceeds a second threshold value or not when the first invalid action current quantity value of the invalid action characteristic in the first preset time does not exceed the first threshold value, controlling the current stage to enter a step counting stage when the first valid action current quantity value exceeds the second threshold value, and counting steps according to the first valid action current quantity value. The step counting method solves the problem that the conventional step counting method is easily interfered by other actions of a user, so that step counting errors are caused by misjudgment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present 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.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (7)

1. A method of step counting, the method comprising:
when the current stage is in a starting stage, judging whether a first invalid action current quantity value of an invalid action characteristic in first preset time exceeds a first threshold value;
when the current number value of the first ineffective action exceeds the first threshold value, controlling the current stage to be kept at the starting stage, and resetting the current number value of the first effective action to be zero;
when the first invalid action current quantity value does not exceed the first threshold, judging whether a first valid action current quantity value of the valid action features in the first preset time exceeds a second threshold;
when the current numerical value of the first effective action exceeds the second threshold value, controlling the current stage to enter a step counting stage, and counting steps according to the current numerical value of the first effective action;
and when the current quantity value of the first effective action does not exceed the second threshold value, controlling the current stage to be kept at the starting stage, and updating the current quantity value of the first effective action based on a new effective action characteristic obtained in the first preset time.
2. The step counting method of claim 1, wherein said counting steps according to said first active action current count value comprises:
converting the current magnitude of the first valid action into a first new increment number, and counting the first new increment number into a total number of steps.
3. The step counting method according to claim 1 or 2, wherein after said controlling said current phase to enter a step counting phase, said method further comprises:
judging whether effective action characteristics within second preset time are obtained within second preset time; if yes, acquiring a second effective action current quantity value of the effective action characteristics in the second preset time;
the step counting according to the current quantity value of the first effective action comprises the following steps: and counting steps according to the current quantity value of the first effective action and the current quantity value of the second effective action.
4. The step counting method according to claim 3, wherein after the determining whether the valid motion feature within the second preset time is obtained within the second preset time, the method further comprises:
if not, controlling the current stage to enter the starting stage;
judging whether a third effective action current quantity value of the effective action characteristics in a third preset time after the starting stage is re-entered exceeds a second threshold value or not;
if so, multiplying the frequency of the effective action characteristic in the second preset time by the length of the third preset time to obtain a third effective action current number value, converting the third effective action current number value into a third new step number, and counting the third new step number into the total step number;
and controlling the current stage to enter the step counting stage.
5. The step counting method of claim 2, wherein after said controlling said current phase to enter a step counting phase, said method further comprises:
judging whether a second invalid action current quantity value of the invalid action features in preset time exceeds a third threshold value;
and if so, controlling the current stage to enter the starting stage, and clearing the first new increment number.
6. A step-counting device, characterized in that the device comprises:
the judging module is used for judging whether a first invalid action current quantity value of the invalid action characteristics in first preset time exceeds a first threshold value or not when the current stage is in a starting stage;
the switching module is used for controlling the current stage to be kept at the starting stage and resetting the current numerical value of the first effective action to be zero when the current numerical value of the first ineffective action exceeds the first threshold;
the judging module is further configured to judge whether a first effective action current quantity value of an effective action feature within the first preset time exceeds a second threshold when the first ineffective action current quantity value does not exceed the first threshold;
the switching module is used for controlling the current stage to enter a step counting stage when the current quantity value of the first effective action exceeds the second threshold;
the step counting module is used for counting steps according to the current numerical value of the first effective action;
the switching module is further configured to control the current stage to remain in the starting stage when the current quantity value of the first effective action does not exceed the second threshold, and update the current quantity value of the first effective action based on a new effective action characteristic obtained within the first preset time.
7. A storage medium stored in a computer, the storage medium comprising a plurality of instructions configured to cause the computer to perform the method of any one of claims 1-5.
CN201711272625.3A 2017-12-05 2017-12-05 Step counting method, step counting device and storage medium Active CN107941236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711272625.3A CN107941236B (en) 2017-12-05 2017-12-05 Step counting method, step counting device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711272625.3A CN107941236B (en) 2017-12-05 2017-12-05 Step counting method, step counting device and storage medium

Publications (2)

Publication Number Publication Date
CN107941236A CN107941236A (en) 2018-04-20
CN107941236B true CN107941236B (en) 2020-12-11

Family

ID=61944876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711272625.3A Active CN107941236B (en) 2017-12-05 2017-12-05 Step counting method, step counting device and storage medium

Country Status (1)

Country Link
CN (1) CN107941236B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110411474A (en) * 2019-07-22 2019-11-05 杭州沃朴物联科技有限公司 Step-recording method, equipment, medium, device, chicken board and management system for breeding
CN114034313B (en) * 2021-11-10 2024-04-02 广东乐心医疗电子股份有限公司 Step counting method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103712632A (en) * 2013-12-31 2014-04-09 英华达(上海)科技有限公司 Step counting method and pedometer based on three-axis accelerometer
CN105953814A (en) * 2016-06-21 2016-09-21 广东欧珀移动通信有限公司 Step counting method, step counting device and mobile terminal
JP2016181210A (en) * 2015-03-25 2016-10-13 株式会社 ウェブテクノロジ Number-of-steps detection device, number-of-steps detection method, and computer program
CN106441350A (en) * 2016-10-09 2017-02-22 深圳市金立通信设备有限公司 Step counting method and terminal
CN106681478A (en) * 2017-01-04 2017-05-17 北京邮电大学 Simple scheme for distinguishing state of portable wearable device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103712632A (en) * 2013-12-31 2014-04-09 英华达(上海)科技有限公司 Step counting method and pedometer based on three-axis accelerometer
JP2016181210A (en) * 2015-03-25 2016-10-13 株式会社 ウェブテクノロジ Number-of-steps detection device, number-of-steps detection method, and computer program
CN105953814A (en) * 2016-06-21 2016-09-21 广东欧珀移动通信有限公司 Step counting method, step counting device and mobile terminal
CN106441350A (en) * 2016-10-09 2017-02-22 深圳市金立通信设备有限公司 Step counting method and terminal
CN106681478A (en) * 2017-01-04 2017-05-17 北京邮电大学 Simple scheme for distinguishing state of portable wearable device

Also Published As

Publication number Publication date
CN107941236A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
US10905374B2 (en) Method and wearable device for performing actions using body sensor array
US8164573B2 (en) Systems and methods for adaptive interpretation of input from a touch-sensitive input device
US7259756B2 (en) Method and apparatus for selecting information in multi-dimensional space
CN103269640B (en) Signal processing device, touch panel unit, information processing device, and signal processing method
KR101234111B1 (en) Apparatus for contact-free input interfacing and contact-free input interfacing method using the same
EP2860611A1 (en) User interface method and apparatus based on spatial location recognition
US8928609B2 (en) Combining touch screen and other sensing detections for user interface control
CN105159539A (en) Touch control response method of wearable equipment, touch control response device of wearable equipment and wearable equipment
CN107941236B (en) Step counting method, step counting device and storage medium
CN102954803A (en) Adaptive step-counting processing system and method
JP6446922B2 (en) Measuring device, measuring method and program
EP3289435B1 (en) User interface control using impact gestures
CN205050078U (en) A wearable apparatus
CN110764652A (en) Infrared touch screen and touch point prediction method thereof
CN106527717A (en) Information input recognition method and device
KR101639351B1 (en) Wearable input system and method for recognizing motion
CN113340322B (en) Step counting method and device, electronic equipment and readable storage medium
WO2016165333A1 (en) Method and apparatus for realizing step counting
US20170123586A1 (en) Model-based touch event location adjustment
CN113342407B (en) Screen control method and device, electronic equipment and readable storage medium
KR101686585B1 (en) A hand motion tracking system for a operating of rotary knob in virtual reality flighting simulator
Forbes Mouse HCI through combined EMG and IMU
US10786182B2 (en) System and method for passive remote monitoring of patients' fine motor behavior
CN109425364B (en) Electronic device for performing step counting with false positive rejection
CN113244595B (en) Action explosive force analysis method and system

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