WO2021056829A1 - Menu comparison method and apparatus, and computer storage medium - Google Patents
Menu comparison method and apparatus, and computer storage medium Download PDFInfo
- Publication number
- WO2021056829A1 WO2021056829A1 PCT/CN2019/123808 CN2019123808W WO2021056829A1 WO 2021056829 A1 WO2021056829 A1 WO 2021056829A1 CN 2019123808 W CN2019123808 W CN 2019123808W WO 2021056829 A1 WO2021056829 A1 WO 2021056829A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- recipe
- similarity
- ingredients
- proportion
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
Definitions
- This application relates to the field of smart home technology, in particular to a recipe comparison method, recipe comparison device and computer storage medium.
- This application provides a recipe comparison method, a recipe comparison device, and a computer storage medium, so as to solve the problem of inaccurate calculation of the similarity between recipes in related technologies.
- this application provides a recipe comparison method.
- the method includes: acquiring first recipe information and second recipe information, the first recipe information includes first category information and first proportion information of a plurality of first ingredients, and the second recipe information includes second recipe information of a plurality of second ingredients.
- the category information and the second proportion information compare the first category information and the second category information to obtain the similarity of each first ingredient and each second ingredient; according to the first proportion information and the second proportion information, The weighted summation of the similarity of the ingredients is performed to obtain the similarity of the first recipe and the second recipe.
- this application provides a recipe comparison device.
- the device includes a processor and a memory; a computer program is stored in the memory, and the processor is used to execute the computer program to implement the steps of the recipe comparison method.
- this application provides a computer storage medium.
- the computer storage medium stores a computer program, and the computer program is executed to implement the steps of the recipe comparison method.
- This application obtains the similarity of each first ingredient and each second ingredient by comparing the first category information and the second category information. And according to the first proportion information and the second proportion information, the weighted summation of the similarity of the ingredients is performed to obtain the similarity between the first recipe and the second recipe, which can compare the first recipe information and the second recipe more reasonably. Information, accurately get the similarity between the two.
- Fig. 1 is a schematic structural diagram of a first embodiment of a recipe comparison method provided by the present application
- FIG. 2 is a schematic flow chart of the method for calculating the similarity between the first recipe and the second recipe provided by the present application
- FIG. 3 is a schematic flowchart of a second embodiment of the recipe comparison method provided by the present application.
- FIG. 4 is a schematic structural diagram of an embodiment of a recipe comparison device provided by the present application.
- Fig. 5 is a schematic structural diagram of an embodiment of a computer storage medium provided by the present application.
- FIG. 1 is a schematic flowchart of a first embodiment of the recipe comparison method provided by the present application. This embodiment includes the following steps:
- S110 Acquire first recipe information and second recipe information, where the first recipe information includes first category information and first proportion information of a plurality of first ingredients, and the second recipe information includes second category information of a plurality of second ingredients And the second proportion information.
- the recipe is associated with the recipe information, for example, the first recipe is associated with the first recipe information, and the second recipe is associated with the second recipe information.
- the first recipe information and the second recipe information may be retrieved from the local database of the recipe comparison device, or retrieved from the Internet.
- the first recipe is, for example, a recipe that the user likes.
- the first recipe may be acquired according to the user's historical browsing records, favorite records, or recipes input/selected by the user. Specifically, the longer and more times the user browses a certain recipe, the more likely it is that the user is interested in the recipe, and then it can be determined that the recipe is the first recipe. Or when the user browses the recipe, click the favorite or favorite on the recipe page, or the user can input or select the favorite recipe through voice or device screen.
- the first recipe may also be obtained from a favorite recipe publicly shared by the user on a social platform.
- the first recipe may also be obtained through household appliances.
- the household electrical appliances are, for example, kitchen household electrical appliances such as microwave ovens, ovens, range hoods, or refrigerators.
- Home appliances for example, are equipped with cameras, which can be used to capture images of the cooking ingredients in the home appliances.
- microwave ovens and ovens can capture the ingredients being heated, or the range hood can capture the ingredients cooked in the stove, or the refrigerator can capture the removed ingredients.
- the home appliance collects the image of the food material, it analyzes and recognizes the food material in the image to obtain the corresponding recipe. Further, the frequency or number of times a recipe corresponding to the food material is cooked can also be analyzed.
- a set threshold for example, a recipe that has been cooked more than 5 times in a month, or the frequency or number of times a recipe is cooked is ranked higher among all recipes cooked by the user, such as sorting In the first 3 recipes, it can be determined that this recipe is the first recipe. It is understandable that the number of cooking times in the above-mentioned month exceeds 5 times, and the ranking is in the top 3 are just examples.
- the threshold or the specific numerical value of the ranking can be adjusted according to the actual cooking situation of the user, which is not limited in this application.
- the second recipe is another recipe different from the first recipe, and the second recipe may be obtained by searching keywords related to the first recipe in a local database or the Internet. Therefore, it can be understood that the number of second recipes in this embodiment may be multiple.
- the recipe information includes information such as ingredients, weight of each ingredient, cuisine, taste, cooking method, etc.
- the ingredients specifically include category information and proportion information of the ingredients.
- the category information may be, for example, the food material code of the food material obtained from the food material code table.
- the food code table can be designed by the service party itself, or it can be an existing food code table, such as "Chinese Food Coding Table", “Chinese Food Composition Table”, etc. It is understandable that, in order to ensure the consistency of the food material coding, the first category information and the second category information are obtained from the same food material coding table.
- the food code in the food code table includes multiple levels of code, each level limits the range where the food is located, and the next level continues to narrow the restricted range on the basis of the limit range of the previous level, step by step, until the last level of code points A specific ingredient. Therefore, the category information of the food material is unique and can uniquely represent a certain food material.
- the food code of pakchoi in the "Chinese Food Ingredients List” is 04-5-107, where 04 on the first level represents vegetables and products, and 04-5 on the second level represents tender stems, leaves, and cauliflowers. Go to the third level 04-5-107, which means Chinese cabbage.
- using the ingredient code to represent the ingredient can avoid the problem of one-to-one correspondence between the two recipes due to the different expressions of the same ingredient.
- ginger shred and ginger slices belong to ginger, and the ingredient codes of ginger shreds and ginger slices are The same, so the ingredient code can express the same ingredient more accurately.
- the proportion information is, for example, the percentage of the weight of each ingredient in the total weight of all ingredients in the recipe. Compared with the weight of the ingredients in the recipe information, the proportion information of the ingredients can more intuitively reflect the priority of a certain ingredient in the recipe, making different recipes more comparable.
- S120 Compare the first category information with the second category information, and obtain the similarity of each first ingredient and each second ingredient.
- the first category information may be the food material code of the first food material
- the second category information may be the food material code of the second food material. From the highest level to the lowest level in the food material compilation, the scope of meaning represented by each level of code is reduced once. Comparing each layer code of the first category information with each layer code of the second category information, the similarity of each first food material and each second food material can be obtained.
- the number of first coding layers of the first category information and the number of second coding layers of the second category information are determined. Compare each layer code of the first category information with each layer code of the second category information to determine the number of layers with the same code. Calculate the square root value of the product of the first coded layer number and the second coded layer number, and calculate the quotient of the same coded layer number and the square root value as the food similarity.
- the formula is as follows:
- the number of layers with the same encoding refers to the same number of layers starting from the highest level of the food encoding until the layer with different encodings. Specifically, from the highest level to the lowest level of the food material coding, the same layer codes of the first category information and the second category information are sequentially compared until the comparison results are different, and the number of layers above the different levels is determined to be the same level as the comparison result. number. Of course, the coding is still the same until the lowest level of the food coding of the first category information or the second category information is compared, and it is determined that the comparison result is the first coding layer number or the second coding layer number as the same coding layer number.
- the ingredient code of pork belly in the "Chinese Food Coding List" is 08-1-1-007
- the ingredient code of tenderloin is 08-1-1-006
- the number of layers with the same code for pork belly and tenderloin is 3.
- the ingredient code of carrots is 04-1-1-011.
- the top-level code of tenderloin is different from the top-level code of carrots. Even if the second and third levels are the same, the code of tenderloin and carrot is still the same. 0.
- the number of layers with the same encoding of pork belly and tenderloin is 3, the number of encoding layers for pork belly and tenderloin is 4, and the number of encoding layers for tenderloin is 4.
- the similarity of the ingredients of pork belly and tenderloin is:
- S130 Perform a weighted summation on the similarity of the ingredients according to the first proportion information and the second proportion information to obtain the recipe similarity of the first recipe and the second recipe.
- the similarity between the first recipe and the second recipe is calculated through two dimensions of food similarity and proportion information.
- the product of the first proportion information and the second proportion information can be used as the weight, and the similarity of the ingredients can be weighted and summed to obtain the similarity of the recipe. degree.
- the product of the first proportion information and the second proportion information is used as the weight, and the similarity of the ingredients is weighted, which means that the first ingredient and the second proportion information corresponding to the first proportion information are corresponding to each other.
- the ingredients similarity between the second ingredients is weighted.
- the weighted values of the similarity of each first ingredient and each of the second ingredients are added to obtain the similarity of the recipes of the first recipe and the second recipe.
- the formula is as follows:
- Sim AB and Sim BA both represent the recipe similarity between the first recipe and the second recipe, Indicates the similarity between the first ingredient and the second ingredient.
- the specific value of i is based on the actual number of ingredients in the recipe. Certainly, it is not limited in this embodiment.
- a i represents a first information specific recipe ingredients a first, each of the first food material A i has a corresponding first accounting information p Ai.
- j is a positive integer, indicating the number of ingredients in the second recipe information.
- B j represents a specific first ingredient in the first recipe information, and each second ingredient B j has corresponding second proportion information p Bj .
- the similarity between the first recipe and the second recipe can be calculated by the following method. Please refer to FIG. 2.
- FIG. 2 is a schematic flow chart of the recipe similarity calculation method for the first recipe and the second recipe provided in the present application. The calculation process of this method is as follows:
- S131 Compare the first category information and the second category information, determine a common ingredient among the plurality of first ingredients and the plurality of second ingredients, and obtain the similarity of each first ingredient and each second ingredient.
- Each piece of first category information is compared with each piece of second category information to determine a common ingredient among the plurality of first ingredients and the plurality of second ingredients. At the same time, the similarity of each first ingredient and each second ingredient is obtained.
- S132 Compare the first proportion information and the second proportion information of the common ingredients to determine the common proportion of the common ingredients.
- the proportion of pork in the first recipe information is 0.3
- the proportion of pork in the second recipe information is 0.5
- the common proportion of pork is 0.3
- S133 Remove the common proportion in the first proportion information and the second proportion information of the common ingredient, and perform a weighted summation on the similarity of the ingredients according to the first proportion information and the second proportion information after the removal process.
- the common proportion of the common ingredients in the first recipe information and the common proportion of the common ingredients in the second recipe information are respectively removed to obtain the first recipe information and the second recipe information after the removal process.
- the first recipe information after the removal process includes the first category information of the multiple first ingredients and the first proportion information after the removal process
- the second recipe information after the removal process includes the second category information of the multiple second ingredients and Remove the processed second proportion information.
- a weighted summation is performed on the similarity of the food ingredients.
- weighting the similarity of ingredients means using the first proportion information after the removal process and the second proportion information after the removal process, and the first proportion information after the removal process and the second proportion information after the removal process are used.
- the food similarity between the first food material and the second food material corresponding to the proportion information is weighted.
- the weighted values of the similarity of each first ingredient and each second ingredient are added together to obtain the recipe similarity of the first recipe after the removal process and the second recipe after the removal process.
- the formula is as follows:
- a ⁇ represents the first recipe information after the removal process
- B ⁇ represents the second recipe information after the removal process
- p A ⁇ (p A ⁇ may be 0, so p A ⁇ is greater than or equal to 0) represents the removal process
- the first proportion information, p B ⁇ (p B ⁇ may be 0, so p B ⁇ is greater than or equal to 0) indicates the second proportion information after the removal process
- Sim A ⁇ B ⁇ indicates the first recipe information after the removal process Recipe similarity with the second recipe information after removal processing.
- the recipe similarity between the first recipe information after the removal processing and the second recipe information after the removal processing is added to the sum of the common proportions to obtain the recipe similarity.
- the formula is as follows:
- p cm represents the common proportion of the m-th common ingredient.
- Adding the common proportions separately is equivalent to increasing the weight of the common ingredients, which can increase the recipe similarity between the first recipe and the second recipe to a certain extent.
- the greater the weight of the same ingredients or ingredients with higher similarity in the recipe the higher the similarity of the recipe, which can improve the accuracy of the recommended recipe.
- the similarity of each first ingredient and each second ingredient is obtained. And according to the first proportion information and the second proportion information, the weighted summation of the similarity of the ingredients is performed to obtain the similarity between the first recipe and the second recipe, which can compare the first recipe information and the second recipe more reasonably. Information, accurately get the similarity between the two.
- the composition of the ingredients and their proportions of the farmer’s fried pork is: pork belly 70%, ginger 7%, garlic 3%, and green pepper 20%.
- the code of the ingredients is: pork belly 08-1-1-007, ginger 04-4-9-001, garlic 04-4-1-001, green pepper 04-3-1-003;
- the ingredient composition of Yuxiang Pork Shredded and its proportion information are: carrot 20%, tenderloin 41%, fungus 2.7%, bamboo shoot 13.7%, ginger 7%, green onion 1.4%, garlic 6%, and green pepper 8.2%.
- the ingredients code is: carrot 04-1-1-011, tenderloin 08-1-1-006, fungus 05-1-0-014, bamboo shoots 04-5-2-006, ginger 04-4-9-001 , Green onion 04-4-2-001, garlic 04-4-1-001, green pepper 04-3-1-003.
- the recipe similarity of the farmer’s fried pork and the fish-flavored pork is to take the product of the proportion of the ingredients of the farmer’s fried pork and the fish-flavored pork after the removal process is taken as the weight, and the corresponding ingredients are weighted and summed, and added
- the sum of the common proportion and the common proportion of the farmer’s fried pork and the fish-flavored pork, the recipe similarity of the farmer’s fried pork and the fish-flavored pork is obtained:
- FIG. 3 is a schematic flowchart of a second embodiment of the recipe comparison method provided by the present application. This embodiment is based on the first embodiment of the recipe comparison method, so the same steps will not be repeated here. This embodiment includes the following steps:
- S310 Acquire first recipe information and second recipe information, where the first recipe information includes first category information and first proportion information of a plurality of first ingredients, and the second recipe information includes second category information of a plurality of second ingredients And the second proportion information.
- S320 Compare the information of the first category with the information of the second category, and obtain the similarity of each first ingredient and each second ingredient.
- S330 Perform a weighted summation on the similarity of the ingredients according to the first proportion information and the second proportion information to obtain the recipe similarity of the first recipe and the second recipe.
- S340 Push the second recipe information whose recipe similarity with the first recipe information is greater than or equal to a threshold.
- the second recipe is pushed to the user for the user to consult and select.
- the above threshold may be set between 60% and 100%, such as 70%, 80%, 85%, or 90%.
- the multiple second recipes may be pushed in priority order according to the similarity of the recipes.
- the higher the similarity of the recipes the higher the priority of the push. Prioritize the second recipes with high priority to users, reducing the trouble that may be caused to users by recommending multiple second recipes at the same time.
- the user after recommending a second recipe with a recipe similarity greater than a threshold to the user, monitor whether the user views the second recipe in time. If the user has not viewed the second recipe after a preset time, the user can be reminded to read the second recipe through a voice prompt. menu. Of course, the reason why the user did not view the second recipe may also be that he is not interested in the recipe. Then, it can also be set to hide the recipe if the user does not view the second recipe for more than a preset time.
- the second recipe with the recipe similarity greater than the threshold is pushed to the user, so that the user can obtain other recipes that are similar to their favorite recipes, which can satisfy The personalized needs of users improve the user experience.
- prioritizing according to the degree of similarity can reduce the confusion that may be caused to the user by recommending multiple second recipes at the same time.
- FIG. 4 is a schematic structural diagram of an embodiment of the recipe comparison device provided by the application.
- the recipe comparison device 100 of this embodiment may be Household appliances, such as range hoods, stoves, or refrigerators, can also be mobile terminals, such as smart phones, tablet computers, and wearable devices.
- the recipe comparison device 100 includes a display screen 11, a processor 12, and a memory 13, which are connected to each other.
- the recipe comparison device 100 of this embodiment can implement the above-mentioned recipe comparison method.
- the display screen 11 is used to display recipe information to the user
- a computer program is stored in the memory 13
- the processor 12 is used to execute the computer program to implement the above recipe comparison method.
- the processor 12 is used to calculate the similarity of each first ingredient and each of the second ingredients, and calculate the similarity between the first recipe and the multiple second recipes.
- the processor 12 may be an integrated circuit chip with signal processing capability.
- the processor 12 may also be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component .
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA off-the-shelf programmable gate array
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- FIG. 5 is a schematic structural diagram of an embodiment of the computer storage medium provided by the present application.
- the computer storage medium 200 of this embodiment stores a computer program 21, which can be executed to implement the method in the foregoing embodiment.
- the computer storage medium 200 in this embodiment may be a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disk that can store program instructions. Or, it may also be a server storing the program instructions, and the server may send the stored program instructions to other devices to run, or it may run the stored program instructions by itself.
- the disclosed method and device can be implemented in other ways.
- the device implementation described above is only illustrative, for example, the division of modules or units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of this embodiment.
- the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
- the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor execute all or part of the steps of the methods in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Medical Treatment And Welfare Office Work (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
Claims (10)
- 一种菜谱比较方法,其特征在于,所述方法包括:A method for comparing recipes, characterized in that the method comprises:获取第一菜谱信息和第二菜谱信息,所述第一菜谱信息包括多个第一食材的第一类别信息和第一占比信息,所述第二菜谱信息包括多个第二食材的第二类别信息和第二占比信息;Acquire first recipe information and second recipe information, where the first recipe information includes first category information and first proportion information of a plurality of first ingredients, and the second recipe information includes second recipe information of a plurality of second ingredients. Category information and second proportion information;比较所述第一类别信息和所述第二类别信息,获取每一所述第一食材与每一所述第二食材的食材相似度;Comparing the first category information and the second category information to obtain the similarity of each of the first food material and each of the second food material;根据所述第一占比信息和所述第二占比信息,对所述食材相似度进行加权求和,得到所述第一菜谱和所述第二菜谱的菜谱相似度。According to the first proportion information and the second proportion information, a weighted summation of the similarity of the ingredients is performed to obtain the similarity of the recipes of the first recipe and the second recipe.
- 根据权利要求1所述的方法,所述比较所述第一类别信息和所述第二类别信息,获取每一所述第一食材与每一所述第二食材的食材相似度,包括:The method according to claim 1, wherein the comparing the first category information and the second category information to obtain the similarity of each of the first food material and each of the second food material includes:比较所述第一类别信息和所述第二类别信息,确定多个所述第一食材和多个所述第二食材中的共同食材,获取每一所述第一食材与每一所述第二食材的食材相似度;Compare the first category information and the second category information, determine a common ingredient among a plurality of the first ingredients and a plurality of the second ingredients, and obtain each of the first ingredients and each of the first ingredients 2. The similarity of the ingredients of the ingredients;所述根据所述第一占比信息和所述第二占比信息,对所述食材相似度进行加权求和,包括:The performing a weighted summation on the similarity of the ingredients according to the first proportion information and the second proportion information includes:比较所述共同食材的第一占比信息和第二占比信息,确定所述共同食材的共同占比;Comparing the first proportion information and the second proportion information of the common ingredient to determine the common proportion of the common ingredient;去除所述第一占比信息和所述第二占比信息中所述共同食材的共同占比;Removing the common proportion of the common ingredient in the first proportion information and the second proportion information;根据去除处理后的第一占比信息和第二占比信息,对所述食材相似度进行加权求和。Perform a weighted summation on the similarity of the ingredients according to the first proportion information and the second proportion information after the removal process.
- 根据权利要求2所述的方法,所述根据去除处理后的第一占比信息和第二占比信息,对所述食材相似度进行加权求和,包括:The method according to claim 2, wherein the weighted summation of the similarity of the food ingredients according to the first proportion information and the second proportion information after the removal process includes:将所述去除处理后的第一占比信息和第二占比信息的乘积作为权值,对所述食材相似度进行加权求和,并加上所述共同占比的和,以得到所述菜谱相似度。The product of the first proportion information and the second proportion information after the removal processing is used as a weight, and the similarity of the ingredients is weighted and summed, and the sum of the common proportion is added to obtain the Recipe similarity.
- 根据权利要求1所述的方法,所述第一类别信息和所述第二类别信息来源于同一食材编码,所述食材编码包括多层编码;The method according to claim 1, wherein the first category information and the second category information are derived from the same food material code, and the food material code includes a multi-layer code;所述比较所述第一类别信息和所述第二类别信息,获取每一所述第一食材与每一所述第二食材的食材相似度,包括:The comparing the first category information and the second category information to obtain the similarity of each of the first food material and each of the second food material includes:比较所述第一类别信息的每层编码和所述第二类别信息的每层编码,以获 取每一所述第一食材与每一所述第二食材的食材相似度。The code of each layer of the first category information is compared with the code of each layer of the second category information to obtain the similarity of each of the first food material and each of the second food material.
- 根据权利要求4所述的方法,所述比较所述第一类别信息的每层编码和所述第二类别信息的每层编码,以获取每一所述第一食材与每一所述第二食材的食材相似度,包括:The method according to claim 4, said comparing each layer of code of said first category information with each layer of code of said second category information to obtain each of said first ingredients and each of said second ingredients. The similarity of the ingredients, including:确定所述第一类别信息的第一编码层数,以及所述第二类别信息的第二编码层数;Determining the number of first coding layers of the first category information and the number of second coding layers of the second category information;比较所述第一类别信息的每层编码和所述第二类别信息的每层编码,确定编码相同的层数;Comparing each layer code of the first category information with each layer code of the second category information to determine the number of layers with the same code;计算所述第一编码层数和第二编码层数的乘积的开方值,计算所述编码相同的层数和所述开方值的商值作为所述食材相似度。Calculate the square root value of the product of the first coded layer number and the second coded layer number, and calculate the quotient of the same coded layer number and the square root value as the food similarity.
- 根据权利要求5所述的方法,所述多层编码中由最高层级到最低层级,每层编码所表示的含义范围依次缩小;According to the method of claim 5, in the multi-layer code, from the highest level to the lowest level, the meaning range of each level of code is reduced in sequence;所述比较所述第一类别信息的每层编码和所述第二类别信息的每层编码,确定编码相同的层数,包括:The comparing each layer code of the first category information with each layer code of the second category information to determine the number of layers with the same code includes:由所述最高层级到所述最低层级,依次比较所述第一类别信息和所述第二类别信息的同层编码,直至比较结果为不同;From the highest level to the lowest level, sequentially comparing the same layer codes of the first category information and the second category information until the comparison result is different;确定所述比较结果为不同的层级以上的层数为编码相同的层数。It is determined that the comparison result is that the number of layers above different levels is the number of layers with the same coding.
- 根据权利要求1所述的方法,所述根据所述第一占比信息和所述第二占比信息,对所述食材相似度进行加权求和,得到所述第一菜谱和所述第二菜谱的菜谱相似度,包括:The method according to claim 1, wherein the weighted summation of the similarity of the ingredients is performed on the basis of the first share information and the second share information to obtain the first recipe and the second recipe. Recipe similarity of recipes, including:将所述第一占比信息和所述第二占比信息的乘积作为权值,对所述食材相似度进行加权求和,以得到所述菜谱相似度。The product of the first proportion information and the second proportion information is used as a weight, and a weighted summation is performed on the similarity of the ingredients to obtain the similarity of the recipe.
- 根据权利要求1所述的方法,所述方法进一步包括:推送与所述第一菜谱信息的菜谱相似度大于或等于阈值的第二菜谱信息。The method according to claim 1, further comprising: pushing second recipe information whose recipe similarity with the first recipe information is greater than or equal to a threshold.
- 一种菜谱比较装置,其特征在于,所述菜谱比较装置包括处理器和存储器;所述存储器中存储有计算机程序,所述处理器用于执行所述计算机程序以实现如权利要求1-8中任一项所述方法的步骤。A recipe comparison device, wherein the recipe comparison device includes a processor and a memory; a computer program is stored in the memory, and the processor is used to execute the computer program to implement any of claims 1-8. One of the steps of the described method.
- 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序被执行以实现如权利要求1-8中任一项所述方法的步骤。A computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is executed to implement the steps of the method according to any one of claims 1-8.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910936777.1 | 2019-09-29 | ||
CN201910936777.1A CN110826595A (en) | 2019-09-29 | 2019-09-29 | Menu comparison method and device and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021056829A1 true WO2021056829A1 (en) | 2021-04-01 |
Family
ID=69548516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/123808 WO2021056829A1 (en) | 2019-09-29 | 2019-12-06 | Menu comparison method and apparatus, and computer storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110826595A (en) |
WO (1) | WO2021056829A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112951374B (en) * | 2021-02-25 | 2023-03-28 | 平安普惠企业管理有限公司 | Data analysis method, system, computer device and storage medium |
CN114893946B (en) * | 2022-04-29 | 2024-04-12 | 海信视像科技股份有限公司 | Food storage device and intelligent cooking method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103383747A (en) * | 2012-05-04 | 2013-11-06 | 海尔集团公司 | Refrigerator and food management system and method |
CN105570940A (en) * | 2016-02-23 | 2016-05-11 | 美的集团股份有限公司 | Microwave oven voice control method and microwave oven |
CN108062343A (en) * | 2017-07-27 | 2018-05-22 | 宁波方太厨具有限公司 | A kind of generation method of individualized intelligent menu |
CN108922592A (en) * | 2018-05-25 | 2018-11-30 | 美的集团股份有限公司 | A kind of nutrient diet method, apparatus, refrigerator and computer storage medium |
CN109932036A (en) * | 2017-12-19 | 2019-06-25 | 苏州恒鼎科技咨询有限公司 | A kind of intelligent nutrition claims |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1669889A4 (en) * | 2003-09-30 | 2007-10-31 | Intellectual Property Bank | Similarity calculation device and similarity calculation program |
KR101798616B1 (en) * | 2016-02-03 | 2017-11-16 | 주식회사 원더풀플랫폼 | Method of providing recipe and server performing the same |
CN106288634B (en) * | 2016-08-04 | 2019-03-12 | 海信集团有限公司 | Menu recommended method, device and intelligent refrigerator |
CN108765202A (en) * | 2018-04-11 | 2018-11-06 | 丽睿客信息科技(北京)有限公司 | It makes a reservation configuration method, device and Self-service order system |
CN108989986B (en) * | 2018-09-06 | 2020-09-04 | 西安电子科技大学 | Wi-Fi indoor positioning method based on iterative space division method |
CN110263331A (en) * | 2019-05-24 | 2019-09-20 | 南京航空航天大学 | A kind of English-Chinese semanteme of word similarity automatic testing method of Knowledge driving |
-
2019
- 2019-09-29 CN CN201910936777.1A patent/CN110826595A/en active Pending
- 2019-12-06 WO PCT/CN2019/123808 patent/WO2021056829A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103383747A (en) * | 2012-05-04 | 2013-11-06 | 海尔集团公司 | Refrigerator and food management system and method |
CN105570940A (en) * | 2016-02-23 | 2016-05-11 | 美的集团股份有限公司 | Microwave oven voice control method and microwave oven |
CN108062343A (en) * | 2017-07-27 | 2018-05-22 | 宁波方太厨具有限公司 | A kind of generation method of individualized intelligent menu |
CN109932036A (en) * | 2017-12-19 | 2019-06-25 | 苏州恒鼎科技咨询有限公司 | A kind of intelligent nutrition claims |
CN108922592A (en) * | 2018-05-25 | 2018-11-30 | 美的集团股份有限公司 | A kind of nutrient diet method, apparatus, refrigerator and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110826595A (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11669557B2 (en) | Iterative image search algorithm informed by continuous human-machine input feedback | |
CN108897768B (en) | Ordering method and device and electronic equipment | |
WO2013125201A1 (en) | Device for presenting recipe and method for presenting recipe | |
WO2021056829A1 (en) | Menu comparison method and apparatus, and computer storage medium | |
CN110837552B (en) | Diet information recommendation method and device | |
CN107851183A (en) | System and method for providing recipe | |
US10055496B2 (en) | Cuisine search device, cuisine search method, program, and computer-readable storage medium | |
US20190251202A1 (en) | Smart recipe recommendation apparatus, method thereof and automatic cooking apparatus | |
CN113934776B (en) | Food material pushing method, device, medium and equipment | |
JP6310165B1 (en) | Information processing apparatus, information processing method, program, and storage medium | |
EP3639713A1 (en) | Automatic main ingredient extraction from food recipe | |
CN113139120A (en) | Electronic equipment and recipe recommendation method and apparatus | |
CN112328845B (en) | Dish pushing method and device based on cooking equipment and cooking equipment | |
Xie et al. | Cross-Modal Joint Embedding with Diverse Semantics | |
TW201935392A (en) | Smart recipe recommendation apparatus, method thereof and automatic cooking apparatus | |
CN111460278B (en) | Recipe recommendation method and system | |
US20210212505A1 (en) | Automatic main ingredient extraction from food recipe | |
Shah et al. | Bon vivant: A machine learning approach towards cooking | |
CN117453756A (en) | Menu generation method, device, equipment and storage medium | |
Mansor | A study on the promotion of local cuisine using multimedia platform: Go’bang Maju Restaurant Temerloh | |
CN111863193A (en) | Method, device and equipment for recipe recommendation | |
CN111134309A (en) | Taste adjusting method and device | |
CN116469523A (en) | Menu recommendation method and device, electronic equipment and readable storage medium | |
CN117271040A (en) | Recipe customizing method and device, cooking equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19946566 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19946566 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05.10.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19946566 Country of ref document: EP Kind code of ref document: A1 |