Toothbrush working area identification method and device, electronic equipment and storage medium

Through the combination of gyroscope and sensor, the working area of ​​the electric toothbrush is judged using attitude information and distance matrix, which solves the problem of electric toothbrush distinguishing the left outer side, right inner side, right outer side and left inner side areas, improving cleaning ability and user experience.

CN120495622APending Publication Date: 2025-08-15WEELSENSE TECHNOLOGIES DONGGUAN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510500440.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the prior art, it is difficult for electric toothbrushes to accurately distinguish the left outer area and the right inner area, as well as the right outer area and the left inner area, resulting in a decline in user experience.

Method used

The posture information of the electric toothbrush is obtained through a gyroscope, and combined with the distance matrix measured by the sensor, the distance distribution variable and preset threshold are used to determine the specific working area, including the use of a six-axis gyroscope and a spectral sensor for infrared light ranging, eliminating noise interference, and achieving accurate identification.

Benefits of technology

It improves the cleaning ability and user experience of electric toothbrushes, ensuring that the electric toothbrush can correctly identify the left outer, right inner, right outer and left inner areas, avoiding area identification incorrectly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120495622A_ABST
    Figure CN120495622A_ABST
Patent Text Reader

Abstract

The invention discloses an identification method and device of a toothbrush working area, electronic equipment and a storage medium, and relates to the technical field of data processing, and the identification method of the toothbrush working area comprises the following steps: obtaining posture information of an electric toothbrush; under the condition of determining that the electric toothbrush works in the left outer side area or the right inner side area based on the posture information, if the first distance distribution variable is greater than a first threshold value, judging that the electric toothbrush works in the left outer side area, otherwise, judging that the electric toothbrush works in the right inner side area; under the condition that it is determined that the electric toothbrush works in a right outer side area or a left inner side area based on the posture information, if the second distance distribution variable is larger than a second threshold value, it is judged that the electric toothbrush works in the right outer side area, otherwise, it is judged that the electric toothbrush works in the left inner side area, and a first distance matrix and a second distance matrix are measured through a sensor; and the left outer side area and the right inner side area as well as two groups of areas, namely the right outer side area and the left inner side area, are accurately identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for identifying a toothbrush working area. Background Art

[0002] In the existing technology, electric toothbrushes usually detect and identify the working area in real time, and adjust their own parameters according to the corresponding working area, thereby improving the user experience. However, in the existing technology's identification of the working area, the two groups of areas, the left outer area and the right inner area, and the right outer area and the left inner area, are difficult to distinguish only through a gyroscope, which makes it easy to confuse the left outer area and the right inner area, and the right outer area and the left inner area, causing the electric toothbrush to be unable to correctly identify its working area, thereby affecting the user's actual experience. Summary of the Invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a method, device, electronic device, and storage medium for identifying a toothbrush working area, which can correctly identify two groups of areas: the left outer area and the right inner area, as well as the right outer area and the left inner area.

[0004] The method for identifying the working area of a toothbrush according to the first aspect of the present application includes:

[0005] Acquiring posture information of the electric toothbrush through the gyroscope;

[0006] In a case where it is determined based on the posture information that the electric toothbrush is operating in the left outer area or the right inner area, a first distance matrix is obtained through the sensor, the first distance matrix is calculated and processed to obtain a first distance distribution variable, and the first distance distribution variable is compared with a preset first threshold value. If the first distance distribution variable is greater than the first threshold value, it is determined that the electric toothbrush is operating in the left outer area; if the first distance distribution variable is less than or equal to the first threshold value, it is determined that the electric toothbrush is operating in the right inner area;

[0007] When it is determined based on the posture information that the electric toothbrush is working in the right outer area or the left inner area, a second distance matrix is obtained through the sensor, the second distance matrix is calculated and processed to obtain a second distance distribution variable, and the second distance distribution variable is compared with a preset second threshold. If the second distance distribution variable is greater than the second threshold, it is judged that the electric toothbrush is working in the right outer area. If the second distance distribution variable is less than or equal to the second threshold, it is judged that the electric toothbrush is working in the left inner area.

[0008] The method for identifying the working area of a toothbrush according to the embodiment of the present application has at least the following beneficial effects: by obtaining posture information, it is determined whether the working area of the electric toothbrush at this time is the left outer area or the right inner area, or the right outer area or the left inner area, and then the working mode of the electric toothbrush is adjusted accordingly for different working areas, thereby improving the cleaning ability of the electric toothbrush and improving the user experience. The distance matrix between the sensor and the user's face is measured by the sensor, and the distance matrix is subjected to noise elimination processing to obtain a distance distribution variable, and then the size of the distance distribution variable and the preset threshold is used to determine whether it is located in the inner area or the outer area. In the case of determining that the electric toothbrush is working in the left outer area or the right inner area at this time, the first distance distribution variable and the first threshold are first used to determine the electric toothbrush. The specific working area of the electric toothbrush, that is, when the first distance distribution variable is greater than the first threshold, the working area of the electric toothbrush is determined to be the left outer area, and when the first distance distribution variable is less than or equal to the first threshold, the working area of the electric toothbrush is determined to be the right inner area. Similarly, when it is determined that the electric toothbrush is working in the right outer area or the left inner area at this time, the specific working area of the electric toothbrush is first determined by the second distance distribution variable and the second threshold, that is, when the second distance distribution variable is greater than the second threshold, the working area of the electric toothbrush is determined to be the right outer area, and when the second distance distribution variable is less than or equal to the second threshold, the working area of the electric toothbrush is determined to be the left inner area, thereby realizing accurate identification of the left outer area and the right inner area, as well as the right outer area and the left inner area, thereby ensuring the user experience.

[0009] According to some embodiments of the present application, the posture information includes a roll angle, and after obtaining the posture information of the electric toothbrush through the gyroscope, the method further includes:

[0010] comparing the roll angle with a preset first angle range;

[0011] If the roll angle is within the first angle range, it is determined that the electric toothbrush is operating in the left outer area or the right inner area.

[0012] According to some embodiments of the present application, after obtaining the posture information of the electric toothbrush through the gyroscope, the method further includes:

[0013] comparing the roll angle with a preset second angle range;

[0014] If the roll angle is within the second angle range, it is determined that the electric toothbrush is operating in the right outer area or the left inner area.

[0015] According to some embodiments of the present application, acquiring a first distance matrix through the sensor, and performing calculation processing on the first distance matrix to obtain a first distance distribution variable includes:

[0016] emitting infrared light by the sensor and receiving reflected infrared light by a detector of the sensor to obtain the first distance matrix;

[0017] Based on the dimension of the first distance matrix, presetting a first two-dimensional normal distribution coefficient matrix of the same dimension;

[0018] The first distance matrix and the first two-dimensional normal distribution coefficient matrix are correspondingly multiplied and then added to obtain the first distance distribution variable.

[0019] According to some embodiments of the present application, acquiring a second distance matrix through the sensor, and performing calculation processing on the second distance matrix to obtain a second distance distribution variable includes:

[0020] emitting infrared light by the sensor and receiving reflected infrared light by a detector of the sensor to obtain the second distance matrix;

[0021] Based on the dimension of the second distance matrix, presetting a second two-dimensional normal distribution coefficient matrix of the same dimension;

[0022] The second distance matrix and the second two-dimensional normal distribution coefficient matrix are correspondingly multiplied and then added to obtain the second distance distribution variable.

[0023] According to some embodiments of the present application, the posture information further includes a first pitch angle, and after obtaining the posture information of the electric toothbrush through the gyroscope, the method further includes:

[0024] comparing the first pitch angle with a preset second pitch angle;

[0025] If the first pitch angle is less than or equal to the second pitch angle, it is determined that the electric toothbrush is operating in the middle area;

[0026] If the first pitch angle is greater than the second pitch angle, it is determined that the electric toothbrush is operating in the side area.

[0027] According to some embodiments of the present application, after obtaining the posture information of the electric toothbrush through the gyroscope, the method further includes:

[0028] obtaining a first acceleration of the electric toothbrush by using the gyroscope;

[0029] If the component of the first acceleration in the vertical upward direction is positive, it is determined that the electric toothbrush is operating in the upper area;

[0030] If the component of the first acceleration in the vertical upward direction is a negative value, it is determined that the electric toothbrush is operating in the lower area.

[0031] The area recognition device according to the second embodiment of the present application is applied to an electric toothbrush, wherein the electric toothbrush is provided with the sensor and the gyroscope;

[0032] The device comprises:

[0033] a parameter acquisition module, configured to obtain posture information of the electric toothbrush through the gyroscope;

[0034] a first area recognition module configured to, when determining based on the posture information that the electric toothbrush is operating in the left outer area or the right inner area, obtain the first distance matrix through the sensor, perform calculation processing on the first distance matrix to obtain a first distance distribution variable, compare the first distance distribution variable with a first threshold, and if the first distance distribution variable is greater than the first threshold, determine that the electric toothbrush is operating in the left outer area; if the first distance distribution variable is less than or equal to the first threshold, determine that the electric toothbrush is operating in the right inner area;

[0035] The second area identification module is configured to obtain the second distance matrix through the sensor when it is determined that the electric toothbrush is working in the right outer area or the left inner area based on the posture information, calculate and process the second distance matrix, obtain the second distance distribution variable, and compare the second distance distribution variable with the second threshold value. If the second distance distribution variable is greater than the second threshold value, it is determined that the electric toothbrush is working in the right outer area; if the second distance distribution variable is less than or equal to the second threshold value, it is determined that the electric toothbrush is working in the left inner area.

[0036] According to the electronic device of the third aspect embodiment of the present application, the electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the toothbrush working area identification method described in the first aspect embodiment of the present application.

[0037] According to the computer-readable storage medium of the fourth aspect embodiment of the present application, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method for identifying the toothbrush working area described in the first aspect embodiment of the present application.

[0038] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0040] Figure 1 This is a flowchart of the steps of the toothbrush working area according to an embodiment of the present application;

[0041] Figure 2 This is a schematic diagram of the electric toothbrush according to an embodiment of the present application working in the left area;

[0042] Figure 3 This is a schematic diagram of the electric toothbrush according to an embodiment of the present application working in the right area;

[0043] Figure 4 This is a schematic diagram of the electric toothbrush according to an embodiment of the present application operating in the left outer area or the right inner area;

[0044] Figure 5 This is a schematic diagram of the electric toothbrush according to an embodiment of the present application operating in the right outer area or the left inner area;

[0045] Figure 6 A three-dimensional graph of a two-dimensional normal distribution coefficient matrix according to an embodiment of the present application;

[0046] Figure 7 A contour map of a two-dimensional normal distribution coefficient matrix according to an embodiment of the present application;

[0047] Figure 8 This is a schematic diagram of an electric toothbrush according to an embodiment of the present application operating in the middle area or the side area;

[0048] Figure 9 A schematic diagram of an electric toothbrush according to an embodiment of the present application operating in the upper area or the lower area;

[0049] Figure 10 A schematic structural diagram of a region identification device according to an embodiment of the second aspect;

[0050] Figure 11 This is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following describes in detail embodiments of the present application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and are not to be construed as limiting the present application.

[0052] In the description of this application, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, they cannot be understood as limitations on this application.

[0053] In the description of this application, "several" means one or more, "many" means more than two, "greater than," "less than," and "exceed" are understood to exclude the number itself, while "above," "below," and "within" are understood to include the number itself. The terms "first" and "second" are used solely to distinguish technical features and are not to be construed as indicating or implying relative importance, or as implicitly specifying the number or order of the technical features indicated.

[0054] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0055] Electric toothbrushes are now very popular. Their working area is divided into six zones: upper right, upper middle, upper left, lower right, lower middle, and lower left. The upper right, upper left, lower right, and lower left zones are each divided into the outer, chewing, and inner sides, while the upper middle and lower middle zones are each divided into the outer and inner sides, for a total of 16 zones, collectively referred to as "6 zones, 16 sides." The left outer and right inner zones, as well as the right outer and left inner zones, are difficult to identify and are often easily confused, causing the electric toothbrush to operate in a mode that does not match the working area, severely impacting the user experience.

[0056] Based on this, the present application proposes a method, device, electronic device and storage medium for identifying the working area of a toothbrush, aiming to correctly identify the two groups of areas: the left outer area and the right inner area, as well as the right outer area and the left inner area.

[0057] The first embodiment of the present application is based on Figure 1 Schematic diagram of how to identify the working area of a toothbrush. Figure 1 , Figure 1 This is a flowchart of the steps of the method for identifying the toothbrush working area according to an embodiment of the present application. Figure 1 The illustrated process steps include but are not limited to steps S101 to S103.

[0058] The toothbrush working area identification method of the present application is applied to an electric toothbrush, which includes a brush handle, bristles, a sensor and a gyroscope. The gyroscope is arranged in the brush handle, the bristles are arranged at one end of the brush handle, and the sensor is arranged on the side of the brush handle away from the bristles and close to the middle part of the brush handle, so that the infrared light of the sensor can illuminate a larger effective area. The sensor is a spectral sensor, which emits infrared light in the direction of the bristles.

[0059] Step S101: obtaining the posture information of the electric toothbrush through a gyroscope.

[0060] Step S102, when it is determined based on the posture information that the electric toothbrush is working in the left outer area or the right inner area, a first distance matrix is obtained through a sensor, the first distance matrix is calculated and processed to obtain a first distance distribution variable, and the first distance distribution variable is compared with a preset first threshold. If the first distance distribution variable is greater than the first threshold, it is determined that the electric toothbrush is working in the left outer area. If the first distance distribution variable is less than or equal to the first threshold, it is determined that the electric toothbrush is working in the right inner area.

[0061] Step S103, when it is determined based on the posture information that the electric toothbrush is working in the right outer area or the left inner area, a second distance matrix is obtained through the sensor, the second distance matrix is calculated and processed to obtain a second distance distribution variable, and the second distance distribution variable is compared with a preset second threshold. If the second distance distribution variable is greater than the second threshold, it is determined that the electric toothbrush is working in the right outer area. If the second distance distribution variable is less than or equal to the second threshold, it is determined that the electric toothbrush is working in the left inner area.

[0062] The method for identifying the working area of a toothbrush according to the embodiment of the present application has at least the following beneficial effects: by obtaining posture information, it is determined whether the working area of the electric toothbrush at this time is the left outer area or the right inner area, or the right outer area or the left inner area, and then the working mode of the electric toothbrush is adjusted accordingly for different working areas, thereby improving the cleaning ability of the electric toothbrush and improving the user experience. The distance matrix between the sensor and the user's face is measured by the sensor, and the distance matrix is subjected to noise elimination processing to obtain a distance distribution variable, and then the size of the distance distribution variable and the preset threshold is used to determine whether it is located in the inner area or the outer area. In the case of determining that the electric toothbrush is working in the left outer area or the right inner area at this time, the first distance distribution variable and the first threshold are first used to determine the electric toothbrush. The specific working area of the electric toothbrush, that is, when the first distance distribution variable is greater than the first threshold, the working area of the electric toothbrush is determined to be the left outer area, and when the first distance distribution variable is less than or equal to the first threshold, the working area of the electric toothbrush is determined to be the right inner area. Similarly, when it is determined that the electric toothbrush is working in the right outer area or the left inner area at this time, the specific working area of the electric toothbrush is first determined by the second distance distribution variable and the second threshold, that is, when the second distance distribution variable is greater than the second threshold, the working area of the electric toothbrush is determined to be the right outer area, and when the second distance distribution variable is less than or equal to the second threshold, the working area of the electric toothbrush is determined to be the left inner area, thereby realizing accurate identification of the left outer area and the right inner area, as well as the right outer area and the left inner area, thereby ensuring the user experience.

[0063] In step S101 of some embodiments, the sensor is a spectral sensor, and the gyroscope is a six-axis gyroscope. The six-axis gyroscope is an integrated circuit composed of three acceleration spectral sensors and three acceleration spectral sensors, which is convenient for measuring the rotation speed and acceleration of the three axes of the electric toothbrush X axis, Y axis and Z axis, wherein the reference Figure 9 The direction in which the bristles extend is the Z axis, the direction in which the handle extends is the X axis, and the direction perpendicular to the Z and X axes is the Y axis. The steps for acquiring attitude information are as follows: first, the angular velocity and acceleration are acquired through a gyroscope, the angular velocity is integrated to obtain a first angle, the acceleration is converted into an angle to obtain a second angle, the first and second angles are fused using a Kalman filter to obtain a third angle, the third angle is converted into a quaternion, and the quaternion is converted into an Euler angle to obtain an attitude angle. The attitude angle is the attitude information of the electric toothbrush. The acquisition of attitude information facilitates the subsequent determination of the working area. The attitude angle includes the heading angle, the first pitch angle, and the roll angle.

[0064] In some embodiments, reference Figure 4 and Figure 5The spectral sensor emits multiple infrared lights toward the user's face. After the infrared lights reach the user's face, they are reflected back to the spectral sensor and then received by the spectral sensor. Based on the multiple infrared lights reflected back to the spectral sensor, the first distance matrix or the second distance matrix is measured. Since the infrared light reflected back by the toothbrush when working in the inner and outer areas is different, the outer infrared light illuminates the side of the user's face. Most of the infrared light in this area will not be reflected back to the spectral sensor. Therefore, only a few infrared lights are reflected back to the spectral sensor. The inner infrared light illuminates the user's mouth and side of the face. More infrared light is reflected back to the spectral sensor. Therefore, the reflected infrared light received by the inner side is more than that of the outer side. The distance of the infrared light that is not reflected back to the spectral sensor is considered to be infinite. Therefore, the distance matrix measured on the outer side is significantly larger than the distance matrix measured on the inner side. Therefore, this difference is used to identify the two groups of areas: the left outer area and the right inner area, and the right outer area and the left inner area. The first distance matrix and the second distance matrix are calculated and processed to obtain the first distance distribution variable and the second distance distribution variable respectively, in order to eliminate edge interference and noise, which is more conducive to accurate identification of the area. After the calculation and processing, the inner distance distribution variable is only used to eliminate edge interference and noise, so its value is still greater than the outer distance distribution variable. Therefore, for the identification of the left outer area and the right inner area, when the first distance distribution variable is greater than the first threshold, the electric toothbrush working area is judged to be on the left outer side, and when the first distance distribution variable is less than or equal to the first threshold, the electric toothbrush working area is judged to be on the right inner side; and for the identification of the right outer area and the left inner area, when the second distance distribution variable is greater than the second threshold, the electric toothbrush working area is judged to be on the right outer side, and when the second distance distribution variable is less than or equal to the second threshold, the electric toothbrush working area is judged to be on the left inner side. In this way, the identification of the left outer area and the right inner area, and the right outer area and the left inner area is achieved.

[0065] It should be noted that the first threshold is obtained based on the actual working areas corresponding to multiple sets of first distance distribution variables, and the second threshold is obtained based on the actual working areas corresponding to multiple sets of second distance distribution variables.

[0066] In some embodiments, step S102 may include but is not limited to steps S201 to S203.

[0067] Step S201 : A sensor emits infrared light, and a detector of the sensor receives reflected infrared light to obtain a first distance matrix.

[0068] Step S202: Based on the dimension of the first distance matrix, a first two-dimensional normal distribution coefficient matrix of the same dimension is preset.

[0069] Step S203 : multiplying the first distance matrix and the first two-dimensional normal distribution coefficient matrix correspondingly and then adding them together to obtain a first distance distribution variable.

[0070] In step S201 of some embodiments, referring to Figure 4 The sensor includes an infrared emitter and a detector. The infrared emitter is used to emit infrared light. Part of the infrared light is reflected back to the spectrum sensor after reaching the user's face. The detector receives the reflected infrared light and generates a corresponding first distance matrix based on the received infrared light.

[0071] In step S202 of some embodiments, the dimension of the first distance matrix is obtained, and a first two-dimensional normal distribution coefficient matrix of the same dimension is constructed.

[0072] In step S203 of some embodiments, the first distance matrix and the first two-dimensional normal distribution coefficient matrix are first multiplied correspondingly, and then the elements in the multiplied matrices are added to obtain the first distance distribution variable, wherein the first distance matrix and the first two-dimensional normal distribution coefficient matrix have the same number of rows and columns. The specific calculation formula is:

[0073]

[0074] In this formula, Y is the first distance distribution variable, X is the first distance matrix, C is the first two-dimensional normal distribution coefficient matrix, m is the number of rows of the first distance distribution variable and the first two-dimensional normal distribution coefficient matrix, and n is the number of columns of the first distance distribution variable and the first two-dimensional normal distribution coefficient matrix.

[0075] In the embodiment of the present application, steps S201 to S203 are performed by constructing a first two-dimensional normal distribution coefficient matrix of the same dimension as the first distance matrix, and multiplying and adding the two together to eliminate edge interference and noise in the first distance matrix, thereby facilitating accurate identification of the left outer area and the right inner area, and ensuring the user experience. The specific steps are as follows: First, a two-dimensional normal distribution function is constructed. The form of the two-dimensional normal distribution is as follows:

[0076]

[0077] Where N(x|μ,∑) is the two-dimensional normal distribution function, u is the mean, and u∈R 2 , ∑ is a second-order real symmetric positive definite matrix representing the covariance matrix, and X is the independent variable.

[0078] Get the dimension of the first distance matrix, assuming it is arranged in 10*10, and generate the first two-dimensional normal distribution coefficient matrix of [10,10] with the same dimension as the first distance matrix. The mean u can be [5,5], and ∑ can be [2 1; 1; 4]. The three-dimensional graph and contour map of the first two-dimensional normal distribution coefficient matrix refer to Figure 6and Figure 7 From this, we can see that the first two-dimensional normal distribution coefficient matrix primarily reduces the weight of edge data and smoothes the first distance matrix. Finally, after multiplying the first distance matrix and the first two-dimensional normal distribution coefficient matrix, the elements of the resulting matrix are summed to obtain the first distance distribution variable. Because infrared light from the left outer region illuminates the left side of the face, while infrared light from the right inner region illuminates the right side of the face and right mouth, the infrared light reflects back to the spectral sensor after reaching the user's face. Therefore, the left outer region reflects less infrared light than the right inner region. If no infrared light is reflected back to the spectral sensor, the measured distance is considered infinite. Therefore, the first distance matrix of the left outer region is larger than that of the right inner region. After calculating the first distance matrices of the left outer and right inner regions with the first two-dimensional normal distribution coefficient matrix, the first distance distribution variable of the left outer region should also be larger than that of the right inner region. Therefore, this difference can be used to distinguish the left outer and right inner regions.

[0079] It should be noted that the values of u and ∑ are adjusted according to the final recognition effect.

[0080] In some embodiments, step S103 may include but is not limited to steps S301 to S303.

[0081] Step S301: A sensor emits infrared light, and a detector of the sensor receives reflected infrared light to obtain a second distance matrix.

[0082] Step S302: Based on the dimension of the second distance matrix, a second two-dimensional normal distribution coefficient matrix of the same dimension is preset.

[0083] Step S303 : multiplying the second distance matrix and the second two-dimensional normal distribution coefficient matrix correspondingly and then adding them together to obtain a second distance distribution variable.

[0084] In step S301 of some embodiments, referring to Figure 5 The spectral sensor includes an infrared emitter and a detector. The infrared emitter is used to emit infrared light. Part of the infrared light is reflected back to the spectral sensor after reaching the user's face. The detector receives the reflected infrared light and measures the corresponding second distance matrix.

[0085] In step S302 of some embodiments, the dimension of the second distance matrix is obtained, and a second two-dimensional normal distribution coefficient matrix of the same dimension is constructed.

[0086] In step S303 of some embodiments, the second distance matrix is first multiplied by the second two-dimensional normal distribution coefficient matrix, and then the numbers in the multiplied matrices are added to obtain the second distance distribution variable.

[0087] In steps S301 to S303 shown in the embodiment of the present application, a second two-dimensional normal distribution coefficient matrix of the same dimension as the second distance matrix is constructed, and after the two are correspondingly multiplied, the elements in the multiplied matrix are added to obtain a second distance distribution variable. This eliminates edge interference and noise in the second distance matrix, facilitates accurate identification of the right outer area and the left inner area, and ensures a better user experience. The calculation formula for the second distance distribution variable is the same as that for the first distance distribution variable.

[0088] Get the dimension of the second distance matrix, assuming it is arranged in 10*10, and generate a second two-dimensional normal distribution coefficient matrix of [10,10] with the same dimension as the second distance matrix. The mean u can be [5,5], and Σ can be [2 1; 1; 4]. The three-dimensional graph and contour map of the second two-dimensional normal distribution coefficient matrix refer to Figure 6 and Figure 7 From this, we can see that the second two-dimensional normal distribution coefficient matrix primarily reduces the weight of edge data and smoothes the second distance matrix. Finally, after multiplying the first distance matrix by the second two-dimensional normal distribution coefficient matrix, the elements of the resulting matrices are summed to obtain the second distance distribution variable. Because infrared light from the right outer region illuminates the right side of the face, while infrared light from the left inner region illuminates the left side of the face and the left mouth, the infrared light reflects back to the spectral sensor after reaching the user's face. Therefore, the right outer region reflects less infrared light than the left inner region. If no infrared light is reflected back to the spectral sensor, the measured distance is considered infinite. Therefore, the first distance matrix for the right outer region is larger than the second distance matrix for the left inner region. After calculating the second distance matrices of the right and left inner regions with the second two-dimensional normal distribution coefficient matrix, the second distance distribution variable for the right outer region should also be larger than that for the left inner region. Therefore, this difference can be used to distinguish the right outer region from the left inner region.

[0089] In some embodiments, step S101 may also include but not limited to steps S401 to S402.

[0090] Step S401: Compare the roll angle with a preset first angle range.

[0091] Step S402: If the roll angle is within the first angle range, it is determined that the electric toothbrush is operating in the left outer area or the right inner area.

[0092] In step S401 of some embodiments, referring to Figure 2 and Figure 3 By collecting the brushing habits of a large number of people, we can obtain the approximate range of the roll angle when the electric toothbrush works in the left outer area or the right inner area, that is, the first angle range, and compare the roll angle with the first angle range.

[0093] In step S402 of some embodiments, when it is identified that the roll angle is within the first angle range, it can be determined that the electric toothbrush is currently operating in the left outer area or the right inner area.

[0094] In steps S401 to S402 shown in the embodiment of the present application, the left outer area and the right inner area are distinguished by comparing the roll angle with the first angle range, thereby avoiding confusion in area recognition.

[0095] In some embodiments, step S101 may also include but not limited to steps S501 to S502.

[0096] Step S501: Compare the roll angle with a preset second angle range.

[0097] Step S502: If the roll angle is within the second angle range, it is determined that the electric toothbrush is operating in the right outer area or the left inner area.

[0098] In step S501 of some embodiments, referring to Figure 2 and Figure 3 By collecting the brushing habits of a large number of people, we can obtain the approximate range of the roll angle when the electric toothbrush works in the right outer area or the left inner area, that is, the second angle range, and compare the roll angle with the second angle range.

[0099] In step S502 of some embodiments, when it is identified that the roll angle is within the second angular range, it can be determined that the electric toothbrush is currently operating in the right outer area or the left inner area.

[0100] In steps S501 to S502 of the embodiment of the present application, the right outer area and the left inner area are distinguished by comparing the roll angle with the second angular range, thereby avoiding confusion in area recognition.

[0101] In some embodiments, the method further includes identifying a left chewing side region and a right chewing side region, referring to Figure 2 and Figure 3 It can be seen that the directions of the roll angles in the left chewing side area and the right chewing side area are different. Therefore, the identification steps can be: when the roll angle rolls to the left and the roll angle is within the preset third angle range, it is judged that the electric toothbrush is working in the left chewing side area, and when the roll angle rolls to the right and the roll angle is within the preset third angle range, it is judged that the electric toothbrush is working in the right chewing side area, thereby identifying the left chewing side area and the right chewing side area.

[0102] In some embodiments, step S101 may also include but not limited to steps S601 to S603.

[0103] Step S601: Compare the first pitch angle with a preset second pitch angle.

[0104] Step S602: If the first pitch angle is less than or equal to the second pitch angle, it is determined that the electric toothbrush is operating in the middle area.

[0105] Step S603: If the first pitch angle is greater than the second pitch angle, it is determined that the electric toothbrush is operating in the side area.

[0106] In step S601 of some embodiments, referring to Figure 8 By collecting the brushing habits of a large number of people, we can obtain the approximate pitch angles of the electric toothbrush when it works in the middle area and the side area, and then derive the threshold angle for distinguishing the middle area and the side area, that is, the second pitch angle, and compare the first pitch angle with the second pitch angle.

[0107] In step S602 of some embodiments, when the first pitch angle is less than or equal to the second pitch angle, it can be considered that the electric toothbrush is operating in the middle area.

[0108] In step S603 of some embodiments, when the first pitch angle is greater than the second pitch angle, it can be considered that the electric toothbrush is working in the side area.

[0109] Steps S601 to S603 of the embodiment of the present application refer to Figure 8 It can be seen that the first pitch angle of the middle area when users use an electric toothbrush is generally smaller than the first pitch angle of the side area. The second pitch angle can be set according to this difference to achieve recognition of the middle area and the side area.

[0110] In some embodiments, step S101 may also include but not limited to steps S701 to S703.

[0111] Step S701: obtaining a first acceleration of the electric toothbrush through a gyroscope.

[0112] Step S702: If the component of the first acceleration in the vertical upward direction is positive, it is determined that the electric toothbrush is operating in the upper area.

[0113] Step S703: If the component of the first acceleration in the vertical upward direction is a negative value, it is determined that the electric toothbrush is operating in the lower area.

[0114] In step S701 of some embodiments, the acceleration of the electric toothbrush in the Y-axis direction is obtained by a gyroscope to obtain a first acceleration.

[0115] In step S702 of some embodiments, the first acceleration is calculated along the vertical component. If the vertical upward component of the first acceleration is positive, it can be considered that the electric toothbrush is operating in the upper area.

[0116] In step S703 of some embodiments, if the component of the second acceleration in the vertical direction is negative, it can be considered that the electric toothbrush is operating in the lower area.

[0117] Steps S701 to S703 of the embodiment of the present application refer to Figure 9 The Y-axis is the extension direction of the bristles. When the electric toothbrush works in the upper area, the direction of the bristles is biased upward, and when working in the lower area, the direction of the bristles is biased downward. Therefore, it can be seen that the direction of the Y-axis acceleration of the electric toothbrush working in the upper area and the lower area should be quite different. Therefore, the direction of the vertical component of the first acceleration can be used to distinguish the upper area and the lower area to avoid confusion in the identification of the upper and lower areas.

[0118] Reference Figure 10 , Figure 10 This is a structural diagram of a region recognition device according to an embodiment of the second aspect of the present application. The region recognition device according to the embodiment of the present application is applied to an electric toothbrush, and the region recognition device includes:

[0119] The parameter acquisition module 1001 is configured to obtain the posture information of the electric toothbrush through the gyroscope;

[0120] The first region identification module 1002 is configured to, when it is determined based on the posture information that the electric toothbrush is operating in the left outer region or the right inner region, obtain a first distance matrix through a spectral sensor, perform calculations on the first distance matrix to obtain a first distance distribution variable, compare the first distance distribution variable with a first threshold, and if the first distance distribution variable is greater than the first threshold, determine that the electric toothbrush is operating in the left outer region; if the first distance distribution variable is less than or equal to the first threshold, determine that the electric toothbrush is operating in the right inner region;

[0121] The second area identification module 1003 is configured to obtain a second distance matrix through a spectral sensor when it is determined that the electric toothbrush is working in the right outer area or the left inner area based on the posture information, calculate and process the second distance matrix, obtain a second distance distribution variable, and compare the second distance distribution variable with a second threshold value. If the second distance distribution variable is greater than the second threshold value, it is determined that the electric toothbrush is working in the right outer area; if the second distance distribution variable is less than or equal to the second threshold value, it is determined that the electric toothbrush is working in the left inner area.

[0122] In an embodiment of the present application, by acquiring posture information, it is determined whether the working area of the electric toothbrush at this time is the left outer area or the right inner area, or the right outer area or the left inner area, and then the working mode of the electric toothbrush is adjusted accordingly for different working areas, thereby improving the cleaning ability of the electric toothbrush and improving the user experience. The distance matrix between the sensor and the user's face is measured by the sensor, and the distance matrix is subjected to noise elimination processing to obtain a distance distribution variable, and then the size of the distance distribution variable and the preset threshold is used to determine whether it is located in the inner area or the outer area. When it is determined that the electric toothbrush is working in the left outer area or the right inner area at this time, the specific working area of the electric toothbrush is first determined by the first distance distribution variable and the first threshold, that is, When the first distance distribution variable is greater than the first threshold, the working area of the electric toothbrush is determined to be the left outer area. When the first distance distribution variable is less than or equal to the first threshold, the working area of the electric toothbrush is determined to be the right inner area. Similarly, when it is determined that the electric toothbrush is working in the right outer area or the left inner area, the specific working area of the electric toothbrush is first determined by the second distance distribution variable and the second threshold. That is, when the second distance distribution variable is greater than the second threshold, the working area of the electric toothbrush is determined to be the right outer area. When the second distance distribution variable is less than or equal to the second threshold, the working area of the electric toothbrush is determined to be the left inner area. This achieves accurate identification of the two groups of areas, the left outer area and the right inner area, and the right outer area and the left inner area, thereby ensuring the user experience. By adopting the toothbrush working area identification method of the embodiment of the present application, the situation of confused area identification when the electric toothbrush is working is avoided, and the two groups of areas, the left outer area and the right inner area, and the right outer area and the left inner area, can be correctly identified, thereby ensuring the user experience.

[0123] The third aspect of the present application further provides an electronic device, comprising a memory 1102 and a processor 1101. The memory 1102 stores a computer program, and the processor 1101 executes the computer program to implement the toothbrush working area identification method according to the first aspect. The electronic device can be any smart terminal, including a tablet computer and an in-vehicle computer.

[0124] Reference Figure 11 , Figure 11 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment. The electronic device includes:

[0125] The processor 1101 can be implemented as a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0126] The memory 1102 can be implemented in the form of a read-only memory, a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1102 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1102 and is called by the processor 1101 to execute the television frame laser method of the embodiment of this application;

[0127] Input / output interface 1103, used to implement information input and output;

[0128] Communication interface 1104, used to implement communication interaction between this device and other devices, which can be achieved through wired communication or wireless communication;

[0129] bus 1105, which transmits information between the various components of the device;

[0130] The processor 1101 , the memory 1102 , the input / output interface 1103 and the communication interface 1104 are connected to each other in communication within the device via a bus 1105 .

[0131] The fourth embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method for identifying the toothbrush working area of the first embodiment mentioned above.

[0132] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0133] The embodiments described in the embodiments of this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0134] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0135] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.

[0136] Those skilled in the art will appreciate that all or some of the steps in the methods, systems, and functional modules / units in the devices disclosed above may be implemented as software, firmware, hardware, or appropriate combinations thereof.

[0137] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0138] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0139] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0140] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0141] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0142] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes multiple instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: various media that can store programs, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0143] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and essence of the present invention should be within the scope of the present invention.

Claims

1. A method for identifying a toothbrush working area, characterized in that: Applied to an electric toothbrush, the electric toothbrush is provided with a sensor and a gyroscope; The method comprises: Acquiring posture information of the electric toothbrush through the gyroscope; In a case where it is determined based on the posture information that the electric toothbrush is operating in the left outer area or the right inner area, a first distance matrix is obtained through the sensor, the first distance matrix is calculated and processed to obtain a first distance distribution variable, and the first distance distribution variable is compared with a preset first threshold value. If the first distance distribution variable is greater than the first threshold value, it is determined that the electric toothbrush is operating in the left outer area; if the first distance distribution variable is less than or equal to the first threshold value, it is determined that the electric toothbrush is operating in the right inner area; When it is determined based on the posture information that the electric toothbrush is working in the right outer area or the left inner area, a second distance matrix is obtained through the sensor, the second distance matrix is calculated and processed to obtain a second distance distribution variable, and the second distance distribution variable is compared with a preset second threshold. If the second distance distribution variable is greater than the second threshold, it is judged that the electric toothbrush is working in the right outer area. If the second distance distribution variable is less than or equal to the second threshold, it is judged that the electric toothbrush is working in the left inner area.

2. The method for identifying a toothbrush working area according to claim 1, characterized in that: The posture information includes a roll angle. After the posture information of the electric toothbrush is obtained by the gyroscope, the method further includes: comparing the roll angle with a preset first angle range; If the roll angle is within the first angle range, it is determined that the electric toothbrush is operating in the left outer area or the right inner area.

3. The method for identifying a toothbrush working area according to claim 2, wherein: After obtaining the posture information of the electric toothbrush through the gyroscope, the method further includes: comparing the roll angle with a preset second angle range; If the roll angle is within the second angle range, it is determined that the electric toothbrush is operating in the right outer area or the left inner area.

4. The method for identifying a toothbrush working area according to claim 1, wherein: The step of acquiring a first distance matrix through the sensor and performing calculation processing on the first distance matrix to obtain a first distance distribution variable includes: emitting infrared light by the sensor and receiving reflected infrared light by a detector of the sensor to obtain the first distance matrix; Based on the dimension of the first distance matrix, presetting a first two-dimensional normal distribution coefficient matrix of the same dimension; The first distance matrix and the first two-dimensional normal distribution coefficient matrix are correspondingly multiplied and then added to obtain the first distance distribution variable.

5. The method for identifying a toothbrush working area according to claim 1, characterized in that: The step of acquiring a second distance matrix through the sensor and performing calculation processing on the second distance matrix to obtain a second distance distribution variable includes: emitting infrared light by the sensor and receiving reflected infrared light by a detector of the sensor to obtain the second distance matrix; Based on the dimension of the second distance matrix, presetting a second two-dimensional normal distribution coefficient matrix of the same dimension; The second distance matrix and the second two-dimensional normal distribution coefficient matrix are correspondingly multiplied and then added to obtain the second distance distribution variable.

6. The method for identifying a toothbrush working area according to claim 1, characterized in that: The posture information further includes a first pitch angle. After acquiring the posture information of the electric toothbrush through the gyroscope, the method further includes: comparing the first pitch angle with a preset second pitch angle; If the first pitch angle is less than or equal to the second pitch angle, it is determined that the electric toothbrush is operating in the middle area; If the first pitch angle is greater than the second pitch angle, it is determined that the electric toothbrush is operating in the side area.

7. The method for identifying a toothbrush working area according to claim 1, characterized in that: After obtaining the posture information of the electric toothbrush through the gyroscope, the method further includes: obtaining a first acceleration of the electric toothbrush by using the gyroscope; If the component of the first acceleration in the vertical upward direction is positive, it is determined that the electric toothbrush is operating in the upper area; If the component of the first acceleration in the vertical upward direction is a negative value, it is determined that the electric toothbrush is operating in the lower area.

8. A region recognition device, characterized in that: Applied to an electric toothbrush, the electric toothbrush is provided with the sensor and the gyroscope; The device comprises: a parameter acquisition module, configured to obtain posture information of the electric toothbrush through the gyroscope; a first area recognition module configured to, when determining based on the posture information that the electric toothbrush is operating in the left outer area or the right inner area, obtain the first distance matrix through the sensor, perform calculation processing on the first distance matrix to obtain a first distance distribution variable, compare the first distance distribution variable with a first threshold, and if the first distance distribution variable is greater than the first threshold, determine that the electric toothbrush is operating in the left outer area; if the first distance distribution variable is less than or equal to the first threshold, determine that the electric toothbrush is operating in the right inner area; The second area identification module is configured to obtain the second distance matrix through the sensor when it is determined that the electric toothbrush is working in the right outer area or the left inner area based on the posture information, calculate and process the second distance matrix, obtain the second distance distribution variable, and compare the second distance distribution variable with the second threshold value. If the second distance distribution variable is greater than the second threshold value, it is determined that the electric toothbrush is working in the right outer area; if the second distance distribution variable is less than or equal to the second threshold value, it is determined that the electric toothbrush is working in the left inner area.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the toothbrush working area identification method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for identifying the toothbrush working area according to any one of claims 1 to 7 is implemented.