WO2023111668A1 - Dietary recommendation method, apparatus and system, and storage medium, and electronic device - Google Patents

Dietary recommendation method, apparatus and system, and storage medium, and electronic device Download PDF

Info

Publication number
WO2023111668A1
WO2023111668A1 PCT/IB2021/062063 IB2021062063W WO2023111668A1 WO 2023111668 A1 WO2023111668 A1 WO 2023111668A1 IB 2021062063 W IB2021062063 W IB 2021062063W WO 2023111668 A1 WO2023111668 A1 WO 2023111668A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
ingredient
dietary
target
data
Prior art date
Application number
PCT/IB2021/062063
Other languages
French (fr)
Chinese (zh)
Inventor
杜硕
Original Assignee
Evyd研究私人有限公司
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
Priority claimed from CN202111545167.2A external-priority patent/CN113936774A/en
Priority claimed from CN202111545165.3A external-priority patent/CN113936773A/en
Application filed by Evyd研究私人有限公司 filed Critical Evyd研究私人有限公司
Publication of WO2023111668A1 publication Critical patent/WO2023111668A1/en

Links

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
    • 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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • 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/30ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to physical therapies or activities, e.g. physiotherapy, acupressure or exercising
    • 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/30ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for calculating health indices; for individual health risk assessment

Definitions

  • a diet recommendation method, device, system, storage medium and electronic equipment Cross-reference to related applications This application is based on application number 2021115451672, application date is December 17, 2021 and application number is 2021115451653. Application date is December 2021 Two Chinese patent applications were filed on the 17th, and the priority of the Chinese patent application is claimed. The entire content of the Chinese patent application is hereby incorporated into this application as a reference.
  • Technical Field The present application relates to the technical field of data processing, and in particular to a diet recommendation method, device, system, storage medium and electronic equipment. BACKGROUND OF THE INVENTION
  • a healthy diet helps prevent malnutrition of all types as well as non-communicable and chronic diseases including such as diabetes, heart disease, stroke and cancer.
  • a healthy diet is particularly important, because diet is the most direct way for the human body to obtain sugar.
  • Reasonable dietary intervention can effectively reduce the development speed of diabetes and the risk of complications, and even achieve reversal for users with pre-diabetes or mild diabetes.
  • the user data on which the existing dietary recommendation schemes are based is not accurate enough, or even if accurate data is obtained, there is no effective data analysis method, resulting in problems such as low accuracy in final recipe determination.
  • an embodiment of the present application provides a diet recommendation method, including: acquiring user data, where the user data includes at least one of basic data, disease data, exercise data, and diet data; According to the user data, determine the type of etiology of the user and the dietary goal corresponding to the type of etiology; determine the health risk of the user and the diet suggestion corresponding to the health risk according to the user data; generating dietary guidance information for the user based on the dietary goal and the dietary suggestion; and obtaining a first target ingredient matching the dietary goal and the dietary suggestion based on the user weight corresponding to each ingredient in the ingredient database, wherein the The user weight is updated based on the user behavior; based on the dietary guidance information and the first target ingredient, a dietary recommendation plan is generated for the user.
  • the determining the etiology type of the user and the diet target corresponding to the etiology type according to the user data includes: inputting the user data into a machine learning-based etiology identification model or a decision tree model, Outputting the type of etiology of the user; determining the dietary goal of the user according to the type of etiology.
  • the determining the health risk of the user and the diet suggestion corresponding to the health risk according to the user data includes: inputting the user data into multiple health risk models or decision tree models based on machine learning, Outputting a result of whether the user has the health risk; determining a diet suggestion for the user according to the health risk result.
  • the generating dietary guidance information for the user according to the dietary goal and the dietary suggestion includes: determining the metabolic level of the user according to the exercise data; determining the metabolic level of the user according to the basic data, the metabolic level and the The dietary target determines the user's daily dietary energy intake; generates dietary guidance information according to the daily dietary energy intake and the dietary advice, and the dietary guidance information includes at least the number of meals per day and the nutrition of each meal Ingredient intake.
  • the method also includes: determining dietary taboos of the user according to the user data; Before acquiring the first target food, the food is filtered according to the dietary restrictions.
  • updating the user weight based on user behavior includes: updating the user weight according to the user's individual behavior and/or environment analysis.
  • the user's individual behavior includes the user's replacement operation and search operation for a certain ingredient
  • the environmental analysis includes the change of season, the change of the user's location, and the change of the price of the ingredient.
  • updating the user weight according to the user's individual behavior includes: if the user has a replacement operation on a certain ingredient and the number of replacement operations is greater than a threshold, reducing the user weight corresponding to the ingredient; and /or if the user performs a search operation on a certain ingredient and selects the ingredient as the first target ingredient, increase the user weight corresponding to the ingredient.
  • the generating a dietary recommendation plan for the user based on the dietary guidance information and the first target ingredient includes: determining a recipe corresponding to the first target ingredient according to the first target ingredient; The attribute data of the target ingredients, the intake of each nutrient component in each meal, and the cooking method determine the weight of each first target ingredient in the recipe.
  • the method further includes: acquiring a dietary adjustment request from the user, the dietary adjustment request indicating that the first target ingredient in the dietary recommendation plan is replaced with a second target ingredient, and the second target ingredient is a single ingredient or a mixed ingredient ingredients; based on the dietary adjustment request and the ingredient database, update the diet recommendation scheme.
  • the dietary adjustment request at least includes: the type, name and weight of the first target ingredient; based on the dietary adjustment request and the ingredient database, update
  • the diet recommendation scheme includes: based on the ingredient database, determining a second target ingredient of the same type as the first target ingredient and a corresponding replacement ratio; according to the replacement ratio and the weight of the first target ingredient, determining the second target ingredient Describe the weight of the second target ingredient.
  • the diet adjustment request at least includes: the type and name of the mixed ingredient; based on the diet adjustment request and the ingredient database, updating the diet recommendation
  • the scheme includes: based on the type of the mixed food, selecting the food component attribute corresponding to the name from the food database; the food component attribute at least includes the proportion range of the food component; based on the basic body data, determining the nutrition that the user needs to ingest Composition ratio; Based on the composition properties of the ingredients and the ratio of the nutritional ingredients, determine the proportion relationship of each ingredient in the mixed ingredients; Based on the ingredients database, the ratio relationship, and the calorie value to be ingested, determine The weight of the mixed ingredients.
  • the determination of the weight of the second target ingredient it further includes: based on the ingredient database, determining a standard weight and a standard volume corresponding to the second target ingredient; based on the weight of the second target ingredient, Standard weight and standard volume, to determine the volume of the second target ingredient.
  • the determining the second target ingredient of the same type as the first target ingredient and the corresponding replacement ratio based on the ingredient database includes: selecting a second target of the same type as the first target ingredient from the ingredient database ingredients; querying the first calorie value per unit weight corresponding to the first target ingredient from the ingredient database, and the second calorie value per unit weight corresponding to the second target ingredient; based on the first calorie per unit weight value and the second calorie value per unit weight to determine the replacement ratio between the second target ingredient and the first target ingredient.
  • the diet adjustment request also includes a meal time; the calorie value to be ingested is obtained by the following method: acquiring the user's daily metabolic data; determining the user's calorie to be ingested based on the meal time and the daily metabolic data value.
  • the determination of the weight of the mixed food based on the food material database, the proportional relationship, and the calorie value to be ingested includes: Based on the proportional relationship and the ingredient database, determine the calorie value per unit weight of the mixed ingredient; and determine the weight of the mixed ingredient based on the calorie value to be ingested and the calorie value per unit weight.
  • the ingredient data is obtained through the following methods: obtaining the ingredient type, ingredient name and ingredient attribute to establish a mapping relationship; the ingredient attribute includes at least the standard weight, standard volume, calorie value per unit weight, and ingredient component attributes of the ingredient;
  • the mapping relationship is stored in the data file to obtain the food material data file.
  • an embodiment of the present application also provides a diet recommendation device, including: a first acquisition module, configured to acquire user data, where the user data includes at least one of basic data, disease data, exercise data, and diet data; a first determination module, configured to determine the type of etiology of the user and a dietary goal corresponding to the type of etiology according to the user data; a second determination module, configured to determine the health of the user according to the user data risk and dietary advice corresponding to the health risk; a guidance module, configured to generate dietary guidance information for the user according to the dietary goal and the dietary advice; a matching module, configured to use the user corresponding to each ingredient in the ingredient database weight, to obtain the first target ingredient that matches the dietary goal and the dietary suggestion, wherein the user weight is updated based on user behavior; a recommendation module, configured to, based on the dietary guidance information and the target ingredient, for the user Generate dietary recommendations.
  • a first acquisition module configured to acquire user data, where the user data includes at least one
  • the device further includes: a second acquiring module, configured to acquire a dietary adjustment request of the user, the dietary adjustment request indicating that the first target ingredient in the dietary recommendation plan is replaced with a second target ingredient, the second The target ingredient is a single ingredient or a mixed ingredient; an update module, configured to update the diet based on the diet adjustment request and the ingredient database Recommended solution.
  • a dietary recommendation system including: a client, a server, and a database; the client is configured to receive user data and dietary adjustment requests, and send the user data and dietary adjustment requests to The server; the server is used to implement the diet recommendation method described in this application; the database is used to store the ingredients database.
  • the embodiment of the present application also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to execute the diet recommendation method described in the present application.
  • the embodiment of the present application also provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; the processor is used for reading the executable instructions from the memory instructions, and execute the instructions to implement the diet recommendation method described in this application.
  • Dietary advice generates dietary guidance information for users, and then obtains target ingredients that match dietary goals and dietary recommendations based on the user weights corresponding to each ingredient in the ingredient database, and finally generates dietary recommendations for users based on dietary guidance information and the first target ingredient plan.
  • This application obtains accurate user data and adopts an effective analysis method for user data to determine a highly targeted and highly accurate diet recommendation plan.
  • the application can update the diet recommendation plan based on the diet adjustment request, so as to obtain a diet recommendation plan suitable for the user's physical condition, thereby satisfying the user's diet preference while also achieving balanced nutrition and improving the user's experience.
  • FIG. 1 is a schematic flowchart of a diet recommendation method provided by an embodiment of this application
  • Fig. 2 is a schematic diagram of a food material database provided by an embodiment of this application
  • Fig. 3 is a diet provided by another embodiment of this application Schematic flow diagram of the recommendation method
  • FIG. 4 is a schematic flow diagram of updating a recommended diet plan for a single ingredient in the embodiment of the present application
  • FIG. 1 is a schematic flowchart of a diet recommendation method provided by an embodiment of this application
  • Fig. 2 is a schematic diagram of a food material database provided by an embodiment of this application
  • Fig. 3 is a diet provided by another embodiment of this application Schematic flow diagram of the recommendation method
  • FIG. 4 is a schematic flow diagram of updating a recommended diet plan for a single ingredient in the embodiment of the present application
  • FIG. 1 is a schematic flowchart of a diet recommendation method provided by an embodiment of this application
  • Fig. 2 is a schematic diagram of a food material database provided by an embodiment of this
  • FIG. 5 is a schematic flow diagram of updating a recommended diet plan for mixed ingredients in the embodiment of the application;
  • FIG. A schematic flow chart of updating a diet recommendation plan for mixed ingredients in an embodiment;
  • FIG. 7 is a schematic structural diagram of a diet recommendation device provided in an embodiment of the present application;
  • FIG. 8 is a schematic diagram of a diet recommendation device provided in another embodiment of the present application Schematic diagram of the structure;
  • FIG. 9 is a schematic diagram of the system architecture of a diet recommendation system provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The specific implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
  • FIG. 1 it is a diet recommendation method provided by the embodiment of this application.
  • the diet recommendation referred to in this application records the name of the recipe for each meal every day, the required ingredients, the content of nutrients and calories, etc.
  • the dietary recommendation may be a document or a form, and the present application does not limit the specific form of the dietary recommendation.
  • the method includes: Step S101, acquiring user data, the user data including at least one of basic data, disease data, exercise data and diet data; Step S102, according to the user data, determining the etiology type of the user and Dietary goals corresponding to the type of etiology in question; Step S103. According to the user data, determine the user's health risk and dietary advice corresponding to the health risk; Step S104. Generate dietary guidance information for the user according to the dietary goal and the dietary advice; Step S105. Based on the user weight corresponding to each ingredient in the ingredient database, obtain a first target ingredient that matches the dietary goal and the dietary suggestion, wherein the user weight is updated based on user behavior; Step S106.
  • the etiology type of the user and the diet target corresponding to the etiology type are determined, and the user’s health risk and dietary advice corresponding to the health risk are determined according to the user data. and dietary advice to generate dietary guidance information for users, and then based on the user weights corresponding to each ingredient in the ingredient database, obtain the first target ingredient that matches the dietary goal and dietary advice, and finally generate a diet for the user based on the dietary guidance information and target ingredients Recommended program.
  • the basic data is the user's physiological data
  • the user's physiological data is data representing the user's physiological indicators
  • the user's physiological data includes the user's gender, age, height, weight, waist circumference, hip circumference, etc.
  • the user's disease data includes the user's disease course (the course of disease refers to the length of time the user has suffered from a certain disease, usually in years), disease type, test indicators corresponding to the disease type, complications, family history, medication information, etc.
  • the test index corresponding to the disease type is the index data characterizing the disease, and the test indexes corresponding to different disease types are different.
  • the test indicators include fasting blood glucose, fasting insulin, average blood glucose, average insulin, random blood glucose, visceral fat level, triglyceride, transaminase, glomerular filtration rate, blood uric acid, blood pressure, insulin, C-peptide , glycosylated hemoglobin and other index data.
  • the test indicators include transaminase, alanine aminotransferase, aspartate Transaminase, albumin, globulin, white blood cell ratio, bilirubin, bile acid and other index data.
  • Exercise data is data that characterizes the user's exercise behavior, and the exercise data includes the user's exercise habits, such as the user's daily exercise type and the exercise duration of each exercise.
  • Diet data reflects the user's preference for diet, for example, he likes rice as a staple food, but he doesn't like steamed buns; among vegetables, he likes spinach and lettuce, but doesn't like carrots.
  • the dietary data may be a table, which records information such as which ingredients the user likes and which ingredients he does not like. And which ingredients are taboo, that is, to classify the ingredients.
  • the method further includes: preprocessing the acquired user data.
  • the preprocessing includes data accuracy checking and missing value processing. Check the accuracy of the acquired user data, correct or delete the inaccurate user data. For example, index data such as basic data and disease data in the user data are compared with the valid range corresponding to each index data, and whether the user data is accurate is determined according to the comparison result. If the data is inaccurate, correct or delete the wrong user data according to the comparison result.
  • the user data will be deleted.
  • a user's blood pressure is 200, and the blood pressure data does not meet the valid range of blood pressure.
  • the user's blood pressure data is likely to be measurement problematic data, so delete this piece of user data.
  • the commonly used units of blood sugar are mg/dL and mmol/L, and the effective value ranges of different blood sugar units are different.
  • the blood sugar data of a user is 120mmol/L, which is obviously far beyond the effective value range of blood sugar.
  • the data is likely to be an error
  • the blood glucose unit is modified to mg/dL or converted according to the conversion relationship between the two units, and the blood glucose data is corrected to 120mg/dL or 6.67mmol/L »
  • the weight data of a male user is 140 (unit is kg), but the user's waist circumference data is normal, At this time, it is likely that the unit of the weight data is "jin", so the weight data is corrected to 70kg.
  • determining the etiology type of the user and the diet target corresponding to the etiology type includes: inputting the user data into a machine learning-based etiology identification model Or a decision tree model, outputting the etiology type of the user; determining the dietary goal of the user according to the etiology type.
  • the etiology identification model can be a gradient boosting tree model, a multi-category classification model, and not limited to this, and output the user's etiology after model calculation type.
  • the etiology identification model or decision tree model outputs the user's etiology type, for example, the etiology type is "insulin resistance caused by obesity” or “lipotoxicity with glycotoxicity” Decreased pancreatic islet function” or “Long-term lipotoxicity with glucotoxicity causes decreased pancreatic islet function and muscle loss”.
  • the dietary goal corresponding to the etiology type of "obesity leading to insulin resistance” is fat loss;
  • the dietary goal corresponding to the etiology type of "lipotoxicity with glycotoxicity caused by decreased islet function” is fat loss and muscle gain;
  • long-term lipotoxicity with glycotoxicity causes Decreased islet function and muscle loss The dietary goal corresponding to the etiology type is to increase muscle.
  • the user data in addition to determining the cause type of the user based on the cause identification model or the decision tree model, the user data can also be compared with the corresponding threshold range, and the user's cause type can be determined according to the comparison result.
  • the waist-to-hip ratio of the user is determined according to the ratio of the waist circumference to the hip circumference.
  • the user's waist-to-hip ratio and a threshold range for the waist-to-hip ratio may determine the first result. For example, if the user's waist-to-hip ratio is 0.78, the comparison result is that the first result is that the user's waist-to-hip ratio does not exceed the standard; If the user's waist-to-hip ratio is 0.95, the first result is that the user's waist-to-hip ratio exceeds the standard.
  • the type of disease takes diabetes as an example.
  • the user’s insulin resistance is evaluated according to the fasting blood glucose and fasting insulin in the test indicators.
  • the specific evaluation method can be HOMA-IR formula, fasting blood glucose x fasting insulin
  • Insulin resistance can also be assessed by using the HOMA-IR formula, Matsuda index, Li Guangwei index, QUISKI index, etc.
  • Matsuda index formula is commonly used to evaluate insulin resistance.
  • the second result can be determined according to the insulin resistance index and the threshold range of the insulin resistance index, for example, the second result is a high degree of insulin resistance, a normal degree of insulin resistance, or a low degree of insulin resistance.
  • the second result is determined according to the visceral fat level and the threshold range of the visceral fat level in the test index, for example, the second result is that the visceral fat level exceeds the standard or the visceral fat level does not exceed the standard.
  • the second result is determined according to the HbA1c and the threshold range of HbA1c in the test indicators, assuming that the threshold range of HbA1c is 4% to 6%, if the user's HbA1c is 10%, the second result is that HbA1c is too high.
  • how to determine the second result based on other inspection indexes and inspection index thresholds is not enumerated any more.
  • the first result, the second result and the combination of the first result and the second result multiple arrays are obtained, that is, an array can be a first result, a second result, or a first result and a second result A combination of results, wherein the combination of the first result and the second result includes at least one first result and one second result.
  • the constructed knowledge base is used to record the mapping relationship between etiology types and arrays and the mapping relationship between risk types and arrays.
  • the constructed knowledge base is shown in Table 1: Table 1 According to the user's first result and second result, determine the array where the first result and the second result are located, and determine the cause type from the knowledge base according to the mapping relationship between the array and the cause type, for example:
  • the second result is high insulin resistance and visceral fat levels that exceed the standard.
  • the level of visceral fat exceeds the limit in array 1. According to Table 1, there is a mapping relationship between array 1 and cause 1.
  • Cause 1 is "insulin resistance caused by obesity".
  • the user's etiology type can be determined according to the user's basic data and test indicators , at this time, the user's dietary goal is to lose fat; (2) If the first result determined according to the user's basic data and inspection indicators is that the waist-to-hip ratio exceeds the standard, the second result is that the degree of insulin resistance is normal, the level of visceral fat exceeds the standard, and there is Fatty liver, in which the waist-to-hip ratio exceeds the standard, the degree of insulin resistance is normal, the level of visceral fat exceeds the standard, and there is fatty liver in group 2. According to Table 1, there is a mapping relationship between group 2 and etiology 2.
  • the etiology type of etiology 2 is "lipotoxicity Islet function decline caused by glucose toxicity", at this time the user's dietary goal is to reduce fat and increase muscle; (3) If the first result determined according to the user's basic data and test indicators is the body mass index
  • BMI body mass index
  • the determining the health risk of the user and the diet suggestion corresponding to the health risk according to the user data includes: inputting the user data into multiple machine learning-based A health risk model or a decision tree model, outputting a result of whether the user has the health risk; determining a diet suggestion for the user according to the result of the health risk.
  • the health risk model can be a gradient boosting tree model, a multi-category classification model, and not limited to this, and output the user after model calculation health risks.
  • the health risk model or decision tree model outputs the results of health risks .
  • the results of health risks are "risk of hypoglycemia” or "risk of chronic glomerulonephritis” or "risk of high blood pressure” or "high risk of uric acid”.
  • “Chronic glomerulonephritis risk” corresponds to a low-protein diet
  • “hypertension risk” corresponds to a low-salt diet
  • "high uric acid risk” corresponds to a low-salt diet.
  • the array in which the first result and the second result are located can also be judged according to the user's first result and second result, and according to the array
  • the mapping relationship between health risks and health risks is determined from the knowledge of health risks, for example:
  • (1) Determine the first result according to the user's medication information and the threshold value of the medication information, set the first result as hypoglycemia, hypoglycemia is in array 11, according to table 1, the mapping relationship with array 11 is risk 1, risk 1
  • the result of the health risk is the risk of hypoglycemia, and the corresponding dietary advice for users with this risk type is to add meals, especially before going to bed;
  • the mapping relationship with the array 4 is risk 4
  • the health risk result of risk 4 For high uric acid, the corresponding dietary suggestion for users with this risk type is a low-babbling diet.
  • the above four types of health risks are only examples of this application, and the types of health risks are not limited to the above four types, and this application does not limit the number of types of health risks and specific risk content.
  • the result of determining the user's etiology type and health risk can guide the determination of the subsequent dietary recommendation plan, thereby further improving the accuracy of the dietary recommendation.
  • the generating dietary guidance information for the user according to the dietary goal and the dietary suggestion includes: determining the metabolic level of the user according to the exercise data; determining the user's daily dietary energy intake based on the data, the metabolic level, and the dietary goal; generating dietary guidance information based on the daily dietary energy intake and the dietary advice, the dietary guidance information at least including The number of daily meals and the intake of each nutrient in each meal.
  • the user's metabolic level is determined according to the user's exercise data, and then the user's daily dietary energy intake is determined according to the user's basic data, metabolic level and dietary goals.
  • the user's daily calorie needs can also be calculated according to Henry's equation:
  • the daily dietary energy intake should be less than 1800 calories.
  • the user's metabolic level, dietary goals, and basic data are input into the model, and the model outputs the user's daily dietary energy intake according to the input data.
  • the model can be a logistic regression model, etc., which is not limited in this application.
  • Generate dietary guidance information based on the user's daily dietary energy intake and dietary recommendations. Dietary guidance information includes the number of meals per day, the intake of each nutrient in each meal, the content of each nutrient under standard calories; and the content of each meal under standard calories. The quality of each ingredient.
  • the user's daily meal frequency is related to the user's disease type, user basic data and user disease data, and the meal frequency can also be determined according to the meal suggestion in the dietary suggestion. For example, some users are suitable for three meals a day, and for users with diabetes and "Somogyi phenomenon", they are suitable for four meals a day, that is, regular breakfast, lunch and evening meals and snacks before going to bed; some users are suitable for a day five meals or Six meals, this application does not set specific restrictions on the number of meals per day.
  • the calorie ratio of each meal for each meal frequency for example, for a user who eats four meals a day, the calorie ratio of breakfast, lunch, dinner, and extra meals before going to bed is 3:4:2:1.
  • the intake of each nutrient in each meal is the content of carbohydrates, protein, cellulose and other nutrients required for each meal.
  • the intake of nutrients in each meal can be determined according to the nutrient recommendations in the dietary advice.
  • the dietary advice is low protein diet, the protein intake in each meal should be reduced.
  • the content of various nutrients under standard calories, such as the daily required content of carbohydrates, protein, fat, cellulose and other nutrients, according to the calorie ratio of each meal under each meal frequency, the required amount of each meal can also be determined The content of carbohydrates, protein, fat, cellulose and other nutrients.
  • the quality of each ingredient in each meal under standard calories, for example, steamed buns for breakfast are 80g, milk 200g, eggs 60g, and bananas 100g .
  • the amount of each meal is determined according to the user's daily calorie needs and the calorie ratio of each meal under each meal frequency. The required calories; and then determine the quality of the ingredients to be selected according to the calories needed for each meal and the calories contained in a unit of ingredients.
  • the method further includes: determining dietary restrictions of the user according to the user data; and filtering the ingredients according to the dietary restrictions before acquiring the target ingredients. Dietary taboos refer to specific ingredients or ingredients that must not be included in the dietary recommendation plan due to allergies and other factors. Other ingredients made from peanuts.
  • step S105 based on the user weight corresponding to each ingredient in the ingredient database, the first target ingredient matching the dietary goal and the dietary suggestion is acquired, wherein the user weight is updated based on user behavior.
  • the ingredient database is used to record ingredient information, and the ingredient information includes ingredient name, ingredient type, nutritional composition of ingredients, nutritional content and calories contained in a unit ingredient, and user weights corresponding to ingredients.
  • the user weight corresponding to the ingredients is the weight set according to environmental factors such as region, season, urban and rural areas, and the user's personal factors. For example, for users in coastal cities, fish and shrimp are among high-quality protein The weight of fish and shrimp in high-quality protein is relatively low for users in non-coastal cities.
  • the user's personal factors refer to the user's preference for ingredients. If the user likes a certain ingredient, the user weight of the ingredient is relatively high; if the user does not like a certain ingredient, the user weight of the ingredient is relatively low; If there is a taboo, the user weight corresponding to the taboo ingredient is 0.
  • Figure 2 is a schematic diagram of the constructed ingredient data, such as rice, the ingredient information of rice includes the ingredient name rice, the ingredient type is the staple food, the nutritional composition of the ingredient includes carbohydrates, fat, protein, cellulose, and the nutrition of 100g rice
  • the ingredient content is 25.9g of carbohydrates, 0.3g of fat, 2.6g of protein, and 0.3g of cellulose.
  • the heat of 100g of rice is 116 calories, and the initial weight of rice is 2.
  • determining the first target ingredient from the list of ingredients to be selected includes: constructing an ingredient pool according to user weights corresponding to the ingredients, the ingredient data includes multiple types of ingredients, and the quantity of each type of ingredient According to the determination of the user weight corresponding to the type of food, the first target food is randomly selected from the food pool.
  • a ingredient pool is constructed according to the user weights corresponding to the ingredients.
  • the ingredient pool includes 10 types of ingredients, numbered as ingredients 1 to 10, and the weights of ingredients 1 to 10 are 1. , 2, 2, 3, 2, 2, 1, 4, 3, 5, assuming that the number of ingredients in the ingredient pool is 100, the numbers of ingredients 1 to 10 in the ingredient pool are 4, 8, 8, 12, 8, 8, 4, 16, 12, 20, randomly select ingredients 1 to 10 from the ingredient pool, and since ingredient 10 has the largest weight, the probability of being selected for ingredient 10 is the highest.
  • updating the user weight based on user behavior includes: updating the user weight according to the user's individual behavior and/or environment analysis.
  • the user's individual behavior includes the user's replacement operation and search operation for a certain ingredient
  • the environmental analysis includes changes in seasons, changes in the user's location, and changes in the price of the ingredient.
  • updating the user weight according to the user's individual behavior includes: if the user has a replacement operation on a certain ingredient and the number of replacement operations is greater than a threshold, reducing the weight of the user corresponding to the ingredient. Weights; If the user performs a search operation on a certain ingredient and selects the ingredient as the target ingredient, the user weight corresponding to the ingredient is increased. For example, the user has 30 days of behavior records.
  • the weight of the user corresponding to beef should be reduced to ensure that the probability of beef being recommended in the next period of time is certain The magnitude is reduced. For example, if a user searches for shovel fish and adds shovel fish to his diet recommendation plan, the user weight corresponding to shovel fish will be increased.
  • environmental analysis includes changes in seasons, changes in user locations, and changes in food prices. For example, summer in a certain area is the harvest season for shrimp, and the weight of users corresponding to shrimp increases in summer, while the weight of users corresponding to shrimp decreases in winter. . Or if the price of a certain ingredient increases and exceeds the user's expectations, the user weight corresponding to the ingredient will be reduced accordingly. By dynamically adjusting the user weight corresponding to each ingredient, it is beneficial to improve the efficiency and accuracy of the diet recommendation plan.
  • step S106 generating a dietary recommendation plan for the user based on the dietary guidance information and the first target ingredient includes: determining the first target ingredient according to the first target ingredient The weight of each first target ingredient in the recipe is determined according to the attribute data of the first target ingredient, the intake of each nutrient in each meal, and the cooking method.
  • the recipe corresponding to the first target ingredient is determined from a recipe library, the recipe library is used to record recipe information, and the recipe information includes recipe preparation method, cooking method, attention Items, ingredient lists, and recipe weights.
  • determining the first target recipe from the list of candidate recipes includes: constructing a recipe pool according to the weight of the recipes, the recipe library includes multiple types of recipes, and the number of recipes of each type is based on the weight of the type
  • the weight of the recipe is determined, and the target recipe is randomly selected from the recipe pool. For example, there are five recipes in the list of recipes to be selected, numbered respectively as recipe 1 to recipe 5, and the weights of recipe 1 to recipe 5 are respectively 1, 2, 2, 3, 2, and a recipe pool with a total of 100 recipes is constructed. Then the numbers of recipes 1 to 5 in the recipe pool are 10, 20, 20, 30, and 20 respectively, and the first target recipe is randomly selected from the recipe pool.
  • the weight of each first target ingredient in the first target recipe is determined according to the attribute data of the first target ingredient, the intake of each nutrient in each meal, and the cooking method.
  • FIG. 3 it is a schematic flowchart of a diet recommendation method provided by another embodiment of the present application.
  • the diet recommendation method further includes: Step S107, acquiring a user's diet adjustment request, and the diet adjustment request indicates that the diet recommendation plan will include: The first target ingredient is replaced by the second target ingredient, and the second target ingredient is a single ingredient or a mixed ingredient; Step S108, based on the diet adjustment request and the ingredient database, update the diet recommendation plan.
  • the embodiment of the present application can update the diet recommendation plan based on the diet adjustment request, so as to obtain a diet recommendation plan suitable for the user's physical condition, thereby achieving nutritional balance while satisfying the user's diet preference.
  • FIG. 4 it is a schematic flowchart of updating a dietary recommendation plan for a single ingredient in an embodiment of the present application.
  • the method at least includes the following operation process: Step S201, based on the ingredient database, determine a second target that is the same type as the first target ingredient The ingredients and the corresponding replacement ratio; step S202, according to the replacement ratio and the weight of the first target ingredient, determine the weight of the second target ingredient; step S203, based on the ingredient database, determine the standard weight and standard corresponding to the second target ingredient Volume; step S204, based on the weight, standard weight and standard volume of the second target food, determine the volume of the second target food.
  • a dietary adjustment request is acquired based on a user's trigger.
  • the second target ingredient used to replace the first target ingredient in the dietary adjustment request is a single ingredient.
  • the ingredient database is mainly generated based on the ingredient knowledge graph.
  • a mapping relationship is established between the type of ingredients, the name of the ingredients, and the attributes of the ingredients; the attributes of the ingredients include at least the standard weight, standard volume, calorie value per unit weight, and ingredient attributes of the ingredients; the mapping relationship is stored in the data.
  • Knowledge map get the ingredients database. Based on the mapping relationship in the ingredient database, a second target ingredient of the same type as the first target ingredient and a corresponding replacement ratio are determined to generate a replacement interface.
  • select a second target ingredient of the same type as the first target ingredient from the ingredient database query the calorie value per unit weight corresponding to the first target ingredient and the second unit weight corresponding to the second target ingredient from the ingredient database calorie value; based on the first calorie value per unit weight and the second calorie value per unit weight, determine the replacement ratio between the second target ingredient and the first target ingredient, and generate a replacement interface.
  • determine the second target ingredient based on the user's selection of the second target ingredient option on the replacement interface, determine the second target ingredient; and calculate the weight of the second target ingredient according to the replacement ratio corresponding to the second target ingredient and the weight of the first target ingredient.
  • a request for dietary adjustment is obtained; and based on the ingredient database, a second target ingredient of the same type as the first target ingredient and a corresponding replacement ratio are determined to generate a replacement interface; the replacement interface includes at least two options for the second target ingredient ; Then, based on the selection of the replacement interface option, the weight of the second target ingredient is determined according to the replacement ratio and the weight of the first target ingredient.
  • the basic ingredients can be replaced according to the user's preferences, which improves the user's experience.
  • query the standard weight and standard volume corresponding to the second target ingredient from the ingredient data calculate the volume of the second target ingredient by using the weight, standard weight and standard volume of the second target ingredient.
  • the embodiment of the present application can determine the target ingredient based on the mapping relationship in the ingredient database The volume improves user experience.
  • the embodiments of the present application will be described in detail below in conjunction with specific applications.
  • the diet adjustment request includes at least the type, name and weight of ingredient A (single ingredient); for example, the type is staple food, the name is Yangmai noodles and the weight is 200g.
  • a second target ingredient of the same type as ingredient A is queried from the ingredient database (in this case, the second target ingredient is a single ingredient), such as glutinous rice and vermicelli.
  • the calorie value per unit weight corresponding to dried noodles is 130cal/100g
  • the calorie value per unit weight corresponding to glutinous rice is 125cal/100g
  • the calorie value per unit weight corresponding to wheat noodles is 120cal/100g
  • the corresponding calorie value per unit weight, the calorie value per unit weight corresponding to glutinous rice, and the calorie value per unit weight corresponding to wheat-raising noodles the replacement ratio between glutinous rice and wheat-raising noodles is 1.04, and the replacement between dry noodles and wheat-raising noodles The ratio is 1.08, and a replacement interface is generated; the replacement interface includes the option of shaking glutinous rice and noodles.
  • the weight of glutinous rice is 208g.
  • the calculation formula of the replacement ratio is shown in the following formula (1), and the calculation formula of the target ingredient weight is shown in the formula (2).
  • Substitution ratio Calorie value per unit weight of the target ingredient/Calorie value per unit weight of the first target ingredient formula (1);
  • Target ingredient weight First target ingredient weight * Replacement ratio formula (2).
  • the calculation formula for the second target food material volume is shown in the following formula (3).
  • Volume of the second target ingredient (weight of the second target ingredient/standard weight of the second target ingredient)*standard volume of the second target ingredient formula (3).
  • the ingredients database in the embodiment of the present application may also include GI value, GI level first-level recommendation weight, and the like. The establishment of the ingredient database is determined in combination with actual application scenarios. It should be noted that the method in the embodiment of the present application is applicable to the replacement of a single ingredient, and for mixing Substitution of a single ingredient in the ingredients is also possible.
  • a single ingredient includes a single staple food, high-quality protein, vegetables, etc. As shown in FIG.
  • Step S301 obtaining a dietary adjustment request indicating that the first target ingredient is replaced with a mixed ingredient ;
  • the dietary adjustment request includes at least the type and name of the mixed ingredients; step S302, based on the type of mixed ingredients, select the ingredient attribute corresponding to the name from the ingredient database; the ingredient attribute at least includes the ratio range of ingredients;
  • Step S304 based on the properties of ingredients and the proportion of nutrients, determine the proportion of each ingredient in the mixed ingredients;
  • Step S305 based on the database of ingredients, the ratio, and Enter the calorie value to determine the weight of the mixed ingredients.
  • the ingredients of the ingredient are, for example, tenderloin and leek. Attributes of ingredient ingredients include the proportion range of tenderloin in dumplings and leeks in dumplings; ingredients attribute also includes information such as protein content and fat content of tenderloin, and corresponding vitamin content of leeks.
  • the basic body data includes the user's body composition data and disease data. Body composition data such as height, weight, age, etc.; disease data such as comorbidities and complications.
  • the calorie value to be ingested is obtained by the following methods: acquiring the user's daily metabolic data; determining the user's calorie value to be ingested based on the meal time and the daily metabolic data.
  • the calorie value to be ingested corresponds to the meal time, such as morning, noon or evening.
  • the daily metabolic data refers to the user's average daily metabolic data, which includes the user's diet data, exercise data, and the like.
  • the ingredient database is obtained through the following methods: Obtain the ingredient type, ingredient name and ingredient attribute to establish a mapping relationship; the ingredient attribute includes at least the standard weight, standard volume, unit weight calorie value of the ingredient, and the ingredient attribute of the ingredient; store the mapping relationship in the database , to get the ingredient database.
  • Step S401 obtain a diet adjustment request for the mixed ingredients; the diet adjustment request includes at least the type and name of the mixed ingredients; Step S402, based on the type, select from the ingredient database corresponding to the name Attributes of food ingredients;
  • the attributes of ingredients include at least the proportion of ingredients; Step S403, based on the basic body data, determine the proportion of nutrients that the user needs to ingest; Step S404, Based on the attributes of ingredients and the proportion of nutrients, determine The proportion relationship of ingredients; Step S405, based on the proportion relationship and the ingredients database, determine the calorie value per unit weight of the mixed ingredients; Step S406, determine the weight of the mixed ingredients based on the calorie value to be ingested and the calorie value per unit weight.
  • the calorie value per unit weight corresponding to pork and leek dumplings in the material database Based on the user's basic physical data, determine the calorie value to be ingested by the user in a day; if the meal time is noon, then the calorie value to be ingested corresponding to noon is to divide the calorie value to be ingested in the day into three parts on average, and obtain the calorie value corresponding to noon Calorie value to be ingested. According to the calorie value to be ingested and the calorie value per unit weight, the weight and volume (or number) of pork and leek dumplings recommended for consumption are calculated.
  • the user chooses pork and leek dumplings, and according to the user’s basic body data, it is determined that the calorie intake is 420kcal, and the nutritional content focuses on high-quality protein (through calculation, pork accounts for 50%, leeks account for 45%, other (sesame oil and other ingredients) 5 %), and based on this ratio, it is calculated that every 100g of dumplings contains 189kcal of calories, so the user should eat 196g of dumplings to meet the calorie demand.
  • Users of this application may be ordinary users, or patients with chronic diseases, such as type 2 diabetes patients, or hypertensive patients.
  • FIG. 7 is a schematic structural diagram of a diet recommendation device provided by an embodiment of the present application.
  • the device includes: a first acquisition module 501, configured to acquire user data, and the user data includes basic data, disease data, and exercise data and at least one item of dietary data; a first determination module 502, configured to determine the user's etiology type and a diet target corresponding to the etiology type according to the user data; a second determination module 503, configured to determine the etiology type according to The user data is used to determine the health risk of the user and the dietary advice corresponding to the health risk; the guidance module 504 is used to generate dietary guidance information for the user according to the dietary goal and the dietary advice; a matching module 505.
  • FIG. 8 is a schematic structural diagram of a diet recommendation device provided by another embodiment of the present application, the device further includes: a second acquisition module 507, configured to acquire the user's diet adjustment request, the diet adjustment request Instructing to replace the first target ingredient in the dietary recommendation plan with a second target ingredient, the second target ingredient being a single ingredient or a mixed ingredient; an update module 508, configured to adjust the diet based on the request and the ingredient database , updating the dietary recommendation scheme.
  • a second acquisition module 507 configured to acquire the user's diet adjustment request, the diet adjustment request Instructing to replace the first target ingredient in the dietary recommendation plan with a second target ingredient, the second target ingredient being a single ingredient or a mixed ingredient
  • an update module 508 configured to adjust the diet based on the request and the ingredient database , updating the dietary recommendation scheme.
  • the embodiment of the present application also provides a dietary recommendation system, including: a client, a server, and a database; the client is used to receive user data and dietary adjustment requests, and send the user data and dietary adjustment requests to the server;
  • the server is used to implement the diet recommendation method described in this application;
  • the database is used to store a food material database.
  • FIG. 9 it is an exemplary system architecture diagram to which this embodiment of the present application can be applied.
  • the system architecture 800 may include terminal devices 801, 802, and 803, a network 804, and a server 805.
  • the network 804 is used to provide a communication link medium between the terminal devices 801, 802, 803 and the server 805.
  • Network 804 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.
  • Terminal devices 801, 802, and 803 Users can use terminal devices 801, 802, and 803 to interact with the server 805 through the network 804 to receive or send messages and the like.
  • Various communication client applications can be installed on the terminal devices 801, 802, and 803, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (just examples).
  • Terminal devices 801, 802, and 803 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
  • the server 805 may be a server that provides various services, such as a background management server that provides support for click events generated by users using terminal devices 801, 802, and 803 (just an example).
  • the background management server can analyze and process the received click data, text content and other data, and process the Results (eg target push information, product information - just an example) are fed back to the end device.
  • the diet adjustment method provided in the embodiment of the present application is generally executed by the server 805, and correspondingly, the diet adjustment device is generally set in the server 805.
  • the numbers of terminal devices, networks, and servers in FIG. 9 are only illustrative. According to implementation requirements, there may be any number of terminal devices, networks and servers.
  • the embodiment of the present application also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to implement the diet recommendation method described in the present application.
  • the embodiment of the present application also provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; the processor is used for reading the executable instructions from the memory, and The instructions are executed to implement the diet recommendation method described in this application.
  • embodiments of the present application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the above-mentioned "exemplary method" in this specification. Steps in methods according to various embodiments of the application described in section.
  • the computer program product can be written in any combination of one or more programming languages for executing the program codes for the operations of the embodiments of the present application, and the programming languages include object-oriented programming languages, such as Java, C++, etc.
  • the embodiment of the present application may also be a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the processor executes the above-mentioned "Exemplary Method" part of this specification. Steps in methods according to various embodiments of the application described in .
  • the computer readable storage medium may employ any combination of one or more readable media.
  • Can The read medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may include, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable Programmable read-only memory
  • CD-ROM compact disk read-only memory
  • magnetic storage device magnetic storage device

Landscapes

  • Health & Medical Sciences (AREA)
  • Nutrition Science (AREA)
  • Engineering & Computer Science (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

Disclosed in the present application are a dietary recommendation method, apparatus and system, and a storage medium, and an electronic device. The method comprises: acquiring user data; determining, according to the user data, an etiological factor type of a user and a dietary goal corresponding to the etiological factor type; determining, according to the user data, a health risk of the user and a dietary suggestion corresponding to the health risk; generating dietary guidance information for the user according to the dietary goal and the dietary suggestion; acquiring, on the basis of a user weight corresponding to each food material in a food material library, a target food material that matches the dietary goal and the dietary suggestion, wherein the user weight is updated on the basis of a user behavior; and generating a recommended dietary plan for the user on the basis of the dietary guidance information and the target food material. By using the method of the present application, a highly targeted and highly accurate recommended dietary plan can be determined.

Description

一 种饮 食推荐 方法 、 装置、 系统、 存储介质 及电 子设 备 相关 申请的交叉 引用 本申请基 于申请号为 2021115451672、 申请日为 2021年 12月 17日以及申 请号 为 2021115451653.申请日为 2021年 12月 17日的两件中国专利申请提出, 并要 求中国专利 申请的优先权 , 该中国专利申请的全部 内容在此引入 本申请作 为参考 。 技术领 域 本申请涉 及数据处理技 术领域, 具体地涉及一种 饮食推荐方 法、 装置、 系 统、 存储介质及 电子设备。 背景技 术 健康饮食有 助于预防 所有类型的 营养不良以及 包括诸如糖尿 病、 心脏病、 中风和 癌症在内的 非传染性疾 病和慢性疾病 。 其中, 对于预防或控制糖尿病, 健康饮 食尤为重要 , 因为饮食是人体获取糖 的最直接途 径。 通过合理的饮食干 预, 能够有效降低糖尿病的发展 速度及并发 症风险, 甚至对于糖前期 或糖尿病 轻症用 户实现逆转 。 现有的饮食 推荐方案所 依据的用户数 据不够准确 , 或者即使获得了准确 的 数据但 没有有效的数 据分析方 法, 导致最终的食谱确定存 在准确度低等 问题。 发明 内容 本申请 实施例的目的是 提供一种饮 食推荐方法 、 装置、 系统、 存储介质及 电子设 备, 以至少解决上述的技 术问题。 为了实现 上述目的, 本申请实施例提 供一种饮食 推荐方法, 包括: 获取用户数 据, 所述用户数据包括基 础数据 、 疾病数据、 运动数据以及饮 食数据 中的至少一 项; 根据所述 用户数据, 确定所述用户 的病因类型 以及与所述 病因类型对应 的 饮食 目标; 根据所述 用户数据, 确定所述用户 的健康风险 以及与所述健 康风险对应 的 饮食 建议; 根据所述饮 食目标和所 述饮食建议 为所述用户生 成饮食指导信 息; 基于食材数 据库中各食 材对应的用 户权重, 获取与所述饮食 目标和所述 饮 食建议 相匹配的第 一目标食材 , 其中所述用户权重基于用 户行为更新 ; 基于所述饮 食指导信 息和所述第一 目标食材, 为用户生成饮食 推荐方案 。 其中, 所述才艮据所述用户数据, 确定所述用户的病因类 型以及与所 述病因 类型对 应的饮食 目标, 包括: 将所述用 户数据输入基 于机器学 习的病因识别模 型或者决 策树模型, 输出 所述 用户的病因类 型; 根据所述 病因类型确定 所述用户的饮 食目标。 其中, 所述根据所述 用户数据, 确定所述用户 的健康风险 以及与所述健 康 风险对 应的饮食建议 , 包括: 将所述用 户数据输入 多个基于机器 学习的健康 风险模型或 者决策树模型 , 输 出所述用户是否 具有该健康风 险的结果; 根据所述健 康风险的结 果确定所述用 户的饮食建 议。 其中, 所述根据所述饮 食目标和所 述饮食建议 为所述用户 生成饮食指导 信 息, 包括: 根据所述运 动数据确定 所述用户的代 谢等级; 根据所述基 础数据、 所述代谢等级和所述饮食 目标确定所述 用户的每 日饮 食摄入 能量; 根据所述每 日饮食摄入 能量和所述 饮食建议生 成饮食指导信 息, 所述饮食 指导信 息至少包括每 日进餐次数 和每餐各营 养成分摄入量 。 该方法还 包括: 根据所述 用户数据确定 所述用户的饮 食禁忌; 在获取所 述第一目标食 材之前, 根据所述饮食禁 忌对食材进行 过滤。 其中, 所述用户权重基 于用户行为 更新, 包括: 根据所述 用户的个体行 为和 /或环境分析更新所述用户权 重。 其中,所述用户的 个体行为包括 所述用户对 某食材的替换 操作和搜索操 作, 所述环 境分析包括 季节的改变 、 用户地点的改变、 食材价格的改变。 其中, 根据所述用户的 个体行为更新 所述用户权 重, 包括: 若所述用 户存在对某食 材的替换操 作且所述替换 操作的次数 大于阈值 , 则 降低该 食材对应的 所述用户权重 ; 以及 /或者 若所述用 户存在对某食 材的搜索操 作且选择该食 材作为第 一目标食材 , 则 增加该 食材对应的所 述用户权重 。 其中, 所述基于所述饮 食指导信息 和所述第一 目标食材, 为用户生成饮食 推荐方 案, 包括: 根据所述 第一目标食材 确定所述第一 目标食材对应 的食谱; 根据所述 第一目标食材 的属性数据 、 每餐各营养成分摄入 量及烹饪方式 确 定食谱 中各第一 目标食材的重量 。 该方法还 包括: 获取所述 用户的饮食调 整请求, 所述饮食调整请 求指示将 所述饮食推荐 方 案中 的第一目标食 材替换为第二 目标食材 , 所述第二目标食材为单一 食材或者 混合食 材; 基于所述饮 食调整请求 和所述食材数 据库, 更新所述饮食推荐 方案。 其中, 在所述第二 目标食材为单一 食材的情况 下, 所述饮食调整请求至 少 包括 : 第一目标食材的类型、 名称和重量 ; 所述基于所述饮食调整请 求和所述 食材数 据库, 更新所述饮食推荐 方案, 包括: 基于食材数 据库, 确定与所述第一 目标食材类型 相同的第二 目标食材以 及 对应 的替换比; 根据所述 替换比和所述 第一目标食 材的重量 , 确定所述第二目标食材的 重 量。 其中,在所述目标食 材为混合食材 的情况下 ,所述饮食调整请求至少包括 : 所述 混合食材的类 型和名称; 所述基于所述饮食调整请 求和所述食材 数据库, 更新 所述饮食推荐方 案, 包括: 基于所述 混合食材的类 型, 从食材数据库中选取 与所述名称 对应的食材 成 分属性 ; 所述食材成分属性至 少包括食材成 分比例范围 ; 基于身体基 础数据, 确定用户需要摄 取的营养成 分占比; 基于所述食 材成分属性 和所述营养 成分占比 , 确定所述混合食材中各食 材 成分 的比例关系; 基于所述食 材数据库 、 所述比例关系, 以及待摄入热量值 , 确定所述混合 食材 的重量。 其中, 在所述确定所述 第二目标食材 的重量之后 , 还包括: 基于所述食 材数据库 ,确定所述第二目标食材 对应的标准 重量和标准体 积; 基于所述 第二目标食材 的重量、 标准重量和标 准体积, 确定所述第二 目标 食材 的体积。 其中, 所述基于食材数 据库, 确定与所述第一 目标食材类型 相同的第二 目 标食材 以及对应的替 换比, 包括: 从所述食 材数据库中选 取所述第一 目标食材类型 相同的第二 目标食材; 从所述食 材数据库中 查询与所述第 一目标食材 对应的第一单 位重量热量 值, 以及 与所述第二 目标食材对应 的第二单位重 量热量值; 基于所述 第一单位重量 热量值与所 述第二单位 重量热量值 , 确定所述第二 目标食 材与所述第 一目标食材之 间的替换比 。 其中, 所述饮食调整请 求还包括用 餐时间; 所述待摄入热量 值通过如下 方 法获得 : 获取用户 的日代谢数据 ; 基于所述 用餐时间和所 述日代谢数据 , 确定用户的待摄入热量 值。 其中, 所述基于所述食 材数据库 、 所述比例关系, 以及待摄入热量值 , 确 定所述 混合食材的 重量, 包括: 基于所述 比例关系和 所述食材数据 库, 确定所述混合食材 的单位重量热 量 值; 基于所述待 摄入热量值 以及所述单 位重量热量值 , 确定所述混合食材的 重 量。 其中, 所述食材数据犀 通过如下方 法获得 : 获取食材 类型、 食材名称和食材属 性建立映射 关系; 所述食材属性至少 包 括食材 的标准重量 、 标准体积、 单位重量热量值, 以及食材成分属性 ; 将所述映射 关系存储于 数据犀中 , 得到食材数据犀。 相应的 , 本申请实施例还提供一种饮 食推荐装置 , 包括: 第一获取模 块, 用于获取用户数据 , 所述用户数据包括基础 数据、 疾病数 据、 运动数据以及饮 食数据中 的至少一项; 第一确定模 块, 用于根据所述用户数 据, 确定所述用户的病 因类型以及 与 所述 病因类型对应 的饮食目标 ; 第二确定模 块, 用于根据所述用户数 据, 确定所述用户的健康 风险以及 与 所述健 康风险对应 的饮食建议 ; 指导模块 , 用于根据所述饮食 目标和所述饮食 建议为所述用 户生成饮食 指 导信 息; 匹配模块 , 用于基于食材数据库 中各食材对应 的用户权重 , 获取与所述饮 食 目标和所述饮食 建议相匹配 的第一目标食 材, 其中所述用户权重基 于用户行 为更新 ; 推荐模 块, 用于基于所述饮食指 导信息和所 述目标食材 , 为用户生成饮食推荐 方案 。 该装置还 包括: 第二获取模 块, 用于获取所述用户 的饮食调整请 求, 所述饮食调整请求 指示对 所述饮食推 荐方案中的 第一目标食材 替换为第二 目标食材, 所述第二 目 标食材 为单一食材 或者混合食材 ; 更新模块 , 用于基于所述饮食调整 请求和所述食 材数据库 , 更新所述饮食 推 荐方案 。 相应的 , 本申请实施例还提供一种饮 食推荐系统 , 包括: 客户端、 服务器 和数据 库; 所述客户 端用于接收用 户数据和饮 食调整请求 , 并将所述用户数据和饮 食 调整请 求发送至服 务器; 所述服务 器用于执行本 申请所述的饮 食推荐方法 ; 所述数据 库用于存储食 材数据库。 相应的 , 本申请实施例还提供一种 计算机可读存 储介质, 所述存储介质存 储有计 算机程序 , 所述计算机程序用于执行 本申请所述 的饮食推荐方 法。 相应的 , 本申请实施例还提供一种 电子设备, 包括: 处理器; 用于存储 所述处理器可 执行指令的存 储器; 所述处理 器, 用于从所述存储器 中读取所述可执 行指令, 并执行所述指令 以实现 本申请所述 的饮食推荐方 法。 在上述 实施例中, 通过获取用户数 据并对用户数 据进行分析 确定用户的 病 因类型 和病因类型 对应的饮食 目标, 根据用户数据确定用 户的健康风 险以及与 健康风 险对应的饮食 建议,根据饮 食目标和饮 食建议为用 户生成饮食指 导信息 , 再基 于食材数据库 中各食材对应 的用户权重 , 获取与饮食目标和饮食 建议相匹 配的 目标食材, 最后基于饮食指 导信息和第 一目标食材 , 为用户生成饮食推荐 方案 。 本申请通过获取准确的用 户数据并对 用户数据采用 有效的分析 方法, 确 定出针 对性强、 准确度高的饮食 推荐方案。 同时本申请能够基于饮食 调整请求 更新饮 食推荐方案 , 从而获得适合用户身体 情况的饮食推 荐方案, 由此在满足 用户饮 食偏好的 同时也实现了 营养均衡, 提高了用户的体 验感。 本申请 实施例的其它特 征和优点将 在随后的具体 实施方式部 分予以详细 说 明。 附图说 明 附图是用 来提供对本 申请实施例的 进一步理解 ,并且构成说明书的一部 分, 与下 面的具体实施 方式一起用 于解释本申请 实施例, 但并不构成对本 申请实施 例的 限制。 在附图中: 图 1是本申请实施例提供 的一种饮食推 荐方法的流程 示意图; 图 2是本申请 实施例提供 的食材数据库 的示意图; 图 3本申请另 一实施例提供 的一种饮食推 荐方法的流程 示意图; 图 4是本申请 实施例中针对 单一食材更 新饮食推荐方 案的流程示 意图; 图 5是本申请 实施例中针对 混合食材更 新饮食推荐方 案的流程示 意图; 图 6是本申请另一实施例 中针对混合食 材更新饮食 推荐方案的 流程示意图; 图 7是本申请 实施例提供 的一种饮食推 荐装置的结构 示意图; 图 8是本申请 另一实施例提 供的一种饮食 推荐装置的 结构示意图; 图 9是本申请 实施例提供 的一种饮食推 荐系统的系统 架构示意图 。 具体 实施方式 以下结合 附图对本申请 实施例的具体 实施方式 进行详细说 明。 应当理解 的是 , 此处所描述的具体实施 方式仅用于说 明和解释本 申请实施例 , 并不用 于限制 本申请实施 例。 如图 1所示为本申请实施 例提供的一 种饮食推荐方 法, 本申请所指的饮 食推荐 记录了每 日各餐的食谱名 称、 所需的食材配料 、 所含的营养成分含量 及热量 等, 该饮食推荐可以是 一份文件也可 以是一张表格 , 本申请对饮食推 荐的具 体表现形式 不做限制。 该方法包括 : 步骤 S101、 获取用户数据, 所述用户数据包括基础数据、 疾病数据、 运 动数据 以及饮食数据 中的至少一 项; 步骤 S102、 根据所述用户数据, 确定所述用户的病因类型以及与所 述病 因类型 对应的饮食 目标; 步骤 S103、 根据所述用户数据, 确定所述用户的健康风险以及与所 述健 康风 险对应的饮食 建议 ; 步骤 S104、 根据所述饮食目标和所述饮食建议为所述 用户生成饮食 指导 信息 ; 步骤 S105、 基于食材数据库中各食材对应的用户权 重, 获取与所述饮食 目标和 所述饮食建 议相匹配的 第一目标食材 , 其中所述用户权重基 于用户行 为更新 ; 步骤 S106、 基于所述饮食指导信息和所述第一目标食 材, 为用户生成饮 食推荐 方案。 本申请的上 述方案中 , 通过获取用户数据并对 用户数据进行 分析确定用 户的 病因类型和病 因类型对应 的饮食目标 , 根据用户数据确定用户 的健康风 险以及 与健康风险 对应的饮食 建议, 根据饮食目标和饮 食建议为用 户生成饮 食指导 信息, 再基于食材数据 库中各食材对 应的用户权 重, 获取与饮食目标 和饮食 建议相匹配 的第一目标食 材, 最后基于饮食指导 信息和目标食 材, 为 用户生 成饮食推荐 方案。 本申请通过获取准 确的用户数据 并对用户数 据采用 有效 的分析方法 , 确定出针对性强、 准确度高的饮食推荐方 案。 在一个示例 中, 步骤 S101中, 基础数据为用户生理数据, 其中用户生理 数据 为表征用户生 理指标的数据 ,例如用户生理数据 包括用户的性 别、年龄、 身高 、 体重、 腰围、 臀围等。 用户疾病数 据包括用户 的病程 (病程指用户罹患某疾病的 时间长度, 通 常以年 为单位 )、 疾病类型、 与疾病类型对应的检验指标、 并发症、 家族史、 用药信 息等。 其中疾病类 型对应的检 验指标为表征 该疾病的 指标数据, 不同的疾病类 型所对 应的检验指 标存在差别 。 例如对于糖尿病来说 , 检验指标包括空腹血 糖、 空腹胰岛素、 血糖均值、 胰岛素均值、 随机血糖、 内脏脂肪等级、 甘油 三酯 、 转氨酶、 肾小球滤过率、 血尿酸、 血压、 胰岛素、 C肽、 糖化血红蛋白 等指标 数据。 例如对于肝病来说 , 检验指标包括 ■转氨酶、 谷丙转氨酶、 谷草 转氨酶 、 白蛋白、 球蛋白、 白球比值、 胆红素、 胆汁酸等指标数据。 运动数据为 表征用户运 动行为的数据 , 运动数据包括用户的运 动习惯, 例如 用户每日的运动 种类以及各 运动的运动 时长等。 饮食数据体 现了用户对 饮食的倾向 性, 例如主食中喜欢米饭 , 不喜欢馒 头; 蔬菜中喜欢菠菜、 生菜, 不喜欢胡萝卜。 饮食数据可以为一张表 格, 该 表格 上记载了用户 喜欢哪些食 材、 不喜欢哪些食材等信 息。 以及对哪些食材 有禁 忌, 即对食材进行分类。 本申请通过 获取用户 的基础数据 、 疾病数据、 运动数据以及饮食数据 , 一方 面丰富了用户 数据的内容 , 另一方面由于采集的用 户数据比较 全面, 有 利于提 高饮食推荐 方案的准确度 。 在一个示例 中, 获取用户数据后, 该方法还包括 : 对获取的用 户数据进行预 处理。 其中, 所述预处理包括数 据准确性检 查及缺失值处 理。 对获取的用 户数据进行 准确性检查 , 对不准确的用户数据进 行修正或删 除该条 不准确的用 户数据。 例如将用户数据 中的基础数 据、 疾病数据等指标 数据 与各指标数据 对应的有效 范围进行比较 , 根据比较结果确定该 用户数据 是否 准确。 若数据不准确, 再根据比较结果 对错误的用 户数据进行修 正或删 除。 例如, 某成年用户的身 高为 120厘米, 该身高不符合本申请对该数 据的 要求 , 则删除该条用户数据。或者某用户 的血压为 200,该血压数据不符合血 压有 效范围, 该用户的血压数 据很可能是 测量有问题 的数据, 因此删除该条 用户数 据。 例如,血糖常用 的单位有 mg/dL与 mmol/L, 不同血糖单位的有效值域不 同, 比如: 某用户的血糖数据是 120mmol/L, 显然远超出血糖有 效值域, 该 数据很 可能是错误 的单位导致 , 例如将血糖单位修改为 mg/dL或者根据两种 单位之 间的换算关 系进行换算 ,该血糖数据修正为 120mg/dL或 6.67mmol/L» 再例如 某男性用户 的体重数据 为 140(单位为 kg),但该用户的腰围数据正常, 此时很 可能是体重数 据的单位 为 “斤”, 因此将该体重数据修正为 70kg。 对于用户数 据中存在缺 失值的情况 ,对存在缺失值的用户 数据进行填 充 , 例如采 用均值或众 数对缺失的数 据进行填充 , 若获取的用户数据足 够多, 则 删除该 条存在缺失值 的用户数据 O 在一个示例 中, 根据步骤 S102, 根据所述用户数据, 确定所述用户的 病 因类型 以及与所述 病因类型对应 的饮食目标 , 包括: 将所述用户 数据输入基 于机器学 习的病因识别模 型或者决 策树模型, 输 出所述 用户的病 因类型; 根据所述病 因类型确定所 述用户的饮食 目标。 将用户的基 础数据和疾 病数据输入基 于机器学 习的病因识 别模型或决策 树模型 , 其中病因识别模型可 以是梯度提升 树模型、 多类别分类模 型, 且不 限于此 , 经过模型计算输出该 用户的病因类 型。 例如以糖尿病患者 的用户数 据为例 , 输入用户的腰围、 臀围、 空腹血糖、 空腹胰岛素、 血糖均值、 胰岛 素均值 、 随机血糖、 内脏脂肪等级、 甘油三酯、 转氨酶、 肾小球滤过率、 血 尿酸 、 血压、 胰岛素、 C肽、 糖化血红蛋白等指标数据, 根据这些数据 , 病 因识 别模型或决策 树模型输 出用户的病因类 型, 例如病因类型为 “肥胖导致 胰岛素 抵抗” 或 “脂毒性伴糖毒性引起 的胰岛功 能下降” 或 “长期脂毒性伴 糖毒性 引起胰岛功 能下降及肌 肉流失”。 其中 “肥胖导致胰岛素抵抗” 病因类 型对应 的饮食 目标为减脂; “脂毒性伴糖毒性引起 的胰岛功能下 降”病 因类型 对应 的饮食目标为 减脂和增肌 ; “长期脂毒性伴糖毒性引起胰岛功能 下降及肌 肉流 失” 病因类型对应的饮食目标 为增肌。 在一个示例 中, 用户的病因类型除 了基于病 因识别模型或 决策树模型判 断外 , 还可以将用户数据与对应 的阈值范 围作比较, 根据比较结果 确定用户 的病 因类型。例如以基础数据 为例说明,若已知一位 男性用户的腰 围和臀围 , 根据腰 围和臀围的 比值确定该 用户的腰臀 比, 假设男性的腰臀比阈值 范围是 0.8至 0.9, 根据该用户的腰臀比和腰臀比的 阈值范围可确定 第一结果 。 例如 该用户 的腰臀比为 0.78, 则比较结果为第一结果为该 用户的腰臀 比不超标; 若该用 户的腰臀比 为 0.95, 则第一结果为该用户的腰臀 比超标。 疾病类型 以糖尿病为例 , 根据检验指标中的空 腹血糖和空腹 胰岛素对用 户的胰 岛素抵抗进行 评估, 具体评估方法可通 过 HOMA-IR 公式 , 空腹血糖 x空腹胰岛素 A diet recommendation method, device, system, storage medium and electronic equipment Cross-reference to related applications This application is based on application number 2021115451672, application date is December 17, 2021 and application number is 2021115451653. Application date is December 2021 Two Chinese patent applications were filed on the 17th, and the priority of the Chinese patent application is claimed. The entire content of the Chinese patent application is hereby incorporated into this application as a reference. Technical Field The present application relates to the technical field of data processing, and in particular to a diet recommendation method, device, system, storage medium and electronic equipment. BACKGROUND OF THE INVENTION A healthy diet helps prevent malnutrition of all types as well as non-communicable and chronic diseases including such as diabetes, heart disease, stroke and cancer. Among them, for the prevention or control of diabetes, a healthy diet is particularly important, because diet is the most direct way for the human body to obtain sugar. Reasonable dietary intervention can effectively reduce the development speed of diabetes and the risk of complications, and even achieve reversal for users with pre-diabetes or mild diabetes. The user data on which the existing dietary recommendation schemes are based is not accurate enough, or even if accurate data is obtained, there is no effective data analysis method, resulting in problems such as low accuracy in final recipe determination. SUMMARY OF THE INVENTION The purpose of the embodiments of the present application is to provide a diet recommendation method, device, system, storage medium and electronic equipment, so as to at least solve the above-mentioned technical problems. In order to achieve the above purpose, an embodiment of the present application provides a diet recommendation method, including: acquiring user data, where the user data includes at least one of basic data, disease data, exercise data, and diet data; According to the user data, determine the type of etiology of the user and the dietary goal corresponding to the type of etiology; determine the health risk of the user and the diet suggestion corresponding to the health risk according to the user data; generating dietary guidance information for the user based on the dietary goal and the dietary suggestion; and obtaining a first target ingredient matching the dietary goal and the dietary suggestion based on the user weight corresponding to each ingredient in the ingredient database, wherein the The user weight is updated based on the user behavior; based on the dietary guidance information and the first target ingredient, a dietary recommendation plan is generated for the user. Wherein, the determining the etiology type of the user and the diet target corresponding to the etiology type according to the user data includes: inputting the user data into a machine learning-based etiology identification model or a decision tree model, Outputting the type of etiology of the user; determining the dietary goal of the user according to the type of etiology. Wherein, the determining the health risk of the user and the diet suggestion corresponding to the health risk according to the user data includes: inputting the user data into multiple health risk models or decision tree models based on machine learning, Outputting a result of whether the user has the health risk; determining a diet suggestion for the user according to the health risk result. Wherein, the generating dietary guidance information for the user according to the dietary goal and the dietary suggestion includes: determining the metabolic level of the user according to the exercise data; determining the metabolic level of the user according to the basic data, the metabolic level and the The dietary target determines the user's daily dietary energy intake; generates dietary guidance information according to the daily dietary energy intake and the dietary advice, and the dietary guidance information includes at least the number of meals per day and the nutrition of each meal Ingredient intake. The method also includes: determining dietary taboos of the user according to the user data; Before acquiring the first target food, the food is filtered according to the dietary restrictions. Wherein, updating the user weight based on user behavior includes: updating the user weight according to the user's individual behavior and/or environment analysis. Wherein, the user's individual behavior includes the user's replacement operation and search operation for a certain ingredient, and the environmental analysis includes the change of season, the change of the user's location, and the change of the price of the ingredient. Wherein, updating the user weight according to the user's individual behavior includes: if the user has a replacement operation on a certain ingredient and the number of replacement operations is greater than a threshold, reducing the user weight corresponding to the ingredient; and /or if the user performs a search operation on a certain ingredient and selects the ingredient as the first target ingredient, increase the user weight corresponding to the ingredient. Wherein, the generating a dietary recommendation plan for the user based on the dietary guidance information and the first target ingredient includes: determining a recipe corresponding to the first target ingredient according to the first target ingredient; The attribute data of the target ingredients, the intake of each nutrient component in each meal, and the cooking method determine the weight of each first target ingredient in the recipe. The method further includes: acquiring a dietary adjustment request from the user, the dietary adjustment request indicating that the first target ingredient in the dietary recommendation plan is replaced with a second target ingredient, and the second target ingredient is a single ingredient or a mixed ingredient ingredients; based on the dietary adjustment request and the ingredient database, update the diet recommendation scheme. Wherein, when the second target ingredient is a single ingredient, the dietary adjustment request at least includes: the type, name and weight of the first target ingredient; based on the dietary adjustment request and the ingredient database, update The diet recommendation scheme includes: based on the ingredient database, determining a second target ingredient of the same type as the first target ingredient and a corresponding replacement ratio; according to the replacement ratio and the weight of the first target ingredient, determining the second target ingredient Describe the weight of the second target ingredient. Wherein, when the target ingredient is a mixed ingredient, the diet adjustment request at least includes: the type and name of the mixed ingredient; based on the diet adjustment request and the ingredient database, updating the diet recommendation The scheme includes: based on the type of the mixed food, selecting the food component attribute corresponding to the name from the food database; the food component attribute at least includes the proportion range of the food component; based on the basic body data, determining the nutrition that the user needs to ingest Composition ratio; Based on the composition properties of the ingredients and the ratio of the nutritional ingredients, determine the proportion relationship of each ingredient in the mixed ingredients; Based on the ingredients database, the ratio relationship, and the calorie value to be ingested, determine The weight of the mixed ingredients. Wherein, after the determination of the weight of the second target ingredient, it further includes: based on the ingredient database, determining a standard weight and a standard volume corresponding to the second target ingredient; based on the weight of the second target ingredient, Standard weight and standard volume, to determine the volume of the second target ingredient. Wherein, the determining the second target ingredient of the same type as the first target ingredient and the corresponding replacement ratio based on the ingredient database includes: selecting a second target of the same type as the first target ingredient from the ingredient database ingredients; querying the first calorie value per unit weight corresponding to the first target ingredient from the ingredient database, and the second calorie value per unit weight corresponding to the second target ingredient; based on the first calorie per unit weight value and the second calorie value per unit weight to determine the replacement ratio between the second target ingredient and the first target ingredient. Wherein, the diet adjustment request also includes a meal time; the calorie value to be ingested is obtained by the following method: acquiring the user's daily metabolic data; determining the user's calorie to be ingested based on the meal time and the daily metabolic data value. Wherein, the determination of the weight of the mixed food based on the food material database, the proportional relationship, and the calorie value to be ingested includes: Based on the proportional relationship and the ingredient database, determine the calorie value per unit weight of the mixed ingredient; and determine the weight of the mixed ingredient based on the calorie value to be ingested and the calorie value per unit weight. Wherein, the ingredient data is obtained through the following methods: obtaining the ingredient type, ingredient name and ingredient attribute to establish a mapping relationship; the ingredient attribute includes at least the standard weight, standard volume, calorie value per unit weight, and ingredient component attributes of the ingredient; The mapping relationship is stored in the data file to obtain the food material data file. Correspondingly, an embodiment of the present application also provides a diet recommendation device, including: a first acquisition module, configured to acquire user data, where the user data includes at least one of basic data, disease data, exercise data, and diet data; a first determination module, configured to determine the type of etiology of the user and a dietary goal corresponding to the type of etiology according to the user data; a second determination module, configured to determine the health of the user according to the user data risk and dietary advice corresponding to the health risk; a guidance module, configured to generate dietary guidance information for the user according to the dietary goal and the dietary advice; a matching module, configured to use the user corresponding to each ingredient in the ingredient database weight, to obtain the first target ingredient that matches the dietary goal and the dietary suggestion, wherein the user weight is updated based on user behavior; a recommendation module, configured to, based on the dietary guidance information and the target ingredient, for the user Generate dietary recommendations. The device further includes: a second acquiring module, configured to acquire a dietary adjustment request of the user, the dietary adjustment request indicating that the first target ingredient in the dietary recommendation plan is replaced with a second target ingredient, the second The target ingredient is a single ingredient or a mixed ingredient; an update module, configured to update the diet based on the diet adjustment request and the ingredient database Recommended solution. Correspondingly, an embodiment of the present application also provides a dietary recommendation system, including: a client, a server, and a database; the client is configured to receive user data and dietary adjustment requests, and send the user data and dietary adjustment requests to The server; the server is used to implement the diet recommendation method described in this application; the database is used to store the ingredients database. Correspondingly, the embodiment of the present application also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to execute the diet recommendation method described in the present application. Correspondingly, the embodiment of the present application also provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; the processor is used for reading the executable instructions from the memory instructions, and execute the instructions to implement the diet recommendation method described in this application. In the above-mentioned embodiment, by acquiring user data and analyzing the user data, the etiology type of the user and the diet target corresponding to the etiology type are determined, and the health risk of the user and the diet suggestion corresponding to the health risk are determined according to the user data. Dietary advice generates dietary guidance information for users, and then obtains target ingredients that match dietary goals and dietary recommendations based on the user weights corresponding to each ingredient in the ingredient database, and finally generates dietary recommendations for users based on dietary guidance information and the first target ingredient plan. This application obtains accurate user data and adopts an effective analysis method for user data to determine a highly targeted and highly accurate diet recommendation plan. At the same time, the application can update the diet recommendation plan based on the diet adjustment request, so as to obtain a diet recommendation plan suitable for the user's physical condition, thereby satisfying the user's diet preference while also achieving balanced nutrition and improving the user's experience. Other features and advantages of the embodiments of the present application will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings are used to provide a further understanding of the embodiments of the present application, and constitute a part of the specification, together with the following specific implementation methods, are used to explain the embodiments of the present application, but are not intended to limit the embodiments of the present application. In the drawings: Fig. 1 is a schematic flowchart of a diet recommendation method provided by an embodiment of this application; Fig. 2 is a schematic diagram of a food material database provided by an embodiment of this application; Fig. 3 is a diet provided by another embodiment of this application Schematic flow diagram of the recommendation method; FIG. 4 is a schematic flow diagram of updating a recommended diet plan for a single ingredient in the embodiment of the present application; FIG. 5 is a schematic flow diagram of updating a recommended diet plan for mixed ingredients in the embodiment of the application; FIG. A schematic flow chart of updating a diet recommendation plan for mixed ingredients in an embodiment; FIG. 7 is a schematic structural diagram of a diet recommendation device provided in an embodiment of the present application; FIG. 8 is a schematic diagram of a diet recommendation device provided in another embodiment of the present application Schematic diagram of the structure; FIG. 9 is a schematic diagram of the system architecture of a diet recommendation system provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The specific implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific implementation manners described here are only used to illustrate and explain the embodiments of the present application, and are not intended to limit the embodiments of the present application. As shown in Figure 1, it is a diet recommendation method provided by the embodiment of this application. The diet recommendation referred to in this application records the name of the recipe for each meal every day, the required ingredients, the content of nutrients and calories, etc. , the dietary recommendation may be a document or a form, and the present application does not limit the specific form of the dietary recommendation. The method includes: Step S101, acquiring user data, the user data including at least one of basic data, disease data, exercise data and diet data; Step S102, according to the user data, determining the etiology type of the user and Dietary goals corresponding to the type of etiology in question; Step S103. According to the user data, determine the user's health risk and dietary advice corresponding to the health risk; Step S104. Generate dietary guidance information for the user according to the dietary goal and the dietary advice; Step S105. Based on the user weight corresponding to each ingredient in the ingredient database, obtain a first target ingredient that matches the dietary goal and the dietary suggestion, wherein the user weight is updated based on user behavior; Step S106. Based on the dietary guidance information and the first target ingredient to generate a dietary recommendation plan for the user. In the above-mentioned scheme of the present application, by acquiring user data and analyzing the user data, the etiology type of the user and the diet target corresponding to the etiology type are determined, and the user’s health risk and dietary advice corresponding to the health risk are determined according to the user data. and dietary advice to generate dietary guidance information for users, and then based on the user weights corresponding to each ingredient in the ingredient database, obtain the first target ingredient that matches the dietary goal and dietary advice, and finally generate a diet for the user based on the dietary guidance information and target ingredients Recommended program. This application obtains accurate user data and adopts an effective analysis method for user data to determine a highly targeted and highly accurate diet recommendation plan. In one example, in step S101, the basic data is the user's physiological data, wherein the user's physiological data is data representing the user's physiological indicators, for example, the user's physiological data includes the user's gender, age, height, weight, waist circumference, hip circumference, etc. The user's disease data includes the user's disease course (the course of disease refers to the length of time the user has suffered from a certain disease, usually in years), disease type, test indicators corresponding to the disease type, complications, family history, medication information, etc. The test index corresponding to the disease type is the index data characterizing the disease, and the test indexes corresponding to different disease types are different. For example, for diabetes, the test indicators include fasting blood glucose, fasting insulin, average blood glucose, average insulin, random blood glucose, visceral fat level, triglyceride, transaminase, glomerular filtration rate, blood uric acid, blood pressure, insulin, C-peptide , glycosylated hemoglobin and other index data. For example, for liver disease, the test indicators include transaminase, alanine aminotransferase, aspartate Transaminase, albumin, globulin, white blood cell ratio, bilirubin, bile acid and other index data. Exercise data is data that characterizes the user's exercise behavior, and the exercise data includes the user's exercise habits, such as the user's daily exercise type and the exercise duration of each exercise. Diet data reflects the user's preference for diet, for example, he likes rice as a staple food, but he doesn't like steamed buns; among vegetables, he likes spinach and lettuce, but doesn't like carrots. The dietary data may be a table, which records information such as which ingredients the user likes and which ingredients he does not like. And which ingredients are taboo, that is, to classify the ingredients. In this application, by acquiring the user's basic data, disease data, exercise data, and diet data, on the one hand, the content of the user data is enriched; In an example, after the user data is acquired, the method further includes: preprocessing the acquired user data. Wherein, the preprocessing includes data accuracy checking and missing value processing. Check the accuracy of the acquired user data, correct or delete the inaccurate user data. For example, index data such as basic data and disease data in the user data are compared with the valid range corresponding to each index data, and whether the user data is accurate is determined according to the comparison result. If the data is inaccurate, correct or delete the wrong user data according to the comparison result. For example, if the height of an adult user is 120 centimeters, and the height does not meet the data requirements of this application, the user data will be deleted. Or a user's blood pressure is 200, and the blood pressure data does not meet the valid range of blood pressure. The user's blood pressure data is likely to be measurement problematic data, so delete this piece of user data. For example, the commonly used units of blood sugar are mg/dL and mmol/L, and the effective value ranges of different blood sugar units are different. For example, the blood sugar data of a user is 120mmol/L, which is obviously far beyond the effective value range of blood sugar. The data is likely to be an error For example, the blood glucose unit is modified to mg/dL or converted according to the conversion relationship between the two units, and the blood glucose data is corrected to 120mg/dL or 6.67mmol/L » For example, the weight data of a male user is 140 (unit is kg), but the user's waist circumference data is normal, At this time, it is likely that the unit of the weight data is "jin", so the weight data is corrected to 70kg. For the case where there are missing values in the user data, fill in the user data with missing values, for example, use the mean or mode to fill in the missing data, and if the obtained user data is enough, delete the user with missing values Data O In an example, according to step S102, according to the user data, determining the etiology type of the user and the diet target corresponding to the etiology type includes: inputting the user data into a machine learning-based etiology identification model Or a decision tree model, outputting the etiology type of the user; determining the dietary goal of the user according to the etiology type. Input the user's basic data and disease data into the etiology identification model or decision tree model based on machine learning, where the etiology identification model can be a gradient boosting tree model, a multi-category classification model, and not limited to this, and output the user's etiology after model calculation type. For example, taking the user data of diabetic patients as an example, input the user's waist circumference, hip circumference, fasting blood sugar, fasting insulin, mean blood sugar, mean insulin, random blood sugar, visceral fat level, triglycerides, transaminases, glomerular filtration rate, Blood uric acid, blood pressure, insulin, C-peptide, glycosylated hemoglobin and other index data, based on these data, the etiology identification model or decision tree model outputs the user's etiology type, for example, the etiology type is "insulin resistance caused by obesity" or "lipotoxicity with glycotoxicity" Decreased pancreatic islet function” or “Long-term lipotoxicity with glucotoxicity causes decreased pancreatic islet function and muscle loss”. Among them, the dietary goal corresponding to the etiology type of "obesity leading to insulin resistance" is fat loss; the dietary goal corresponding to the etiology type of "lipotoxicity with glycotoxicity caused by decreased islet function" is fat loss and muscle gain; "long-term lipotoxicity with glycotoxicity causes Decreased islet function and muscle loss" The dietary goal corresponding to the etiology type is to increase muscle. In an example, in addition to determining the cause type of the user based on the cause identification model or the decision tree model, the user data can also be compared with the corresponding threshold range, and the user's cause type can be determined according to the comparison result. For example, taking the basic data as an example, if the waist and hip circumference of a male user are known, the waist-to-hip ratio of the user is determined according to the ratio of the waist circumference to the hip circumference. The user's waist-to-hip ratio and a threshold range for the waist-to-hip ratio may determine the first result. For example, if the user's waist-to-hip ratio is 0.78, the comparison result is that the first result is that the user's waist-to-hip ratio does not exceed the standard; If the user's waist-to-hip ratio is 0.95, the first result is that the user's waist-to-hip ratio exceeds the standard. The type of disease takes diabetes as an example. The user’s insulin resistance is evaluated according to the fasting blood glucose and fasting insulin in the test indicators. The specific evaluation method can be HOMA-IR formula, fasting blood glucose x fasting insulin
HOMA - IR指数 = HOMA - IR index =
22.5 其中空腹血 糖的单位为 mmlo/L, 空腹胰岛素单位为 fiU/mL, 22.5为校正 因子 。 胰岛素抵抗除了用 HOMA-IR公 式进行评估 外, 还可采用 Matsuda指 数、 李光伟指数、 QUISKI指数等, 例如目前普遍采用 Matsuda指数公式用于 评估胰 岛素抵抗 , 22.5 where the unit of fasting blood glucose is mmlo/L, the unit of fasting insulin is fiU/mL, and 22.5 is the correction factor. Insulin resistance can also be assessed by using the HOMA-IR formula, Matsuda index, Li Guangwei index, QUISKI index, etc. For example, the Matsuda index formula is commonly used to evaluate insulin resistance.
, , 10000 , , 10000
Matsuda 指数 = - 中Matsuda Index = - Medium
(空腹血糖 X空腹胰岛素 X胰岛素均值 X血糖均值 ) 本申请对胰 岛素抵抗的评 估方法不做 具体限制。 根据胰岛素 抵抗指数和 胰岛素抵抗 指数的阈值 范围可以确定 第二结果 , 例如 第二结果为胰 岛素抵抗程度 高或胰岛素 抵抗程度一 般或胰岛素抵 抗程度 低。 同理根据检 验指标中的 内脏脂肪等 级和内脏脂 肪等级的阈值 范围确定第 二结 果, 例如第二结果为内脏 脂肪等级超标 或内脏脂肪 等级不超标 。 根据检 验指标 中的糖化血 红蛋白和糖化 血红蛋白 的阈值范围确 定第二结果 , 假设糖 化血 红蛋白的阈值 范围为 4%至 6%, 若用户的糖化血红蛋 白为 10%, 第二结 果为糖 化血红蛋 白过高。 本申请对根据其 它检验指标和 检验指标 阈值如何确 定第二 结果, 不再 — 列举 。 根据第一结 果、第二结果以及第 一结果和第 二结果的组合 得到多个数组 , 即一个 数组可以是 一个第一结 果, 也可以是一个第二结 果, 也可以是第一结 果和 第二结果的组 合, 其中第一结果和第二 结果的组合 中至少包括 一个第一 结果和 一个第二结 果。 构建的知识 库用于记录 病因类型和数 组的映射 关系以及风 险类型和数组 的映射 关系, 构建的知识库如表 1所示: 表 1
Figure imgf000014_0001
根据用户 的第一结果和 第二结果判 断第一结果 和第二结果 所在的数组 , 根据数 组和病因类 型之间的映射 关系从知识库 中确定病 因类型, 例如:
(fasting blood glucose x fasting insulin x average insulin x average blood glucose) This application does not specifically limit the method for evaluating insulin resistance. The second result can be determined according to the insulin resistance index and the threshold range of the insulin resistance index, for example, the second result is a high degree of insulin resistance, a normal degree of insulin resistance, or a low degree of insulin resistance. Similarly, the second result is determined according to the visceral fat level and the threshold range of the visceral fat level in the test index, for example, the second result is that the visceral fat level exceeds the standard or the visceral fat level does not exceed the standard. The second result is determined according to the HbA1c and the threshold range of HbA1c in the test indicators, assuming that the threshold range of HbA1c is 4% to 6%, if the user's HbA1c is 10%, the second result is that HbA1c is too high. In this application, how to determine the second result based on other inspection indexes and inspection index thresholds is not enumerated any more. According to the first result, the second result and the combination of the first result and the second result, multiple arrays are obtained, that is, an array can be a first result, a second result, or a first result and a second result A combination of results, wherein the combination of the first result and the second result includes at least one first result and one second result. The constructed knowledge base is used to record the mapping relationship between etiology types and arrays and the mapping relationship between risk types and arrays. The constructed knowledge base is shown in Table 1: Table 1
Figure imgf000014_0001
According to the user's first result and second result, determine the array where the first result and the second result are located, and determine the cause type from the knowledge base according to the mapping relationship between the array and the cause type, for example:
( 1 ) 若根据用户的基础数据和检验指标确定 的第一结果 为腰臀比超 标, 第二 结果为胰岛素抵 抗程度高 、 体内脏脂肪等级超标 , 其中腰臀比超标, 胰 岛素抵 抗程度高 、 体内脏脂肪等级超标在数组 1 , 根据表 1 , 数组 1与病因 1 之间存 在映射关 系, 病因 1为 “肥胖导致胰岛素抵抗”, 因此根据该用户的基 础数据 和检验指标 可以确定该 用户的病因类 型, 此时该用户的饮食 目标为减 脂; ( 2 ) 若根据用户的基础数据和检验指标确定 的第一结果 为腰臀比超 标, 第二 结果为胰岛素抵 抗程度一般 、 内脏脂肪等级超标 、 有脂肪肝, 其中腰臀 比超标 、 胰岛素抵抗程度一般、 内脏脂肪等级超标 、有脂肪肝在数组 2, 根据 表 1 , 数组 2与病因 2之间存在映射关系, 病因 2的病因类型 为 “脂毒性伴 糖毒性 引起的胰 岛功能下降”, 此时该用户的饮 食目标为减 脂和增肌; ( 3 )若根据用户的基础数据和检验指标确 定的第一结 果为身体质量 指数(1) If the first result determined based on the user's basic data and test indicators is that the waist-to-hip ratio exceeds the standard, the second result is high insulin resistance and visceral fat levels that exceed the standard. The level of visceral fat exceeds the limit in array 1. According to Table 1, there is a mapping relationship between array 1 and cause 1. Cause 1 is "insulin resistance caused by obesity". Therefore, the user's etiology type can be determined according to the user's basic data and test indicators , at this time, the user's dietary goal is to lose fat; (2) If the first result determined according to the user's basic data and inspection indicators is that the waist-to-hip ratio exceeds the standard, the second result is that the degree of insulin resistance is normal, the level of visceral fat exceeds the standard, and there is Fatty liver, in which the waist-to-hip ratio exceeds the standard, the degree of insulin resistance is normal, the level of visceral fat exceeds the standard, and there is fatty liver in group 2. According to Table 1, there is a mapping relationship between group 2 and etiology 2. The etiology type of etiology 2 is "lipotoxicity Islet function decline caused by glucose toxicity", at this time the user's dietary goal is to reduce fat and increase muscle; (3) If the first result determined according to the user's basic data and test indicators is the body mass index
( BMI ) 过低, 第二结果为胰岛素抵抗程度较低 、 糖化血红蛋白过高 、 病程 长, 其中身体质量指数 ( BMI )过低、 胰岛素抵抗程度较低、 糖化血红蛋白过 高、 病程长在数组 3 , 根据表 1 , 数组 3与病因 3之间存在映射关系, 病因 3 的病 因类型为 “长期脂毒性伴糖毒性引起 胰岛功能下 降及肌肉流 失”, 此时该 用户 的饮食目标为 增肌。 上述三种 病因类型仅是 本申请的举 例说明, 病因类型不局 限于上述三种 类型 , 本申请对病因类型的数量 和具体病 因内容不做限制 。 在一个示例 中, 在步骤 S103中, 所述根据所述用户数据, 确定所述用户 的健康 风险以及与 所述健康风 险对应的饮食 建议, 包括: 将所述用户 数据输入 多个基于机器 学习的健康 风险模型或 者决策树模型 , 输 出所述用户是否 具有该健康风 险的结果; 根据所述健 康风险的结 果确定所述用 户的饮食建议 。 将用户的基 础数据和 疾病数据输入 多个基于机 器学习的健康 风险模型或 者决 策树模型,其中健康风 险模型可以是梯 度提升树模 型、多类别分类模型 , 且不 限于此, 经过模型计算输 出该用户的健 康风险。 例如以糖尿病 患者的用 户数据 为例, 输入用户用药信息、血糖 均值、 肾小球滤过率、血尿酸、血压 、 等指 标数据, 根据这些数据 , 健康风险模型或者决策树 模型输出健 康风险的 结果 。 例如健康风险的结果为 “低血糖风险” 或 “慢性肾小球肾 炎风险” 或 “高血压风 险” 或 “尿酸高风险”, 其中 “低血糖风险” 对应的饮食建议为 睡 前加餐 , “慢性肾小球肾炎风险” 对应的饮食建议 为低蛋白饮 食, “高血压风 险” 对应的饮 食建议为低 盐饮食, “尿酸高风险”对 应的饮食建 议为低嘿吟饮 食。 在一个示例 中, 用户的健康风险除 了根据上述 健康风险模 型或者决策树 模型确 定外, 还可以才艮据用户的第一结果和第二结 果判断第一 结果和第二结 果所在 的数组, 根据数组和健 康风险之间 的映射关系从 知识犀中确 定健康风 险的 结果, 例如: (BMI) is too low, the second result is low insulin resistance, high glycosylated hemoglobin, and long course of disease, among which body mass index (BMI) is too low, low insulin resistance, high glycosylated hemoglobin, and long course of disease are in group 3 , according to Table 1, there is a mapping relationship between group 3 and etiology 3, and the etiology type of etiology 3 is "long-term lipotoxicity with glucotoxicity causing decreased islet function and muscle loss". The user's dietary goal is to gain muscle. The above three types of etiology are only examples for this application, and the types of etiology are not limited to the above three types, and this application does not limit the number of types of etiology and specific content of etiology. In one example, in step S103, the determining the health risk of the user and the diet suggestion corresponding to the health risk according to the user data includes: inputting the user data into multiple machine learning-based A health risk model or a decision tree model, outputting a result of whether the user has the health risk; determining a diet suggestion for the user according to the result of the health risk. Input the user's basic data and disease data into multiple machine learning-based health risk models or decision tree models, where the health risk model can be a gradient boosting tree model, a multi-category classification model, and not limited to this, and output the user after model calculation health risks. For example, take the user data of diabetic patients as an example, input user medication information, average blood sugar, glomerular filtration rate, blood uric acid, blood pressure, and other index data, based on these data, the health risk model or decision tree model outputs the results of health risks . For example, the results of health risks are "risk of hypoglycemia" or "risk of chronic glomerulonephritis" or "risk of high blood pressure" or "high risk of uric acid". "Chronic glomerulonephritis risk" corresponds to a low-protein diet, "hypertension risk" corresponds to a low-salt diet, and "high uric acid risk" corresponds to a low-salt diet. In one example, in addition to determining the user's health risk according to the above-mentioned health risk model or decision tree model, the array in which the first result and the second result are located can also be judged according to the user's first result and second result, and according to the array The mapping relationship between health risks and health risks is determined from the knowledge of health risks, for example:
( 1 )根据用户的用药信息和用药信 息阈值确定第一 结果, 住史设第一结果 为血糖 低,血糖低在数组 11 ,根据表 1 ,与数组 11存在映射关系的为风险 1 , 风险 1的健康风险 的结果为低血 糖风险, 存在该风险类型 的用户对应 的饮食 建议 为应该加餐 , 尤其是睡前加餐; (1) Determine the first result according to the user's medication information and the threshold value of the medication information, set the first result as hypoglycemia, hypoglycemia is in array 11, according to table 1, the mapping relationship with array 11 is risk 1, risk 1 The result of the health risk is the risk of hypoglycemia, and the corresponding dietary advice for users with this risk type is to add meals, especially before going to bed;
( 2 )根据检验指标中的肾小球过滤检验指 标和肾小球 过滤检验阈值 确定 第二 结果, 假设第二结果为 肾小球过滤检验 指标超标 , 肾小球过滤检验指标 超标在 数组 12,根据表 1 , 与数组 12存在映射慢性肾小球肾炎风险关系的 为 风险 2, 风险 2的健康风险 的结果为慢性 肾小球肾炎风 险, 存在该风险的用 户对应 的饮食建议 为低蛋白饮食 ; (2) determined according to the glomerular filtration test index and the glomerular filtration test threshold in the test index The second result, assuming that the second result is that the glomerular filtration test index exceeds the standard, the glomerular filtration test index exceeds the standard in group 12, according to Table 1, the risk relationship with group 12 that maps chronic glomerulonephritis is risk 2, risk The result of the health risk of 2 is the risk of chronic glomerulonephritis, and the corresponding dietary suggestion for users with this risk is a low-protein diet;
( 3 )根据血压指标和血压阈值确 定第二结果 , 假设第二结果为血压 高, 血压 高在数组 13, 根据表 1 , 与数组 13存在映射关系的风险类型为风 险 3, 风险 3的健康风险 的结果为高血 压风险, 存在该风险类型 的用户对应 的饮食 建议 为低盐饮食; (3) Determine the second result according to the blood pressure index and the blood pressure threshold, assuming that the second result is high blood pressure, and the high blood pressure is in the array 13. According to Table 1, the risk type that has a mapping relationship with the array 13 is risk 3, and the health risk of risk 3 The result of is the risk of high blood pressure, and the corresponding dietary suggestion for users with this risk type is a low-salt diet;
( 4 )根据尿酸指标和尿酸阈值确 定第二结果 , 假设第二结果为尿酸 高, 尿酸 高在数组 4, 根据表 1 , 与数组 4存在映射关系的为风险 4, 风险 4的健 康风 险的结果为尿 酸高, 存在该风险类型 的用户对应 的饮食建议为 低喋吟饮 食。 上述四种健 康风险的类 型仅是本 申请的举例说 明, 健康风险的类型不局 限于 上述四种类型 , 本申请对健康风险的类 型的数量和 具体风险 内容不做限 制。 通过确定用 户的病因类 型和健康风 险的结果能 够对后续饮食 推荐方案的 确定起 到指导作用 , 从而进一步提高饮食推荐 的准确性。 在一个示例 中,在步骤 S104中, 所述根据所述饮食目标和所述饮食 建议 为所 述用户生成饮食 指导信息 , 包括: 根据所述运 动数据确定所 述用户的代谢 等级; 根据所述基 础数据、 所述代谢等级 和所述饮食 目标确定所述 用户的每 日 饮食摄 入能量; 根据所述每 日饮食摄入 能量和所述饮 食建议生 成饮食指导信 息, 所述饮 食指 导信息至少 包括每日进餐 次数和每餐各 营养成分摄入 量。 例如根据用 户的运动数据 确定用户的代 谢等级,再根据用 户的基础数据 、 代谢 等级及饮食 目标确定用户 的每日饮食摄入 能量。 例如根据用 户基础数据 中的性别、身高、体重 、年龄,采用 Mifflin-St Jeor Equations方程计算用户每 日所需的热量 , 男性: BMR(kcal)=9.99W+6.25H-4.92A+5 女性: BMR(kcal)=9.99W+6.25H-4.92A-161 其中 W为体重 ( kg ), H为身高 ( cm ), A为年龄 (周岁 )。 用户每 日所需的热量还 可以根据 Henry方程: (4) Determine the second result according to the uric acid index and the uric acid threshold, assuming that the second result is high uric acid, and the high uric acid is in the array 4. According to Table 1, the mapping relationship with the array 4 is risk 4, and the health risk result of risk 4 For high uric acid, the corresponding dietary suggestion for users with this risk type is a low-babbling diet. The above four types of health risks are only examples of this application, and the types of health risks are not limited to the above four types, and this application does not limit the number of types of health risks and specific risk content. The result of determining the user's etiology type and health risk can guide the determination of the subsequent dietary recommendation plan, thereby further improving the accuracy of the dietary recommendation. In one example, in step S104, the generating dietary guidance information for the user according to the dietary goal and the dietary suggestion includes: determining the metabolic level of the user according to the exercise data; determining the user's daily dietary energy intake based on the data, the metabolic level, and the dietary goal; generating dietary guidance information based on the daily dietary energy intake and the dietary advice, the dietary guidance information at least including The number of daily meals and the intake of each nutrient in each meal. For example, the user's metabolic level is determined according to the user's exercise data, and then the user's daily dietary energy intake is determined according to the user's basic data, metabolic level and dietary goals. For example, according to the gender, height, weight, and age in the user's basic data, the Mifflin-St Jeor The Equations equation calculates the daily calories required by the user, male: BMR(kcal)=9.99W+6.25H-4.92A+5 female: BMR(kcal)=9.99W+6.25H-4.92A-161 where W is body weight ( kg ), H is height (cm), A is age (one year old). The user's daily calorie needs can also be calculated according to Henry's equation:
18-30岁: 男性: BMR(kJ)=51x体重 (kg)+3500 女性: BMR(kJ)=47x体重 (kg)+2880 18-30 years old: Male: BMR(kJ)=51x body weight (kg)+3500 Female: BMR(kJ)=47x body weight (kg)+2880
30-60岁: 男性: BMR(kJ)=53x体重 (kg)+3070 女性: BMR(kJ)=39x体重 (kg)+3070 用户每 日所需的热量 除了采用举例 说明的两种 方法确定外 , 还可以采用 其它 方法确定, 例如 Cunningham Equation. LIU equation等, 本申请对每日 所需 的热量的确定 方法不做限制 。 用户每 日所需的热量 的确定后, 根据用户的代谢 等级和饮食 目标确定用 户的每 日饮食摄入 能量。 例如用户每日所需的热 量为 1800大卡, 该用户的代 谢等 级差。 且该用户的饮食目标为减 脂, 则每日饮食摄入能量应低 于 1800大 卡。 例如将用户的 代谢等级、 饮食目标、 基础数据输入模 型, 模型根据输入 数据输 出用户每 日饮食摄入能 量, 该模型可以是逻辑 回归模型等 , 本申请对 此不做 限制。 根据用户每 日饮食摄入 能量和饮食 建议生成饮 食指导信息 , 饮食指导信 息包括 每日进餐次 数、 每餐各营养成分摄入 量、 标准热量下的各营 养成分含 量; 以及标准热量下各餐中各食 材的质量。 用户的每 日进餐次数跟 用户的疾病 类型以及用 户基础数据 和用户疾病数 据有 关, 进餐次数还可以根据饮 食建议中 的加餐建议确 定。 例如有些用户适 合一 日三餐, 对于糖尿病类型 且存在 “苏木杰现象 ” 的用户来说则适合一 日 四餐 , 即常规的早中晚三餐以 及睡前加餐 ; 还有一些用户适合一 日五餐或者 六餐 , 本申请对每日进餐次数 不做具体限制 。 每种进餐次 数下各餐的 热量比例,例如对于一 日四餐的用户 来说,早餐 、 中餐 、 晚餐及睡前加餐的热量 比例为 3:4:2:1。 每餐各营养 成分摄入量 为每餐所需 的碳水化合物 、 蛋白质、 纤维素等营 养成分 的含量,每餐营养成 分摄入量可 以根据饮食建议 中营养成分 建议确定, 例如饮 食建议为低蛋 白饮食 , 则应该降低每餐 中蛋白质的摄入 量。 标准热量 下的各营养成 分含量, 例如每日所需 的碳水化合物 、 蛋白质、 脂肪 、 纤维素等营养成分的含 量, 根据每种进餐次数下 各餐的热量 比例, 还 可以确 定每餐所需 的碳水化合物 、蛋白质、脂肪、纤维素等营养成 分的含量。 标准热量下 各餐中各食材 的质量, 例如早餐中馒 头为 80g, 牛奶 200g, 鸡蛋 60g, 香蕉 100go 根据用户每 日所需的热 量及每种进餐 次数下各餐 的热量比 例确定每餐所 需的 热量; 再根据每餐所需的 热量及单位食 材包含的热 量确定待选食 材的质 量。 通过采用上述 方案, 能够提高饮食推荐 的准确度。 在一个示例 中, 该方法还包括: 根据所述用 户数据确定所 述用户的饮食 禁忌; 在获取所述 目标食材之前 , 根据所述饮食禁忌对食 材进行过滤 。 饮食禁忌指 因过敏等 因素导致饮食推 荐方案中 绝对不能包含 的特定食材 或成分 , 例如某用户对花生过敏 , 因此该用户的禁忌食 材中包括花 生, 该用 户的饮 食推荐方案 中则不能出现 花生或者由花 生制作的其 它食材。 在一个示例 中,在步骤 S105中,基于食材数据库中各食 材对应的用 户权 重 , 获取与所述饮食 目标和所述饮 食建议相 匹配的第一 目标食材 , 其中所述 用户权 重基于用户 行为更新。 所述食材数据库用于记录 食材信息 , 所述食材 信息 包括食材名称 、 食材类型、 食材的营养构成、 单位食材包含的 营养成分 含量及 热量以及食材 对应的用户 权重。 其中, 食材对应的用户 权重为根据 地域、 季节、 城乡等环境因素以及用 户的个 人因素设定 的权重, 例如对于沿海城 市的用户来 说, 优质蛋白中鱼虾 的权 重相对较高 , 而对于非沿海城市的用户 , 优质蛋白中鱼虾的权 重相对较 低。 用户的个人 因素指用户对食 材的倾向性 , 若用户喜好某食材 , 则该食材 的用户 权重相对较 高;若用户不喜好某食材 ,则该食材的用户权 重相对较低 ; 若用户 对某食材有 禁忌, 则该禁忌食材对应 的用户权重为 0。 如图 2所示为构建的食材 数据犀的示 意图, 例如大米, 大米的食材信息 包括食 材名称米饭 , 食材类型为主食, 食材的营养构成 包括碳水化合 物、 脂 肪、 蛋白质、 纤维素, 100g米饭的营养成 分含量为碳水化 合物 25.9g、 脂肪 0.3g、 蛋白质 2.6g、 纤维素 0.3g, 100g米饭的热量为 116大卡, 米饭的初始 权重 为 2O 从食材数据 库中获取待 选食材列表 , 其中待选食材列表中 的各种食材 均 是用户 可以食用的 食材, 通过结合用户的 病因类型、 饮食目标以及饮 食数据 和饮食 禁忌从食材 数据库中过 滤掉不适合用 户食用的食 材, 即得到待选食材 列表 。 例如用户的病因类型是 “肥胖导致胰岛素抵抗” , 则食材数据库中的高 脂肪 的食材不适合 用户食用, 因此食材数据库中需要过 滤掉高脂肪 的食物 ; 例如用 户的饮食禁 忌数据中确 定用户对虾过 敏, 不能食用虾, 则待选食材列 表中 不包括虾, 例如待选食材 列表如表 2 : 表 2
Figure imgf000019_0001
Figure imgf000020_0001
在一个示例 中, 从所述待选食材列表 中确定第一 目标食材, 包括: 根据食材对 应的用户权 重构建食材 池, 所述食材数据犀中 包括多个种类 的食材 , 每个种类食材的数量根 据该种类食 材对应的用 户权重确定 , 从所述 食材 池中随机选择 第一目标食材 。 对于上述获 取的待选食 材列表, 根据食材对应 的用户权重构 建一个食材 池, 例如食材池 中共包括 10种类型食材, 分别编号为食材 1至食材 10, 其 中食材 1至食材 10的权重分别为 1、 2、 2、 3、 2、 2、 1、 4、 3、 5 , 假设食材 池中食 材的数量是 100,则食材池中食材 1至食材 10的数量分别 为 4、 8、 8、 12、 8、 8、 4、 16、 12、 20, 从食材池中随机选取食材 1至食材 10, 由于食材 10 的权重最大, 因此食材 10被选中的概率最大 。 在一个示例 中, 所述用户权重基于用 户行为更新 , 包括: 根据所述用 户的个体行 为和 /或环境分析更新所述用户权 重。 用户的个体 行为包括用 户对某食材 的替换操作 和搜索操作 , 所述环境分 析包括 季节的改变 、 用户地点的改变、 食材价格的改变 。 在一个示例 中, 根据所述用户的个体 行为更新所 述用户权重 , 包括: 若所述用户 存在对某食 材的替换操作 且所述替换 操作的次数 大于阈值 , 则降低 该食材对应 的所述用户权 重; 若所述用户 存在对某食 材的搜索操作 且选择该食 材作为 目标食材, 则增 加该食 材对应的所 述用户权重 。 例如, 用户已经有 30天的行为记 录, 若今天用户选择不吃牛 肉 (饮食推 荐方案 中包含牛 肉时, 选择更换), 且前面 30天记录中的牛肉均正常采 纳, 此种状 况不降低牛 肉对应的用 户权重, 原因可能是 “冰箱里目前没有牛 肉, 无法制 作”。 同样的, 若用户近一周内多次选择不吃 牛肉, 至少表明该用户近 期不吃 牛肉或不方 便吃牛肉, 则要降低牛肉对应的用户 权重, 保证接下来一 段时 间牛肉被推荐 出的概率一 定幅度降低 。 例如用户搜索铲鱼, 并将铲鱼加 入到 自己的饮食推荐 方案中, 则增加筹鱼对应 的用户权重 。 在一个示例 中, 环境分析包括季节 的改变、 用户地点的改 变、 食材价格 的改 变,例如某地区夏季是虾 的丰收季节 ,则夏季时虾对应的用户 权重增加 , 冬季 时虾对应的用 户权重降低 。或者某一食材的价格增加 ,超过用户的预期, 则相应 降低该食材 对应的用户权 重。 通过动态调节各食 材对应的用 户权重, 有利 于提高饮食推荐 方案的效率 和准确度。 在一个示例 中,在步骤 S106中, 所述基于所述饮食指导信息和所述 第一 目标食 材, 为用户生成饮食推荐 方案, 包括: 根据所述第 一目标食材确 定所述第一 目标食材对应 的食谱; 根据所述第 一目标食材 的属性数据 、 每餐各营养成分摄入 量及烹饪方 式 确定食 谱中各第一 ■目标食材的重量。 在一个示例 中, 确定第一目标食材后 , 从食谱库中确定该第 一目标食材 对应 的食谱, 所述食谱库用于 记录食谱信 息, 所述食谱信息包括食谱 的制作 方式 、 烹饪方法、 注意事项、 食材配料表以及食谱的权重 。 根据饮食禁 忌和食材配 料表从食材数 据库中确 定待选食谱 列表, 若食材 配料表 中包摇饮食 禁忌数据中 的食材, 则从食材数据库 中过滤包含 该食材配 料表 的食谱。 例如用户对花生过敏 , 虽然食谱 A中的食材 不包括花生 , 但是 制作食 谱 A时, 使用的食材配料表 中包括花生 酱, 则食谱 A被过滤, 不能成 为待选 食谱。 食谱库中过滤掉 不能选择的食 谱后, 剩余食谱组成的 列表即为 待选食 谱列表。 在一个示例 中, 从所述待选食谱列表 中确定第一 目标食谱, 包括: 根据食谱 的权重构建食 谱池, 所述食谱库中包括 多个种类 的食谱, 每个 种类食 谱的数量根 据该种类食谱 的权重确定 , 从所述食谱池中随机选 择目标 食谱 。 例如待选食 谱列表中有五 种食谱,分别编号 为食谱 1至食谱 5 ,食谱 1至 食谱 5的权重分别为 1、 2、 2、 3、 2, 构建一个食谱池总量为 100的食谱, 则 食谱 池中食谱 1至食谱 5的数量分别为 10、 20、 20、 30、 20, 从食谱池中随 机选择 第一目标食谱 。 最后根据第 一 ■目标食材的属性数据、 每餐各营养成分摄入 量及烹饪方 式 确定第 一目标食谱 中各第一 目标食材的重量 。 如图 3所示, 为本申请另一实施例提供 的一种饮食 推荐方法的 流程示意 图, 该饮食推荐方 法还包括: 步骤 S107 , 获取用户的饮食调整请求, 饮食调整请求指示将饮食推荐方 案中 的第一目标食 材替换为第 二目标食材 , 第二目标食材为单一食 材或者混 合食材 ; 步骤 S108, 基于饮食调整请求和所 述食材数据 库, 更新饮食推荐方案 。 本申请实施 例能够基于 饮食调整请 求更新饮食推 荐方案, 从而获得适合 用户 身体情况的饮 食推荐方案 , 由此在满足用户饮食偏好 的同时也 实现了营 养均衡 。 如图 4所示为本申请一 实施例中针对 单一食材更新 饮食推荐方 案的流程 示意 图, 该方法至少包括如下操 作流程: 步骤 S201 , 基于食材数据库, 确定与第一目标食材类型相同的第二 目标 食材 以及对应的替换 比; 步骤 S202, 根据替换比和第一目标食材的重 量, 确定第二目标食材的重 量; 步骤 S203 , 基于食材数据库, 确定第二目标食材对应的标准重量和标 准 体积; 步骤 S204, 基于第二目标食材的重量、 标准重量和标准体 积, 确定第二 目标食 材的体积 。 在 S201中,基于用户 的触发获取饮食 调整请求 , 此时饮食调整请求中用 于替换 第一目标食 材的第二 目标食材为单一食 材。 食材数据库 主要是基 于食材知识 图谱生成的 。 具体地, 将食材类型、 食 材名 称和食材属性 建立映射关 系; 食材属性至少包括食 材的标准重 量、 标准 体积 、单位重量热量值 ,以及食材成分属性等 ;将映射关系存储 于数据犀中 , 形成食 材知识图谱 , 得到食材数据库。 基于食材数 据库中的 映射关系, 确定与第一 目标食材类型相 同的第二 目 标食材 以及对应 的替换比, 生成替换界面 。 例如, 从食材数据库中选取第一 目标食 材类型相 同的第二 目标食材; 从食材数据库中查 询与第一 目标食材对 应的 第一单位重量 热量值,以及与第二 目标食材对应 的第二单位重 量热量值; 基于 第一单位重量 热量值与第 二单位重量 热量值, 确定第二目标食 材与第一 目标食 材之间的替换 比, 生成替换界面。 在 S202中,基于用户对 替换界面第二 目标食材选 项的选择, 确定第二目 标食材 ; 根据第二目标食材对 应的替换比 以及第一 目标食材的重量 , 计算第 二 目标食材的重量 。 本申请实施 例通过获取 饮食调整请 求; 并基于食材数据库 , 确定与第一 目标食 材类型相 同的第二 目标食材以及对应 的替换比 , 生成替换界面; 替换 界面 至少包括两种 第二目标食 材的选项; 之后基于替换 界面选项的 选择, 根 据替换 比和第一 目标食材的重 量, 确定第二目标食材的 重量。 由此, 能够基 于食材 数据库, 根据用户喜好 实现基础食材 的替换, 提高了用户的体验 性。 在 S203和 S204中, 从食材数据犀中查 询与第二 目标食材对应的 标准重 量和 标准体积; 利用第二 目标食材的重量 、 标准重量和标准体积 , 计算第二 目标食 材的体积 。 由此, 本申请实施例 能够基于食材 数据库中的 映射关系, 确定目标食材 的体 积, 提高了用户的体验性 。 下面结合具 体的应用对 本申请实施例 进行详细说 明。 获取第一 目标食材 A的饮食调整请 求,饮食调整请 求至少包括食 材 A(单 一食材 )的类型、名称和重量;例如类型为主食 ,名称为养麦面和重量 为 200g。 从食材 数据库中查 询与食材 A类型相同的第 二目标食材 (此时第二 目标食材 为单 一食材), 第二目标食材例如糯米和挂面 。从食材数据库中 查询与挂面对 应 的单位 重量热 量值 为 130cal/100g , 与糯米对应的单位重量热 量值为 125cal/100g, 以及与养麦面对应的单位重量 热量值为 120cal/100g; 基于挂面 对应 的单位重量热 量值、 糯米对应的单位 重量热量值 , 以及养麦面对应的单 位重 量热量值, 得到糯米与养 麦面之间的替换 比为 1.04, 挂面与养麦面之间 的替换 比为 1.08, 生成替换界面; 替换界面包摇糯米选项和挂面选 项。 基于 替换界 面糯米选项 的选择, 根据糯米对应 的替换比和养 麦面的重量 , 得到糯 米的 重量为 208g。 替换比计算公式如下式( 1)所示, 目标食材重量的计算公 式如 式 ( 2) 所示。 替换比 =目标食材的单位 重量热量值 /第一目标食材的单位 重量热量值 式 (1); 目标食材重 量 =第一目标食材重量 *替换比 式 ( 2)。 从食材数据 库中查询糯 米对应的标准 重量为 50g和标准体积为 160mL, 基于糯 米重量、 标准重量和标 准体积, 得到糯米的体积 520mL 第二目标食 材体 积计算公式如 下式 ( 3) 所示。 第二目标食 材体积 =(第二目标食材重 量/第二目标食材标 准重量) *第二 目标食 材标准体积 式 (3)。 本申请实施 例的食材数据 库还可以 包括 GI值、 GI等级一级推荐权重等。 食材数 据库的建立 是结合实际应 用场景而确 定的。 需要说明 的是, 本申请实施例的方 法适用于单 一食材的替换 , 对于混合 食材 中的单一食材 成分替换也 是可行的。 单一食材包括 单一主食 、 优质蛋白 质、 蔬菜等。 如图 5所示, 为本申请一实施例中针 对混合食材 更新饮食调整 方案的流 程示 意图; 该方法至少包括如 下操作流程: 步骤 S301 , 获取指示将第一目标食材替换为混 合食材的饮食 调整请求; 饮食调 整请求至少 包括混合食材 的类型和名 称; 步骤 S302, 基于混合食材的类型, 从食材数据库中选取与 名称对应的食 材成 分属性; 食材成分属性至 少包括食材成 分比例范围 ; 步骤 S303 , 基于身体基础数据, 确定用户需要摄取的营养成分占比 ; 步骤 S304, 基于食材成分属性和营养成分 占比, 确定混合食材中各食材 成分 的比例关系; 步骤 S305, 基于食材数据库、 比例关系, 以及待摄入热量值, 确定混合 食材 的重量。 在 S301至 S302中, 当混合食材的名称 为猪肉韭菜饺 子时, 食材成分例 如里脊 肉和韭菜 。 食材成分属性包括里脊 肉在饺子中 的比例范围 , 以及韭菜 在饺 子中的比例范 围;食材成分属性还 包括里脊肉的 蛋白质含量和 脂肪含量, 以及 韭菜对应维生 素含量等信 息。 在 S303至 S305中,身体基础数据包括用户的身体 成分数据和 疾病数据。 身体 成分数据例如 身高、 体重、 年龄等; 疾病数据例如合并症和并发 症。 待摄入热量 值通过如 下方法获得 : 获取用户的日代谢数据 ; 基于用餐时 间和 日代谢数据 , 确定用户的待摄入热量值 。 在这里, 待摄入热量值是与用 餐时 间对应的, 用餐时间例如 早上、 中午或者晚上。 日代谢数据是指用户的 平均 日代谢数据 ,该日代谢数据包括用户 的饮食情况数 据、运动情况数据等 。 食材数据库 通过如下方 法获得: 获取食材类型 、 食材名称和食材属性建 立映射 关系; 食材属性至少 包摇食材的标 准重量、 标准体积、 单位重量热量 值, 以及食材成分属性; 将映射关系存储于数 据库中, 得到食材数据 库。 如图 6所示, 为本申请另一实施例 中针对混合食材 更新饮食调 整方案的 流程 图, 该方法至少包括如下操 作流程: 步骤 S401 , 获取针对混合食材的饮食调整请求; 饮食调整请求至少 包括 混合食 材的类型和名 称; 步骤 S402,基于类型,从食材数据库中选取 与名称对应 的食材成分属 性; 食材成 分属性至少 包括食材成分 比例范围; 步骤 S403 , 基于身体基础数据, 确定用户需要摄取的营养成分占比 ; 步骤 S404, 基于食材成分属性和营养成分 占比, 确定混合食材中各食材 成分 的比例关系; 步骤 S405 , 基于比例关系和食材数据库, 确定混合食材的单位重量热量 值; 步骤 S406, 基于待摄入热量值以及单位重量 热量值, 确定混合食材的重 量。 其中, S401、 S402、 S403、 S404的具体实现过程与 S301、 S302、 S303、 S304相 类似, 这里不再重复赘述 。 在 S405和 S406中, 从食材数据库中查询 比例关系 中各食材成分 的单位 重量 热量值, 从而得到混合食 材的单位重量 热量值。 利用待摄入热 量值以及 单位 重量热量值 , 计算混合食材的重量。 应理解, 在本申请的各 种实施例 中, 上述各过程的序号的 大小并不意味 着执行 顺序的先后 , 各过程的执行顺序应 以其功能和 内在的逻辑确 定, 而不 应对本 申请实施例 的实施过程构 成任何限定 。 下面结合具 体的应用场景 对本申请 实施例进行详 细说明。 获取用户针 对猪肉韭菜 的请求; 从食材数据库 中选取与猪 肉韭菜饺子对 应的里 脊肉成分属 性和韭菜成 分属性。 基于用户的身体 基础数据 , 确定用户 需要摄 取的营养成 分占比; 基于里脊肉成分 属性和韭菜 成分属性 , 以及营养 成分 占比, 确定猪肉韭菜饺子 中里脊肉和韭 菜的比例关 系。 由于不同用户的 身体基 础数据不 同, 因此对应的猪肉韭菜饺 子中各食材 成分的比例 关系也是 不一样 的。 最终比例关系会体 现在饺子的制 作过程中 。 基于比例关系, 从食 材数据 库中查询与 猪肉韭菜饺 子对应的单位 重量热量值 。 基于用户的身体基 础数据 , 确定用户一天中待摄入 热量值; 若用餐时间为 中午, 那么中午对应 的待摄 入热量值就 是将一天 中待摄入热量值 平均成三份 , 得到中午对应的待 摄入 热量值。 根据待摄入热量 值以及单位 重量热量值 , 计算出建议食用的猪 肉韭 菜饺子的重量 和体积 (或个数)。 比如: 用户选择猪肉韭菜饺子, 根据用 户的 身体基础数据 确定需摄入 420kcal热量,营养成分侧重于优质蛋白 (通过 计算得 到猪肉 占比 50%、 韭菜占比 45%、 其他(香油等配料) 5%), 并基于 此配 比折算出每 100g饺子包含热量 189kcal,则该用户应食用 196g饺子就可 以满足 热量需求 。 本申请的用 户可以是普通 用户, 也可以患有慢性 疾病的患者 , 例如 2型 糖尿 病患者, 或者高血压患者等 。 本申请实施 例在混合食 材方面, 能够结合用户的真实身体 情况确定食材 成分 配比, 从而实现更好的营 养平衡。 如图 7所示为本申请 实施例提供的一 种饮食推荐装 置的结构示 意图, 该 装置 包括: 第一获取模 块 501 , 用于获取用户数据, 所述用户数据包括基础数据、 疾 病数据 、 运动数据以及饮食数据 中的至少一 项; 第一确定模 块 502 ,用于根据所述用户数据,确定所述用 户的病因类 型以 及与 所述病因类型 对应的饮食 目标; 第二确定模 块 503 ,用于根据所述用户数据,确定所述用 户的健康风 险以 及与 所述健康风险 对应的饮食建 议; 指导模块 504, 用于根据所述饮食 目标和所述饮 食建议为 所述用户生 成 饮食指 导信息; 匹配模块 505,用于基于食材犀中各 食材对应的 用户权重,获取与 所述饮 食 目标和所述饮食 建议相匹配 的第一目标食 材, 其中所述用户权重基 于用户 行为 更新; 推荐模块 506,用于基于所述饮食指 导信息和所述 第一目标食 材, 为用户 生成饮 食推荐方案 。 如图 8所示为本申请另一 实施例提供 的一种饮食推 荐装置的结 构示意图, 该装 置还包括: 第二获取模 块 507, 用于获取所述用户的饮食 调整请求 , 所述饮食调整请 求指 示对所述饮食 推荐方案中 的第一目标食 材替换为第二 目标食材 , 所述第二 目标食 材为单一食 材或者混合食 材; 更新模块 508, 用于基于所述饮食 调整请求和 所述食材数 据库, 更新所述 饮食推 荐方案。 本申请 实施例还提供一 种饮食推荐 系统, 包括:客户端、服务器和数据库; 所述客户 端用于接收 用户数据和饮 食调整请求 , 并将所述用户数据和饮 食 调整请 求发送至服 务器; 所述服务 器用于执行本 申请所述的饮 食推荐方法 ; 所述数据 库用于存储食 材数据库 。 如图 9所示, 为本申请实施例可以应 用于其中的 示例性系统 架构图, 该系 统架构 800可以包括终 端设备 801、 802、 803 , 网络 804和服务器 805。 网络 804用 以在终端设 备 801、 802、 803和服务器 805之间提供通信链路的介质 。 网络 804可以包括各种连接 类型,例如有线、无线通信链路或 者光纤电缆 等等。 用户可 以使用终端设备 801、 802、 803通过网络 804与服务器 805交互, 以接 收或发送消息 等。 终端设备 801、 802、 803上可以安装有各种通讯客户端 应用 , 例如购物类应用、 网页浏览器应用 、 搜索类应用、 即时通信工具、 邮箱 客户 端、 社交平台软件等 (仅为示例)。 终端设备 801、 802、 803可以是具有显示屏并且支持网页浏览的各 种电子 设备 , 包括但不限于智能手机 、 平板电脑、 膝上型便携计算机和 台式计算机等 等。 服务器 805可以是提供各种服务 的服务器,例如对用户利 用终端设备 801、 802、 803所产生的点击事件提 供支持的后 台管理服务器 (仅为示例)。后台管理 服务 器可以对接收 到的点击数据 、 文本内容等数据进行 分析等处理 , 并将处理 结果 (例如目标推 送信息、 产品信息 --仅为示例)反馈给终端设备 。 需要说 明的是, 本申请实施例所提供 的饮食调整 方法一般由服 务器 805执 行, 相应地, 饮食调整装置一般 设置于服务 器 805中。 应该理解 , 图 9中的终端设备、 网络和服务器的数 目仅仅是示 意性的。 根 据实现 需要, 可以具有任意数 目的终端设备 、 网络和服务器。 本申请 实施例还提供一 种计算机可 读存储介质 , 所述存储介质存储有计算 机程序 , 所述计算机程序用于执 行本申请所 述的饮食推荐 方法。 本申请 实施例还提供一 种电子设备 , 包括: 处理器; 用于存储 所述处理器可 执行指令的存 储器; 所述处理 器, 用于从所述存储器 中读取所述可执 行指令, 并执行所述指 令以 实现本申请所 述的饮食推荐 方法。 除了上述方 法和设备以 外, 本申请的实施例还 可以是计算机 程序产品 , 其包括 计算机程序 指令, 所述计算机程序指 令在被处理 器运行时使得 所述处 理器执 行本说明 书上述 “示例性方法 "部分中描述的根据本 申请各种实施 例的 方法 中的步骤。 所述计算机 程序产品可 以以一种或 多种程序设 计语言的任 意组合来编写 用于执 行本申请 实施例操作的程 序代码, 所述程序设计 语言包括面 向对象的 程序设 计语言,诸如 Java、 C++等,还包括常规的过程式程序设计语言,诸如
Figure imgf000029_0001
部分地 在用户设备 上执行、 作为一个独立 的软件包执行 、 部分在用户计算设 备上部 分在远程计 算设备上执行 、或者完全在远程计 算设备或服务 器上执行。 此外, 本申请的实施例 还可以是计 算机可读存储 介质, 其上存储有计算 机程序 指令, 所述计算机程序 指令在被处理 器运行时使得 所述处理 器执行本 说明 书上述 “示例性方法 ”部分中描述的根据本 申请各种实施 例的方法 中的步 骤。 所述计算机 可读存储介 质可以采用 一个或多个 可读介质的任 意组合。 可 读介质 可以是可读 信号介质或 者可读存储介 质。 可读存储介质例如 可以包括 但不 限于电、 磁、 光、 电磁、 红外线、 或半导体的系统、 装置或器件, 或者 任意 以上的组合 。 可读存储介质的更具体 的例子 (非穷举的列表) 包括: 具 有一个 或多个导线 的电连接、 便携式盘、 硬盘、 随机存取存储器( RAM)、 只 读存储 器 (ROM)、 可擦式可编程只读存储器 (EPROM或闪存 )、 光纤、 便 携式 紧凑盘只读存储 器 ( CD-ROM). 光存储器件、 磁存储器件、 或者上述的 任意合 适的组合。 以上结合具 体实施例描 述了本申请 的基本原理 , 但是, 需要指出的是, 在本 申请中提及的 优点、 优势、 效果等仅是示例而非 限制, 不能认为这些优 点、 优势、 效果等是本申请的 各个实施例 必须具备的 。 另外, 上述公开的具 体细 节仅是为了示 例的作用和便 于理解的作 用, 而非限制, 上述细节并不限 制本 申请为必须采 用上述具体 的细节来实现 。 本申请中 涉及的器件 、 装置、 设备、 系统的方框图仅作为例示性的例子 并且 不意图要求或 暗示必须按 照方框图示 出的方式进行 连接、 布置、 配置。 如本领 域技术人员将 认识到的 ,可以按任意方式连接 、布置、配置这些器件 、 装置 、 设备、 系统。 诸如 “包括”、 “包含””具有”等等的词语是开放性词汇, 指 “包括但不限于”,且可与其互 换使用。这里所使 用的词汇 “或”和 “和 ”指词汇 “和/或”, 且可与其互换使用, 除非上下文明确 指示不是如此 。 这里所使用的 词汇 “诸如 ”指词组 “如但不限于”, 且可与其互换使用。 还需要指 出的是, 在本申请的装置 、 设备和方法中, 各部件或各步骤是 可以分 解和/或重新组合 的。这些分解和 /或重新组合应视为本申请的 等效方案。 提供所公开 的方面的以 上描述以使 本领域的任何 技术人员 能够做出或者 使用本 申请。 对这些方面的各种 修改对于本 领域技术人 员而言是非 常显而易 见的 ,并且在此定义的一般原 理可以应用 于其他方面 而不脱离本 申请的范围。 因此 , 本申请不意图被限制到 在此示出的方 面, 而是按照与在此公 开的原理 和新 颖的特征一致 的最宽范围 。 为了示例和 描述的 目的已经给出 了以上描述。 此外, 此描述不意图将本 申请 的实施例限制 到在此公开 的形式。 尽管以上已经讨 论了多个示 例方面和 实施例 , 但是本领域技术人员将 认识到其某 些变型、 修改、 改变、 添加和子 组合 。
30-60 years old: Male: BMR(kJ)=53x body weight (kg)+3070 Female: BMR(kJ)=39x body weight (kg)+3070 In addition to determining the daily calorie requirement of the user using the two methods illustrated , It can also be determined by other methods, such as Cunningham Equation. LIU equation, etc. This application does not limit the method of determining the daily calorie requirement. After the user's daily calorie requirement is determined, the user's daily dietary energy intake is determined according to the user's metabolic level and dietary goals. For example, the daily calorie requirement of the user is 1800 kcal, and the metabolic level of the user is poor. And if the user's dietary goal is to lose fat, the daily dietary energy intake should be less than 1800 calories. For example, the user's metabolic level, dietary goals, and basic data are input into the model, and the model outputs the user's daily dietary energy intake according to the input data. The model can be a logistic regression model, etc., which is not limited in this application. Generate dietary guidance information based on the user's daily dietary energy intake and dietary recommendations. Dietary guidance information includes the number of meals per day, the intake of each nutrient in each meal, the content of each nutrient under standard calories; and the content of each meal under standard calories. The quality of each ingredient. The user's daily meal frequency is related to the user's disease type, user basic data and user disease data, and the meal frequency can also be determined according to the meal suggestion in the dietary suggestion. For example, some users are suitable for three meals a day, and for users with diabetes and "Somogyi phenomenon", they are suitable for four meals a day, that is, regular breakfast, lunch and evening meals and snacks before going to bed; some users are suitable for a day five meals or Six meals, this application does not set specific restrictions on the number of meals per day. The calorie ratio of each meal for each meal frequency, for example, for a user who eats four meals a day, the calorie ratio of breakfast, lunch, dinner, and extra meals before going to bed is 3:4:2:1. The intake of each nutrient in each meal is the content of carbohydrates, protein, cellulose and other nutrients required for each meal. The intake of nutrients in each meal can be determined according to the nutrient recommendations in the dietary advice. For example, the dietary advice is low protein diet, the protein intake in each meal should be reduced. The content of various nutrients under standard calories, such as the daily required content of carbohydrates, protein, fat, cellulose and other nutrients, according to the calorie ratio of each meal under each meal frequency, the required amount of each meal can also be determined The content of carbohydrates, protein, fat, cellulose and other nutrients. The quality of each ingredient in each meal under standard calories, for example, steamed buns for breakfast are 80g, milk 200g, eggs 60g, and bananas 100g . The amount of each meal is determined according to the user's daily calorie needs and the calorie ratio of each meal under each meal frequency. The required calories; and then determine the quality of the ingredients to be selected according to the calories needed for each meal and the calories contained in a unit of ingredients. By adopting the above scheme, the accuracy of diet recommendation can be improved. In an example, the method further includes: determining dietary restrictions of the user according to the user data; and filtering the ingredients according to the dietary restrictions before acquiring the target ingredients. Dietary taboos refer to specific ingredients or ingredients that must not be included in the dietary recommendation plan due to allergies and other factors. Other ingredients made from peanuts. In one example, in step S105, based on the user weight corresponding to each ingredient in the ingredient database, the first target ingredient matching the dietary goal and the dietary suggestion is acquired, wherein the user weight is updated based on user behavior. The ingredient database is used to record ingredient information, and the ingredient information includes ingredient name, ingredient type, nutritional composition of ingredients, nutritional content and calories contained in a unit ingredient, and user weights corresponding to ingredients. Among them, the user weight corresponding to the ingredients is the weight set according to environmental factors such as region, season, urban and rural areas, and the user's personal factors. For example, for users in coastal cities, fish and shrimp are among high-quality protein The weight of fish and shrimp in high-quality protein is relatively low for users in non-coastal cities. The user's personal factors refer to the user's preference for ingredients. If the user likes a certain ingredient, the user weight of the ingredient is relatively high; if the user does not like a certain ingredient, the user weight of the ingredient is relatively low; If there is a taboo, the user weight corresponding to the taboo ingredient is 0. Figure 2 is a schematic diagram of the constructed ingredient data, such as rice, the ingredient information of rice includes the ingredient name rice, the ingredient type is the staple food, the nutritional composition of the ingredient includes carbohydrates, fat, protein, cellulose, and the nutrition of 100g rice The ingredient content is 25.9g of carbohydrates, 0.3g of fat, 2.6g of protein, and 0.3g of cellulose. The heat of 100g of rice is 116 calories, and the initial weight of rice is 2. Obtain the list of ingredients to be selected from the ingredients database, among which All the ingredients in the ingredient list are edible ingredients for the user. By combining the user's etiology type, dietary goals, dietary data and dietary taboos, the ingredients that are not suitable for the user's consumption are filtered out from the ingredient database, and the list of ingredients to be selected is obtained. For example, if the user's etiology type is "obesity leads to insulin resistance", the high-fat food in the ingredient database is not suitable for the user to eat, so the high-fat food needs to be filtered out in the ingredient database; for example, it is determined in the user's dietary taboo data that the user is allergic to shrimp , if you cannot eat shrimp, the list of ingredients to be selected does not include shrimp, for example, the list of ingredients to be selected is shown in Table 2: Table 2
Figure imgf000019_0001
Figure imgf000020_0001
In an example, determining the first target ingredient from the list of ingredients to be selected includes: constructing an ingredient pool according to user weights corresponding to the ingredients, the ingredient data includes multiple types of ingredients, and the quantity of each type of ingredient According to the determination of the user weight corresponding to the type of food, the first target food is randomly selected from the food pool. For the list of ingredients to be selected obtained above, a ingredient pool is constructed according to the user weights corresponding to the ingredients. For example, the ingredient pool includes 10 types of ingredients, numbered as ingredients 1 to 10, and the weights of ingredients 1 to 10 are 1. , 2, 2, 3, 2, 2, 1, 4, 3, 5, assuming that the number of ingredients in the ingredient pool is 100, the numbers of ingredients 1 to 10 in the ingredient pool are 4, 8, 8, 12, 8, 8, 4, 16, 12, 20, randomly select ingredients 1 to 10 from the ingredient pool, and since ingredient 10 has the largest weight, the probability of being selected for ingredient 10 is the highest. In an example, updating the user weight based on user behavior includes: updating the user weight according to the user's individual behavior and/or environment analysis. The user's individual behavior includes the user's replacement operation and search operation for a certain ingredient, and the environmental analysis includes changes in seasons, changes in the user's location, and changes in the price of the ingredient. In an example, updating the user weight according to the user's individual behavior includes: if the user has a replacement operation on a certain ingredient and the number of replacement operations is greater than a threshold, reducing the weight of the user corresponding to the ingredient. Weights; If the user performs a search operation on a certain ingredient and selects the ingredient as the target ingredient, the user weight corresponding to the ingredient is increased. For example, the user has 30 days of behavior records. If the user chooses not to eat beef today (if beef is included in the dietary recommendation plan, choose to replace it), and the beef in the previous 30-day record is normally adopted, this situation will not reduce the beef corresponding The user weight of , the reason may be "there is no beef in the refrigerator and cannot be made". Similarly, if the user chooses not to eat beef several times in the past week, it at least indicates that the user has not eaten beef recently or is inconvenient to eat beef, then the weight of the user corresponding to beef should be reduced to ensure that the probability of beef being recommended in the next period of time is certain The magnitude is reduced. For example, if a user searches for shovel fish and adds shovel fish to his diet recommendation plan, the user weight corresponding to shovel fish will be increased. In one example, environmental analysis includes changes in seasons, changes in user locations, and changes in food prices. For example, summer in a certain area is the harvest season for shrimp, and the weight of users corresponding to shrimp increases in summer, while the weight of users corresponding to shrimp decreases in winter. . Or if the price of a certain ingredient increases and exceeds the user's expectations, the user weight corresponding to the ingredient will be reduced accordingly. By dynamically adjusting the user weight corresponding to each ingredient, it is beneficial to improve the efficiency and accuracy of the diet recommendation plan. In one example, in step S106, generating a dietary recommendation plan for the user based on the dietary guidance information and the first target ingredient includes: determining the first target ingredient according to the first target ingredient The weight of each first target ingredient in the recipe is determined according to the attribute data of the first target ingredient, the intake of each nutrient in each meal, and the cooking method. In an example, after the first target ingredient is determined, the recipe corresponding to the first target ingredient is determined from a recipe library, the recipe library is used to record recipe information, and the recipe information includes recipe preparation method, cooking method, attention Items, ingredient lists, and recipe weights. Determine the list of recipes to be selected from the ingredient database according to the dietary taboo and ingredient list, and if the ingredient list contains ingredients in the dietary taboo data, filter the recipes containing the ingredient list from the ingredient database. For example, if the user is allergic to peanuts, although the ingredients in recipe A do not include peanuts, when recipe A is made, the ingredient list includes peanut butter, then recipe A is filtered and cannot become a candidate recipe. After filtering out unselectable recipes in the recipe library, the list of remaining recipes is A list of recipes to choose from. In an example, determining the first target recipe from the list of candidate recipes includes: constructing a recipe pool according to the weight of the recipes, the recipe library includes multiple types of recipes, and the number of recipes of each type is based on the weight of the type The weight of the recipe is determined, and the target recipe is randomly selected from the recipe pool. For example, there are five recipes in the list of recipes to be selected, numbered respectively as recipe 1 to recipe 5, and the weights of recipe 1 to recipe 5 are respectively 1, 2, 2, 3, 2, and a recipe pool with a total of 100 recipes is constructed. Then the numbers of recipes 1 to 5 in the recipe pool are 10, 20, 20, 30, and 20 respectively, and the first target recipe is randomly selected from the recipe pool. Finally, the weight of each first target ingredient in the first target recipe is determined according to the attribute data of the first target ingredient, the intake of each nutrient in each meal, and the cooking method. As shown in FIG. 3 , it is a schematic flowchart of a diet recommendation method provided by another embodiment of the present application. The diet recommendation method further includes: Step S107, acquiring a user's diet adjustment request, and the diet adjustment request indicates that the diet recommendation plan will include: The first target ingredient is replaced by the second target ingredient, and the second target ingredient is a single ingredient or a mixed ingredient; Step S108, based on the diet adjustment request and the ingredient database, update the diet recommendation plan. The embodiment of the present application can update the diet recommendation plan based on the diet adjustment request, so as to obtain a diet recommendation plan suitable for the user's physical condition, thereby achieving nutritional balance while satisfying the user's diet preference. As shown in FIG. 4, it is a schematic flowchart of updating a dietary recommendation plan for a single ingredient in an embodiment of the present application. The method at least includes the following operation process: Step S201, based on the ingredient database, determine a second target that is the same type as the first target ingredient The ingredients and the corresponding replacement ratio; step S202, according to the replacement ratio and the weight of the first target ingredient, determine the weight of the second target ingredient; step S203, based on the ingredient database, determine the standard weight and standard corresponding to the second target ingredient Volume; step S204, based on the weight, standard weight and standard volume of the second target food, determine the volume of the second target food. In S201, a dietary adjustment request is acquired based on a user's trigger. At this time, the second target ingredient used to replace the first target ingredient in the dietary adjustment request is a single ingredient. The ingredient database is mainly generated based on the ingredient knowledge graph. Specifically, a mapping relationship is established between the type of ingredients, the name of the ingredients, and the attributes of the ingredients; the attributes of the ingredients include at least the standard weight, standard volume, calorie value per unit weight, and ingredient attributes of the ingredients; the mapping relationship is stored in the data. Knowledge map, get the ingredients database. Based on the mapping relationship in the ingredient database, a second target ingredient of the same type as the first target ingredient and a corresponding replacement ratio are determined to generate a replacement interface. For example, select a second target ingredient of the same type as the first target ingredient from the ingredient database; query the calorie value per unit weight corresponding to the first target ingredient and the second unit weight corresponding to the second target ingredient from the ingredient database calorie value; based on the first calorie value per unit weight and the second calorie value per unit weight, determine the replacement ratio between the second target ingredient and the first target ingredient, and generate a replacement interface. In S202, based on the user's selection of the second target ingredient option on the replacement interface, determine the second target ingredient; and calculate the weight of the second target ingredient according to the replacement ratio corresponding to the second target ingredient and the weight of the first target ingredient. In this embodiment of the present application, a request for dietary adjustment is obtained; and based on the ingredient database, a second target ingredient of the same type as the first target ingredient and a corresponding replacement ratio are determined to generate a replacement interface; the replacement interface includes at least two options for the second target ingredient ; Then, based on the selection of the replacement interface option, the weight of the second target ingredient is determined according to the replacement ratio and the weight of the first target ingredient. Thus, based on the ingredients database, the basic ingredients can be replaced according to the user's preferences, which improves the user's experience. In S203 and S204, query the standard weight and standard volume corresponding to the second target ingredient from the ingredient data; calculate the volume of the second target ingredient by using the weight, standard weight and standard volume of the second target ingredient. Therefore, the embodiment of the present application can determine the target ingredient based on the mapping relationship in the ingredient database The volume improves user experience. The embodiments of the present application will be described in detail below in conjunction with specific applications. Obtain the diet adjustment request of the first target ingredient A. The diet adjustment request includes at least the type, name and weight of ingredient A (single ingredient); for example, the type is staple food, the name is Yangmai noodles and the weight is 200g. A second target ingredient of the same type as ingredient A is queried from the ingredient database (in this case, the second target ingredient is a single ingredient), such as glutinous rice and vermicelli. Query from the ingredients database that the calorie value per unit weight corresponding to dried noodles is 130cal/100g, the calorie value per unit weight corresponding to glutinous rice is 125cal/100g, and the calorie value per unit weight corresponding to wheat noodles is 120cal/100g; based on dried noodles The corresponding calorie value per unit weight, the calorie value per unit weight corresponding to glutinous rice, and the calorie value per unit weight corresponding to wheat-raising noodles, the replacement ratio between glutinous rice and wheat-raising noodles is 1.04, and the replacement between dry noodles and wheat-raising noodles The ratio is 1.08, and a replacement interface is generated; the replacement interface includes the option of shaking glutinous rice and noodles. Based on the selection of the glutinous rice option on the replacement interface, according to the corresponding replacement ratio of glutinous rice and the weight of wheat-raising noodles, the weight of glutinous rice is 208g. The calculation formula of the replacement ratio is shown in the following formula (1), and the calculation formula of the target ingredient weight is shown in the formula (2). Substitution ratio = Calorie value per unit weight of the target ingredient/Calorie value per unit weight of the first target ingredient formula (1); Target ingredient weight = First target ingredient weight * Replacement ratio formula (2). Query the glutinous rice corresponding to a standard weight of 50 g and a standard volume of 160 mL from the food material database. Based on the weight of glutinous rice, standard weight and standard volume, the volume of glutinous rice is obtained as 520 mL. The calculation formula for the second target food material volume is shown in the following formula (3). Volume of the second target ingredient=(weight of the second target ingredient/standard weight of the second target ingredient)*standard volume of the second target ingredient formula (3). The ingredients database in the embodiment of the present application may also include GI value, GI level first-level recommendation weight, and the like. The establishment of the ingredient database is determined in combination with actual application scenarios. It should be noted that the method in the embodiment of the present application is applicable to the replacement of a single ingredient, and for mixing Substitution of a single ingredient in the ingredients is also possible. A single ingredient includes a single staple food, high-quality protein, vegetables, etc. As shown in FIG. 5 , it is a schematic flow chart of updating a dietary adjustment plan for mixed ingredients in an embodiment of the present application; the method at least includes the following operation flow: Step S301, obtaining a dietary adjustment request indicating that the first target ingredient is replaced with a mixed ingredient ; The dietary adjustment request includes at least the type and name of the mixed ingredients; step S302, based on the type of mixed ingredients, select the ingredient attribute corresponding to the name from the ingredient database; the ingredient attribute at least includes the ratio range of ingredients; Based on the basic data, determine the proportion of nutrients that the user needs to ingest; Step S304, based on the properties of ingredients and the proportion of nutrients, determine the proportion of each ingredient in the mixed ingredients; Step S305, based on the database of ingredients, the ratio, and Enter the calorie value to determine the weight of the mixed ingredients. In S301 to S302, when the name of the mixed ingredient is pork and chive dumplings, the ingredients of the ingredient are, for example, tenderloin and leek. Attributes of ingredient ingredients include the proportion range of tenderloin in dumplings and leeks in dumplings; ingredients attribute also includes information such as protein content and fat content of tenderloin, and corresponding vitamin content of leeks. In S303 to S305, the basic body data includes the user's body composition data and disease data. Body composition data such as height, weight, age, etc.; disease data such as comorbidities and complications. The calorie value to be ingested is obtained by the following methods: acquiring the user's daily metabolic data; determining the user's calorie value to be ingested based on the meal time and the daily metabolic data. Here, the calorie value to be ingested corresponds to the meal time, such as morning, noon or evening. The daily metabolic data refers to the user's average daily metabolic data, which includes the user's diet data, exercise data, and the like. The ingredient database is obtained through the following methods: Obtain the ingredient type, ingredient name and ingredient attribute to establish a mapping relationship; the ingredient attribute includes at least the standard weight, standard volume, unit weight calorie value of the ingredient, and the ingredient attribute of the ingredient; store the mapping relationship in the database , to get the ingredient database. As shown in Figure 6, it is an updated dietary adjustment plan for mixed ingredients in another embodiment of the present application. The flow chart, the method at least includes the following operation process: Step S401, obtain a diet adjustment request for the mixed ingredients; the diet adjustment request includes at least the type and name of the mixed ingredients; Step S402, based on the type, select from the ingredient database corresponding to the name Attributes of food ingredients; The attributes of ingredients include at least the proportion of ingredients; Step S403, based on the basic body data, determine the proportion of nutrients that the user needs to ingest; Step S404, Based on the attributes of ingredients and the proportion of nutrients, determine The proportion relationship of ingredients; Step S405, based on the proportion relationship and the ingredients database, determine the calorie value per unit weight of the mixed ingredients; Step S406, determine the weight of the mixed ingredients based on the calorie value to be ingested and the calorie value per unit weight. Wherein, the specific implementation processes of S401, S402, S403, and S404 are similar to those of S301, S302, S303, and S304, and will not be repeated here. In S405 and S406, the calorie value per unit weight of each food component in the proportional relationship is queried from the food material database, so as to obtain the calorie value per unit weight of the mixed food material. The weight of the mixed food is calculated by using the calorie value to be ingested and the calorie value per unit weight. It should be understood that in various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not be implemented in this application. The implementation of the examples constitutes no limitation. The following describes the embodiments of the present application in detail in combination with specific application scenarios. Obtain the user's request for pork and leek; select the tenderloin component attribute and leek component attribute corresponding to pork and leek dumplings from the ingredient database. Based on the user's basic body data, determine the proportion of nutrients that the user needs to ingest; based on the composition attributes of tenderloin and leeks, as well as the proportion of nutrients, determine the ratio of tenderloin and leeks in pork and leek dumplings. Since the basic body data of different users are different, the proportions of ingredients in the corresponding pork and leek dumplings are also different. The final proportional relationship will be reflected in the dumpling making process. Based on the proportional relationship, from food Query the calorie value per unit weight corresponding to pork and leek dumplings in the material database. Based on the user's basic physical data, determine the calorie value to be ingested by the user in a day; if the meal time is noon, then the calorie value to be ingested corresponding to noon is to divide the calorie value to be ingested in the day into three parts on average, and obtain the calorie value corresponding to noon Calorie value to be ingested. According to the calorie value to be ingested and the calorie value per unit weight, the weight and volume (or number) of pork and leek dumplings recommended for consumption are calculated. For example: the user chooses pork and leek dumplings, and according to the user’s basic body data, it is determined that the calorie intake is 420kcal, and the nutritional content focuses on high-quality protein (through calculation, pork accounts for 50%, leeks account for 45%, other (sesame oil and other ingredients) 5 %), and based on this ratio, it is calculated that every 100g of dumplings contains 189kcal of calories, so the user should eat 196g of dumplings to meet the calorie demand. Users of this application may be ordinary users, or patients with chronic diseases, such as type 2 diabetes patients, or hypertensive patients. In terms of mixing ingredients, the embodiment of the present application can determine the proportion of ingredients in combination with the user's real physical condition, so as to achieve a better nutritional balance. FIG. 7 is a schematic structural diagram of a diet recommendation device provided by an embodiment of the present application. The device includes: a first acquisition module 501, configured to acquire user data, and the user data includes basic data, disease data, and exercise data and at least one item of dietary data; a first determination module 502, configured to determine the user's etiology type and a diet target corresponding to the etiology type according to the user data; a second determination module 503, configured to determine the etiology type according to The user data is used to determine the health risk of the user and the dietary advice corresponding to the health risk; the guidance module 504 is used to generate dietary guidance information for the user according to the dietary goal and the dietary advice; a matching module 505. Based on the user weight corresponding to each ingredient in the ingredients, obtain the first target ingredient that matches the dietary goal and the dietary suggestion, wherein the user weight is updated based on user behavior; the recommendation module 506 is used for Based on the dietary guidance information and the first target ingredient, for the user Generate dietary recommendations. FIG. 8 is a schematic structural diagram of a diet recommendation device provided by another embodiment of the present application, the device further includes: a second acquisition module 507, configured to acquire the user's diet adjustment request, the diet adjustment request Instructing to replace the first target ingredient in the dietary recommendation plan with a second target ingredient, the second target ingredient being a single ingredient or a mixed ingredient; an update module 508, configured to adjust the diet based on the request and the ingredient database , updating the dietary recommendation scheme. The embodiment of the present application also provides a dietary recommendation system, including: a client, a server, and a database; the client is used to receive user data and dietary adjustment requests, and send the user data and dietary adjustment requests to the server; The server is used to implement the diet recommendation method described in this application; the database is used to store a food material database. As shown in FIG. 9, it is an exemplary system architecture diagram to which this embodiment of the present application can be applied. The system architecture 800 may include terminal devices 801, 802, and 803, a network 804, and a server 805. The network 804 is used to provide a communication link medium between the terminal devices 801, 802, 803 and the server 805. Network 804 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others. Users can use terminal devices 801, 802, and 803 to interact with the server 805 through the network 804 to receive or send messages and the like. Various communication client applications can be installed on the terminal devices 801, 802, and 803, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (just examples). Terminal devices 801, 802, and 803 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like. The server 805 may be a server that provides various services, such as a background management server that provides support for click events generated by users using terminal devices 801, 802, and 803 (just an example). The background management server can analyze and process the received click data, text content and other data, and process the Results (eg target push information, product information - just an example) are fed back to the end device. It should be noted that the diet adjustment method provided in the embodiment of the present application is generally executed by the server 805, and correspondingly, the diet adjustment device is generally set in the server 805. It should be understood that the numbers of terminal devices, networks, and servers in FIG. 9 are only illustrative. According to implementation requirements, there may be any number of terminal devices, networks and servers. The embodiment of the present application also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to implement the diet recommendation method described in the present application. The embodiment of the present application also provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; the processor is used for reading the executable instructions from the memory, and The instructions are executed to implement the diet recommendation method described in this application. In addition to the above-mentioned methods and devices, embodiments of the present application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the above-mentioned "exemplary method" in this specification. Steps in methods according to various embodiments of the application described in section. The computer program product can be written in any combination of one or more programming languages for executing the program codes for the operations of the embodiments of the present application, and the programming languages include object-oriented programming languages, such as Java, C++, etc. , including conventional procedural programming languages such as
Figure imgf000029_0001
Executes partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on the remote computing device, or entirely on the remote computing device or server. In addition, the embodiment of the present application may also be a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the processor executes the above-mentioned "Exemplary Method" part of this specification. Steps in methods according to various embodiments of the application described in . The computer readable storage medium may employ any combination of one or more readable media. Can The read medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, advantages, effects, etc. mentioned in this application are only examples rather than limitations, and these advantages, advantages, effects, etc. cannot be considered to be Various embodiments of this application must have. In addition, the specific details disclosed above are only for the purpose of illustration and understanding, rather than limitation, and the above details do not limit the application to be implemented by using the above specific details. The block diagrams of devices, devices, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be recognized by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having" and the like are open-ended words meaning "including but not limited to" and may be used interchangeably therewith. As used herein, the words "or" and "and" refer to the word "and/or" and are used interchangeably therewith, unless the context clearly dictates otherwise. As used herein, the word "such as" refers to the phrase "such as but not limited to" and can be used interchangeably. It should also be pointed out that in the devices, equipment and methods of the present application, each component or each step can be decomposed and/or reassembled. These decompositions and/or recombinations should be considered equivalents of this application. The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein. The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to The embodiments of the application are limited to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and subcombinations thereof.

Claims

权 利 要 求 书 Claims
1、 一种饮食推荐方法, 包括: 获取用户数 据, 所述用户数据包括 基础数据 、 疾病数据、 运动数据以及饮 食数据 中的至少一 项; 根据所述 用户数据, 确定所述用户 的病因类型 以及与所述 病因类型对应 的 饮食 目标; 根据所述 用户数据, 确定所述用户 的健康风险 以及与所述健 康风险对应 的 饮食 建议; 根据所述饮 食目标和所 述饮食建议 为所述用户生 成饮食指导信 息; 基于食材数 据库中各食 材对应的用 户权重, 获取与所述饮食 目标和所述 饮 食建议 相匹配的第 一目标食材 , 其中所述用户权重基于用 户行为更新 ; 基于所述饮 食指导信 息和所述第一 目标食材, 为用户生成饮食 推荐方案 。1. A diet recommendation method, comprising: acquiring user data, the user data including at least one of basic data, disease data, exercise data and diet data; according to the user data, determining the etiology type of the user and a dietary target corresponding to the etiology type; according to the user data, determine the user's health risk and a dietary suggestion corresponding to the health risk; generate a diet for the user according to the dietary target and the dietary suggestion guidance information; based on the user weight corresponding to each ingredient in the ingredient database, obtain a first target ingredient that matches the dietary goal and the dietary suggestion, wherein the user weight is updated based on user behavior; based on the dietary guidance information and The first target ingredient generates a dietary recommendation plan for the user.
2、 根据权利要求 1所述的方法 , 所述根据所述用户数据, 确定所述用户的 病因 类型以及与所 述病因类型对 应的饮食 目标, 包括: 将所述用 户数据输入基 于机器学 习的病因识别模 型或者决 策树模型, 输出 所述 用户的病因类 型; 根据所述 病因类型确定 所述用户的饮 食目标。 2. The method according to claim 1, wherein according to the user data, determining the etiology type of the user and the dietary goal corresponding to the etiology type comprises: inputting the user data into the etiology based on machine learning An identification model or a decision tree model, outputting the etiology type of the user; determining the dietary goal of the user according to the etiology type.
3、 根据权利要求 1所述的方法 , 所述根据所述用户数据, 确定所述用户的 健康风 险以及与所 述健康风险对 应的饮食建议 , 包括: 将所述用 户数据输入 多个基于机器 学习的健康 风险模型或 者决策树模型 , 输 出所述用户是否 具有该健康风 险的结果; 根据所述健 康风险的结 果确定所述用 户的饮食建 议。 3. The method according to claim 1, said determining the health risk of the user and the dietary advice corresponding to the health risk according to the user data, comprising: inputting the user data into a plurality of machine learning-based A health risk model or a decision tree model, outputting a result of whether the user has the health risk; determining a diet suggestion for the user according to the health risk result.
4、根据权利要求 1所述的方法 , 所述根据所述饮食目标和所述 饮食建议为 所述 用户生成饮食 指导信息, 包括: 根据所述运 动数据确定 所述用户的代 谢等级; 根据所述基 础数据、 所述代谢等级和所述饮食 目标确定所述 用户的每 日饮 食摄入 能量; 根据所述每 日饮食摄入 能量和所述饮 食建议生 成饮食指导信 息, 所述饮食 指导信 息至少包括每 日进餐次数 和每餐各营 养成分摄入量 。 4. The method according to claim 1, said generating dietary guidance information for said user according to said dietary goal and said dietary suggestion, comprising: determining the metabolic level of said user according to said exercise data; determining the user's daily dietary energy intake from the basic data, the metabolic level and the dietary target; Dietary guidance information is generated according to the daily dietary energy intake and the dietary suggestion, and the dietary guidance information at least includes the number of meals per day and the intake of each nutrient component per meal.
5、 根据权利要求 1所述的方法, 该方法还包括: 根据所述 用户数据确定 所述用户的饮 食禁忌; 在获取所 述第一目标食 材之前, 根据所述饮食禁 忌对食材进行 过滤。 5. The method according to claim 1, further comprising: determining dietary taboos of the user according to the user data; and filtering ingredients according to the dietary taboos before obtaining the first target food material.
6、 根据权利要求 1所述的方法, 所述用户权重基 于用户行为更新 , 包括: 根据所述 用户的个体行 为和 /或环境分析更新所述用户权 重。 6. The method according to claim 1, wherein the user weight is updated based on user behavior, comprising: updating the user weight according to the user's individual behavior and/or environment analysis.
7、根据权利要求 6所述的方法 , 所述用户的个体行为包括所述 用户对某食 材的替 换操作和搜 索操作, 所述环境分析 包括季节的改 变、 用户地点的改变、 食材价 格的改变。 7. The method according to claim 6, the user's individual behavior includes the user's replacement operation and search operation for a certain food material, and the environmental analysis includes changes in seasons, changes in user locations, and changes in food prices.
8、根据权利要求 7所述的方法 ,根据所述用户的个 体行为更新 所述用户权 重, 包括: 若所述用 户存在对某食 材的替换操 作且所述替换 操作的次数 大于阈值 , 则 降低该 食材对应的 所述用户权重 ; 以及 /或者 若所述用 户存在对某食 材的搜索操 作且选择该食 材作为第 一目标食材 , 则 增加该 食材对应的所 述用户权重 。 8. The method according to claim 7, updating the user weight according to the user's individual behavior, comprising: if the user has a replacement operation on a certain ingredient and the number of times of the replacement operation is greater than a threshold, reducing the weight The user weight corresponding to the ingredient; and/or if the user performs a search operation on a certain ingredient and selects the ingredient as the first target ingredient, increasing the user weight corresponding to the ingredient.
9、根据权利要求 1所述的方法 , 所述基于所述饮食指导信息和 所述第一 目 标食材 , 为用户生成饮食推荐方 案, 包括: 根据所述 第一目标食材 确定所述第一 目标食材对应 的食谱; 根据所述 第一目标食材 的属性数据 、 每餐各营养成分摄入 量及烹饪方式 确 定食谱 中各第一 目标食材的重量 。 9. The method according to claim 1, said generating a dietary recommendation plan for the user based on the dietary guidance information and the first target ingredient, comprising: determining the first target ingredient according to the first target ingredient The corresponding recipe; determine the weight of each first target ingredient in the recipe according to the attribute data of the first target ingredient, the intake of each nutrient in each meal, and the cooking method.
10、 根据权利要求 1所述的方法, 该方法还包括: 获取所述 用户的饮食调 整请求, 所述饮食调整请 求指示将 所述饮食推荐 方 案中 的第一目标食 材替换为第二 目标食材 , 所述第二目标食材为单一 食材或者 混合食 材; 基于所述饮 食调整请求 和所述食材数 据库, 更新所述饮食推荐 方案。 10. The method according to claim 1, further comprising: obtaining the user's diet adjustment request, the diet adjustment request indicating that the first target ingredient in the diet recommendation plan should be replaced by a second target ingredient, The second target ingredient is a single ingredient or a mixed ingredient; based on the diet adjustment request and the ingredient database, the diet recommendation plan is updated.
11、根据权利要求 10所述的方法,在所述 第二目标食 材为单一食材 的情况 下, 所述饮食调整请求至少包括 : 第一目标食材的类型 、 名称和重量; 所述基 于所述 饮食调整请 求和所述食材 数据库, 更新所述饮食推 荐方案, 包括: 基于食材数 据库, 确定与所述第一 目标食材类型 相同的第二 目标食材以 及 对应 的替换比; 根据所述 替换比和所述 第一目标食 材的重量 , 确定所述第二目标食材的 重 量。 11. The method according to claim 10, when the second target ingredient is a single ingredient Herein, the dietary adjustment request at least includes: the type, name and weight of the first target ingredient; the updating of the dietary recommendation plan based on the dietary adjustment request and the ingredient database includes: based on the ingredient database, determining the same A second target ingredient of the same type as the first target ingredient and a corresponding replacement ratio; according to the replacement ratio and the weight of the first target ingredient, determine the weight of the second target ingredient.
12、 根据权利要求 10所述的方法, 在所述目标食材为 混合食材的情 况下, 所述饮 食调整请求 至少包括: 所述混合食材的类型和名 称; 所述基于所述饮食 调整请 求和所述食材 数据库, 更新所述饮食推荐方案, 包括: 基于所述 混合食材的类 型, 从食材数据库中选取 与所述名称 对应的食材 成 分属性 ; 所述食材成分属性至 少包括食材成 分比例范围 ; 基于身体基 础数据, 确定用户需要摄 取的营养成 分占比; 基于所述食 材成分属性 和所述营养 成分占比 , 确定所述混合食材中各食 材 成分 的比例关系; 基于所述食 材数据库 、 所述比例关系, 以及待摄入热量值 , 确定所述混合 食材 的重量。 12. The method according to claim 10, when the target ingredient is a mixed ingredient, the dietary adjustment request at least includes: the type and name of the mixed ingredient; The above-mentioned ingredient database, and updating the recommended diet plan includes: based on the type of the mixed ingredient, selecting an ingredient attribute corresponding to the name from the ingredient database; the ingredient attribute at least includes an ingredient ratio range; based on the body Based on the basic data, determine the proportion of nutritional components that the user needs to ingest; Based on the ingredients of the ingredients and the proportion of the nutritional components, determine the proportional relationship of each ingredient in the mixed ingredients; Based on the ingredient database, the proportional relationship , and the calorie value to be ingested, to determine the weight of the mixed food.
13、根据权利要求 11所述的方法,在所述 确定所述第二 目标食材 的重量之 后, 还包括: 基于所述食 材数据库 ,确定所述第二目标食材 对应的标准 重量和标准体 积; 基于所述 第二目标食材 的重量、 标准重量和标 准体积, 确定所述第二 目标 食材 的体积。 13. The method according to claim 11, after determining the weight of the second target ingredient, further comprising: based on the ingredient database, determining a standard weight and a standard volume corresponding to the second target ingredient; The weight, standard weight, and standard volume of the second target ingredient determine the volume of the second target ingredient.
14、根据权利要 求 11所述的方法 , 所述基于食材数据库, 确定与所述第一 目标食 材类型相 同的第二目标食 材以及对应 的替换比, 包括: 从所述食 材数据库中选 取所述第一 目标食材类型 相同的第二 目标食材; 从所述食 材数据库中 查询与所述第 一目标食材 对应的第一单 位重量热量 值, 以及 与所述第二 目标食材对应 的第二单位重 量热量值; 基于所述 第一单位重量 热量值与所 述第二单位 重量热量值 , 确定所述第二 目标食 材与所述第 一目标食材之 间的替换比 。 14. The method according to claim 11, said determining a second target ingredient of the same type as the first target ingredient and a corresponding replacement ratio based on the ingredient database, comprising: selecting the second target ingredient from the ingredient database A second target ingredient of the same type as the target ingredient; querying the ingredient database for a first calorie value per unit weight corresponding to the first target ingredient, and a second calorie value per unit weight corresponding to the second target ingredient ; Based on the first calorie value per unit weight and the second calorie value per unit weight, determine the second A replacement ratio between the target ingredient and the first target ingredient.
15、 根据权利要求 12所述的方法 , 所述饮食调整请求还包括用餐 时间; 所 述待摄 入热量值通 过如下方法获 得: 获取用户 的日代谢数据 ; 基于所述 用餐时间和所 述日代谢数据 , 确定用户的待摄入热量 值。 15. The method according to claim 12, wherein the diet adjustment request further includes a meal time; the value of the calories to be ingested is obtained by the following method: obtaining the user's daily metabolism data; based on the meal time and the daily metabolism data to determine the calorie value to be ingested by the user.
16、 根据权利要求 12所述的方法 , 所述基于所述食材数据库、 所述比例关 系, 以及待摄入热量值, 确定所述混合食材 的重量, 包括: 基于所述 比例关系和 所述食材数据 库, 确定所述混合食材 的单位重量热 量 值; 基于所述待 摄入热量值 以及所述单 位重量热量值 , 确定所述混合食材的 重 量。 16. The method according to claim 12, the determining the weight of the mixed food based on the food material database, the proportional relationship, and the calorie value to be ingested, comprising: based on the proportional relationship and the food material a database, determining the calorie value per unit weight of the mixed food; and determining the weight of the mixed food based on the calorie value to be ingested and the calorie value per unit weight.
18、 一种饮食推荐装置, 包括: 第一获取模 块, 用于获取用户数据 , 所述用户数据包括基础 数据、 疾病数 据、 运动数据以及饮 食数据中 的至少一项; 第一确定模 块, 用于根据所述用户数 据, 确定所述用户的病 因类型以及 与 所述 病因类型对应 的饮食目标 ; 第二确定模 块, 用于根据所述用户数 据, 确定所述用户的健康 风险以及 与 所述健 康风险对应 的饮食建议 ; 指导模块 , 用于根据所述饮食目标和 所述饮食建议 为所述用户 生成饮食指 导信 息; 匹配模块 , 用于基于食材数据库 中各食材对应 的用户权重 , 获取与所述饮 食 目标和所述饮食 建议相匹配 的第一目标食 材, 其中所述用户权重基 于用户行 为更新 ; 推荐模 块, 用于基于所述饮食指 导信息和所 述目标食材 , 为用户生成饮食推荐 方案 。 18. A diet recommendation device, comprising: a first acquisition module, configured to acquire user data, the user data including at least one of basic data, disease data, exercise data, and diet data; a first determination module, configured to According to the user data, determine the type of etiology of the user and the dietary goal corresponding to the type of etiology; a second determining module, configured to determine the health risk of the user and the health risk related to the user according to the user data Corresponding dietary advice; a guidance module, configured to generate dietary guidance information for the user according to the dietary goal and the dietary advice; a matching module, configured to obtain the diet information based on the user weight corresponding to each ingredient in the ingredient database. A first target ingredient that matches the target and the dietary suggestion, wherein the user weight is updated based on user behavior; a recommendation module, configured to generate a dietary recommendation plan for the user based on the dietary guidance information and the target ingredient.
19、 根据权利要求 18所述的装置, 还包括: 第二获取 模块, 用于获取所述用户 的饮食调整请 求, 所述饮食调整请求 指示对 所述饮食推 荐方案中的第 一目标食材 替换为第二 目标食材, 所述第二目 标食材 为单一食材或 者混合食材 ; 更新模块 ,用于基于所述饮 食调整请求 和所述食材数 据库, 更新所述饮食推 荐方案 。 20、 一种饮食推荐系统, 包括: 客户端、 服务器和数据库; 所述客户 端用于接收用 户数据和饮 食调整请求 ,并将所述用户数据和饮 食调 整请求 发送至服务 器; 所述服务 器用于执行权 利要求 1-17任一项所述的方法; 所述数据 库用于存储食 材数据库 。 21、一种计算机 可读存储介质 , 所述存储介质存储有计算 机程序, 所述计算 机程序用 于执行上述权 利要求 1-17任一项所述的饮食推荐方 法。 19. The device according to claim 18, further comprising: a second acquiring module, configured to acquire the dietary adjustment request of the user, the dietary adjustment request Instructing to replace the first target ingredient in the dietary recommendation plan with a second target ingredient, the second target ingredient being a single ingredient or a mixed ingredient; an update module, configured to, based on the dietary adjustment request and the ingredient database, The dietary recommendations are updated. 20. A diet recommendation system, comprising: a client, a server, and a database; the client is used to receive user data and diet adjustment requests, and send the user data and diet adjustment requests to a server; the server is used to Executing the method described in any one of claims 1-17; the database is used to store a food material database. 21. A computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to execute the diet recommendation method according to any one of claims 1-17.
22、 一种电子设备, 包括: 处理器; 用于存储 所述处理器可 执行指令的 存储器; 所述处理 器,用于从所述存 储器中读取 所述可执行指 令,并执行所述 指令以 实现上 述权利要求 1-17任一项所述的饮食推荐 方法。 22. An electronic device, comprising: a processor; a memory for storing instructions executable by the processor; the processor is used for reading the executable instructions from the memory and executing the instructions To realize the diet recommendation method described in any one of the above claims 1-17.
PCT/IB2021/062063 2021-12-17 2021-12-21 Dietary recommendation method, apparatus and system, and storage medium, and electronic device WO2023111668A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202111545167.2 2021-12-17
CN202111545165.3 2021-12-17
CN202111545167.2A CN113936774A (en) 2021-12-17 2021-12-17 Diet recommendation method, device, system, storage medium and electronic equipment
CN202111545165.3A CN113936773A (en) 2021-12-17 2021-12-17 Diet adjustment method, device and system and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2023111668A1 true WO2023111668A1 (en) 2023-06-22

Family

ID=86773715

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2021/062063 WO2023111668A1 (en) 2021-12-17 2021-12-21 Dietary recommendation method, apparatus and system, and storage medium, and electronic device

Country Status (1)

Country Link
WO (1) WO2023111668A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116825286A (en) * 2023-08-31 2023-09-29 北京四海汇智科技有限公司 Food ingredient identification and nutrition recommendation system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170116879A1 (en) * 2013-10-02 2017-04-27 Access Business Group International Llc Diet adherence system
CN110097946A (en) * 2019-03-01 2019-08-06 西安电子科技大学 A kind of dietary recommendations continued method based on Analysis of Nutritive Composition
CN110782971A (en) * 2019-10-09 2020-02-11 南京麦澜德医疗科技有限公司 Diet recommendation method and system
CN111081347A (en) * 2019-10-31 2020-04-28 北京邮电大学 Recipe recommendation method for chronic disease patients
CN113051391A (en) * 2021-03-29 2021-06-29 深圳软通动力信息技术有限公司 Personalized diet recommendation method based on food nutrition and health knowledge base

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170116879A1 (en) * 2013-10-02 2017-04-27 Access Business Group International Llc Diet adherence system
CN110097946A (en) * 2019-03-01 2019-08-06 西安电子科技大学 A kind of dietary recommendations continued method based on Analysis of Nutritive Composition
CN110782971A (en) * 2019-10-09 2020-02-11 南京麦澜德医疗科技有限公司 Diet recommendation method and system
CN111081347A (en) * 2019-10-31 2020-04-28 北京邮电大学 Recipe recommendation method for chronic disease patients
CN113051391A (en) * 2021-03-29 2021-06-29 深圳软通动力信息技术有限公司 Personalized diet recommendation method based on food nutrition and health knowledge base

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116825286A (en) * 2023-08-31 2023-09-29 北京四海汇智科技有限公司 Food ingredient identification and nutrition recommendation system
CN116825286B (en) * 2023-08-31 2023-11-14 北京四海汇智科技有限公司 Food ingredient identification and nutrition recommendation system

Similar Documents

Publication Publication Date Title
US11672446B2 (en) Insulin delivery recommendations based on nutritional information
US11244752B2 (en) System and method for implementing meal selection based on vitals, genotype and phenotype
US20200066181A1 (en) Generating Personalized Food Recommendations from Different Food Sources
Eli‐Cophie et al. Glycemic index of some local staples in Ghana
US20140052722A1 (en) Optimization-based regimen method and system for personalized diabetes and diet management
JP2015194807A (en) Nutrition management system and nutrition management program
CN112951430A (en) Multiple chronic disease joint management apparatus and computer-readable storage medium
CN113936774A (en) Diet recommendation method, device, system, storage medium and electronic equipment
Kouamé et al. Glycaemic index and load values tested in normoglycemic adults for five staple foodstuffs: pounded yam, pounded cassava-plantain, placali, attieke and maize meal stiff porridge
JP5853348B2 (en) Lifestyle analysis system and lifestyle analysis method
KR101777747B1 (en) Method for individualized recommanding food for glycosuria patient
WO2023111668A1 (en) Dietary recommendation method, apparatus and system, and storage medium, and electronic device
Sujarwanta et al. Rice bran makes a healthy and tasty traditional Indonesian goat meatball,‘bakso’
Tan et al. New metrics of dietary carbohydrate quality
CN112528008A (en) Diabetic catering method and device based on knowledge graph
WO2020187047A1 (en) Questionnaire information pushing method and device, storage medium, and electronic device
Brachem et al. Exploring the association between habitual food intake and the urine and blood metabolome in adolescents and young adults: a cohort study
KR20170080867A (en) Method for individualized recommanding food for glycosuria patient
Hu et al. Multidimensional relationships of starch digestibility with physicochemical, pasting and textural properties of 30 rice varieties
CN113936773A (en) Diet adjustment method, device and system and computer readable storage medium
Lee-Sarwar et al. Diversifying your diet portfolio: potential impacts of dietary diversity on the gut microbiome and human health
CN112967807A (en) System, device and storage medium for predicting cerebral apoplexy based on eating behavior
Summer et al. Evaluating a dietary pattern in adolescents with type 1 diabetes mellitus: The dash-d approach
CN111292829A (en) Method, device, equipment and medium for dietary health management/food nutrition
TWI640953B (en) Cloud recommendation method, computer program product and system for nutrient dosage

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: 21967986

Country of ref document: EP

Kind code of ref document: A1