WO2023029500A1 - Health scheme recommendation method and apparatus based on deep learning, and device and medium - Google Patents

Health scheme recommendation method and apparatus based on deep learning, and device and medium Download PDF

Info

Publication number
WO2023029500A1
WO2023029500A1 PCT/CN2022/087522 CN2022087522W WO2023029500A1 WO 2023029500 A1 WO2023029500 A1 WO 2023029500A1 CN 2022087522 W CN2022087522 W CN 2022087522W WO 2023029500 A1 WO2023029500 A1 WO 2023029500A1
Authority
WO
WIPO (PCT)
Prior art keywords
tongue
image
initial
health
user
Prior art date
Application number
PCT/CN2022/087522
Other languages
French (fr)
Chinese (zh)
Inventor
蓝龙辉
Original Assignee
康键信息技术(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 康键信息技术(深圳)有限公司 filed Critical 康键信息技术(深圳)有限公司
Publication of WO2023029500A1 publication Critical patent/WO2023029500A1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/20ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for computer-aided diagnosis, e.g. based on medical expert systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/60ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to nutrition control, e.g. diets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing

Definitions

  • This application relates to the field of artificial intelligence technology, and provides a method, device, equipment and medium for recommending a health plan based on deep learning.
  • Tongue coating, tongue color, shape and other information can represent a person’s current physical state to a certain extent.
  • Traditional methods often require professionals such as doctors who have received professional training to obtain a person’s physical state through on-site diagnosis and other methods, and then Make some health management suggestions or prescriptions.
  • This application provides a health plan recommendation method, device, equipment and medium based on deep learning. Its main purpose is to obtain the tongue quality and tongue coating status through the tongue image through the preset tongue coating detection model and the preset tongue quality detection model, so as to Determine the health plan to be selected, determine the recommended health plan based on the user's mental state, and recommend an appropriate health plan based on the user's physical health and mental state.
  • the consideration dimension is more comprehensive and the user satisfaction is improved. It is simple and feasible.
  • the present application provides a method for recommending a health plan based on deep learning, the method includes: acquiring the user's initial tongue image, and comparing the initial tongue image with a standard tongue image to obtain the initial similarity;
  • a recommended health plan is determined among the candidate health plans according to the mental state of the user.
  • the present application also provides a device for recommending a health plan based on deep learning, which includes:
  • An image acquisition module configured to acquire an initial tongue image of the user, and compare the initial tongue image with a standard tongue image to obtain an initial similarity
  • An image extraction module configured to extract an initial tongue coating image and an initial tongue quality image from the initial tongue image if the initial similarity is lower than a preset initial similarity threshold
  • a detection module configured to input the initial tongue coating image into a preset tongue coating detection model to obtain a tongue coating state, and input the initial tongue texture image to a preset tongue texture detection model to obtain a tongue texture state;
  • Alternative options determination module used to determine tongue-associated information according to the state of tongue quality and tongue coating state, and determine several health options to be selected, the health options to be selected include suggested foods and eating methods;
  • the mental state determination module is used to obtain the related information of the user's mental state and several user behavior images within a preset time period, and determine the user's mental state;
  • a recommendation module is configured to determine a recommended health plan among the candidate health plans according to the mental state of the user.
  • the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor.
  • a computer device including a memory, a processor, and a computer program stored on the memory and operable on the processor.
  • the processor executes the computer program, the above-mentioned The steps of the method described in one embodiment.
  • the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in any one of the above embodiments are implemented.
  • the health plan recommendation method, device, equipment and medium based on deep learning proposed by this application acquires the user's initial tongue image, and compares the initial tongue image with the standard tongue image to obtain the initial similarity, If the initial similarity is lower than the preset initial similarity threshold, the initial tongue coating image and the initial tongue texture image are respectively extracted from the initial tongue image, and the initial tongue coating image is input into the preset tongue coating detection model to obtain the tongue coating state, and the initial tongue texture
  • the image is input to the preset tongue quality detection model to obtain the tongue quality state, determine tongue-related information according to the tongue quality state and tongue coating state, and determine several health programs to be selected, and obtain user mental state-related information and a number of Create a user behavior image, and determine the user's mental state, and determine the recommended health plan among the candidate health plans according to the user's mental state.
  • FIG. 1 is a schematic flow diagram of a method for recommending a health plan based on deep learning provided in an embodiment of the present application
  • FIG. 2 is another schematic flow diagram of a method for recommending a health plan based on deep learning provided in an embodiment of the present application
  • FIG. 3 is another schematic flow diagram of a method for recommending a health plan based on deep learning provided in an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a device for recommending a health plan based on deep learning provided in an embodiment of the present application
  • Fig. 5 is a schematic structural diagram of a tongue coating extraction module provided in an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of a computer device provided in an embodiment of the invention.
  • a method for recommending a health plan based on deep learning includes the following steps:
  • Step S101 Obtain the user's initial tongue image, and compare the initial tongue image with the standard tongue image to obtain the initial similarity.
  • the initial tongue image can be collected by monitoring devices, mobile phones, wearable devices or professional health monitoring devices.
  • the acquisition device can first collect the image of the standard item, and then collect the initial tongue coating image after error calibration .
  • the marked item may be a red color item selected by default and calibrated in the system.
  • the initial tongue image can be adjusted according to the above-mentioned calibrated error, so as to eliminate the error caused by factors such as light and angle as much as possible.
  • the standard tongue image may be an image taken by the user in a healthy state.
  • the standard tongue image can also be the user's Images taken in a stable state of chronic disease.
  • An optional way to compare the initial tongue image to the standard tongue image includes:
  • the initial tongue image and the standard tongue image are respectively gray-scaled, and normalized to a preset pixel size to obtain a gray-scale initial tongue image and a gray-scale standard tongue image;
  • the gray value of each pixel in the gray initial tongue image and the gray standard tongue image can be reduced by a certain factor in proportion to reduce the subsequent Calculations.
  • the initial encoding and standard encoding are arranged in the same order.
  • An optional way to compare the initial tongue image to the standard tongue image includes:
  • the manner of comparing the initial tongue image with the standard tongue image may also adopt other manners known to those skilled in the art, which is not limited here.
  • the initial tongue image is similar to the standard tongue image (the initial similarity is higher than the preset initial similarity threshold), it means that the user's health status is relatively stable, and it is only necessary to maintain the original living and eating habits. Otherwise, if the original tongue image is not similar to the standard tongue image (the initial similarity is lower than the preset initial similarity threshold), it means that the user's health status has changed, and the health plan needs to be re-recommended.
  • the user when collecting the initial tongue image, the user may have eaten foods that are easy to stain the tongue, such as grapes, dragon fruit, mulberries, and beverages containing pigments. If the judgment is inaccurate, preliminary screening can be performed on the initial tongue image to ensure that the initial tongue image is a qualified image.
  • the original tongue image is the image directly collected by the collection device, or the image obtained by the collection device after the above error adjustment.
  • the acquisition method of the original tongue coating image can be extracted through a pre-trained target extraction model, or it can be similar to the extraction method of the initial tongue coating image described later, or it can be realized by means known to those skilled in the art.
  • the acquisition method of the hue of the original tongue coating image can be implemented in a manner known to those skilled in the art, including but not limited to visual recognition, machine recognition, and the like.
  • the preset hue can be set by those skilled in the art as required, and the preset hue can be fixed or adjusted according to different seasons. For example, different colors can be set according to the ripening period of fruits rich in pigment Default hue.
  • the user can be reminded to clean the tongue in time to improve the accuracy of the program. You can wait for the user to finish cleaning the tongue before collecting a new initial tongue image.
  • Step S102 If the initial similarity is lower than the preset initial similarity threshold, extract an initial tongue coating image and an initial tongue quality image respectively from the initial tongue image.
  • the initial tongue image can be screened to a certain extent. Only the initial tongue image whose initial similarity is lower than the preset initial similarity threshold will extract the tongue coating and tongue quality, which can reduce unnecessary Calculate and save computing power.
  • the preset initial similarity threshold may be a threshold set by those skilled in the art according to needs.
  • the extraction of the initial tongue coating image and the initial tongue quality image from the initial tongue image can be realized through a pre-trained preset image extraction model, and the training of the model can be realized in a manner known to those skilled in the art .
  • the preset image extraction model can manually mark several sample images in advance to obtain a number of tongue coating images and tongue texture images, as a training set, and train the preset neural network model to obtain the preset image extraction model. After the initial tongue image is input to the preset image extraction model, the initial tongue coating image and initial setting image are output.
  • the manner of extracting the initial tongue coating image from the initial tongue image includes:
  • S303 Determine the suspected tongue coating image block from each initial image block according to the pixel average RGB value and the preset tongue coating RGB value range;
  • S304 Obtain the image block position information of the suspected tongue coating image block, and determine the credible image block, the credible image block includes the suspected tongue coating image block whose distance from at least one other suspected tongue coating image block is less than a preset distance threshold;
  • S305 Concatenate the credible image blocks to obtain an initial tongue coating image.
  • the initial tongue image can be divided into several rectangular areas, and the size of each rectangular area can be the same or different. Or segment the initial tongue image into circular regions, rectangular regions, irregular regions, etc.
  • the division method of the initial image block may be an image of a certain size square or rectangular grid, or it may be divided according to other methods set by those skilled in the art.
  • the RGB (R (red), G (green), B (blue)) values of each pixel in the initial image block can be acquired in a manner known to those skilled in the art.
  • the average RGB value of pixels in the initial image block the sum of the RGB values of each pixel in the initial image block/the number of pixels included in the initial image block.
  • the preset tongue coating RGB value range can be set by those skilled in the art according to needs, because the tongue quality that usually may cause health problems is generally crimson tongue, dark red tongue, red tongue, light red tongue, pale tongue Purple and white tongue, and the color of the tongue coating that may cause health problems is generally purple-gray fur, yellow-white fur, yellow fur, and white fur. It can be seen that generally speaking, the color of the tongue coating is quite different from the color of the tongue texture, so the preset tongue coating RGB value range can be set according to the common colors of the tongue coating.
  • the preset tongue coating RGB value range may also be determined by the average RGB value of pixels and its distribution. For example, the maximum and minimum values of the pixel average RGB values of the initial image blocks located in the middle of the initial tongue image (except for several initial image blocks distributed on the edge of the initial tongue image) are used as the preset values. Set the tongue coating RGB value range, etc.
  • the tongue coating is often attached to the tongue, and the position of the tongue coating is located inside the edge of the tongue, if a certain initial image block is discretely distributed outside other initial image blocks, a misjudgment may occur, and the initial image block is excluded.
  • the remaining initial image blocks are used as trusted image blocks. Discrete cases can be judged according to the distance between the initial image blocks.
  • the image block position information may be the position of one or more image points in the suspected tongue coating image block by setting an image coordinate system for the initial tongue image in advance with a certain point of the initial tongue image as the origin.
  • the coordinates of are used as the image block position information.
  • the suspected tongue coating image block is a rectangle, and the coordinates of the image points corresponding to the four vertices of the rectangle are used as the position information of the image block.
  • the image block position information can also use a single point in the display space where the initial tongue image is currently displayed as the origin to create a display coordinate system, and each image point in the initial tongue image corresponds to There is a coordinate, and the coordinates of the location of one or more image points in the suspected tongue coating image block are used as the image block position information.
  • the position information of at least one image block of the suspected tongue coating image block is the position information of four vertices of the rectangular block, so that at least one vertex between the adjacent suspected tongue coating image blocks is coincident of. If the image block position information of a suspected tongue coating image block is different from the image block position information of all other image block position information image blocks, that is, it can be characterized that the suspected tongue coating image block is a discrete single image block, then the Image blocks are removed to ensure the accuracy of the initial tongue coating image.
  • initial image blocks include a large number or a small number of tongue pixels
  • those skilled in the art can reduce the influence of initial image blocks that include a large number of tongue pixels by controlling the preset tongue coating RGB value range, or The above effects are avoided by controlling the number of pixels included in the initial image block.
  • the splicing of credible image blocks can be realized on the basis of retaining their original positions in the original tongue image.
  • Step S103 Input the initial tongue coating image into the preset tongue coating detection model to obtain the tongue coating state, and input the initial tongue texture image into the preset tongue texture detection model to obtain the tongue texture state.
  • the preset tongue coating detection model and the preset tongue quality detection model can be obtained by those skilled in the art by training the basic model based on a number of marked tongue coating images and tongue coating status, tongue quality images and tongue quality status as training sets.
  • the state of the tongue quality includes but is not limited to crimson tongue, dark red tongue, red tongue, light red tongue, lavender tongue, white tongue, etc.
  • the state of the tongue coating includes, but is not limited to, purple-gray fur, yellow-white fur, yellow fur, and white fur.
  • Step S104 Determine the tongue related information according to the state of the tongue quality and the state of the tongue coating, and determine several health options to be selected.
  • the health options to be selected include suggested foods and eating methods.
  • the tongue-related information includes tongue-coat status-related information and tongue-quality-related information.
  • tongue-coat status-related information if the tongue coating status is thick and white, it is necessary to know the specific physical conditions of the user, such as daily eating conditions, whether Fatigue, fatigue, sticky or shapeless stools, whether you have symptoms of nausea or vomiting, whether your living environment is damp or has been damp recently, whether you have symptoms of loss of appetite, fatigue, fatigue, and fever.
  • the above information is the state of tongue coating Related Information.
  • a preset related information question bank can be set in advance, and the preset related information question bank includes several preset related information questions, and each preset related information question is provided with a tongue quality label and a tongue coating label, and the tongue quality label Corresponds to the state of the tongue quality, and the tongue coating label corresponds to the state of the tongue coating.
  • the tongue-related information can also determine the preset question list according to the tongue quality and tongue coating state, ask questions in the preset question list through text, voice, etc. and obtain user answers, and perform keyword extraction based on user answers , to get the answers to the above questions as tongue related information.
  • the health plan to be selected is determined according to tongue association information, tongue quality, tongue coating state, and health-related information, wherein the health-related information includes gender, age, underlying disease, living environment climate, height, weight, body temperature , sleep pattern, blood pressure, blood sugar, heart rate, sedentary state, etc.
  • BMI body mass index
  • BMI weight (kg) ⁇ height ⁇ 2(m).
  • the health-related information may be collected through relevant health information collection equipment. For example, health-related information is collected through body fat scales, bracelets with health monitoring functions, and other equipment.
  • each category of health-related information can be assigned a corresponding information impact factor.
  • the product of its value and the information impact factor can be directly taken as the intermediate value.
  • the product of its value and the information impact factor can be directly taken as the intermediate value.
  • For non-numeric type For health-related news, such as sleep type and sedentary state, first convert them into numerical representations. For example, sedentary state includes the daily average sitting time, divide different time lengths into corresponding levels, and then take the relationship between the level and the information impact factor The product is used as an intermediate value, and the way of numerical representation can also be realized by means known to those skilled in the art.
  • the median value corresponding to each health-related information is summed and then averaged as the identification value of the health-related information, so as to realize the normalized representation of the health-related information, so as to subsequently determine the health plan to be selected.
  • the tongue-related information, tongue state, tongue coating state, and health-related information it is compared with a preset health plan library including several preset health plans to obtain a suitable candidate health plan. It is assumed that the health plan is preset with at least one of tongue-related information tags, tongue quality status tags, tongue coating status tags, and health-related information tags. By comparing the tongue-related information label, tongue quality status label, tongue coating status label, and health-related information label with tongue-related information, tongue quality status, tongue coating status, health-related information, etc., determine the appropriate preset health plan as the Choose a health plan.
  • a preset health program may correspond to one or more tongue-related information labels and health-related information labels. Preset health programs can be constructed by professionals such as doctors and nutritionists.
  • the recommended food can be ordinary food, or food with both medicine and food. Help users solve or prevent some possible health problems through food supplements.
  • the eating method can be presented in the form of recipes or tips.
  • the eating method can also be presented in the form of a video connection. If the user chooses or automatically recommends the health plan to the user, the corresponding eating method will be matched and the production process video will be played.
  • the method also includes:
  • the user determines the user’s possible health problems, such as getting angry, etc., and recommend corresponding health solutions including suitable foods, so that the user can alleviate the problem through dietary therapy. Or address health issues.
  • the user's health-related information it can be known whether the user has problems such as obesity, high blood pressure, high blood fat, and high uric acid, and can be combined with health-related information, tongue coating status, tongue quality status, and tongue-related information to comprehensively determine the candidate health Programs to avoid food that may pose a threat to the user's health in the health program to be selected. For example, if a patient has high uric acid and suffers from ventilation, avoid determining a health plan that includes foods with high purine content such as shiitake mushrooms as a candidate health plan.
  • Step S105 Obtain information related to the user's mental state and several user behavior images within a preset time period, and determine the user's mental state.
  • user behavior images can be collected by camera monitoring equipment.
  • the specific time point and collection equipment of the collection behavior are preferably not known to the user, so as to improve the user experience.
  • the credibility of the collected user behavior images can be collected by camera monitoring equipment.
  • the acquisition of user behavior images can also be realized by guiding the user to collect the mental state of the face. For example, first record the user's face images in three states (happy/sad/normal) as a training set to train the initial model of the mental state to obtain the user's mental state model.
  • follow-up guides the user to turn on the mobile phone camera for real-time video capture or collects the user's face image through other image capture devices, and inputs it into the user's mental state model of the training account to obtain the user's mental state.
  • the associated information of the user's mental state includes but is not limited to at least one of the user's working (study) duration, whether there is any behavior such as dazed, crying, sighing, etc., the number and duration of non-work going out, and other behaviors that can reflect or reflect the user's mental state .
  • the first user mood score can be obtained by analyzing the user behavior image, and then the second user mood score can be obtained according to the user's mental state related information, and the user mood total score can be obtained according to the first user mood score and the second user mood score To characterize the mental state of the user. For example, different values are assigned to happy/sad/normal user mental states as the first user mood score, and appropriate values are assigned to the associated information of different user mental states as associated values and their associated influence shadows. The factor determines the mood score of the second user (by taking the weighted average of the associated values of the associated information of each user's mental state).
  • the user behavior image may be a human body image, and the user's mental state may also be determined based on the human body image including the user's physical state. For example, the user's shrugging, hunchback, bowing, and raising the head can all reflect the user's mental state.
  • the user behavior image includes the user's facial image
  • the user's mental state-related information includes information content and information content influencing factors
  • the method for determining the user's mental state includes:
  • the target facial key point includes the key point of the nose tip, the key point of the corner of the mouth and the key point of the corner of the eye;
  • the mental state of the user is determined according to the first mental state score and the second mental state score.
  • the information content includes but not limited to at least one of the number of times of laughter, times of dazed, times of crying, times of sighing, working hours, and non-working time out.
  • target face key point can be determined by those skilled in the art, and above-mentioned is just an example, and other key points (such as the key point at the eyebrow etc.) adjacent to the currently selected target face key point can also be used as target Facial keypoints, whose user's mental state is determined in a similar manner to the above example.
  • the manner of identifying the key points of the target face and the manner of acquiring the location information of the key points may be implemented in a manner known to those skilled in the art.
  • the first distance and the second distance can be based on the "virtual distance" obtained based on the image coordinate system, and then converted to the actual distance in the real world coordinate system according to the ratio conversion relationship between the image and the real world, or the key point position information is Relative to the coordinate data obtained in the coordinate system of the real world, the obtained first distance and the second distance are actual distances.
  • the first average value and the second average value are the average number of several first distances and the average number of several second distances of the user captured in different facial images of the user.
  • the first median and the second median are respectively obtained by sorting the first distance and the second distance in order of magnitude. Optionally, if the number of the first distance and/or the second distance is an even number, take the average of the two values in the middle as the first median and/or the second median.
  • determining the first mental state score according to the first median, the first average, the second median and the second average includes:
  • first median is less than the first average, and the second median is less than the second average, then obtain the preset first facial score as the first mental state score, otherwise obtain the preset second facial score as the second A mental state score.
  • the preset first facial score and the preset second facial score can be preset by those skilled in the art.
  • the corners of the mouth tend to rise, shortening the distance between the corners of the mouth and the tip of the nose.
  • the second median is smaller than the second average value, it means that the user may have taken more facial images when the user is happy.
  • the corners of the eyes will be close to the tip of the nose due to the stretching of the muscles, and the distance between the corners of the eyes and the tip of the nose will be shortened.
  • the first median is smaller than the first average value, it further indicates that the user’s face may be taken when the user is happy.
  • the preset first face score is acquired as the first mental state score. In other cases, it means that when the user is normal or unhappy, there are more facial images of the user, and the preset second facial score is selected as the first mental state score.
  • the second mental state score is determined by taking products of different information contents and corresponding information content impact factors and summing them up.
  • the mental state of the user is determined through the mapping relationship between the total score of the mental state and the mental state corresponding to each preset score gradient. Alternatively, the weighted average of the first mental state score and the second mental state score is taken as the total mental state score.
  • S106 Determine the recommended health plan among the health plans to be selected according to the mental state of the user.
  • a suitable mental state is marked for the preset health plan in advance, so that a suitable health plan can be conveniently selected according to the mental state.
  • the health plan to be selected also includes implementation difficulty, duration, recommended eating season and recommended eating weather of the suggested food, and determining the recommended health plan in the health plan to be selected according to the mental state of the user includes:
  • the initial weather conditions, the recommended eating weather and the recommended eating season determine several first alternative health programs from each candidate health program
  • the recommended health plan is determined from the second alternative health plans according to the user's mental state and implementation difficulty.
  • the initial time, initial season, and initial weather state can be determined according to the current time, current season, and current weather state, or can be determined by relevant information of a period specified by those skilled in the art, such as the corresponding information for the next week or the next three days Sure.
  • the initial time, initial season, and initial weather state may also be determined according to relevant information corresponding to when the initial tongue image was collected.
  • Foods that are easier to obtain in the season can be determined according to the season to improve the implementability of the health plan. If it is winter, try not to use a health plan that includes foods that ripen more in summer as the first alternative health plan, such as mangoes. Suitable food can be selected according to the weather conditions. For example, when the temperature is low, a health plan including warming ingredients such as mutton can be determined as the first alternative health plan. For the health plan to be selected, the recommended eating weather and recommended eating season can be marked in advance according to the food and other information included in the plan, so as to facilitate the selection of the first alternative health plan.
  • the health plan includes but is not limited to implementation difficulty, duration, recommended food and eating methods, etc.
  • the above information included in the health plan can be transmitted through voice, video, pictures, text, etc. displayed to the user.
  • the method further includes at least one of the following:
  • the eating method includes but not limited to the cooking method, according to the cooking method, various auxiliary ingredients can be obtained, which is convenient for users to place an order on the online shopping platform.
  • the order confirmation information may be information directly determined by the user after the purchase list is presented to the user, or may be new confirmation information including the modified purchase list obtained after the user modifies the purchase list. Send the purchase list to the preset shopping platform to generate an order.
  • the ingredients and tools needed for the health plan can be delivered to the designated place, making it more convenient for the user to implement the health plan.
  • the tongue quality, tongue coating state, user's mental state related information, tongue related information and recommendation information with the user's informed consent.
  • the health plan is notified to relevant personnel through text messages, WeChat, emails, voice calls, etc.
  • the tongue quality status, tongue coating status, user mental state related information, tongue related information and recommended health plan are sent to the designated email address, etc.
  • the current health status of the user can be obtained through different tongue quality status, tongue coating status and tongue related information.
  • the user's mental state is determined through the user's mental state-related information, and then the user's health status is obtained according to the health status and user's mental state, and the user is reminded of the current user's health status through different colors of logos or different words.
  • determining the user's health status according to the tongue quality state, tongue coating state, user mental state association information, and tongue association information includes but is not limited to the following methods:
  • score comparison table look up the respective scores of the user's current tongue state, tongue coating state, user's mental state-related information and tongue-related information and add them up to obtain the user's total health score
  • the user health status is determined.
  • the tongue association information look up the scores corresponding to each tongue association sub-information in the score comparison table, and then add up to get the tongue association score; find the tongue quality score in the score comparison table according to the tongue quality state, according to Tongue coating status Find the tongue coating score in the score comparison table, and add up the mental state score, tongue association score, tongue quality score, and tongue coating score to obtain the total health score. Then find the preset user health status corresponding to the total health score as the user health status.
  • the corresponding preset user health status is sub-health
  • the total health score is 60 points
  • the corresponding preset user health status is relatively unhealthy
  • the total health score is 30 points
  • the corresponding preset user health status is 30 points.
  • the specific mapping relationship between the total health score and the preset user health status can be set by those skilled in the art as needed.
  • another way to determine the user's health status based on the tongue quality state, tongue coating state, user mental state association information, and tongue association information includes but is not limited to the following methods:
  • the tongue state includes a preset tongue state
  • the state of the tongue coating includes the preset state of the tongue coating
  • Tongue associated information includes preset tongue associated information
  • the mental state score determined by the associated information of the user's mental state reaches the preset mental state score.
  • the preset tongue quality state, the preset tongue coating state, the preset tongue related information, and the preset mental state score can be set by those skilled in the art.
  • the user health status includes sub-health, if two preset conditions are met, the user health status includes relatively unhealthy, and if three or more preset conditions are met, the user health status includes very unhealthy.
  • the method further includes:
  • the subsequent acquisition time of the subsequent tongue images is later than the initial acquisition time of the initial tongue images
  • the subsequent tongue image is compared with the initial tongue image to obtain the subsequent second similarity
  • the subsequent tongue image is similar to the standard tongue image, it means that the user's physical state has returned to normal; otherwise, the user's physical state is still in an abnormal state.
  • the follow-up tongue image is not similar to the initial tongue image, that is, the follow-up second similarity is lower than the preset follow-up similarity threshold, at this time, a suitable doctor and/or medicine can be recommended, or it can be re-according to the new Subsequent tongue images of the new algorithm are used to determine the new recommended health regimen.
  • the embodiment of the present application provides a health plan recommendation method based on deep learning.
  • the method acquires the user's initial tongue image and compares the initial tongue image with the standard tongue image to obtain the initial similarity. If the initial The similarity is lower than the preset initial similarity threshold, and the initial tongue coating image and the initial tongue texture image are respectively extracted from the initial tongue image, and the initial tongue coating image is input into the preset tongue coating detection model to obtain the state of the tongue coating, and the initial tongue texture image is input to Go to the preset tongue quality detection model, get the tongue quality status, determine the tongue related information according to the tongue quality status and the tongue coating status, and determine several health plans to be selected, and obtain the user's mental state related information and several user pictures within the preset time period.
  • Behavioral images and determine the user's mental state, and determine the recommended health plan among the candidate health plans according to the user's mental state.
  • the embodiment of the present application also provides a device 400 for recommending a health plan based on deep learning, which includes:
  • An image acquisition module 401 configured to acquire an initial tongue image of the user, and compare the initial tongue image with a standard tongue image to obtain an initial similarity
  • An image extraction module 402 configured to extract an initial tongue coating image and an initial tongue quality image from the initial tongue image if the initial similarity is lower than the preset initial similarity threshold;
  • the detection module 403 is configured to input the initial tongue coating image into the preset tongue coating detection model to obtain the tongue coating state, and input the initial tongue texture image to the preset tongue texture detection model to obtain the tongue texture state;
  • Alternative options determination module 404 used to determine tongue-related information according to the state of tongue quality and tongue coating, and determine several health options to be selected, including suggested foods and eating methods;
  • the mental state determination module 405 is used to obtain the relevant information of the user's mental state and several user behavior images within a preset time period, and determine the user's mental state;
  • the recommending module 406 is configured to determine a recommended health plan among candidate health plans according to the mental state of the user.
  • the image extraction module includes a tongue coating extraction module and a tongue quality extraction module, wherein the tongue coating extraction module is used to extract an initial tongue coating image from an initial tongue image, and the tongue quality extraction module is used to extract an initial tongue coating image from an initial tongue image. Initial tongue image.
  • the tongue coating extraction module 500 includes:
  • An image division module 501 configured to divide the initial tongue image into several initial image blocks
  • the average value determination module 502 is used to obtain the RGB values of the pixels in each initial image block respectively, and determine the average RGB value of the pixels of each initial image block;
  • the suspected tongue coating image block determination module 503 is used to determine the suspected tongue coating image block from each initial image block according to the pixel average RGB value and the preset tongue coating RGB value range;
  • a credible image block determining module 504 configured to acquire image block position information of a suspected tongue coating image block, and determine a credible image block, where the credible image block includes a suspected tongue coating image block whose distance from at least one other suspected tongue coating image block is less than a preset distance threshold. Tongue coating image blocks;
  • the splicing module 505 is configured to splice the credible image blocks to obtain an initial tongue coating image.
  • the user behavior image includes the user's facial image
  • the user's mental state related information includes information content and information content influencing factors
  • the mental state determination module further includes:
  • the position information acquisition module is used to obtain key point position information of target facial key points in the user's facial image, and the target facial key points include nose tip key points, mouth corner key points and eye corner key points;
  • the distance determination module is used to respectively obtain the first distance between the eye corner key point and the nose tip key point in each user's facial image, and the second distance between the mouth corner key point and the nose tip key point, and respectively determine the first average value of several first distances and the first median, respectively determine the second average and the second median of several second distances;
  • the first mental state score determination module is used to determine the first mental state score according to the first median, the first average, the second median and the second average;
  • the second mental state score determination module is used to determine the second mental state score according to the information content and the information content image factor
  • the user's mental state determination module is configured to determine the user's mental state according to the first mental state score and the second mental state score.
  • the health plan to be selected also includes the difficulty of implementation, the duration, the recommended consumption season and the recommended consumption weather of the suggested food
  • the recommendation module includes:
  • the information acquisition module is used to acquire the initial time, the initial season, the initial weather conditions, and the implementation difficulty and duration of each health plan to be selected;
  • the first alternative health program determination module is used to determine several first alternative health programs from each candidate health program according to the initial season, initial weather conditions, recommended eating weather and recommended eating season;
  • the second alternative health program determination module is used to determine several second alternative health programs from each of the first alternative health programs according to the initial time and the duration;
  • the recommended health plan determination module is used to determine the recommended health plan from the second alternative health plans according to the user's mental state and implementation difficulty.
  • the device for recommending health solutions based on deep learning also includes:
  • the order generation module is used to obtain the recommended food and eating method in the recommended health plan, determine the required auxiliary ingredients according to the eating method, and generate a purchase list based on the recommended food and auxiliary ingredients. After obtaining the order confirmation information, send the purchase list Go to the default shopping platform and generate an order;
  • the sending module is used to send the tongue quality state, tongue coating state, user mental state related information, tongue related information and recommended health plan to preset objects;
  • the prompting module is used to determine the user's health status according to the state of the tongue quality, the state of the tongue coating, the associated information of the user's mental state, and the associated information of the tongue, and provide a prompt.
  • the deep learning-based health plan recommendation device also includes a doctor and/or drug recommendation module, which is used for:
  • the subsequent acquisition time of the subsequent tongue images is later than the initial acquisition time of the initial tongue images
  • the subsequent tongue image is compared with the initial tongue image to obtain the subsequent second similarity
  • the device for recommending health solutions based on deep learning also includes a pre-selection module, which is used to obtain the user's initial tongue image in the image acquisition module, and compare the initial tongue image with the standard tongue image Yes, before getting the similarity, perform the following steps:
  • the original tongue image is qualified, and the original tongue image is used as the initial tongue image
  • the hue does not belong to the preset hue, the user is prompted to clean the tongue.
  • the embodiment of the present application provides a device for recommending a health plan based on deep learning, which obtains the state of the tongue quality and the state of the tongue coating through the tongue image through the preset tongue coating detection model and the preset tongue quality detection model, so as to determine the health plan to be selected.
  • the user's mental state determines the recommended health plan, and recommends an appropriate health plan based on the user's physical health and mental state.
  • the consideration dimension is more comprehensive and the user satisfaction is improved. It is simple and feasible.
  • the device for recommending a health plan based on deep learning executes the method for recommending a health plan based on deep learning described in any of the above-mentioned embodiments.
  • the device for recommending a health plan based on deep learning executes the method for recommending a health plan based on deep learning described in any of the above-mentioned embodiments.
  • this embodiment also provides a computer device 600, including a memory 601, a processor 602, and a computer program stored in the memory and operable on the processor.
  • the processor 602 The steps of the method described in any one of the above embodiments are realized when the computer program is executed.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in any one of the above embodiments are implemented.
  • the computer-readable storage medium may be non-volatile or volatile.
  • AI artificial intelligence
  • digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium as described above (such as ROM/RAM , magnetic disk, optical disk), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
  • a storage medium such as ROM/RAM , magnetic disk, optical disk

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Public Health (AREA)
  • Business, Economics & Management (AREA)
  • Artificial Intelligence (AREA)
  • Finance (AREA)
  • Primary Health Care (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Accounting & Taxation (AREA)
  • Biomedical Technology (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Epidemiology (AREA)
  • Databases & Information Systems (AREA)
  • Strategic Management (AREA)
  • Quality & Reliability (AREA)
  • Radiology & Medical Imaging (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Pathology (AREA)
  • General Business, Economics & Management (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Nutrition Science (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The present application relates to the technical field of artificial intelligence. Provided are a health scheme recommendation method and apparatus based on deep learning, and a device and a medium. The method comprises: acquiring an initial similarity between an initial tongue image and a standard tongue image; extracting an initial tongue coating image and an initial tongue nature image from the initial tongue image, and inputting same into a preset tongue coating checking model and a preset tongue nature checking model, so as to obtain a tongue coating state and a tongue nature state; determining tongue association information, and thereby determining a plurality of health schemes to be selected; and determining a mental state of a user, so as to determine a recommended health scheme from among the health schemes to be selected. Further provided in the present application are a health scheme recommendation apparatus based on deep learning, and a device and a medium. A tongue nature state and a tongue coating state are obtained by means of a preset tongue coating checking model and a preset tongue nature checking model, and a suitable health scheme is recommended by combining two factors, i.e. a physical health condition and a mental state of a user, such that consideration dimensions are more comprehensive, thereby improving the user satisfaction degree. The present application is simple and feasible.

Description

基于深度学习的健康方案推荐方法、装置、设备及介质Health plan recommendation method, device, equipment and medium based on deep learning
优先权申明priority statement
本申请要求于2021年8月30日提交中国专利局,申请号为202111005735.X,发明名称为“基于深度学习的健康方案推荐方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on August 30, 2021, with the application number 202111005735.X, and the title of the invention is "Health program recommendation method, device, equipment and medium based on deep learning". The entire contents are incorporated by reference in this application.
技术领域technical field
本申请涉及人工智能技术领域,提供一种基于深度学习的健康方案推荐方法、装置、设备及介质。This application relates to the field of artificial intelligence technology, and provides a method, device, equipment and medium for recommending a health plan based on deep learning.
背景技术Background technique
舌苔、舌质的颜色、形状等信息在一定程度上可以代表人当前的身体状态,传统的方式往往需要接受过专业培训的医生等专业人员,通过现场诊断等方式得到某个人的身体状态,并提出一些健康管理建议或处方。Tongue coating, tongue color, shape and other information can represent a person’s current physical state to a certain extent. Traditional methods often require professionals such as doctors who have received professional training to obtain a person’s physical state through on-site diagnosis and other methods, and then Make some health management suggestions or prescriptions.
由于专业人员数量精力有限,对于一些诸如上火等“小问题”,大家往往因种种原因而得不到专业人员的帮助,但随着大家对健康问题的不断关注,人们对于可行、方便的健康方案的需求越来越高。同时,发明人意识到人的心境、精神状态也可能会影响身体状态,传统的健康方案往往仅关注用户的身体基础检测数据本身如血压、心率、体重等,忽略了用户的精神状态,使得所提供的健康管理建议不够全面,针对性差,用户满意度差。Due to the limited number of professionals, for some "small problems" such as getting angry, people often cannot get help from professionals for various reasons. Programs are in increasing demand. At the same time, the inventor realized that people's mood and mental state may also affect the physical state. Traditional health solutions often only focus on the user's physical basic detection data itself, such as blood pressure, heart rate, weight, etc., ignoring the user's mental state. The health management suggestions provided are not comprehensive enough, poorly targeted, and user satisfaction is poor.
发明内容Contents of the invention
本申请提供一种基于深度学习的健康方案推荐方法、装置、设备及介质,其主要目的在于通过舌部图像经预设舌苔检测模型和预设舌质检测模型得到舌质状态和舌苔状态,以确定待选健康方案,结合用户精神状态确定推荐健康方案,结合用户的身体健康情况与精神状态两方面因素推荐合适的健康方案,考虑维度更加全面,提升用户满意度,简单可行。This application provides a health plan recommendation method, device, equipment and medium based on deep learning. Its main purpose is to obtain the tongue quality and tongue coating status through the tongue image through the preset tongue coating detection model and the preset tongue quality detection model, so as to Determine the health plan to be selected, determine the recommended health plan based on the user's mental state, and recommend an appropriate health plan based on the user's physical health and mental state. The consideration dimension is more comprehensive and the user satisfaction is improved. It is simple and feasible.
为实现上述目的,本申请提供一种基于深度学习的健康方案推荐方法,该方法包括:获取用户的初始舌部图像,并将所述初始舌部图像与标准舌部图像进行比对,得到初始相似度;In order to achieve the above purpose, the present application provides a method for recommending a health plan based on deep learning, the method includes: acquiring the user's initial tongue image, and comparing the initial tongue image with a standard tongue image to obtain the initial similarity;
若所述初始相似度低于预设初始相似度阈值,从初始舌部图像中分别提取初始舌苔图像和初始舌质图像;If the initial similarity is lower than the preset initial similarity threshold, extracting an initial tongue coating image and an initial tongue quality image respectively from the initial tongue image;
将所述初始舌苔图像输入到预设舌苔检测模型,得到舌苔状态,将所述初始舌质图像输入到预设舌质检测模型,得到舌质状态;Inputting the initial tongue coating image into a preset tongue coating detection model to obtain a tongue coating state, and inputting the initial tongue texture image into a preset tongue texture detection model to obtain a tongue texture state;
根据所述舌质状态和舌苔状态确定舌部关联信息,并确定若干个待选健康方案,所述待选健康方案包括建议食物及食用方法;Determine tongue-related information according to the state of the tongue quality and the state of the tongue coating, and determine several health options to be selected, the health options to be selected include suggested foods and eating methods;
获取用户精神状态关联信息及预设时间段内若干张用户行为图像,并确定用户精神状态;Obtain information related to the user's mental state and several user behavior images within a preset time period, and determine the user's mental state;
根据所述用户精神状态在所述待选健康方案中确定推荐健康方案。A recommended health plan is determined among the candidate health plans according to the mental state of the user.
此外,为实现上述目的,本申请还提供一种基于深度学习的健康方案推荐装置,该装置包括:In addition, in order to achieve the above purpose, the present application also provides a device for recommending a health plan based on deep learning, which includes:
图像获取模块,用于获取用户的初始舌部图像,并将所述初始舌部图像与标准舌部图像进行比对,得到初始相似度;An image acquisition module, configured to acquire an initial tongue image of the user, and compare the initial tongue image with a standard tongue image to obtain an initial similarity;
图像提取模块,用于若所述初始相似度低于预设初始相似度阈值,从初始舌部图像中分别提取初始舌苔图像和初始舌质图像;An image extraction module, configured to extract an initial tongue coating image and an initial tongue quality image from the initial tongue image if the initial similarity is lower than a preset initial similarity threshold;
检测模块,用于将所述初始舌苔图像输入到预设舌苔检测模型,得到舌苔状态,将所述初始舌质图像输入到预设舌质检测模型,得到舌质状态;A detection module, configured to input the initial tongue coating image into a preset tongue coating detection model to obtain a tongue coating state, and input the initial tongue texture image to a preset tongue texture detection model to obtain a tongue texture state;
待选方案确定模块,用于根据所述舌质状态和舌苔状态确定舌部关联信息,并确定若干个待选健康方案,所述待选健康方案包括建议食物及食用方法;Alternative options determination module, used to determine tongue-associated information according to the state of tongue quality and tongue coating state, and determine several health options to be selected, the health options to be selected include suggested foods and eating methods;
精神状态确定模块,用于获取用户精神状态关联信息及预设时间段内若干张用户行为图像,并确定用户精神状态;The mental state determination module is used to obtain the related information of the user's mental state and several user behavior images within a preset time period, and determine the user's mental state;
推荐模块,用于根据所述用户精神状态在所述待选健康方案中确定推荐健康方案。A recommendation module is configured to determine a recommended health plan among the candidate health plans according to the mental state of the user.
此外,为实现上述目的,本申请还提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上任一项实施例所述方法的步骤。In addition, in order to achieve the above object, the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the above-mentioned The steps of the method described in one embodiment.
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一项实施例所述方法的步骤。In addition, to achieve the above purpose, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in any one of the above embodiments are implemented.
本申请提出的基于深度学习的健康方案推荐方法、装置、设备及介质,该方法通过获取用户的初始舌部图像,并将初始舌部图像与标准舌部图像进行比对,得到初始相似度,若初始相似度低于预设初始相似度阈值,从初始舌部图像中分别提取初始舌苔图像和初始舌质图像,将初始舌苔图像输入到预设舌苔检测模型,得到舌苔状态,将初始舌质图像输入到预设舌质检测模型,得到舌质状态,根据舌质状态和舌苔状态确定舌部关联信息,并确定若干个待选健康方案,获取用户精神状态关联信息及预设时间段内若干张用户行为图像,并确定用户精神状态,根据用户精神状态在待选健康方案中确定推荐健康方案。通过舌部图像经预设舌苔检测模型和预设舌质检测模型得到舌质状态和舌苔状态,以确定待选健康方案,结合用户精神状态确定推荐健康方案,结合用户的身体健康情况与精神状态两方面因素推荐合适的健康方案,考虑维度更加全面,提升用户满意度,简单可行,针对性强。The health plan recommendation method, device, equipment and medium based on deep learning proposed by this application, the method acquires the user's initial tongue image, and compares the initial tongue image with the standard tongue image to obtain the initial similarity, If the initial similarity is lower than the preset initial similarity threshold, the initial tongue coating image and the initial tongue texture image are respectively extracted from the initial tongue image, and the initial tongue coating image is input into the preset tongue coating detection model to obtain the tongue coating state, and the initial tongue texture The image is input to the preset tongue quality detection model to obtain the tongue quality state, determine tongue-related information according to the tongue quality state and tongue coating state, and determine several health programs to be selected, and obtain user mental state-related information and a number of Create a user behavior image, and determine the user's mental state, and determine the recommended health plan among the candidate health plans according to the user's mental state. Get the tongue quality and tongue coating status through the tongue image through the preset tongue coating detection model and the preset tongue quality detection model to determine the health plan to be selected, and determine the recommended health plan based on the user's mental state, combined with the user's physical health and mental state Recommended health solutions based on two factors, more comprehensive considerations, improved user satisfaction, simple, feasible, and highly targeted.
附图说明Description of drawings
图1为本申请一个实施例中提供的基于深度学习的健康方案推荐方法的一种流程示意图;FIG. 1 is a schematic flow diagram of a method for recommending a health plan based on deep learning provided in an embodiment of the present application;
图2为本申请一个实施例中提供的基于深度学习的健康方案推荐方法的另一种流程示意图;FIG. 2 is another schematic flow diagram of a method for recommending a health plan based on deep learning provided in an embodiment of the present application;
图3为本申请一个实施例中提供的基于深度学习的健康方案推荐方法的另一种流程示意图;FIG. 3 is another schematic flow diagram of a method for recommending a health plan based on deep learning provided in an embodiment of the present application;
图4为本申请一个实施例中提供的基于深度学习的健康方案推荐装置的一种结构示意图;FIG. 4 is a schematic structural diagram of a device for recommending a health plan based on deep learning provided in an embodiment of the present application;
图5为本申请一个实施例中提供的舌苔提取模块的一种结构示意图;Fig. 5 is a schematic structural diagram of a tongue coating extraction module provided in an embodiment of the present application;
图6为发明一个实施例中提供的计算机设备的一种结构示意图。Fig. 6 is a schematic structural diagram of a computer device provided in an embodiment of the invention.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在一个实施例中,提供一种基于深度学习的健康方案推荐方法,参照图1所示,该方法包括以下步骤:In one embodiment, a method for recommending a health plan based on deep learning is provided, as shown in FIG. 1 , the method includes the following steps:
步骤S101:获取用户的初始舌部图像,并将初始舌部图像与标准舌部图像进行比对,得到初始相似度。Step S101: Obtain the user's initial tongue image, and compare the initial tongue image with the standard tongue image to obtain the initial similarity.
在一些实施例中,初始舌部图像可以通过监控设备、手机、可穿戴设备或专业健康监测设备等设备来采集得到。In some embodiments, the initial tongue image can be collected by monitoring devices, mobile phones, wearable devices or professional health monitoring devices.
可选的,在采集初始舌部图像前,由于采集设备的图像采集效果可能受初始的光线、角度等影响,故采集设备可以先采集标准物品的图像,进行误差标定后,再采集初始舌苔图像。标注物品可以是预设选定并在系统中标定过的红色系的物品。这样,通过对标准物品的误差标定后,再采集初始舌部图像,可以根据上述标定的误差对初始舌部图像进行调整,以尽量消除由于光线、角度等因素所导致的误差。Optionally, before acquiring the initial tongue image, since the image acquisition effect of the acquisition device may be affected by the initial light, angle, etc., the acquisition device can first collect the image of the standard item, and then collect the initial tongue coating image after error calibration . The marked item may be a red color item selected by default and calibrated in the system. In this way, after the error of the standard item is calibrated, and then the initial tongue image is collected, the initial tongue image can be adjusted according to the above-mentioned calibrated error, so as to eliminate the error caused by factors such as light and angle as much as possible.
可选的,标准舌部图像可以是该用户在健康状态下所拍摄的图像。针对具有慢性病的用户,由于其慢性病的状态将持续相当长的一段时间,且需要辅以专业的治疗手段,如高血压、糖尿病等,针对于这样的用户,标准舌部图像也可以是该用户在慢性病病情稳定状态下所拍摄的图像。Optionally, the standard tongue image may be an image taken by the user in a healthy state. For users with chronic diseases, because the state of their chronic diseases will last for a long time, and they need to be supplemented by professional treatment methods, such as high blood pressure, diabetes, etc., for such users, the standard tongue image can also be the user's Images taken in a stable state of chronic disease.
一种可选的将初始舌部图像与标准舌部图像进行比对的方式包括:An optional way to compare the initial tongue image to the standard tongue image includes:
将初始舌部图像与标准舌部图像分别进行灰度化处理,并归一化为预设像素大小,得到灰度初始舌部图像与灰度标准舌部图像;The initial tongue image and the standard tongue image are respectively gray-scaled, and normalized to a preset pixel size to obtain a gray-scale initial tongue image and a gray-scale standard tongue image;
分别确定灰度初始舌部图像与灰度标准舌部图像中各像素点的灰度值的平均值,得到灰度初始舌部图像的第一平均灰度值和灰度标准舌部图像的第二平均灰度值;Determine the average gray value of each pixel in the gray-scale initial tongue image and the gray-scale standard tongue image respectively, and obtain the first average gray value of the gray-scale initial tongue image and the first average gray value of the gray-scale standard tongue image. Two average gray value;
将灰度初始舌部图像中各像素点的灰度值分别与第一平均灰度值进行比较,若一像素点的灰度值大于第一平均灰度值则转化值记为N,否则转化值记为M,按照像素点在灰度初始舌部图像中的排列顺序形成初始编码;Compare the grayscale value of each pixel in the grayscale initial tongue image with the first average grayscale value, if the grayscale value of a pixel is greater than the first average grayscale value, the converted value is recorded as N, otherwise converted The value is denoted as M, and the initial code is formed according to the arrangement order of the pixels in the grayscale initial tongue image;
将灰度标准舌部图像中各像素点的灰度值分别与第二平均灰度值进行比较,若一像素点的灰度值大于第二平均灰度值则转化值记为N,否则转化值记为M,按照像素点在灰度标准舌部图像中的排列顺序形成标准编码;Compare the grayscale value of each pixel in the grayscale standard tongue image with the second average grayscale value, if the grayscale value of a pixel is greater than the second average grayscale value, the converted value is recorded as N, otherwise converted The value is denoted as M, and a standard code is formed according to the arrangement order of the pixels in the grayscale standard tongue image;
对初始编码和标准编码进行比较,得到初始相似度。Compare the initial code with the standard code to get the initial similarity.
其中,在确定第一平均灰度值、第二灰度值之前,可以将灰度初始舌部图像与灰度标准舌部图像中各像素点的灰度值同比例缩小一定系数,以减少后续计算量。若灰度初始舌部图像与灰度标准舌部图像为8*8尺寸的图像,初始编码和标准编码可以是64位2进制编码。N,M为不同的数字,比如N=1,M=0等。初始编码和标准编码的编码的排列顺序一致。Among them, before determining the first average gray value and the second gray value, the gray value of each pixel in the gray initial tongue image and the gray standard tongue image can be reduced by a certain factor in proportion to reduce the subsequent Calculations. If the grayscale initial tongue image and the grayscale standard tongue image are 8*8 size images, the initial code and the standard code can be 64-bit binary codes. N and M are different numbers, such as N=1, M=0 and so on. The initial encoding and standard encoding are arranged in the same order.
对初始编码和标准编码进行比较,得到初始相似度的方式包括分别比对初始编码和标准编码中处于相同排列位置的两个转化值是否相同,获取相同的转化值的数量,并以相同的转化值的数量占比初始编码(或标准编码)中所有转化值数量的比例作为初始相似度。以预设像素大小为8*8为例,则两个图像分别有8*8=64个像素,则得到的初始编码和标准编码分别有64个转化值,经过比对得到有60个位置上的转化值相同,则初始相似度=60/64*100%=93.75%。Comparing the initial code with the standard code, the method of obtaining the initial similarity includes comparing whether the two conversion values in the same arrangement position in the initial code and the standard code are the same, obtaining the number of the same conversion values, and using the same conversion value The ratio of the number of values to the number of all converted values in the initial encoding (or standard encoding) is taken as the initial similarity. Taking the default pixel size of 8*8 as an example, the two images have 8*8=64 pixels respectively, and the obtained initial code and standard code respectively have 64 conversion values, and after comparison, there are 60 positions The conversion values of are the same, then the initial similarity=60/64*100%=93.75%.
一种可选的将初始舌部图像与标准舌部图像进行比对的方式包括:An optional way to compare the initial tongue image to the standard tongue image includes:
对初始舌部图像与标准舌部图像分别进行特征向量提取,得到初始舌部图像特征向量和标准舌部图像特征向量;Carry out feature vector extraction to initial tongue image and standard tongue image respectively, obtain initial tongue image feature vector and standard tongue image feature vector;
确定初始舌部图像特征向量和标准舌部图像特征向量之间的余弦相似度,作为初始相似度。Determine the cosine similarity between the initial tongue image feature vector and the standard tongue image feature vector as the initial similarity.
其中,将初始舌部图像与标准舌部图像进行比对的方式也可以采用本领域技术人员所知晓的其他方式,在此不做限定。Wherein, the manner of comparing the initial tongue image with the standard tongue image may also adopt other manners known to those skilled in the art, which is not limited here.
通过先将初始舌部图像与标准舌部图像进行比对,得到初始相似度,能够先对用户的初始舌部情况是否与历史舌部情况一致有一定认知,对该用户是否需要本实施例提供的健 康方案推荐进行一个初步的筛选。若初始舌部图像与标准舌部图像相似(初始相似度高于预设初始相似度阈值),则说明用户的健康状态较为稳定,仅需要保持原有的生活饮食等习惯即可。否则,始舌部图像与标准舌部图像不相似(初始相似度低于预设初始相似度阈值),则说明用户的健康状态发生了变化,需要重新推荐健康方案。By first comparing the initial tongue image with the standard tongue image to obtain the initial similarity, it is possible to have a certain understanding of whether the user's initial tongue condition is consistent with the historical tongue condition, and whether the user needs this embodiment. Offered health program recommendations for an initial screening. If the initial tongue image is similar to the standard tongue image (the initial similarity is higher than the preset initial similarity threshold), it means that the user's health status is relatively stable, and it is only necessary to maintain the original living and eating habits. Otherwise, if the original tongue image is not similar to the standard tongue image (the initial similarity is lower than the preset initial similarity threshold), it means that the user's health status has changed, and the health plan needs to be re-recommended.
在一些实施例中,在采集初始舌部图像时,用户可能之前食用了葡萄、火龙果、桑葚、含有色素的饮料等易将舌头染色的食物,若采用舌部染色后的图像进行判断,将导致判断不准确,可以对初始舌部图像进行初步筛选,以保证初始舌部图像是合格图像。获取用户的初始舌部图像,并将初始舌部图像与标准舌部图像进行比对,得到相似度之前,还包括对初始舌苔图像进行筛选,参见图2,该方法还包括:In some embodiments, when collecting the initial tongue image, the user may have eaten foods that are easy to stain the tongue, such as grapes, dragon fruit, mulberries, and beverages containing pigments. If the judgment is inaccurate, preliminary screening can be performed on the initial tongue image to ensure that the initial tongue image is a qualified image. Obtain the user's initial tongue image, and compare the initial tongue image with the standard tongue image. Before obtaining the similarity, it also includes screening the initial tongue coating image. See Figure 2. The method also includes:
S001:获取用户的原始舌部图像,并识别得到原始舌部图像中的原始舌苔图像;S001: Obtain the original tongue image of the user, and identify the original tongue coating image in the original tongue image;
S002:获取原始舌苔图像的色相;S002: Acquire the hue of the original tongue coating image;
S003:若色相属于预设色相,则原始舌部图像合格,将原始舌部图像作为初始舌部图像;S003: If the hue belongs to the preset hue, the original tongue image is qualified, and the original tongue image is used as the initial tongue image;
S004:若色相不属于预设色相,提示用户清洁舌部。S004: If the hue does not belong to the preset hue, prompt the user to clean the tongue.
可选的,原始舌部图像也即采集设备所直接采集到的图像,或采集设备采集的图像经过上述误差调整后的图像。Optionally, the original tongue image is the image directly collected by the collection device, or the image obtained by the collection device after the above error adjustment.
原始舌苔图像的获取方法可以是通过预先训练的目标提取模型进行提取,也可以是与后续所述的初始舌苔图像的提取方式类似,还可以采用本领域技术人员所知晓的方式实现。The acquisition method of the original tongue coating image can be extracted through a pre-trained target extraction model, or it can be similar to the extraction method of the initial tongue coating image described later, or it can be realized by means known to those skilled in the art.
原始舌苔图像的色相的获取方式可以采用本领域技术人员所知晓的方式实现,包括但不限于通过肉眼识别、通过机器识别等。预设色相可以由本领域技术人员根据需要设定,该预设色相可以是固定不变的,也可以根据不同的季节进行调整,比如可以根据富含色素的水果的成熟期的不同设定不同的预设色相。The acquisition method of the hue of the original tongue coating image can be implemented in a manner known to those skilled in the art, including but not limited to visual recognition, machine recognition, and the like. The preset hue can be set by those skilled in the art as required, and the preset hue can be fixed or adjusted according to different seasons. For example, different colors can be set according to the ripening period of fruits rich in pigment Default hue.
若发现舌苔的颜色是黑色、深紫色等异常颜色,可以及时的提醒用户进行舌部清洁,提升该方案的准确性。可以等用户完成舌部清洁后,再行采集新的初始舌部图像。If it is found that the color of the tongue coating is black, dark purple and other abnormal colors, the user can be reminded to clean the tongue in time to improve the accuracy of the program. You can wait for the user to finish cleaning the tongue before collecting a new initial tongue image.
步骤S102:若初始相似度低于预设初始相似度阈值,从初始舌部图像中分别提取初始舌苔图像和初始舌质图像。Step S102: If the initial similarity is lower than the preset initial similarity threshold, extract an initial tongue coating image and an initial tongue quality image respectively from the initial tongue image.
通过根据初始相似度,可以对初始舌部图像有一定的筛选,只有初始相似度低于预设初始相似度阈值的初始舌部图像,才会进行舌苔和舌质的提取,可以减少不必要的计算,节约算力。According to the initial similarity, the initial tongue image can be screened to a certain extent. Only the initial tongue image whose initial similarity is lower than the preset initial similarity threshold will extract the tongue coating and tongue quality, which can reduce unnecessary Calculate and save computing power.
预设初始相似度阈值可以是本领域技术人员根据需要所设定的阈值。The preset initial similarity threshold may be a threshold set by those skilled in the art according to needs.
在一些实施例中,从初始舌部图像中提取初始舌苔图像和初始舌质图像可以通过预先训练好的预设图像提取模型来实现,该模型的训练可以采用本领域技术人员所知晓的方式实现。其中,预设图像提取模型可以通过预先对若干个样本图像进行人工标注,得到若干舌苔图像和舌质图像,作为训练集,对预设神经网络模型等进行训练,得到预设图像提取模型,将初始舌部图像输入到预设图像提取模型后,输出初始舌苔图像和初始设置图像。In some embodiments, the extraction of the initial tongue coating image and the initial tongue quality image from the initial tongue image can be realized through a pre-trained preset image extraction model, and the training of the model can be realized in a manner known to those skilled in the art . Among them, the preset image extraction model can manually mark several sample images in advance to obtain a number of tongue coating images and tongue texture images, as a training set, and train the preset neural network model to obtain the preset image extraction model. After the initial tongue image is input to the preset image extraction model, the initial tongue coating image and initial setting image are output.
在一些实施例中,参见图3,从初始舌部图像中提取初始舌苔图像的方式包括:In some embodiments, referring to FIG. 3 , the manner of extracting the initial tongue coating image from the initial tongue image includes:
S301:将初始舌部图像划分为若干个初始图像块;S301: Divide the initial tongue image into several initial image blocks;
S302:分别获取各初始图像块中像素点的RGB值,并确定各初始图像块的像素点平均RGB值;S302: Obtain the RGB values of the pixels in each initial image block respectively, and determine the average RGB value of the pixels in each initial image block;
S303:根据像素点平均RGB值和预设舌苔RGB值范围从各初始图像块中确定疑似舌苔图像块;S303: Determine the suspected tongue coating image block from each initial image block according to the pixel average RGB value and the preset tongue coating RGB value range;
S304:获取疑似舌苔图像块的图像块位置信息,并确定可信图像块,可信图像块包括与至少一个其他疑似舌苔图像块的距离小于预设距离阈值的疑似舌苔图像块;S304: Obtain the image block position information of the suspected tongue coating image block, and determine the credible image block, the credible image block includes the suspected tongue coating image block whose distance from at least one other suspected tongue coating image block is less than a preset distance threshold;
S305:将可信图像块进行拼接,得到初始舌苔图像。S305: Concatenate the credible image blocks to obtain an initial tongue coating image.
可以将初始舌部图像分割为若干个矩形区域,每个矩形区域的面积大小可以相同,也 可以不同。或将初始舌部图像分割为圆形区域、矩形区域、不规则区域等。初始图像块的划分方式可以是取一定大小的方格或长方形格子的图像,也可以是按照其他本领域技术人员设定的方式进行划分。The initial tongue image can be divided into several rectangular areas, and the size of each rectangular area can be the same or different. Or segment the initial tongue image into circular regions, rectangular regions, irregular regions, etc. The division method of the initial image block may be an image of a certain size square or rectangular grid, or it may be divided according to other methods set by those skilled in the art.
初始图像块中各像素点的RGB(R(red)、G(green)、B(blue))值可以采用本领域技术人员所知晓的方式获取。The RGB (R (red), G (green), B (blue)) values of each pixel in the initial image block can be acquired in a manner known to those skilled in the art.
可选的,初始图像块的像素点平均RGB值=初始图像块中各像素点RGB值的加和/初始图像块中包括有像素点的数量。Optionally, the average RGB value of pixels in the initial image block=the sum of the RGB values of each pixel in the initial image block/the number of pixels included in the initial image block.
由于舌苔与舌质通常情况下是存在一定色差的,而舌苔本身的各部分颜色均比较接近,舌质本身各部分颜色也比较接近,故可以通过像素点平均RGB值从各个初始图像块中找到可能包括舌苔的疑似舌苔图像块。Because there is a certain color difference between the tongue coating and the tongue body under normal circumstances, and the colors of the tongue coating itself are relatively close, and the colors of the tongue body are also relatively close, so it can be found from each initial image block by the average RGB value of the pixel. Image patches of suspected tongue coating that may include tongue coating.
在一些实施例中,预设舌苔RGB值范围可以由本领域技术人员根据需要设定,由于通常可能出现健康问题的舌质颜色一般为舌绛、舌暗红、舌红、舌淡红、舌淡紫、舌白,而可能出现健康问题的舌苔颜色一般为苔紫灰、苔黄白、苔黄、苔白。可见,通常来说,舌苔颜色与舌质颜色具有较大幅度的差异,故可以根据舌苔常见颜色,来设置预设舌苔RGB值范围。In some embodiments, the preset tongue coating RGB value range can be set by those skilled in the art according to needs, because the tongue quality that usually may cause health problems is generally crimson tongue, dark red tongue, red tongue, light red tongue, pale tongue Purple and white tongue, and the color of the tongue coating that may cause health problems is generally purple-gray fur, yellow-white fur, yellow fur, and white fur. It can be seen that generally speaking, the color of the tongue coating is quite different from the color of the tongue texture, so the preset tongue coating RGB value range can be set according to the common colors of the tongue coating.
在一些实施例中,预设舌苔RGB值范围也可以由像素点平均RGB值和其分布情况确定。例如,将位于初始舌部图像中部的初始图像块(除去分布在初始舌部图像边缘的若干个初始图像块外其他的初始图像块)的像素点平均RGB值中的最大值和最小值作为预设舌苔RGB值范围等。In some embodiments, the preset tongue coating RGB value range may also be determined by the average RGB value of pixels and its distribution. For example, the maximum and minimum values of the pixel average RGB values of the initial image blocks located in the middle of the initial tongue image (except for several initial image blocks distributed on the edge of the initial tongue image) are used as the preset values. Set the tongue coating RGB value range, etc.
由于舌苔往往附着在舌质上,舌苔的位置位于舌质边缘的内部,故若某一个初始图像块离散分布于其他初始图像块之外,则可能发生了误判,将该初始图像块排除,其余的初始图像块作为可信图像块。离散情况可以根据初始图像块之间的距离进行判断。Since the tongue coating is often attached to the tongue, and the position of the tongue coating is located inside the edge of the tongue, if a certain initial image block is discretely distributed outside other initial image blocks, a misjudgment may occur, and the initial image block is excluded. The remaining initial image blocks are used as trusted image blocks. Discrete cases can be judged according to the distance between the initial image blocks.
可选的,图像块位置信息可以是通过预先以初始舌部图像的某一点作为原点对初始舌部图像设定图像坐标系,将疑似舌苔图像块中的某一个或多个图像点的所在位置的坐标作为图像块位置信息。例如,疑似舌苔图像块为矩形,以矩形的四个顶点对应的图像点的坐标作为图像块位置信息。Optionally, the image block position information may be the position of one or more image points in the suspected tongue coating image block by setting an image coordinate system for the initial tongue image in advance with a certain point of the initial tongue image as the origin. The coordinates of are used as the image block position information. For example, the suspected tongue coating image block is a rectangle, and the coordinates of the image points corresponding to the four vertices of the rectangle are used as the position information of the image block.
可选的,图像块位置信息还可以是以当前显示初始舌部图像的显示空间的某一单作为原点,创立显示坐标系,初始舌部图像中每一个图像点在该显示坐标系中均对应有一个坐标,将疑似舌苔图像块中的某一个或多个图像点的所在位置的坐标作为图像块位置信息。Optionally, the image block position information can also use a single point in the display space where the initial tongue image is currently displayed as the origin to create a display coordinate system, and each image point in the initial tongue image corresponds to There is a coordinate, and the coordinates of the location of one or more image points in the suspected tongue coating image block are used as the image block position information.
可选的,若初始图像块为矩形块,疑似舌苔图像块的至少一个图像块位置信息为矩形块的四个顶点位置信息,这样,相接的疑似舌苔图像块之间至少有一个顶点是重合的。若某一个疑似舌苔图像块的图像块位置信息与其他所有图像块位置信息图像块的图像块位置信息均不相同,也即可以表征该疑似舌苔图像块是离散的单一图像块,则可以将该图像块剔除,以保证初始舌苔图像的准确性。Optionally, if the initial image block is a rectangular block, the position information of at least one image block of the suspected tongue coating image block is the position information of four vertices of the rectangular block, so that at least one vertex between the adjacent suspected tongue coating image blocks is coincident of. If the image block position information of a suspected tongue coating image block is different from the image block position information of all other image block position information image blocks, that is, it can be characterized that the suspected tongue coating image block is a discrete single image block, then the Image blocks are removed to ensure the accuracy of the initial tongue coating image.
应当知晓的,部分初始图像块中包括大量或少量舌体的像素点,本领域技术人员可以通过控制预设舌苔RGB值范围来减少包括大量舌体的像素点的初始图像块的影响,也可以通过控制初始图像块中所包括像素点的数量来避免上述影响。It should be known that some of the initial image blocks include a large number or a small number of tongue pixels, and those skilled in the art can reduce the influence of initial image blocks that include a large number of tongue pixels by controlling the preset tongue coating RGB value range, or The above effects are avoided by controlling the number of pixels included in the initial image block.
可信图像块的拼接可以在保留其原有在初始舌部图像中的位置的基础上实现。The splicing of credible image blocks can be realized on the basis of retaining their original positions in the original tongue image.
步骤S103:将初始舌苔图像输入到预设舌苔检测模型,得到舌苔状态,将初始舌质图像输入到预设舌质检测模型,得到舌质状态。Step S103: Input the initial tongue coating image into the preset tongue coating detection model to obtain the tongue coating state, and input the initial tongue texture image into the preset tongue texture detection model to obtain the tongue texture state.
可选的,预设舌苔检测模型、预设舌质检测模型可以由本领域技术人员根据若干已标注好的舌苔图像及舌苔状态、舌质图像及舌质状态作为训练集对基础模型进行训练得到。Optionally, the preset tongue coating detection model and the preset tongue quality detection model can be obtained by those skilled in the art by training the basic model based on a number of marked tongue coating images and tongue coating status, tongue quality images and tongue quality status as training sets.
可选的,舌质状态包括但不限于舌绛、舌暗红、舌红、舌淡红、舌淡紫、舌白等。舌苔状态包括但不限于苔紫灰、苔黄白、苔黄、苔白等。Optionally, the state of the tongue quality includes but is not limited to crimson tongue, dark red tongue, red tongue, light red tongue, lavender tongue, white tongue, etc. The state of the tongue coating includes, but is not limited to, purple-gray fur, yellow-white fur, yellow fur, and white fur.
步骤S104:根据舌质状态和舌苔状态确定舌部关联信息,并确定若干个待选健康方案。Step S104: Determine the tongue related information according to the state of the tongue quality and the state of the tongue coating, and determine several health options to be selected.
可选的,待选健康方案包括建议食物及食用方法。Optionally, the health options to be selected include suggested foods and eating methods.
可选的,舌部关联信息包括舌苔状态关联信息和舌质状态关联信息,以舌苔状态关联信息为例,如舌苔状态为舌苔厚白,需要了解用户的具体身体情况,比如平素进食情况、是否疲倦、乏力、大便黏腻不畅或者不成形,是否有恶心、呕吐症状,居住环境是否潮湿或者近日受潮湿,是否有食欲不振、倦怠乏力,发热的症状,所了解的上述信息均为舌苔状态相关信息。Optionally, the tongue-related information includes tongue-coat status-related information and tongue-quality-related information. Taking the tongue-coat status-related information as an example, if the tongue coating status is thick and white, it is necessary to know the specific physical conditions of the user, such as daily eating conditions, whether Fatigue, fatigue, sticky or shapeless stools, whether you have symptoms of nausea or vomiting, whether your living environment is damp or has been damp recently, whether you have symptoms of loss of appetite, fatigue, fatigue, and fever. The above information is the state of tongue coating Related Information.
可选的,可以预先设置预设关联信息问题库,该预设关联信息问题库中包括若干个预设关联信息问题,各预设关联信息问题均设置有舌质标签和舌苔标签,舌质标签对应舌质状态,舌苔标签对应舌苔状态。可以根据舌质状态和舌苔状态分别在预设关联信息问题库中查找到对应的若干个预设关联信息问题,并通过对用户询问预设关联信息问题,根据用户回答得到舌部关联信息。例如,舌部关联信息还可以通过根据舌质状态、舌苔状态确定预设问题清单,通过文字、语音等方式按照预设问题清单中的问题进行提问并获取用户回答,根据用户回答进行关键词提取,以得到上述问题答案作为舌部关联信息。Optionally, a preset related information question bank can be set in advance, and the preset related information question bank includes several preset related information questions, and each preset related information question is provided with a tongue quality label and a tongue coating label, and the tongue quality label Corresponds to the state of the tongue quality, and the tongue coating label corresponds to the state of the tongue coating. According to the state of the tongue quality and the state of the tongue coating, several corresponding preset related information questions can be found in the preset related information question database, and the tongue related information can be obtained according to the user's answer by asking the user the preset related information questions. For example, the tongue-related information can also determine the preset question list according to the tongue quality and tongue coating state, ask questions in the preset question list through text, voice, etc. and obtain user answers, and perform keyword extraction based on user answers , to get the answers to the above questions as tongue related information.
在一些实施例中,待选健康方案根据舌部关联信息、舌质状态、舌苔状态和健康相关信息确定,其中,健康相关信息包括性别、年龄、基础病症、生活环境气候、身高、体重、体温、睡眠型态、血压、血糖、心率、久坐状态等。可选的,可以根据身高和体重确定BMI(身体质量指数),具体的,BMI=体重(kg)÷身高^2(m)。该健康相关信息可以通过相关健康信息采集设备采集得到。例如通过体脂称、具有健康监测功能的手环等设备采集得到健康相关信息。In some embodiments, the health plan to be selected is determined according to tongue association information, tongue quality, tongue coating state, and health-related information, wherein the health-related information includes gender, age, underlying disease, living environment climate, height, weight, body temperature , sleep pattern, blood pressure, blood sugar, heart rate, sedentary state, etc. Optionally, BMI (body mass index) can be determined according to height and weight, specifically, BMI=weight (kg)÷height^2(m). The health-related information may be collected through relevant health information collection equipment. For example, health-related information is collected through body fat scales, bracelets with health monitoring functions, and other equipment.
可选的,可以为各类别的健康相关信息分别赋予对应的信息影响因子,对于数值型健康相关信息如体重、身高等可以直接取其数值与信息影响因子的乘积作为中间值,对于非数值型健康相关新,如睡眠类型、久坐状态等,先将其转化为数值化表示,如久坐状态包括日均坐姿时长,将不同时长划分为对应的等级,再取所在等级与信息影响因子的乘积作为中间值,数值化表示的方式还可以采用本领域技术人员所知晓的方式实现。将各个健康相关信息所对应的中间值求和再取平均值,作为健康相关信息的标识数值,以实现健康相关信息的归一化表示,以便后续确定待选健康方案。Optionally, each category of health-related information can be assigned a corresponding information impact factor. For numerical health-related information such as weight and height, the product of its value and the information impact factor can be directly taken as the intermediate value. For non-numeric type For health-related news, such as sleep type and sedentary state, first convert them into numerical representations. For example, sedentary state includes the daily average sitting time, divide different time lengths into corresponding levels, and then take the relationship between the level and the information impact factor The product is used as an intermediate value, and the way of numerical representation can also be realized by means known to those skilled in the art. The median value corresponding to each health-related information is summed and then averaged as the identification value of the health-related information, so as to realize the normalized representation of the health-related information, so as to subsequently determine the health plan to be selected.
根据舌部关联信息、舌质状态、舌苔状态、健康相关信息中至少之一通过与包括若干个预设健康方案的预设健康方案库进行比对,以得到适合的待选健康方案,其中预设健康方案预设有其所适配的舌部关联信息标签、舌质状态标签、舌苔状态标签、健康相关信息标签中至少之一。通过舌部关联信息标签、舌质状态标签、舌苔状态标签、健康相关信息标签与舌部关联信息、舌质状态、舌苔状态、健康相关信息等进行比对,确定合适的预设健康方案作为待选健康方案。可选的,一个预设健康方案可以对应一个或多个舌部关联信息标签、健康相关信息标签。预设健康方案可以由医生、营养师等专业人士进行构建。According to at least one of the tongue-related information, tongue state, tongue coating state, and health-related information, it is compared with a preset health plan library including several preset health plans to obtain a suitable candidate health plan. It is assumed that the health plan is preset with at least one of tongue-related information tags, tongue quality status tags, tongue coating status tags, and health-related information tags. By comparing the tongue-related information label, tongue quality status label, tongue coating status label, and health-related information label with tongue-related information, tongue quality status, tongue coating status, health-related information, etc., determine the appropriate preset health plan as the Choose a health plan. Optionally, a preset health program may correspond to one or more tongue-related information labels and health-related information labels. Preset health programs can be constructed by professionals such as doctors and nutritionists.
其中,建议食物可以是普通食物,也可以是药食兼用食物。通过食补来帮助用户解决或预防一些可能的健康问题。Among them, the recommended food can be ordinary food, or food with both medicine and food. Help users solve or prevent some possible health problems through food supplements.
对同一种食物可能有多种食用方法,比如直接生吃、过油、过水、雕花、烘焙、烧烤、做汤等。食用方法可以是菜谱或小贴士等形式呈现。食用方法还可以以视频连接的方式呈现,若用户选择了或者自动向用户推荐了该健康方案,则对应匹配合适的食用方法并播放制作过程视频。There may be many ways to eat the same food, such as eating raw, oiling, watering, carving, baking, grilling, making soup, etc. The eating method can be presented in the form of recipes or tips. The eating method can also be presented in the form of a video connection. If the user chooses or automatically recommends the health plan to the user, the corresponding eating method will be matched and the production process video will be played.
可选的,该方法还包括:Optionally, the method also includes:
根据推荐健康方案确定食用方法和制作过程视频,并播放制作过程视频。Determine the eating method and production process video according to the recommended health plan, and play the production process video.
可选的,可以根据用户由舌质、舌苔及舌部关联信息确定用户可能的健康问题,如上火等,并对应推荐包括适合食用的食物在内的健康方案,以便用户可以通过食疗的方式减轻或者解决健康问题。Optionally, according to the user’s tongue quality, tongue coating and tongue-related information, it is possible to determine the user’s possible health problems, such as getting angry, etc., and recommend corresponding health solutions including suitable foods, so that the user can alleviate the problem through dietary therapy. Or address health issues.
可选的,根据用户的健康相关信息可以知晓用户是否存在偏胖、高血压、高血脂、尿 酸高等问题,可以结合健康相关信息、舌苔状态、舌质状态、舌部关联信息综合确定待选健康方案,以避免待选健康方案中包括可能会对用户健康存在威胁的食物。如某患者尿酸过高,患有通风时,则避免不会将包括有高嘌呤含量食物如香菇等食物的健康方案确定为待选健康方案。Optionally, according to the user's health-related information, it can be known whether the user has problems such as obesity, high blood pressure, high blood fat, and high uric acid, and can be combined with health-related information, tongue coating status, tongue quality status, and tongue-related information to comprehensively determine the candidate health Programs to avoid food that may pose a threat to the user's health in the health program to be selected. For example, if a patient has high uric acid and suffers from ventilation, avoid determining a health plan that includes foods with high purine content such as shiitake mushrooms as a candidate health plan.
步骤S105:获取用户精神状态关联信息及预设时间段内若干张用户行为图像,并确定用户精神状态。Step S105: Obtain information related to the user's mental state and several user behavior images within a preset time period, and determine the user's mental state.
可选的,用户行为图像可以是通过摄像监控设备来采集,在用户预先知晓并同意进行图像采集的前提下,该采集行为的具体时间点和采集设备最好不被用户所知晓,以提升所采集的用户行为图像的可信度。Optionally, user behavior images can be collected by camera monitoring equipment. On the premise that the user knows and agrees to the image collection in advance, the specific time point and collection equipment of the collection behavior are preferably not known to the user, so as to improve the user experience. The credibility of the collected user behavior images.
用户行为图像的获取也可以通过引导用户进行人脸精神状态采集实现。例如,首先记录用户三种状态的人脸(开心/伤心/正常)图像作为训练集对精神状态初始模型进行训练,得到用户精神状态模型。后续通过引导用户开启手机摄像头进行视频实时采集或通过其他图像采集设备采集用户人脸图像,输入到训练号的用户精神状态模型中,以得到用户精神状态。The acquisition of user behavior images can also be realized by guiding the user to collect the mental state of the face. For example, first record the user's face images in three states (happy/sad/normal) as a training set to train the initial model of the mental state to obtain the user's mental state model. Follow-up guides the user to turn on the mobile phone camera for real-time video capture or collects the user's face image through other image capture devices, and inputs it into the user's mental state model of the training account to obtain the user's mental state.
可选的,用户精神状态关联信息包括但不限于用户工作(学习)时长、是否有发呆、哭泣、叹气等行为、非工作外出次数与时长等能够体现或反映用户精神状态的行为中至少之一。Optionally, the associated information of the user's mental state includes but is not limited to at least one of the user's working (study) duration, whether there is any behavior such as dazed, crying, sighing, etc., the number and duration of non-work going out, and other behaviors that can reflect or reflect the user's mental state .
可选的,可以通过对用户行为图像所分析得到第一用户心情得分,再根据用户精神状态关联信息得到第二用户心情得分,根据第一用户心情得分和第二用户心情得分得到用户心情总得分以表征用户的精神状态。例如,对开心/伤心/正常的用户精神状态分别赋予不同数值作为第一用户心情得分,对不同用户精神状态关联信息分别赋予合适的数值作为关联数值及其关联影响影子,根据关联数值及关联影响因子确定第二用户心情得分(取各用户精神状态关联信息的关联数值的加权平均数)。Optionally, the first user mood score can be obtained by analyzing the user behavior image, and then the second user mood score can be obtained according to the user's mental state related information, and the user mood total score can be obtained according to the first user mood score and the second user mood score To characterize the mental state of the user. For example, different values are assigned to happy/sad/normal user mental states as the first user mood score, and appropriate values are assigned to the associated information of different user mental states as associated values and their associated influence shadows. The factor determines the mood score of the second user (by taking the weighted average of the associated values of the associated information of each user's mental state).
用户行为图像可以是人体图像,基于包括用户的形体状态的人体图像也可以确定用户精神状态。例如,用户耸肩、驼背、低头、昂头等均可以反映用户精神状态。The user behavior image may be a human body image, and the user's mental state may also be determined based on the human body image including the user's physical state. For example, the user's shrugging, hunchback, bowing, and raising the head can all reflect the user's mental state.
在一些实施例中,用户行为图像包括用户面部图像,用户精神状态关联信息包括信息内容和信息内容影响因子,用户精神状态的确定方式包括:In some embodiments, the user behavior image includes the user's facial image, the user's mental state-related information includes information content and information content influencing factors, and the method for determining the user's mental state includes:
获取用户面部图像中目标面部关键点的关键点位置信息,目标面部关键点包括鼻尖关键点、嘴角关键点和眼角关键点;Obtain the key point position information of the target facial key point in the user's facial image, the target facial key point includes the key point of the nose tip, the key point of the corner of the mouth and the key point of the corner of the eye;
分别获取各用户面部图像中眼角关键点与鼻尖关键点的第一距离,嘴角关键点与鼻尖关键点的第二距离,并分别确定若干个第一距离的第一平均值和第一中位数,分别确定若干个第二距离的第二平均值和第二中位数;Obtain the first distance between the eye corner key point and the nose tip key point in each user's facial image, and the second distance between the mouth corner key point and the nose tip key point, and determine the first average value and first median of several first distances respectively , respectively determine the second average value and the second median of several second distances;
根据第一中位数、第一平均值、第二中位数和第二平均值确定第一精神状态得分;determining a first mental state score based on the first median, the first mean, the second median, and the second mean;
根据信息内容和信息内容影像因子确定第二精神状态得分;determining a second mental state score based on the information content and the information content image factor;
根据第一精神状态得分和第二精神状态得分确定用户精神状态。The mental state of the user is determined according to the first mental state score and the second mental state score.
可选的,信息内容包括但不限于笑声次数、发呆次数、哭泣次数、叹气次数、工作时长、非工作外出时长中至少之一。Optionally, the information content includes but not limited to at least one of the number of times of laughter, times of dazed, times of crying, times of sighing, working hours, and non-working time out.
其中,目标面部关键点可以由本领域技术人员来确定,上述仅为一种示例,其他与当前所选定的目标面部关键点相邻的关键点(如眉毛处的关键点等)也可以作为目标面部关键点,其用户精神状态的确定方式与上述示例类似。Wherein, target face key point can be determined by those skilled in the art, and above-mentioned is just an example, and other key points (such as the key point at the eyebrow etc.) adjacent to the currently selected target face key point can also be used as target Facial keypoints, whose user's mental state is determined in a similar manner to the above example.
可选的,目标面部关键点的识别方式以及关键点位置信息的获取方式可以采用本领域技术人员所知晓的方式实现。Optionally, the manner of identifying the key points of the target face and the manner of acquiring the location information of the key points may be implemented in a manner known to those skilled in the art.
第一距离、第二距离可以是基于图像坐标系所得到的“虚拟距离”后,再根据图像与现实世界的比例转化关系转为现实世界坐标系下的实际距离,也可以关键点位置信息就是相对于现实世界坐标系下所得到的坐标数据,进而得到的第一距离、第二距离为实际距离。 第一平均值、第二平均值为在不同用户面部图像中所拍摄到的用户的若干个第一距离的平均数、若干个第二距离的平均数。第一中位数、第二中位数分别为将第一距离和第二距离按照大小顺序排序所得到的。可选的,若第一距离和/或第二距离的数量为偶数时,取位于中间的两个数值的平均数作为第一中位数和/或第二中位数。The first distance and the second distance can be based on the "virtual distance" obtained based on the image coordinate system, and then converted to the actual distance in the real world coordinate system according to the ratio conversion relationship between the image and the real world, or the key point position information is Relative to the coordinate data obtained in the coordinate system of the real world, the obtained first distance and the second distance are actual distances. The first average value and the second average value are the average number of several first distances and the average number of several second distances of the user captured in different facial images of the user. The first median and the second median are respectively obtained by sorting the first distance and the second distance in order of magnitude. Optionally, if the number of the first distance and/or the second distance is an even number, take the average of the two values in the middle as the first median and/or the second median.
可选的,根据第一中位数、第一平均值、第二中位数和第二平均值确定第一精神状态得分包括:Optionally, determining the first mental state score according to the first median, the first average, the second median and the second average includes:
若第一中位数小于第一平均值,且第二中位数小于第二平均值,则获取预设第一面部得分作为第一精神状态得分,否则获取预设第二面部得分作为第一精神状态得分。预设第一面部得分、预设第二面部得分可以由本领域技术人员预先设定。If the first median is less than the first average, and the second median is less than the second average, then obtain the preset first facial score as the first mental state score, otherwise obtain the preset second facial score as the second A mental state score. The preset first facial score and the preset second facial score can be preset by those skilled in the art.
可选的,人在开心时,嘴角往往会上扬,拉近嘴角与鼻尖的距离,若第二中位数小于第二平均值,则说明可能用户开心时所拍摄的用户面部图像比较多。人在开心时,由于肌肉由于拉伸,导致眼角会靠近鼻尖,拉近眼角与鼻尖的距离,若第一中位数小于第一平均值,则进一步说明可能用户处于开心时所拍摄的用户面部图像比较多,此时获取预设第一面部得分作为第一精神状态得分。其他情况则说明用户正常或不开心时所拍摄的用户面部图像比较多,则选用预设第二面部得分作为第一精神状态得分。Optionally, when a person is happy, the corners of the mouth tend to rise, shortening the distance between the corners of the mouth and the tip of the nose. If the second median is smaller than the second average value, it means that the user may have taken more facial images when the user is happy. When a person is happy, the corners of the eyes will be close to the tip of the nose due to the stretching of the muscles, and the distance between the corners of the eyes and the tip of the nose will be shortened. If the first median is smaller than the first average value, it further indicates that the user’s face may be taken when the user is happy. There are many images, and at this time, the preset first face score is acquired as the first mental state score. In other cases, it means that when the user is normal or unhappy, there are more facial images of the user, and the preset second facial score is selected as the first mental state score.
可选的,根据将不同的信息内容和对应的信息内容影响因子分别取乘积后求和,以确定第二精神状态得分。Optionally, the second mental state score is determined by taking products of different information contents and corresponding information content impact factors and summing them up.
取第一精神状态得分和第二精神状态得分之和作为精神状态总得分。通过精神状态总得分与预先设定好的各得分梯度所对应的精神状态之间的映射关系,确定该用户的精神状态。或者,取第一精神状态得分和第二精神状态得分的加权平均数作为精神状态总得分。Take the sum of the first mental state score and the second mental state score as the total mental state score. The mental state of the user is determined through the mapping relationship between the total score of the mental state and the mental state corresponding to each preset score gradient. Alternatively, the weighted average of the first mental state score and the second mental state score is taken as the total mental state score.
S106:根据用户精神状态在待选健康方案中确定推荐健康方案。S106: Determine the recommended health plan among the health plans to be selected according to the mental state of the user.
可选的,预先对预设健康方案标注所适合的精神状态,进而根据精神状态可以方便的选择合适的健康方案。Optionally, a suitable mental state is marked for the preset health plan in advance, so that a suitable health plan can be conveniently selected according to the mental state.
在一些实施例中,待选健康方案还包括实施难度、用时时长、建议食物的推荐食用季节和推荐食用天气,根据用户精神状态在待选健康方案中确定推荐健康方案包括:In some embodiments, the health plan to be selected also includes implementation difficulty, duration, recommended eating season and recommended eating weather of the suggested food, and determining the recommended health plan in the health plan to be selected according to the mental state of the user includes:
获取初始时间、初始季节、初始天气状况及各待选健康方案的实施难度和用时时长;Obtain the initial time, initial season, initial weather conditions, and the implementation difficulty and duration of each health plan to be selected;
根据初始季节、初始天气状况、推荐食用天气和推荐食用季节从各待选健康方案中确定若干个第一备选健康方案;According to the initial season, the initial weather conditions, the recommended eating weather and the recommended eating season, determine several first alternative health programs from each candidate health program;
根据初始时间及用时时长从各第一备选健康方案中确定若干个第二备选健康方案;Determine a number of second alternative health programs from each of the first alternative health programs according to the initial time and duration;
根据用户精神状态和实施难度从各第二备选健康方案中确定推荐健康方案。The recommended health plan is determined from the second alternative health plans according to the user's mental state and implementation difficulty.
其中,初始时间、初始季节、初始天气状态可以根据当前时间、当前季节、当前天气状态确定,也可以是由本领域技术人员所指定的时期的相关信息确定,如未来一周或未来三天的对应信息确定。可选的,初始时间、初始季节、初始天气状态也可以根据初始舌部图像所采集时所对应的相关信息确定。Among them, the initial time, initial season, and initial weather state can be determined according to the current time, current season, and current weather state, or can be determined by relevant information of a period specified by those skilled in the art, such as the corresponding information for the next week or the next three days Sure. Optionally, the initial time, initial season, and initial weather state may also be determined according to relevant information corresponding to when the initial tongue image was collected.
可以根据季节确定当季较为容易获得的食物,以提升健康方案的可执行度。如冬季则尽量不将包括多在夏季成熟的食物的健康方案作为第一备选健康方案,比如芒果等。根据天气状况可以选择适合的食物,如气温较低时,则可以确定包括如羊肉等温补的食材的健康方案作为第一备选健康方案。对于待选健康方案,可以根据其方案所包括的食物等信息预先标注好推荐食用天气和推荐食用季节,以便第一备选健康方案的选取。Foods that are easier to obtain in the season can be determined according to the season to improve the implementability of the health plan. If it is winter, try not to use a health plan that includes foods that ripen more in summer as the first alternative health plan, such as mangoes. Suitable food can be selected according to the weather conditions. For example, when the temperature is low, a health plan including warming ingredients such as mutton can be determined as the first alternative health plan. For the health plan to be selected, the recommended eating weather and recommended eating season can be marked in advance according to the food and other information included in the plan, so as to facilitate the selection of the first alternative health plan.
有些食材的制作过程较为繁琐,用时较长,此时若时间过晚,则可能导致用户在根据健康方案的推荐食物以及推荐食用方式进行食材加工耗时过久,导致用户错过饭点,体验度不佳,故可以结合当前所在时间(初始时间)在第一备选健康方案中选择第二备选健康方案,以筛除那些耗时过久的健康方案,提升用户对于健康方案执行的可行性与满意度。The production process of some ingredients is cumbersome and takes a long time. If the time is too late at this time, it may take too long for the user to process the ingredients according to the recommended food and recommended eating methods of the health plan, causing the user to miss the meal. Not good, so you can select the second alternative health plan from the first alternative health plan based on the current time (initial time) to screen out those health plans that take too long and improve the user's feasibility for health plan execution and satisfaction.
通过食材的加工与加工完成的满足感可以在一定程度上改善某些用户的心境,使其心情愉悦。但对于某些用户来说,其更接收简单的食物加工过程,复杂的食物加工将使其心境更差,故,可以根据每个用户的特质(复杂的食物加工是导致其心境更佳还是更差)以及实施难度从各第二备选健康方案中确定推荐健康方案。The satisfaction through the processing and processing of food materials can improve the mood of some users to a certain extent and make them feel happy. However, for some users, they prefer simple food processing, and complex food processing will make them feel worse. Poor) and implementation difficulty to determine the recommended health program from each second alternative health program.
可选的,健康方案包括但不限于实施难度、用时时长、建议食物及食用方法等,当确定了推荐健康方案后,可以将健康方案所包括的上述信息通过语音、视频、图片、文字等方式展示给用户。Optionally, the health plan includes but is not limited to implementation difficulty, duration, recommended food and eating methods, etc. After the recommended health plan is determined, the above information included in the health plan can be transmitted through voice, video, pictures, text, etc. displayed to the user.
在一些实施例中,根据用户精神状态在待选健康方案中确定推荐健康方案之后,该方法还包括以下至少之一:In some embodiments, after determining the recommended health plan among the health plans to be selected according to the mental state of the user, the method further includes at least one of the following:
获取推荐健康方案中的建议食物及食用方法,根据食用方法确定所需辅助食材,并根据建议食物和辅助食材生成购买清单,获取到下单确认信息后,将购买清单发送至预设购物平台,生成订单;Obtain the recommended food and eating method in the recommended health plan, determine the required auxiliary ingredients according to the eating method, and generate a purchase list based on the recommended food and auxiliary ingredients. After obtaining the order confirmation information, send the purchase list to the preset shopping platform. Generate orders;
将舌质状态、舌苔状态、用户精神状态关联信息、舌部关联信息和推荐健康方案发送给预设对象;Send the tongue quality state, tongue coating state, user mental state associated information, tongue associated information and recommended health plan to the preset object;
根据舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息确定用户健康状态,并提示。Determine the user's health status according to the tongue quality status, tongue coating status, user's mental state related information and tongue related information, and prompt.
食用方法包括但不限于烹饪方式,根据烹饪方式可以得到所需的各种辅助食材,进而方便用户在网络购物平台下单购买。下单确认信息可以是将购买清单呈现给用户后,用户直接确定的信息也可以是用户对该购买清单进行修改后得到的新的包括修改后购买清单的确认信息。将该购买清单发送给到预设购物平台进行生成订单,当用户完成支付,则该健康方案所需要的的食材和工具均可以派送到指定地点,使得用户执行该健康方案更加方便。The eating method includes but not limited to the cooking method, according to the cooking method, various auxiliary ingredients can be obtained, which is convenient for users to place an order on the online shopping platform. The order confirmation information may be information directly determined by the user after the purchase list is presented to the user, or may be new confirmation information including the modified purchase list obtained after the user modifies the purchase list. Send the purchase list to the preset shopping platform to generate an order. When the user completes the payment, the ingredients and tools needed for the health plan can be delivered to the designated place, making it more convenient for the user to implement the health plan.
有时,与用户有抚养、扶养或其他关系的人需要知晓用户的当前健康情况,则可以在用户知情同意的前提下将舌质状态、舌苔状态、用户精神状态关联信息、舌部关联信息和推荐健康方案通过短信、微信、邮件、语音电话等方式通知给到相关人员。例如,将舌质状态、舌苔状态、用户精神状态关联信息、舌部关联信息和推荐健康方案发送到指定邮箱地址等。Sometimes, people who have fostered, fostered, or other relationships with the user need to know the current health condition of the user, so they can combine the tongue quality, tongue coating state, user's mental state related information, tongue related information and recommendation information with the user's informed consent. The health plan is notified to relevant personnel through text messages, WeChat, emails, voice calls, etc. For example, the tongue quality status, tongue coating status, user mental state related information, tongue related information and recommended health plan are sent to the designated email address, etc.
通过对不同的舌质状态、舌苔状态以及舌部关联信息可以得到用户当前的健康情况,如舌质、舌苔发生了异常(舌苔颜色不正常和/或舌质颜色不正常等),则健康情况较差,同时通过用户精神状态关联信息确定用户精神状态,进而根据健康情况、用户精神状态得到用户健康状态,并通过不同颜色的标识或者不同文字以实现提示用户其当前用户健康状态。The current health status of the user can be obtained through different tongue quality status, tongue coating status and tongue related information. At the same time, the user's mental state is determined through the user's mental state-related information, and then the user's health status is obtained according to the health status and user's mental state, and the user is reminded of the current user's health status through different colors of logos or different words.
可选的,根据所述舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息确定用户健康状态包括但不限于如下方式:Optionally, determining the user's health status according to the tongue quality state, tongue coating state, user mental state association information, and tongue association information includes but is not limited to the following methods:
预先对各种舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息进行分级评分,得到分数比对表;Grading and scoring various tongue quality states, tongue coating states, user mental state related information and tongue related information in advance to obtain a score comparison table;
在该分数比对表中查找与用户当前的舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息各自的得分并加总,得到该用户的健康总得分;In the score comparison table, look up the respective scores of the user's current tongue state, tongue coating state, user's mental state-related information and tongue-related information and add them up to obtain the user's total health score;
根据健康总得分与预设用户健康状态的对应关系,确定用户健康状态。According to the corresponding relationship between the total health score and the preset user health status, the user health status is determined.
例如,通过上述给到的确定精神状态总得分的方式确定该用户精神状态关联信息所对应的精神状态总得分,再根据该精神状态总得分在分数比对表中查找到对应的精神状态得分;根据舌部关联信息在分数比对表中查找各舌部关联子信息对应的评分,再进行加总,得到舌部关联得分;根据舌质状态在分数比对表中查找到舌质得分,根据舌苔状态在分数比对表中查找到舌苔得分,将精神状态得分、舌部关联得分、舌质得分和舌苔得分加总,得到健康总得分。再通过查找该健康总得分所对应的预设用户健 康状态作为用户健康状态。如健康总得分为80分,所对应的预设用户健康状态为亚健康,健康总得分为60分,所对应的预设用户健康状态为较为不健康,健康总得分为30分,所对应的预设用户健康状态为非常不健康。具体的健康总得分与预设用户健康状态的映射关系可以由本领域技术人员根据需要进行设定。For example, determine the total mental state score corresponding to the user's mental state related information through the above-mentioned method of determining the total mental state score, and then find the corresponding mental state score in the score comparison table according to the total mental state score; According to the tongue association information, look up the scores corresponding to each tongue association sub-information in the score comparison table, and then add up to get the tongue association score; find the tongue quality score in the score comparison table according to the tongue quality state, according to Tongue coating status Find the tongue coating score in the score comparison table, and add up the mental state score, tongue association score, tongue quality score, and tongue coating score to obtain the total health score. Then find the preset user health status corresponding to the total health score as the user health status. For example, if the total health score is 80 points, the corresponding preset user health status is sub-health, the total health score is 60 points, the corresponding preset user health status is relatively unhealthy, the total health score is 30 points, and the corresponding preset user health status is 30 points. Let the user's health status be very unhealthy. The specific mapping relationship between the total health score and the preset user health status can be set by those skilled in the art as needed.
可选的,另一种根据所述舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息确定用户健康状态包括但不限于如下方式:Optionally, another way to determine the user's health status based on the tongue quality state, tongue coating state, user mental state association information, and tongue association information includes but is not limited to the following methods:
根据达到预设条件的数量确定所述用户健康状态,所述预设条件包括以下至少之一:Determining the user's health status according to the number of reaching preset conditions, where the preset conditions include at least one of the following:
舌质状态包括预设舌质状态;The tongue state includes a preset tongue state;
舌苔状态包括预设舌苔状态;The state of the tongue coating includes the preset state of the tongue coating;
舌部关联信息包括预设舌部关联信息;Tongue associated information includes preset tongue associated information;
用户精神状态关联信息所确定的精神状态得分达到预设精神状态得分。The mental state score determined by the associated information of the user's mental state reaches the preset mental state score.
其中,预设舌质状态、预设舌苔状态、预设舌部关联信息、预设精神状态得分可以由本领域技术人员进行设定。Among them, the preset tongue quality state, the preset tongue coating state, the preset tongue related information, and the preset mental state score can be set by those skilled in the art.
可选的,若满足一个预设条件,用户健康状态包括亚健康,满足两个预设条件,用户健康包括较为不健康,满足三个及以上预设条件,用户健康状态包括非常不健康。Optionally, if one preset condition is met, the user health status includes sub-health, if two preset conditions are met, the user health status includes relatively unhealthy, and if three or more preset conditions are met, the user health status includes very unhealthy.
在一些实施例中,根据用户精神状态在待选健康方案中确定推荐健康方案之后,方法还包括:In some embodiments, after determining the recommended health plan among the health plans to be selected according to the mental state of the user, the method further includes:
获取后续舌部图像,后续舌部图像的后续采集时间晚于初始舌部图像的初始采集时间;Acquiring subsequent tongue images, the subsequent acquisition time of the subsequent tongue images is later than the initial acquisition time of the initial tongue images;
将后续舌部图像与标准舌部图像进行比对,得到后续第一相似度;Comparing the follow-up tongue image with the standard tongue image to obtain the follow-up first similarity;
若后续第一相似度低于预设初始相似度阈值,将后续舌部图像与初始舌部图像进行比对,得到后续第二相似度;If the subsequent first similarity is lower than the preset initial similarity threshold, the subsequent tongue image is compared with the initial tongue image to obtain the subsequent second similarity;
若后续第二相似度高于预设后续相似度阈值,获取后续采集时间与初始采集时间的历经时长;If the subsequent second similarity is higher than the preset subsequent similarity threshold, obtain the elapsed time between the subsequent acquisition time and the initial acquisition time;
若历经时长超过预设时间阈值,根据舌质状态、舌苔状态和舌部关联信息推荐适合的医生和/或药品。If the elapsed time exceeds the preset time threshold, recommend suitable doctors and/or medicines based on the tongue quality, tongue coating and tongue-related information.
若对于某一健康问题,采用一段时间(历经时长大于预设时间阈值)的食疗(食用推荐方案中的食材)后,并没有良好的改善(后续第二相似度高于预设后续相似度阈值),此时可以推荐对应的药物治疗或者医生,以帮助用户解决健康问题。If for a certain health problem, after a period of time (elapsed time longer than the preset time threshold) of dietary therapy (eating the ingredients in the recommended plan), there is no good improvement (the subsequent second similarity is higher than the preset subsequent similarity threshold ), at this time, the corresponding drug treatment or doctor can be recommended to help the user solve the health problem.
可选的,若后续舌部图像与标准舌部图像相似,则说明用户的身体状态恢复正常,否则,用户的身体状态仍然处于异常状态。Optionally, if the subsequent tongue image is similar to the standard tongue image, it means that the user's physical state has returned to normal; otherwise, the user's physical state is still in an abnormal state.
可选的,若后续舌部图像与初始舌部图像不相似,也即后续第二相似度低于预设后续相似度阈值,此时可以推荐适合的医生和/或药品,也可以重新根据新的后续舌部图像确定新的推荐健康方案。Optionally, if the follow-up tongue image is not similar to the initial tongue image, that is, the follow-up second similarity is lower than the preset follow-up similarity threshold, at this time, a suitable doctor and/or medicine can be recommended, or it can be re-according to the new Subsequent tongue images of the new algorithm are used to determine the new recommended health regimen.
通过上述实施方式,可以进一步跟进用户的健康状态变化,若健康状态发生改变,及时调整健康管理方案。若之前的健康管理方案并没有奏效,则需要及时辅助药物治疗。Through the above implementation manner, it is possible to further follow up the change of the user's health status, and adjust the health management plan in time if the health status changes. If the previous health management plan has not worked, timely adjuvant drug treatment is required.
本申请实施例提供了一种基于深度学习的健康方案推荐方法,该方法通过获取用户的初始舌部图像,并将初始舌部图像与标准舌部图像进行比对,得到初始相似度,若初始相似度低于预设初始相似度阈值,从初始舌部图像中分别提取初始舌苔图像和初始舌质图像,将初始舌苔图像输入到预设舌苔检测模型,得到舌苔状态,将初始舌质图像输入到预设舌质检测模型,得到舌质状态,根据舌质状态和舌苔状态确定舌部关联信息,并确定若干个待选健康方案,获取用户精神状态关联信息及预设时间段内若干张用户行为图像,并确定用户精神状态,根据用户精神状态在待选健康方案中确定推荐健康方案。通过舌部图像经预设舌苔检测模型和预设舌质检测模型得到舌质状态和舌苔状态,以确定待选健康方案,结合用户精神状态确定推荐健康方案,结合用户的身体健康情况与精神状态两方面因素推 荐合适的健康方案,考虑维度更加全面,提升用户满意度,简单可行。The embodiment of the present application provides a health plan recommendation method based on deep learning. The method acquires the user's initial tongue image and compares the initial tongue image with the standard tongue image to obtain the initial similarity. If the initial The similarity is lower than the preset initial similarity threshold, and the initial tongue coating image and the initial tongue texture image are respectively extracted from the initial tongue image, and the initial tongue coating image is input into the preset tongue coating detection model to obtain the state of the tongue coating, and the initial tongue texture image is input to Go to the preset tongue quality detection model, get the tongue quality status, determine the tongue related information according to the tongue quality status and the tongue coating status, and determine several health plans to be selected, and obtain the user's mental state related information and several user pictures within the preset time period. Behavioral images, and determine the user's mental state, and determine the recommended health plan among the candidate health plans according to the user's mental state. Get the tongue quality and tongue coating status through the tongue image through the preset tongue coating detection model and the preset tongue quality detection model to determine the health plan to be selected, and determine the recommended health plan based on the user's mental state, combined with the user's physical health and mental state Two factors recommend the appropriate health plan, the consideration dimension is more comprehensive, and the user satisfaction is improved, which is simple and feasible.
在一个实施例中,如图4所示,本申请实施例还提供一种基于深度学习的健康方案推荐装置400,该装置包括:In one embodiment, as shown in FIG. 4 , the embodiment of the present application also provides a device 400 for recommending a health plan based on deep learning, which includes:
图像获取模块401,用于获取用户的初始舌部图像,并将初始舌部图像与标准舌部图像进行比对,得到初始相似度;An image acquisition module 401, configured to acquire an initial tongue image of the user, and compare the initial tongue image with a standard tongue image to obtain an initial similarity;
图像提取模块402,用于若初始相似度低于预设初始相似度阈值,从初始舌部图像中分别提取初始舌苔图像和初始舌质图像;An image extraction module 402, configured to extract an initial tongue coating image and an initial tongue quality image from the initial tongue image if the initial similarity is lower than the preset initial similarity threshold;
检测模块403,用于将初始舌苔图像输入到预设舌苔检测模型,得到舌苔状态,将初始舌质图像输入到预设舌质检测模型,得到舌质状态;The detection module 403 is configured to input the initial tongue coating image into the preset tongue coating detection model to obtain the tongue coating state, and input the initial tongue texture image to the preset tongue texture detection model to obtain the tongue texture state;
待选方案确定模块404,用于根据舌质状态和舌苔状态确定舌部关联信息,并确定若干个待选健康方案,待选健康方案包括建议食物及食用方法;Alternative options determination module 404, used to determine tongue-related information according to the state of tongue quality and tongue coating, and determine several health options to be selected, including suggested foods and eating methods;
精神状态确定模块405,用于获取用户精神状态关联信息及预设时间段内若干张用户行为图像,并确定用户精神状态;The mental state determination module 405 is used to obtain the relevant information of the user's mental state and several user behavior images within a preset time period, and determine the user's mental state;
推荐模块406,用于根据用户精神状态在待选健康方案中确定推荐健康方案。The recommending module 406 is configured to determine a recommended health plan among candidate health plans according to the mental state of the user.
在一个实施例中,图像提取模块包括舌苔提取模块和舌质提取模块,其中,舌苔提取模块用于从初始舌部图像中提取初始舌苔图像,舌质提取模块用于从初始舌部图像中提取初始舌质图像。In one embodiment, the image extraction module includes a tongue coating extraction module and a tongue quality extraction module, wherein the tongue coating extraction module is used to extract an initial tongue coating image from an initial tongue image, and the tongue quality extraction module is used to extract an initial tongue coating image from an initial tongue image. Initial tongue image.
参见图5,舌苔提取模块500包括:Referring to Fig. 5, the tongue coating extraction module 500 includes:
图像划分模块501,用于将初始舌部图像划分为若干个初始图像块;An image division module 501, configured to divide the initial tongue image into several initial image blocks;
平均值确定模块502,用于分别获取各初始图像块中像素点的RGB值,并确定各初始图像块的像素点平均RGB值;The average value determination module 502 is used to obtain the RGB values of the pixels in each initial image block respectively, and determine the average RGB value of the pixels of each initial image block;
疑似舌苔图像块确定模块503,用于根据像素点平均RGB值和预设舌苔RGB值范围从各初始图像块中确定疑似舌苔图像块;The suspected tongue coating image block determination module 503 is used to determine the suspected tongue coating image block from each initial image block according to the pixel average RGB value and the preset tongue coating RGB value range;
可信图像块确定模块504,用于获取疑似舌苔图像块的图像块位置信息,并确定可信图像块,可信图像块包括与至少一个其他疑似舌苔图像块的距离小于预设距离阈值的疑似舌苔图像块;A credible image block determining module 504, configured to acquire image block position information of a suspected tongue coating image block, and determine a credible image block, where the credible image block includes a suspected tongue coating image block whose distance from at least one other suspected tongue coating image block is less than a preset distance threshold. Tongue coating image blocks;
拼接模块505,用于将可信图像块进行拼接,得到初始舌苔图像。The splicing module 505 is configured to splice the credible image blocks to obtain an initial tongue coating image.
在一个实施例中,用户行为图像包括用户面部图像,用户精神状态关联信息包括信息内容和信息内容影响因子,精神状态确定模块还包括:In one embodiment, the user behavior image includes the user's facial image, the user's mental state related information includes information content and information content influencing factors, and the mental state determination module further includes:
位置信息获取模块,用于获取用户面部图像中目标面部关键点的关键点位置信息,目标面部关键点包括鼻尖关键点、嘴角关键点和眼角关键点;The position information acquisition module is used to obtain key point position information of target facial key points in the user's facial image, and the target facial key points include nose tip key points, mouth corner key points and eye corner key points;
距离确定模块,用于分别获取各用户面部图像中眼角关键点与鼻尖关键点的第一距离,嘴角关键点与鼻尖关键点的第二距离,并分别确定若干个第一距离的第一平均值和第一中位数,分别确定若干个第二距离的第二平均值和第二中位数;The distance determination module is used to respectively obtain the first distance between the eye corner key point and the nose tip key point in each user's facial image, and the second distance between the mouth corner key point and the nose tip key point, and respectively determine the first average value of several first distances and the first median, respectively determine the second average and the second median of several second distances;
第一精神状态得分确定模块,用于根据第一中位数、第一平均值、第二中位数和第二平均值确定第一精神状态得分;The first mental state score determination module is used to determine the first mental state score according to the first median, the first average, the second median and the second average;
第二精神状态得分确定模块,用于根据信息内容和信息内容影像因子确定第二精神状态得分;The second mental state score determination module is used to determine the second mental state score according to the information content and the information content image factor;
用户精神状态确定模块,用于根据第一精神状态得分和第二精神状态得分确定用户精神状态。The user's mental state determination module is configured to determine the user's mental state according to the first mental state score and the second mental state score.
在一个实施例中,待选健康方案还包括实施难度、用时时长、建议食物的推荐食用季节和推荐食用天气,推荐模块包括:In one embodiment, the health plan to be selected also includes the difficulty of implementation, the duration, the recommended consumption season and the recommended consumption weather of the suggested food, and the recommendation module includes:
信息获取模块,用于获取初始时间、初始季节、初始天气状况及各待选健康方案的实施难度和用时时长;The information acquisition module is used to acquire the initial time, the initial season, the initial weather conditions, and the implementation difficulty and duration of each health plan to be selected;
第一备选健康方案确定模块,用于根据初始季节、初始天气状况、推荐食用天气和推荐食用季节从各待选健康方案中确定若干个第一备选健康方案;The first alternative health program determination module is used to determine several first alternative health programs from each candidate health program according to the initial season, initial weather conditions, recommended eating weather and recommended eating season;
第二备选健康方案确定模块,用于根据初始时间及用时时长从各第一备选健康方案中确定若干个第二备选健康方案;The second alternative health program determination module is used to determine several second alternative health programs from each of the first alternative health programs according to the initial time and the duration;
推荐健康方案确定模块,用于根据用户精神状态和实施难度从各第二备选健康方案中确定推荐健康方案。The recommended health plan determination module is used to determine the recommended health plan from the second alternative health plans according to the user's mental state and implementation difficulty.
在一个实施例中,该基于深度学习的健康方案推荐装置还包括:In one embodiment, the device for recommending health solutions based on deep learning also includes:
订单生成模块,用于获取推荐健康方案中的建议食物及食用方法,根据食用方法确定所需辅助食材,并根据建议食物和辅助食材生成购买清单,获取到下单确认信息后,将购买清单发送至预设购物平台,生成订单;The order generation module is used to obtain the recommended food and eating method in the recommended health plan, determine the required auxiliary ingredients according to the eating method, and generate a purchase list based on the recommended food and auxiliary ingredients. After obtaining the order confirmation information, send the purchase list Go to the default shopping platform and generate an order;
发送模块,用于将舌质状态、舌苔状态、用户精神状态关联信息、舌部关联信息和推荐健康方案发送给预设对象;The sending module is used to send the tongue quality state, tongue coating state, user mental state related information, tongue related information and recommended health plan to preset objects;
提示模块,用于根据舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息确定用户健康状态,并提示。The prompting module is used to determine the user's health status according to the state of the tongue quality, the state of the tongue coating, the associated information of the user's mental state, and the associated information of the tongue, and provide a prompt.
在一个实施例中,该基于深度学习的健康方案推荐装置还包括医生和/或药品推荐模块,该医生和/或药品推荐模块用于:In one embodiment, the deep learning-based health plan recommendation device also includes a doctor and/or drug recommendation module, which is used for:
获取后续舌部图像,后续舌部图像的后续采集时间晚于初始舌部图像的初始采集时间;Acquiring subsequent tongue images, the subsequent acquisition time of the subsequent tongue images is later than the initial acquisition time of the initial tongue images;
将后续舌部图像与标准舌部图像进行比对,得到后续第一相似度;Comparing the follow-up tongue image with the standard tongue image to obtain the follow-up first similarity;
若后续第一相似度低于预设初始相似度阈值,将后续舌部图像与初始舌部图像进行比对,得到后续第二相似度;If the subsequent first similarity is lower than the preset initial similarity threshold, the subsequent tongue image is compared with the initial tongue image to obtain the subsequent second similarity;
若后续第二相似度高于预设后续相似度阈值,获取后续采集时间与初始采集时间的历经时长;If the subsequent second similarity is higher than the preset subsequent similarity threshold, obtain the elapsed time between the subsequent acquisition time and the initial acquisition time;
若历经时长超过预设时间阈值,根据舌质状态、舌苔状态和舌部关联信息推荐适合的医生和/或药品。If the elapsed time exceeds the preset time threshold, recommend suitable doctors and/or medicines based on the tongue quality, tongue coating and tongue-related information.
在一个实施例中,该基于深度学习的健康方案推荐装置还包括预选模块,该预选模块用于在图像获取模块获取用户的初始舌部图像,并将初始舌部图像与标准舌部图像进行比对,得到相似度之前,执行以下步骤:In one embodiment, the device for recommending health solutions based on deep learning also includes a pre-selection module, which is used to obtain the user's initial tongue image in the image acquisition module, and compare the initial tongue image with the standard tongue image Yes, before getting the similarity, perform the following steps:
获取用户的原始舌部图像,并识别得到原始舌部图像中的原始舌苔图像;Obtain the user's original tongue image, and identify the original tongue coating image in the original tongue image;
获取原始舌苔图像的色相;Obtain the hue of the original tongue coating image;
若色相属于预设色相,则原始舌部图像合格,将原始舌部图像作为初始舌部图像;If the hue belongs to the preset hue, the original tongue image is qualified, and the original tongue image is used as the initial tongue image;
若色相不属于预设色相,提示用户清洁舌部。If the hue does not belong to the preset hue, the user is prompted to clean the tongue.
本申请实施例提供了一种基于深度学习的健康方案推荐装置,通过舌部图像经预设舌苔检测模型和预设舌质检测模型得到舌质状态和舌苔状态,以确定待选健康方案,结合用户精神状态确定推荐健康方案,结合用户的身体健康情况与精神状态两方面因素推荐合适的健康方案,考虑维度更加全面,提升用户满意度,简单可行。The embodiment of the present application provides a device for recommending a health plan based on deep learning, which obtains the state of the tongue quality and the state of the tongue coating through the tongue image through the preset tongue coating detection model and the preset tongue quality detection model, so as to determine the health plan to be selected. The user's mental state determines the recommended health plan, and recommends an appropriate health plan based on the user's physical health and mental state. The consideration dimension is more comprehensive and the user satisfaction is improved. It is simple and feasible.
在本实施例中,该基于深度学习的健康方案推荐装置执行上述任一实施例所述的基于深度学习的健康方案推荐方法,具体功能和技术效果参照上述实施例即可,此处不再赘述。In this embodiment, the device for recommending a health plan based on deep learning executes the method for recommending a health plan based on deep learning described in any of the above-mentioned embodiments. For specific functions and technical effects, please refer to the above-mentioned embodiment, and details will not be repeated here. .
在一个实施例中,参见图6,本实施例还提供了一种计算机设备600,包括存储器601、处理器602及存储在存储器上并可在处理器上运行的计算机程序,所述处理器602执行所述计算机程序时实现如上任一项实施例所述方法的步骤。In one embodiment, referring to FIG. 6, this embodiment also provides a computer device 600, including a memory 601, a processor 602, and a computer program stored in the memory and operable on the processor. The processor 602 The steps of the method described in any one of the above embodiments are realized when the computer program is executed.
在一个实施例中,还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一项实施例所述方法的步骤。所述计算机可读存储介质可以是非易失性,也可以是易失性。In one embodiment, there is also provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in any one of the above embodiments are implemented. The computer-readable storage medium may be non-volatile or volatile.
本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能 (Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, apparatus, article or method comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, apparatus, article, or method. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional same elements in the process, apparatus, article or method comprising the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments. Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium as described above (such as ROM/RAM , magnetic disk, optical disk), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.

Claims (20)

  1. 一种基于深度学习的健康方案推荐方法,其中,所述方法包括:A method for recommending a health plan based on deep learning, wherein the method includes:
    获取用户的初始舌部图像,并将所述初始舌部图像与标准舌部图像进行比对,得到初始相似度;Obtaining an initial tongue image of the user, and comparing the initial tongue image with a standard tongue image to obtain an initial similarity;
    若所述初始相似度低于预设初始相似度阈值,从初始舌部图像中分别提取初始舌苔图像和初始舌质图像;If the initial similarity is lower than the preset initial similarity threshold, extracting an initial tongue coating image and an initial tongue quality image respectively from the initial tongue image;
    将所述初始舌苔图像输入到预设舌苔检测模型,得到舌苔状态,将所述初始舌质图像输入到预设舌质检测模型,得到舌质状态;Inputting the initial tongue coating image into a preset tongue coating detection model to obtain a tongue coating state, and inputting the initial tongue texture image into a preset tongue texture detection model to obtain a tongue texture state;
    根据所述舌质状态和舌苔状态确定舌部关联信息,并确定若干个待选健康方案,所述待选健康方案包括建议食物及食用方法;Determine tongue-related information according to the state of the tongue quality and the state of the tongue coating, and determine several health options to be selected, the health options to be selected include suggested foods and eating methods;
    获取用户精神状态关联信息及预设时间段内若干张用户行为图像,并确定用户精神状态;Obtain information related to the user's mental state and several user behavior images within a preset time period, and determine the user's mental state;
    根据所述用户精神状态在所述待选健康方案中确定推荐健康方案。A recommended health plan is determined among the candidate health plans according to the mental state of the user.
  2. 如权利要求1所述的健康方案推荐方法,其中,从初始舌部图像中提取初始舌苔图像的方式包括:The health program recommendation method according to claim 1, wherein the method of extracting the initial tongue coating image from the initial tongue image comprises:
    将所述初始舌部图像划分为若干个初始图像块;Dividing the initial tongue image into several initial image blocks;
    分别获取各所述初始图像块中像素点的RGB值,并确定各所述初始图像块的像素点平均RGB值;Obtain the RGB values of the pixels in each of the initial image blocks respectively, and determine the average RGB value of the pixels in each of the initial image blocks;
    根据所述像素点平均RGB值和预设舌苔RGB值范围从各所述初始图像块中确定疑似舌苔图像块;Determine the suspected tongue coating image block from each of the initial image blocks according to the pixel average RGB value and the preset tongue coating RGB value range;
    获取所述疑似舌苔图像块的图像块位置信息,并确定可信图像块,所述可信图像块包括与至少一个其他所述疑似舌苔图像块的距离小于预设距离阈值的所述疑似舌苔图像块;Acquiring image block position information of the suspected tongue coating image block, and determining a credible image block, the credible image block including the suspected tongue coating image whose distance from at least one other said suspected tongue coating image block is less than a preset distance threshold piece;
    将所述可信图像块进行拼接,得到所述初始舌苔图像。The credible image blocks are spliced to obtain the initial tongue coating image.
  3. 如权利要求2所述的健康方案推荐方法,其中,预设舌苔RGB值范围根据所述像素点平均RGB值和所述像素点平均RGB值的分布情况确定。The method for recommending a health plan according to claim 2, wherein the preset tongue coating RGB value range is determined according to the average RGB value of the pixel point and the distribution of the average RGB value of the pixel point.
  4. 如权利要求1所述的健康方案推荐方法,其中,所述用户行为图像包括用户面部图像,用户精神状态关联信息包括信息内容和信息内容影响因子,所述用户精神状态的确定方式包括:The method for recommending a health plan according to claim 1, wherein the user behavior image includes a user's facial image, and the user's mental state-related information includes information content and information content influencing factors, and the method for determining the user's mental state includes:
    获取所述用户面部图像中目标面部关键点的关键点位置信息,所述目标面部关键点包括鼻尖关键点、嘴角关键点和眼角关键点;Obtain key point position information of target facial key points in the user's facial image, where the target facial key points include nose tip key points, mouth corner key points, and eye corner key points;
    分别获取各所述用户面部图像中所述眼角关键点与鼻尖关键点的第一距离,所述嘴角关键点与鼻尖关键点的第二距离,并分别确定若干个所述第一距离的第一平均值和第一中位数,分别确定若干个所述第二距离的第二平均值和第二中位数;Respectively acquire the first distance between the key point of the corner of the eye and the key point of the tip of the nose in each of the facial images of the user, and the second distance between the key point of the corner of the mouth and the key point of the tip of the nose, and respectively determine the first distance between the key points of the corner of the mouth and the key point of the tip of the nose. an average value and a first median, respectively determining a second average value and a second median of a plurality of said second distances;
    根据所述第一中位数、第一平均值、第二中位数和第二平均值确定第一精神状态得分;determining a first mental state score based on the first median, first average, second median, and second average;
    根据所述信息内容和信息内容影像因子确定第二精神状态得分;determining a second mental state score based on the information content and the information content imaging factor;
    根据所述第一精神状态得分和第二精神状态得分确定用户精神状态。The mental state of the user is determined according to the first mental state score and the second mental state score.
  5. 如权利要求4所述的健康方案推荐方法,其中,所述信息内容包括笑声次数、发呆次数、哭泣次数、叹气次数、工作时长、非工作外出时长中至少之一。The method for recommending a health plan according to claim 4, wherein the information content includes at least one of the number of times of laughter, times of daze, times of crying, times of sighing, working hours, and non-working time of going out.
  6. 如权利要求4所述的健康方案推荐方法,其中,根据所述第一中位数、第一平均值、第二中位数和第二平均值确定第一精神状态得分包括:The health program recommendation method as claimed in claim 4, wherein, determining the first mental state score according to the first median, the first average value, the second median value and the second average value comprises:
    若所述第一中位数小于所述第一平均值,且所述第二中位数小于所述第二平均值,则获取预设第一面部得分作为第一精神状态得分;If the first median is smaller than the first average value, and the second median is smaller than the second average value, then obtain a preset first facial score as the first mental state score;
    否则,获取预设第二面部得分作为第一精神状态得分。Otherwise, acquire a preset second facial score as the first mental state score.
  7. 如权利要求1所述的健康方案推荐方法,其中,所述待选健康方案还包括实施难 度、用时时长、所述建议食物的推荐食用季节和推荐食用天气,所述根据所述用户精神状态在所述待选健康方案中确定推荐健康方案包括:The method for recommending a health program according to claim 1, wherein the health program to be selected further includes implementation difficulty, time duration, recommended eating season and recommended eating weather of the suggested food, and the user’s mental state is based on the user’s mental state. Determining the recommended health program in the candidate health program includes:
    获取初始时间、初始季节、初始天气状况及各所述待选健康方案的所述实施难度和用时时长;Obtain the initial time, initial season, initial weather conditions, and the implementation difficulty and time-consuming period of each health plan to be selected;
    根据所述初始季节、初始天气状况、推荐食用天气和推荐食用季节从各待选健康方案中确定若干个第一备选健康方案;According to the initial season, the initial weather conditions, the recommended eating weather and the recommended eating season, determine several first alternative health programs from each candidate health program;
    根据所述初始时间及用时时长从各所述第一备选健康方案中确定若干个第二备选健康方案;Determine a number of second health options from each of the first health options according to the initial time and duration;
    根据所述用户精神状态和实施难度从各所述第二备选健康方案中确定推荐健康方案。A recommended health plan is determined from each of the second alternative health plans according to the user's mental state and implementation difficulty.
  8. 如权利要求1所述的健康方案推荐方法,其中,所述根据所述用户精神状态在所述待选健康方案中确定推荐健康方案之后,所述方法还包括以下至少之一:The method for recommending a health plan according to claim 1, wherein, after determining the recommended health plan in the candidate health plan according to the mental state of the user, the method further includes at least one of the following:
    获取所述推荐健康方案中的建议食物及食用方法,根据所述食用方法确定所需辅助食材,并根据所述建议食物和辅助食材生成购买清单,获取到下单确认信息后,将所述购买清单发送至预设购物平台,生成订单;Obtain the recommended food and eating method in the recommended health plan, determine the required auxiliary ingredients according to the eating method, and generate a purchase list according to the recommended food and auxiliary ingredients, and after obtaining the order confirmation information, the purchased The list is sent to the preset shopping platform to generate an order;
    将所述舌质状态、舌苔状态、用户精神状态关联信息、舌部关联信息和推荐健康方案发送给预设对象;Send the tongue quality state, tongue coating state, user mental state associated information, tongue associated information and recommended health plan to the preset object;
    根据所述舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息确定用户健康状态,并提示。Determine the user's health status according to the tongue quality status, tongue coating status, user mental status related information and tongue related information, and prompt.
  9. 如权利要求8所述的健康方案推荐方法,其中,根据所述舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息确定用户健康状态包括:The method for recommending a health plan according to claim 8, wherein determining the user's health status according to the state of the tongue, the state of the tongue coating, the associated information of the user's mental state, and the associated information of the tongue includes:
    预先对各所述舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息进行分级评分,得到分数比对表;Grading and scoring each of the tongue quality state, tongue coating state, user mental state related information and tongue related information in advance to obtain a score comparison table;
    在所述分数比对表中查找与用户当前的舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息各自的得分并加总,得到该用户的健康总得分;In the score comparison table, look up the respective scores of the user's current tongue state, tongue coating state, user's mental state-related information and tongue-related information and add them up to obtain the user's total health score;
    根据所述健康总得分与预设用户健康状态的对应关系,确定用户健康状态。According to the corresponding relationship between the total health score and the preset user health status, the user health status is determined.
  10. 如权利要求8所述的健康方案推荐方法,其中,根据所述舌质状态、舌苔状态、用户精神状态关联信息和舌部关联信息确定用户健康状态包括根据达到预设条件的数量确定所述用户健康状态,所述预设条件包括以下至少之一:The health program recommendation method according to claim 8, wherein determining the user's health status according to the tongue state, tongue coating state, user's mental state related information and tongue related information includes determining the user's health status according to the number of preset conditions. Health status, the preset conditions include at least one of the following:
    舌质状态包括预设舌质状态;The tongue state includes a preset tongue state;
    舌苔状态包括预设舌苔状态;The state of the tongue coating includes the preset state of the tongue coating;
    舌部关联信息包括预设舌部关联信息;Tongue associated information includes preset tongue associated information;
    用户精神状态关联信息所确定的精神状态得分达到预设精神状态得分。The mental state score determined by the associated information of the user's mental state reaches the preset mental state score.
  11. 如权利要求8所述的健康方案推荐方法,其中,所述食用方法通过菜谱、小贴士、视频连接中至少之一呈现。The method for recommending a health plan according to claim 8, wherein the eating method is presented by at least one of recipes, tips, and video links.
  12. 如权利要求8所述的健康方案推荐方法,其中,所述方法还包括:The health program recommendation method as claimed in claim 8, wherein said method further comprises:
    根据所述推荐健康方案确定食用方法和制作过程视频,并播放所述制作过程视频。The eating method and the production process video are determined according to the recommended health plan, and the production process video is played.
  13. 如权利要求1所述的健康方案推荐方法,其中,所述待选健康方案根据所述舌部关联信息、所述舌质状态、所述舌苔状态和健康相关信息确定,所述健康相关信息包括性别、年龄、基础病症、生活环境气候、身高、体重、体温、睡眠型态、血压、血糖、心率、久坐状态中至少之一。The method for recommending a health plan according to claim 1, wherein the candidate health plan is determined according to the tongue-related information, the state of the tongue quality, the state of the tongue coating, and health-related information, and the health-related information includes At least one of gender, age, underlying disease, living environment climate, height, weight, body temperature, sleep pattern, blood pressure, blood sugar, heart rate, and sedentary state.
  14. 如权利要求1-13任一项所述的健康方案推荐方法,其中,所述根据所述用户精神状态在所述待选健康方案中确定推荐健康方案之后,所述方法还包括:The method for recommending a health program according to any one of claims 1-13, wherein, after determining the recommended health program in the health program to be selected according to the mental state of the user, the method further comprises:
    获取后续舌部图像,所述后续舌部图像的后续采集时间晚于所述初始舌部图像的初始采集时间;acquiring a subsequent tongue image, the subsequent acquisition time of the subsequent tongue image is later than the initial acquisition time of the initial tongue image;
    将所述后续舌部图像与所述标准舌部图像进行比对,得到后续第一相似度;Comparing the subsequent tongue image with the standard tongue image to obtain the subsequent first similarity;
    若所述后续第一相似度低于所述预设初始相似度阈值,将所述后续舌部图像与所述初始舌部图像进行比对,得到后续第二相似度;If the subsequent first similarity is lower than the preset initial similarity threshold, comparing the subsequent tongue image with the initial tongue image to obtain a subsequent second similarity;
    若所述后续第二相似度高于预设后续相似度阈值,获取所述后续采集时间与初始采集时间的历经时长;If the subsequent second similarity is higher than the preset subsequent similarity threshold, obtain the elapsed time between the subsequent acquisition time and the initial acquisition time;
    若所述历经时长超过预设时间阈值,根据所述舌质状态、舌苔状态和舌部关联信息推荐适合的医生和/或药品。If the elapsed time exceeds the preset time threshold, a suitable doctor and/or medicine is recommended according to the tongue state, tongue coating state and tongue related information.
  15. 如权利要求1-13任一项所述的健康方案推荐方法,其中,所述获取用户的初始舌部图像,并将所述初始舌部图像与标准舌部图像进行比对,得到相似度之前,所述方法还包括:The health program recommendation method according to any one of claims 1-13, wherein said acquiring the user's initial tongue image and comparing said initial tongue image with a standard tongue image to obtain similarity , the method also includes:
    获取用户的原始舌部图像,并识别得到所述原始舌部图像中的原始舌苔图像;Obtaining the original tongue image of the user, and identifying the original tongue coating image in the original tongue image;
    获取所述原始舌苔图像的色相;Obtain the hue of the original tongue coating image;
    若所述色相属于预设色相,则所述原始舌部图像合格,将所述原始舌部图像作为初始舌部图像;If the hue belongs to the preset hue, the original tongue image is qualified, and the original tongue image is used as the initial tongue image;
    若所述色相不属于预设色相,提示用户清洁舌部。If the hue does not belong to the preset hue, the user is prompted to clean the tongue.
  16. 如权利要求1-13任一项所述的健康方案推荐方法,其中,将初始舌部图像与标准舌部图像进行比对的方式包括:The health program recommendation method according to any one of claims 1-13, wherein the way of comparing the initial tongue image with the standard tongue image comprises:
    将所述初始舌部图像与所述标准舌部图像分别进行灰度化处理,并归一化为预设像素大小,得到灰度初始舌部图像与灰度标准舌部图像;Grayscale processing is performed on the initial tongue image and the standard tongue image respectively, and normalized to a preset pixel size to obtain a grayscale initial tongue image and a grayscale standard tongue image;
    分别确定所述灰度初始舌部图像与所述灰度标准舌部图像中各像素点的灰度值的平均值,得到灰度初始舌部图像的第一平均灰度值和灰度标准舌部图像的第二平均灰度值;Determine the average value of the grayscale values of each pixel in the grayscale initial tongue image and the grayscale standard tongue image respectively, to obtain the first average grayscale value of the grayscale initial tongue image and the grayscale standard tongue image. The second average gray value of the internal image;
    将所述灰度初始舌部图像中各像素点的灰度值分别与第一平均灰度值进行比较,若一像素点的灰度值大于第一平均灰度值则转化值记为N,否则,转化值记为M,按照像素点在灰度初始舌部图像中的排列顺序形成初始编码;Comparing the grayscale value of each pixel in the grayscale initial tongue image with the first average grayscale value, if the grayscale value of a pixel is greater than the first average grayscale value, the conversion value is recorded as N, Otherwise, the conversion value is recorded as M, and the initial code is formed according to the arrangement order of the pixels in the gray-scale initial tongue image;
    将所述灰度标准舌部图像中各像素点的灰度值分别与第二平均灰度值进行比较,若一像素点的灰度值大于第二平均灰度值则转化值记为N,否则转化值记为M,按照像素点在灰度标准舌部图像中的排列顺序形成标准编码;The grayscale value of each pixel in the grayscale standard tongue image is compared with the second average grayscale value, if the grayscale value of a pixel is greater than the second average grayscale value, then the conversion value is recorded as N, Otherwise, the conversion value is recorded as M, and a standard code is formed according to the arrangement order of the pixels in the gray-scale standard tongue image;
    对所述初始编码和所述标准编码进行比较,得到初始相似度。Comparing the initial code with the standard code to obtain an initial similarity.
  17. 如权利要求1-13任一项所述的健康方案推荐方法,其中,将初始舌部图像与标准舌部图像进行比对的方式包括:The health program recommendation method according to any one of claims 1-13, wherein the way of comparing the initial tongue image with the standard tongue image comprises:
    对所述初始舌部图像与所述标准舌部图像分别进行特征向量提取,得到初始舌部图像特征向量和标准舌部图像特征向量;Performing feature vector extraction on the initial tongue image and the standard tongue image respectively, to obtain an initial tongue image feature vector and a standard tongue image feature vector;
    确定所述初始舌部图像特征向量和所述标准舌部图像特征向量之间的余弦相似度,作为初始相似度。Determine the cosine similarity between the initial tongue image feature vector and the standard tongue image feature vector as the initial similarity.
  18. 一种基于深度学习的健康方案推荐装置,其中,所述装置包括:A device for recommending a health plan based on deep learning, wherein the device includes:
    图像获取模块,用于获取用户的初始舌部图像,并将所述初始舌部图像与标准舌部图像进行比对,得到初始相似度;An image acquisition module, configured to acquire an initial tongue image of the user, and compare the initial tongue image with a standard tongue image to obtain an initial similarity;
    图像提取模块,用于若所述初始相似度低于预设初始相似度阈值,从初始舌部图像中分别提取初始舌苔图像和初始舌质图像;An image extraction module, configured to extract an initial tongue coating image and an initial tongue quality image from the initial tongue image if the initial similarity is lower than a preset initial similarity threshold;
    检测模块,用于将所述初始舌苔图像输入到预设舌苔检测模型,得到舌苔状态,将所述初始舌质图像输入到预设舌质检测模型,得到舌质状态;A detection module, configured to input the initial tongue coating image into a preset tongue coating detection model to obtain a tongue coating state, and input the initial tongue texture image to a preset tongue texture detection model to obtain a tongue texture state;
    待选方案确定模块,用于根据所述舌质状态和舌苔状态确定舌部关联信息,并确定若干个待选健康方案,所述待选健康方案包括建议食物及食用方法;Alternative options determination module, used to determine tongue-associated information according to the state of tongue quality and tongue coating state, and determine several health options to be selected, the health options to be selected include suggested foods and eating methods;
    精神状态确定模块,用于获取用户精神状态关联信息及预设时间段内若干张用户行为 图像,并确定用户精神状态;The mental state determination module is used to obtain the associated information of the user's mental state and several user behavior images within a preset time period, and determine the user's mental state;
    推荐模块,用于根据所述用户精神状态在所述待选健康方案中确定推荐健康方案。A recommendation module is configured to determine a recommended health plan among the candidate health plans according to the mental state of the user.
  19. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现权利要求1至17任一项所述的方法的步骤。A computer device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein, when the processor executes the computer program, the method described in any one of claims 1 to 17 is realized method steps.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至17中任一项所述的方法的步骤。A computer-readable storage medium on which a computer program is stored, wherein the computer program implements the steps of the method according to any one of claims 1 to 17 when executed by a processor.
PCT/CN2022/087522 2021-08-30 2022-04-18 Health scheme recommendation method and apparatus based on deep learning, and device and medium WO2023029500A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111005735.XA CN113707305A (en) 2021-08-30 2021-08-30 Health scheme recommendation method, device, equipment and medium based on deep learning
CN202111005735.X 2021-08-30

Publications (1)

Publication Number Publication Date
WO2023029500A1 true WO2023029500A1 (en) 2023-03-09

Family

ID=78656901

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/087522 WO2023029500A1 (en) 2021-08-30 2022-04-18 Health scheme recommendation method and apparatus based on deep learning, and device and medium

Country Status (2)

Country Link
CN (1) CN113707305A (en)
WO (1) WO2023029500A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116912260A (en) * 2023-09-15 2023-10-20 沂水友邦养殖服务有限公司 Broiler chicken breeding health state detection method based on artificial intelligence

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113707305A (en) * 2021-08-30 2021-11-26 康键信息技术(深圳)有限公司 Health scheme recommendation method, device, equipment and medium based on deep learning
CN114400071B (en) * 2022-01-19 2024-05-14 平安国际智慧城市科技股份有限公司 Diet data management method, related equipment and medium
CN114596593B (en) * 2022-05-10 2022-07-29 慧医谷中医药科技(天津)股份有限公司 Health-preserving data recommendation method and system based on image processing
CN117911722B (en) * 2024-03-19 2024-06-04 陕西中医药大学 Artificial intelligence-based tongue image feature extraction method for diabetic patients

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557746A (en) * 2016-11-14 2017-04-05 福建北极光虚拟视觉展示科技有限公司 A kind of tongue based on image recognition technology is as detection method and system
CN107038413A (en) * 2017-03-08 2017-08-11 合肥华凌股份有限公司 recipe recommendation method, device and refrigerator
US20170311864A1 (en) * 2015-02-13 2017-11-02 Omron Corporation Health care assisting device and health care assisting method
CN112464871A (en) * 2020-12-08 2021-03-09 天津职业技术师范大学(中国职业培训指导教师进修中心) Deep learning-based traditional Chinese medicine tongue image processing method and system
CN112820370A (en) * 2021-02-09 2021-05-18 清华大学 Health management system based on tongue picture information
CN113707305A (en) * 2021-08-30 2021-11-26 康键信息技术(深圳)有限公司 Health scheme recommendation method, device, equipment and medium based on deep learning

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109147935A (en) * 2018-07-19 2019-01-04 山东和合信息科技有限公司 The health data platform of identification technology is acquired based on characteristics of human body
CN109903836A (en) * 2019-03-31 2019-06-18 山西慧虎健康科技有限公司 A kind of diet intelligent recommendation and matching system and method based on constitution and big data
CN110675389A (en) * 2019-09-27 2020-01-10 珠海格力电器股份有限公司 Food recommendation method, storage medium and intelligent household equipment
CN112259240A (en) * 2020-10-23 2021-01-22 武汉未康未病医学有限公司 Tongue diagnosis cold-heat deficiency-excess mathematical model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170311864A1 (en) * 2015-02-13 2017-11-02 Omron Corporation Health care assisting device and health care assisting method
CN106557746A (en) * 2016-11-14 2017-04-05 福建北极光虚拟视觉展示科技有限公司 A kind of tongue based on image recognition technology is as detection method and system
CN107038413A (en) * 2017-03-08 2017-08-11 合肥华凌股份有限公司 recipe recommendation method, device and refrigerator
CN112464871A (en) * 2020-12-08 2021-03-09 天津职业技术师范大学(中国职业培训指导教师进修中心) Deep learning-based traditional Chinese medicine tongue image processing method and system
CN112820370A (en) * 2021-02-09 2021-05-18 清华大学 Health management system based on tongue picture information
CN113707305A (en) * 2021-08-30 2021-11-26 康键信息技术(深圳)有限公司 Health scheme recommendation method, device, equipment and medium based on deep learning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116912260A (en) * 2023-09-15 2023-10-20 沂水友邦养殖服务有限公司 Broiler chicken breeding health state detection method based on artificial intelligence
CN116912260B (en) * 2023-09-15 2023-11-28 沂水友邦养殖服务有限公司 Broiler chicken breeding health state detection method based on artificial intelligence

Also Published As

Publication number Publication date
CN113707305A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
WO2023029500A1 (en) Health scheme recommendation method and apparatus based on deep learning, and device and medium
KR102339915B1 (en) Systems and methods for guiding a user to take a selfie
CN114502061A (en) Image-based automatic skin diagnosis using deep learning
US20200111577A1 (en) Systems and methods for formulating personalized skincare products
US9760935B2 (en) Method, system and computer program product for generating recommendations for products and treatments
CN105426695B (en) A kind of health status detecting system based on iris
KR102308894B1 (en) Method and apparatus for providing personal customized nutritional supplements based on artificial intelligence
CN107863137A (en) System and method for user's particular adjustments of nutrients intake
US11010894B1 (en) Deriving a skin profile from an image
US10930027B2 (en) Systems and methods for color selection and auditing
CN110210319A (en) Computer equipment, tongue body photo constitution identification device and storage medium
US20220164852A1 (en) Digital Imaging and Learning Systems and Methods for Analyzing Pixel Data of an Image of a Hair Region of a User's Head to Generate One or More User-Specific Recommendations
CN106485085A (en) A kind of intellect service robot health identification system and method
US20140240339A1 (en) Personal visualization of health conditions
CN114612960A (en) Method and device for traditional Chinese medicine health management through facial image
US10878942B2 (en) Perpetual bioinformatics and virtual colorimeter expert system
KR20220142415A (en) System and method for improving cognitive ability and computer program for the same
CN107016244A (en) A kind of beauty and shaping effect evaluation system and implementation method
CN114186497B (en) Intelligent analysis method, system, equipment and medium for value of art work
CN110443122A (en) Information processing method and Related product
CN104809323A (en) Method and system for individual virtualization of health condition
KR102351169B1 (en) Big data and AI-based color recognition measurement platform and method using the same
JP7417887B2 (en) Clothing learning system, clothing evaluation system, clothing learning evaluation system, electronic mirror, clothing learning method, clothing evaluation method, program
JP2022078936A (en) Skin image analysis method
CN112086193A (en) Face recognition health prediction system and method based on Internet of things

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22862646

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE