A method and device for traditional Chinese medicine health management through facial images

Facial images are collected through smart mirrors, combined with acne number and skin color diagnosis data, and the dialectical algorithm of traditional Chinese medicine is used to analyze the user's health status, which solves the problem of users being unable to accurately assess their own health status and realizes the provision of intelligent health management and health advice.

CN114612960BActive Publication Date: 2024-10-29GUILIN UNIV OF ELECTRONIC TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210134882.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-14
Publication Date
2024-10-29
Estimated Expiration
2042-02-14

AI Technical Summary

Technical Problem

Users cannot accurately know their health status when using smart mirrors. They lack health knowledge and comparison benchmarks, and it is difficult to accurately assess physical health status through facial images.

Method used

Through facial image collection and pre-stored standard user image matching, combined with acne number and diagnosed skin color data, the Chinese medicine dialectical algorithm is applied to analyze the user's health status, provide targeted suggestions, and display the current health status and fatigue status through the display device.

Benefits of technology

Users can understand their own health and fatigue status in real time through the smart mirror, obtain traditional Chinese medicine health advice, improve the accuracy and convenience of health management, and push relevant health knowledge to help users understand and improve their health status in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114612960B_ABST
    Figure CN114612960B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for TCM health management through facial images, including: acquiring the facial image of the current user through a camera; identifying the identity of the current user through the facial image; retrieving the standard health status data of the current user; retrieving the historical health status data of the current user; obtaining the current acne quantity data and the current diagnosed skin color of the current user according to the facial image; determining TCM health status recommendations for the current user according to the current acne quantity data, the current diagnosed skin color, the standard health status data, and the historical health status data. Through this technical solution, the user's health status and fatigue status can be quickly analyzed by collecting the user's facial image, and the user can be reminded through the display device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a method and device for performing traditional Chinese medicine health management through facial images. Background Art

[0002] With the advancement of artificial intelligence and Internet of Things technology, smart homes have cleverly integrated electronic intelligence, mechanical intelligence, and Internet of Things intelligence into home products on the basis of modern fashion furniture, making homes intelligent and humanized, and providing users with a more convenient and comfortable experience. In the prior art, smart mirrors, as a type of smart home, are increasingly widely used and have more and more functions. Many smart mirrors have been equipped with image acquisition devices such as cameras and can be connected to the Internet to achieve user face recognition, photo taking, virtual dressing and other display effects, which greatly meets the user's usage needs.

[0003] When people use smart mirrors, they can observe their own appearance and self-judge their mental state and status. They can also obtain facial images through smart mirrors, such as taking photos or recording videos, to realize some convenient functions and applications.

[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0005] When using a smart mirror, although users can make a preliminary assessment of their own state, they cannot accurately know their own physical health status due to the inability to compare with their previous self-state and the lack of relevant health knowledge. Therefore, how to enable users to accurately know their own health status while looking in the mirror or collecting facial images is a problem that needs to be solved. Summary of the invention

[0006] The embodiments of the present invention provide a method and device for TCM health management through facial images, so as to solve the problem in the prior art that users cannot accurately know their own health status when looking in the mirror or collecting facial images.

[0007] To achieve the above objectives, on the one hand, an embodiment of the present invention provides a method for TCM health management through facial images, comprising:

[0008] Collect the facial image of the current user;

[0009] Matching the facial image with a plurality of pre-stored standard user images to identify the identity of the current user;

[0010] Retrieving standard health status data of the current user, wherein the standard health status data includes standard acne quantity data and standard diagnosis skin color;

[0011] Retrieving historical health status data of the current user, wherein the historical health status data includes historical acne quantity data and historical diagnosed skin color;

[0012] Obtaining the current acne quantity data and the current diagnosed skin color of the current user according to the facial image;

[0013] Determine a TCM health status recommendation for the current user based on the current acne quantity data, the current diagnosed skin color, the standard health status data, and the historical health status data;

[0014] The TCM health status recommendation is presented to the current user.

[0015] On the other hand, an embodiment of the present invention provides a device for performing TCM health management through facial images, comprising:

[0016] An image acquisition module, used to acquire a facial image of the current user;

[0017] An identity recognition module, used to match the facial image with a plurality of pre-stored standard user images to identify the identity of the current user;

[0018] The data calling module is used to call the standard health data of the current user, the standard health data includes standard acne quantity data and standard diagnosed skin color; call the historical health data of the current user, the historical health data includes historical acne quantity data and historical diagnosed skin color;

[0019] A first image analysis module, used for obtaining the current acne quantity data and the current diagnosed skin color of the current user according to the facial image;

[0020] A health status analysis module, configured to determine a TCM health status recommendation for the current user based on the current acne quantity data, the current diagnosed skin color, the standard health status data, and the historical health status data;

[0021] The display module is used to display the TCM health status advice to the current user.

[0022] The above technical solution has the following beneficial effects:

[0023] After adopting the technical solution of the present invention, when the user uses the smart mirror to dress up or collect facial images, the current health status and fatigue status of the user can be obtained by analyzing the facial image and comparing it with historical data, and then pushed to the user through the display device, so that the user can understand his or her own condition at any time. At the same time, in the present invention, referring to the idea of ​​"looking" in the "looking, listening, asking and touching" of seeing a doctor in traditional Chinese medicine, the preset algorithm is designed using a dialectical algorithm based on Chinese medicine ideas. When in use, first determine the number of acne on the user's face, and quantify the skin color of the facial ROI area corresponding to each organ, and then obtain the overall diagnostic skin color of the face, substitute the number of acne and the overall diagnostic skin color into the algorithm model, and the health status of each internal organ of the user and the overall health status can be quickly determined, and health status suggestions for the user are given to solve the user's health problems. At the same time, according to the preset algorithm, relevant health knowledge can also be pushed to the user while allowing the user to understand the current health status in a timely manner, which brings great convenience to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 is a flow chart of a method for performing TCM health management through facial images according to an embodiment of the present invention;

[0026] Figure 2 It is a structural diagram of a device for performing TCM health management through facial images according to an embodiment of the present invention;

[0027] Figure 3 It is a structural schematic diagram of a smart mirror according to a specific embodiment of the present invention;

[0028] Figure 4 This is a circuit connection diagram of a smart mirror according to a specific embodiment of the present invention;

[0029] Figure 5 It is a workflow diagram of a smart mirror for TCM health management in a specific embodiment of the present invention;

[0030] Figure 6 It is a structural diagram of a TCM health status recommendation algorithm model in an embodiment of the present invention;

[0031] Figure 7 Schematic diagram of the color division rule of the lips in the embodiment of the present invention;

[0032] Figure 8 is a schematic diagram of the cheek color division rule in an embodiment of the present invention;

[0033] Fig. 9 Schematic diagram of the color division rule of the nose part in the embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] like Figure 1 As shown, the embodiment of the present invention provides a method for TCM health management through facial images, comprising:

[0036] S101, collecting a facial image of the current user;

[0037] S102, matching the facial image with a plurality of pre-stored standard user images to identify the identity of the current user;

[0038] S103, retrieving standard health status data of the current user, wherein the standard health status data includes standard acne quantity data and standard diagnosis skin color;

[0039] S104, retrieving historical health status data of the current user, wherein the historical health status data includes historical acne quantity data and historical diagnosed skin color;

[0040] S105, obtaining the current acne quantity data and the current diagnosed skin color of the current user according to the facial image;

[0041] S106, determining a TCM health status recommendation for the current user based on the current acne quantity data, the current diagnosed skin color, the standard health status data, and the historical health status data;

[0042] S107: Display the TCM health status advice to the current user.

[0043] Skin acne can reflect a person's current health status to a certain extent. The causes of its generation include local bacterial infection, malnutrition, endocrine disorders, etc. Correspondingly, the more facial acne there is, the worse the current skin condition is, and the corresponding health condition needs more attention; at the same time, a person's skin color also reflects a person's health status. Different images can be extracted for each facial partition, and then a prefabricated algorithm is used for calculation to determine the diagnostic skin color of each area, that is, to analyze the corresponding internal organ health status. Therefore, in this application, by detecting the number of skin acne of the user, and detecting and quantifying the skin color condition of the user at the same time, combining the two, and comparing with the historical data and benchmark data of the current user, it can be confirmed whether the current health status of the user is different from the normal state, and whether it has improved compared with the previous state, and determine which organ of the user may have problems or unhealthy conditions.

[0044] To achieve this goal, it is necessary to first collect images of the user through a camera or other device, including static images or video data, and then select a frontal image of the user that can be used to judge the health status. Then, the selected image is compared with the standard image stored in the database to determine which user the image comes from, so as to select and determine the identity of the current user from all users who have used the device, and retrieve the user's previous historical related information (historical data can be stored locally or in a network storage method). Subsequently, based on this image, the user's current acne quantity and diagnostic skin color are determined, and compared with the standard image and historical data to determine whether the user currently has acne, whether the acne quantity has changed compared to before, and whether the current skin color is normal. If not, it is determined whether the skin color has improved compared to the previous skin color. These results are comprehensively analyzed through a preset algorithm to obtain suggestions on the user's current health status, and are displayed to the user through a display device set up on site, or displayed on the user's mobile terminal or other devices through APP or other methods.

[0045] In addition to displaying the health status, the user's current health status can also be quantified and scored based on the judgment results, and an alarm threshold can be set. If the current score is higher than the set alarm threshold, an alarm can be issued to draw the user's attention.

[0046] In order to accurately judge the real-time health status of the user, multiple image acquisitions can be performed, and the weighted results of multiple detections can be used as the result to calculate the user's health status per unit time.

[0047] Furthermore, the method further comprises:

[0048] S108, determining the current eye morphology data of the current user according to the facial image, the eye morphology data refers to the ratio of eye length to eye width, the eye length refers to the horizontal distance between the left and right corners of the eye, and the eye width refers to the vertical distance between the upper and lower eyelid points of the eye;

[0049] S109, retrieving standard eye morphology data of the current user;

[0050] S110, calculating the difference between the current eye morphology data and the standard eye morphology data;

[0051] S111, if the difference exceeds a preset threshold, an alarm is issued;

[0052] S112, determining a fatigue status suggestion for the current user according to the difference;

[0053] S113: Display the fatigue status suggestion to the current user.

[0054] When a person is in a state of fatigue, the shape of the eyes will change, and the person will unconsciously "squint", thereby lengthening the distance between the left and right corners of the eyes and reducing the distance between the upper and lower eyelids, that is, the ratio of eye length to eye width increases. Therefore, in addition to the number of acne and skin color conditions included in the aforementioned health conditions, the present application also determines the aspect ratio of the human eye by analyzing the current image, and compares it with the aspect ratio in the user's pre-stored standard image (i.e., under normal conditions) to determine whether the current user is in a state of fatigue. When the change in this aspect ratio exceeds the set threshold, it can be determined that the current user is in a state of fatigue, and the user can be promptly notified by sound, image, or other warning methods. If the user is in a non-fatigued state, the user can also be informed through the display device.

[0055] In order to accurately divide the user's real-time eye aspect ratio into two states of fatigue and non-fatigue, multiple image acquisitions can be performed, and the weighted results of multiple detections are used as the result to calculate the user's mental state per unit time.

[0056] Furthermore, before step S101, the method further includes:

[0057] S001. Determine the standard acne quantity data and standard diagnostic skin color of the corresponding user according to each user's standard image;

[0058] S002, determining standard eye morphology data of the corresponding user according to each user's standard image;

[0059] Before S102, the method further includes:

[0060] S1011, determining whether there is a standard user image that matches the facial image;

[0061] S1012: If not, collect and store the standard user image of the current user.

[0062] When a new user uses the device for the first time, there is no baseline data to identify the user, and the user's history cannot be retrieved. Therefore, the user must first enter a standard user image according to the prompt, and use the relevant information data of this image as the subsequent comparison benchmark (the benchmark for eye morphology data is also determined by the standard user image). According to actual needs, the first collected standard image can be stored in a local storage device to facilitate rapid identity recognition in subsequent operations; at the same time, the subsequent collected images and related historical data can be stored in a cloud database to save space in the local storage.

[0063] Furthermore, the step S105 further includes:

[0064] S1051, inputting the facial image into a pre-trained first deep learning model, identifying the number of acne from the facial image, and using the identified number of acne as current acne number data;

[0065] S1052, dividing the facial image into five ROI regions according to a preset division rule, wherein the five ROI regions are a left cheek ROI region, a right cheek ROI region, a nose ROI region, a lip ROI region, and a chin ROI region;

[0066] S1053, inputting the facial image into a second deep learning model to determine the overall facial diagnostic skin color;

[0067] S1054, inputting the image of the left cheek ROI area and the image of the right cheek ROI area into the third deep learning model to determine the diagnostic skin color of the cheek ROI area;

[0068] S1055, inputting the image of the nose ROI region into the fourth deep learning model to determine the diagnostic skin color of the nose ROI region;

[0069] S1056, inputting the image of the chin ROI region into the fifth deep learning model to determine the diagnostic skin color of the chin ROI region;

[0070] S1057, inputting the image of the lips ROI region into the sixth deep learning model to determine the diagnostic skin color of the lips ROI region;

[0071] S1058, according to the preset overall face weight and the weight of each ROI area, weighted calculation is performed on the overall face diagnosis skin color, the cheek ROI area diagnosis skin color, the nose ROI area diagnosis skin color, the chin ROI area diagnosis skin color and the lip ROI area diagnosis skin color, and the result of the weighted calculation is used as the current diagnosis skin color

[0072] To identify acne and determine the diagnostic skin color, machine learning can be used. By pre-constructing a deep learning model and training it with a sufficient number of data samples, it can be made to accurately identify the target.

[0073] According to the dialectical thinking of traditional Chinese medicine, the skin color of each facial partition can reflect the situation of different internal organs of the body. For example, the left and right cheeks correspond to the human stomach, the nose corresponds to the human spleen, and the chin area corresponds to the human kidneys. Therefore, different images can be extracted for each facial ROI partition, and then the prefabricated algorithm is used for calculation to determine the diagnostic skin color of each ROI area, that is, to analyze different internal organs. In the process of using the algorithm model for calculation, the determination rules of the diagnostic skin color are pre-designed. For example, in this application, according to the theory of traditional Chinese medicine, the diagnostic skin color of the cheek, nose, and chin can be divided into five types: blue, yellow, white, red, and black, and each type is further divided into two levels of light and dark, that is, ten levels such as bright blue, bright white, and dark red are formed, and each level can be quantitatively scored, for example, from 0 to 9. According to the score of each area, the health status of the organ corresponding to the current ROI area can be determined, such as whether there are symptoms such as dampness, heat, blood stasis, and disharmony. The diagnostic skin color of the lip area can be divided into three colors: white, red, and blue-purple, and each type is further divided into two levels of light and dark. For the specific color division of lips, cheeks (face), and nose, please refer to the attached Figure 7 , Attachment Figure 8 and attached Fig. 9 .

[0074] It should be emphasized that this is only part of the Chinese medicine dialectical algorithm, not all of it. The "main" represents the situation mainly represented by this color feature, and the others are other possible situations represented by this color feature. It should be noted that the situation mentioned here is only brought into the subsequent dialectical algorithm as a parameter, not the diagnostic result. The specific diagnostic result should be obtained by bringing all the situations of the complexion and other ROIs into the algorithm in combination with previous data.

[0075] When applied, the overall facial diagnosis skin color and the diagnosis skin color of each ROI area are respectively substituted into the corresponding algorithm models (where the images of the left and right cheek ROI areas are input into a common algorithm model), and the classification of each model for an input color (i.e. corresponding to the above ten skin colors) can be obtained. After that, combined with the theory of TCM syndrome differentiation, specific weight values ​​are assigned to each ROI area and the face as a whole, and then the diagnosis skin color of each ROI area and the overall facial diagnosis skin color are weighted and calculated to obtain the current diagnosis skin color, which is used as the input value for subsequent judgment of overall health status.

[0076] Furthermore, the step S106 includes:

[0077] S1061, inputting the current acne quantity data, the current diagnosed skin color, the standard health status data and the historical health status data into a TCM health status recommendation algorithm model to generate a plurality of candidate TCM health status recommendations;

[0078] S1062: Determine a TCM health status suggestion with the largest relative weight from the multiple candidate TCM health status suggestions as the TCM health status suggestion for the current user.

[0079] Through the pre-made algorithm model combined with TCM dialectical thinking, the current number of acne detected and the quantified diagnostic skin color can be compared with the baseline data and historical data, so as to determine the changing trend of the current user's health status, such as whether the number of acne has increased or decreased, whether the overall facial diagnostic skin color is healthier or needs more attention, whether there are health problems with the internal organs corresponding to each ROI area, etc. At the same time, by analyzing these changing trends, TCM health recommendations for the current user can be obtained.

[0080] In this application, the dialectical algorithm based on TCM thought is designed with reference to the idea of ​​"looking, listening, asking and feeling" inherited from the traditional Chinese medicine. When in use, the number of acne on the user's face is first determined, and the skin color of the facial ROI area corresponding to each organ is quantified, and then the overall diagnostic skin color of the face is obtained. The number of acne and the overall diagnostic skin color are substituted into the algorithm model to quickly determine the health status of the user's internal organs and the overall health status, and give multiple TCM health status suggestions for the user. Then, based on the calculation, the best suggestion is selected from the multiple health status suggestions and displayed to the user.

[0081] Before generating health recommendations, several criteria for comprehensively evaluating a user are first established, including complexion (diagnostic skin color), facial acne conditions, user historical data, etc., and the weight of each criterion in the overall goal of providing rational TCM recommendations is determined. Then, each user is compared and judged according to each criterion, and finally the weight of the criterion is combined with the results of comparison and judgment to obtain the final ranking of each plan as the system's recommendation for the user. The structure of the TCM health status recommendation algorithm model is as follows: Figure 6 As shown, the algorithm model can be divided into three levels from top to bottom: goals, criteria, and plans.

[0082] The process of solving the problem by applying the algorithm model is as follows: When determining the weights of the above three criteria, the number of facial acne X1, the diagnosed skin color X2, and the user's historical data X3, to the target (based on traditional Chinese medicine and health care recommendations), it is necessary to compare X1, X2, and X3 in pairs, and write the pairwise comparison matrix of the criterion layer to the target layer on a scale of 1-9. It is assumed that:

[0083]

[0084] Among them, the scales 1-9 are as follows:

[0085]

[0086] Table 1. List of meanings of each scale

[0087] Find the largest characteristic root λ of A based on matrix A max (Use the characteristic root method to find out). Find the maximum characteristic root λ max After that, the corresponding eigenvector can be obtained, and then the consistency test can be used to determine whether this eigenvector can be used as the comparison matrix of the criterion layer to the target layer. The specific steps are as follows:

[0088] 1) Consistency index:

[0089] 2) Random consistency index RI, usually given by practical experience, see the table below;

[0090]

[0091] Table 2. RI value table

[0092] 3) Random consistency ratio:

[0093] When CR < 0.1, the consistency of the decision matrix is ​​considered acceptable.

[0094] Then max The corresponding eigenvector w i Can be used as a weight vector for sorting.

[0095] After the consistency check, the eigenvalues ​​corresponding to the eigenvectors are normalized to obtain the weight vector w1 of the criterion layer to the target layer. Assuming w1 = (0.141, 0.530, 0.329), it can be explained that the skin color is the most important factor in diagnosis, followed by historical data and finally facial acne.

[0096] Afterwards, the weight vector and sorting results are combined:

[0097] After using the pairwise comparison matrix to obtain the weights w of the three criteria in the second layer to the first layer target, the same method is used to determine the weights of the n plans in the third layer (different health care plans based on traditional Chinese medicine) to each criterion in the second layer. Similarly, the characteristic roots of each matrix Bi (i = 1, 2, 3, ..., n) are calculated and consistency tests are performed to finally determine the weight vector w2 for the second layer.

[0098] Finally, each indicator of the weight vector obtained by each matrix Bi is multiplied by the corresponding w1 and then summed to get the weight of solution n for the target. Finally, the solution with the largest weight is selected from the solutions as the best solution (i.e., the TCM health status recommendation for the current user) and fed back to the user.

[0099] like Figure 2 As shown, an embodiment of the present invention provides a device for performing TCM health management through facial images, comprising:

[0100] Image acquisition module 21, used to obtain the facial image of the current user;

[0101] An identity recognition module 22, used to match the facial image with a plurality of pre-stored standard user images to identify the identity of the current user;

[0102] The data calling module 23 is used to call the standard health data of the current user, the standard health data includes standard acne quantity data and standard diagnosis skin color; call the historical health data of the current user, the historical health data includes historical acne quantity data and historical diagnosis skin color;

[0103] A first image analysis module 24, configured to obtain the current acne quantity data and the current diagnosed skin color of the current user according to the facial image;

[0104] The health status analysis module 25 is used to determine the TCM health status recommendations for the current user based on the current acne quantity data, the current diagnosed skin color, the standard health status data, and the historical health status data;

[0105] The display module 26 is used to display the TCM health status advice to the current user.

[0106] Furthermore, the device also includes:

[0107] A second image analysis module 27, configured to determine the current eye morphology data of the current user according to the facial image, wherein the eye morphology data refers to the ratio of eye length to eye width, wherein the eye length refers to the horizontal distance between the left and right corners of the eye, and the eye width refers to the vertical distance between the upper and lower eyelid points of the eye;

[0108] A fatigue state alarm module 28 is used to calculate the difference between the current eye morphology data and the standard eye morphology data; if the difference exceeds a preset threshold, an alarm is issued;

[0109] A fatigue status analysis module 29, configured to determine fatigue status suggestions for the current user based on the difference;

[0110] The data calling module 23 is also used to call the standard eye morphology data of the current user;

[0111] The display module 26 is further used to display the fatigue status suggestion to the current user.

[0112] Furthermore, the device also includes:

[0113] The standard data creation module 11 is used to determine the standard acne quantity data and standard diagnostic skin color of the corresponding user according to each user's standard image; and determine the standard eye morphology data of the corresponding user according to each user's standard image;

[0114] The user creation module 12 is used to determine whether there is a standard user image matching the facial image; if not, collect and store the standard user image of the current user.

[0115] Furthermore, the first image analysis module 24 is specifically used to: input the facial image into a pre-trained first deep learning model, identify the number of acne from the facial image, and use the identified number of acne as current acne number data; divide the facial image into five ROI areas according to a preset division rule, and the five ROI areas are respectively a left cheek ROI area, a right cheek ROI area, a nose ROI area, a lip ROI area and a chin ROI area; input the facial image into a second deep learning model to determine the overall facial diagnostic skin color; input the image of the left cheek ROI area and the image of the right cheek ROI area into a third deep learning model to determine the cheek ROI area. OI area diagnostic skin color; input the image of the nose ROI area into the fourth deep learning model to determine the nose ROI area diagnostic skin color; input the image of the chin ROI area into the fifth deep learning model to determine the chin ROI area diagnostic skin color; input the image of the lips ROI area into the sixth deep learning model to determine the lips ROI area diagnostic skin color; according to the preset overall facial weight and the weight of each ROI area, the overall facial diagnostic skin color, the cheek ROI area diagnostic skin color, the nose ROI area diagnostic skin color, the chin ROI area diagnostic skin color and the lip ROI area diagnostic skin color are weighted calculated, and the result of the weighted calculation is used as the current diagnostic skin color.

[0116] Furthermore, the health status analysis module 25 is specifically used to: input the current acne quantity data, the current diagnosed skin color, the standard health status data and the historical health status data into the TCM health status recommendation algorithm model to generate multiple alternative TCM health status recommendations; determine the TCM health status recommendation with the largest relative weight from the multiple alternative TCM health status recommendations as the TCM health status recommendation for the current user.

[0117] The above technical solution of the embodiment of the present invention is described in detail below in conjunction with specific application examples. For technical details not introduced during the implementation process, please refer to the relevant description in the previous text.

[0118] like Figure 3 , Figure 4 As shown, a specific embodiment of a method and device for TCM health management through facial images is invented, and the specific embodiment is a smart mirror. It should be noted that the specific embodiment mounted on the smart mirror is only one embodiment of the method and device for TCM health management through facial images, and the device for TCM health management through facial images can also exist independently of the smart mirror in other forms.

[0119] Figure 3 , Figure 4The smart mirror shown is composed of multiple units or components, including a mirror frame 2, an atomic mirror 1 connected to the inner side of the mirror frame 2, a camera 3 (graphic acquisition module) arranged on the upper part of the mirror frame 2, a display screen 4 (i.e., a display module) arranged on the atomic mirror 1, a touch-screen key switch 6 arranged on the atomic mirror 1 (a mechanical key switch can also be arranged on the side of the mirror frame), a temperature sensor 31, a humidity sensor 32, a brightness sensor 33, a light-emitting component 28, and an interface unit 34 are also arranged on the mirror frame; inside the mirror frame, a power supply 21, a processor 22, a storage unit 23, a radiator 24 and a buzzer 25, a voice acquisition unit 26, and a network communication unit 27 are arranged. As the core component of data processing and calculation, the processor 22 also includes a visual analysis unit, an identity recognition module, a data call module, a first image analysis module, a health status analysis module, a second image analysis module, a fatigue status alarm module, a fatigue status analysis module, a standard data creation module, and a user creation module. A camera baffle 8 is also provided on the frame 2, and the camera baffle 8 is movably connected to the frame 2; the camera baffle 8 can completely cover the camera 3 when in a closed state, so as to physically cover the camera 3 when the user does not need to use the camera 3, thereby avoiding accidental leakage of user privacy.

[0120] The processor 22 is electrically connected to other electrical components respectively, the display screen 4 is connected to the video signal output end of the processor 22 through an HDMI cable, and the display screen 4 is powered by the USB interface of the processor 22; the temperature sensor 31, the humidity sensor 32 and the brightness sensor 33 are connected to the signal input end of the processor 22 through the GPIO interface respectively; the camera 3 is connected to the signal input end of the processor 22 through the USB interface; the key switch 6 is connected to the signal input end of the processor 22 through the GPIO interface. In this specific embodiment, the processor 22 adopts the Jetson Nano module, and the power supply 21 is used to provide a DC12V or DC24V voltage to the processor 22. The storage unit 23 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In addition, the storage unit 23 may further include a memory remotely arranged relative to the processor 22, and these remote memories can be connected to the computer terminal through a network. In order to turn on the smart mirror, this specific example sets a touch-screen button switch 6 on the atomic mirror 1. When it is turned on, the smart mirror will be awakened and the relevant detection program will be started. In addition, the number of touch-screen buttons 6 can be multiple, which can be used to realize other functions or settings except the smart mirror switch. The radiator 24 is used to dissipate heat for the processor 22 and other modules, solve the problems of performance degradation and easy damage of the equipment caused by the temperature rise caused by the long-term operation of the equipment, so as to ensure its safe operation. In this embodiment, the radiator 24 uses a jetson nano PWM speed-adjustable cooling fan. When the radiator 24 fails or the processor 22 is overheated, the processor 22 will give a signal to the buzzer 25, so that the buzzer 25 alarms to remind the user to pay attention. The voice collection unit 26 is used to collect the user's voice instructions, so as to perform corresponding actions according to the voice instructions. The network communication unit 27 may include a wired network communication unit and a wireless network communication unit, which receive or send data via a network. For the wireless network module, in one embodiment, the wireless network module includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. The wireless network module can also be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly. The light emitting assembly 28 can be arranged on the left and right sides of the frame 2 or other positions, and adjusts the brightness of the surrounding environment in real time according to the brightness of the surrounding environment detected in real time by the brightness sensor 33.

[0121] The smart mirror of this specific embodiment can collect the facial image of the current user in front of the mirror through the camera 3 according to the aforementioned method of TCM health management through facial images, and then perform relevant data analysis and calculation through the processor 22 to extract key data such as skin color, acne quantity, eye status, etc. in the image, and combine the historical data and standard data stored in the database, analyze according to the prefabricated algorithm, and obtain suggestions for the user's current health status and fatigue status analysis, and display them on the display screen 4, such as Figure 5 As shown, its typical workflow is:

[0122] Step 1: The user uses the voice recognition unit 26 or the key switch 6 to wake up the mirror program.

[0123] Step 2, receiving a facial image of a target object captured by camera 3; wherein the target object is located in a detection area of ​​the image capture device (camera 3);

[0124] Step three, perform feature-based face analysis on the image collected in the first step, compare the features with the local image data (i.e., the pre-stored user standard image), realize the face recognition function, and return the recognition result and save it in the program.

[0125] Step 4: Perform acne detection based on the deep learning algorithm on the image collected in the first step, and count the number of acne detected (by performing multiple tests and then weighting the result of each detection with the number of successful times within a reasonable range to obtain the final result of the detected number), which is the number of acne, and display it on the display (display screen 4), and give suggestions

[0126] Step 5: Segment the image collected in the first step based on different parts to obtain different regions of interest (ROIs), and return and save each ROI.

[0127] Step 6: For each different ROI area segmented in the fifth step, a deep learning algorithm (a model trained using different data sets) is used to identify the corresponding facial skin color, obtain the value represented by each ROI area, return it and save it.

[0128] Step seven, for the identity corresponding to the face collected in the third step, connect to the cloud database of the corresponding user through the network, and read out various parameter indicators (i.e. historical health status data) of the cloud database.

[0129] Step eight, summarize the data obtained in steps four and six, and use a dialectical algorithm based on traditional Chinese medicine thinking, combined with the historical data read in step seven, to conduct an overall health analysis, and return and save the analysis results, display them on the display, and give suggestions.

[0130] Step nine, the image collected in the first step is used to calculate the aspect ratio of the human eye based on feature analysis, and the standard eye morphology data value is obtained through the pre-stored user standard image. The user's real-time eye aspect ratio is divided into two states of fatigue and non-fatigue, and the weighted result of multiple detection results is used as the result to calculate the user's mental state per unit time and judge the user's mental state.

[0131] Step ten, displaying the detection result of step nine on the display. If the user's health status or mental state undergoes a significant change and exceeds a set threshold, relevant alarms and suggestions are issued.

[0132] In step eleven, the user can use the key switch 6 or the voice recognition unit 26 to decide whether to upload the test result data to the user's personal database in the cloud, so that the database is updated.

[0133] Step 12: While the database is being updated, the content on the mobile phone is also updated, and the analysis of the user's personal health, skin condition and mental state is updated in real time, and corresponding analysis is given.

[0134] Since the smart mirror can be used by multiple people, the system uses a user matching system based on facial feature recognition. It is necessary to enter facial features for each user at the beginning of use and establish local and cloud databases for the user. The process is as follows:

[0135] Step 1, the user uses the voice recognition unit or a key switch to wake up the program of the smart mirror.

[0136] Step 2, receiving the facial image of the target object sent by the mirror; wherein the target object is located in the detection area of ​​the image acquisition device, and the facial image is acquired by the image acquisition device provided on the mirror.

[0137] Step 3: The user uses voice commands or key commands to determine whether to enter the detection data into the user.

[0138] Step 4: The collected images are numbered and named in a specific order and saved locally.

[0139] Step 5, connect to the cloud database and create a personal user database for the user to save subsequent detection data. At the same time, the feature data in the image saved in step 4 is saved in the database as the user's basic data.

[0140] In addition, the smart mirror of this embodiment can also score the user's overall image, recommend images, provide users with virtual dressing functions, and can be interconnected with various online shopping malls to realize real-time shopping and fitting functions. The process is as follows:

[0141] Step 1, the user uses the voice recognition unit or key switch to wake up the mirror program;

[0142] Step 2: The smart mirror collects images of the user's facial and body features, automatically extracts the user's facial status and body features, and mainly detects the facial skin color. The user can choose different functions such as appearance scoring, virtual dressing, similar style recommendations and online shopping system;

[0143] Step 3: The voice recognition unit reminds the user to select a relevant function, and the user can also use the voice recognition unit or buttons to provide feedback;

[0144] Step 4: Score the appearance based on the image collected in step 2, segment the face through the algorithm, collect and analyze the user data, compare and analyze with the product's big database and user storage data, and obtain the user's makeup score and the analysis and comparison of the user's facial skin changes in a certain period of time, and give corresponding recommendations for various types of makeup. The smart mirror analyzes and collects data through the algorithm, and compares the results with the big database, so that users can better understand their recent status;

[0145] Step 5: Select different makeups according to step 4 and compare the data. It can provide simple skin care methods and facial activities, as well as different types of makeup suggestions suitable for users. Users can choose the type they like, and there are tutorials to patiently guide them, so that users can easily put on makeup and pursue beauty while maintaining skin condition.

[0146] Step 6: Perform virtual fitting based on the image collected in step 2. The smart mirror will be connected to the local database, and the user can select and download the provided clothing accessories in the display device of the mirror to experience the visual wearing effect. The content determination system can display and score the user's clothing in real time and give reasonable suggestions. Select the clothing real-time display function and start the clothing effect analysis and display. The system collects and analyzes specific data on the clothing selected by the user or the user's own clothing through the image acquisition device;

[0147] Step 7: Based on the feedback from the user information data in step 2, similar style recommendations are given. The system uses the corresponding algorithm to analyze the user's clothing and score its matching to present the overall effect. The system uses the data collected by the data acquisition device to display the user's clothing and makeup in real time, and the user can get an optimal presentation effect;

[0148] Step 8: You can enter the online shopping system. The smart mirror will also make intelligent product recommendations based on the user's skin and body characteristics, recommending some skin care products suitable for the user's skin condition, makeup videos and different types of clothing suitable for the user's body shape. At the same time, the user can change the makeup and skin care methods according to the video teaching, and can also directly choose skin care makeup products and clothing accessories for immediate purchase. And through three-dimensional try-on, you can directly observe the effect of clothes on the body. The user can understand whether it fits his height and body shape, and evaluate the effect of clothes on the body. After multiple ratings, the data of different sizes of different clothes suitable for the user can be obtained, so that the user can find the most suitable clothes for himself.

[0149] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.

[0150] The disclosed embodiments are described above to enable any person skilled in the art to implement or use the present invention. Various modifications of these embodiments are obvious to those skilled in the art, and the general principles defined herein may also be applied to other embodiments without departing from the spirit and scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments given herein, but is consistent with the broadest scope of the principles and novel features disclosed in this application.

[0151] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for TCM health management through facial images, characterized in that: include: Collect the facial image of the current user; Matching the facial image with a plurality of pre-stored standard user images to identify the identity of the current user; Retrieving standard health status data of the current user, wherein the standard health status data includes standard acne quantity data and standard diagnosis skin color; Retrieving historical health status data of the current user, wherein the historical health status data includes historical acne quantity data and historical diagnosed skin color; Obtaining the current acne quantity data and the current diagnosed skin color of the current user according to the facial image; Determine a TCM health status recommendation for the current user based on the current acne quantity data, the current diagnosed skin color, the standard health status data, and the historical health status data; Displaying the TCM health status advice to the current user; Determining the current eye morphology data of the current user according to the facial image, the eye morphology data refers to the ratio of eye length to eye width, the eye length refers to the horizontal distance between the left and right corners of the eye, and the eye width refers to the vertical distance between the upper and lower eyelid points of the eye; Retrieve the standard eye morphology data of the current user; Calculating the difference between the current eye morphology data and the standard eye morphology data; If the difference exceeds a preset threshold, an alarm is issued; Determining fatigue status suggestions for the current user based on the difference; Displaying the fatigue status suggestion to the current user; The step of obtaining the current acne quantity data and the current diagnosed skin color of the current user according to the facial image includes: Inputting the facial image into a pre-trained first deep learning model, identifying the number of acne from the facial image, and using the identified number of acne as current acne number data; Divide the facial image into five ROI regions, wherein the five ROI regions are a left cheek ROI region, a right cheek ROI region, a nose ROI region, a lip ROI region, and a chin ROI region; Inputting the facial image into a second deep learning model to determine an overall facial diagnostic skin color; Inputting the image of the left cheek ROI area and the image of the right cheek ROI area into the third deep learning model to determine the diagnostic skin color of the cheek ROI area; Inputting the image of the nose ROI area into the fourth deep learning model to determine the diagnostic skin color of the nose ROI area; Inputting the image of the chin ROI area into the fifth deep learning model to determine the diagnostic skin color of the chin ROI area; Inputting the image of the lips ROI area into the sixth deep learning model to determine the skin color of the lips ROI area; According to the preset overall facial weight and the weight of each ROI area, the overall facial diagnostic skin color, the cheek ROI area diagnostic skin color, the nose ROI area diagnostic skin color, the chin ROI area diagnostic skin color and the lip ROI area diagnostic skin color are weightedly calculated, and the result of the weighted calculation is used as the current diagnostic skin color.

2. The method for TCM health management through facial images as claimed in claim 1, characterized in that: Before collecting the facial image of the current user, the method further includes: According to each user's standard image, determine the corresponding user's standard acne quantity data and standard diagnostic skin color; According to each user's standard image, determine the standard eye morphology data of the corresponding user; Before matching the facial image with a plurality of pre-stored standard user images, the method further includes: Determining whether there is a standard user image that matches the facial image; If it does not exist, the standard user image of the current user is collected and stored.

3. The method for TCM health management through facial images as claimed in claim 1, characterized in that: The step of determining a TCM health status recommendation for the current user based on the current acne quantity data, the current diagnosed skin color, the standard health status data, and the historical health status data includes: Inputting the current acne quantity data, the current diagnosed skin color, the standard health status data and the historical health status data into a TCM health status recommendation algorithm model to generate a plurality of alternative TCM health status recommendations; A TCM health status suggestion with the largest relative weight is determined from the multiple candidate TCM health status suggestions as the TCM health status suggestion for the current user.

4. A device for TCM health management through facial images, characterized in that: include: An image acquisition module, used to acquire a facial image of the current user; An identity recognition module, used to match the facial image with a plurality of pre-stored standard user images to identify the identity of the current user; The data calling module is used to call the standard health data of the current user, the standard health data includes standard acne quantity data and standard diagnosed skin color; call the historical health data of the current user, the historical health data includes historical acne quantity data and historical diagnosed skin color; A first image analysis module, used for obtaining the current acne quantity data and the current diagnosed skin color of the current user according to the facial image; A health status analysis module, for determining a TCM health status recommendation for the current user based on the current acne quantity data, the current diagnosed skin color, the standard health status data, and the historical health status data; A display module, used to display the TCM health status advice to the current user; A second image analysis module is used to determine the current eye morphology data of the current user according to the facial image, wherein the eye morphology data refers to the ratio of eye length to eye width, wherein the eye length refers to the horizontal distance between the left and right corners of the eye, and the eye width refers to the vertical distance between the upper and lower eyelid points of the eye; A fatigue state alarm module, used for calculating the difference between the current eye morphology data and the standard eye morphology data; if the difference exceeds a preset threshold, an alarm is issued; A fatigue status analysis module, used to determine fatigue status suggestions for the current user based on the difference; The data calling module is also used to call the standard eye morphology data of the current user; The display module is also used to display the fatigue status suggestion to the current user; The first image analysis module is specifically used to: input the facial image into a pre-trained first deep learning model, identify the number of acne from the facial image, and use the identified number of acne as current acne number data; divide the facial image into five ROI areas, the five ROI areas are respectively a left cheek ROI area, a right cheek ROI area, a nose ROI area, a lip ROI area and a chin ROI area; The facial image is input into the second deep learning model to determine the overall diagnostic skin color of the face; the image of the left cheek ROI area and the image of the right cheek ROI area are input into the third deep learning model to determine the diagnostic skin color of the cheek ROI area; the image of the nose ROI area is input into the fourth deep learning model to determine the diagnostic skin color of the nose ROI area; the image of the chin ROI area is input into the fifth deep learning model to determine the diagnostic skin color of the chin ROI area; the image of the lip ROI area is input into the sixth deep learning model to determine the diagnostic skin color of the lip ROI area; according to the preset overall facial weight and the weight of each ROI area, the overall diagnostic skin color of the face, the diagnostic skin color of the cheek ROI area, the diagnostic skin color of the nose ROI area, the diagnostic skin color of the chin ROI area and the diagnostic skin color of the lip ROI area are weightedly calculated, and the result of the weighted calculation is used as the current diagnostic skin color.

5. The device for TCM health management through facial images as claimed in claim 4, characterized in that: Also includes: A standard data creation module is used to determine the standard acne quantity data and standard diagnostic skin color of the corresponding user according to each user's standard image; and to determine the standard eye morphology data of the corresponding user according to each user's standard image; The user creation module is used to determine whether there is a standard user image matching the facial image; if not, collect and store the standard user image of the current user.

6. The device for TCM health management through facial images as claimed in claim 4, characterized in that: The health status analysis module is specifically used for: Inputting the current acne quantity data, the current diagnosed skin color, the standard health status data and the historical health status data into a TCM health status recommendation algorithm model to generate a plurality of alternative TCM health status recommendations; A TCM health status suggestion with the largest relative weight is determined from the multiple candidate TCM health status suggestions as the TCM health status suggestion for the current user.

Citation Information

Patent Citations

  • Computer-aided diagnostic systems and methods for determining skin compositions based on traditional chinese medicinal (tcm) principles

    CN102421357A

  • Intelligent face health degree identification and evaluation method

    CN110097034A