CN110608754A - Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium - Google Patents

Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium Download PDF

Info

Publication number
CN110608754A
CN110608754A CN201910814522.8A CN201910814522A CN110608754A CN 110608754 A CN110608754 A CN 110608754A CN 201910814522 A CN201910814522 A CN 201910814522A CN 110608754 A CN110608754 A CN 110608754A
Authority
CN
China
Prior art keywords
target
data
acceleration data
preset threshold
oral cavity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910814522.8A
Other languages
Chinese (zh)
Other versions
CN110608754B (en
Inventor
刘博�
肖建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Top Cloud Information Technology Co Ltd
Original Assignee
Shenzhen Top Cloud Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Top Cloud Information Technology Co Ltd filed Critical Shenzhen Top Cloud Information Technology Co Ltd
Priority to CN201910814522.8A priority Critical patent/CN110608754B/en
Publication of CN110608754A publication Critical patent/CN110608754A/en
Application granted granted Critical
Publication of CN110608754B publication Critical patent/CN110608754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61CDENTISTRY; APPARATUS OR METHODS FOR ORAL OR DENTAL HYGIENE
    • A61C17/00Devices for cleaning, polishing, rinsing or drying teeth, teeth cavities or prostheses; Saliva removers; Dental appliances for receiving spittle
    • A61C17/16Power-driven cleaning or polishing devices
    • A61C17/22Power-driven cleaning or polishing devices with brushes, cushions, cups, or the like
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61CDENTISTRY; APPARATUS OR METHODS FOR ORAL OR DENTAL HYGIENE
    • A61C19/00Dental auxiliary appliances
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C23/00Combined instruments indicating more than one navigational value, e.g. for aircraft; Combined measuring devices for measuring two or more variables of movement, e.g. distance, speed or acceleration

Landscapes

  • Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • General Health & Medical Sciences (AREA)
  • Remote Sensing (AREA)
  • Veterinary Medicine (AREA)
  • Engineering & Computer Science (AREA)
  • Epidemiology (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Dentistry (AREA)
  • Animal Behavior & Ethology (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Brushes (AREA)

Abstract

The embodiment of the invention discloses an oral cavity area identification method, which comprises the following steps: acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral cavity area; carrying out smooth filtering to obtain target acceleration data, target angular velocity data and target magnetic field data; carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle; acquiring a first preset threshold range and a second preset threshold range corresponding to the target roll angle; the oral cavity subarea corresponding to the acceleration data is determined according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, and the oral cavity area identification method improves the efficiency and accuracy of oral cavity area identification. Furthermore, an oral area identification apparatus, a computer device and a storage medium are proposed.

Description

Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent health, in particular to a method and a device for identifying an oral area, computer equipment and a storage medium.
Background
With the rapid development of the society, people's life is more and more intelligent, and people pay more and more attention to oral health, for this reason, therefore electric toothbrush receives people's favor, and many people can select electric toothbrush to brush teeth, however, most electric toothbrush is only used for brushing teeth in the electric toothbrush trade at present, and not too much information show for the user, for example, in the process of brushing teeth of one time, the user is probably that certain region brushes teeth for too long time but can't obtain data feedback. Therefore, it is unclear to the user whether the tooth brushing manner is correct, and each region of the oral cavity keeps the original good or bad tooth brushing habit in the tooth brushing process, which affects the tooth brushing experience and is not beneficial to develop the good tooth brushing habit, so that a method for identifying the tooth brushing condition in the oral cavity region is urgently needed.
Disclosure of Invention
In view of the above, it is necessary to provide an oral area recognition method, an oral area recognition apparatus, a computer device, and a storage medium, which can accurately recognize a vehicle license plate with a large vehicle license plate angle and distortion.
An oral area identification method, the method comprising:
acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral cavity area, wherein the acceleration data, the angular velocity data and the magnetic field data are acquired through a three-axis accelerometer, a gyroscope and a geomagnetic meter which are arranged on the electric toothbrush respectively, and the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data;
performing smoothing filtering on the acceleration data, the angular velocity data and the magnetic field data respectively to obtain target acceleration data, target angular velocity data and target magnetic field data, wherein the target acceleration data comprises first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data;
carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle;
acquiring a first preset threshold range and a second preset threshold range corresponding to the target roll angle, and acquiring a preset first threshold corresponding to first target data;
determining an oral cavity subregion corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, wherein the oral cavity subregion comprises: 12 oral cavity subregions, 12 oral cavity subregions are: a top left inner region, a top left outer region, a bottom left inner region, a bottom left outer region, a top middle outer region, a bottom middle inner region, a bottom middle outer region, a top middle inner region, a top right outer region, a bottom right inner region, and a bottom right outer region.
An oral area identification device, the device comprising:
the data acquisition module is used for acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral cavity area, wherein the acceleration data, the angular velocity data and the magnetic field data are acquired through a three-axis accelerometer, a gyroscope and a geomagnetic meter which are arranged on the electric toothbrush respectively, and the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data;
the filtering processing module is used for respectively carrying out smooth filtering on the acceleration data, the angular velocity data and the magnetic field data to obtain target acceleration data, target angular velocity data and target magnetic field data, wherein the target acceleration data comprises first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data;
the fusion processing module is used for carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle;
the threshold value obtaining module is used for obtaining a first preset threshold value range and a second preset threshold value range corresponding to the target rolling angle and obtaining a preset first threshold value corresponding to first target data;
the area identification module is used for determining an oral cavity subarea corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, and the oral cavity subarea comprises: 12 oral cavity subregions, 12 oral cavity subregions are: a top left inner region, a top left outer region, a bottom left inner region, a bottom left outer region, a top middle outer region, a bottom middle inner region, a bottom middle outer region, a top middle inner region, a top right outer region, a bottom right inner region, and a bottom right outer region.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral cavity area, wherein the acceleration data, the angular velocity data and the magnetic field data are acquired through a three-axis accelerometer, a gyroscope and a geomagnetic meter which are arranged on the electric toothbrush respectively, and the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data;
performing smoothing filtering on the acceleration data, the angular velocity data and the magnetic field data respectively to obtain target acceleration data, target angular velocity data and target magnetic field data, wherein the target acceleration data comprises first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data;
carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle;
acquiring a first preset threshold range and a second preset threshold range corresponding to the target roll angle, and acquiring a preset first threshold corresponding to first target data;
determining an oral cavity subregion corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, wherein the oral cavity subregion comprises: 12 oral cavity subregions, 12 oral cavity subregions are: a top left inner region, a top left outer region, a bottom left inner region, a bottom left outer region, a top middle outer region, a bottom middle inner region, a bottom middle outer region, a top middle inner region, a top right outer region, a bottom right inner region, and a bottom right outer region.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral cavity area, wherein the acceleration data, the angular velocity data and the magnetic field data are acquired through a three-axis accelerometer, a gyroscope and a geomagnetic meter which are arranged on the electric toothbrush respectively, and the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data;
performing smoothing filtering on the acceleration data, the angular velocity data and the magnetic field data respectively to obtain target acceleration data, target angular velocity data and target magnetic field data, wherein the target acceleration data comprises first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data;
carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle;
acquiring a first preset threshold range and a second preset threshold range corresponding to the target roll angle, and acquiring a preset first threshold corresponding to first target data;
determining an oral cavity subregion corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, wherein the oral cavity subregion comprises: 12 oral cavity subregions, 12 oral cavity subregions are: a top left inner region, a top left outer region, a bottom left inner region, a bottom left outer region, a top middle outer region, a bottom middle inner region, a bottom middle outer region, a top middle inner region, a top right outer region, a bottom right inner region, and a bottom right outer region.
Firstly, acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral area, wherein the acceleration data, the angular velocity data and the magnetic field data are acquired by a triaxial accelerometer, a gyroscope and a geomagnetic meter which are arranged on the electric toothbrush respectively, and the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data; then, smoothing filtering is carried out on the acceleration data, the angular velocity data and the magnetic field data respectively to obtain target acceleration data, target angular velocity data and target magnetic field data, wherein the target acceleration data comprises first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data; then, carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle; next, acquiring a first preset threshold range and a second preset threshold range corresponding to the target roll angle, and acquiring a preset first threshold corresponding to first target data; finally, determining an oral cavity subarea corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, wherein the oral cavity subarea comprises: 12 oral cavity subregions, 12 oral cavity subregions are: the oral cavity area identification method has the advantages that the oral cavity sub-areas of the current toothbrush work are identified in a relatively subdivided manner, the calculated amount is reduced, and the relative positions of the oral cavity areas are considered, so that the efficiency and the accuracy of the oral cavity area identification are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow chart of a method of oral area identification in one embodiment;
FIG. 2 is a flow diagram of a method for identifying oral cavity sub-regions in one embodiment;
FIG. 3 is a flow diagram of another method for identifying oral cavity sub-regions in one embodiment;
FIG. 4 is a flow diagram of yet another method for identifying oral cavity sub-regions in one embodiment;
FIG. 5 is a flow diagram that illustrates a method for gesture fusion processing in one embodiment;
FIG. 6 is a flowchart of a toothbrush habit detection method in one embodiment;
FIG. 7 is a flow chart of another method of toothbrush habit detection in one embodiment;
fig. 8 is a block diagram showing the structure of an oral area recognition apparatus according to an embodiment;
FIG. 9 is a block diagram of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, in an embodiment, an oral area identification method is provided, where the oral area identification method is applicable to both a terminal and a server, and specifically includes the following steps:
102, acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral cavity area, wherein the acceleration data, the angular velocity data and the magnetic field data are acquired through a three-axis accelerometer, a gyroscope and a geomagnetic meter arranged on the electric toothbrush respectively, and the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data.
The acceleration data refers to gravity acceleration data acquired through a three-axis accelerometer and is used as basic data for calculating direction and speed changes, the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data, namely components in three directions of gravity acceleration, the directions of the first direction acceleration data, the second direction acceleration data and the third direction acceleration data are mutually perpendicular in pairs, and exemplarily, the first direction acceleration data, the second direction acceleration data and the third direction acceleration data can be X-axis acceleration data, Y-cycle acceleration data or Z-axis acceleration data. The angular velocity data is an index for measuring the rotation speed of the object, the angular velocity data includes first direction angular velocity data, second direction angular velocity data and third direction angular velocity data, and the directions of the first direction angular velocity data, the second direction angular velocity data and the third direction angular velocity data are respectively corresponding to the first direction acceleration data, the second direction acceleration data and the third direction acceleration data. The magnetic field data refers to index data of a magnetic field for measuring the movement of the toothbrush surface, and specifically, a resultant magnetic field obtained by measuring the magnetic fields in three orthogonal directions by using hall sensors in three directions in a magnetometer space arranged in the electric toothbrush is the magnetic field data.
The acceleration data and angular velocity data in this embodiment are used to determine the oral area in which the electric toothbrush was located when the data was collected. It will be appreciated that acceleration data, angular velocity data and magnetic field data for three directions are acquired for subsequent further processing to determine attitude and direction information of the electric toothbrush during brushing.
And 104, performing smoothing filtering on the acceleration data, the angular velocity data and the magnetic field data respectively to obtain target acceleration data, target angular velocity data and target magnetic field data, wherein the target acceleration data comprises first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data.
The smoothing filter algorithm is a spatial filter algorithm for denoising data to make the data smoother, and includes but is not limited to one of a gaussian filter algorithm, a median filter algorithm, or a mean filter algorithm. The first target data and the second target data are respectively smooth characteristic data obtained by intercepting first direction acceleration data and second direction acceleration data after smoothing filtering, the target angular velocity data refers to smooth angular velocity data obtained by smoothing filtering of the angular velocity data, and the target magnetic field data refers to magnetic field data obtained by smoothing filtering of the magnetic field data. It can be understood that, since the vibration of the motor generates an output value when the electric toothbrush is in a static state, the output value of the motor in the electric toothbrush can be filtered by smoothing the first direction acceleration data and the second direction acceleration data through the smoothing filter algorithm, so that the target acceleration data, the target angular velocity data and the target magnetic field data are smoother, and the accuracy of identification can be improved based on the target acceleration data, the target angular velocity data and the target magnetic field data.
And 106, carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle.
The attitude fusion processing refers to a processing procedure of combining, correlating and combining data and information of multiple sensor information sources to obtain more accurate position estimation. The data and information of the multi-sensor information source in this embodiment are target acceleration data and target angular velocity data. The target rolling angle is an index capable of reflecting the angle of the toothbrush surface rotating around the electric toothbrush axis, and the target course angle is an index of the included angle between the actual direction of the toothbrush surface movement and the preset direction.
Specifically, the method of the attitude fusion process includes, but is not limited to, quaternion, first-order complementation algorithm, and kalman filter algorithm. The specific process of the attitude fusion processing is as follows: and carrying out normalization processing on the target acceleration data and the target angular velocity data, and filtering the normalized target acceleration data and the normalized target angular velocity data to realize attitude fusion processing so as to obtain a target roll angle and a target course angle, wherein the filtering method can be Kalman filtering or weighted average filtering. Preferably, in the embodiment, the attitude fusion processing is performed by adopting a weighted average filtering mode, so that complex operation is omitted, the progress of data fusion processing is accelerated, meanwhile, accurate identification can be performed subsequently according to two indexes, namely the target roll angle and the target course angle, and the identification efficiency is improved.
And 108, acquiring a first preset threshold range and a second preset threshold range corresponding to the target roll angle, and acquiring a preset first threshold corresponding to first target data.
The first preset threshold range is a preset critical range used for determining the target rolling angle of the oral cavity area, and the second preset threshold range is a preset critical range used for determining the target rolling angle of the oral cavity area. For example, the first preset threshold may be a range greater than 20 ° and less than 80 °, and the second preset threshold may be a range greater than 80 ° and less than 360 °. The first preset threshold refers to a threshold value preset as first target data for determining the oral cavity area, and may be, for example, 2.3m/s2, 2.6m/s2, 3.0m/s2, or the like. The selection may be specifically selected according to the actual application scenario, and is not specifically limited herein.
Step 110, determining an oral cavity subregion corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, wherein the oral cavity subregion comprises: 12 oral cavity subregions, 12 oral cavity subregions are: a top left inner region, a top left outer region, a bottom left inner region, a bottom left outer region, a top middle outer region, a bottom middle inner region, a bottom middle outer region, a top middle inner region, a top right outer region, a bottom right inner region, and a bottom right outer region.
The oral cavity subareas are preset subareas according to the positions of teeth in the oral cavity area, and comprise an upper left inner area, an upper left outer area, a lower left inner area, a lower left outer area, an upper middle outer area, a lower middle outer area, an upper middle area, an upper right inner area, an upper right outer area, a lower right inner area and a lower right outer area. Specifically, the first target data and the second target data are acceleration data after filtering processing, the target rolling angle is a distance between the target acceleration data and the target angular velocity after gesture fusion, dual data of the acceleration and the angular velocity are fused, and the change trend of the rotation angle of the toothbrush surface is reflected, so that the change trend of the direction corresponding to the oral cavity area corresponding to the acceleration data, namely the relative direction of the oral cavity area, can be determined based on the positive and negative of the target rolling angle, meanwhile, the angle change amplitude can be further determined according to the size relation between the target rolling angle and the first preset threshold range and the size relation between the target rolling angle and the second preset threshold range, the actual direction under eight preset oral cavity sub-areas is further accurately determined, and on the basis of determining the actual direction under the oral cavity sub-areas, whether the four oral cavity sub-areas corresponding to the left area and the four sub-areas corresponding to the right area are located in the middle area or not is judged according to the target heading The domain, so that 12 oral cavity subregions can be accurately identified. In the embodiment, the oral cavity sub-region in the current toothbrush work is identified in a relatively subdivided manner only according to the acceleration data, the angular velocity data, the magnetic field data, the first preset threshold range, the second preset threshold range and the first preset threshold, the calculated amount is reduced, and meanwhile, the relative position of the oral cavity region is considered, so that the efficiency and the accuracy of identifying the oral cavity region are improved.
Firstly, acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral area, wherein the acceleration data, the angular velocity data and the magnetic field data are acquired through a triaxial accelerometer, a gyroscope and a geomagnetic meter which are arranged on the electric toothbrush respectively, and the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data; then, smoothing filtering is carried out on the acceleration data, the angular velocity data and the magnetic field data respectively to obtain target acceleration data, target angular velocity data and target magnetic field data, wherein the target acceleration data comprises first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data; then, carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle; next, acquiring a first preset threshold range and a second preset threshold range corresponding to the target roll angle, and acquiring a preset first threshold corresponding to first target data; finally, determining an oral cavity subarea corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, wherein the oral cavity subarea comprises: 12 oral cavity subregions, 12 oral cavity subregions are: the oral cavity area identification method has the advantages that the oral cavity sub-areas of the current toothbrush work are identified in a relatively subdivided manner, the calculated amount is reduced, and the relative positions of the oral cavity areas are considered, so that the efficiency and the accuracy of the oral cavity area identification are improved.
As shown in FIG. 2, in one embodiment, the first direction acceleration data is Y-axis acceleration data.
And determining the left and right areas by using the first direction acceleration as Y-axis acceleration, namely corresponding first target data.
Determining an oral cavity subregion corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, and comprising:
and step 110A, under the condition that the target course angle is larger than 0, the first target data is smaller than 0, and the absolute value of the first target data is larger than the first preset threshold, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the range of the first preset threshold, identifying the oral cavity subregion corresponding to the acceleration data as the upper left outer region.
Specifically, under the condition that the absolute value of the first target data is greater than a first preset threshold, that is, under the condition that the first target data is triggered, the target course angle is greater than 0, that is, the toothbrush head of the electric toothbrush moves in the forward direction, it is excluded that the oral cavity sub-region corresponding to the acceleration data is a middle region (middle upper outer region, middle lower inner region, middle lower outer region, middle upper inner region), the first target data is less than 0, and it is determined that the oral cavity sub-region corresponding to the acceleration data is a left region. And if the target rolling angle is smaller than 0, namely the posture rotation angle of the toothbrush surface is changed from 360 degrees to 0 degrees, and the absolute value of the target rolling angle is within a first preset threshold range, identifying that the oral cavity subregion corresponding to the acceleration data is an upper left outer region.
And step 110B, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper left inner region.
Specifically, in a case that the absolute value of the first target data is greater than a first preset threshold, that is, in a case that the first target data is triggered, the first target data is less than 0, and it is determined that the oral cavity subregion corresponding to the acceleration data is the left region. And if the target rolling angle is smaller than 0, namely the posture rotation angle of the toothbrush surface is changed from 360 degrees to 0 degrees, and the absolute value of the target rolling angle is within a second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as an upper left inner region.
And 110C, if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the first preset threshold range, identifying the oral cavity subarea corresponding to the acceleration data as the lower left outer area.
Specifically, in a case that the absolute value of the first target data is greater than a first preset threshold, that is, in a case that the first target data is triggered, the first target data is less than 0, and it is determined that the oral cavity subregion corresponding to the acceleration data is the left region. And if the target rolling angle is larger than 0, namely the posture rotation angle of the toothbrush surface is changed from 0 degrees to 360 degrees, and the absolute value of the target rolling angle is within a first preset threshold range, identifying that the oral cavity subregion corresponding to the acceleration data is a lower left outer region.
And step 110D, if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower left inner region.
Specifically, in a case that the absolute value of the first target data is greater than a first preset threshold, that is, in a case that the first target data is triggered, the first target data is less than 0, and it is determined that the oral cavity subregion corresponding to the acceleration data is the left region. And if the target rolling angle is larger than 0, namely the posture rotation angle of the toothbrush surface is changed from 0 degrees to 360 degrees, and the absolute value of the target rolling angle is within a second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as a lower left inner region.
And step 110E, under the condition that the first target data is greater than 0 and the absolute value of the first target data is greater than the first preset threshold, if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the range of the first preset threshold, identifying the oral cavity subregion corresponding to the acceleration data as the upper right outer region.
Specifically, when the absolute value of the first target data is greater than a first preset threshold, that is, the first target data is triggered, the first target data is greater than 0, and it is determined that the oral cavity subregion corresponding to the acceleration data is the right subregion. And if the target rolling angle is larger than 0, namely the posture rotation angle of the toothbrush surface is changed from 0 degrees to 360 degrees, and the absolute value of the target rolling angle is within a first preset threshold range, identifying that the oral cavity subregion corresponding to the acceleration data is an upper right outer region.
And step 110F, if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper right inner region.
Specifically, when the absolute value of the first target data is greater than a first preset threshold, that is, the first target data is triggered, the first target data is greater than 0, and it is determined that the oral cavity subregion corresponding to the acceleration data is the right subregion. And if the target rolling angle is larger than 0, namely the posture rotation angle of the toothbrush surface is changed from 0 degrees to 360 degrees, and the absolute value of the target rolling angle is within a second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as an upper right inner region.
And 110G, if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the first preset threshold range, identifying the oral cavity subarea corresponding to the acceleration data as the lower right outer area.
Specifically, when the absolute value of the first target data is greater than a first preset threshold, that is, the first target data is triggered, the first target data is greater than 0, and it is determined that the oral cavity subregion corresponding to the acceleration data is the right subregion. And if the target rolling angle is smaller than 0, namely the posture rotation angle of the toothbrush surface is changed from 360 degrees to 0 degrees, and the absolute value of the target rolling angle is within a first preset threshold range, identifying that the oral cavity subregion corresponding to the acceleration data is a lower right outer region.
And 110H, if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower right inner region.
Specifically, when the absolute value of the first target data is greater than a first preset threshold, that is, the first target data is triggered, the first target data is greater than 0, and it is determined that the oral cavity subregion corresponding to the acceleration data is the right subregion. And if the target rolling angle is smaller than 0, namely the posture rotation angle of the toothbrush surface is changed from 360 degrees to 0 degrees, and the absolute value of the target rolling angle is within a second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as a lower right inner region.
Step 110I, under the condition that the target course angle is smaller than 0, if the first target data is smaller than 0 and the absolute value of the first target data is larger than the first preset threshold, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the first preset threshold range, or if the first target data is larger than 0 and the absolute value of the first target data is larger than the first preset threshold, and if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the first preset threshold range, identifying the oral cavity sub-area corresponding to the acceleration data as the middle-upper and outer areas.
Specifically, under the condition that the target course angle is less than 0, namely the toothbrush head of the electric toothbrush moves in the forward direction, the oral cavity subarea corresponding to the acceleration data is determined to be a middle area (middle upper outer area, middle lower inner area, middle lower outer area, middle upper inner area), if the first target data is less than 0, and the absolute value of the first target data is greater than the first preset threshold, if the target roll angle is less than 0 and the absolute value of the target roll angle is within the first preset threshold range, or, the first target data is greater than 0, and the absolute value of the first target data is greater than a first preset threshold, if the target roll angle is greater than 0, and the absolute value of the target roll angle is within a first preset threshold range, then the oral cavity subarea corresponding to the acceleration data is identified as an upper middle area and a lower middle area, namely under the condition that the target course angle is less than 0, the oral cavity subareas corresponding to the acceleration in the step 110A and the step 110E are both the middle-upper and the middle-lower areas.
And 110J, under the condition that the target course angle is smaller than 0, the first target data is smaller than 0, and the absolute value of the first target data is larger than the first preset threshold, if the target roll angle is smaller than 0, and the absolute value of the target roll angle is within the second preset threshold range, or if the first target data is larger than 0, and the absolute value of the first target data is larger than the first preset threshold, and if the target roll angle is larger than 0, and the absolute value of the target roll angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the middle-upper inner region.
Specifically, under the condition that the target course angle is less than 0, namely the toothbrush head of the electric toothbrush moves in the forward direction, the oral cavity subarea corresponding to the acceleration data is determined to be a middle area (middle upper outer area, middle lower inner area, middle lower outer area, middle upper inner area), the first target data is less than 0, and the absolute value of the first target data is greater than a first preset threshold, if the target roll angle is less than 0 and the absolute value of the target roll angle is within a second preset threshold range, or, the first target data is greater than 0, and the absolute value of the first target data is greater than a first preset threshold, if the target roll angle is greater than 0, and the absolute value of the target roll angle is within a second preset threshold range, then the mouth subregion corresponding to the acceleration data is identified as the middle-upper and middle-lower regions, i.e. in case the target heading angle is less than 0, the oral cavity subareas corresponding to the speeds in step 110B and step 110F are both middle-upper and inner areas.
And step 110K, under the condition that the target course angle is smaller than 0, the first target data are smaller than 0, and the absolute value of the first target data are larger than the first preset threshold, if the target rolling angle is larger than 0, and the absolute value of the target rolling angle is within the first preset threshold range, or if the first target data are larger than 0, and the absolute value of the first target data are larger than the first preset threshold, and if the target rolling angle is smaller than 0, and the absolute value of the target rolling angle is within the first preset threshold range, identifying the oral cavity subarea corresponding to the acceleration data as the middle-lower-outer area.
Specifically, under the condition that the target course angle is less than 0, namely the toothbrush head of the electric toothbrush moves in the forward direction, the oral cavity subarea corresponding to the acceleration data is determined to be a middle area (middle upper outer area, middle lower inner area, middle lower outer area, middle upper inner area), the first target data is less than 0, and the absolute value of the first target data is greater than a first preset threshold, if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the first preset threshold range, or, the first target data is greater than 0, and the absolute value of the first target data is greater than the first preset threshold, if the target roll angle is less than 0, and the absolute value of the target roll angle is within the first preset threshold range, then the oral cavity subarea corresponding to the acceleration data is identified as a middle, lower and outer area, namely under the condition that the target course angle is less than 0, the oral cavity subareas corresponding to the acceleration in the step 110C and the step 110G are middle, lower and outer areas.
And step 110L, under the condition that the target course angle is smaller than 0, if the first target data is smaller than 0 and the absolute value of the first target data is larger than the first preset threshold, if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the first preset threshold range, or if the first target data is larger than 0 and the absolute value of the first target data is larger than the first preset threshold, and if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the middle-lower-inner region.
Specifically, under the condition that the target course angle is less than 0, namely the toothbrush head of the electric toothbrush moves in the forward direction, the oral cavity subarea corresponding to the acceleration data is determined to be a middle area (middle upper outer area, middle lower inner area, middle lower outer area, middle upper inner area), if the first target data is less than 0, and the absolute value of the first target data is greater than a first preset threshold, if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the first preset threshold range, or, the first target data is greater than 0, and the absolute value of the first target data is greater than a first preset threshold, if the target roll angle is less than 0, and the absolute value of the target roll angle is within a second preset threshold range, then the oral cavity subarea corresponding to the acceleration data is identified as a middle, lower and outer area, namely under the condition that the target course angle is less than 0, the oral cavity subareas corresponding to the acceleration in the step 110C and the step 110H are middle, lower and inner subareas.
It can be understood that, in the process of brushing teeth by using the electric toothbrush, the toothbrush surface rotates along with the toothbrush shaft of the electric toothbrush, the inner and outer regions and the upper and lower regions of the oral cavity region corresponding to the acceleration data can be determined simultaneously according to the change of the rotation angle, that is, the magnitude of the target rolling angle, and then the relationship between the absolute value of the first target data and the first preset threshold value and the positive and negative of the target heading angle are combined, so that the oral cavity sub-region corresponding to the acceleration data is uniquely determined from 3 position dimensions (up and down, left, middle and right, and inside and outside), the fine distinguishing and identification of the oral cavity region are realized, and the identification accuracy is ensured.
The oral cavity subareas corresponding to the acceleration data are identified, so that the oral cavity subareas are finely distinguished and identified, and the identification accuracy is ensured.
As shown in FIG. 3, in one embodiment, the first direction acceleration data is X-axis acceleration data and the second direction acceleration is Z-axis acceleration.
The determining the oral cavity subarea corresponding to the acceleration data according to the target rolling angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold comprises:
step 110A', acquiring Y-axis initial acceleration data at the initial brushing time.
The Y-axis initial acceleration data refers to Y-axis acceleration data when the tooth brushing is started, and particularly, the Y-axis acceleration data can be acquired through the three-axis accelerometer in real time when a tooth brushing instruction is received. By acquiring Y-axis initial acceleration data at the brushing starting moment, the corresponding relative position relation of the target rolling angles can be determined, so that the oral cavity subregion can be uniquely determined on the basis of the subsequent relative position relation.
And 110B', under the condition that the Y-axis initial acceleration data is greater than 0, if the target roll angle is less than 0 and the absolute value of the target roll angle is within the first preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as an upper right outer region.
Specifically, when the initial acceleration data of the Y axis is greater than 0, it is determined that the oral cavity sub-area corresponding to the acceleration data is the right area, and if the target roll angle is less than 0, that is, the posture rotation angle of the toothbrush surface changes from 360 ° to 0 °, and the absolute value of the target roll angle is within a first preset threshold range, it is identified that the oral cavity sub-area corresponding to the acceleration data is the upper right outer area.
And 110C', if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper right inner region.
Specifically, when the initial acceleration data of the Y axis is greater than 0, it is determined that the oral cavity sub-area corresponding to the acceleration data is the right area, and if the target roll angle is less than 0, that is, the posture rotation angle of the toothbrush surface changes from 360 ° to 0 °, and the absolute value of the target roll angle is within the second preset threshold range, the oral cavity sub-area corresponding to the acceleration data is identified as the upper right area.
And 110D', if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the first preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as a lower right outer region.
Specifically, when the initial acceleration data of the Y axis is greater than 0, it is determined that the oral cavity sub-area corresponding to the acceleration data is the right area, and if the target roll angle is greater than 0, that is, the posture rotation angle of the toothbrush surface changes from 0 ° to 360 °, and the absolute value of the target roll angle is within a first preset threshold range, it is identified that the oral cavity sub-area corresponding to the acceleration data is the lower right outer area.
And 110E', if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower right inner region.
Specifically, when the Y-axis initial acceleration data is greater than 0, it is determined that the oral cavity sub-area corresponding to the acceleration data is the right area, and if the target roll angle is greater than 0, that is, the posture rotation angle of the toothbrush face changes from 0 ° to 360 °, and the absolute value of the target roll angle is within the second preset threshold range, it is identified that the oral cavity sub-area corresponding to the acceleration data is the lower right area.
And 110F', under the condition that the Y-axis initial acceleration data is smaller than 0, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the first preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper left outer region.
Specifically, when the initial acceleration data of the Y axis is less than 0, it is determined that the oral cavity sub-region corresponding to the acceleration data is a left region, and if the target roll angle is greater than 0, that is, the posture rotation angle of the toothbrush face changes from 0 ° to 360 °, and the absolute value of the target roll angle is within a first preset threshold range, it is identified that the oral cavity sub-region corresponding to the acceleration data is an upper left outer region.
And 110G', if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper left inner region.
Specifically, when the Y-axis initial acceleration data is less than 0, it is determined that the oral cavity sub-region corresponding to the acceleration data is a left region, and if the target roll angle is less than 0, that is, the posture rotation angle of the toothbrush face changes from 360 ° to 0 °, and the absolute value of the target roll angle is within a second preset threshold range, it is identified that the oral cavity sub-region corresponding to the acceleration data is an upper left region.
And 110H', if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the first preset threshold range, identifying the oral cavity subarea corresponding to the acceleration data as the lower left outer area.
Specifically, when the initial acceleration data of the Y axis is less than 0, it is determined that the oral cavity sub-region corresponding to the acceleration data is a left region, and if the target roll angle is less than 0, that is, the posture rotation angle of the toothbrush face changes from 360 ° to 0 °, and the absolute value of the target roll angle is within a first preset threshold range, it is identified that the oral cavity sub-region corresponding to the acceleration data is a lower left outer region.
And 110I', if the target rolling angle is greater than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower left inner region.
Specifically, when the Y-axis initial acceleration data is less than 0, it is determined that the oral cavity sub-region corresponding to the acceleration data is a left region, and if the target roll angle is greater than 0, that is, the posture rotation angle of the toothbrush face changes from 0 ° to 360 °, and the absolute value of the target roll angle is within a second preset threshold range, it is identified that the oral cavity sub-region corresponding to the acceleration data is a lower-left region.
And 110J', under the condition that the target course angle is smaller than 0, the Y-axis initial acceleration data is larger than 0, the target rolling angle is smaller than 0, and the absolute value of the target rolling angle is within the first preset threshold range, or the Y-axis initial acceleration data is smaller than 0, if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the first preset threshold range, the oral cavity subregion corresponding to the acceleration data is identified as the middle-upper and outer regions.
Specifically, when the target heading angle is smaller than 0, that is, when the toothbrush head of the electric toothbrush moves in the forward direction, it is determined that the oral cavity sub-region corresponding to the acceleration data is the middle region (middle upper outer region, middle lower inner region, middle lower outer region, middle upper inner region), and when the target heading angle is smaller than 0, the Y-axis initial acceleration data is larger than 0, the target roll angle is smaller than 0, and an absolute value of the target roll angle is within a first preset threshold range, or the Y-axis initial acceleration data is smaller than 0, and if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the first preset threshold range, the oral cavity sub-region corresponding to the acceleration data is identified as the middle upper outer region, that is, when the target heading angle is smaller than 0, the oral cavity sub-regions corresponding to the acceleration in step 110B 'and step 110F' are both the middle upper outer region.
And 110K', under the condition that the target course angle is smaller than 0, the Y-axis initial acceleration data is larger than 0, the target rolling angle is smaller than 0, and the absolute value of the target rolling angle is within the second preset threshold range, or the Y-axis initial acceleration data is smaller than 0, if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the second preset threshold range, the oral cavity subregion corresponding to the acceleration data is identified as the middle-upper inner region.
Specifically, under the condition that the target heading angle is smaller than 0, that is, the toothbrush head of the electric toothbrush moves in the forward direction, it is determined that the oral cavity sub-region corresponding to the acceleration data is the middle region (middle upper outer region, middle lower inner region, middle lower outer region, middle upper inner region), the Y-axis initial acceleration data is larger than 0, the target roll angle is smaller than 0, and the absolute value of the target roll angle is within a second preset threshold range, or the Y-axis initial acceleration data is smaller than 0, and if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the second preset threshold range, the oral cavity sub-region corresponding to the acceleration data is identified as the middle upper inner region, that is, under the condition that the target heading angle is smaller than 0, the oral cavity sub-region corresponding to the acceleration in step 110C 'and step 110G' is the middle upper inner region.
And 110L', under the condition that the target course angle is smaller than 0, the Y-axis initial acceleration data is larger than 0, the target rolling angle is larger than 0, and the absolute value of the target rolling angle is within the first preset threshold range, or the Y-axis initial acceleration data is smaller than 0, if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the first preset threshold range, the oral cavity subregion corresponding to the acceleration data is identified as the middle-lower outer region.
Specifically, under the condition that the target heading angle is smaller than 0, that is, the toothbrush head of the electric toothbrush moves in the forward direction, it is determined that the oral cavity sub-region corresponding to the acceleration data is a middle region (middle upper outer region, middle lower inner region, middle lower outer region, middle upper inner region), the Y-axis initial acceleration data is larger than 0, the target roll angle is larger than 0, and the absolute value of the target roll angle is within a first preset threshold range, or the Y-axis initial acceleration data is smaller than 0, and if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the first preset threshold range, the oral cavity sub-region corresponding to the acceleration data is identified as the middle lower outer region, that is, under the condition that the target heading angle is smaller than 0, the oral cavity sub-region corresponding to the acceleration in step 110D 'and step 110H' is the middle lower outer region.
Step 110M', when the target course angle is smaller than 0, the Y-axis initial acceleration data is larger than 0, the target roll angle is larger than 0, and an absolute value of the target roll angle is within the second preset threshold range, or the Y-axis initial acceleration data is smaller than 0, and if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the second preset threshold range, the oral cavity sub-region corresponding to the acceleration data is identified as the middle-lower inner region.
Specifically, under the condition that the target heading angle is smaller than 0, that is, the toothbrush head of the electric toothbrush moves in the forward direction, it is determined that the oral cavity sub-region corresponding to the acceleration data is a middle region (middle upper outer region, middle lower inner region, middle lower outer region, middle upper inner region), the Y-axis initial acceleration data is larger than 0, the target roll angle is larger than 0, and the absolute value of the target roll angle is within a second preset threshold range, or the Y-axis initial acceleration data is smaller than 0, and if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the second preset threshold range, the oral cavity sub-region corresponding to the acceleration data is identified as the middle lower inner region, that is, under the condition that the target heading angle is smaller than 0, the oral cavity sub-region corresponding to the acceleration in step 110I 'and step 110D' is the middle lower inner region.
It should be noted that, first, according to the Y-axis initial acceleration at the time of starting tooth brushing and the X-axis acceleration data during tooth brushing, it is determined whether the oral cavity sub-region corresponding to the acceleration data is the left region or the right region, and meanwhile, it is determined whether the left region and the right region belong to the middle region according to the positive or negative of the target heading angle, and then, according to the positive or negative of the target roll angle and the absolute value of the target roll angle, as well as the magnitude relation between the first preset threshold range and the second preset threshold range, it is uniquely and accurately determined that the oral cavity sub-region corresponding to the acceleration data is under the precondition that the Y-axis acceleration is not triggered during tooth brushing, that is, under the condition that the Y-axis acceleration is less than the second preset threshold during tooth brushing, otherwise, the identification result of the oral cavity region.
The oral cavity subareas corresponding to the acceleration data are identified, so that the oral cavity subareas are finely distinguished and identified, and the identification accuracy is ensured.
As shown in fig. 4, in one embodiment, the oral area identifying method further includes the following steps:
step 112, using the left lower inner area, the left upper inner area, the left lower outer area or the left upper outer area as a first target area, and using the right lower inner area, the right lower outer area, the right lower inner area and the right lower outer area as a second target area.
The first target area is a left area and refers to one oral cavity sub-area in a lower left inner area, an upper left inner area, a lower left outer area or an upper left outer area, and the second target area is a right area and refers to one oral cavity sub-area in a lower right inner area, a lower right outer area, a lower right inner area and a lower right outer area.
And step 114, if the Y-axis initial acceleration data is greater than the first preset threshold, performing update correction on the first target area and the second target area.
In this embodiment, the first target region and the second target region are updated, that is, the left region in the identified oral cavity sub-region is updated to the right region, and the left lower inner region, the left upper inner region, the left lower outer region, or the left upper outer region is updated to the right lower inner region, the right upper inner region, the right lower outer region, or the right upper outer region, respectively. And updating the right area in the identified oral cavity sub-areas into the left area, and respectively updating the right lower inner area, the right lower outer area, the right lower inner area and the right lower outer area into the left lower inner area, the left lower outer area, the left lower inner area and the left lower outer area. It can be understood that, since the oral cavity sub-regions identified in steps 110A 'to 110I' are all in the case that the Y-axis initial acceleration data is smaller than the second preset threshold, when the Y-axis initial acceleration data is larger than the first preset threshold, there will be an error in the oral cavity sub-regions identified in steps 110A 'to 110I', and the identified oral cavity sub-regions are updated and corrected by the method of step 114, so as to further ensure the accuracy of the identified oral cavity sub-regions.
According to the oral cavity area identification method, the first target area and the second target area are updated and corrected under the condition that the initial acceleration data of the Y axis is larger than the first preset threshold value, so that the accuracy of the identified oral cavity area is further ensured.
As shown in fig. 5, in an embodiment, the performing attitude fusion processing on the target acceleration data and the target angular velocity data to obtain the target roll angle includes:
step 106A: and respectively normalizing the target acceleration data, the target angular velocity data and the target magnetic field data.
The normalization is a simplified calculation mode, that is, a dimensional expression is transformed into a dimensionless expression and becomes a scalar. In this embodiment, normalization is used to reduce the target acceleration and the target angular velocity into dimensionless data, so as to achieve the condition for performing fusion. In particular, normalization can be performed by the normalization method in Python language, i.e., normalization (a)x,ay,az) Wherein a isx,ay,azThe data of the acceleration in the first direction, the data of the acceleration in the second direction and the data of the acceleration in the third direction are respectively, or the data of the angular velocity in the first direction, the data of the angular velocity in the second direction and the data of the angular velocity in the third direction are respectively, or the data of the magnetic field in the first direction, the data of the magnetic field in the second direction and the data of the magnetic field in the third direction are respectively. The output of the method is normalized target acceleration data or target angular velocityAnd (4) data. Mapping to [0,1 ] can also be done by direct computation]And (3) carrying out normalization, wherein a specific implementation calculation formula is as follows:
norm=sqrt(ax*ax+ay*ay+az*az);
ax=ax/norm;
ay=ay/norm;
az=az/norm;
the ax, ay, and az are normalized first direction acceleration data, second direction acceleration data, and third direction acceleration data, or first direction angular velocity data, second direction angular velocity data, and third direction angular velocity data, or first direction magnetic field data, second direction magnetic field data, and third direction magnetic field data, respectively.
Step 106B: and performing weighted fusion calculation on the normalized target acceleration data, the normalized target angular velocity data and the normalized target magnetic field data to obtain the target roll angle and the target course angle.
The weighted fusion calculation is a summation operation performed by giving a specific weight to the importance of data. Specifically, weights corresponding to the target acceleration data, the target angular velocity data and the target magnetic field data are respectively determined, the target acceleration data and the target angular velocity data are multiplied by the corresponding weights, and then the result obtained by accumulation operation is the target roll angle, so that the target acceleration data and the target angular velocity data are converted into attitude angle data, the target roll angle comprises data information corresponding to the target acceleration data and the target angular velocity data, and the target roll angle information is more accurate and concise. Furthermore, after multiplying the target acceleration data, the target angular velocity data and the target magnetic field data by the corresponding weights, the result obtained by accumulation operation is the target course angle, so that the target acceleration data, the target angular velocity data and the target magnetic field data are converted into direction angle data, the target course angle contains data information corresponding to the target acceleration data, the target angular velocity data and the target magnetic field data, and the target course angle information is more accurate and concise. The calculated amount is reduced, and the efficiency of oral cavity area identification is improved.
The method for carrying out the attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data enables the target rolling angle information and the target course angle information to be more accurate and concise, reduces the calculated amount and improves the efficiency of oral cavity area identification.
As shown in fig. 6, in one embodiment, after determining the oral cavity sub-region corresponding to the acceleration data, the oral cavity identification method further includes:
and step 116, counting the time when the pressure in each oral cavity subregion is greater than 0 as the tooth brushing time of each oral cavity subregion.
In particular, a time greater than 0 on each identified sub-region may be detected by the pressure sensor, determining the brushing time duration for the corresponding oral sub-region.
And step 118, detecting the tooth brushing time of the 12 oral subregions and the tooth brushing strength of the 12 oral subregions to determine tooth brushing habits.
The tooth brushing habit refers to the specific tooth brushing condition of a user, and specifically, the tooth brushing habit is determined through the force of the oral cavity subregion detected by the pressure sensor in a time period corresponding to the tooth brushing time. The method has the advantages that the recognized oral cavity subareas are detected, namely after the whole oral cavity area is subjected to area division, the statistical detection is carried out on each oral cavity subarea, so that the tooth brushing habit is determined more objectively and accurately, and a user can clearly know the tooth brushing habit.
As shown in fig. 7, in an embodiment, after the determining of the brushing habit, the oral area identifying method further includes:
and step 120, comparing and analyzing the tooth brushing habit with a standard tooth brushing rule to obtain an analysis result.
The standard tooth brushing rule is a rule of correct tooth brushing habit determined in the oral cavity field, and the server compares and analyzes the tooth brushing habit with the standard tooth brushing rule to obtain an analysis result and a result of whether the tooth brushing time and tooth brushing strength of the user corresponding to the tooth brushing habit to the 12 sub-regions meet the standard tooth brushing rule or not.
And step 122, sending the analysis result to a cloud server for storage or display.
Specifically, the analysis result is sent to the cloud server for storage or display, so that a user can keep or adjust the tooth brushing habit according to the analysis result, and the oral cavity tooth health is guaranteed.
The process of analyzing the tooth brushing habits can be convenient for a user to keep or adjust the tooth brushing habits of the user according to the analysis result, and further the oral cavity tooth health is ensured.
As shown in fig. 8, in one embodiment, an oral area identification apparatus is provided, comprising:
a data acquisition module 802, configured to acquire acceleration data, angular velocity data, and magnetic field data of an electric toothbrush in an oral cavity area, where the acceleration data, the angular velocity data, and the magnetic field data are acquired through a three-axis accelerometer, a gyroscope, and a geomagnetic meter disposed on the electric toothbrush, respectively, and the acceleration data includes first-direction acceleration data, second-direction acceleration data, and third-direction acceleration data;
a filtering processing module 804, configured to perform smoothing filtering on the acceleration data, the angular velocity data, and the magnetic field data, respectively, to obtain target acceleration data, target angular velocity data, and target magnetic field data, where the target acceleration data includes first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data;
a fusion processing module 806, configured to perform attitude fusion processing on the target acceleration data, the target angular velocity data, and the target magnetic field data to obtain a target roll angle and a target course angle;
a threshold obtaining module 808, configured to obtain a first preset threshold range and a second preset threshold range corresponding to the target roll angle, and obtain a preset first threshold corresponding to first target data;
the area identification module 810 is configured to determine an oral cavity sub-area corresponding to the acceleration data according to the target rolling angle, the target heading angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range, and the first preset threshold, where the oral cavity sub-area includes: 12 oral cavity subregions, 12 oral cavity subregions are: a top left inner region, a top left outer region, a bottom left inner region, a bottom left outer region, a top middle outer region, a bottom middle inner region, a bottom middle outer region, a top middle inner region, a top right outer region, a bottom right inner region, and a bottom right outer region.
In one embodiment, the first direction acceleration data is Y-axis acceleration data;
the area identification module includes:
a first area identification unit, configured to, when the first target data is smaller than 0 and an absolute value of the first target data is larger than the first preset threshold, identify, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the first preset threshold range, an oral cavity sub-area corresponding to the acceleration data as the upper left outer area;
a second area identification unit, configured to identify, if the target roll angle is smaller than 0 and an absolute value of the target roll angle is within the second preset threshold range, an oral cavity sub-area corresponding to the acceleration data as the upper left inner area;
a third area identification unit, configured to identify an oral cavity sub-area corresponding to the acceleration data as the lower left outer area if the target roll angle is greater than 0 and an absolute value of the target roll angle is within the first preset threshold range;
a fourth area identification unit, configured to identify, if the target roll angle is greater than 0 and an absolute value of the target roll angle is within the second preset threshold range, an oral cavity sub-area corresponding to the acceleration data as the lower left inner area;
a fifth area identification unit, configured to, when the first target data is greater than 0 and an absolute value of the first target data is greater than the first preset threshold, identify, if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the first preset threshold range, that the oral cavity sub-area corresponding to the acceleration data is the upper-right outer area;
a sixth area identification unit, configured to identify, if the target roll angle is greater than 0 and an absolute value of the target roll angle is within the second preset threshold range, the oral cavity sub-area corresponding to the acceleration data as the upper-right inner area;
a seventh area identification unit, configured to identify, if the target roll angle is smaller than 0 and an absolute value of the target roll angle is within the first preset threshold range, the oral cavity sub-area corresponding to the acceleration data as the lower-right outer area;
an eighth area identification unit, configured to identify, if the target roll angle is smaller than 0 and an absolute value of the target roll angle is within the second preset threshold range, the oral cavity sub-area corresponding to the acceleration data as the lower-right inner area;
a ninth area identification unit, configured to, when the target heading angle is smaller than 0, identify, if the first target data is smaller than 0 and an absolute value of the first target data is greater than the first preset threshold, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within a first preset threshold range, or if the first target data is greater than 0 and the absolute value of the first target data is greater than the first preset threshold, identify, if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the first preset threshold range, an oral cavity sub-area corresponding to the acceleration data as the middle-upper and-lower area;
a tenth area identification unit, configured to, when the target course angle is smaller than 0, identify that the first target data is smaller than 0 and an absolute value of the first target data is greater than the first preset threshold, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the second preset threshold range, or if the first target data is greater than 0 and the absolute value of the first target data is greater than the first preset threshold, and if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the second preset threshold range, identify the oral sub-area corresponding to the acceleration data as the middle-upper and-lower area;
an eleventh area identification unit, configured to, when the target heading angle is smaller than 0, identify that the first target data is smaller than 0 and an absolute value of the first target data is larger than the first preset threshold, if the target roll angle is larger than 0 and the absolute value of the target roll angle is within a range of the first preset threshold, or if the first target data is larger than 0 and the absolute value of the first target data is larger than the first preset threshold, identify that a sub-area of an oral cavity corresponding to the acceleration data is the middle-lower-outer area if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the range of the first preset threshold;
a twelfth area identification unit, configured to, when the target heading angle is smaller than 0, identify, if the first target data is smaller than 0 and an absolute value of the first target data is greater than the first preset threshold, if the target roll angle is greater than 0 and the absolute value of the target roll angle is within the first preset threshold range, or if the first target data is greater than 0 and the absolute value of the first target data is greater than the first preset threshold, and if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the second preset threshold range, identify the oral cavity sub-area corresponding to the acceleration data as the middle-inner-lower area.
In one embodiment, the first directional acceleration data is X-axis acceleration data and the second directional acceleration is Z-axis acceleration;
the area identification module further includes:
the initial data acquisition unit is used for acquiring Y-axis initial acceleration data at the initial brushing time;
the area identification unit is used for identifying an oral cavity subarea corresponding to the acceleration data as the upper right outer area if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the first preset threshold range under the condition that the Y-axis initial acceleration data is larger than 0;
the two area identification units are used for identifying the oral cavity subarea corresponding to the acceleration data as the upper right inner area if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the second preset threshold range;
the three-region identification unit is used for identifying the oral cavity sub-region corresponding to the acceleration data as the lower right outer region if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the first preset threshold range;
a fourth region identification unit, configured to identify, if the target roll angle is greater than 0 and an absolute value of the target roll angle is within the second preset threshold range, the oral cavity sub-region corresponding to the acceleration data as the lower-right inner region;
a fifth area identification unit, configured to identify, when the Y-axis initial acceleration data is smaller than 0, if the target roll angle is smaller than 0 and an absolute value of the target roll angle is within the first preset threshold range, an oral cavity sub-area corresponding to the acceleration data is the upper left outer area;
a sixth area identification unit, configured to identify, if the target roll angle is smaller than 0 and an absolute value of the target roll angle is within the second preset threshold range, an oral cavity sub-area corresponding to the acceleration data as the upper left inner area;
a seventh area identification unit, configured to identify, if the target roll angle is greater than 0 and an absolute value of the target roll angle is within the first preset threshold range, an oral cavity sub-area corresponding to the acceleration data as the lower left outer area;
an eight-region identification unit, configured to identify, if the target roll angle is greater than 0 and an absolute value of the target roll angle is within the second preset threshold range, an oral cavity sub-region corresponding to the acceleration data as the lower left inner region;
a ninth area identification unit, configured to, when the target heading angle is smaller than 0, identify that the Y-axis initial acceleration data is greater than 0, the target roll angle is smaller than 0, and an absolute value of the target roll angle is within the first preset threshold range, or identify that an oral cavity sub-area corresponding to the acceleration data is the middle-upper and outer area if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the first preset threshold range, where the Y-axis initial acceleration data is smaller than 0;
a tenth area identification unit, configured to, when the target heading angle is smaller than 0, identify that the Y-axis initial acceleration data is greater than 0, the target roll angle is smaller than 0, and an absolute value of the target roll angle is within the second preset threshold range, or identify that an oral cavity sub-area corresponding to the acceleration data is the middle-upper area if the Y-axis initial acceleration data is smaller than 0, and if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the second preset threshold range;
an eleventh area identification unit, configured to, when the target heading angle is smaller than 0, identify that the Y-axis initial acceleration data is larger than 0, the target roll angle is larger than 0, and an absolute value of the target roll angle is within the first preset threshold range, or identify that an oral cavity sub-area corresponding to the acceleration data is the middle-lower outer area if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the first preset threshold range, where the Y-axis initial acceleration data is smaller than 0;
and a twelfth area identification unit, configured to, when the target heading angle is smaller than 0, identify that the Y-axis initial acceleration data is larger than 0, the target roll angle is larger than 0, and an absolute value of the target roll angle is within the second preset threshold range, or identify that the oral cavity sub-area corresponding to the acceleration data is the middle-lower inner area if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the second preset threshold range, where the Y-axis initial acceleration data is smaller than 0.
In one embodiment, the fusion processing module includes:
the normalization processing unit is used for respectively normalizing the target acceleration data, the target angular velocity data and the target magnetic field data;
and the fusion processing unit is used for performing weighted fusion calculation on the normalized target acceleration data, the normalized target angular velocity data and the normalized target magnetic field data to obtain the target roll angle and the course angle.
In one embodiment, the oral area identifying device further comprises:
the counting module is used for counting the time when the pressure on each oral cavity subregion is greater than 0 as the tooth brushing time of each oral cavity subregion;
the detection module is used for detecting the tooth brushing time of the 12 oral subregions and the tooth brushing strength of the 12 oral subregions to determine tooth brushing habits.
In one embodiment, the oral area identifying device further comprises:
the analysis module is used for comparing and analyzing the tooth brushing habit with a standard tooth brushing rule to obtain an analysis result;
and the sending module is used for sending the analysis result to a cloud server for storage or display.
FIG. 9 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a server and a terminal device, where the server includes but is not limited to a high-performance computer and a high-performance computer cluster; the terminal devices include, but are not limited to, mobile terminal devices including, but not limited to, mobile phones, tablet computers, smart watches, and laptops, and desktop terminal devices including, but not limited to, desktop computers and in-vehicle computers. As shown in fig. 9, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the oral area identification method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform the oral area identification method. Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the oral area recognition method provided herein may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 9. The memory of the computer device may store therein the respective program templates constituting the oral area recognition apparatus. For example, the data acquisition module 802, the filtering processing module 804, the fusion processing module 806, the threshold acquisition module 808, and the region identification module 810.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the oral area identification method in the above embodiments when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the oral area identification method in the above embodiments.
It should be noted that the oral cavity area identifying method, the oral cavity area identifying device, the computer device and the computer readable storage medium described above belong to a general inventive concept, and the contents in the oral cavity area identifying method, the oral cavity area identifying device, the computer device and the computer readable storage medium embodiments are mutually applicable.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An oral area identifying method, comprising:
acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral cavity area, wherein the acceleration data, the angular velocity data and the magnetic field data are acquired through a three-axis accelerometer, a gyroscope and a geomagnetic meter which are arranged on the electric toothbrush respectively, and the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data;
performing smoothing filtering on the acceleration data, the angular velocity data and the magnetic field data respectively to obtain target acceleration data, target angular velocity data and target magnetic field data, wherein the target acceleration data comprises first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data;
carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle;
acquiring a first preset threshold range and a second preset threshold range corresponding to the target roll angle, and acquiring a preset first threshold corresponding to first target data;
determining an oral cavity subregion corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, wherein the oral cavity subregion comprises: 12 oral cavity subregions, 12 oral cavity subregions are: a top left inner region, a top left outer region, a bottom left inner region, a bottom left outer region, a top middle outer region, a bottom middle inner region, a bottom middle outer region, a top middle inner region, a top right outer region, a bottom right inner region, and a bottom right outer region.
2. The oral area identifying method according to claim 1, wherein the first direction acceleration data is Y-axis acceleration data;
determining an oral cavity subregion corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, and comprising:
under the condition that the target course angle is larger than 0, the first target data are smaller than 0, and the absolute value of the first target data is larger than the first preset threshold, if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the range of the first preset threshold, identifying the oral cavity subregion corresponding to the acceleration data as the upper left outer region;
if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper left inner region;
if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the first preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower left outer region;
if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower left inner region;
under the condition that the target course angle is larger than 0, the first target data is larger than 0, and the absolute value of the first target data is larger than the first preset threshold, if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the range of the first preset threshold, identifying the oral cavity subregion corresponding to the acceleration data as the upper right outer region;
if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper right inner region;
if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the first preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower right outer region;
if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower right inner region;
under the condition that the target course angle is smaller than 0, if the first target data is smaller than 0 and the absolute value of the first target data is larger than a first preset threshold, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within a first preset threshold range, or if the first target data is larger than 0 and the absolute value of the first target data is larger than the first preset threshold, if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the first preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the middle-upper and outer regions;
under the condition that the target course angle is smaller than 0, the first target data are smaller than 0, and the absolute value of the first target data are larger than a first preset threshold, if the target rolling angle is smaller than 0, and the absolute value of the target rolling angle is within a second preset threshold range, or the first target data are larger than 0, and the absolute value of the first target data are larger than the first preset threshold, if the target rolling angle is larger than 0, and the absolute value of the target rolling angle is within the second preset threshold range, the oral cavity sub-area corresponding to the acceleration data is identified as the middle-upper inner area;
under the condition that the target course angle is smaller than 0, the first target data are smaller than 0, and the absolute value of the first target data are larger than a first preset threshold, if the target rolling angle is larger than 0, and the absolute value of the target rolling angle is within a first preset threshold range, or the first target data are larger than 0, and the absolute value of the first target data are larger than the first preset threshold, if the target rolling angle is smaller than 0, and the absolute value of the target rolling angle is within the first preset threshold range, the oral cavity subarea corresponding to the acceleration data are identified as the middle-lower-outer area;
under the condition that the target course angle is smaller than 0, if the first target data is smaller than 0 and the absolute value of the first target data is larger than a first preset threshold, if the target roll angle is larger than 0 and the absolute value of the target roll angle is within a first preset threshold range, or if the first target data is larger than 0 and the absolute value of the first target data is larger than the first preset threshold, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within a second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the middle-lower inner region.
3. The oral area identifying method according to claim 1, wherein the first directional acceleration data is X-axis acceleration data, and the second directional acceleration is Z-axis acceleration data;
the determining the oral cavity subarea corresponding to the acceleration data according to the target rolling angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold comprises:
acquiring Y-axis initial acceleration data at the initial brushing time;
under the condition that the Y-axis initial acceleration data is greater than 0 and the target course angle is greater than 0, if the target roll angle is less than 0 and the absolute value of the target roll angle is within the first preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper right outer region;
if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper right inner region;
if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the first preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower right outer region;
if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower right inner region;
under the condition that the Y-axis initial acceleration data is smaller than 0, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the first preset threshold range, identifying an oral cavity subregion corresponding to the acceleration data as the upper left outer region;
if the target rolling angle is smaller than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the upper left inner region;
if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the first preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower left outer region;
if the target rolling angle is larger than 0 and the absolute value of the target rolling angle is within the second preset threshold range, identifying the oral cavity subregion corresponding to the acceleration data as the lower left inner region;
under the condition that the target course angle is smaller than 0, the Y-axis initial acceleration data is larger than 0, the target roll angle is smaller than 0, and the absolute value of the target roll angle is within the first preset threshold range, or the Y-axis initial acceleration data is smaller than 0, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the first preset threshold range, the oral cavity sub-area corresponding to the acceleration data is identified as the middle-upper and outer areas;
under the condition that the target course angle is smaller than 0, the Y-axis initial acceleration data is larger than 0, the target roll angle is smaller than 0, and the absolute value of the target roll angle is within the second preset threshold range, or the Y-axis initial acceleration data is smaller than 0, if the target roll angle is smaller than 0 and the absolute value of the target roll angle is within the second preset threshold range, the oral cavity subregion corresponding to the acceleration data is identified as the middle-upper inner region;
under the condition that the target course angle is smaller than 0, the Y-axis initial acceleration data is larger than 0, the target roll angle is larger than 0, and the absolute value of the target roll angle is within the first preset threshold range, or the Y-axis initial acceleration data is smaller than 0, if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the first preset threshold range, the oral cavity subregion corresponding to the acceleration data is identified as the middle, lower and outer regions;
under the condition that the target course angle is smaller than 0, the Y-axis initial acceleration data is larger than 0, the target roll angle is larger than 0, and the absolute value of the target roll angle is within the second preset threshold range, or the Y-axis initial acceleration data is smaller than 0, if the target roll angle is larger than 0 and the absolute value of the target roll angle is within the second preset threshold range, the oral cavity subregion corresponding to the acceleration data is identified as the middle-lower inner region.
4. The oral area identifying method according to claim 3, further comprising:
taking the left lower inner region, the left upper inner region, the left lower outer region or the left upper outer region as a first target region, and taking the right lower inner region, the right lower outer region, the right lower inner region and the right lower outer region as a second target region;
and if the Y-axis initial acceleration data is larger than the first preset threshold, updating and correcting the first target area and the second target area.
5. The method for identifying an oral area according to claim 1, wherein the performing attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target roll angle and a target heading angle comprises:
respectively normalizing the target acceleration data, the target angular velocity data and the target magnetic field data;
and performing weighted fusion calculation on the normalized target acceleration data, the normalized target angular velocity data and the normalized target magnetic field data to obtain the target roll angle and the target course angle.
6. The oral cavity region identification method according to claim 1, after determining the oral cavity sub-region to which the acceleration data corresponds, the oral cavity region identification method further comprising:
counting the time when the pressure on each oral cavity subregion is greater than 0 as the tooth brushing time of each oral cavity subregion;
and detecting the tooth brushing time of the 12 oral subregions and the tooth brushing strength of the 12 oral subregions to determine tooth brushing habits.
7. The oral area recognition method of claim 6, wherein after said determining brushing habits, said oral area recognition method further comprises:
comparing and analyzing the tooth brushing habits with standard tooth brushing rules to obtain an analysis result;
and sending the analysis result to a cloud server for storage or display.
8. An oral area identifying device, comprising:
the data acquisition module is used for acquiring acceleration data, angular velocity data and magnetic field data of the electric toothbrush in an oral cavity area, wherein the acceleration data, the angular velocity data and the magnetic field data are acquired through a three-axis accelerometer, a gyroscope and a geomagnetic meter which are arranged on the electric toothbrush respectively, and the acceleration data comprises first direction acceleration data, second direction acceleration data and third direction acceleration data;
the filtering processing module is used for respectively carrying out smooth filtering on the acceleration data, the angular velocity data and the magnetic field data to obtain target acceleration data, target angular velocity data and target magnetic field data, wherein the target acceleration data comprises first target data corresponding to the first direction acceleration data and second target data corresponding to the second direction acceleration data;
the fusion processing module is used for carrying out attitude fusion processing on the target acceleration data, the target angular velocity data and the target magnetic field data to obtain a target rolling angle and a target course angle;
the threshold value obtaining module is used for obtaining a first preset threshold value range and a second preset threshold value range corresponding to the target rolling angle and obtaining a preset first threshold value corresponding to first target data;
the area identification module is used for determining an oral cavity subarea corresponding to the acceleration data according to the target rolling angle, the target course angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range and the first preset threshold, and the oral cavity subarea comprises: 12 oral cavity subregions, 12 oral cavity subregions are: a top left inner region, a top left outer region, a bottom left inner region, a bottom left outer region, a top middle outer region, a bottom middle inner region, a bottom middle outer region, a top middle inner region, a top right outer region, a bottom right inner region, and a bottom right outer region.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of the oral area identification method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for identifying an oral area according to any one of claims 1 to 7.
CN201910814522.8A 2019-08-30 2019-08-30 Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium Active CN110608754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910814522.8A CN110608754B (en) 2019-08-30 2019-08-30 Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910814522.8A CN110608754B (en) 2019-08-30 2019-08-30 Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110608754A true CN110608754A (en) 2019-12-24
CN110608754B CN110608754B (en) 2022-04-08

Family

ID=68890720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910814522.8A Active CN110608754B (en) 2019-08-30 2019-08-30 Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110608754B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140246049A1 (en) * 2008-02-27 2014-09-04 Koninklijke Philips N.V. Dental position tracking system for a toothbrush
CN107167133A (en) * 2017-05-24 2017-09-15 北京慧联科技有限公司 A kind of brushing evaluation method and system
CN108594640A (en) * 2018-03-28 2018-09-28 郭剑东 A kind of intelligent electric frequency conversion toothbrush, control system and method
CN109373998A (en) * 2018-10-11 2019-02-22 重庆天箭惯性科技股份有限公司 Posture of rotator measurement method based on multi-sensor data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140246049A1 (en) * 2008-02-27 2014-09-04 Koninklijke Philips N.V. Dental position tracking system for a toothbrush
CN107167133A (en) * 2017-05-24 2017-09-15 北京慧联科技有限公司 A kind of brushing evaluation method and system
CN108594640A (en) * 2018-03-28 2018-09-28 郭剑东 A kind of intelligent electric frequency conversion toothbrush, control system and method
CN109373998A (en) * 2018-10-11 2019-02-22 重庆天箭惯性科技股份有限公司 Posture of rotator measurement method based on multi-sensor data

Also Published As

Publication number Publication date
CN110608754B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
JP5594940B2 (en) Method and apparatus for detecting a substantially invariant axis of rotation
US20190065872A1 (en) Behavior recognition apparatus, learning apparatus, and method and program therefor
CN107636420B (en) Techniques for pedestrian dead reckoning
JP5759161B2 (en) Object recognition device, object recognition method, learning device, learning method, program, and information processing system
US20160061582A1 (en) Scale estimating method using smart device and gravity data
CN111595344B (en) Multi-posture downlink pedestrian dead reckoning method based on map information assistance
CN110068326B (en) Attitude calculation method and apparatus, electronic device, and storage medium
JP5915112B2 (en) Status detection device, electronic device, and program
CN112990321B (en) Tooth brushing area identification method and device based on tree network, toothbrush and medium
JP6197702B2 (en) Input method, program, and input device
US11874666B2 (en) Self-location estimation method
CN110608753A (en) Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium
JP3764773B2 (en) Robust recognition device using gaze points
CN110608754B (en) Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium
CN111435083A (en) Pedestrian track calculation method, navigation method and device, handheld terminal and medium
JP6848571B2 (en) Posture calculation device, posture measurement system, and posture calculation method
CN113029153A (en) Multi-scene PDR positioning method based on smart phone multi-sensor fusion and SVM classification
KR101870542B1 (en) Method and apparatus of recognizing a motion
CN109567814B (en) Classification recognition method, computing device, system and storage medium for tooth brushing action
CN115560744A (en) Robot, multi-sensor-based three-dimensional mapping method and storage medium
CN115727871A (en) Track quality detection method and device, electronic equipment and storage medium
CN113658278A (en) Method and device for spatial positioning
CN110619289B (en) Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium
CN113916223A (en) Positioning method and device, equipment and storage medium
CN113034538A (en) Pose tracking method and device of visual inertial navigation equipment and visual inertial navigation equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant