WO2022000996A1 - 计步判断方法、装置及计算机可读存储介质 - Google Patents

计步判断方法、装置及计算机可读存储介质 Download PDF

Info

Publication number
WO2022000996A1
WO2022000996A1 PCT/CN2020/134137 CN2020134137W WO2022000996A1 WO 2022000996 A1 WO2022000996 A1 WO 2022000996A1 CN 2020134137 W CN2020134137 W CN 2020134137W WO 2022000996 A1 WO2022000996 A1 WO 2022000996A1
Authority
WO
WIPO (PCT)
Prior art keywords
axis
step counting
data
feature
reference axis
Prior art date
Application number
PCT/CN2020/134137
Other languages
English (en)
French (fr)
Inventor
唐燕华
Original Assignee
歌尔股份有限公司
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 歌尔股份有限公司 filed Critical 歌尔股份有限公司
Priority to US17/997,210 priority Critical patent/US20230221142A1/en
Publication of WO2022000996A1 publication Critical patent/WO2022000996A1/zh

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
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/1123Discriminating type of movement, e.g. walking or running
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B2562/00Details of sensors; Constructional details of sensor housings or probes; Accessories for sensors
    • A61B2562/02Details of sensors specially adapted for in-vivo measurements
    • A61B2562/0219Inertial sensors, e.g. accelerometers, gyroscopes, tilt switches
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/112Gait analysis

Definitions

  • the present application relates to the technical field of wearable devices, and in particular, to a step counting judgment method, device, and computer-readable storage medium.
  • the step counting and judging device can record the number of steps of walking or running in the user's daily activities, so as to provide the user with information on the number of moving steps, which is convenient for the user to follow the action.
  • the step count information determines the user's amount of exercise and energy expenditure.
  • the acceleration sensor is usually used to collect the acceleration data of the user while walking, and the number of walking steps of the user is determined according to the acceleration data.
  • the acceleration data collected by the sensor is close to the acceleration data collected by walking, which leads to misstep counting.
  • the step counting judging device cannot accurately record the number of walking steps of the user, resulting in a decrease in the accuracy of the step counting.
  • the present application provides a step counting and judging method, a device and a computer-readable storage medium, which aim to solve the problem of low accuracy of step counting by a step counting and judging device in the prior art.
  • the application proposes a step counting judgment method, and the step counting judgment method comprises:
  • step count data is valid data
  • a step count operation is performed.
  • the step of determining the characteristic value corresponding to each axis according to the acceleration data set corresponding to each axis includes:
  • the acceleration data set corresponding to each axis determine the maximum value and the minimum value in the acceleration data set
  • the characteristic value corresponding to the axis is determined according to the maximum value and the minimum value in the acceleration data set.
  • the step of judging the validity of the pedometer data according to the feature axis and the reference axis includes:
  • the step of determining whether the feature axis and the reference axis are the same further includes:
  • the characteristic axis is set as the reference axis of the next step counting cycle.
  • the step of judging the validity of the pedometer data according to the characteristic axis and the reference axis includes:
  • the number of buffers remains unchanged, and the number of cycles is increased by 1, wherein, when the feature axis is the same as the reference axis, return to execute the method according to the feature axis and the reference axis Steps for judging the validity of pedometer data;
  • the validity of the step counting data is determined according to the number of buffering times and the buffering threshold, wherein when the number of buffering is less than or equal to the buffering threshold, the step counting data is determined to be valid.
  • the data is valid data, and both the number of cycles and the number of buffering are reset to initial values.
  • the step of determining the validity of the step-counting data according to the buffering times and the buffering threshold when the number of cycles of the step-counting cycle reaches a preset number of times further comprising:
  • the cycle times and the buffering times are both reset to initial values, and the step of acquiring the acceleration data set corresponding to each axis of the acceleration sensor in the current pedometer cycle is executed.
  • the step of judging the validity of the pedometer data according to the feature axis and the reference axis includes:
  • the first feature value is added to the preset buffer array, and the number of cycles is increased by 1, wherein, when the feature axis is the same as the reference axis, return to execute the The step of judging the validity of the step counting data by the feature axis and the reference axis;
  • the second feature value is added to the preset buffer array, and the number of loops is increased by 1, wherein when the feature axis is not the same as the reference axis, return to execute the Describe the step of judging the validity of pedometer data according to the characteristic axis and the reference axis, the second characteristic value is not equal to the first characteristic value;
  • the validity of the pedometer data is determined according to the number of the second characteristic values in the buffer array and the preset value.
  • the number of the second characteristic values is less than the preset value, it is determined that the step count data is valid data, the buffer array is cleared, and both the number of cycles and the number of buffers are reset to initial values.
  • the step of determining the validity of the pedometer data according to the number of the second characteristic values in the buffer array and the preset value when the number of cycles of the pedometer cycle reaches a preset number of times Also includes:
  • Each axis corresponds to the steps of the acceleration dataset.
  • the present application proposes a step counting judgment device, the step counting judgment device comprises a memory, a processor and a step counting judgment program that is stored on the memory and can be run on the processor, and the step counting judgment program is When the processor executes the step counting judgment program, the step counting judgment method according to any one of the above embodiments is implemented.
  • the present application proposes a computer-readable storage medium, on which a step-counting judgment program is stored, and when the step-counting judgment program is executed by a processor, any of the above-mentioned embodiments is realized.
  • the steps of the step counting judgment method are realized.
  • the present application proposes a pedometer judgment method.
  • the pedometer judgment method includes: acquiring an acceleration data set corresponding to each axis of an acceleration sensor in a current pedometer cycle; determining according to the acceleration data set corresponding to each axis The eigenvalues corresponding to each axis; compare the eigenvalues of different axes, and determine the axis corresponding to the maximum value of the eigenvalues as the feature axis; judge the validity of the pedometer data according to the feature axis and the reference axis property; when the step counting data is valid data, the step counting operation is performed. Before performing the step counting operation, calculate the acquired acceleration data set, and judge whether the user's motion state has changed through the calculated characteristic axis.
  • FIG. 1 is a schematic structural diagram of a terminal of a hardware operating environment involved in a solution according to an embodiment of the present application
  • Fig. 2 is the schematic flow chart of the step counting method embodiment 1 of the present application.
  • Fig. 3 is the schematic flow chart of the embodiment 2 of the step counting method of the application.
  • Embodiment 4 is a schematic flowchart of Embodiment 4 of the step counting method of the present application.
  • Embodiment 5 is a schematic flowchart of Embodiment 5 of the step counting method of the present application.
  • FIG. 9 is a schematic flowchart of Embodiment 8 of the step counting method of the present application.
  • the terms “connected”, “fixed” and the like should be understood in a broad sense, for example, “fixed” may be a fixed connection, a detachable connection, or an integrated; It can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be an internal communication between two elements or an interaction relationship between the two elements, unless otherwise explicitly defined.
  • “fixed” may be a fixed connection, a detachable connection, or an integrated; It can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be an internal communication between two elements or an interaction relationship between the two elements, unless otherwise explicitly defined.
  • FIG. 1 is a schematic diagram of a device structure of a hardware operating environment involved in the solution of the embodiment of the present application.
  • the apparatus may include: a controller 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 .
  • the communication bus 1002 is used to realize the connection and communication between these components.
  • the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface).
  • the memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned controller 1001 .
  • FIG. 1 does not constitute a limitation to the device, and may include more or less components than the one shown, or combine some components, or arrange different components.
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program.
  • the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
  • the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client;
  • the controller 1001 can be used to invoke an application stored in memory 1005 and perform the following operations:
  • step count data is valid data
  • a step count operation is performed.
  • controller 1001 can call the application program stored in the memory 1005, and also perform the following operations:
  • the acceleration data set corresponding to each axis determine the maximum value and the minimum value in the acceleration data set
  • the characteristic value corresponding to the axis is determined according to the maximum value and the minimum value in the acceleration data set.
  • controller 1001 can call the application program stored in the memory 1005, and also perform the following operations:
  • controller 1001 can call the application program stored in the memory 1005, and also perform the following operations:
  • the characteristic axis is set as the reference axis of the next step counting cycle.
  • controller 1001 can call the application program stored in the memory 1005, and also perform the following operations:
  • the number of buffers remains unchanged, and the number of cycles is increased by 1, wherein, when the feature axis is the same as the reference axis, return to execute the method according to the feature axis and the reference axis Steps for judging the validity of pedometer data;
  • the validity of the step counting data is determined according to the number of buffering times and the buffering threshold, wherein when the number of buffering is less than or equal to the buffering threshold, the step counting data is determined to be valid.
  • the data is valid data, and both the number of cycles and the number of buffering are reset to initial values.
  • controller 1001 can call the application program stored in the memory 1005, and also perform the following operations:
  • the cycle times and the buffering times are both reset to initial values, and the step of acquiring the acceleration data set corresponding to each axis of the acceleration sensor in the current pedometer cycle is executed.
  • controller 1001 can call the application program stored in the memory 1005, and also perform the following operations:
  • the first feature value is added to the preset buffer array, and the number of cycles is increased by 1, wherein, when the feature axis is the same as the reference axis, return to execute the The step of judging the validity of the step counting data by the feature axis and the reference axis;
  • the second feature value is added to the preset buffer array, and the number of loops is increased by 1, wherein when the feature axis is not the same as the reference axis, return to execute the Describe the step of judging the validity of pedometer data according to the characteristic axis and the reference axis, the second characteristic value is not equal to the first characteristic value;
  • the validity of the pedometer data is determined according to the number of the second characteristic values in the buffer array and the preset value.
  • the number of the second characteristic values is less than the preset value, it is determined that the step count data is valid data, the buffer array is cleared, and both the number of cycles and the number of buffers are reset to initial values.
  • controller 1001 can call the application program stored in the memory 1005, and also perform the following operations:
  • Each axis corresponds to the steps of the acceleration dataset.
  • the present application provides a step counting judgment method, device and computer-readable storage medium.
  • described step counting judging method comprises:
  • the pedometer judging device includes an acceleration sensor.
  • the acceleration sensor is used to measure the acceleration data of three axes, wherein the three axes are the X axis, the Y axis and the Z axis, and the X axis corresponds to
  • the acceleration data is a collection of the data of the acceleration sensor in the X-axis direction changing with time
  • the acceleration data corresponding to the Y-axis is the collection of the acceleration sensor's acceleration in the Y-axis direction changing with time
  • the acceleration data corresponding to the Z-axis is a collection of data of the acceleration of the acceleration sensor in the Z-axis direction changing with time.
  • the acceleration data is waveform data that changes over a period of time.
  • the effective wave peak is extracted from the acceleration data, and the step counting data is determined according to the peak value information and time information of the effective wave crest.
  • the characteristic axis is associated with the effective wave peak in the acceleration data set, and after the effective wave peak is determined through the acceleration data set, the characteristic value is determined according to the effective wave peak.
  • the acceleration information of the user detected by the acceleration sensor changes periodically, and when the user performs other actions, the acceleration sensor detects different physical activities due to different physical activities.
  • the acceleration data are also different.
  • the X axis and the Y axis in the acceleration sensor are set as two axes whose horizontal directions are perpendicular to each other, and the Z axis is perpendicular to the plane formed by the X axis and the Y axis.
  • the Z axis direction is the vertical direction.
  • the validity of the step counting data needs to be judged by comparing the feature axis and the reference axis. Specifically, when the feature axis and the reference axis are the same, It means that the pedometer data collected by the acceleration sensor is valid data, and the data collected by the pedometer data is valid data when the user is in a walking state. Therefore, a pedometer operation can be performed on the pedometer data of the current pedometer cycle.
  • the present application proposes a pedometer judgment method.
  • the pedometer judgment method includes: acquiring an acceleration data set corresponding to each axis of an acceleration sensor in a current pedometer cycle; determining according to the acceleration data set corresponding to each axis The eigenvalues corresponding to each axis; compare the eigenvalues of different axes, and determine the axis corresponding to the maximum value of the eigenvalues as the feature axis; judge the validity of the pedometer data according to the feature axis and the reference axis property; when the step counting data is valid data, the step counting operation is performed. Before performing the step counting operation, calculate the acquired acceleration data set, and judge whether the user's motion state has changed through the calculated characteristic axis.
  • the step S200 includes:
  • S220 Determine the characteristic value corresponding to the axis according to the maximum value and the minimum value in the acceleration data set.
  • the acceleration data stored in the acceleration data set fluctuates up and down periodically after changing with time, thereby forming waveform information.
  • the waveform of each axis in the waveform information can be The maximum and minimum values in the information determine the eigenvalues corresponding to the axis.
  • the sampling frequency of the pedometer judging device is 25 Hz, which means that the acceleration sensor in the pedometer judging device collects acceleration data 25 times per second in different axes, and the pedometer is set.
  • the step S400 includes:
  • S410 Determine whether the feature axis is the same as the reference axis, wherein when the feature axis is the same as the reference axis, determine that the step count data is valid data.
  • the feature axis is the same as the reference axis, it means that the user's motion state has not changed between the previous pedometer cycle and the current pedometer cycle, so it can be determined that the user is in the previous pedometer cycle and the current pedometer cycle.
  • the pedometer is in a stable motion state within the pedometer cycle, so it is determined that the pedometer data is valid data.
  • the step-counting judgment device sets the Z-axis as the reference axis, and when the step-counting and judgment device determines that the Z-axis is the characteristic axis
  • the subsequent step counting function is performed to determine the number of walking steps of the user.
  • the step S410 further includes:
  • the step-counting judging device completes the judgment on the characteristic axis of the current step-counting cycle, when the characteristic axis is different from the reference axis, in order to determine the motion state of the next step-counting cycle Judgment, it is necessary to set the characteristic axis of the current cycle as the reference axis of the next step cycle, so as to facilitate the judgment of whether the user's motion state in the next step cycle and the current state of the step cycle are not. same.
  • the step of acquiring the acceleration data set corresponding to each axis of the acceleration sensor in the current pedometer cycle is repeatedly performed, so that after each acquisition of the acceleration data set by the pedometer judging device, Priority is given to determining the user's motion state, and when the user's motion state is the same as the preset situation, the step counting operation is continued. Compared with the direct step counting operation, it can effectively avoid the possibility of the user being in a non-walking state. The erroneous step count caused by the generated vibration improves the accuracy of the step counting judging device.
  • the reference axis can be determined not only through the previous step counting cycle, but also through a preset or user-defined way to determine the corresponding axis as the reference axis, so as to prevent the user from constantly switching.
  • the pedometer device replaces the reference axis for many times, which leads to an error in the judgment of the pedometer judging device.
  • the step S400 includes:
  • a parameter of the number of buffering times can be introduced.
  • the change of the characteristic axis in the step counting period determines whether the user's motion state changes. Specifically, when judging the feature axis and the reference axis in one step counting cycle, when the feature axis is the same as the reference axis, the number of buffering times is set unchanged, and when the feature axis is the same as the reference axis When the axis is different from the reference axis, set the buffer times plus one.
  • step counting cycle After the comparison between the characteristic axis and the reference axis is completed in each step counting cycle, set the number of cycles to increase by 1, and return to step S100, and after the cycle number of the step counting cycle reaches a preset number of times, according to the the number of times of buffering, the validity of the pedometer data of the pedometer period corresponding to the number of times of buffering is judged, and when the number of times of buffering is less than or equal to the buffering threshold, all the pedometers in the number of times of buffering are determined The pedometer data of the period is valid data. And in order to facilitate the continuation of the step counting operation subsequently, the number of cycles and the number of buffers are both reset to initial values.
  • the step counting judgment device is in each step counting period. Acquire acceleration data for 25 times, and judge the characteristic axis once per second. When the characteristic axis of the five pedometer cycles are all equal, the number of buffering times is 0, then start the 5-second pedometer data. Perform step counting.
  • the step S450, the subsequent pregnancy includes:
  • the number of buffering times is greater than the buffering threshold, it means that the user's motion state has changed in the pedometer cycle within the preset number of times, and therefore the pedometer cycle within the current preset number of times does not count steps Operation, in order to facilitate the operation of the subsequently acquired data, the number of cycles of the step counting cycle and the number of times of buffering are both reset to the initial values, so that the step counting judging device can restart the movement state of the user. judge.
  • the preset number of times is set to 5 times, and the step counting period is 1 second.
  • the buffering times are greater than 0, which means that During the 5 seconds, if the user's motion state changes, the step counting operation is not performed for the 5 seconds.
  • the step S400 includes:
  • a buffer array parameter is introduced, and in each said counting
  • the feature axis of the step cycle and the reference axis are judged, and the first feature value or the second feature value is output according to whether the feature axis and the reference axis are the same.
  • the first feature value is output, the feature axis is different from the reference axis, and the second feature value is output, and the second feature value is not equal to the first feature value.
  • the buffer array When a preset number of the step counting cycles have passed, the buffer array is judged, and when the number of the second characteristic values included in the buffer array is less than the preset value, it means that the user is in all the preset times.
  • the motion state does not change within the step counting period, and the step counting operation continues to be performed on the acceleration data set.
  • the number of cycles After the comparison between the characteristic axis and the reference axis is completed in each step counting cycle, the number of cycles is set to increase by 1, and the process returns to step S100.
  • the number of the second characteristic values in the buffer array the validity of the pedometer data of the pedometer period corresponding to the number of buffering times is judged, and when the number of buffering times is less than or equal to the buffering threshold, determine The step counting data of all the step counting periods within the buffering times are valid data. And in order to facilitate the subsequent pedometer operation, the buffer array will be emptied, and both the number of cycles and the number of buffers will be reset to initial values.
  • the pedometer cycle when the preset number of times is set to 5, the pedometer cycle is 1 second, the sampling frequency is 25 Hz, and the preset value is 1, then the pedometer judging device is used for each pedometer cycle. Acquire acceleration data for 25 times, and judge the characteristic axis once per second, set the first characteristic value to 10, and set the second characteristic value to 5, then when the characteristic axis of the 5 said step counting cycles is After the judgment is completed, when the buffer array is (10, 10, 10, 10, 10), it means that the user is still walking within 5 seconds, and the step counting operation can be performed on the acceleration data set within 5 seconds.
  • step S640 further includes:
  • the step counting operation is performed on the acceleration data set of the step counting period within a preset number of times.
  • the step counting judgment device is in each step counting period.
  • Acquire acceleration data for 25 times judge the characteristic axis once per second, set the first characteristic value to 10, and set the second characteristic value to 5, then when the characteristic axis of the 5 pedometer cycles is judged
  • the buffer array is (10, 5, 10, 5, 10)
  • the present application proposes a step counting and judging device, comprising a memory, a processor and a step counting program that is stored on the memory and can be run on the processor, and the processor executes the step counting program.
  • the step counting method described in any one of the above embodiments is implemented.
  • the present application also proposes a computer-readable storage medium, on which a pedometer program is stored, and when the pedometer program is executed by the processor, it is implemented as described in any of the above-mentioned embodiments. Steps of the step counting method described.
  • the processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application-specific integrated circuits ( Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU Central Processing Unit
  • DSP Digital Signal Processors
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory may be an internal storage unit of the device, such as a hard disk or memory of the device.
  • the memory can also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card (Flash Card), etc.
  • the memory may also include both an internal storage unit of the device and an external storage device.
  • the memory is used to store the computer program and other programs and data required by the device.
  • the memory may also be used to temporarily store data that has been output or is to be output.
  • a software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
  • RAM random access memory
  • ROM read only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Biophysics (AREA)
  • Medical Informatics (AREA)
  • Dentistry (AREA)
  • Physiology (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种计步判断方法、装置及计算机可读存储介质,计步判断方法包括:获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集(S100);根据每个轴对应的加速度数据集确定每个轴对应的特征值(S200);对不同轴的特征值进行比较,确定特征值中的最大值对应的轴为特征轴(S300);根据特征轴与参考轴确定计步数据的有效性(S400);当计步数据为有效数据时,执行计步操作(S500)。旨在解决计步判断装置计步的准确率低的问题。

Description

计步判断方法、装置及计算机可读存储介质
本申请要求于2020年06月30日提交中国专利局、申请号为202010619088.0、发明名称为“计步判断方法、装置及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及可穿戴设备技术领域,尤其涉及一种计步判断方法、装置及计算机可读存储介质。
背景技术
随着电子设备的发展,用户越来越关注个人的日常运动情况,而计步判断装置能够记录用户日常活动中的行走或跑步的步数,从而向用户提供行动步数信息,方便用户根据行动步数信息确定用户的运动量以及能量消耗。
现有的计步方式中,通常采用加速度传感器采集用户行走时的加速度数据,并根据加速度数据确定用户的行走步数,但是在实际生活中,用户在进行例如家务或是洗手等动作时,加速度传感器采集到的加速度数据与行走采集到的加速度数据接近,从而导致出现误计步的情况。而由于一些肢体动作产生的加速度数据与行走产生的加速度数据较接近,因此计步判断装置无法准确的对用户的行走步数进行记录,导致计步的准确率下降。
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。
发明内容
本申请提供一种计步判断方法、装置及计算机可读存储介质,旨在解决现有技术中计步判断装置计步的准确率低的问题。
为实现上述目的,本申请提出了一种计步判断方法,所述计步判断方法包括:
获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集;
根据每个轴对应的所述加速度数据集确定每个轴对应的特征值;
对不同轴的所述特征值进行比较,确定所述特征值中的最大值对应的轴为特征轴;
根据所述特征轴与参考轴确定计步数据的有效性;
当所述计步数据为有效数据时,执行计步操作。
可选的,所述根据每个轴对应的所述加速度数据集确定每个轴对应的特征值的步骤,包括:
根据每个轴对应的所述加速度数据集,确定所述加速度数据集中的最大值与最小值;
根据所述加速度数据集中的最大值与最小值,确定该轴对应的所述特征值。
可选的,所述根据所述特征轴与参考轴判断计步数据的有效性的步骤,包括:
确定所述特征轴与所述参考轴是否相同,其中,当所述特征轴与所述参考轴相同时,确定所述计步数据为有效数据。
可选的,所述确定所述特征轴与所述参考轴是否相同的步骤,之后还包括:
当所述特征轴与所述参考轴不同时,将所述特征轴设置为下一个所述计步周期的所述参考轴。
可选的,述根据所述特征轴与参考轴判断计步数据的有效性的步骤,包括:
判断所述特征轴与所述参考轴是否相同;
当所述特征轴与所述参考轴相同时,缓冲次数不变,循环次数加1,其中,当所述特征轴与所述参考轴相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
当所述特征轴与所述参考轴不相同时,将所述缓冲次数加1,循环次数加1,其中,当所述特征轴与所述参考轴不相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
当计步周期的循环次数达到预设次数时,根据所述缓冲次数以及缓冲阈值确定所述计步数据的有效性,其中,当所述缓冲次数小于或等于缓冲阈值时,确定所述计步数据为有效数据,并将所述循环次数与缓冲次数均重置为初始值。
可选的,所述当计步周期的循环次数达到预设次数时,根据所述缓冲次数以及缓冲阈值确定所述计步数据的有效性的步骤,之后还包括:
当所述缓冲次数大于缓冲阈值时,将所述循环次数与缓冲次数均重置为初始值,返回执行获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集的步骤。
可选的,所述根据所述特征轴与参考轴判断计步数据的有效性的步骤,包括:
判断特征轴与所述参考轴是否相同;
当所述特征轴与所述参考轴相同时,将第一特征值添加至预设缓冲数组,循环次数加1,其中,当所述特征轴与所述参考轴相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
当所述特征轴与所述参考轴不相同时,将第二特征值添加至预设缓冲数组,循环次数加1,其中,当所述特征轴与所述参考轴不相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤,所述第二特征值与所述第一特征值不相等;
当计步周期的循环次数达到预设次数时,根据所述缓冲数组中所述第二特征值的个数与预设值确定所述计步数据的有效性,其中,当缓冲数组中包括的第二特征值个数小于预设值时,确定所述计步数据为有效数据,并清空所述缓冲数组,将所述循环次数与缓冲次数均重置为初始值。
可选的,所述当计步周期的循环次数达到预设次数时,根据所述缓冲数组中所述第二特征值的个数与预设值确定所述计步数据的有效性步骤,之后还包括:
当缓冲数组中包括的第二特征值个数大于或等于预设值时,清空所述缓冲数组,将所 述循环次数重置为初始值,并返回执行获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集的步骤。
为实现上述目的,本申请提出一种计步判断装置,所述计步判断装置包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计步判断程序,所述处理器执行所述计步判断程序时实现如上述任一项实施方式所述计步判断方法。
为实现上述目的,本申请提出一种计算机可读存储介质,所述计算机可读存储介质上存储有计步判断程序,所述计步判断程序被处理器执行时实现如上述任一项实施方式所述的计步判断方法的步骤。
本申请提出一种计步判断方法,所述计步判断方法包括:获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集;根据每个轴对应的所述加速度数据集确定每个轴对应的特征值;对不同轴的所述特征值进行比较,确定所述特征值中的最大值对应的轴为特征轴;根据所述特征轴与参考轴判断计步数据的有效性;当所述计步数据为有效数据时,执行计步操作。在执行计步操作前,通过对获取的所述加速度数据集进行计算,并通过计算得到的特征轴判断用户的运动状态是否发生改变,当用户的运动状态未发生改变时,执行后续的计步操作,当用户的运动状态发生改变时,表示用户已经从行走状态转为其他运动状态,因此不必再执行后续的计步操作。通过所述加速度数据集判断用户的运动状态,减少用户由于运动状态改变而引起的误计步状态,解决了现有技术中计步判断装置计步的准确率低的问题。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一部分附图,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请实施例方案涉及的硬件运行环境的终端结构示意图;
图2为本申请计步方法实施例1的流程示意图;
图3为本申请计步方法实施例2的流程示意图;
图4为本申请计步方法实施例3的流程示意图;
图5为本申请计步方法实施例4的流程示意图;
图6为本申请计步方法实施例5的流程示意图;
图7为本申请计步方法实施例6的流程示意图;
图8为本申请计步方法实施例7的流程示意图;
图9为本申请计步方法实施例8的流程示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明,本申请实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。
另外,在本申请中如涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
在本申请中,除非另有明确的规定和限定,术语“连接”、“固定”等应做广义理解,例如,“固定”可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。
另外,本申请各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的装置结构示意图。
如图1所示,该装置可以包括:控制器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述控制器1001的存储装置。
本领域技术人员可以理解,图1中示出的装置结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及应用程序。
在图1所示的服务器中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而控制器1001可以用于调用存储器1005中存储的应用程序,并执行以下操作:
获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集;
根据每个轴对应的所述加速度数据集确定每个轴对应的特征值;
对不同轴的所述特征值进行比较,确定所述特征值中的最大值对应的轴为特征轴;
根据所述特征轴与参考轴判断计步数据的有效性;
当所述计步数据为有效数据时,执行计步操作。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
根据每个轴对应的所述加速度数据集,确定所述加速度数据集中的最大值与最小值;
根据所述加速度数据集中的最大值与最小值,确定该轴对应的所述特征值。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
确定所述特征轴与所述参考轴是否相同,其中,当所述特征轴与所述参考轴相同时,确定所述计步数据为有效数据。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
当所述特征轴与所述参考轴不同时,将所述特征轴设置为下一个所述计步周期的所述参考轴。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
判断所述特征轴与所述参考轴是否相同;
当所述特征轴与所述参考轴相同时,缓冲次数不变,循环次数加1,其中,当所述特征轴与所述参考轴相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
当所述特征轴与所述参考轴不相同时,将所述缓冲次数加1,循环次数加1,其中,当所述特征轴与所述参考轴不相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
当计步周期的循环次数达到预设次数时,根据所述缓冲次数以及缓冲阈值确定所述计步数据的有效性,其中,当所述缓冲次数小于或等于缓冲阈值时,确定所述计步数据为有效数据,并将所述循环次数与缓冲次数均重置为初始值。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
当所述缓冲次数大于缓冲阈值时,将所述循环次数与缓冲次数均重置为初始值,返回执行获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集的步骤。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
判断特征轴与所述参考轴是否相同;
当所述特征轴与所述参考轴相同时,将第一特征值添加至预设缓冲数组,循环次数加1,其中,当所述特征轴与所述参考轴相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
当所述特征轴与所述参考轴不相同时,将第二特征值添加至预设缓冲数组,循环次数加1,其中,当所述特征轴与所述参考轴不相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤,所述第二特征值与所述第一特征值不相等;
当计步周期的循环次数达到预设次数时,根据所述缓冲数组中所述第二特征值的个数与预设值确定所述计步数据的有效性,其中,当缓冲数组中包括的第二特征值个数小于预设值时,确定所述计步数据为有效数据,并清空所述缓冲数组,将所述循环次数与缓冲次数均重置为初始值。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
当缓冲数组中包括的第二特征值个数大于或等于预设值时,清空所述缓冲数组,将所述循环次数重置为初始值,并返回执行获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集的步骤。
本申请提供一种计步判断方法、装置及计算机可读存储介质。
实施例1
请参照图2,所述计步判断方法包括:
S100,获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集;
其中,计步判断装置包括加速度传感器,具体的,所述加速度传感器用于测量三个轴向的加速度数据,其中,三个轴向分别为X轴,Y轴与Z轴,所述X轴对应的加速度数据为所述加速度传感器在X轴方向的加速度随时间变化的数据的集合,所述Y轴对应的加速度数据为所述加速度传感器在Y轴方向的加速度随时间变化的数据的集合,所述Z轴对应的加速度数据为所述加速度传感器在Z轴方向的加速度随时间变化的数据的集合。所述加速度传感器在获得三个轴向对应的所述加速度数据集后,对三个所述加速度数据集进行计算后确定总的加速度数据。
S200,根据每个轴对应的所述加速度数据集确定每个轴对应的特征值;
其中,为了方便计步判断装置根据所述加速度数据确定每个轴对应的所述特征值,需要根据所述加速度数据进行计算处理,具体的,所述加速度数据为在一段时间内变化的波形数据,在进行计步操作过程中,从所述加速度数据中提取出有效波峰,并根据有效波峰的峰值信息及时间信息,确定计步数据。在一具体实施方式中,所述特征轴与所述加速度数据集中的所述有效波峰关联,在通过所述加速度数据集确定所述有效波峰后,根据所述有效波峰确定所述特征值。
S300,对不同轴的所述特征值进行比较,确定所述特征值中的最大值对应的轴为特征轴;
其中,用户在行走过程中,所述加速度传感器检测到的用户的加速度信息为周期性变 化,而当用户在执行其他动作时,由于执行不同动作的肢体活动不相同,导致所述加速度传感器检测到的加速度数据也不相同。具体的,设置所述加速度传感器中的X轴与Y轴为水平方向相互垂直的两轴,Z轴垂直于X轴与Y轴形成的平面,优选的,Z轴方向为竖直方向,当用户行走时,用户检测到Z轴方向的加速度变化较大,而X轴与Y轴的变化范围较小,因此可以判断当用户行走时,加速度传感器在Z轴方向的加速度数据集最大。
S400,根据所述特征轴与参考轴判断计步数据的有效性;
S500,当所述计步数据为有效数据时,执行计步操作。
其中,在确定所述特征轴后,需要通过对比所述特征轴与所述参考轴判断所述计步数据的有效性,具体的,当所述所述特征轴与所述参考轴相同时,表示所述加速度传感器采集到的计步数据为有效数据,所述计步数据采集的数据为用户在行走状态时的有效数据,因此可以对当前计步周期的计步数据执行计步操作。
本申请提出一种计步判断方法,所述计步判断方法包括:获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集;根据每个轴对应的所述加速度数据集确定每个轴对应的特征值;对不同轴的所述特征值进行比较,确定所述特征值中的最大值对应的轴为特征轴;根据所述特征轴与参考轴判断计步数据的有效性;当所述计步数据为有效数据时,执行计步操作。在执行计步操作前,通过对获取的所述加速度数据集进行计算,并通过计算得到的特征轴判断用户的运动状态是否发生改变,当用户的运动状态未发生改变时,执行后续的计步操作,当用户的运动状态发生改变时,表示用户已经从行走状态转为其他运动状态,因此不必再执行后续的计步操作。通过所述加速度数据集判断用户的运动状态,减少用户由于运动状态改变而引起的误计步状态,解决了现有技术中计步判断装置计步的准确率低的问题。
实施例2
在实施例1中,所述步骤S200,包括:
S210,根据每个轴对应的所述加速度数据集,确定所述加速度数据集中的最大值与最小值;
S220,根据所述加速度数据集中的最大值与最小值,确定该轴对应的所述特征值。
具体的,所述加速度数据集中保存的加速度数据在随着时间变化后呈周期性的上下浮动,从而形成波形信息,为了确定用户的行走情况,可以根据所述波形信息中每个轴向的波形信息中的最大值与最小值,确定该轴对应的特征值。
在一具体实施方式中,所述计步判断装置的采样频率为25赫兹,表示所述计步判断装置中的加速度传感器在不同的轴向每秒均采集25次加速度数据,设置所述计步周期为1秒,那么在一个所述计步周期内,25次采集的所述加速度数据组成波形,并分别获取波形中的最大值m与最小值n,并且设置所述特征值s=n+(m-n)/2,从而通过最大值m与最小值n计算出该轴对应的所述特征值。
实施例3
请参照图4,在实施例1中,所述步骤S400,包括:
S410,确定所述特征轴与所述参考轴是否相同,其中,当所述特征轴与所述参考轴相同时,确定所述计步数据为有效数据。
其中,当所述特征轴与所述参考轴相同时,表示用户在上一个计步周期与当前计步周期的运动状态未发生改变,因此可以认定用户在上一个所述计步周期以及当前所述计步周期内处于稳定的运动状态,因此判断所述计步数据为有效数据。
在一具体实施方式中,用户在行走过程中,沿Z轴方向的运动幅度较大,因此所述计步判断装置设置Z轴为参考轴,当所述计步判断装置确定Z轴为特征轴时,由于所述特征轴与所述参考轴相同,因此判断当前用户仍处于行走状态,因此执行后续的计步功能,确定用户的行走步数。
实施例4
请参照图5,在实施例3中,所述步骤S410,之后还包括:
S411,当所述特征轴与所述参考轴不同时,将所述特征轴设置为下一个所述计步周期的所述参考轴。
其中,当所述计步判断装置对当前的所述计步周期的特征轴判断完成后,当所述特征轴与所述参考轴不同时,为了对下一个所述计步周期的运动状态进行判断,需要将当前周期的所述特征轴设置为下一所述计步周期的参考轴,从而方便判断下一个所述计步周期的用户的运动状态与当前所述计步周期的运动状态是否相同。
在设置完成所述参考轴后,重复执行获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集的步骤,从而通过所述计步判断装置在每次获取加速度数据集后,优先对用户的运动状态进行判定,并在用户的运动状态与预设情况相同时,再继续执行计步操作,相比于直接进行计步操作,能够有效的避免用户在非行走状态时,可能产生的振动导致的误计步情况,从而提高了所述计步判断装置的准确率。
可以理解的是,所述参考轴除了可以通过上一个所述计步周期进行确定,还可以通过预设或用户自定义的方式确定对应的轴向为所述参考轴,从而避免用户在不断切换运动状态的过程中,所述计步装置多次更换参考轴,导致所述计步判断装置判断出现错误的问题。
实施例5,
请参照图6,在实施例1中,所述步骤S400,包括:
S420,判断所述特征轴与所述参考轴是否相同;
S430,当所述特征轴与所述参考轴相同时,缓冲次数不变,循环次数加1,其中,当所述特征轴与所述参考轴相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
S440,当所述特征轴与所述参考轴不相同时,将所述缓冲次数加1,循环次数加1,其中,当所述特征轴与所述参考轴不相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
S450,当计步周期的循环次数达到预设次数时,根据所述缓冲次数以及缓冲阈值确定所述计步数据的有效性,其中,当所述缓冲次数小于或等于缓冲阈值时,确定所述计步数据为有效数据,并将所述循环次数与缓冲次数均重置为初始值。
其中,在对用户计步的过程中,由于用户的运动状态在较短时间内不会发生多次改变,因此在对用户的运动状态进行判断时,可以引入缓冲次数参数,通过多个所述计步周期内所述特征轴的变化情况,确定用户的运动状态是否发生改变。具体的,在一个所述计步周期中对所述特征轴与所述参考轴进行判断时,当所述特征轴与所述参考轴相同时,设置所述缓冲次数不变,当所述特征轴与所述参考轴不同时,设置所述缓冲次数加一。在每个所述计步周期完成特征轴与参考轴的对比后,设置所述循环次数加1,并返回执行步骤S100,并在计步周期的所述循环次数达到预设次数后,根据所述缓冲次数,对缓冲次数对应个数的所述计步周期的计步数据进行有效性判断,并且当所述缓冲次数小于或等于缓冲阈值时,确定所述缓冲次数内的全部所述计步周期的所述计步数据为有效数据。并且为了方便后续继续执行计步操作,将所述循环次数与缓冲次数均重置为初始值。
在一具体实施方式中,设置预设次数为5次,计步周期为1秒,采样频率为25赫兹,缓冲阈值为0时,那么所述计步判断装置在每个所述计步周期内获取25次加速度数据,并每秒判断一次所述特征轴,当5个所述计步周期的所述特征轴均相等时,所述缓冲次数为0,那么开始对该5秒的计步数据执行计步操作。
实施例6
请参照图7,在实施例4中,所述步骤S450,之后怀包括:
S460,当所述缓冲次数大于缓冲阈值时,将所述循环次数与缓冲次数均重置为初始值,返回执行获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集的步骤。
具体的,当所述缓冲次数大于缓冲阈值时,表示在预设次数内所述计步周期中,用户的运动状态发生了改变,因此当前预设次数内的所述计步周期不进行计步操作,为了方便对后续获取到的数据进行操作,将所述计步周期的循环次数与所述缓冲次数均重置为初始值,从而方便所述计步判断装置重新开始对用户的运动状态进行判断。
在一具体实施方式中,设置预设次数为5次,计步周期为1秒,当5个所述计步周期的所述特征轴存在不相等时,所述缓冲次数大于0,那么表示在该5秒时间内,用户的运动状态发生改变,则不对该5秒进行计步操作。
实施例7
请参照图8,在实施例1中,所述步骤S400,包括:
S610,判断所述特征轴与所述参考轴是否相同;
S620,当所述特征轴与所述参考轴相同时,将第一特征值添加至预设缓冲数组,循环次数加1,其中,当所述特征轴与所述参考轴相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
S630,当所述特征轴与所述参考轴不相同时,将第二特征值添加至预设缓冲数组,循 环次数加1,其中,当所述特征轴与所述参考轴不相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤,所述第二特征值与所述第一特征值不相等;
S640,当计步周期的循环次数达到预设次数时,根据所述缓冲数组中所述第二特征值的个数与预设值确定所述计步数据的有效性,其中,当缓冲数组中包括的第二特征值个数小于预设值时,确定所述计步数据为有效数据,并清空所述缓冲数组,将所述循环次数与缓冲次数均重置为初始值。
其中,在对用户计步的过程中,由于用户的运动状态在较短时间内不会发生多次改变,因此在对用户的运动状态进行判断时,引入缓冲数组参数,在每个所述计步周期的特征轴与所述参考轴判断完成,根据所述特征轴与所述参考轴是否相同输出第一特征值或第二特征值,具体的,当所述特征轴与所述参考轴相同时,输出所述第一特征值,所述特征轴与所述参考轴不同,输出所述第二特征值,所述第二特征值与所述第一特征值不相等。在经过预设次数个所述计步周期时,对所述缓冲数组进行判断,当缓冲数组中包括的第二特征值个数小于预设值时,表示用户在预设次数的个数的所述计步周期的时间内运动状态未发生变化,继续对该所述加速度数据集进行执行计步操作。在每个所述计步周期完成特征轴与参考轴的对比后,设置所述循环次数加1,并返回执行步骤S100,并在计步周期的所述循环次数达到预设次数后,根据所述缓冲数组内的所述第二特征值的个数,对缓冲次数对应个数的所述计步周期的计步数据进行有效性判断,并且当所述缓冲次数小于或等于缓冲阈值时,确定所述缓冲次数内的全部所述计步周期的所述计步数据为有效数据。并且为了方便后续继续执行计步操作,将清空所述缓冲数组,并将所述循环次数与缓冲次数均重置为初始值。
在一具体实施方式中,设置预设次数为5次,计步周期为1秒,采样频率为25赫兹,预设值为1时,那么所述计步判断装置在每个所述计步周期内获取25次加速度数据,并每秒判断一次所述特征轴,设置所述第一特征值为10,所述第二特征值为5,那么当5个所述计步周期的所述特征轴判断完成后,所述缓冲数组为(10,10,10,10,10)时,表示在5秒内用户仍处于行走状态,可以对该5秒内的所述加速度数据集执行计步操作。
实施例8
请参照图9,在实施例7中,所述步骤S640,之后还包括:
S650,当缓冲数组中包括的第二特征值个数大于或等于预设值时,清空所述缓冲数组,将所述循环次数重置为初始值,并返回执行获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集的步骤。
其中,当缓冲数组中包括的第二特征值个数大于或等于预设值时,表示用户在预设次数的个数的所述计步周期的时间内运动状态发生了变化,需要停止对当前预设次数内的所述计步周期的加速度数据集进行执行计步操作。
在一具体实施方式中,设置预设次数为5次,计步周期为1秒,采样频率为25赫兹,缓冲阈值为0时,那么所述计步判断装置在每个所述计步周期内获取25次加速度数据,并每 秒判断一次所述特征轴,设置所述第一特征值为10,所述第二特征值为5,那么当5个所述计步周期的所述特征轴判断完成后,所述缓冲数组为(10,5,10,5,10)时,表示在5秒内存在2s时间用户的运动状态发生了变化,因此不对对该5秒内的所述加速度数据集执行计步操作。
为实现上述目的,本申请提出一种计步判断装置,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计步程序,所述处理器执行所述计步程序时实现如上述任一项实施方式所述的计步方法。
为实现上述目的,本申请还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有计步程序,所述计步程序被处理器执行时实现如上述任一项实施方式所述的计步方法的步骤。
在一些可选的实施方式中,所述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器可以是设备的内部存储单元,例如设备的硬盘或内存。所述存储器也可以是设备的外部存储设备,例如设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器还可以既包括设备的内部存储单元也包括外部存储设备。所述存储器用于存储所述计算机程序以及设备所需的其它程序和数据。所述存储器还可以用于暂时地存储已经输出或者将要输出的数据。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是在本申请的发明构思下,利用本申请说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本申请的专利保护范围内。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。

Claims (10)

  1. 一种计步判断方法,其特征在于,所述计步判断方法包括:
    获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集;
    根据每个轴对应的所述加速度数据集确定每个轴对应的特征值;
    对不同轴的所述特征值进行比较,确定所述特征值中的最大值对应的轴为特征轴;
    根据所述特征轴与参考轴确定计步数据的有效性;
    当所述计步数据为有效数据时,执行计步操作。
  2. 如权利要求1所述的计步判断方法,其特征在于,所述根据每个轴对应的所述加速度数据集确定每个轴对应的特征值的步骤,包括:
    根据每个轴对应的所述加速度数据集,确定所述加速度数据集中的最大值与最小值;
    根据所述加速度数据集中的最大值与最小值,确定该轴对应的所述特征值。
  3. 如权利要求1所述的计步判断方法,其特征在于,所述根据所述特征轴与参考轴判断计步数据的有效性的步骤,包括:
    确定所述特征轴与所述参考轴是否相同,其中,当所述特征轴与所述参考轴相同时,确定所述计步数据为有效数据。
  4. 如权利要求3所述的计步判断方法,其特征在于,所述确定所述特征轴与所述参考轴是否相同的步骤,之后还包括:
    当所述特征轴与所述参考轴不同时,将所述特征轴设置为下一个所述计步周期的所述参考轴。
  5. 如权利要求1所述的计步判断方法,其特征在于,所述根据所述特征轴与参考轴判断计步数据的有效性的步骤,包括:
    判断所述特征轴与所述参考轴是否相同;
    当所述特征轴与所述参考轴相同时,缓冲次数不变,循环次数加1,其中,当所述特征轴与所述参考轴相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
    当所述特征轴与所述参考轴不相同时,将所述缓冲次数加1,循环次数加1,其中,当所述特征轴与所述参考轴不相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
    当计步周期的循环次数达到预设次数时,根据所述缓冲次数以及缓冲阈值确定所述计步数据的有效性,其中,当所述缓冲次数小于或等于缓冲阈值时,确定所述计步数据为有效数据,并将所述循环次数与缓冲次数均重置为初始值。
  6. 如权利要求5所述的计步判断方法,其特征在于,所述当计步周期的循环次数达到预设次数时,根据所述缓冲次数以及缓冲阈值确定所述计步数据的有效性的步骤,之后还包括:
    当所述缓冲次数大于缓冲阈值时,将所述循环次数与缓冲次数均重置为初始值,返回执行获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集的步骤。
  7. 如权利要求1所述的计步判断方法,其特征在于,所述根据所述特征轴与参考轴判断计步数据的有效性的步骤,包括:
    判断特征轴与所述参考轴是否相同;
    当所述特征轴与所述参考轴相同时,将第一特征值添加至预设缓冲数组,循环次数加1,其中,当所述特征轴与所述参考轴相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤;
    当所述特征轴与所述参考轴不相同时,将第二特征值添加至预设缓冲数组,循环次数加1,其中,当所述特征轴与所述参考轴不相同时,返回执行所述根据所述特征轴与参考轴判断计步数据的有效性的步骤,所述第二特征值与所述第一特征值不相等;
    当计步周期的循环次数达到预设次数时,根据所述缓冲数组中所述第二特征值的个数与预设值确定所述计步数据的有效性,其中,当缓冲数组中包括的第二特征值个数小于预设值时,确定所述计步数据为有效数据,并清空所述缓冲数组,将所述循环次数与缓冲次数均重置为初始值。
  8. 如权利要求7所述的计步判断方法,其特征在于,所述当计步周期的循环次数达到预设次数时,根据所述缓冲数组中所述第二特征值的个数与预设值确定所述计步数据的有效性步骤,之后还包括:
    当缓冲数组中包括的第二特征值个数大于或等于预设值时,清空所述缓冲数组,将所述循环次数重置为初始值,并返回执行获取在当前计步周期内的加速度传感器的每个轴对应的加速度数据集的步骤。
  9. 一种计步判断装置,其特征在于,所述计步判断装置包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计步判断程序,所述处理器执行所述计步判断程序时实现如权利要求1-8中任一项所述计步判断方法。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计步判断程序,所述计步判断程序被处理器执行时实现如权利要求1-8任一项所述的计步判断方法的步骤。
PCT/CN2020/134137 2020-06-30 2020-12-05 计步判断方法、装置及计算机可读存储介质 WO2022000996A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/997,210 US20230221142A1 (en) 2020-06-30 2020-12-05 Step counting judgment method and device and computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010619088.0A CN111765899B (zh) 2020-06-30 2020-06-30 计步判断方法、装置及计算机可读存储介质
CN202010619088.0 2020-06-30

Publications (1)

Publication Number Publication Date
WO2022000996A1 true WO2022000996A1 (zh) 2022-01-06

Family

ID=72724366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/134137 WO2022000996A1 (zh) 2020-06-30 2020-12-05 计步判断方法、装置及计算机可读存储介质

Country Status (3)

Country Link
US (1) US20230221142A1 (zh)
CN (1) CN111765899B (zh)
WO (1) WO2022000996A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111765899B (zh) * 2020-06-30 2022-04-22 歌尔科技有限公司 计步判断方法、装置及计算机可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7653508B1 (en) * 2006-12-22 2010-01-26 Dp Technologies, Inc. Human activity monitoring device
CN104075730A (zh) * 2014-07-02 2014-10-01 电子科技大学 一种步态计步方法及计步器
CN105588577A (zh) * 2014-10-23 2016-05-18 中国移动通信集团公司 一种用于运动监测装置的异常计步的检测方法和装置
CN106108913A (zh) * 2016-07-25 2016-11-16 北京顺源开华科技有限公司 误计步消除方法、装置及可穿戴设备
CN106572814A (zh) * 2014-05-30 2017-04-19 日东电工株式会社 用于对用户活动进行分类和/或对用户步数进行计数的设备和方法
CN111765899A (zh) * 2020-06-30 2020-10-13 歌尔科技有限公司 计步判断方法、装置及计算机可读存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7246033B1 (en) * 2006-03-13 2007-07-17 Susan Leeds Kudo Pedometer for pets
CN103997572B (zh) * 2014-06-03 2016-01-20 深圳市爱康伟达智能医疗科技有限公司 一种基于手机加速度传感器数据的计步方法和装置
AU2014412789B2 (en) * 2014-11-27 2021-04-08 Razer (Asia-Pacific) Pte. Ltd. Step counter devices and step counting methods
CN105241454A (zh) * 2015-10-23 2016-01-13 中国兵器工业集团第二一四研究所苏州研发中心 一种基于多传感器的行人导航系统及导航方法
CN108279021A (zh) * 2018-01-26 2018-07-13 广东欧珀移动通信有限公司 计步方法、电子装置及计算机可读存储介质
CN109141465B (zh) * 2018-07-19 2021-06-22 歌尔科技有限公司 一种计步方法、可穿戴设备及计算机可读存储介质
CN108981745A (zh) * 2018-09-30 2018-12-11 深圳个人数据管理服务有限公司 一种计步方法、装置、设备和存储介质
CN110674801B (zh) * 2019-12-04 2020-03-20 展讯通信(上海)有限公司 基于加速度计识别用户运动模式的方法、装置及电子设备
CN111238528A (zh) * 2020-03-20 2020-06-05 歌尔科技有限公司 一种计步方法、装置、计步设备及可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7653508B1 (en) * 2006-12-22 2010-01-26 Dp Technologies, Inc. Human activity monitoring device
CN106572814A (zh) * 2014-05-30 2017-04-19 日东电工株式会社 用于对用户活动进行分类和/或对用户步数进行计数的设备和方法
CN104075730A (zh) * 2014-07-02 2014-10-01 电子科技大学 一种步态计步方法及计步器
CN105588577A (zh) * 2014-10-23 2016-05-18 中国移动通信集团公司 一种用于运动监测装置的异常计步的检测方法和装置
CN106108913A (zh) * 2016-07-25 2016-11-16 北京顺源开华科技有限公司 误计步消除方法、装置及可穿戴设备
CN111765899A (zh) * 2020-06-30 2020-10-13 歌尔科技有限公司 计步判断方法、装置及计算机可读存储介质

Also Published As

Publication number Publication date
CN111765899B (zh) 2022-04-22
CN111765899A (zh) 2020-10-13
US20230221142A1 (en) 2023-07-13

Similar Documents

Publication Publication Date Title
WO2022021650A1 (zh) 计步方法、计步装置及计算机可读存储介质
US20130332108A1 (en) Embedded hardware state machine for context detection integrated with a sensor chip
CN107291874B (zh) 地图点位聚合方法及装置
WO2019153600A1 (zh) 电子装置、楼层定位方法和计算机可读存储介质
CN107144291B (zh) 一种数据处理方法及移动终端
WO2012169051A1 (ja) 落下判定装置、及び落下判定方法
WO2022000996A1 (zh) 计步判断方法、装置及计算机可读存储介质
CN111879333B (zh) 运动判断方法、判断装置及计算机可读存储介质
CN111765898B (zh) 计步方法,计步装置及计算机可读存储介质
CN108983034B (zh) 一种内短路检测方法及装置
CN112902988A (zh) 参数标定方法、装置、终端和存储介质
CN110275639B (zh) 触摸数据处理方法、装置、终端及存储介质
CN110750498A (zh) 对象访问方法、装置及存储介质
CN112181479A (zh) 代码文件版本间差异的确定方法、装置及电子设备
CN112740143B (zh) 屏幕显示内容控制方法与装置、电子设备、存储介质
CN114185835A (zh) 片上系统和调节电压和频率的方法
WO2023016076A1 (zh) 终端触摸屏的控制方法、终端设备和存储介质
CN111879334B (zh) 计步方法、计步装置及计算机可读存储介质
CN107646204B (zh) 一种定位方法及移动设备
JP4525294B2 (ja) 動作回数カウント装置及び方法
CN111510553B (zh) 一种运动轨迹展示方法、装置和可读存储介质
JP2998727B2 (ja) 回転検出用のパルス幅計測装置及びパルス幅計測方法
CN117056059B (zh) 定时器实现方法、装置、存储介质及电子设备
US20230077491A1 (en) Current-sampling method, chip, and sampling apparatus for phase current of motor
CN117492591A (zh) 触摸点定位方法、装置、电子设备及触摸屏

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20943132

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20943132

Country of ref document: EP

Kind code of ref document: A1