Food recommendation method, device, storage medium and electronic device

Through an ingredient recommendation method and equipment, ingredients are recommended based on the user's dietary data, which solves the problem of nutritional imbalance, ensures balanced nutritional intake, and protects the user's health.

CN114067958BActive Publication Date: 2024-09-20LEAYUN TECH CO LTD OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010795073.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-10
Publication Date
2024-09-20
Estimated Expiration
2040-08-10

AI Technical Summary

Technical Problem

People's nutritional intake is unbalanced, resulting in poor physical fitness. It is difficult to effectively solve this problem with existing technology.

Method used

Through an ingredient recommendation method, device, storage medium and electronic device, the nutrients to be supplemented are obtained according to the user's dietary data, the categories of ingredients to be recommended are determined, and based on the target correspondence within the preset time period, the categories of ingredients to be recommended are Recommended ingredients to ensure balanced nutritional intake.

Benefits of technology

It achieves a balanced nutritional intake of users and protects their health. By recommending food ingredients, it prevents health problems caused by improper properties of food ingredients, such as health problems caused by excessive consumption of hot or cold food ingredients.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114067958B
    Figure CN114067958B
Patent Text Reader

Abstract

The present invention relates to the field of nutrition control, and specifically to a food recommendation method, device, storage medium and electronic device, which obtain nutrients to be supplemented by the user according to the user's dietary data; determine the category of food to be recommended according to the nutrients to be supplemented by the user; and recommend at least one food from the second ingredients in the category of food to be recommended according to the second ingredients in the user's dietary data and a target correspondence relationship, wherein the target correspondence relationship is a recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period, and the recommended food can ensure the balanced nutritional intake of the user, thereby ensuring the health of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of nutrition control technology, and in particular to a food recommendation method, device, storage medium and electronic equipment. Background Art

[0002] With the change of lifestyle, more and more people eat out, and the diet tends to be high in calories, fat, and sugar, resulting in an increasing number of obese people. Or, due to factors such as picky eating and partial eating, people's nutritional intake is unbalanced. Such reasons lead to unbalanced nutritional intake and poor physical fitness. Summary of the invention

[0003] In view of the problem in the prior art that people's nutritional intake is unbalanced, resulting in poor physical fitness, the present invention provides a food recommendation method, device, storage medium and electronic device to ensure that users' nutritional intake is balanced and the users' health is guaranteed.

[0004] In a first aspect, the present invention provides a method for recommending ingredients, the method comprising:

[0005] According to the user's dietary data, obtain the nutrients that the user needs to supplement;

[0006] Determining the category of food to be recommended according to the nutrients to be supplemented by the user;

[0007] Based on the first ingredient in the user's dietary data and the target correspondence, at least one target ingredient is determined from the second ingredients in the category of ingredients to be recommended for recommendation, wherein the target correspondence is a recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period.

[0008] Optionally, the step of determining at least one target ingredient for recommendation from the second ingredients in the category of ingredients to be recommended according to the first ingredient and the target correspondence in the user's dietary data includes:

[0009] According to the correspondence between the first ingredients and the target, obtaining a recommendation coefficient corresponding to each of the second ingredients;

[0010] Calculating the similarity between the nutritional components of each second food in the food category and the nutritional components to be supplemented by the user;

[0011] Obtaining a recommended value for each second ingredient according to the recommendation coefficient and the similarity;

[0012] Rank the recommended values ​​for each second ingredient;

[0013] A preset number of second ingredients with high recommendation values ​​are determined as target ingredients, and the target ingredients are recommended.

[0014] Optionally, before the step of obtaining the nutrients to be supplemented by the user according to the user's dietary data, the method includes:

[0015] Get the user's dietary data within a preset time period.

[0016] Optionally, the method further comprises:

[0017] Obtaining the nutritional components of each ingredient according to a preset nutritional table of ingredients, wherein the preset nutritional table of ingredients includes a correspondence between each ingredient and the nutritional components corresponding to each ingredient;

[0018] Determine the ingredient category of each ingredient based on its nutritional content.

[0019] Optionally, the method further comprises:

[0020] Establishing a food material library according to the user's historical dietary data within the preset time period;

[0021] Determine the number of selections corresponding to each ingredient in the ingredient library;

[0022] Calculating the Pearson correlation coefficient between the number of selections corresponding to the first ingredient and the number of selections corresponding to each second ingredient, wherein the first ingredient and the second ingredient are both ingredients in the ingredient library;

[0023] According to the Pearson correlation coefficient, a target correspondence relationship is established.

[0024] Optionally, the step of calculating the similarity between the nutritional components of each second food in the food category and the nutritional components to be supplemented by the user comprises:

[0025] Calculating a similarity value between the nutritional component of each second ingredient in the ingredients and the nutritional component to be supplemented by the user;

[0026] Sorting the similarity values ​​to obtain a similarity matrix;

[0027] Similarity is determined based on the similarity matrix.

[0028] Optionally, the method further comprises:

[0029] According to the user's dietary data, obtaining the property information of the first food in the user's dietary data;

[0030] Determining the trait to be recommended according to the trait information;

[0031] The step of determining at least one target ingredient for recommendation from the second ingredients in the category of ingredients to be recommended according to the first ingredient and the target correspondence in the user's dietary data comprises:

[0032] According to the first ingredient in the user's dietary data and the target correspondence, at least one ingredient with a to-be-recommended property is determined from the second ingredients in the to-be-recommended ingredient category as a target ingredient, and the target ingredient is recommended.

[0033] In a second aspect, the present invention further provides a food recommendation device, the device comprising:

[0034] The acquisition module is used to obtain the nutrients to be supplemented by the user based on the user's dietary data;

[0035] A determination module, used to determine the category of food to be recommended according to the nutrients to be supplemented by the user;

[0036] A recommendation module is used to determine at least one target ingredient for recommendation from the second ingredients in the category of ingredients to be recommended based on the first ingredients in the user's dietary data and the target correspondence, wherein the target correspondence is the recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period.

[0037] In a third aspect, the present invention further provides a storage medium storing a computer program, and when the storage medium is executed by one or more processors, the food recommendation method as described in the first aspect is implemented.

[0038] In a fourth aspect, the present invention further provides an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the food recommendation method as described in the first aspect is executed.

[0039] The present invention provides a food recommendation method, device, storage medium and electronic device, which obtain nutrients to be supplemented by the user based on the user's dietary data; determine the category of food to be recommended based on the nutrients to be supplemented by the user; and recommend at least one food from the second ingredients in the category of food to be recommended based on the second ingredients in the user's dietary data and the target correspondence relationship, wherein the target correspondence relationship is the recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period, and the recommended food can ensure the balanced nutritional intake of the user, thereby ensuring the health of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The present invention will be described in more detail below based on embodiments and with reference to the accompanying drawings:

[0041] Figure 1 A schematic diagram of a method for recommending food materials provided by an embodiment of the present invention;

[0042] Figure 2 Another schematic diagram of a method for recommending food materials provided by an embodiment of the present invention;

[0043] Figure 3 Another schematic diagram of a method for recommending food materials provided by an embodiment of the present invention;

[0044] Figure 4 Another schematic diagram of a method for recommending food materials provided by an embodiment of the present invention;

[0045] Figure 5 Another schematic diagram of a method for recommending food materials provided by an embodiment of the present invention;

[0046] Figure 6 Another schematic diagram of a method for recommending food materials provided by an embodiment of the present invention;

[0047] Figure 7 A connection block diagram of a food recommendation device provided in an embodiment of the present invention.

[0048] Reference numerals: 100 - acquisition module; 200 - determination module; 300 - recommendation module.

[0049] In the drawings, the same reference numerals are used for the same components, and the drawings are not drawn to scale. DETAILED DESCRIPTION

[0050] The following will describe the implementation methods of the present invention in detail with reference to the accompanying drawings and embodiments, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve corresponding technical effects can be fully understood and implemented accordingly. The embodiments of the present invention and the various features in the embodiments can be combined with each other without conflict, and the technical solutions formed are all within the protection scope of the present invention.

[0051] Embodiment 1

[0052] In order to solve the above technical problems existing in the prior art, the present embodiment provides an ingredient recommendation method, which can be applied to kitchen appliances, for example, a range hood, and the user cooks according to the recommended ingredients displayed on the range hood; the method can also be used in applications of the user's mobile terminal, computer and other devices, and the recommended ingredients are displayed through the application of the user's mobile terminal or computer device; the method can also be used on a takeaway platform, and the corresponding takeaway recipes are recommended according to the ingredients recommended by the method. Specifically, Figure 1This is a flow chart of a food recommendation method provided in an embodiment of the present invention. It should be noted that the food recommendation method provided in an embodiment of the present invention is not based on Figure 1 The specific order below is not limited. It should be understood that in other embodiments, the order of some steps in the food recommendation method provided by the embodiment of the present invention can be interchanged according to actual needs, or some steps can be omitted or deleted. Figure 1 The specific processes involved are described, such as Figure 1 As shown, the method includes:

[0053] Step S1, obtaining user dietary data within a preset time period.

[0054] Optionally, the preset duration may be one week or one month.

[0055] Step S2: Obtain the nutrients to be supplemented by the user based on the user's dietary data.

[0056] Optionally, in the implementation of step S2, according to the user's dietary data in one week, the user eats more meat and less vegetable food, that is, the user consumes more protein and fat, but very little vitamin C, then the nutrient to be supplemented by the user is vitamin C.

[0057] In another possible implementation, the nutritional component to be supplemented by the user can also be obtained through the user's physical examination report. For example, if the blood test in the physical examination report shows that the blood lacks vitamin C, the nutritional component to be supplemented by the user is vitamin C.

[0058] Step S3: Determine the category of food to be recommended based on the nutrients to be supplemented by the user.

[0059] The food category can be classified according to the nutritional components. For example, food containing vitamin C can be classified into the vitamin C category, and food containing protein can be classified into the protein category. If the nutritional component to be supplemented by the user is vitamin C, the category of the food to be recommended is determined to be the vitamin C category.

[0060] Specifically, Figure 2 Another schematic diagram of a method for recommending food materials provided by an embodiment of the present invention, according to Figure 2 The steps shown are used to classify the ingredients, see Figure 2 , the method comprises the following steps:

[0061] Step S5: obtaining the nutritional components of each ingredient according to a preset nutritional table of ingredients, wherein the preset nutritional table of ingredients includes a correspondence between each ingredient and the nutritional components corresponding to each ingredient.

[0062] For example, according to the food nutrition table, the nutrition components of beef, pork, and mutton all include protein, and the nutrition components of celery, green peppers, and green vegetables all include vitamin C. The nutrition component of potatoes is starch, that is, sugar.

[0063] Step S6: Determine the food category of each food according to the nutritional components of each food.

[0064] Continuing with the example in step S5, the food categories of beef, pork and mutton are all proteins, the food categories of celery, green peppers and green vegetables are all vitamin C, and the food category of potatoes is all carbohydrates.

[0065] It should be noted that one ingredient may correspond to multiple ingredient categories. For example, the nutritional components of pork include both protein and fat, so the ingredient categories corresponding to pork are protein and fat.

[0066] Continue reading Figure 1 Step S4: According to the first ingredient in the user's dietary data and the target correspondence, determine at least one target ingredient from the second ingredients in the category of ingredients to be recommended for recommendation, wherein the target correspondence is a recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period.

[0067] It should be noted that the recommendation coefficient is proportional to the user's preference (or number of selections). The larger the recommendation coefficient, the higher the user's preference (or number of selections); conversely, the lower the recommendation coefficient, the lower the user's preference (or number of selections).

[0068] It is understandable that the recommendation coefficient can be either a weight coefficient pre-set according to the degree of preference, or a weight coefficient calculated based on the user's food selection habits (such as the Pearson correlation coefficient), and this embodiment does not impose any limitation.

[0069] Figure 3 Another flowchart of a food recommendation method provided by an embodiment of the present invention is shown in FIG. Figure 3 , step S4 includes the following sub-steps:

[0070] Sub-step S4-1a: obtaining a recommendation coefficient corresponding to each of the second ingredients according to the corresponding relationship between the first ingredients and the target.

[0071] Optionally, the target correspondence may be a relationship correspondence table. For example, the relationship correspondence table is as follows: Figure 1 As shown:

[0072] Table 1

[0073] Second ingredient Chinese cabbage Green pepper celery Potato spinach Green vegetables Recommendation factor 0.6 0.1 0.6 0.4 0 0.5

[0074] Sub-step S4-1b: calculating the similarity between the nutritional components of each second ingredient in the category of ingredients to be recommended and the nutritional components to be supplemented by the user.

[0075] For example, the similarity between the nutrient to be supplemented (such as vitamin C) and the nutrient content of cabbage is 0.3; the similarity between the nutrient to be supplemented and the nutrient content of green pepper is 0.6; the similarity between the nutrient to be supplemented and the nutrient content of celery is 0.4; the similarity between the nutrient to be supplemented and the nutrient content of potato is 0.1; the similarity between the nutrient to be supplemented and the nutrient content of spinach is 0.5; and the similarity between the nutrient to be supplemented and the nutrient content of green vegetables is 0.4.

[0076] Sub-step S4-1c, obtaining a recommended value for each second ingredient according to the recommendation coefficient and the similarity.

[0077] In a specific implementation, the recommendation value of each second ingredient is obtained by multiplying the recommendation coefficient by the similarity.

[0078] Continuing with the above example, the recommended value for cabbage is 0.6*0.3=0.18; the recommended value for green pepper is 0.1*0.6=0.06; the recommended value for celery is 0.6*0.4=0.24; the recommended value for potato is 0.4*0.1=0.04; the recommended value for spinach is 0*0.5=0; and the recommended value for green vegetables is 0.5*0.4=0.2.

[0079] Sub-step S4-1d, sorting the recommended values ​​of each second ingredient.

[0080] In combination with the above example, in one implementation, the recommended value of each second ingredient may be sorted in descending order, and the resulting sorting results of the recommended values ​​of the various second ingredients are 0.24, 0.2, 0.18, 0.06, 0.04, and 0.

[0081] In another embodiment, the recommendation value of each second ingredient may be sorted in ascending order.

[0082] Sub-step S4-1e, determining a preset number of second ingredients with high recommendation values ​​as target ingredients, and recommending the target ingredients.

[0083] Optionally, the preset number may be one, and the target ingredient is celery corresponding to the maximum recommended value (0.24). If the preset number is two, the target recommended ingredients are celery corresponding to the recommended value (0.24) and green vegetables corresponding to the recommended value (0.2).

[0084] It should be noted that the preset number is determined by the user's setting or the number of ingredients displayed on each page of the display interface, and is not limited to one or two in the above example, but can also be a larger number, for example, five or ten. The larger the preset number, the richer the recommended target ingredients, and the more types of ingredients available for the user to choose.

[0085] It should also be noted that if the recommended values ​​are sorted in ascending order, the preset number of second ingredients with the later recommended values ​​are determined as the target recommended ingredients, and the target ingredients are recommended. That is, in this embodiment, the recommended value corresponding to the target ingredient should be the larger value.

[0086] The present embodiment provides a method for recommending ingredients, which obtains nutrients to be supplemented by the user based on the user's dietary data; determines the category of ingredients to be recommended based on the nutrients to be supplemented by the user; and recommends at least one ingredient from the second ingredients in the category of ingredients to be recommended based on the second ingredients in the user's dietary data and the target correspondence, wherein the target correspondence is a recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period, and the recommended ingredients can ensure the user's balanced nutritional intake, thereby ensuring the user's health.

[0087] Embodiment 2

[0088] Based on the previous embodiment, this embodiment further provides an ingredient recommendation method for establishing a target correspondence relationship between different ingredients. Specifically, Figure 4 Another flowchart of a food recommendation method provided by an embodiment of the present invention is shown in FIG. Figure 4 , the method further comprises the steps of:

[0089] Step S7: establishing a food material library according to the user's historical dietary data within the preset time period.

[0090] The food materials purchased or consumed by the user within a preset time period are obtained through historical dietary data. A food material library is established based on the food materials purchased or consumed within the preset time period. It is understandable that the food material library contains all the food materials purchased or consumed within the preset time period.

[0091] Optionally, the preset time period may be 1 month.

[0092] Optionally, the historical dietary data may be a recipe, or may be order information placed by the user on an external platform, or may be dietary information manually input by the user.

[0093] Step S8: Determine the number of selections corresponding to each ingredient in the ingredient library.

[0094] It can be understood that the number of times each ingredient is selected represents the user's preference for the ingredient. If the user selects it more times, the preference is higher; if the user selects it less times, the preference is lower.

[0095] Step S9: Calculate the Pearson correlation coefficient between the number of selections corresponding to the first ingredient and the number of selections corresponding to each second ingredient, wherein the first ingredient and the second ingredient are both ingredients in the ingredient library.

[0096] The established Pearson correlation coefficient is a value between -1 and 1. When the Pearson correlation coefficient is large, it indicates that the user likes the first ingredient and the second ingredient more; conversely, when the Pearson correlation coefficient is small, it indicates that the user likes the first ingredient and the second ingredient less.

[0097] When the Pearson correlation coefficient is between -1 and 0, the user may be allergic to the first ingredient and the second ingredient, or may have blocked the first ingredient and the second ingredient. When the Pearson correlation coefficient is between 0 and 1, the larger the Pearson correlation coefficient is, the more times the user has purchased the first ingredient and the second ingredient and the more he or she likes them. Conversely, the smaller the Pearson correlation coefficient is, the fewer times the user has purchased the first ingredient and the second ingredient and the less he or she likes them.

[0098] Step S10: establishing a target correspondence relationship according to the Pearson correlation coefficient.

[0099] It can be understood that the Pearson correlation coefficient in this embodiment can be used as a recommendation coefficient to establish a target correspondence relationship. For example, when the user selects the first ingredient, the Pearson correlation coefficient of the number of selections corresponding to the first ingredient and the number of selections corresponding to each second ingredient can be obtained. The product of the Pearson correlation coefficient and the similarity can be used to obtain the recommended value of each second ingredient when the user selects the first ingredient, thereby realizing ingredient recommendation.

[0100] Embodiment 3

[0101] Based on the above embodiment, this embodiment further provides a food recommendation method, specifically, Figure 5 Another flowchart of a food recommendation method provided by an embodiment of the present invention is shown in FIG. Figure 5 , step S4-1b includes the following sub-steps:

[0102] Sub-step S4-1b1, calculating the similarity between the nutritional components of each second ingredient in the ingredients and the nutritional components to be supplemented by the user.

[0103] In a specific embodiment, the similarity can be determined based on the content of the nutrient component to be supplemented in each second food material. For example, the nutrient component to be supplemented is vitamin C, and the vitamin C content of green pepper is 60 mg / 100 g. The similarity value is determined based on the vitamin C content.

[0104] Sub-step S4-1b2: sort the similarity values ​​to obtain a similarity matrix.

[0105] It can be understood that the similarity matrix includes the similarity between the nutritional components of each second food ingredient and the nutritional components to be supplemented, that is, the similarities of 0.3, 0.4, 0.1, 0.5, etc. in Example 1 are all included in the similarity matrix.

[0106] Embodiment 4

[0107] Based on the above embodiments, this embodiment provides a food recommendation method for recommending food according to food properties to ensure the health of the user. Specifically, Figure 6 Another flowchart of a food recommendation method provided by an embodiment of the present invention is shown in FIG. Figure 6 , the method further comprises the steps of:

[0108] Step S11: Obtaining property information of the first food in the user's dietary data according to the user's dietary data.

[0109] The property information includes cool and hot properties. Hot ingredients include jujube, lotus seeds, walnuts, peanuts, mutton, dog meat, beef, grass carp, pork liver, pork stomach, etc. Cool ingredients include goose meat, celery, eggplant, winter melon, white radish, bean sprouts, chrysanthemum, cabbage, cucumber, lettuce, green vegetables, etc.

[0110] Step S12: Determine the properties to be recommended and the categories of food to be recommended corresponding to the properties to be recommended according to the property information.

[0111] Step S12 includes the following sub-steps:

[0112] Sub-step S12-1: If the property information is hot, determine that the property to be recommended is cool.

[0113] Continuing with the example of beef as the first ingredient, beef is a hot ingredient. If users eat too much beef, it may cause getting a sore throat. Therefore, we can recommend cool ingredients such as eggplant, winter melon, etc.

[0114] Sub-step S12-2: If the property information is cool, determine that the property to be recommended is hot.

[0115] If the user consumes too much cold food such as goose meat, it may cause the user's body to become cold, so recommendations can be made from hot ingredients.

[0116] Step S4 includes the following sub-steps:

[0117] Sub-step S4-2: According to the first ingredient in the user's dietary data and the target correspondence, determine at least one ingredient with a to-be-recommended property from the second ingredients in the to-be-recommended ingredient category as a target ingredient, and recommend the target ingredient.

[0118] Continuing with the above example, the first ingredient is beef (hot), the property to be recommended is cool, and the nutrient the user lacks is vitamin C. If the preset number is one, the following example is used for explanation:

[0119] If the ranking results are 0.25 (hot mango), 0.24 (cool celery), 0.18 (cool cabbage), 0.06 (hot green pepper), and 0.04 (hot chestnut), because the property to be recommended is cool, the ranking results among cool ingredients are 0.24 (cool celery) and 0.18 (cool cabbage). In the ranking results of cool ingredients, celery corresponding to the recommended value of 0.24 is selected, so the recommended target ingredient is celery.

[0120] In this embodiment, ingredients are recommended based on the property information of the ingredients, which prevents the user from getting sore throat due to excessive consumption of hot ingredients, and also prevents the user from getting cold due to excessive consumption of cool ingredients.

[0121] Compared with the prior art, one or more embodiments of the above scheme may have the following advantages or beneficial effects:

[0122] (1) According to the user's dietary data, the nutrients to be supplemented by the user are obtained; according to the nutrients to be supplemented by the user, the category of ingredients to be recommended is determined; according to the second ingredients in the user's dietary data and the target correspondence relationship, at least one ingredient is recommended from the second ingredients in the category of ingredients to be recommended, wherein the target correspondence relationship is the recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period, and the recommended ingredients can ensure the balanced nutritional intake of the user, thereby ensuring the health of the user;

[0123] (2) Ingredients are recommended based on the properties of the ingredients, which prevents users from getting too hot due to excessive consumption of hot ingredients, and prevents users from getting too cold due to excessive consumption of cold ingredients, thereby ensuring the health of users.

[0124] Embodiment 5

[0125] In order to execute the steps involved in the above method embodiments, this embodiment provides a food recommendation device, specifically, Figure 7 For a connection diagram of a food recommendation device provided by an embodiment of the present invention, please refer to Figure 7 The food recommendation device includes: an acquisition module 100, a determination module 200 and a recommendation module 300.

[0126] The acquisition module 100 is used to acquire the nutrients to be supplemented by the user according to the user's dietary data.

[0127] It can be understood that the acquisition module 100 is used to execute the above step S2.

[0128] The determination module 200 is used to determine the category of food to be recommended according to the nutritional components to be supplemented by the user.

[0129] It can be understood that the determination module 200 is used to execute the above step S3.

[0130] The recommendation module 300 is used to determine at least one target ingredient for recommendation from the second ingredients in the category of ingredients to be recommended based on the first ingredients in the user's dietary data and the target correspondence, wherein the target correspondence is the recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period.

[0131] It can be understood that the recommendation module 300 is used to execute the above step S4.

[0132] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the acquisition module 100, the determination module 200 and the recommendation module 300 can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0133] Embodiment 6

[0134] This embodiment provides a storage medium, which stores a computer program. When the storage medium is executed by one or more processors, the food recommendation method in any one of Embodiments 1 to 3 is implemented.

[0135] The above-mentioned storage media can be flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, CD, server, App application store, etc.

[0136] Embodiment 7

[0137] This embodiment provides an electronic device, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the food recommendation method in any one of Embodiments 1 to 3 is executed.

[0138] The processor can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the food recommendation method in the above-mentioned embodiments 1 to 3.

[0139] The memory can be implemented by any type of volatile or non-volatile storage device or a combination of them, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0140] In summary, the present invention provides a food recommendation method, device, storage medium and electronic device, which obtain the nutrients to be supplemented by the user according to the user's dietary data; determine the food to be recommended according to the nutrients to be supplemented by the user.

[0141] Ingredient category; based on the second ingredients in the user's dietary data and the target correspondence, recommend at least one ingredient from the second ingredients in the category of ingredients to be recommended, wherein the target correspondence is a recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period, and the recommended ingredients can ensure the user's balanced nutritional intake, thereby ensuring the user's health.

[0142] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0143] It should be noted that, in the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0144] Although the embodiments disclosed in the present invention are as above, the above contents are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the patent protection scope of the present invention shall still be subject to the scope defined in the attached claims.

Claims

1. A food recommendation method, characterized in that: The method comprises: According to the user's dietary data, obtain the nutrients that the user needs to supplement; Determining the category of food to be recommended according to the nutrients to be supplemented by the user; According to the first ingredients in the user's dietary data and the target correspondence relationship, at least one target ingredient is determined from the second ingredients in the category of the to-be-recommended ingredients for recommendation, wherein the target correspondence relationship is a recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period; The step of determining at least one target ingredient for recommendation from the second ingredients in the category of ingredients to be recommended according to the first ingredient and the target correspondence in the user's dietary data comprises: According to the correspondence between the first ingredients and the target, obtaining a recommendation coefficient corresponding to each of the second ingredients; Calculating the similarity between the nutritional components of each second food in the food category and the nutritional components to be supplemented by the user; Obtaining a recommended value for each second ingredient according to the recommendation coefficient and the similarity; Rank the recommended values ​​for each second ingredient; A preset number of second ingredients with high recommendation values ​​are determined as target ingredients, and the target ingredients are recommended.

2. The method according to claim 1, characterized in that The step of calculating the similarity between the nutritional components of each second food in the food category and the nutritional components to be supplemented by the user comprises: Calculating the similarity between the nutritional components of each second ingredient in the ingredients and the nutritional components to be supplemented by the user; The similarity values ​​are sorted to obtain a similarity matrix.

3. The method according to claim 1, characterized in that Before the step of obtaining the nutritional components to be supplemented by the user according to the user's dietary data, the method includes: Get the user's dietary data within a preset time period.

4. The method according to claim 1, characterized in that: The method further comprises: Obtaining the nutritional components of each ingredient according to a preset nutritional table of ingredients, wherein the preset nutritional table of ingredients includes a correspondence between each ingredient and the nutritional components corresponding to each ingredient; Determine the ingredient category of each ingredient based on its nutritional content.

5. The method according to claim 1, characterized in that The method further comprises: Establishing a food material library according to the user's historical dietary data within the preset time period; Determine the number of selections corresponding to each ingredient in the ingredient library; Calculating the Pearson correlation coefficient between the number of selections corresponding to the first ingredient and the number of selections corresponding to each second ingredient, wherein the first ingredient and the second ingredient are both ingredients in the ingredient library; According to the Pearson correlation coefficient, a target correspondence relationship is established.

6. The method according to claim 1, characterized in that The method further comprises: According to the user's dietary data, obtaining the property information of the first food in the user's dietary data; Determining the trait to be recommended according to the trait information; The step of determining at least one target ingredient for recommendation from the second ingredients in the category of ingredients to be recommended according to the first ingredient and the target correspondence in the user's dietary data comprises: According to the first ingredient in the user's dietary data and the target correspondence, at least one ingredient with a to-be-recommended property is determined from each second ingredient in the to-be-recommended ingredient category as a target ingredient, and the target ingredient is recommended.

7. A food recommendation device, characterized in that: The device comprises: The acquisition module is used to obtain the nutrients to be supplemented by the user based on the user's dietary data; A determination module, used to determine the category of food to be recommended according to the nutrients to be supplemented by the user; A recommendation module, configured to determine at least one target ingredient for recommendation from the second ingredients in the category of ingredients to be recommended according to the first ingredient in the user's dietary data and the target correspondence relationship, wherein the target correspondence relationship is a recommendation coefficient corresponding to each of the second ingredients when the user selects the first ingredient within a preset time period; the step of determining at least one target ingredient for recommendation from the second ingredients in the category of ingredients to be recommended according to the first ingredient in the user's dietary data and the target correspondence relationship comprises: According to the correspondence between the first ingredients and the target, obtaining a recommendation coefficient corresponding to each of the second ingredients; Calculating the similarity between the nutritional components of each second food in the food category and the nutritional components to be supplemented by the user; Obtaining a recommended value for each second ingredient according to the recommendation coefficient and the similarity; Rank the recommended values ​​for each second ingredient; A preset number of second ingredients with high recommendation values ​​are determined as target ingredients, and the target ingredients are recommended.

8. A storage medium, characterized in that: The storage medium stores a computer program, and when the storage medium is executed by one or more processors, the food recommendation method according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the food recommendation method according to any one of claims 1 to 6 is executed.