WO2023134663A1 - Motion identification method, apparatus, electronic device, and readable storage medium - Google Patents

Motion identification method, apparatus, electronic device, and readable storage medium Download PDF

Info

Publication number
WO2023134663A1
WO2023134663A1 PCT/CN2023/071548 CN2023071548W WO2023134663A1 WO 2023134663 A1 WO2023134663 A1 WO 2023134663A1 CN 2023071548 W CN2023071548 W CN 2023071548W WO 2023134663 A1 WO2023134663 A1 WO 2023134663A1
Authority
WO
WIPO (PCT)
Prior art keywords
acceleration data
preset
value
average value
moment
Prior art date
Application number
PCT/CN2023/071548
Other languages
French (fr)
Chinese (zh)
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 维沃移动通信有限公司
Publication of WO2023134663A1 publication Critical patent/WO2023134663A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Definitions

  • the present application belongs to the field of data processing, and in particular relates to a motion recognition method, device, electronic equipment and readable storage medium.
  • a gyroscope is used to acquire teeth brushing direction and angular velocity information, so as to identify brushing teeth movement based on the acquired teeth brushing direction and angular velocity information.
  • the power consumption of the gyroscope is relatively high, therefore, the use of the above detection scheme will shorten the battery life of electronic devices such as watches.
  • the purpose of the embodiments of the present application is to provide a motion recognition method, device, electronic device and readable storage medium, which can solve the problem that the existing solutions for recognizing brushing motion will shorten the battery life of electronic devices such as watches.
  • the embodiment of the present application provides a motion recognition method.
  • the motion recognition method includes: acquiring acceleration information of a wearable device, wherein the acceleration information includes first acceleration data in a first direction, and acceleration data in a second direction.
  • the second acceleration data on the above and the third acceleration data on the third direction, the first direction, the second direction and the third direction are perpendicular to each other; obtain the time between the first moment and the second moment within the first preset time The first time less than the preset time threshold, wherein the first moment is the moment when the extreme value appears in the first target acceleration data, and the second moment is the moment when the extreme value appears in the second target acceleration data, wherein the first target
  • the acceleration data and the second target acceleration data are any two acceleration data in the first acceleration data, the second acceleration data and the third acceleration data; it is determined that the first target acceleration data has an extreme value within the first preset time.
  • the second number determine the recognition result of the movement according to the ratio of the first number to the second number.
  • the embodiment of the present application provides a motion recognition device, including: an acquisition module configured to acquire acceleration information of a wearable device, wherein the acceleration information includes first acceleration data in a first direction, second acceleration data in a first direction, The second acceleration data in the direction and the third acceleration data in the third direction, the first direction, the second direction and the third direction are perpendicular to each other; the statistical module is used to obtain the first preset time, the first moment and the second acceleration data The time between the two moments is less than the first number of preset time thresholds, wherein the first moment is the moment when the extreme value appears in the first target acceleration data, and the second moment is the moment when the extreme value appears in the second target acceleration data , wherein, the first target acceleration data and the second target acceleration data are any two acceleration data in the first acceleration data, the second acceleration data and the third acceleration data; the determination module is used to determine the first target acceleration data at the The second number of occurrences of the extremum within a preset period of time; the identification module is used to determine the recognition
  • an embodiment of the present application provides an electronic device, including the above-mentioned motion recognition device.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, and the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, the first aspect is implemented. The steps of the motion recognition method.
  • the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the motion recognition method in the first aspect are implemented.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the motion recognition method in the first aspect.
  • an embodiment of the present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method in the first aspect.
  • the motion identification scheme proposed can use the data detected by the acceleration sensor to realize motion identification. Since the power consumption of the acceleration sensor is lower than that of the gyroscope, the technology of this application is adopted While realizing motion recognition through the scheme, the impact of motion recognition on the battery life of the electronic device is reduced, and the battery life of the electronic device is improved.
  • the technical solution of the present application realizes motion recognition through the following methods. Specifically, when the user wears a wearable device while brushing teeth, such as back and forth, back and forth, right front and left back and forth, left front and right back and forth when brushing teeth , the acceleration data detected by the wearable device will be characterized, specifically, two of the first acceleration data in the first direction, the second acceleration data in the second direction, and the third acceleration data in the third direction Or the extreme values in the acceleration data in multiple directions appear relatively close to each other. Since brushing teeth is a process of constantly repeating the same action, the recognition of the movement can be realized by counting the proportion of extreme values satisfying the above conditions within the first preset time.
  • Fig. 1 is a schematic flow chart of a brushing motion recognition method in an embodiment of the present application
  • Fig. 2 is a schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration when the toothbrush is held in hand in the embodiment of the application and moves back and forth;
  • Fig. 3 is a schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the resultant acceleration of the left hand wearing a watch and holding the toothbrush to the right front and left rear back and forth;
  • Fig. 4 is a schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration when the right hand wears a watch and holds a toothbrush to move back and forth;
  • Figure 5 is a schematic diagram of filtered acceleration data when the toothbrush is held in the left hand, the wrist is tilted to the upper right, the dial screen of the wearable device is directed to the upper left, and the toothbrush is moved back and forth in the hand;
  • Fig. 6 is a data schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration of the acceleration data of the left hand wearing the watch and holding the toothbrush to the right front and the left rear back and forth after filtering;
  • Fig. 7 is a data schematic diagram of the filtered acceleration data in the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration when the right hand wears a watch and holds a toothbrush to move back and forth;
  • Fig. 8 is a schematic block diagram of a brushing motion recognition device in an embodiment of the present application.
  • Fig. 9 is one of the schematic block diagrams of the electronic device in the embodiment of the present application.
  • Fig. 10 is the second schematic block diagram of the electronic device in the embodiment of the present application.
  • FIG. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • a toothbrushing motion recognition method including:
  • Step 102 acquiring acceleration information of the wearable device.
  • the acceleration information includes first acceleration data in the first direction, second acceleration data in the second direction and third acceleration data in the third direction, and the first direction, the second direction and the third direction are perpendicular to each other.
  • Step 104 acquiring the first number of times that the time between the first moment and the second moment is less than the preset time threshold within the first preset time.
  • the first moment is the moment when the extremum appears in the first target acceleration data
  • the second moment is the moment when the extremum appears in the second target acceleration data
  • the first target acceleration data and the second target acceleration data are the first Any two acceleration data among the acceleration data, the second acceleration data and the third acceleration data.
  • Step 106 determining the second number of extreme values of the first target acceleration data within the first preset time.
  • Step 108 determine the motion recognition result according to the ratio of the first count to the second count.
  • a toothbrushing movement recognition method in which the toothbrushing movement recognition can be realized by using the data detected by the acceleration sensor.
  • the technical solution of the present application realizes the toothbrushing motion recognition in the following manner.
  • the first direction may be the X-axis direction
  • the second direction may be the Y-axis direction
  • the third direction may be the Z-axis direction.
  • Acceleration data collected by the acceleration sensor in the X-axis direction, Y-axis direction, Z-axis direction and the combined acceleration at 25 Hz, the collection results are shown in Figure 2, the abscissa in Figure 2 is time in milliseconds, and the ordinate is acceleration , the unit is m/s 2 , where the resultant acceleration is shifted up by 5 units as a whole to avoid aliasing with acceleration data in other directions.
  • the first average value in the X-axis direction, the second average value in the Y-axis direction, and the third average value in the Z-axis direction are stable at around 9m/s 2 , 0m/s 2 and 5m/s 2 respectively , which means that the left hand is holding the toothbrush, the wrist is tilted to the upper right, the dial screen of the wearable device is facing the upper left, and the acceleration data in the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration when the toothbrush is held in the hand moves back and forth.
  • FIG. 3 a schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the resultant acceleration when the left hand wears a watch and holds a toothbrush to the right front and left rear back and forth.
  • FIG. 4 a schematic diagram of the acceleration data in the X-axis direction, the Y-axis direction, the Z-axis direction and the resultant acceleration when the right hand wears a watch and holds a toothbrush and moves back and forth.
  • the acceleration data detected by the wearable device When the user wears a wearable device and brushes his teeth, such as back and forth, back and forth, right front and left back and forth, left front and right back and forth, the acceleration data detected by the wearable device will be characterized. Specifically, the first The extreme values in the acceleration data in two or more directions among the first acceleration data in the direction, the second acceleration data in the second direction and the third acceleration data in the third direction appear relatively close to each other. Since brushing teeth is a process of constantly repeating the same action, the recognition of the movement can be realized by counting the proportion of extreme values satisfying the above conditions within the first preset time.
  • the technical solution of the present application is used to realize motion recognition while reducing the impact of motion recognition on the battery life of the electronic device. Improved battery life of electronic devices.
  • determining the recognition result of the motion according to the ratio of the first count to the second count includes: determining that motion is recognized when the ratio of the first count to the second count is greater than a preset threshold; If the ratio of the first count to the second count is less than or equal to the preset threshold, it is determined that no motion is recognized.
  • the ratio is greater than the preset threshold, it can be inferred that repeating the same action occupies most of the user's behavior within the first preset time.
  • the threshold value the user repeats the same number of times is relatively small, in order to avoid misjudgment, it is determined that the brushing movement has not been recognized. Reduces the chance of motion recognition errors by setting preset thresholds to distinguish between brushing and non-brushing motions.
  • it also includes: determining the second number of extreme values of the first target acceleration data within the first preset time, and the extreme value of the second target acceleration data within the first preset time The third number of times, in the case that the second number is less than or equal to the third number, the motion recognition result is determined according to the ratio of the first number to the second number.
  • the motion recognition result is determined according to the ratio of the first number to the third number.
  • the second time when the second time is less than or equal to the third time, it also includes: determining the ratio of the third time to the second time, and the ratio of the third time to the second time is greater than or equal to 2 In this case, the current acceleration data cannot meet the requirements of motion recognition.
  • a reminder message may be output, or no reminder message may be output.
  • the reminder information is used to indicate that the current acceleration data cannot meet the requirements of motion recognition.
  • the first acceleration data, the second acceleration data and the third acceleration data are updated.
  • the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data is less than the preset time
  • it also includes: obtaining the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within the second preset time, wherein, The second preset time is less than the first preset time; when the first average value is within the first preset average value interval, the second average value is within the second preset average value interval, and the third average value is within the third preset average value interval
  • the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data within the first preset time is less than the preset The first number of the duration.
  • a pre-judgment is made on whether to perform motion recognition according to the detected acceleration data.
  • the determination method of the first preset average interval, the second preset average interval and the third preset average interval it is ensured to determine whether the user wearing the wearable device is in the position of holding the toothbrush.
  • the accuracy of gestures improves the recognition accuracy of brushing movements.
  • it also includes: obtaining the fourth average value and the first variance value of the first acceleration data within the third preset time, the fifth average value and the first variance value of the second acceleration data within the third preset time The second variance value, the sixth average value and the third-party variance value of the third acceleration data within the third preset time; the fluctuation value in the fourth average value is in the first preset fluctuation value interval and the first variance value is in Within the first preset variance range; the fluctuation value of the fifth average value is within the second preset fluctuation value interval, and the second variance value is within the second preset variance range; and/or the fluctuation value of the sixth average value is within In the case of the third preset fluctuation value range and the third-party difference within the third preset variance range, acquire the first average value of the first acceleration data and the second average value of the second acceleration data within the second preset time value, the third average value of the third acceleration data, wherein the third preset time is less than the second preset time.
  • the fluctuation value of the fourth average value is in the first preset fluctuation value interval and the first variance value is in the first preset variance range
  • the fluctuation value of the fifth average value is in the second preset fluctuation value interval and the second square If the difference is within the second preset variance range, the fluctuation value of the sixth average value is smaller than the third preset fluctuation value interval, and at least one of the third-party difference is within the third preset variance range is established, then it is determined that in this During the pre-judgment process, the user's actions are relatively stable.
  • the first preset fluctuation value interval, the first preset variance range, the second preset fluctuation value interval, the second preset variance range, the third preset fluctuation value interval and the third preset variance range are obtained through a large number of It is obtained by counting the acceleration data when the user is brushing teeth.
  • the fluctuation value of the fourth average value is in the first preset fluctuation value interval and the first variance value is in the first preset variance range
  • the fluctuation value of the fifth average value is in the second preset fluctuation value interval and the second
  • the variance value is in the second preset variance range
  • the fluctuation value of the sixth average value is in the third preset fluctuation value range
  • the third-party difference is in the third preset variance range
  • the first preset time before the time between the first moment and the second moment is less than the preset time threshold for the first time, it also includes: the first acceleration data, the second The acceleration data and the third acceleration data are filtered.
  • the toothbrush is held in the left hand, the wrist is tilted to the upper right, the dial screen of the wearable device is facing the upper left, and the acceleration data is filtered when the toothbrush is moved back and forth in the hand.
  • the left hand wears a watch and holds a toothbrush to the right front and left back to brush teeth back and forth in the X-axis direction, Y-axis direction, Z-axis direction and the acceleration data of the combined acceleration after filtering.
  • the reduction of the mutated data on judging motion recognition improves the accuracy of motion recognition.
  • low-pass filtering is performed on the first acceleration data, the second acceleration data and the third acceleration data.
  • the extreme values include peaks and/or valleys.
  • the situation that the time between the first moment and the second moment is less than the preset time threshold may be: the time between the moment when the peak value of the first acceleration data appears and the moment when the valley value of the second acceleration data appears less than the preset time threshold; or the time between the moment when the peak value of the first acceleration data appears and the moment when the peak value of the second acceleration data appears is less than the preset time threshold.
  • the value of the preset threshold is greater than or equal to 0.9.
  • the value of the preset threshold is reasonably selected so as to distinguish motion from non-motion and reduce the probability of motion recognition errors.
  • the time between the first moment and the second moment can be understood as the length of time from the first moment to the second moment, or the length of time from the second moment to the first moment.
  • the preset time threshold is less than or equal to 80 milliseconds, such as 70 milliseconds, 50 milliseconds, 30 milliseconds, and so on.
  • the method further includes: determining that motion is recognized, and outputting the duration of the motion.
  • the duration of the exercise is output to perform control during the exercise, wherein the control during the exercise includes but not limited to the control of the total duration of the exercise, and also includes outputting reminder information for the end of the exercise.
  • the method further includes: determining that a motion is recognized, and outputting the strength of the motion.
  • the strength of the movement is output so as to adjust the operating mode of the device according to the strength of the movement.
  • the motion recognition method provided in the embodiment of the present application may be executed by a motion recognition device.
  • the motion recognition device provided in the embodiment of the present application is described by taking the motion recognition device performing the motion recognition method as an example.
  • a motion recognition device 800 including: an acquisition module 802, configured to acquire acceleration information of a wearable device, wherein the acceleration information includes The first acceleration data, the second acceleration data in the second direction and the third acceleration data in the third direction, the first direction, the second direction and the third direction are perpendicular to each other; the statistical module 804 is used to obtain the first preset Within the time period, the time between the first moment and the second moment is less than the first time of the preset time threshold, wherein the first moment is the moment when the extreme value appears in the first target acceleration data, and the second moment is the second target acceleration data The moment when the extreme value appears in the acceleration data, wherein, the first target acceleration data and the second target acceleration data are any two acceleration data in the first acceleration data, the second acceleration data and the third acceleration data; the determination module 806 uses To determine the second number of extremum occurrences of the first target acceleration data within the first preset time; the identification module 808 is configured to determine the recognition result of the movement
  • a motion recognition device 800 which can realize motion recognition by using data detected by an acceleration sensor.
  • the acceleration data detected by the wearable device will be characterized, specifically , among the first acceleration data in the first direction, the second acceleration data in the second direction, and the third acceleration data in the third direction, the extreme values in the acceleration data in two or more directions appear relatively close to . Since brushing teeth is a process of constantly repeating the same action, the recognition of the movement can be realized by counting the proportion of extreme values satisfying the above conditions within the first preset time.
  • the technical solution of the present application is used to realize motion recognition while reducing the impact of motion recognition on the battery life of the electronic device. Improved battery life of electronic devices.
  • the recognition module 808 is specifically configured to: determine that motion is recognized when the ratio of the first count to the second count is greater than a preset threshold; or equal to the preset threshold, it is determined that no motion is recognized.
  • the ratio is greater than the preset threshold, it can be inferred that repeating the same action occupies most of the user's behavior within the first preset time, therefore, it is determined that the current user is in motion, and in In the case where the ratio is less than or equal to the preset threshold, the user repeats the same number of times is relatively small, in order to avoid misjudgment, it is determined that the teeth brushing movement has not been recognized. Reduces the chance of motion recognition errors by setting preset thresholds to distinguish between brushing and non-brushing motions.
  • it also includes: determining the second number of extreme values of the first target acceleration data within the first preset time, and the extreme value of the second target acceleration data within the first preset time The third number of times, in the case that the second number is less than or equal to the third number, the motion recognition result is determined according to the ratio of the first number to the second number.
  • the motion recognition result is determined according to the ratio of the first number to the third number.
  • the second time when the second time is less than or equal to the third time, it also includes: determining the ratio of the third time to the second time, and the ratio of the third time to the second time is greater than or equal to 2 In this case, the current acceleration data cannot meet the requirements of motion recognition.
  • a reminder message may be output, or no reminder message may be output.
  • the reminder information is used to indicate that the current acceleration data cannot meet the requirements of motion recognition.
  • the first acceleration data, the second acceleration data and the third acceleration data are updated.
  • the determination module 806 is also used to: obtain the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within the second preset time value, wherein the second preset time is less than the first preset time; when the first average value is within the first preset average value interval, the second average value is within the second preset average value interval, and the third average value In the case of being within the third preset average value interval, the time from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data within the first preset time is obtained The first number of times the length is less than the preset time length.
  • a pre-judgment is made on whether to perform motion recognition according to the detected acceleration data.
  • the determination method of the first preset average interval, the second preset average interval and the third preset average interval it is ensured to determine whether the user wearing the wearable device is in the position of holding the toothbrush.
  • the accuracy of gestures improves the recognition accuracy of brushing movements.
  • the determination module 806 is further configured to: obtain the fourth average value and the first variance value of the first acceleration data within the third preset time, the first variance value of the second acceleration data within the third preset time The fifth average value and the second variance value, the sixth average value and the third-party difference value of the third acceleration data within the third preset time; the fluctuation value of the fourth average value is within the first preset fluctuation value interval and the first One variance value is within the first preset variance range; the fluctuation value of the fifth average value is within the second preset fluctuation value range, and the second variance value is within the second preset variance range; and/or the sixth average When the fluctuation value of the value is within the third preset fluctuation value interval and the third-party difference is within the third preset variance range, the first average value and the second acceleration data of the first acceleration data within the second preset time period are obtained. The second average value of the data and the third average value of the third acceleration data, wherein the third preset time is shorter than the second preset time.
  • the fluctuation value of the fourth average value is in the first preset fluctuation value interval and the first variance value is in the first preset variance range
  • the fluctuation value of the fifth average value is in the second preset fluctuation value interval and the second square If the difference is within the second preset variance range, the fluctuation value of the sixth average value is smaller than the third preset fluctuation value interval, and at least one of the third-party difference is within the third preset variance range is established, then it is determined that in this During the pre-judgment process, the user's actions are relatively stable.
  • the first preset fluctuation value interval, the first preset variance range, the second preset fluctuation value interval, the second preset variance range, the third preset fluctuation value interval and the third preset variance range are obtained through a large number of It is obtained by counting the acceleration data when the user is brushing teeth.
  • the fluctuation value of the fourth average value is in the first preset fluctuation value interval and the first variance value is in the first preset variance range
  • the fluctuation value of the fifth average value is in the second preset fluctuation value interval and the second
  • the variance value is in the second preset variance range
  • the fluctuation value of the sixth average value is in the third preset fluctuation value range
  • the third-party difference is in the third preset variance range
  • the determining module 806 is further configured to: filter the first acceleration data, the second acceleration data and the third acceleration data.
  • low-pass filtering is performed on the first acceleration data, the second acceleration data and the third acceleration data.
  • the extreme values include peaks and/or valleys.
  • the value of the preset threshold is greater than or equal to 0.9.
  • the value of the preset threshold is reasonably selected so as to distinguish motion from non-motion and reduce the probability of motion recognition errors.
  • the time between the first moment and the second moment can be understood as the length of time from the first moment to the second moment, or the length of time from the second moment to the first moment.
  • the preset time threshold is less than or equal to 80 milliseconds, such as 70 milliseconds, 50 milliseconds, 30 milliseconds, and so on.
  • the recognition module 808 is further configured to: determine that motion is recognized, and output the duration of the motion.
  • the duration of the exercise is output to perform control during the exercise, wherein the control during the exercise includes but not limited to the control of the total duration of the exercise, and also includes outputting reminder information for the end of the exercise.
  • the recognition module 808 is further configured to: determine that a movement is recognized, and output the strength of the movement.
  • the strength of the movement is output so as to adjust the operating mode of the device according to the strength of the movement.
  • the motion recognition apparatus 800 in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device may be a terminal, or other devices other than the terminal.
  • the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) ) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc.
  • the motion recognition device 800 in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the motion recognition device 800 provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 7 , and details are not repeated here to avoid repetition.
  • an electronic device 900 is proposed, including the above-mentioned motion recognition device 800 .
  • the proposed electronic device 900 has the above-mentioned movement recognition device 800 and can achieve the same technical effect, so to avoid repetition, details are not repeated here.
  • the embodiment of the present application also provides an electronic device 1000, including a processor 1002 and a memory 1004, and the memory 1004 stores programs or instructions that can run on the processor 1002, When the program or instruction is executed by the processor 1002, each step of the above-mentioned embodiment of the motion recognition method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic device 1000 in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
  • FIG. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, and a memory 1109 , and the processor 1110 and other components.
  • the electronic device 1100 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1110 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 11 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
  • the processor 1110 is configured to acquire acceleration information of the wearable device, where the acceleration information includes first acceleration data in a first direction, second acceleration data in a second direction, and third acceleration data in a third direction, the first The first direction, the second direction, and the third direction are perpendicular to each other; obtain the first number of times that the time between the first moment and the second moment is less than the preset time threshold within the first preset time, where the first moment is The moment when the extreme value appears in the first target acceleration data, and the second moment is the moment when the extreme value appears in the second target acceleration data, wherein the first target acceleration data and the second target acceleration data are the first acceleration data, the second acceleration data Any two acceleration data in the data and the third acceleration data; determine the second number of times that the extreme value occurs in the first target acceleration data within the first preset time; Recognition results.
  • Processor 1110 configured to determine that motion is recognized when the ratio of the first count to the second count is greater than a preset threshold; , make sure no motion is detected.
  • the processor 1110 is configured to obtain within the first preset time, the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data is less than the preset time length Before the first count, it also includes: obtaining the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within the second preset time, wherein the second The preset time is less than the first preset time; when the first average value is within the first preset average value interval, the second average value is within the second preset average value interval, and the third average value is within the third preset average value In the case of the value interval, within the first preset time period, the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data is less than the preset time length the first number of .
  • Processor 1110 configured to obtain a fourth average value and a first variance value of the first acceleration data within a third preset time period, and a fifth average value and a second variance value of the second acceleration data within a third preset time period , the sixth average value and the third-party difference of the third acceleration data within the third preset time; the fluctuation value of the fourth average value is within the first preset fluctuation value interval and the first variance value is within the first preset Within the variance range; the fluctuation value of the fifth average value is within the second preset fluctuation value interval, the second variance value is within the second preset variance range; and/or the fluctuation value of the sixth average value is within the third preset In the fluctuation value interval, when the third-party difference is within the third preset variance range, the first average value of the first acceleration data, the second average value of the second acceleration data, the third average value of the second acceleration data, and the third The third average value of the acceleration data, wherein the third preset time is shorter than the second preset time.
  • the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072 .
  • Touch panel 11071 also called touch screen.
  • the touch panel 11071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1109 can be used to store software programs as well as various data.
  • the memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 1109 may include volatile memory or nonvolatile memory, or, memory 1109 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electrically programmable Erase Programmable Read-Only Memory
  • Flash Flash.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM , SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus
  • the processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 1110 .
  • An embodiment of the present invention also provides an electronic device configured to execute the processes of the above embodiment of the motion recognition method, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each of the above embodiments of the toothbrushing motion recognition method is realized. process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the various processes of the above-mentioned teeth brushing motion recognition method embodiment, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application further provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to realize the various processes in the above embodiment of the motion recognition method, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without more limitations, an element defined by the phrase “comprising a” does not exclude the presence of additional same elements in the process, method, article or apparatus that includes the element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

A motion identification method, an apparatus, an electronic device, and a readable storage medium, which belong to the field of data processing. The method comprises: acquiring acceleration information of a wearable device; acquiring, within a first preset duration, a first number of times where a duration between a first moment and a second moment is less than a preset duration threshold, wherein the first moment is a moment when an extreme value appears in first target acceleration data, and the second moment is a moment when an extreme value appears in second target acceleration data, wherein the first target acceleration data and the second target acceleration data are any two pieces of acceleration data in first acceleration data, second acceleration data and third acceleration data; determining a second number of times that an extreme value appears in the first target acceleration data within the first preset duration; and determining a motion identification result according to a ratio of the first number of times to the second number of times.

Description

运动的识别方法、装置、电子设备和可读存储介质Motion recognition method, device, electronic device and readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求享有于2022年01月17日提交的名称为“运动的识别方法、装置、电子设备和可读存储介质”的中国专利申请202210047833.8的优先权,该申请的全部内容通过引用并入本文中。This application claims the priority of the Chinese patent application 202210047833.8 entitled "Motion Recognition Method, Device, Electronic Device, and Readable Storage Medium" filed on January 17, 2022, the entire content of which is incorporated herein by reference middle.
技术领域technical field
本申请属于数据处理领域,尤其涉及一种运动的识别方法、装置、电子设备和可读存储介质。The present application belongs to the field of data processing, and in particular relates to a motion recognition method, device, electronic equipment and readable storage medium.
背景技术Background technique
相关技术方案中,采用陀螺仪获取刷牙方向和角速度信息,以便根据获取得到的刷牙方向和角速度信息来识别刷牙运动。In a related technical solution, a gyroscope is used to acquire teeth brushing direction and angular velocity information, so as to identify brushing teeth movement based on the acquired teeth brushing direction and angular velocity information.
通常情况下,陀螺仪的功耗比较高,因此,采用上述检测方案会使得如手表等电子设备的续航时间变短。Usually, the power consumption of the gyroscope is relatively high, therefore, the use of the above detection scheme will shorten the battery life of electronic devices such as watches.
发明内容Contents of the invention
本申请实施例的目的是提供一种运动的识别方法、装置、电子设备和可读存储介质,能够解决现有识别刷牙运动的方案会使得如手表等电子设备的续航时间变短的问题。The purpose of the embodiments of the present application is to provide a motion recognition method, device, electronic device and readable storage medium, which can solve the problem that the existing solutions for recognizing brushing motion will shorten the battery life of electronic devices such as watches.
第一方面,本申请实施例提供了一种运动的识别方法,该运动识别方法包括:获取可穿戴设备的加速度信息,其中,加速度信息包括在第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据,第一方向、第二方向和第三方向两两垂直;获取第一预设时间内,第一时刻与第二时刻之间的时间小于预设时间阈值的第一次数,其中,第一时刻是第一目标加速度数据中出现极值的时刻,第二时刻是第 二目标加速度数据中出现极值的时刻,其中,第一目标加速度数据、第二目标加速度数据是第一加速度数据、第二加速度数据和第三加速度数据中的任意两个加速度数据;确定第一目标加速度数据在第一预设时间内,出现极值的第二次数;根据第一次数与第二次数的比值确定运动的识别结果。In the first aspect, the embodiment of the present application provides a motion recognition method. The motion recognition method includes: acquiring acceleration information of a wearable device, wherein the acceleration information includes first acceleration data in a first direction, and acceleration data in a second direction. The second acceleration data on the above and the third acceleration data on the third direction, the first direction, the second direction and the third direction are perpendicular to each other; obtain the time between the first moment and the second moment within the first preset time The first time less than the preset time threshold, wherein the first moment is the moment when the extreme value appears in the first target acceleration data, and the second moment is the moment when the extreme value appears in the second target acceleration data, wherein the first target The acceleration data and the second target acceleration data are any two acceleration data in the first acceleration data, the second acceleration data and the third acceleration data; it is determined that the first target acceleration data has an extreme value within the first preset time. The second number; determine the recognition result of the movement according to the ratio of the first number to the second number.
第二方面,本申请实施例提供了一种运动的识别装置,包括:获取模块,用于获取可穿戴设备的加速度信息,其中,加速度信息包括在第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据,第一方向、第二方向和第三方向两两垂直;统计模块,用于获取第一预设时间内,第一时刻与第二时刻之间的时间小于预设时间阈值的第一次数,其中,第一时刻是第一目标加速度数据中出现极值的时刻,第二时刻是第二目标加速度数据中出现极值的时刻,其中,第一目标加速度数据、第二目标加速度数据是第一加速度数据、第二加速度数据和第三加速度数据中的任意两个加速度数据;确定模块,用于确定第一目标加速度数据在第一预设时间内,出现极值的第二次数;识别模块,用于根据第一次数与第二次数的比值确定运动的识别结果。In a second aspect, the embodiment of the present application provides a motion recognition device, including: an acquisition module configured to acquire acceleration information of a wearable device, wherein the acceleration information includes first acceleration data in a first direction, second acceleration data in a first direction, The second acceleration data in the direction and the third acceleration data in the third direction, the first direction, the second direction and the third direction are perpendicular to each other; the statistical module is used to obtain the first preset time, the first moment and the second acceleration data The time between the two moments is less than the first number of preset time thresholds, wherein the first moment is the moment when the extreme value appears in the first target acceleration data, and the second moment is the moment when the extreme value appears in the second target acceleration data , wherein, the first target acceleration data and the second target acceleration data are any two acceleration data in the first acceleration data, the second acceleration data and the third acceleration data; the determination module is used to determine the first target acceleration data at the The second number of occurrences of the extremum within a preset period of time; the identification module is used to determine the recognition result of the movement according to the ratio of the first number to the second number.
第三方面,本申请实施例提供了一种电子设备,包括如上述运动的识别装置。In a third aspect, an embodiment of the present application provides an electronic device, including the above-mentioned motion recognition device.
第四方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的运动的识别方法的步骤。In a fourth aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, and the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, the first aspect is implemented. The steps of the motion recognition method.
第五方面,本申请实施例提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的运动的识别方法的步骤。In the fifth aspect, the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the motion recognition method in the first aspect are implemented.
第六方面,本申请实施例提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的运动的识别方法的步骤。In the sixth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the motion recognition method in the first aspect.
第七方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面的方法。In a seventh aspect, an embodiment of the present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method in the first aspect.
在本申请实施例中,提出的运动的识别方案,可以利用加速度传感器所检测到的数据来实现运动的识别,由于加速度传感器的功耗低于陀螺仪的功耗,因此,采用本申请的技术方案来实现运动的识别的同时,降低了运动的识别对电子设备的续航时间的影响,提高了电子设备的续航时间。In the embodiment of this application, the motion identification scheme proposed can use the data detected by the acceleration sensor to realize motion identification. Since the power consumption of the acceleration sensor is lower than that of the gyroscope, the technology of this application is adopted While realizing motion recognition through the scheme, the impact of motion recognition on the battery life of the electronic device is reduced, and the battery life of the electronic device is improved.
本申请的技术方案是通过以下方式来实现运动的识别的,具体地,在用户佩戴可穿戴设备时进行刷牙时,如左右来回、前后来回、右前左后来回、左前右后来回做刷牙运动时,可穿戴设备所检测到的加速度数据会有所表征,具体地,第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据中的两个或多个方向上的加速度数据中的极值出现的时刻比较接近。由于刷牙运动是一个不断重复相同动作的过程,因此,可以通过统计在第一预设时间内,满足上述情况的极值的占比,以实现运动的识别。基于此,获取第一预设时间内,符合极值出现的时刻比较接近的第一次数,并将第一次数与第一目标加速度数据在第一预设时间内出现极值的第二次数做比值,以便得到满足上述情况的极值的占比,进而利用该占比实现运动的识别。The technical solution of the present application realizes motion recognition through the following methods. Specifically, when the user wears a wearable device while brushing teeth, such as back and forth, back and forth, right front and left back and forth, left front and right back and forth when brushing teeth , the acceleration data detected by the wearable device will be characterized, specifically, two of the first acceleration data in the first direction, the second acceleration data in the second direction, and the third acceleration data in the third direction Or the extreme values in the acceleration data in multiple directions appear relatively close to each other. Since brushing teeth is a process of constantly repeating the same action, the recognition of the movement can be realized by counting the proportion of extreme values satisfying the above conditions within the first preset time. Based on this, obtain the first number that is relatively close to the moment when the extreme value occurs within the first preset time, and compare the first number with the second time when the extreme value appears in the first target acceleration data within the first preset time The ratio of the number of times is used to obtain the proportion of the extreme value that satisfies the above situation, and then use the proportion to realize motion recognition.
附图说明Description of drawings
本申请的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, wherein:
图1是本申请实施例中刷牙运动识别方法的流程示意图;Fig. 1 is a schematic flow chart of a brushing motion recognition method in an embodiment of the present application;
图2是本申请实施例中手握牙刷左右来回移动时X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据的示意图;Fig. 2 is a schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration when the toothbrush is held in hand in the embodiment of the application and moves back and forth;
图3是左手戴手表握牙刷向右前方和左后方来回刷牙的X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据的示意图;Fig. 3 is a schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the resultant acceleration of the left hand wearing a watch and holding the toothbrush to the right front and left rear back and forth;
图4是右手戴手表手握牙刷左右来回移动时X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据的示意图;Fig. 4 is a schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration when the right hand wears a watch and holds a toothbrush to move back and forth;
图5是左手握牙刷,手腕倾斜指向右上方,可穿戴设备的表盘屏幕朝向左上方,手握牙刷左右来回移动时的加速度数据经过滤波后的数据示意图;Figure 5 is a schematic diagram of filtered acceleration data when the toothbrush is held in the left hand, the wrist is tilted to the upper right, the dial screen of the wearable device is directed to the upper left, and the toothbrush is moved back and forth in the hand;
图6是左手戴手表握牙刷向右前方和左后方来回刷牙的X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据经过滤波后的数据示意图;Fig. 6 is a data schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration of the acceleration data of the left hand wearing the watch and holding the toothbrush to the right front and the left rear back and forth after filtering;
图7是右手戴手表手握牙刷左右来回移动时X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据经过滤波后的数据示意图;Fig. 7 is a data schematic diagram of the filtered acceleration data in the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration when the right hand wears a watch and holds a toothbrush to move back and forth;
图8是本申请实施例中刷牙运动识别装置的示意框图;Fig. 8 is a schematic block diagram of a brushing motion recognition device in an embodiment of the present application;
图9是本申请实施例中电子设备的示意框图之一;Fig. 9 is one of the schematic block diagrams of the electronic device in the embodiment of the present application;
图10是本申请实施例中电子设备的示意框图之二;Fig. 10 is the second schematic block diagram of the electronic device in the embodiment of the present application;
图11是本申请实施例的一种电子设备的硬件结构示意图。FIG. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的刷牙运动识别方法、装置、电子设备和可读存储介质进行详细地说明。The toothbrushing motion recognition method, device, electronic device and readable storage medium provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
在其中一个实施例中,如图1所示,提出了一种刷牙运动识别方法,包括:In one of the embodiments, as shown in Fig. 1, a toothbrushing motion recognition method is proposed, including:
步骤102,获取可穿戴设备的加速度信息。 Step 102, acquiring acceleration information of the wearable device.
其中,加速度信息包括在第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据,第一方向、第二方向和第三方向两两垂直。Wherein, the acceleration information includes first acceleration data in the first direction, second acceleration data in the second direction and third acceleration data in the third direction, and the first direction, the second direction and the third direction are perpendicular to each other.
步骤104,获取第一预设时间内,第一时刻与第二时刻之间的时间小于预设时间阈值的第一次数。 Step 104, acquiring the first number of times that the time between the first moment and the second moment is less than the preset time threshold within the first preset time.
其中,第一时刻是第一目标加速度数据中出现极值的时刻,第二时刻是第二目标加速度数据中出现极值的时刻,其中,第一目标加速度数据、第二目标加速度数据是第一加速度数据、第二加速度数据和第三加速度数据中的任意两个加速度数据。Wherein, the first moment is the moment when the extremum appears in the first target acceleration data, and the second moment is the moment when the extremum appears in the second target acceleration data, wherein the first target acceleration data and the second target acceleration data are the first Any two acceleration data among the acceleration data, the second acceleration data and the third acceleration data.
步骤106,确定第一目标加速度数据在第一预设时间内,出现极值的第二次数。 Step 106, determining the second number of extreme values of the first target acceleration data within the first preset time.
步骤108,根据第一次数与第二次数的比值确定运动的识别结果。 Step 108, determine the motion recognition result according to the ratio of the first count to the second count.
在本申请实施例中,提出了一种刷牙运动识别方法,在该识别方法中,可以利用加速度传感器所检测到的数据来实现刷牙运动的识别。In the embodiment of the present application, a toothbrushing movement recognition method is proposed, in which the toothbrushing movement recognition can be realized by using the data detected by the acceleration sensor.
具体地,本申请的技术方案是通过以下方式来实现刷牙运动的识别的。Specifically, the technical solution of the present application realizes the toothbrushing motion recognition in the following manner.
在其中一个实施例中,第一方向可以是X轴方向,第二方向可以是Y轴方向,第三方向可以是Z轴方向。在加速度传感器以25赫兹采集X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据,其采集结果如图2所示,图2中的横坐标为时间,单位为毫秒,纵坐标为加速度,单位为m/s 2,其中,合加速度整体上移了5个单位,以避免与其它方向上的加速度数据混叠。 In one embodiment, the first direction may be the X-axis direction, the second direction may be the Y-axis direction, and the third direction may be the Z-axis direction. Acceleration data collected by the acceleration sensor in the X-axis direction, Y-axis direction, Z-axis direction and the combined acceleration at 25 Hz, the collection results are shown in Figure 2, the abscissa in Figure 2 is time in milliseconds, and the ordinate is acceleration , the unit is m/s 2 , where the resultant acceleration is shifted up by 5 units as a whole to avoid aliasing with acceleration data in other directions.
如图2所示,X轴方向的第一平均值、Y轴方向的第二平均值、Z轴方向的第三平均值分别稳定在9m/s 2、0m/s 2和5m/s 2左右,表示左手握牙刷,手腕倾斜指向右上方,可穿戴设备的表盘屏幕朝向左上方,手握牙刷左右来回移动时X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据的示意图。 As shown in Figure 2, the first average value in the X-axis direction, the second average value in the Y-axis direction, and the third average value in the Z-axis direction are stable at around 9m/s 2 , 0m/s 2 and 5m/s 2 respectively , which means that the left hand is holding the toothbrush, the wrist is tilted to the upper right, the dial screen of the wearable device is facing the upper left, and the acceleration data in the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration when the toothbrush is held in the hand moves back and forth.
如图3所示,左手戴手表握牙刷向右前方和左后方来回刷牙的X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据的示意图。As shown in Figure 3, a schematic diagram of the acceleration data of the X-axis direction, the Y-axis direction, the Z-axis direction and the resultant acceleration when the left hand wears a watch and holds a toothbrush to the right front and left rear back and forth.
如图4所示,右手戴手表手握牙刷左右来回移动时X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据的示意图。As shown in Figure 4, a schematic diagram of the acceleration data in the X-axis direction, the Y-axis direction, the Z-axis direction and the resultant acceleration when the right hand wears a watch and holds a toothbrush and moves back and forth.
在用户佩戴可穿戴设备时进行刷牙时,如左右来回、前后来回、右前左后来回、左前右后来回做运动时,可穿戴设备所检测到的加速度数据会 有所表征,具体地,第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据中的两个或多个方向上的加速度数据中的极值出现的时刻比较接近。由于刷牙运动是一个不断重复相同动作的过程,因此,可以通过统计在第一预设时间内,满足上述情况的极值的占比,以实现运动的识别。基于此,获取第一预设时间内,符合极值出现的时刻比较接近的第一次数,并将第一次数与第一目标加速度数据在第一预设时间内出现极值的第二次数做比值,以便得到满足上述情况的极值的占比,进而利用该占比实现运动的识别。When the user wears a wearable device and brushes his teeth, such as back and forth, back and forth, right front and left back and forth, left front and right back and forth, the acceleration data detected by the wearable device will be characterized. Specifically, the first The extreme values in the acceleration data in two or more directions among the first acceleration data in the direction, the second acceleration data in the second direction and the third acceleration data in the third direction appear relatively close to each other. Since brushing teeth is a process of constantly repeating the same action, the recognition of the movement can be realized by counting the proportion of extreme values satisfying the above conditions within the first preset time. Based on this, obtain the first number that is relatively close to the moment when the extreme value occurs within the first preset time, and compare the first number with the second time when the extreme value appears in the first target acceleration data within the first preset time The ratio of the number of times is used to obtain the proportion of the extreme value that satisfies the above situation, and then use the proportion to realize motion recognition.
在上述实施例中,由于加速度传感器的功耗低于陀螺仪的功耗,因此,采用本申请的技术方案来实现运动的识别的同时,降低了运动的识别对电子设备的续航时间的影响,提高了电子设备的续航时间。In the above-mentioned embodiments, since the power consumption of the acceleration sensor is lower than that of the gyroscope, the technical solution of the present application is used to realize motion recognition while reducing the impact of motion recognition on the battery life of the electronic device. Improved battery life of electronic devices.
在其中一个实施例中,根据第一次数与第二次数的比值确定运动的识别结果,包括:在第一次数与第二次数的比值大于预设阈值的情况下,确定识别到运动;在第一次数与第二次数的比值小于或等于预设阈值的情况下,确定未识别到运动。In one of the embodiments, determining the recognition result of the motion according to the ratio of the first count to the second count includes: determining that motion is recognized when the ratio of the first count to the second count is greater than a preset threshold; If the ratio of the first count to the second count is less than or equal to the preset threshold, it is determined that no motion is recognized.
在该实施例中,若比值大于预设阈值,可以推测出重复相同的动作占据第一预设时间内用户的绝大部分行为,因此,认定当前用户处于运动,而在比值小于或等于预设阈值的情况下,用户重复相同的次数比较小,为了避免出现误判,则将其认定为未识别到刷牙运动。通过设置预设阈值,以便将刷牙运动和未刷牙运动区分开来,降低运动识别错误的几率。In this embodiment, if the ratio is greater than the preset threshold, it can be inferred that repeating the same action occupies most of the user's behavior within the first preset time. In the case of the threshold value, the user repeats the same number of times is relatively small, in order to avoid misjudgment, it is determined that the brushing movement has not been recognized. Reduces the chance of motion recognition errors by setting preset thresholds to distinguish between brushing and non-brushing motions.
在其中一个可能的设计中,还包括:确定第一目标加速度数据在第一预设时间内,出现极值的第二次数,以及第二目标加速度数据在第一预设时间内,出现极值的第三次数,在第二次数小于或等于第三次数的情况下,根据第一次数与第二次数的比值确定运动的识别结果。In one of the possible designs, it also includes: determining the second number of extreme values of the first target acceleration data within the first preset time, and the extreme value of the second target acceleration data within the first preset time The third number of times, in the case that the second number is less than or equal to the third number, the motion recognition result is determined according to the ratio of the first number to the second number.
在第二次数大于第三次数的情况下,根据第一次数与第三次数的比值确定运动的识别结果。When the second number is greater than the third number, the motion recognition result is determined according to the ratio of the first number to the third number.
在其中一个可能的设计中,在第二次数小于或等于第三次数的情况下,还包括:确定第三次数与第二次数的比值,在第三次数与第二次数的比值大于或等于2的情况下,目前的加速度数据无法满足运动识别的要求。In one of the possible designs, when the second time is less than or equal to the third time, it also includes: determining the ratio of the third time to the second time, and the ratio of the third time to the second time is greater than or equal to 2 In this case, the current acceleration data cannot meet the requirements of motion recognition.
在其中一个可能的设计中,在第三次数与第二次数的比值大于或等于2的情况下,可以输出提醒信息,也可以不输出提醒信息。其中,提醒信息用于指示目前的加速度数据无法满足运动识别的要求。In one possible design, when the ratio of the third count to the second count is greater than or equal to 2, a reminder message may be output, or no reminder message may be output. Wherein, the reminder information is used to indicate that the current acceleration data cannot meet the requirements of motion recognition.
在其中一个可能的设计中,在第三次数与第二次数的比值大于或等于2的情况下,更新第一加速度数据、第二加速度数据和第三加速度数据。In one possible design, when the ratio of the third number of times to the second number of times is greater than or equal to 2, the first acceleration data, the second acceleration data and the third acceleration data are updated.
在其中一个可能的设计中,获取第一预设时间内,第一目标加速度数据中出现极值的第一时刻至第二目标加速度数据中出现极值的第二时刻的时间长度小于预设时间长度的第一次数之前,还包括:获取第二预设时间内第一加速度数据的第一平均值、第二加速度数据的第二平均值、第三加速度数据的第三平均值,其中,第二预设时间小于第一预设时间;在第一平均值处于第一预设平均值区间内、第二平均值处于第二预设平均值区间内、且第三平均值处于第三预设平均值区间内的情况下,获取第一预设时间内,第一目标加速度数据中出现极值的第一时刻至第二目标加速度数据中出现极值的第二时刻的时间长度小于预设时间长度的第一次数。In one possible design, within the first preset time, the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data is less than the preset time Before the first number of lengths, it also includes: obtaining the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within the second preset time, wherein, The second preset time is less than the first preset time; when the first average value is within the first preset average value interval, the second average value is within the second preset average value interval, and the third average value is within the third preset average value interval Assuming that the average value is within the interval, the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data within the first preset time is less than the preset The first number of the duration.
在该实施例中,在统计第一次数之前,还根据检测得到的加速度数据对是否进行运动的识别进行预判断。In this embodiment, before counting the first count, a pre-judgment is made on whether to perform motion recognition according to the detected acceleration data.
具体地,统计在第二预设时长内,第一加速度数据的第一平均值、第二加速度数据的第二平均值、第三加速度数据的第三平均值,并将统计得到的第一平均值、第二平均值和第三平均值分别与对应的第一预设平均值区间、第二预设平均值区间和第三预设平均值区间进行比较,在第一平均值处于第一预设平均值区间、第二平均值处于第二预设平均值区间、第三平均值处于第三预设平均值区间的情况下,认定在第二预设时长内,佩戴可穿戴设备的用户处于握持牙刷的姿势。Specifically, count the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within the second preset time period, and calculate the obtained first average value value, the second average value and the third average value are respectively compared with the corresponding first preset average value interval, the second preset average value interval and the third preset average value interval, and when the first average value is in the first preset Assuming that the average value range, the second average value is in the second preset average value range, and the third average value is in the third preset average value range, it is determined that within the second preset time period, the user wearing the wearable device is in the The pose of holding a toothbrush.
在上述实施例中,通过判断佩戴可穿戴设备的用户是否处于握持牙刷的姿势,以便根据判断结果确定是否执行刷牙运行的判定,若第一平均值、第二平均值和第三平均值中的一个或多个不满足与第一预设平均值区间、第二预设平均值区间和第三预设平均值区间的关系,认为在第二预设时长内,佩戴可穿戴设备的用户未处于握持牙刷的姿势,则不进行刷牙运动的识别。In the above-mentioned embodiment, by judging whether the user wearing the wearable device is in the posture of holding the toothbrush, so as to determine whether to perform the judgment of brushing teeth according to the judgment result, if the first average value, the second average value and the third average value One or more of the values do not meet the relationship with the first preset average interval, the second preset average interval and the third preset average interval, and it is considered that within the second preset time period, the user wearing the wearable device has not In the posture of holding a toothbrush, the identification of brushing motion is not performed.
通过执行刷牙运行的预判断,便于减少第一次数和第二次数统计的频次,减少了运行识别次数的同时,降低了需要处理数据量,进而降低电子设备的能耗,为提高电子设备的续航能力提供了基础。By performing the pre-judgment of the brushing operation, it is convenient to reduce the frequency of the first count and the second count, reduce the number of run recognition, and reduce the amount of data to be processed, thereby reducing the energy consumption of electronic equipment and improving the performance of electronic equipment. Endurance provides the basis.
在其中一个实施例中,通过记录大量用户在刷牙运动下第一平均值、第二平均值和第三平均值,并对记录的数据进行统计,以便得到第一预设平均值区间、第二预设平均值区间和第三预设平均值区间。In one of the embodiments, by recording the first average value, the second average value and the third average value under the brushing movement of a large number of users, and performing statistics on the recorded data, in order to obtain the first preset average value interval, the second A preset average interval and a third preset average interval.
在该实施例中,通过限定第一预设平均值区间、第二预设平均值区间和第三预设平均值区间的确定方式,确保了判定佩戴可穿戴设备的用户是否处于握持牙刷的姿势的准确性,提高了刷牙运动的识别精度。In this embodiment, by defining the determination method of the first preset average interval, the second preset average interval and the third preset average interval, it is ensured to determine whether the user wearing the wearable device is in the position of holding the toothbrush. The accuracy of gestures improves the recognition accuracy of brushing movements.
在其中一些实施例中,还包括:获取第三预设时间内第一加速度数据的第四平均值和第一方差值、第三预设时间内第二加速度数据的第五平均值和第二方差值、第三预设时间内第三加速度数据的第六平均值和第三方差值;在第四平均值的波动值处于第一预设波动值区间内且第一方差值处于第一预设方差范围内;第五平均值的波动值处于第二预设波动值区间内、第二方差值处于第二预设方差范围内;和/或第六平均值的波动值处于第三预设波动值区间内、第三方差值处于第三预设方差范围内的情况下,获取第二预设时间内第一加速度数据的第一平均值、第二加速度数据的第二平均值、第三加速度数据的第三平均值,其中,第三预设时间小于第二预设时间。In some of these embodiments, it also includes: obtaining the fourth average value and the first variance value of the first acceleration data within the third preset time, the fifth average value and the first variance value of the second acceleration data within the third preset time The second variance value, the sixth average value and the third-party variance value of the third acceleration data within the third preset time; the fluctuation value in the fourth average value is in the first preset fluctuation value interval and the first variance value is in Within the first preset variance range; the fluctuation value of the fifth average value is within the second preset fluctuation value interval, and the second variance value is within the second preset variance range; and/or the fluctuation value of the sixth average value is within In the case of the third preset fluctuation value range and the third-party difference within the third preset variance range, acquire the first average value of the first acceleration data and the second average value of the second acceleration data within the second preset time value, the third average value of the third acceleration data, wherein the third preset time is less than the second preset time.
在该实施例中,限定了在执行运动的预判断之前,还存在一次运行的预判断,具体地,确定第三预设时间内第一加速度数据的第四平均值和第一方差值、第三预设时间内第二加速度数据的第五平均值和第二方差值、第三预设时间内第三加速度数据的第六平均值和第三方差值,并确定第四平均值的波动值,第五平均值的波动值、第六平均值的波动值。在第四平均值的波动值处于第一预设波动值区间且第一方差值处于第一预设方差范围内、第五平均值的波动值处于第二预设波动值区间且第二方差值处于第二预设方差范围内、第六平均值的波动值小于第三预设波动值区间且第三方差值处于第三预设方差范围内中的至少一个成立,则认定在此次预判断过程中,用户的动作比较稳定。In this embodiment, it is defined that before performing the pre-judgment of motion, there is still a running pre-judgment, specifically, determining the fourth average value and the first variance value of the first acceleration data within the third preset time, The fifth average value and the second variance value of the second acceleration data within the third preset time, the sixth average value and the third party difference value of the third acceleration data within the third preset time, and determine the fourth average value Fluctuation value, the fluctuation value of the fifth average value, the fluctuation value of the sixth average value. When the fluctuation value of the fourth average value is in the first preset fluctuation value interval and the first variance value is in the first preset variance range, the fluctuation value of the fifth average value is in the second preset fluctuation value interval and the second square If the difference is within the second preset variance range, the fluctuation value of the sixth average value is smaller than the third preset fluctuation value interval, and at least one of the third-party difference is within the third preset variance range is established, then it is determined that in this During the pre-judgment process, the user's actions are relatively stable.
其中,第一预设波动值区间、第一预设方差范围、第二预设波动值区间、第二预设方差范围、第三预设波动值区间和第三预设方差范围是在通过大量用户在刷牙运动时对加速度数据进行统计所得到的。Wherein, the first preset fluctuation value interval, the first preset variance range, the second preset fluctuation value interval, the second preset variance range, the third preset fluctuation value interval and the third preset variance range are obtained through a large number of It is obtained by counting the acceleration data when the user is brushing teeth.
另外,在第四平均值的波动值处于第一预设波动值区间且第一方差值处于第一预设方差范围、第五平均值的波动值处于第二预设波动值区间且第二方差值处于第二预设方差范围、第六平均值的波动值处于第三预设波动值区间且第三方差值处于第三预设方差范围都不成立时,则认定用户的动作不稳定,此时,不进行握持牙刷的姿势的识别,便于减少第一次数和第二次数统计的频次,减少了运行识别次数的同时,降低了需要处理数据量,进而降低电子设备的能耗,为提高电子设备的续航能力提供了基础。In addition, when the fluctuation value of the fourth average value is in the first preset fluctuation value interval and the first variance value is in the first preset variance range, the fluctuation value of the fifth average value is in the second preset fluctuation value interval and the second When the variance value is in the second preset variance range, the fluctuation value of the sixth average value is in the third preset fluctuation value range, and the third-party difference is in the third preset variance range, it is determined that the user's action is unstable. At this time, the recognition of the posture of holding the toothbrush is not carried out, which is convenient to reduce the frequency of the first count and the second count, reduce the number of running recognition, and reduce the amount of data to be processed, thereby reducing the energy consumption of electronic equipment. It provides a basis for improving the battery life of electronic equipment.
在其中一些实施例中,在获取第一预设时间内,第一时刻与第二时刻之间的时间小于预设时间阈值的第一次数之前,还包括:对第一加速度数据、第二加速度数据和第三加速度数据进行滤波。In some of these embodiments, within the first preset time, before the time between the first moment and the second moment is less than the preset time threshold for the first time, it also includes: the first acceleration data, the second The acceleration data and the third acceleration data are filtered.
如图5所示,左手握牙刷,手腕倾斜指向右上方,可穿戴设备的表盘屏幕朝向左上方,手握牙刷左右来回移动时的加速度数据经过滤波后的数据示意图。As shown in Figure 5, the toothbrush is held in the left hand, the wrist is tilted to the upper right, the dial screen of the wearable device is facing the upper left, and the acceleration data is filtered when the toothbrush is moved back and forth in the hand.
如图6所示,左手戴手表握牙刷向右前方和左后方来回刷牙的X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据经过滤波后的数据示意图。As shown in Figure 6, the left hand wears a watch and holds a toothbrush to the right front and left back to brush teeth back and forth in the X-axis direction, Y-axis direction, Z-axis direction and the acceleration data of the combined acceleration after filtering.
如图7所示,右手戴手表手握牙刷左右来回移动时X轴方向、Y轴方向、Z轴方向和合加速度的加速度数据经过滤波后的数据示意图。As shown in Figure 7, when the right hand wears a watch and holds a toothbrush and moves back and forth left and right, the acceleration data in the X-axis direction, the Y-axis direction, the Z-axis direction and the combined acceleration are filtered.
在该实施例中,通过对第一加速度数据、第二加速度数据和第三加速度数据进行滤波,以便将第一加速度数据、第二加速度数据和第三加速度数据中突变的数据滤除掉,减少突变的数据对判断运动识别的影响,进而提高了运动识别的准确性。In this embodiment, by filtering the first acceleration data, the second acceleration data and the third acceleration data, so as to filter out the sudden change in the first acceleration data, the second acceleration data and the third acceleration data, the reduction The impact of the mutated data on judging motion recognition improves the accuracy of motion recognition.
在其中一个实施例中,对第一加速度数据、第二加速度数据和第三加速度数据进行低通滤波。In one embodiment, low-pass filtering is performed on the first acceleration data, the second acceleration data and the third acceleration data.
在其中一个实施例中,极值包括波峰值和/或波谷值。In one embodiment, the extreme values include peaks and/or valleys.
举例来说,第一时刻与第二时刻之间的时间小于预设时间阈值的情况 可以是:第一加速度数据的波峰值出现的时刻与第二加速度数据的波谷值出现的时刻之间的时间小于预设时间阈值;或第一加速度数据的波峰值出现的时刻和第二加速度数据的波峰值出现的时刻之间的时间小于预设时间阈值。For example, the situation that the time between the first moment and the second moment is less than the preset time threshold may be: the time between the moment when the peak value of the first acceleration data appears and the moment when the valley value of the second acceleration data appears less than the preset time threshold; or the time between the moment when the peak value of the first acceleration data appears and the moment when the peak value of the second acceleration data appears is less than the preset time threshold.
在其中一个实施例中,预设阈值的取值大于或等于0.9。In one embodiment, the value of the preset threshold is greater than or equal to 0.9.
在该实施例中,通过合理选取预设阈值的取值,以便将运动和未运动区分开来,降低运动识别错误的几率。In this embodiment, the value of the preset threshold is reasonably selected so as to distinguish motion from non-motion and reduce the probability of motion recognition errors.
在其中一个实施例中,第一时刻与第二时刻之间的时间可以理解为自第一时刻至第二时刻的时间长度,或自第二时刻到第一时刻的时间长度。In one embodiment, the time between the first moment and the second moment can be understood as the length of time from the first moment to the second moment, or the length of time from the second moment to the first moment.
在其中一个实施例中,预设时间阈值取值小于或等于80毫秒,如70毫秒、50毫秒、30毫秒等。In one embodiment, the preset time threshold is less than or equal to 80 milliseconds, such as 70 milliseconds, 50 milliseconds, 30 milliseconds, and so on.
在其中一个实施例中,还包括:确定识别到运动,输出运动的持续时长。In one of the embodiments, the method further includes: determining that motion is recognized, and outputting the duration of the motion.
在该实施例中,通过输出运动的持续时长,以便执行运动过程中的控制,其中,运动过程中的控制包括但不局限于运动的总时长的控制,还包括输出运动结束的提醒信息。In this embodiment, the duration of the exercise is output to perform control during the exercise, wherein the control during the exercise includes but not limited to the control of the total duration of the exercise, and also includes outputting reminder information for the end of the exercise.
在其中一个实施例中,还包括:确定识别到运动,输出运动的力度。In one of the embodiments, the method further includes: determining that a motion is recognized, and outputting the strength of the motion.
在该实施例中,通过输出运动的力度,以便根据运动的力度调整设备的运行模式。In this embodiment, the strength of the movement is output so as to adjust the operating mode of the device according to the strength of the movement.
本申请实施例提供的运动的识别方法,执行主体可以为运动的识别装置。本申请实施例中以运动的识别装置执行运动的识别方法为例,说明本申请实施例提供的运动的识别装置。The motion recognition method provided in the embodiment of the present application may be executed by a motion recognition device. In the embodiment of the present application, the motion recognition device provided in the embodiment of the present application is described by taking the motion recognition device performing the motion recognition method as an example.
在其中一个实施例中,如图8所示,提出了一种运动的识别装置800,包括:获取模块802,用于获取可穿戴设备的加速度信息,其中,加速度信息包括在第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据,第一方向、第二方向和第三方向两两垂直;统计模块804,用于获取第一预设时间内,第一时刻与第二时刻之间的时间小于预设时间阈值的第一次数,其中,第一时刻是第一目标加速度数据中出现极值的时刻,第二时刻是第二目标加速度数据中出现极值的时 刻,其中,第一目标加速度数据、第二目标加速度数据是第一加速度数据、第二加速度数据和第三加速度数据中的任意两个加速度数据;确定模块806,用于确定第一目标加速度数据在第一预设时间内,出现极值的第二次数;识别模块808,用于根据第一次数与第二次数的比值确定运动的识别结果。In one of the embodiments, as shown in FIG. 8 , a motion recognition device 800 is proposed, including: an acquisition module 802, configured to acquire acceleration information of a wearable device, wherein the acceleration information includes The first acceleration data, the second acceleration data in the second direction and the third acceleration data in the third direction, the first direction, the second direction and the third direction are perpendicular to each other; the statistical module 804 is used to obtain the first preset Within the time period, the time between the first moment and the second moment is less than the first time of the preset time threshold, wherein the first moment is the moment when the extreme value appears in the first target acceleration data, and the second moment is the second target acceleration data The moment when the extreme value appears in the acceleration data, wherein, the first target acceleration data and the second target acceleration data are any two acceleration data in the first acceleration data, the second acceleration data and the third acceleration data; the determination module 806 uses To determine the second number of extremum occurrences of the first target acceleration data within the first preset time; the identification module 808 is configured to determine the recognition result of the movement according to the ratio of the first number to the second number.
在本申请实施例中,提出了一种运动的识别装置800,可以利用加速度传感器所检测到的数据来实现运动的识别。In the embodiment of the present application, a motion recognition device 800 is proposed, which can realize motion recognition by using data detected by an acceleration sensor.
具体地,在用户佩戴可穿戴设备时进行刷牙时,如左右来回、前后来回、右前左后来回、左前右后来回做运动时,可穿戴设备所检测到的加速度数据会有所表征,具体地,第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据中的两个或多个方向上的加速度数据中的极值出现的时刻比较接近。由于刷牙运动是一个不断重复相同动作的过程,因此,可以通过统计在第一预设时间内,满足上述情况的极值的占比,以实现运动的识别。基于此,获取第一预设时间内,符合极值出现的时刻比较接近的第一次数,并将第一次数与第一目标加速度数据在第一预设时间内出现极值的第二次数做比值,以便得到满足上述情况的极值的占比,进而利用该占比实现运动的识别。Specifically, when the user wears a wearable device and brushes his teeth, such as moving back and forth, front and back, right front and left back, left front and right back and forth, the acceleration data detected by the wearable device will be characterized, specifically , among the first acceleration data in the first direction, the second acceleration data in the second direction, and the third acceleration data in the third direction, the extreme values in the acceleration data in two or more directions appear relatively close to . Since brushing teeth is a process of constantly repeating the same action, the recognition of the movement can be realized by counting the proportion of extreme values satisfying the above conditions within the first preset time. Based on this, obtain the first number that is relatively close to the moment when the extreme value occurs within the first preset time, and compare the first number with the second time when the extreme value appears in the first target acceleration data within the first preset time The ratio of the number of times is used to obtain the proportion of the extreme value that satisfies the above situation, and then use the proportion to realize motion recognition.
在上述实施例中,由于加速度传感器的功耗低于陀螺仪的功耗,因此,采用本申请的技术方案来实现运动的识别的同时,降低了运动的识别对电子设备的续航时间的影响,提高了电子设备的续航时间。In the above-mentioned embodiments, since the power consumption of the acceleration sensor is lower than that of the gyroscope, the technical solution of the present application is used to realize motion recognition while reducing the impact of motion recognition on the battery life of the electronic device. Improved battery life of electronic devices.
在其中一些实施例中,识别模块808具体用于:在第一次数与第二次数的比值大于预设阈值的情况下,确定识别到运动;在第一次数与第二次数的比值小于或等于预设阈值的情况下,确定未识别到运动。In some of these embodiments, the recognition module 808 is specifically configured to: determine that motion is recognized when the ratio of the first count to the second count is greater than a preset threshold; or equal to the preset threshold, it is determined that no motion is recognized.
在该实施例中,在该实施例中,若比值大于预设阈值,可以推测出重复相同的动作占据第一预设时间内用户的绝大部分行为,因此,认定当前用户处于运动,而在比值小于或等于预设阈值的情况下,用户重复相同的次数比较小,为了避免出现误判,则将其认定为未识别到刷牙运动。通过设置预设阈值,以便将刷牙运动和未刷牙运动区分开来,降低运动识别错误的几率。In this embodiment, in this embodiment, if the ratio is greater than the preset threshold, it can be inferred that repeating the same action occupies most of the user's behavior within the first preset time, therefore, it is determined that the current user is in motion, and in In the case where the ratio is less than or equal to the preset threshold, the user repeats the same number of times is relatively small, in order to avoid misjudgment, it is determined that the teeth brushing movement has not been recognized. Reduces the chance of motion recognition errors by setting preset thresholds to distinguish between brushing and non-brushing motions.
在其中一个可能的设计中,还包括:确定第一目标加速度数据在第一预设时间内,出现极值的第二次数,以及第二目标加速度数据在第一预设时间内,出现极值的第三次数,在第二次数小于或等于第三次数的情况下,根据第一次数与第二次数的比值确定运动的识别结果。In one of the possible designs, it also includes: determining the second number of extreme values of the first target acceleration data within the first preset time, and the extreme value of the second target acceleration data within the first preset time The third number of times, in the case that the second number is less than or equal to the third number, the motion recognition result is determined according to the ratio of the first number to the second number.
在在第二次数大于第三次数的情况下,根据第一次数与第三次数的比值确定运动的识别结果。In the case that the second number is greater than the third number, the motion recognition result is determined according to the ratio of the first number to the third number.
在其中一个可能的设计中,在第二次数小于或等于第三次数的情况下,还包括:确定第三次数与第二次数的比值,在第三次数与第二次数的比值大于或等于2的情况下,目前的加速度数据无法满足运动识别的要求。In one of the possible designs, when the second time is less than or equal to the third time, it also includes: determining the ratio of the third time to the second time, and the ratio of the third time to the second time is greater than or equal to 2 In this case, the current acceleration data cannot meet the requirements of motion recognition.
在其中一个可能的设计中,在第三次数与第二次数的比值大于或等于2的情况下,可以输出提醒信息,也可以不输出提醒信息。其中,提醒信息用于指示目前的加速度数据无法满足运动识别的要求。In one possible design, when the ratio of the third count to the second count is greater than or equal to 2, a reminder message may be output, or no reminder message may be output. Wherein, the reminder information is used to indicate that the current acceleration data cannot meet the requirements of motion recognition.
在其中一个可能的设计中,在第三次数与第二次数的比值大于或等于2的情况下,更新第一加速度数据、第二加速度数据和第三加速度数据。In one possible design, when the ratio of the third number of times to the second number of times is greater than or equal to 2, the first acceleration data, the second acceleration data and the third acceleration data are updated.
在其中一个可能的设计中,确定模块806还用于:获取第二预设时间内第一加速度数据的第一平均值、第二加速度数据的第二平均值、第三加速度数据的第三平均值,其中,第二预设时间小于第一预设时间;在第一平均值处于第一预设平均值区间内、第二平均值处于第二预设平均值区间内、且第三平均值处于第三预设平均值区间内的情况下,获取第一预设时间内,第一目标加速度数据中出现极值的第一时刻至第二目标加速度数据中出现极值的第二时刻的时间长度小于预设时间长度的第一次数。In one of the possible designs, the determination module 806 is also used to: obtain the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within the second preset time value, wherein the second preset time is less than the first preset time; when the first average value is within the first preset average value interval, the second average value is within the second preset average value interval, and the third average value In the case of being within the third preset average value interval, the time from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data within the first preset time is obtained The first number of times the length is less than the preset time length.
在该实施例中,在统计第一次数之前,还根据检测得到的加速度数据对是否进行运动的识别进行预判断。In this embodiment, before counting the first count, a pre-judgment is made on whether to perform motion recognition according to the detected acceleration data.
具体地,统计在第二预设时长内,第一加速度数据的第一平均值、第二加速度数据的第二平均值、第三加速度数据的第三平均值,并将统计得到的第一平均值、第二平均值和第三平均值分别与对应的第一预设平均值区间、第二预设平均值区间和第三预设平均值区间进行比较,在第一平均值处于第一预设平均值区间、第二平均值处于第二预设平均值区间、第三平均值处于第三预设平均值区间的情况下,认定在第二预设时长内,佩戴 可穿戴设备的用户处于握持牙刷的姿势。Specifically, count the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within the second preset time period, and calculate the obtained first average value value, the second average value and the third average value are respectively compared with the corresponding first preset average value interval, the second preset average value interval and the third preset average value interval, and when the first average value is in the first preset Assuming that the average value range, the second average value is in the second preset average value range, and the third average value is in the third preset average value range, it is determined that within the second preset time period, the user wearing the wearable device is in the The pose of holding a toothbrush.
在上述实施例中,通过判断佩戴可穿戴设备的用户是否处于握持牙刷的姿势,以便根据判断结果确定是否执行刷牙运行的判定,若第一平均值、第二平均值和第三平均值中的一个或多个不满足与第一预设平均值区间、第二预设平均值区间和第三预设平均值区间的关系,认为在第二预设时长内,佩戴可穿戴设备的用户未处于握持牙刷的姿势,则不进行刷牙运动的识别。In the above-mentioned embodiment, by judging whether the user wearing the wearable device is in the posture of holding the toothbrush, so as to determine whether to perform the judgment of brushing teeth according to the judgment result, if the first average value, the second average value and the third average value One or more of the values do not meet the relationship with the first preset average interval, the second preset average interval and the third preset average interval, and it is considered that within the second preset time period, the user wearing the wearable device has not In the posture of holding a toothbrush, the identification of brushing motion is not performed.
通过执行刷牙运行的预判断,便于减少第一次数和第二次数统计的频次,减少了运行识别次数的同时,降低了需要处理数据量,进而降低电子设备的能耗,为提高电子设备的续航能力提供了基础。By performing the pre-judgment of the brushing operation, it is convenient to reduce the frequency of the first count and the second count, reduce the number of run recognition, and reduce the amount of data to be processed, thereby reducing the energy consumption of electronic equipment and improving the performance of electronic equipment. Endurance provides the basis.
在其中一个实施例中,通过记录大量用户在刷牙运动下第一平均值、第二平均值和第三平均值,并对记录的数据进行统计,以便得到第一预设平均值区间、第二预设平均值区间和第三预设平均值区间。In one of the embodiments, by recording the first average value, the second average value and the third average value under the brushing movement of a large number of users, and performing statistics on the recorded data, in order to obtain the first preset average value interval, the second A preset average interval and a third preset average interval.
在该实施例中,通过限定第一预设平均值区间、第二预设平均值区间和第三预设平均值区间的确定方式,确保了判定佩戴可穿戴设备的用户是否处于握持牙刷的姿势的准确性,提高了刷牙运动的识别精度。In this embodiment, by defining the determination method of the first preset average interval, the second preset average interval and the third preset average interval, it is ensured to determine whether the user wearing the wearable device is in the position of holding the toothbrush. The accuracy of gestures improves the recognition accuracy of brushing movements.
在其中一个可能的设计中,确定模块806还用于:获取第三预设时间内第一加速度数据的第四平均值和第一方差值、第三预设时间内第二加速度数据的第五平均值和第二方差值、第三预设时间内第三加速度数据的第六平均值和第三方差值;在第四平均值的波动值处于第一预设波动值区间内且第一方差值处于第一预设方差范围内;第五平均值的波动值处于第二预设波动值区间内、第二方差值处于第二预设方差范围内;和/或第六平均值的波动值处于第三预设波动值区间内、第三方差值处于第三预设方差范围内的情况下,获取第二预设时间内第一加速度数据的第一平均值、第二加速度数据的第二平均值、第三加速度数据的第三平均值,其中,第三预设时间小于第二预设时间。In one possible design, the determination module 806 is further configured to: obtain the fourth average value and the first variance value of the first acceleration data within the third preset time, the first variance value of the second acceleration data within the third preset time The fifth average value and the second variance value, the sixth average value and the third-party difference value of the third acceleration data within the third preset time; the fluctuation value of the fourth average value is within the first preset fluctuation value interval and the first One variance value is within the first preset variance range; the fluctuation value of the fifth average value is within the second preset fluctuation value range, and the second variance value is within the second preset variance range; and/or the sixth average When the fluctuation value of the value is within the third preset fluctuation value interval and the third-party difference is within the third preset variance range, the first average value and the second acceleration data of the first acceleration data within the second preset time period are obtained. The second average value of the data and the third average value of the third acceleration data, wherein the third preset time is shorter than the second preset time.
在该实施例中,限定了在执行运动的预判断之前,还存在一次运行的预判断,具体地,确定第三预设时间内第一加速度数据的第四平均值和第一方差值、第三预设时间内第二加速度数据的第五平均值和第二方差值、 第三预设时间内第三加速度数据的第六平均值和第三方差值,并确定第四平均值的波动值,第五平均值的波动值、第六平均值的波动值。在第四平均值的波动值处于第一预设波动值区间且第一方差值处于第一预设方差范围内、第五平均值的波动值处于第二预设波动值区间且第二方差值处于第二预设方差范围内、第六平均值的波动值小于第三预设波动值区间且第三方差值处于第三预设方差范围内中的至少一个成立,则认定在此次预判断过程中,用户的动作比较稳定。In this embodiment, it is defined that before performing the pre-judgment of motion, there is still a running pre-judgment, specifically, determining the fourth average value and the first variance value of the first acceleration data within the third preset time, The fifth average value and the second variance value of the second acceleration data within the third preset time, the sixth average value and the third difference value of the third acceleration data within the third preset time, and determine the fourth average value Fluctuation value, the fluctuation value of the fifth average value, the fluctuation value of the sixth average value. When the fluctuation value of the fourth average value is in the first preset fluctuation value interval and the first variance value is in the first preset variance range, the fluctuation value of the fifth average value is in the second preset fluctuation value interval and the second square If the difference is within the second preset variance range, the fluctuation value of the sixth average value is smaller than the third preset fluctuation value interval, and at least one of the third-party difference is within the third preset variance range is established, then it is determined that in this During the pre-judgment process, the user's actions are relatively stable.
其中,第一预设波动值区间、第一预设方差范围、第二预设波动值区间、第二预设方差范围、第三预设波动值区间和第三预设方差范围是在通过大量用户在刷牙运动时对加速度数据进行统计所得到的。Wherein, the first preset fluctuation value interval, the first preset variance range, the second preset fluctuation value interval, the second preset variance range, the third preset fluctuation value interval and the third preset variance range are obtained through a large number of It is obtained by counting the acceleration data when the user is brushing teeth.
另外,在第四平均值的波动值处于第一预设波动值区间且第一方差值处于第一预设方差范围、第五平均值的波动值处于第二预设波动值区间且第二方差值处于第二预设方差范围、第六平均值的波动值处于第三预设波动值区间且第三方差值处于第三预设方差范围都不成立时,则认定用户的动作不稳定,此时,不进行握持牙刷的姿势的识别,便于减少第一次数和第二次数统计的频次,减少了运行识别次数的同时,降低了需要处理数据量,进而降低电子设备的能耗,为提高电子设备的续航能力提供了基础。In addition, when the fluctuation value of the fourth average value is in the first preset fluctuation value interval and the first variance value is in the first preset variance range, the fluctuation value of the fifth average value is in the second preset fluctuation value interval and the second When the variance value is in the second preset variance range, the fluctuation value of the sixth average value is in the third preset fluctuation value range, and the third-party difference is in the third preset variance range, it is determined that the user's action is unstable. At this time, the recognition of the posture of holding the toothbrush is not carried out, which is convenient to reduce the frequency of the first count and the second count, reduce the number of running recognition, and reduce the amount of data to be processed, thereby reducing the energy consumption of electronic equipment. It provides a basis for improving the battery life of electronic equipment.
在其中一个可能的设计中,确定模块806还用于:对第一加速度数据、第二加速度数据和第三加速度数据进行滤波。In one possible design, the determining module 806 is further configured to: filter the first acceleration data, the second acceleration data and the third acceleration data.
在其中一个实施例中,对第一加速度数据、第二加速度数据和第三加速度数据进行低通滤波。In one embodiment, low-pass filtering is performed on the first acceleration data, the second acceleration data and the third acceleration data.
在其中一个实施例中,极值包括波峰值和/或波谷值。In one embodiment, the extreme values include peaks and/or valleys.
在其中一个实施例中,预设阈值的取值大于或等于0.9。In one embodiment, the value of the preset threshold is greater than or equal to 0.9.
在该实施例中,通过合理选取预设阈值的取值,以便将运动和未运动区分开来,降低运动识别错误的几率。In this embodiment, the value of the preset threshold is reasonably selected so as to distinguish motion from non-motion and reduce the probability of motion recognition errors.
在其中一个实施例中,第一时刻与第二时刻之间的时间可以理解为自第一时刻至第二时刻的时间长度,或自第二时刻到第一时刻的时间长度。In one embodiment, the time between the first moment and the second moment can be understood as the length of time from the first moment to the second moment, or the length of time from the second moment to the first moment.
在其中一个实施例中,预设时间阈值取值小于或等于80毫秒,如70毫秒、50毫秒、30毫秒等。In one embodiment, the preset time threshold is less than or equal to 80 milliseconds, such as 70 milliseconds, 50 milliseconds, 30 milliseconds, and so on.
在其中一个实施例中,识别模块808还用于:确定识别到运动,输出运动的持续时长。In one of the embodiments, the recognition module 808 is further configured to: determine that motion is recognized, and output the duration of the motion.
在该实施例中,通过输出运动的持续时长,以便执行运动过程中的控制,其中,运动过程中的控制包括但不局限于运动的总时长的控制,还包括输出运动结束的提醒信息。In this embodiment, the duration of the exercise is output to perform control during the exercise, wherein the control during the exercise includes but not limited to the control of the total duration of the exercise, and also includes outputting reminder information for the end of the exercise.
在其中一个实施例中,识别模块808还用于:确定识别到运动,输出运动的力度。In one of the embodiments, the recognition module 808 is further configured to: determine that a movement is recognized, and output the strength of the movement.
在该实施例中,通过输出运动的力度,以便根据运动的力度调整设备的运行模式。In this embodiment, the strength of the movement is output so as to adjust the operating mode of the device according to the strength of the movement.
本申请实施例中的运动的识别装置800可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The motion recognition apparatus 800 in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) ) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., can also serve as server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in this embodiment of the present application.
本申请实施例中的运动的识别装置800可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为ios操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。The motion recognition device 800 in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的运动的识别装置800能够实现图1至图7的方法实施例实现的各个过程,为避免重复,这里不再赘述。The motion recognition device 800 provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 7 , and details are not repeated here to avoid repetition.
在其中一个实施例中,如图9所示,提出了一种电子设备900,包括如上述运动的识别装置800。In one of the embodiments, as shown in FIG. 9 , an electronic device 900 is proposed, including the above-mentioned motion recognition device 800 .
在该实施例中,提出的电子设备900具有上述运动的识别装置800,且能达到相同的技术效果,为避免重复,这里不再赘述。In this embodiment, the proposed electronic device 900 has the above-mentioned movement recognition device 800 and can achieve the same technical effect, so to avoid repetition, details are not repeated here.
在其中一个实施例中,如图10所示,本申请实施例还提供一种电子设 备1000,包括处理器1002和存储器1004,存储器1004上存储有可在处理器1002上运行的程序或指令,该程序或指令被处理器1002执行时实现上述运动的识别方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。In one of the embodiments, as shown in FIG. 10 , the embodiment of the present application also provides an electronic device 1000, including a processor 1002 and a memory 1004, and the memory 1004 stores programs or instructions that can run on the processor 1002, When the program or instruction is executed by the processor 1002, each step of the above-mentioned embodiment of the motion recognition method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备1000包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic device 1000 in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
图11为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
如图11所示,该电子设备1100包括但不限于:射频单元1101、网络模块1102、音频输出单元1103、输入单元1104、传感器1105、显示单元1106、用户输入单元1107、接口单元1108、存储器1109、以及处理器1110等部件。As shown in Figure 11, the electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, and a memory 1109 , and the processor 1110 and other components.
本领域技术人员可以理解,电子设备1100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器1110逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图11中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1100 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1110 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 11 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
处理器1110,用于获取可穿戴设备的加速度信息,其中,加速度信息包括在第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据,第一方向、第二方向和第三方向两两垂直;获取第一预设时间内,第一时刻与第二时刻之间的时间小于预设时间阈值的第一次数,其中,第一时刻是第一目标加速度数据中出现极值的时刻,第二时刻是第二目标加速度数据中出现极值的时刻,其中,第一目标加速度数据、第二目标加速度数据是第一加速度数据、第二加速度数据和第三加速度数据中的任意两个加速度数据;确定第一目标加速度数据在第一预设时间内,出现极值的第二次数;根据第一次数与第二次数的比值确定运动的识别结果。The processor 1110 is configured to acquire acceleration information of the wearable device, where the acceleration information includes first acceleration data in a first direction, second acceleration data in a second direction, and third acceleration data in a third direction, the first The first direction, the second direction, and the third direction are perpendicular to each other; obtain the first number of times that the time between the first moment and the second moment is less than the preset time threshold within the first preset time, where the first moment is The moment when the extreme value appears in the first target acceleration data, and the second moment is the moment when the extreme value appears in the second target acceleration data, wherein the first target acceleration data and the second target acceleration data are the first acceleration data, the second acceleration data Any two acceleration data in the data and the third acceleration data; determine the second number of times that the extreme value occurs in the first target acceleration data within the first preset time; Recognition results.
处理器1110,用于在第一次数与第二次数的比值大于预设阈值的情况下,确定识别到运动;在第一次数与第二次数的比值小于或等于预设阈值 的情况下,确定未识别到运动。 Processor 1110, configured to determine that motion is recognized when the ratio of the first count to the second count is greater than a preset threshold; , make sure no motion is detected.
处理器1110,用于获取第一预设时间内,第一目标加速度数据中出现极值的第一时刻至第二目标加速度数据中出现极值的第二时刻的时间长度小于预设时间长度的第一次数之前,还包括:获取第二预设时间内第一加速度数据的第一平均值、第二加速度数据的第二平均值、第三加速度数据的第三平均值,其中,第二预设时间小于第一预设时间;在第一平均值处于第一预设平均值区间内、第二平均值处于第二预设平均值区间内、且第三平均值处于第三预设平均值区间内的情况下,获取第一预设时间内,第一目标加速度数据中出现极值的第一时刻至第二目标加速度数据中出现极值的第二时刻的时间长度小于预设时间长度的第一次数。The processor 1110 is configured to obtain within the first preset time, the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data is less than the preset time length Before the first count, it also includes: obtaining the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within the second preset time, wherein the second The preset time is less than the first preset time; when the first average value is within the first preset average value interval, the second average value is within the second preset average value interval, and the third average value is within the third preset average value In the case of the value interval, within the first preset time period, the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data is less than the preset time length the first number of .
处理器1110,用于获取第三预设时间内第一加速度数据的第四平均值和第一方差值、第三预设时间内第二加速度数据的第五平均值和第二方差值、第三预设时间内第三加速度数据的第六平均值和第三方差值;在第四平均值的波动值处于第一预设波动值区间内且第一方差值处于第一预设方差范围内;第五平均值的波动值处于第二预设波动值区间内、第二方差值处于第二预设方差范围内;和/或第六平均值的波动值处于第三预设波动值区间内、第三方差值处于第三预设方差范围内的情况下,获取第二预设时间内第一加速度数据的第一平均值、第二加速度数据的第二平均值、第三加速度数据的第三平均值,其中,第三预设时间小于第二预设时间。 Processor 1110, configured to obtain a fourth average value and a first variance value of the first acceleration data within a third preset time period, and a fifth average value and a second variance value of the second acceleration data within a third preset time period , the sixth average value and the third-party difference of the third acceleration data within the third preset time; the fluctuation value of the fourth average value is within the first preset fluctuation value interval and the first variance value is within the first preset Within the variance range; the fluctuation value of the fifth average value is within the second preset fluctuation value interval, the second variance value is within the second preset variance range; and/or the fluctuation value of the sixth average value is within the third preset In the fluctuation value interval, when the third-party difference is within the third preset variance range, the first average value of the first acceleration data, the second average value of the second acceleration data, the third average value of the second acceleration data, and the third The third average value of the acceleration data, wherein the third preset time is shorter than the second preset time.
应理解的是,本申请实施例中,输入单元1104可以包括图形处理器(Graphics Processing Unit,GPU)11041和麦克风11042,图形处理器11041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1106可包括显示面板11061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板11061。用户输入单元1107包括触控面板11071以及其他输入设备11072中的至少一种。触控面板11071,也称为触摸屏。触控面板11071可包括触摸检测装置和触摸控制器两个部分。其他输入设备11072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in the embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072 . Touch panel 11071, also called touch screen. The touch panel 11071 may include two parts, a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
存储器1109可用于存储软件程序以及各种数据。存储器1109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作***、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1109可以包括易失性存储器或非易失性存储器,或者,存储器1109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1109包括但不限于这些和任意其它适合类型的存储器。The memory 1109 can be used to store software programs as well as various data. The memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc. Furthermore, memory 1109 may include volatile memory or nonvolatile memory, or, memory 1109 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). The memory 1109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
处理器1110可包括一个或多个处理单元;可选的,处理器1110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作***、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1110中。The processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 1110 .
本发明实施例还提供一种电子设备,被配置成用于执行上述运动的识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention also provides an electronic device configured to execute the processes of the above embodiment of the motion recognition method, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
在其中一个实施例中,本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述刷牙运动识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。In one of the embodiments, the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each of the above embodiments of the toothbrushing motion recognition method is realized. process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述刷牙运动识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the various processes of the above-mentioned teeth brushing motion recognition method embodiment, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
本申请实施例另提供了一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述运动的识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to realize the various processes in the above embodiment of the motion recognition method, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without more limitations, an element defined by the phrase "comprising a" does not exclude the presence of additional same elements in the process, method, article or apparatus that includes the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如 ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (13)

  1. 一种运动的识别方法,包括:A motion recognition method, comprising:
    获取可穿戴设备的加速度信息,其中,所述加速度信息包括在第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据,所述第一方向、所述第二方向和所述第三方向两两垂直;Acquiring acceleration information of the wearable device, wherein the acceleration information includes first acceleration data in a first direction, second acceleration data in a second direction, and third acceleration data in a third direction, the first direction , the second direction and the third direction are perpendicular to each other;
    获取第一预设时间内,第一时刻与第二时刻之间的时间小于预设时间阈值的第一次数,其中,所述第一时刻是第一目标加速度数据中出现极值的时刻,所述第二时刻是第二目标加速度数据中出现极值的时刻,其中,所述第一目标加速度数据、所述第二目标加速度数据是所述第一加速度数据、所述第二加速度数据和所述第三加速度数据中的任意两个加速度数据;Obtaining the first number of times that the time between the first moment and the second moment is less than the preset time threshold within the first preset time, wherein the first moment is the moment when an extreme value appears in the first target acceleration data, The second moment is the moment when an extreme value appears in the second target acceleration data, wherein the first target acceleration data and the second target acceleration data are the first acceleration data, the second acceleration data and Any two acceleration data in the third acceleration data;
    确定所述第一目标加速度数据在所述第一预设时间内,出现极值的第二次数;Determining the second number of occurrences of the extreme value of the first target acceleration data within the first preset time;
    根据所述第一次数与所述第二次数的比值确定运动的识别结果。A motion recognition result is determined according to a ratio of the first count to the second count.
  2. 根据权利要求1所述的运动的识别方法,其中,The recognition method of motion according to claim 1, wherein,
    所述根据所述第一次数与所述第二次数的比值确定运动的识别结果,包括:The determination of the recognition result of the movement according to the ratio of the first number to the second number includes:
    在所述第一次数与所述第二次数的比值大于预设阈值的情况下,确定识别到运动;When the ratio of the first count to the second count is greater than a preset threshold, it is determined that motion is recognized;
    在所述第一次数与所述第二次数的比值小于或等于预设阈值的情况下,确定未识别到运动。In a case where the ratio of the first number to the second number is less than or equal to a preset threshold, it is determined that no motion is recognized.
  3. 根据权利要求1或2所述的运动的识别方法,其中,获取第一预设时间内,第一目标加速度数据中出现极值的第一时刻至第二目标加速度数据中出现极值的第二时刻的时间长度小于预设时间长度的第一次数之前,还包括:The motion recognition method according to claim 1 or 2, wherein, within the first preset time period, the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data Before the time length of the moment is less than the first number of the preset time length, it also includes:
    获取第二预设时间内所述第一加速度数据的第一平均值、所述第二加速度数据的第二平均值、所述第三加速度数据的第三平均值,其中,所述第二预设时间小于所述第一预设时间;Obtain the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within a second preset time, wherein the second preset set the time to be less than the first preset time;
    在所述第一平均值处于第一预设平均值区间内、所述第二平均值处于第二预设平均值区间内、且所述第三平均值处于第三预设平均值区间内的 情况下,获取第一预设时间内,第一目标加速度数据中出现极值的第一时刻至第二目标加速度数据中出现极值的第二时刻的时间长度小于预设时间长度的第一次数。When the first average value is within the first preset average interval, the second average value is within the second preset average interval, and the third average value is within the third preset average interval In this case, within the first preset time period, the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data is less than the first time when the preset time length is obtained number.
  4. 根据权利要求3所述的运动的识别方法,其中,还包括:The recognition method of motion according to claim 3, further comprising:
    获取第三预设时间内所述第一加速度数据的第四平均值和第一方差值、第三预设时间内所述第二加速度数据的第五平均值和第二方差值、第三预设时间内所述第三加速度数据的第六平均值和第三方差值;Acquiring the fourth average value and first variance value of the first acceleration data within the third preset time, the fifth average value and the second variance value of the second acceleration data within the third preset time period, the first The sixth average value and the third-party difference of the third acceleration data within three preset times;
    在所述第四平均值的波动值处于第一预设波动值区间内且所述第一方差值处于第一预设方差范围内;The fluctuation value of the fourth average value is within the first preset fluctuation value interval and the first variance value is within the first preset variance range;
    所述第五平均值的波动值处于第二预设波动值区间内、所述第二方差值处于第二预设方差范围内;和/或The fluctuation value of the fifth average value is within a second preset fluctuation value interval, and the second variance value is within a second preset variance range; and/or
    所述第六平均值的波动值处于第三预设波动值区间内、所述第三方差值处于第三预设方差范围内的情况下,获取第二预设时间内所述第一加速度数据的第一平均值、所述第二加速度数据的第二平均值、所述第三加速度数据的第三平均值,When the fluctuation value of the sixth average value is within the third preset fluctuation value range and the third-party difference is within the third preset variance range, the first acceleration data is acquired within a second preset time The first average value of the second acceleration data, the second average value of the second acceleration data, the third average value of the third acceleration data,
    其中,所述第三预设时间小于所述第二预设时间。Wherein, the third preset time is shorter than the second preset time.
  5. 一种运动的识别装置,包括:A motion recognition device, comprising:
    获取模块,用于获取可穿戴设备的加速度信息,其中,所述加速度信息包括在第一方向上的第一加速度数据、第二方向上的第二加速度数据和第三方向上的第三加速度数据,所述第一方向、所述第二方向和所述第三方向两两垂直;An acquisition module, configured to acquire acceleration information of the wearable device, wherein the acceleration information includes first acceleration data in a first direction, second acceleration data in a second direction, and third acceleration data in a third direction, The first direction, the second direction and the third direction are perpendicular to each other;
    统计模块,用于获取第一预设时间内,第一时刻与第二时刻之间的时间小于预设时间阈值的第一次数,其中,所述第一时刻是第一目标加速度数据中出现极值的时刻,所述第二时刻是第二目标加速度数据中出现极值的时刻,其中,所述第一目标加速度数据、所述第二目标加速度数据是所述第一加速度数据、所述第二加速度数据和所述第三加速度数据中的任意两个加速度数据;A statistics module, configured to obtain the first number of times that the time between the first moment and the second moment is less than the preset time threshold within the first preset time, wherein the first moment is the first time that occurs in the first target acceleration data The moment of the extreme value, the second moment is the moment when the extreme value appears in the second target acceleration data, wherein the first target acceleration data and the second target acceleration data are the first acceleration data, the Any two acceleration data in the second acceleration data and the third acceleration data;
    确定模块,用于确定所述第一目标加速度数据在所述第一预设时间内,出现极值的第二次数;A determining module, configured to determine a second number of extreme values of the first target acceleration data within the first preset time;
    识别模块,用于根据所述第一次数与所述第二次数的比值确定运动的识别结果。A recognition module, configured to determine a movement recognition result according to the ratio of the first count to the second count.
  6. 根据权利要求5所述的运动的识别装置,其中,所述识别模块具体用于:The motion recognition device according to claim 5, wherein the recognition module is specifically used for:
    在所述第一次数与所述第二次数的比值大于预设阈值的情况下,确定识别到运动;When the ratio of the first count to the second count is greater than a preset threshold, it is determined that motion is recognized;
    在所述第一次数与所述第二次数的比值小于或等于预设阈值的情况下,确定未识别到运动。In a case where the ratio of the first number to the second number is less than or equal to a preset threshold, it is determined that no motion is recognized.
  7. 根据权利要求5或6所述的运动的识别装置,其中,识别模块具体用于:The motion recognition device according to claim 5 or 6, wherein the recognition module is specifically used for:
    获取第二预设时间内所述第一加速度数据的第一平均值、所述第二加速度数据的第二平均值、所述第三加速度数据的第三平均值,其中,所述第二预设时间小于所述第一预设时间;Obtain the first average value of the first acceleration data, the second average value of the second acceleration data, and the third average value of the third acceleration data within a second preset time, wherein the second preset set the time to be less than the first preset time;
    在所述第一平均值处于第一预设平均值区间内、所述第二平均值处于第二预设平均值区间内、且所述第三平均值处于第三预设平均值区间内的情况下,获取第一预设时间内,第一目标加速度数据中出现极值的第一时刻至第二目标加速度数据中出现极值的第二时刻的时间长度小于预设时间长度的第一次数。When the first average value is within the first preset average interval, the second average value is within the second preset average interval, and the third average value is within the third preset average interval In this case, within the first preset time period, the time length from the first moment when the extreme value appears in the first target acceleration data to the second moment when the extreme value appears in the second target acceleration data is less than the first time when the preset time length is obtained number.
  8. 根据权利要求7所述的运动的识别装置,其中,识别模块具体还用于:The motion recognition device according to claim 7, wherein the recognition module is further used for:
    获取第三预设时间内所述第一加速度数据的第四平均值和第一方差值、第三预设时间内所述第二加速度数据的第五平均值和第二方差值、第三预设时间内所述第三加速度数据的第六平均值和第三方差值;Acquiring the fourth average value and first variance value of the first acceleration data within the third preset time, the fifth average value and the second variance value of the second acceleration data within the third preset time period, the first The sixth average value and the third-party difference of the third acceleration data within three preset times;
    在所述第四平均值的波动值处于第一预设波动值区间内且所述第一方差值处于第一预设方差范围内;The fluctuation value of the fourth average value is within the first preset fluctuation value interval and the first variance value is within the first preset variance range;
    所述第五平均值的波动值处于第二预设波动值区间内、所述第二方差值处于第二预设方差范围内;和/或The fluctuation value of the fifth average value is within a second preset fluctuation value interval, and the second variance value is within a second preset variance range; and/or
    所述第六平均值的波动值处于第三预设波动值区间内、所述第三方差值处于第三预设方差范围内的情况下,获取第二预设时间内所述第一加速 度数据的第一平均值、所述第二加速度数据的第二平均值、所述第三加速度数据的第三平均值,When the fluctuation value of the sixth average value is within the third preset fluctuation value range and the third-party difference is within the third preset variance range, the first acceleration data is acquired within a second preset time The first average value of the second acceleration data, the second average value of the second acceleration data, the third average value of the third acceleration data,
    其中,所述第三预设时间小于所述第二预设时间。Wherein, the third preset time is shorter than the second preset time.
  9. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至4中任一项所述的运动的识别方法的步骤。An electronic device, comprising a processor and a memory, the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, any one of claims 1 to 4 is realized The steps of the method for recognizing motion described in the item.
  10. 一种电子设备,所述电子设备被配置成用于执行如权利要求1至4任一项所述的运动的识别方法。An electronic device configured to execute the motion recognition method according to any one of claims 1 to 4.
  11. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至4中任一项所述的运动的识别方法的步骤。A readable storage medium, storing programs or instructions on the readable storage medium, and implementing the steps of the motion recognition method according to any one of claims 1 to 4 when the programs or instructions are executed by a processor.
  12. 一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至4中任一项所述的运动的识别方法。A computer program product, the computer program product is executed by at least one processor to implement the motion recognition method according to any one of claims 1 to 4.
  13. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至4中任一项所述的运动的识别方法。A kind of chip, described chip comprises processor and communication interface, and described communication interface is coupled with described processor, and described processor is used for running program or instruction, realizes the movement as described in any one in claim 1 to 4 identification method.
PCT/CN2023/071548 2022-01-17 2023-01-10 Motion identification method, apparatus, electronic device, and readable storage medium WO2023134663A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210047833.8 2022-01-17
CN202210047833.8A CN114385012B (en) 2022-01-17 2022-01-17 Motion recognition method, motion recognition device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
WO2023134663A1 true WO2023134663A1 (en) 2023-07-20

Family

ID=81200944

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/071548 WO2023134663A1 (en) 2022-01-17 2023-01-10 Motion identification method, apparatus, electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN114385012B (en)
WO (1) WO2023134663A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114385012B (en) * 2022-01-17 2023-06-30 维沃移动通信有限公司 Motion recognition method, motion recognition device, electronic equipment and readable storage medium
CN115112124A (en) * 2022-06-29 2022-09-27 维沃移动通信(深圳)有限公司 Motion state determination method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162247A (en) * 2019-04-18 2019-08-23 努比亚技术有限公司 A kind of screen control method, wearable device and computer readable storage medium
US20200193199A1 (en) * 2017-07-18 2020-06-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Unlocking control method and related products
CN113008231A (en) * 2021-04-30 2021-06-22 东莞市小精灵教育软件有限公司 Motion state identification method and system, wearable device and storage medium
CN113031840A (en) * 2021-03-01 2021-06-25 维沃软件技术有限公司 False triggering prevention method and device for wrist-worn device, electronic device and storage medium
CN114385012A (en) * 2022-01-17 2022-04-22 维沃移动通信有限公司 Motion recognition method and device, electronic equipment and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015176247A (en) * 2014-03-13 2015-10-05 株式会社Nttドコモ display device and program
RU2593983C1 (en) * 2015-03-13 2016-08-10 Общество С Ограниченной Ответственностью "Хилби" Method of determining type of motion activity conditions and device therefor
CN109567814B (en) * 2018-10-22 2022-06-28 深圳大学 Classification recognition method, computing device, system and storage medium for tooth brushing action
JP7212531B2 (en) * 2019-01-28 2023-01-25 株式会社東海理化電機製作所 Motion discrimination device, computer program, and storage medium
CN112818801B (en) * 2021-01-26 2024-04-26 每步科技(上海)有限公司 Motion counting method, recognition device, recognition system and storage medium
CN113545753B (en) * 2021-07-21 2024-04-05 芯原微电子(成都)有限公司 Waveform detection method and device, wearable equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200193199A1 (en) * 2017-07-18 2020-06-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Unlocking control method and related products
CN110162247A (en) * 2019-04-18 2019-08-23 努比亚技术有限公司 A kind of screen control method, wearable device and computer readable storage medium
CN113031840A (en) * 2021-03-01 2021-06-25 维沃软件技术有限公司 False triggering prevention method and device for wrist-worn device, electronic device and storage medium
CN113008231A (en) * 2021-04-30 2021-06-22 东莞市小精灵教育软件有限公司 Motion state identification method and system, wearable device and storage medium
CN114385012A (en) * 2022-01-17 2022-04-22 维沃移动通信有限公司 Motion recognition method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN114385012A (en) 2022-04-22
CN114385012B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
WO2023134663A1 (en) Motion identification method, apparatus, electronic device, and readable storage medium
CN109167894B (en) Camera control method and device, mobile terminal and storage medium
US9804679B2 (en) Touchless user interface navigation using gestures
CN106446797B (en) Image clustering method and device
CN110045819A (en) A kind of gesture processing method and equipment
CN110674801B (en) Method and device for identifying user motion mode based on accelerometer and electronic equipment
CN107004073A (en) The method and electronic equipment of a kind of face verification
CN112364799A (en) Gesture recognition method and device
WO2023185970A1 (en) Exercise state recognition method and apparatus, and electronic device and storage medium
CN112214112A (en) Parameter adjusting method and device
CN110134237A (en) Interface control method and relevant device
CN108369447A (en) The method and apparatus for controlling wearable electronic operating status
CN109816759A (en) A kind of expression generation method and device
CN114077465A (en) UI (user interface) rendering method and device, electronic equipment and storage medium
CN110660032A (en) Object shielding method, object shielding device and electronic equipment
CN111167105B (en) Shooting detection method, device, equipment, system and storage medium
CN113157090A (en) Bright screen control method and device of electronic equipment and electronic equipment
CN112902983A (en) Step counting method and device and electronic equipment
CN107229384A (en) The display methods and device of message
CN111770279A (en) Shooting method and electronic equipment
CN114190661B (en) Detection method for mouse use duration and bracelet
CN116502203B (en) User identity recognition method and electronic equipment
CN117008730A (en) Control method, electronic device, intelligent finger ring, control system and storage medium
CN115840526A (en) Data processing method, device, electronic equipment and medium
CN115268645A (en) Wrist-lifting detection method, device and equipment and readable storage medium

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: 23740005

Country of ref document: EP

Kind code of ref document: A1