Dietary recommendation method, device, computer equipment and storage medium

By obtaining user information and ingredient information, calculating recommended amounts of nutrients and generating meal packages, it solves the problems of inaccurate nutritional assessment and difficult dietary management in the existing technology, and improves the effectiveness of nutritional assessment and dietary management for patients with chronic diseases.

CN112148969BInactive Publication Date: 2024-09-03毛端中
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010858949.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-24
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology is not very accurate in nutritional assessment of patients with chronic diseases, making it difficult to improve the effectiveness of chronic disease management and control. It is also difficult for patients to implement scientific dietary recommendations, leading to problems with improper intake of food ingredients.

Method used

By obtaining the user's body information and alternative food material information, the recommended intake of nutrients is calculated, and the food material ratio is determined based on this information, a specific meal recommendation package is generated, and directly executable recipes are provided to improve the accuracy of nutritional assessment and the prevention of chronic diseases. Control effect.

Benefits of technology

It improves the accuracy of nutrition assessment and the effect of dietary management for patients with chronic diseases, allowing users to more conveniently adjust their diet, ensure the intake of required nutrients at each meal, and enhance the effect of chronic disease control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112148969B
    Figure CN112148969B
Patent Text Reader

Abstract

The present application specifically relates to a dietary recommendation method, device, computer equipment and storage medium. The method comprises: obtaining the user's physical information and alternative food information including at least one alternative food, obtaining the recommended nutrient intake information according to the user's physical information, and determining the food ratio information according to the recommended nutrient intake information and the alternative food information, and finally generating at least one dietary recommendation set meal according to the food ratio information. The embodiments of the present invention can improve the accuracy of nutritional assessment and improve the effect of chronic disease management and control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart medical technology, and in particular to a dietary recommendation method, apparatus, computer device and storage medium. Background Art

[0002] In recent years, the number of patients with chronic diseases in China has continued to increase. Among them, most non-communicable chronic diseases are closely related to diet and lifestyle. However, most chronic disease patients currently do not have scientific nutrition knowledge, and it is difficult for them to obtain guidance from professional clinical nutritionists and precise nutrition plans, which is extremely unfavorable for the recovery of chronic disease patients.

[0003] At present, some existing technologies can automatically conduct nutritional assessments for patients based on their physical information (such as height, weight, age, medical information, etc.), and provide patients with nutritional assessment results and dietary recommendations (such as which ingredients to eat and / or not eat), so that patients can adjust their dietary lifestyle based on the nutritional assessment results and dietary recommendations. However, the nutritional assessment results of existing technologies currently only contain a small amount of nutrients, and the accuracy of the assessment is not high enough. In addition, even if the patient knows the dietary recommendations, the user still needs to think about how to choose the ingredients and weight of each meal according to the dietary recommendations, which is too difficult for the user to implement. It is difficult for the user to strictly control each meal, which may lead to excessive or insufficient intake of certain ingredients, which will make it difficult to improve the effect of chronic disease management. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a dietary recommendation method, apparatus, computer equipment and storage medium. The embodiments of the present invention can improve the accuracy of nutritional assessment and improve the effect of chronic disease management.

[0005] The present invention provides a dietary recommendation method according to a first aspect. In one embodiment, the method comprises:

[0006] Acquire the user's physical information and alternative food information, where the physical information includes physical sign information and physical condition information, and the alternative food information includes at least one alternative food;

[0007] Obtaining recommended nutrient intake information according to the user's physical information, where the recommended nutrient intake information includes at least one nutrient and a recommended intake corresponding to each nutrient;

[0008] Determine the ingredient ratio information based on the recommended nutrient intake information and the alternative ingredient information;

[0009] At least one recommended meal set is generated according to the ingredient ratio information, and each recommended meal set includes at least one recipe.

[0010] In one embodiment, the step of obtaining the recommended nutrient intake information according to the user's physical information includes:

[0011] Determine the initial recommended nutrient intake information based on the user's physical sign information;

[0012] The initial nutrient recommended intake information is updated according to the physical condition information to obtain the nutrient recommended intake information.

[0013] In one embodiment, the step of updating the initial recommended nutrient intake information according to the physical condition information to obtain the recommended nutrient intake information includes:

[0014] querying a disease knowledge database according to the physical condition information, and determining nutrient intake adjustment information based on the query results;

[0015] The initial nutrient recommended intake information is updated according to the nutrient intake adjustment information to obtain the nutrient recommended intake information.

[0016] In one embodiment, the initial nutrient recommended intake information includes multiple nutrients and the recommended intake corresponding to each nutrient;

[0017] The step of updating the initial recommended nutrient intake information according to the nutrient intake adjustment information to obtain the recommended nutrient intake information includes:

[0018] Determining, according to the nutrient intake adjustment information, nutrients to be updated among the multiple nutrients included in the initial nutrient recommended intake information and their corresponding intake adjustment information, wherein the multiple nutrients include at least one nutrient to be updated, and the nutrient to be updated is a nutrient whose corresponding recommended intake needs to be updated;

[0019] The recommended intake amounts corresponding to the nutrients to be updated are updated according to the intake adjustment information corresponding to the nutrients to be updated, so as to obtain the recommended nutrient intake information.

[0020] In one embodiment, the nutrient recommended intake information includes at least one nutrient and the recommended intake corresponding to each nutrient;

[0021] The steps of determining the ingredient ratio information according to the recommended nutrient intake information and the alternative ingredient information include:

[0022] Obtain the nutritional information corresponding to each alternative ingredient in the alternative ingredient information;

[0023] Establishing a first model based on the nutritional information corresponding to each candidate food and the recommended intake corresponding to each nutrient;

[0024] The first algorithm is used to solve the first model to obtain the food ratio information.

[0025] In one embodiment, the step of generating at least one recommended meal set according to the ingredient ratio information includes:

[0026] Get the user's alternative recipe information;

[0027] Establishing a second model based on the alternative recipe information and the ingredient ratio information;

[0028] The second model is solved using a second algorithm, and at least one recommended meal set meal is generated according to the solution result.

[0029] In one embodiment, the dietary recommendation method further comprises:

[0030] Displaying the generated at least one recommended meal set to the user;

[0031] After receiving an order instruction from the user, determining a target meal recommendation set corresponding to the order instruction in the at least one meal recommendation set;

[0032] Prepare meals for users based on target dietary recommendations.

[0033] According to a second aspect, the present invention provides a dietary recommendation device. In one embodiment, the device comprises:

[0034] A user information acquisition module, used to acquire the user's physical information and alternative food information, the physical information includes physical sign information and physical condition information, and the alternative food information includes at least one alternative food;

[0035] A nutrient intake obtaining module, used to obtain recommended nutrient intake information according to the user's physical information, where the recommended nutrient intake information includes at least one nutrient and the recommended intake corresponding to each nutrient;

[0036] An ingredient ratio determination module is used to determine ingredient ratio information based on recommended nutrient intake information and candidate ingredient information;

[0037] The meal set generation module is used to generate at least one meal recommendation set according to the food ingredient ratio information, and each meal recommendation set includes at least one recipe.

[0038] According to a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above method embodiments when executing the computer program.

[0039] According to a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above method embodiments are implemented.

[0040] In an embodiment of the present invention, after obtaining the user's physical information and alternative ingredient information including at least one alternative ingredient, the recommended nutrient intake information is obtained according to the user's physical information, and the ingredient ratio information is determined according to the recommended nutrient intake information and the alternative ingredient information, and finally at least one recommended meal package is generated according to the ingredient ratio information, which can improve the accuracy of nutritional assessment; and because the method can directly provide users with recommended meal packages, the recommended meal packages consist of at least one recipe, and each recipe is composed of alternative ingredients. Compared with previous dietary advice, users can directly select corresponding recommended meal packages for their meals, and can more conveniently adjust their own eating habits, thereby improving the effect of chronic disease management. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a process of a dietary recommendation method in one embodiment;

[0042] Figure 2 A schematic diagram of a process of obtaining recommended nutrient intake information according to a user's physical information in one embodiment;

[0043] Figure 3 A schematic diagram of a dietary recommendation method in another embodiment;

[0044] Figure 4 A schematic diagram of food ratio information in one embodiment;

[0045] Figure 5 is a structural block diagram of a meal recommendation device in one embodiment;

[0046] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] An embodiment of the present invention provides a dietary recommendation method, which can be implemented by a server (or server cluster) alone, or by a system consisting of a server and an intelligent terminal (such as a smart phone, a laptop, a tablet computer and / or a wearable device, etc.). The following describes the method by taking the method applied to the above system as an example. Figure 1 As shown, the method comprises the following steps:

[0049] S110: Obtaining the user's physical information and food selection information.

[0050] In this embodiment, the user's physical information includes physical sign information and physical condition information.

[0051] Among them, the physical sign information includes at least one of gender, age, height, weight, labor intensity (such as high, medium, low labor intensity, etc.) and meal times (such as breakfast, lunch, dinner, afternoon tea, supper, etc.); further, if the user's gender is female, the physical sign information also includes pregnancy information, and the pregnancy information includes pregnancy status information used to characterize whether the user is a nursing mother, a pregnant woman, or a non-pregnant woman. Further, if the user is a pregnant woman, the pregnancy information also includes pregnancy information (such as pregnancy days and / or pregnancy stage, etc.). The physical condition information includes health status information used to characterize the user as healthy or sick; further, if the user's health status is "sick", the physical condition information also includes disease type information (such as nutritional deficiency diseases) and disease description information (such as protein-malnutrition). The alternative ingredient information includes at least one alternative ingredient for making a recommended meal set, such as eggs, eggplants, potatoes, etc.

[0052] The method of obtaining the user's physical information and alternative food information can be adjusted according to the specific application scenario of this solution. For example, in one scenario, the user actively enters the physical information and alternative food information when ordering food, and the system automatically generates a meal recommendation package based on the physical information and alternative food information entered by the user and recommends it to the user. At this time, the user's physical information and alternative food information can be obtained through the graphical interface for collecting user input information provided by the ordering App on the smart terminal (of course, it can also be a small program, web page, etc.).

[0053] Possibly, some diseases may require users to avoid certain foods. In order to avoid the user from consuming the foods that need to be avoided, the user can only input the physical information, and the system will automatically determine the alternative food information corresponding to the physical information based on the user's physical information. Furthermore, in order to make the final generated meal recommendation package more suitable for the user's appetite, after the system automatically determines a plurality of ingredients suitable for the user corresponding to the physical information based on the user's physical information, the system prompts the user to select several ingredients from the plurality of ingredients, and uses the ingredients selected by the user as alternative ingredients.

[0054] In another possible scenario, the user's physical information and alternative food information are pre-stored locally (of course, it can also be stored elsewhere, such as a remote database server), and a scheduled task is pre-set to implement the present method. Whenever the scheduled task is triggered, the system automatically obtains the user's physical information and alternative food information from the local location, and executes operations corresponding to other steps of the present method. Of course, the meal information can be adjusted according to the system time, and the specific adjustment method can be set according to the specific scenario. For example, when the system time reaches 12:00, the meal information is adjusted to lunch, and when the system time reaches 18:00, the meal information is adjusted to dinner.

[0055] S120: Obtaining recommended nutrient intake information based on the user's physical information.

[0056] In this embodiment, the system determines the recommended nutrient intake information based on the obtained physical information of the user.

[0057] In one embodiment, if Figure 2 As shown, S120: the step of obtaining the recommended nutrient intake information according to the user's physical information includes:

[0058] S121: Determine the initial recommended nutrient intake information based on the user's physical sign information.

[0059] S122: Update the initial recommended nutrient intake information according to the physical condition information to obtain the recommended nutrient intake information.

[0060] In this embodiment, a nutrient database and a disease knowledge database are constructed in advance.

[0061] Specifically, when constructing a nutrient database, the dietary nutrient intake standards can be screened out based on the professional nutrition guidelines published by major institutions such as the Chinese Nutrition Society, the European Society for Enteral and Parenteral Nutrition, and the American Nutrition Society, which are: macronutrients, fat-soluble vitamins, water-soluble vitamins, macronutrients, and trace elements. After tabular processing, the corresponding nutrients are organized into corresponding database files based on indicators such as different genders, ages, and physical activity levels. The disease knowledge database is used to conduct medical-level nutritional assessments of patients. When constructing a disease knowledge database, the dietary guidance that chronic patients need to pay attention to can be retrieved from the professional nutrition guidelines published by the Chinese Nutrition Society, the American Nutrition Association, and the European Society for Enteral and Parenteral Nutrition. Nutrition papers with evidence-based medicine level one to level two evidence can be screened on the SinoMed database (China Biomedical Literature Service System), Pubmad database (a database that provides biomedical paper searches and abstracts, and free searches), and Embase (Excerpt Medica Database), and the opinions of relevant clinicians are integrated to unify the above content to form a disease knowledge database.

[0062] After obtaining the user's physical information, the system queries the nutrient database based on the physical sign information in the physical information, thereby obtaining the initial nutrient recommended intake information corresponding to the physical sign information, wherein the initial nutrient recommended intake information includes multiple nutrients and the recommended intakes corresponding to various nutrients.

[0063] After obtaining the initial recommended nutrient intake information, the initial recommended nutrient intake information is updated according to the physical condition information to obtain the recommended nutrient intake information. Specifically, this step includes:

[0064] querying a disease knowledge database according to the physical condition information, and determining nutrient intake adjustment information based on the query results;

[0065] The initial nutrient recommended intake information is updated according to the nutrient intake adjustment information to obtain the nutrient recommended intake information.

[0066] Specifically, the system queries the disease knowledge database based on the physical condition information, determines the nutrient intake adjustment information based on the query results, and updates the previously obtained initial nutrient recommended intake information based on the nutrient intake adjustment information, thereby obtaining accurate nutrition assessment results. For example, diabetes requires less carbohydrate intake. If the user has diabetes, then the recommended intake corresponding to the carbohydrate-related nutrients in the initial nutrient recommended intake information needs to be adjusted.

[0067] Further, in one embodiment, the step of updating the initial recommended nutrient intake information according to the nutrient intake adjustment information to obtain the recommended nutrient intake information includes:

[0068] Determining nutrients to be updated among the multiple nutrients included in the initial nutrient recommended intake information and their corresponding intake adjustment information according to the nutrient intake adjustment information, wherein the multiple nutrients include at least one nutrient to be updated;

[0069] The recommended intake amounts corresponding to the nutrients to be updated are updated according to the intake adjustment information corresponding to the nutrients to be updated, so as to obtain the recommended nutrient intake information.

[0070] The nutrients to be updated refer to the nutrients whose corresponding recommended intakes need to be updated among the multiple nutrients included in the initial nutrient recommended intake information.

[0071] Specifically, the nutrient intake adjustment information is used to determine which of the multiple nutrients included in the initial nutrient recommended intake information are the nutrients to be updated, as well as the intake adjustment information corresponding to the various nutrients to be updated. The intake adjustment information corresponding to the nutrients to be updated can be the recommended intake of the nutrients to be updated after the update. For example, the initial nutrient recommended intake information includes nutrient A-recommended intake of 2 grams, nutrient B-recommended intake of 4 grams, and nutrient C-recommended intake of 6 grams, and the nutrient intake adjustment information includes nutrient A-intake adjustment information 1g, nutrient B-intake adjustment information 2g, then it can be determined that the nutrients to be updated are nutrients A and nutrient B, the recommended intake of nutrient A after adjustment is 1g, and the recommended intake of nutrient B after adjustment is 2g. The nutrient A-recommended intake of 1 gram, nutrient B-recommended intake of 2 grams, and nutrient C-recommended intake of 6 grams obtained after adjustment are the nutrient recommended intake information.

[0072] S130: Determine ingredient ratio information according to the recommended nutrient intake information and the candidate ingredient information.

[0073] The ingredient ratio information refers to the various alternative ingredients and their corresponding weights.

[0074] S140: Generate at least one recommended meal set according to the food ratio information.

[0075] Each recommended meal set includes at least one recipe. For example, a generated recommended meal set includes mung bean and rice porridge, eggs, sugar biscuits and mixed kelp shreds.

[0076] In this embodiment, after obtaining the user's physical information and alternative ingredient information, the system obtains recommended nutrient intake information based on the user's physical information, and determines ingredient ratio information based on the recommended nutrient intake information and the alternative ingredient information, and finally generates at least one recommended meal package based on the ingredient ratio information, thereby improving the accuracy of nutritional assessment; and because the present method can directly provide users with recommended meal packages, the recommended meal packages consist of at least one recipe, and each recipe consists of alternative ingredients. Compared with previous dietary advice, users can directly select corresponding recommended meal packages for their meals, and can more conveniently adjust their own eating habits, thereby improving the effect of chronic disease management.

[0077] Further, in one embodiment, if Figure 3 As shown, the dietary recommendation method also includes:

[0078] S150: Displaying the generated at least one recommended meal set to the user.

[0079] S160: After receiving an order instruction from the user, determining a target meal recommendation set corresponding to the order instruction in the at least one meal recommendation set.

[0080] S170: Prepare meals for the user based on the target meal recommendation package.

[0081] In this embodiment, at least one generated meal recommendation package is displayed to the user, and the user can select all or part of the meal recommendation packages from the at least one meal recommendation package as the target meal recommendation package, and send an order instruction to the system. After receiving the order instruction, the system will determine the target meal recommendation package corresponding to the order instruction from the at least one meal recommendation package, and prepare meals for the user. Compared with the previous method of only providing dietary advice to users, this embodiment can directly deliver corresponding meal recommendation packages to users based on the user's physical information, eliminating the tediousness of users selecting ingredients according to dietary advice and preparing meals according to the ingredients. This allows users to successfully take in the various nutrients they need for each meal, which is beneficial for users to adjust their own eating habits, thereby improving the effect of chronic disease management.

[0082] This method can be applied to the takeaway meal delivery scenario. For example, in one embodiment, the user can fill in the physical information on the ordering app provided by the merchant (or the ordering app provided by the takeaway platform). After receiving the physical information submitted by the user, the system displays to the user a variety of ingredients suitable for the user corresponding to the identity information, and the user selects several ingredients as alternative ingredients. The system then generates a variety of meal recommendation packages for the user to choose based on the user's physical information and alternative ingredient information, and then determines the target meal recommendation package corresponding to the order instruction from the multiple meal recommendation packages in response to the order instruction issued by the user, and then generates meal order information based on the relevant information of the target meal recommendation package (such as the recipe information included in the package) and sends it to the merchant terminal (such as a computing device such as a mobile phone / computer equipped with client software that interacts with the system). The merchant can obtain the meal order information ordered by the user through the merchant terminal, and prepare the meal corresponding to the meal order information, and deliver the prepared meal to the user.

[0083] In one embodiment, the step of determining the ingredient ratio information according to the recommended nutrient intake information and the candidate ingredient information includes:

[0084] Obtain the nutritional information corresponding to each alternative ingredient in the alternative ingredient information;

[0085] Establishing a first model based on the nutritional information corresponding to each candidate food and the recommended intake corresponding to each nutrient;

[0086] The first algorithm is used to solve the first model to obtain the food ratio information.

[0087] In this embodiment, it is assumed that the optional food information includes m (m is a positive integer greater than 0) kinds of alternative food, and the recommended nutrient intake information includes n (n is a positive integer greater than 0) kinds of nutrients. The system first queries the nutritional component information corresponding to each alternative food from the food database, and then establishes a first data model based on the above information. Among them, the food database is a pre-constructed database, which imports the names (or codes) of multiple (for example, thousands of) food ingredients and their corresponding nutritional components.

[0088] Specifically, let x m represents the quantity corresponding to the mth alternative ingredient; let A ij represents the content of the jth nutrient in the i-th candidate food, where i = 1, 2, 3, ..., m, j = 1, 2, 3, ..., n; let y n Indicates the recommended intake corresponding to the nth nutrient.

[0089] In order to minimize the relative error between each nutrient and the recommended intake, the optimization goal is:

[0090]

[0091] At the same time, it is hoped that the relative error of each nutrient does not exceed the preset threshold d (for example, 15%), 0≤d≤1, so a constraint condition is added: 1-d≤D j ≤1+d.

[0092] Finally, the multi-objective optimization problem is transformed into a single objective. Here, simple addition is used to obtain the final optimization problem (as shown in Equation 2 below), and a genetic algorithm is used to solve the single-objective optimization problem to obtain the food ratio information, such as Figure 4 The ingredient ratio information shown.

[0093]

[0094]

[0095] In one embodiment, the step of generating at least one recommended meal set according to the ingredient ratio information includes:

[0096] Get the user's alternative recipe information;

[0097] Establishing a second model based on the alternative recipe information and the ingredient ratio information;

[0098] The second model is solved using a second algorithm, and at least one recommended meal set meal is generated according to the solution result.

[0099] In this embodiment, after obtaining the ingredient ratio information, the system obtains the user's alternative recipe information, then establishes a second model based on the alternative recipe information and the ingredient ratio information, and uses the optimized genetic algorithm to process the second model to obtain at least one meal recommendation set. The user's alternative recipe information can be at least one alternative recipe automatically generated by the system based on the alternative ingredient information, or it can be multiple recipes automatically generated by the system and then displayed to the user, from which the user selects at least one recipe as an alternative recipe.

[0100] Specifically, suppose there are n candidate recipes, and the n candidate recipes are marked as R1, R2, …, R n , let x n Denotes the weight required for each of the nth alternative recipes. Let R n The content of the i-th ingredient in each unit dish in the alternative recipe is k 1i ,k 2i ,…,k ni , then the ingredients contained in the dish and the recommended ingredients satisfy the following multivariate linear equation:

[0101] k 1i x1+k 2ix2+…+k ni x n =B i (Formula 3)

[0102] Among them, B i In order to achieve diversified solution output, the weight of the alternative ingredients can be given a range of fluctuations. For example, if the fluctuation range is set to 15%, we can get B imin =0.85B i and B imax =1.15B i .

[0103] So we get the following formula:

[0104]

[0105] in, It is the sum of the weights of the i-th ingredient in the alternative recipes selected during meal preparation. i is the difference between the two. In an ideal state, Z i =0, the following linear programming equation can be listed:

[0106]

[0107]

[0108] Furthermore, considering the problem of reasonable selection of various ingredients, the fitness function can be preliminarily designed as:

[0109] f(x)=Z1+Z2+…+Z n (Formula 6)

[0110] Among them, Z1+Z2+…+Z n are the errors between the weights of different ingredients in the recommended meal set and the weights of their corresponding alternative ingredients. Using the fitness function shown in (Formula 5), ​​the minimum value of f(x) can be found, and all values ​​of x under the current fitness can be obtained.

[0111] Furthermore, in the scenario of providing dietary recommendation packages for patients with chronic diseases, the error of the result obtained by directly running the fitness function will be relatively large. For this reason, the adjustment parameters shown in (Formula 7) can be set for the fitness function f(x) to reduce the error of the result obtained by running the fitness function.

[0112] f(x)=a1Z1+a2Z2+…+a n Z n (Formula 7)

[0113] The selection parameter a in (Formula 6)i The value of can be:

[0114] Among them, B max is the maximum weight of the alternative ingredients, B i Enter the weight of the corresponding ingredient.

[0115] In one embodiment, the selection operator can be improved, so that the convergence speed of the algorithm can be greatly improved due to the convenience of selection. The implementation method can be: first calculate the fitness of all individuals in the population one by one; then sort the population from small to large according to the size of the fitness; then divide the sorting result into three equal parts, where the first part is the individual with the highest fitness, the second part is the individual with a medium fitness, and the third part is the individual with a lower fitness; finally, the third part of individuals is directly eliminated, and the individuals with high fitness in the first part are copied, and the individuals that are not eliminated enter the next generation to offset the image of the reduction of individuals in the parent population caused by the elimination operation.

[0116] The crossover probability P in this embodiment c Can be set to: c =0.8×(1-s), where s is the similarity between two individuals.

[0117] In another embodiment, during the calculation process, in order to avoid the algorithm converging to a local optimal solution, a dynamic mutation probability calculation method may be used in the calculation process, and the calculation formula is as follows:

[0118]

[0119] Among them, p m is the mutation probability, p min is the minimum mutation probability, p max is the maximum mutation probability, f is the current individual fitness, f ave is the average fitness of all individuals, f min is the minimum fitness in the current population, f max is the maximum fitness in the current population. Set p min = 0.01 and p max =0.1.

[0120] Based on the same inventive concept, an embodiment of the present invention further provides a dietary recommendation device, such as Figure 5 As shown, the device includes the following modules:

[0121] The user information acquisition module 110 is used to acquire the user's physical information and alternative food information, the physical information includes physical sign information and physical condition information, and the alternative food information includes at least one alternative food;

[0122] The nutrient intake obtaining module 120 is used to obtain the recommended nutrient intake information according to the user's physical information, where the recommended nutrient intake information includes at least one nutrient and the recommended intake corresponding to each nutrient;

[0123] The ingredient ratio determination module 130 is used to determine the ingredient ratio information according to the recommended nutrient intake information and the candidate ingredient information;

[0124] The meal set generation module 140 is used to generate at least one meal recommendation set according to the food ingredient ratio information, and each meal recommendation set includes at least one recipe.

[0125] In one embodiment, the nutrient intake acquisition module includes:

[0126] The initial intake determination submodule is used to determine the initial nutrient recommended intake information according to the user's physical sign information;

[0127] The nutrient intake acquisition submodule is used to update the initial nutrient recommended intake information according to the physical condition information to obtain the nutrient recommended intake information.

[0128] In one embodiment, the nutrient intake obtaining submodule includes:

[0129] An adjustment information determination unit, used to query a disease knowledge database according to the physical condition information, and determine nutrient intake adjustment information based on the query result;

[0130] The nutrient intake obtaining unit is used to update the initial nutrient recommended intake information according to the nutrient intake adjustment information to obtain the nutrient recommended intake information.

[0131] In one embodiment, the initial nutrient recommended intake information includes multiple nutrients and the recommended intakes corresponding to the various nutrients. The nutrient intake obtaining unit is further used to determine the nutrients to be updated and the corresponding intake adjustment information of the multiple nutrients included in the initial nutrient recommended intake information according to the nutrient intake adjustment information, wherein the multiple nutrients include at least one nutrient to be updated, and the nutrient to be updated is a nutrient whose corresponding recommended intake needs to be updated, and the recommended intakes corresponding to the various nutrients to be updated are updated according to the intake adjustment information corresponding to the various nutrients to be updated, so as to obtain the nutrient recommended intake information.

[0132] In one embodiment, the food ratio determination module includes:

[0133] The food ingredient acquisition submodule is used to obtain the nutritional ingredient information corresponding to each alternative food in the alternative food information;

[0134] The first module establishes a submodule, which is used to establish a first model according to the nutritional component information corresponding to each candidate food and the recommended intake corresponding to each nutrient;

[0135] The food ratio determination submodule is used to solve the first model using the first algorithm to obtain food ratio information.

[0136] In one embodiment, the meal package generation module includes:

[0137] The alternative recipe acquisition submodule is used to obtain the user's alternative recipe information;

[0138] The second module establishes a submodule for establishing a second model based on the alternative recipe information and the ingredient ratio information;

[0139] The meal package generation submodule is used to solve the second model using the second algorithm and generate at least one meal recommendation package according to the solution result.

[0140] In one embodiment, the dietary recommendation device further comprises:

[0141] A meal set display module, used for displaying the generated at least one recommended meal set to the user;

[0142] a target meal set determination module, configured to determine, after receiving an order instruction from a user, a target meal set recommendation corresponding to the order instruction in the at least one meal set recommendation;

[0143] The meal preparation module is used to prepare meals for users based on target meal recommendation packages.

[0144] For the specific definition of the dietary recommendation device, please refer to the definition of the dietary recommendation method above, which will not be repeated here. Each module in the above-mentioned dietary recommendation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0145] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 6As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as disease knowledge and nutrient information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a dietary recommendation method is implemented.

[0146] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0147] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0148] Obtain the user's physical information and alternative ingredient information, where the physical information includes physical sign information and physical condition information, and the alternative ingredient information includes at least one alternative ingredient; obtain recommended nutrient intake information based on the user's physical information, where the recommended nutrient intake information includes at least one nutrient and the recommended intake corresponding to each nutrient; determine ingredient ratio information based on the recommended nutrient intake information and the alternative ingredient information; generate at least one recommended meal package based on the ingredient ratio information, and each recommended meal package includes at least one recipe.

[0149] In one embodiment, when the processor executes the computer program to obtain the recommended nutrient intake information according to the user's physical information, the processor also implements the following steps:

[0150] The initial recommended nutrient intake information is determined according to the user's physical sign information; the initial recommended nutrient intake information is updated according to the physical condition information to obtain the recommended nutrient intake information.

[0151] In one embodiment, when the processor executes the computer program to update the initial recommended nutrient intake information according to the physical condition information to obtain the recommended nutrient intake information, the processor also implements the following steps:

[0152] The disease knowledge database is queried according to the physical condition information, and the nutrient intake adjustment information is determined based on the query result; the initial nutrient intake recommendation information is updated according to the nutrient intake adjustment information to obtain the nutrient intake recommendation information.

[0153] In one embodiment, the initial nutrient recommended intake information includes multiple nutrients and the recommended intakes corresponding to the various nutrients; when the processor executes the computer program to update the initial nutrient recommended intake information according to the nutrient intake adjustment information to obtain the nutrient recommended intake information, the following steps are also implemented:

[0154] The nutrients to be updated among the multiple nutrients included in the initial nutrient recommended intake information and their corresponding intake adjustment information are determined according to the nutrient intake adjustment information, wherein the multiple nutrients include at least one nutrient to be updated, and the nutrient to be updated is a nutrient whose corresponding recommended intake needs to be updated; the recommended intake corresponding to the various nutrients to be updated is updated according to the intake adjustment information corresponding to the various nutrients to be updated, so as to obtain the nutrient recommended intake information.

[0155] In one embodiment, the nutrient recommended intake information includes at least one nutrient and the recommended intake corresponding to each nutrient; when the processor executes the computer program to determine the ingredient ratio information according to the nutrient recommended intake information and the alternative ingredient information, the following steps are also implemented:

[0156] Obtain nutritional information corresponding to each alternative ingredient in the alternative ingredient information; establish a first model based on the nutritional information corresponding to each alternative ingredient and the recommended intake of each nutrient; use a first algorithm to solve the first model to obtain ingredient ratio information.

[0157] In one embodiment, when the processor executes the computer program to generate at least one recommended meal set according to the food ratio information, the processor also implements the following steps:

[0158] Acquire the user's alternative recipe information; establish a second model based on the alternative recipe information and the ingredient ratio information; use a second algorithm to solve the second model, and generate at least one recommended meal set meal based on the solution result.

[0159] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0160] The at least one generated meal recommendation set is displayed to the user; after receiving the user's order instruction, a target meal recommendation set corresponding to the order instruction in the at least one meal recommendation set is determined; and meals are prepared for the user according to the target meal recommendation set.

[0161] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0162] Obtain the user's physical information and alternative ingredient information, where the physical information includes physical sign information and physical condition information, and the alternative ingredient information includes at least one alternative ingredient; obtain recommended nutrient intake information based on the user's physical information, where the recommended nutrient intake information includes at least one nutrient and the recommended intake corresponding to each nutrient; determine ingredient ratio information based on the recommended nutrient intake information and the alternative ingredient information; generate at least one recommended meal package based on the ingredient ratio information, and each recommended meal package includes at least one recipe.

[0163] In one embodiment, when the computer program is executed by a processor to obtain the recommended nutrient intake information according to the user's physical information, the following steps are also implemented:

[0164] The initial recommended nutrient intake information is determined according to the user's physical sign information; the initial recommended nutrient intake information is updated according to the physical condition information to obtain the recommended nutrient intake information.

[0165] In one embodiment, the computer program is executed by a processor, and when the initial recommended nutrient intake information is updated according to the physical condition information to obtain the recommended nutrient intake information, the following steps are also implemented:

[0166] The disease knowledge database is queried according to the physical condition information, and the nutrient intake adjustment information is determined based on the query result; the initial nutrient intake recommendation information is updated according to the nutrient intake adjustment information to obtain the nutrient intake recommendation information.

[0167] In one embodiment, the initial nutrient recommended intake information includes multiple nutrients and the recommended intakes corresponding to the various nutrients; when the computer program is executed by the processor, the initial nutrient recommended intake information is updated according to the nutrient intake adjustment information to obtain the nutrient recommended intake information, and the following steps are also implemented:

[0168] The nutrients to be updated among the multiple nutrients included in the initial nutrient recommended intake information and their corresponding intake adjustment information are determined according to the nutrient intake adjustment information, wherein the multiple nutrients include at least one nutrient to be updated, and the nutrient to be updated is a nutrient whose corresponding recommended intake needs to be updated; the recommended intake corresponding to the various nutrients to be updated is updated according to the intake adjustment information corresponding to the various nutrients to be updated, so as to obtain the nutrient recommended intake information.

[0169] In one embodiment, the nutrient recommended intake information includes at least one nutrient and the recommended intake corresponding to each nutrient; when the computer program is executed by the processor, the following steps are also implemented when determining the ingredient ratio information according to the nutrient recommended intake information and the alternative ingredient information:

[0170] Obtain nutritional information corresponding to each alternative ingredient in the alternative ingredient information; establish a first model based on the nutritional information corresponding to each alternative ingredient and the recommended intake of each nutrient; use a first algorithm to solve the first model to obtain ingredient ratio information.

[0171] In one embodiment, when the computer program is executed by a processor and generates at least one recommended meal set meal according to the ingredient ratio information, the following steps are further implemented:

[0172] Acquire the user's alternative recipe information; establish a second model based on the alternative recipe information and the ingredient ratio information; use a second algorithm to solve the second model, and generate at least one recommended meal set meal based on the solution result.

[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0174] The at least one generated meal recommendation set is displayed to the user; after receiving the user's order instruction, a target meal recommendation set corresponding to the order instruction in the at least one meal recommendation set is determined; and meals are prepared for the user according to the target meal recommendation set.

[0175] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0176] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0177] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A dietary recommendation method, characterized in that: include: Acquire the user's physical information and alternative food information, wherein the physical information includes physical sign information and physical condition information, and the alternative food information includes at least one alternative food; Obtaining recommended nutrient intake information according to the user's physical information, wherein the recommended nutrient intake information includes at least one nutrient and a recommended intake corresponding to each nutrient; Determining ingredient ratio information according to the recommended nutrient intake information and the candidate ingredient information; Obtain the user's alternative recipe information, the alternative recipe information includes n alternative recipes, marked as R1, R2, ..., R n , R n Indicates the nth candidate recipe; establishes a second model according to the candidate recipe information and the ingredient ratio information; solves the second model using a genetic algorithm, and generates at least one dietary recommendation set according to the solution result, each of the dietary recommendation sets includes at least one recipe; The second model is the fitness function shown below: f(x)=a1Z1+a2Z2+…+a n Z n Z i express and B i The difference between i represents the weight of the i-th alternative ingredient; The sum of the weights of the i-th ingredient in the alternative recipes selected during meal preparation; Z i It is calculated by the linear programming equation shown below: B i Calculated by the following formula: k 1i x1+k 2i x2+…+k ni x n =B i x n represents the weight required for the nth alternative recipe, k 1i , k 2i , ..., k ni Respectively represent the content of the i-th ingredient in each unit dish in each alternative recipe; B i The following restrictions apply: B imin =0.85B i , B imax =1.15B i ; is the sum of the weights of the i-th ingredient in the alternative recipes selected during meal preparation; x j represents the weight required for the jth alternative recipe; k ji represents the content of the i-th ingredient in each unit dish in the j-th alternative recipe; a i Represents Z i The corresponding adjustment parameter is calculated by the following formula: Among them, B max is the maximum weight of the alternative ingredients, B i is the weight of the i-th alternative ingredient.

2. The dietary recommendation method according to claim 1, characterized in that: The step of obtaining the recommended nutrient intake information according to the user's physical information comprises: Determining initial recommended nutrient intake information according to the user's physical sign information; The initial recommended nutrient intake information is updated according to the physical condition information to obtain the recommended nutrient intake information.

3. The dietary recommendation method according to claim 2, characterized in that: The step of updating the initial recommended nutrient intake information according to the physical condition information to obtain the recommended nutrient intake information comprises: querying a disease knowledge database according to the physical condition information, and determining nutrient intake adjustment information based on the query result; The initial recommended nutrient intake information is updated according to the nutrient intake adjustment information to obtain the recommended nutrient intake information.

4. The dietary recommendation method according to claim 3, characterized in that: The initial nutrient recommended intake information includes multiple nutrients and the recommended intake corresponding to each nutrient; The step of updating the initial recommended nutrient intake information according to the nutrient intake adjustment information to obtain the recommended nutrient intake information comprises: Determining, according to the nutrient intake adjustment information, nutrients to be updated among the multiple nutrients included in the initial nutrient recommended intake information and their corresponding intake adjustment information, wherein the multiple nutrients include at least one nutrient to be updated, and the nutrient to be updated is a nutrient whose corresponding recommended intake needs to be updated; The recommended intake amounts corresponding to the nutrients to be updated are updated according to the intake adjustment information corresponding to the nutrients to be updated, so as to obtain the recommended nutrient intake information.

5. The dietary recommendation method according to claim 1, wherein: The step of determining the ingredient ratio information according to the recommended nutrient intake information and the candidate ingredient information comprises: Obtaining nutritional information corresponding to each candidate ingredient in the candidate ingredient information; Establishing a first model according to the nutritional information corresponding to each of the candidate ingredients and the recommended intake corresponding to each of the nutrients; The first model is solved using a first algorithm to obtain food ratio information.

6. The dietary recommendation method according to claim 1, wherein: The method further comprises: Displaying the generated at least one recommended meal set to the user; After receiving the order instruction from the user, determining a target meal recommendation set corresponding to the order instruction among the at least one meal recommendation set; Prepare meals for the user according to the target meal recommendation meal.

7. A device for implementing the dietary recommendation method according to claim 1, characterized in that: include: A user information acquisition module, used to acquire the user's physical information and alternative food information, wherein the physical information includes physical sign information and physical condition information, and the alternative food information includes at least one alternative food and the weight of each alternative food; A nutrient intake obtaining module, used to obtain recommended nutrient intake information according to the user's physical information, wherein the recommended nutrient intake information includes at least one nutrient and a recommended intake corresponding to each nutrient; An ingredient ratio determination module, used to determine ingredient ratio information according to the recommended nutrient intake information and the candidate ingredient information; The meal set generation module is used to generate at least one meal recommendation set according to the ingredient ratio information, and each of the meal recommendation sets includes at least one recipe.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.