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

文档序号:1648373 发布日期:2019-12-24 浏览:22次 中文

阅读说明:本技术 口腔区域识别方法、装置、计算机设备和存储介质 (Oral cavity area identification method, oral cavity area identification device, computer equipment and storage medium ) 是由 刘博� 肖建军 于 2019-08-30 设计创作,主要内容包括:本发明实施例公开了一种口腔区域识别方法,包括:获取电动牙刷在口腔区域的加速度数据和角速度数据;分别对加速度数据和角速度数据进行平滑滤波,得到目标加速度数据和目标角速度数据;将目标加速度数据和目标角速度数据进行姿态融合处理,得到目标滚转角;获取目标滚转角对应的第一预设阈值范围和第二预设阈值范围,获取第一目标数据对应的预设第一阈值;根据目标滚转角、第一目标数据、第二目标数据、第一预设阈值范围、第二预设阈值范围和第一预设阈值确定加速度数据对应的口腔子区域。该口腔区域识别方法提高了口腔区域识别的效率和准确率。此外,还提出了一种口腔区域识别装置、计算机设备和存储介质。(The embodiment of the invention discloses an oral cavity area identification method, which comprises the following steps: acquiring acceleration data and angular velocity data of the electric toothbrush in an oral cavity area; respectively carrying out smooth filtering on the acceleration data and the angular velocity data to obtain target acceleration data and target angular velocity data; carrying out attitude fusion processing on the target acceleration data and the target angular velocity data to obtain a target roll 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; and 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. 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.)

1. An oral area identifying method, comprising:

acquiring acceleration data and angular velocity data of the electric toothbrush in an oral cavity area, wherein the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope which are arranged on the electric toothbrush respectively, the acceleration data comprise first direction acceleration data, second direction acceleration data and third direction acceleration data, and the angular velocity data comprise first direction angular velocity data, second direction angular velocity data and third direction angular velocity data;

performing smoothing filtering on the acceleration data and the angular velocity data respectively to obtain target acceleration data and target angular velocity 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 and the target angular velocity data to obtain a target roll 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 roll 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: 8 oral cavity subregion, 8 oral cavity subregions are: an upper left inner region, an upper left outer region, a lower left inner region, a lower left outer region, an upper right inner region, an upper right outer region, a lower right inner region, and a lower right outer region.

2. The oral area identifying method according to claim 1, wherein the first direction acceleration data is Y-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:

under the condition that 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;

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 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 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;

and 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.

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 larger 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 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;

and 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.

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 oral area recognition method of claim 1, wherein the performing a pose fusion process on the target acceleration data and the target angular velocity data to obtain a target roll angle comprises:

respectively normalizing the target acceleration data and the target angular velocity data;

and performing weighted fusion calculation on the normalized target acceleration data and the normalized target angular velocity data to obtain the target roll 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 8 oral subregions and the tooth brushing strength of the 8 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 and angular velocity data of the electric toothbrush in an oral cavity area, wherein the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope which are arranged on the electric toothbrush respectively, the acceleration data comprise first direction acceleration data, second direction acceleration data and third direction acceleration data, and the angular velocity data comprise first direction angular velocity data, second direction angular velocity data and third direction angular velocity data;

the filtering processing module is used for respectively carrying out smooth filtering on the acceleration data and the angular velocity data to obtain target acceleration data and target angular velocity 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 and the target angular velocity data to obtain a target rolling 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 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: 8 oral cavity subregion, 8 oral cavity subregions are: an upper left inner region, an upper left outer region, a lower left inner region, a lower left outer region, an upper right inner region, an upper right outer region, a lower right inner region, and a lower 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.

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 and angular velocity data of the electric toothbrush in an oral cavity area, wherein the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope which are arranged on the electric toothbrush respectively, the acceleration data comprise first direction acceleration data, second direction acceleration data and third direction acceleration data, and the angular velocity data comprise first direction angular velocity data, second direction angular velocity data and third direction angular velocity data;

performing smoothing filtering on the acceleration data and the angular velocity data respectively to obtain target acceleration data and target angular velocity 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 and the target angular velocity data to obtain a target roll 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 roll 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: 8 oral cavity subregion, 8 oral cavity subregions are: an upper left inner region, an upper left outer region, a lower left inner region, a lower left outer region, an upper right inner region, an upper right outer region, a lower right inner region, and a lower right outer region.

An oral area identification device, the device comprising:

the data acquisition module is used for acquiring acceleration data and angular velocity data of the electric toothbrush in an oral cavity area, wherein the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope which are arranged on the electric toothbrush respectively, the acceleration data comprise first direction acceleration data, second direction acceleration data and third direction acceleration data, and the angular velocity data comprise first direction angular velocity data, second direction angular velocity data and third direction angular velocity data;

the filtering processing module is used for respectively carrying out smooth filtering on the acceleration data and the angular velocity data to obtain target acceleration data and target angular velocity 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 and the target angular velocity data to obtain a target rolling 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 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: 8 oral cavity subregion, 8 oral cavity subregions are: an upper left inner region, an upper left outer region, a lower left inner region, a lower left outer region, an upper right inner region, an upper right outer region, a lower right inner region, and a lower 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 and angular velocity data of the electric toothbrush in an oral cavity area, wherein the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope which are arranged on the electric toothbrush respectively, the acceleration data comprise first direction acceleration data, second direction acceleration data and third direction acceleration data, and the angular velocity data comprise first direction angular velocity data, second direction angular velocity data and third direction angular velocity data;

performing smoothing filtering on the acceleration data and the angular velocity data respectively to obtain target acceleration data and target angular velocity 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 and the target angular velocity data to obtain a target roll 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 roll 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: 8 oral cavity subregion, 8 oral cavity subregions are: an upper left inner region, an upper left outer region, a lower left inner region, a lower left outer region, an upper right inner region, an upper right outer region, a lower right inner region, and a lower 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 and angular velocity data of the electric toothbrush in an oral cavity area, wherein the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope which are arranged on the electric toothbrush respectively, the acceleration data comprise first direction acceleration data, second direction acceleration data and third direction acceleration data, and the angular velocity data comprise first direction angular velocity data, second direction angular velocity data and third direction angular velocity data;

performing smoothing filtering on the acceleration data and the angular velocity data respectively to obtain target acceleration data and target angular velocity 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 and the target angular velocity data to obtain a target roll 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 roll 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: 8 oral cavity subregion, 8 oral cavity subregions are: an upper left inner region, an upper left outer region, a lower left inner region, a lower left outer region, an upper right inner region, an upper right outer region, a lower right inner region, and a lower right outer region.

Firstly, acquiring acceleration data and angular velocity data of the electric toothbrush in an oral area, wherein the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope which are arranged on the electric toothbrush respectively, the acceleration data comprise first direction acceleration data, second direction acceleration data and third direction acceleration data, and the angular velocity data comprise first direction angular velocity data, second direction angular velocity data and third direction angular velocity data; then, smoothing filtering is carried out on the acceleration data and the angular velocity data respectively to obtain target acceleration data and target angular velocity 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 and the target angular velocity data to obtain a target roll angle; then, a first preset threshold range and a second preset threshold range corresponding to the target roll angle are obtained, and a preset first threshold corresponding to first target data is obtained; finally, determining an oral cavity subregion 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, wherein the oral cavity subregion comprises: 8 oral cavity subregion, 8 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 mode, the calculated amount is reduced, and meanwhile the relative positions of the oral cavity areas are considered, so that the efficiency and the accuracy of 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 and angular velocity data of the electric toothbrush in an oral cavity area, wherein the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope which are arranged on the electric toothbrush respectively, the acceleration data comprise first direction acceleration data, second direction acceleration data and third direction acceleration data, and the angular velocity data comprise first direction angular velocity data, second direction angular velocity data and third direction angular velocity 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 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. Specifically, the acceleration data of the current moment can be directly acquired by arranging a three-axis accelerometer on the electric toothbrush, and the angular velocity data of the current moment can be directly acquired by arranging a gyroscope. It is understood that acceleration data in three directions and angular velocity data in three directions are acquired for subsequent further processing.

And 104, performing smooth filtering on the acceleration data and the angular velocity data respectively to obtain target acceleration data and target angular velocity 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 intercepted after the acceleration data in the first direction and the acceleration data in the second direction are subjected to smooth filtering, and the target angular velocity data are smooth angular velocity data obtained after the angular velocity data are subjected to smooth filtering. 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 performing a smoothing filtering algorithm on the first direction acceleration data and the second direction acceleration data, so that the first target data and the second target data are smoother, and the accuracy of identification can be improved based on the first target data and the second target data.

And 106, performing attitude fusion processing on the target acceleration data and the target angular velocity data to obtain a target rolling 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 roll angle is an index that reflects the magnitude of the angle at which the brush face rotates about the axis of the electric toothbrush.

Specifically, the specific process of the gesture 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 and obtain a target roll 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 the target roll angle index, 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 roll 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 subregion includes: 8 oral cavity subregion, 8 oral cavity subregions are: an upper left inner region, an upper left outer region, a lower left inner region, a lower left outer region, an upper right inner region, an upper right outer region, a lower right inner region, and a lower 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 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, the target rolling angle is a distance between the target acceleration data and the target angular velocity after attitude fusion, double data of the acceleration and the angular velocity are fused, and a rotation angle change trend of the toothbrush surface is reflected, so that a direction change trend corresponding to an oral cavity area corresponding to the acceleration data, namely a relative direction of the oral cavity area, can be determined based on the positive and negative of the target rolling angle, and meanwhile, an angle change amplitude can be further determined according to the size relation between the target rolling angle and a first preset threshold range and the size relation between the target rolling angle and a second preset threshold range, so that the actual directions under 8 preset oral cavity sub-areas are accurately determined, namely the oral cavity sub-areas corresponding to the acceleration data. In the embodiment, the oral cavity sub-area of the current toothbrush work is identified in a relatively subdivided manner only according to the acceleration data, the angular velocity 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 area is considered, so that the efficiency and the accuracy of identifying the oral cavity area are improved.

Firstly, acquiring acceleration data and angular velocity data of the electric toothbrush in an oral area, wherein the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope which are arranged on the electric toothbrush respectively, the acceleration data comprise first direction acceleration data, second direction acceleration data and third direction acceleration data, and the angular velocity data comprise first direction angular velocity data, second direction angular velocity data and third direction angular velocity data; then, smoothing filtering is carried out on the acceleration data and the angular velocity data respectively to obtain target acceleration data and target angular velocity 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 and the target angular velocity data to obtain a target roll angle; then, a first preset threshold range and a second preset threshold range corresponding to the target roll angle are obtained, and a preset first threshold corresponding to first target data is obtained; finally, determining an oral cavity subregion 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, wherein the oral cavity subregion comprises: 8 oral cavity subregion, 8 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 mode, the calculated amount is reduced, and meanwhile the relative positions of the oral cavity areas are considered, so that the efficiency and the accuracy of 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.

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, under the condition that 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, 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 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 an upper 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 an upper 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.

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 roll angle, and then the relationship between the absolute value of the first target data and the first preset threshold is combined, so that the oral cavity sub-region corresponding to the acceleration data is uniquely determined from 3 direction dimensions (up and down, left and right, and inside and outside), the fine distinguishing and identification of the oral cavity region are realized, and the accuracy of the identification 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 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:

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.

It should be noted that, first, according to the Y-axis initial acceleration at the brushing start time and the X-axis acceleration data during the brushing process, it is determined whether the oral cavity sub-region corresponding to the acceleration data is the left region or the right region, then, according to the positive and negative of the target roll angle and the magnitude relationship between the absolute value of the target roll angle and the first preset threshold range and the second preset threshold range, the oral cavity sub-region corresponding to the acceleration data is uniquely and accurately determined, and all under the precondition that the Y-axis acceleration is not triggered during the brushing process, that is, under the condition that the Y-axis acceleration is smaller than the second preset threshold during the brushing process, otherwise, the identification result of the oral cavity region has an error.

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 and the target angular velocity 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 method comprises the steps of respectively obtaining first direction acceleration data, second direction acceleration data and third direction acceleration data, or respectively obtaining first direction angular velocity data, second direction angular velocity data and third direction angular velocity data, wherein the output of the method is normalized target acceleration data or target angular velocity 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.

Step 106B: and performing weighted fusion calculation on the normalized target acceleration data and the normalized target angular velocity data to obtain the target roll 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 and the target angular velocity data are respectively determined, after the target acceleration data and the target angular velocity data are multiplied by the corresponding weights, the result obtained by the accumulation operation is the target rolling angle, and therefore the target acceleration data and the target angular velocity data are converted into attitude angle data, the target rolling angle comprises data information corresponding to the target acceleration data and the target angular velocity data, the target rolling angle information is more accurate and concise, the calculated amount is reduced, and the oral cavity area identification efficiency is improved.

The method for performing the attitude fusion processing on the target acceleration data and the target angular velocity data enables the target roll angle information to be more accurate and concise, so that the calculated amount is reduced, and the efficiency of oral cavity area identification is improved.

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 8 oral subregions and the tooth brushing strength of the 8 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 a user corresponding to the tooth brushing habit to 8 sub-areas 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 and angular velocity data of the electric toothbrush in an oral cavity region, where the acceleration data and the angular velocity data are acquired through a three-axis accelerometer and a gyroscope disposed on the electric toothbrush, respectively, and the acceleration data includes first direction acceleration data, second direction acceleration data, and third direction acceleration data, and the angular velocity data includes first direction angular velocity data, second direction angular velocity data, and third direction angular velocity data;

a filtering processing module 804, configured to perform smoothing filtering on the acceleration data and the angular velocity data to obtain target acceleration data and target angular velocity 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 and the target angular velocity data to obtain a target roll 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;

a region identification module 810, configured to determine, according to the target roll angle, the first target data, the second target data, the first preset threshold range, the second preset threshold range, and the first preset threshold, an oral cavity sub-region corresponding to the acceleration data, where the oral cavity sub-region includes: 8 oral cavity subregion, 8 oral cavity subregions are: an upper left inner region, an upper left outer region, a lower left inner region, a lower left outer region, an upper right inner region, an upper right outer region, a lower right inner region, and a lower 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.

In one embodiment, the first directional acceleration data is X-axis acceleration data and the second directional acceleration is Z-axis acceleration data;

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;

and the eight-region identification unit is used for identifying the oral cavity sub-region corresponding to the acceleration data as the lower left inner 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.

In one embodiment, the fusion processing module includes:

the normalization processing unit is used for respectively normalizing the target acceleration data and the target angular velocity data;

and the fusion processing unit is used for performing weighted fusion calculation on the normalized target acceleration data and the normalized target angular velocity data to obtain the target roll 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 8 oral subregions and the tooth brushing strength of the 8 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.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:口腔区域识别方法、装置、计算机设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!