Menu recommendation method and device, electronic equipment and storage medium
By receiving user instructions in the intelligent recipe recommendation system, if the ingredient information is not included, the candidate recipes are obtained from the historical database and the recommended recipes are determined based on the ingredient prices and user preferences. This solves the problem that the existing system cannot understand the current needs of the user and improves the recipe quality. Recommendation accuracy and user experience.
Patent Information
- Application Number
- CN202410661826.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-20
AI Technical Summary
Existing smart recipe recommendation systems cannot fully understand the specific needs of users at the current moment, resulting in inaccurate recommended recipes and affecting user experience.
By receiving the user's recipe recommendation instructions, if the instructions do not contain ingredient information, candidate recipes related to the current moment are obtained from the historical database, and the recommended recipes are determined based on the price of the ingredients and the user's historical preferences, and displayed to the user.
It achieves more accurate, comprehensive and dynamic recipe recommendations, meets the current needs of users, saves economic expenses, and improves the efficiency and user experience of smart recipe recommendations.
Smart Images

Figure CN118673189A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of home appliance Internet of Things, and in particular to a recipe recommendation method, device, electronic device and storage medium. Background Art
[0002] With the development of science and technology, the technology of smart home appliances in recipe recommendation is also constantly improving. Smart recipe recommendation can use intelligent means to enhance the user's cooking experience, making cooking easier, more efficient and personalized. The recipe recommendation of smart home appliances can combine advanced technology to provide users with a highly personalized, intuitive and interactive cooking experience, recommending suitable recipes for users, thereby ensuring that users can enjoy delicious and healthy dishes.
[0003] The current intelligent recipe recommendation can recommend suitable recipes to users based on their physical condition or eating habits. However, the specific needs of users may be different at different times. This method cannot fully understand the needs of users at the current moment and can only recommend recipes to users in a general way, which affects the user experience.
[0004] Application Contents
[0005] The embodiments of the present application provide a recipe recommendation method, device, electronic device and storage medium, which can more accurately, comprehensively and dynamically recommend recipes to users that not only meet the users' needs at the current moment but also save the users' economic expenses, thereby improving the efficiency of the intelligent recipe recommendation method while improving the user experience.
[0006] In a first aspect, the present application provides a recipe recommendation method, the method comprising:
[0007] Receive recipe recommendation instructions sent by users;
[0008] If the recipe recommendation instruction does not include ingredient information, obtaining at least one candidate recipe corresponding to the current moment from a predetermined historical database;
[0009] Obtaining an ingredient price corresponding to at least one candidate recipe at a current moment, and determining at least one recommended recipe based on the ingredient price and at least one candidate recipe;
[0010] At least one recommended recipe is displayed to the user.
[0011] In a second aspect, the present application provides a recipe recommendation device, the device comprising:
[0012] An instruction receiving module, used to receive a recipe recommendation instruction sent by a user;
[0013] A first determination module, configured to obtain at least one candidate recipe corresponding to the current moment from a predetermined historical database if the recipe recommendation instruction does not include ingredient information;
[0014] A second determination module is used to obtain the price of ingredients corresponding to at least one candidate recipe at the current moment, and determine at least one recommended recipe based on the ingredient price and at least one candidate recipe;
[0015] The recipe recommendation module is used to display at least one recommended recipe to the user.
[0016] In a third aspect, the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a recipe recommendation method as described in any one of the present applications is implemented.
[0017] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a recipe recommendation method as described in any one of the present applications.
[0018] In this application, a recipe recommendation instruction sent by a user is received; if the recipe recommendation instruction does not include ingredient information, at least one candidate recipe corresponding to the current moment is obtained from a predetermined historical database; the price of the ingredients corresponding to the at least one candidate recipe at the current moment is obtained, and at least one recommended recipe is determined based on the ingredient price and at least one candidate recipe; and at least one recommended recipe is displayed to the user. That is, in the solution of this application, if the user has no ingredient requirements, based on the user's preference for recipes in the historical period and the cost of using the recipes, a recipe that meets the user's needs at the current moment and can save the user's economic expenditure is recommended to the user, thereby improving the efficiency of the intelligent recipe recommendation method and the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A first flow chart of a recipe recommendation method provided in this application;
[0021] Figure 2 A second flow chart of a recipe recommendation method provided in this application;
[0022] Figure 3A third flow chart of a recipe recommendation method provided in this application;
[0023] Figure 4 A schematic diagram of the structure of a recipe recommendation device provided in this application;
[0024] Figure 5 A schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION
[0025] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Figure 1 The first flow chart of a recipe recommendation method provided by the present application is that the method of the present application can more accurately, comprehensively and dynamically recommend recipes to users that not only meet the needs of users at the current moment but also save users' economic expenses, thereby improving the efficiency of the intelligent recipe recommendation method while improving user experience. In a specific embodiment, the device can be integrated into an electronic device, such as a user's mobile phone, a smart refrigerator or other kitchen appliance controller. The following embodiments will be described by taking the device integrated into an electronic device as an example, with reference to Figure 1 , the method may specifically include the following steps:
[0029] S101. Receive a recipe recommendation instruction sent by a user.
[0030] The recipe recommendation instruction is an instruction sent by the user to the controller or mobile phone to instruct the smart home appliance or mobile phone to recommend a suitable recipe for the user. In an optional implementation, when the user needs to use the function of intelligently recommending recipes, the function can be triggered by touching the screen or voice input on the home appliance or mobile phone with this function. After the user triggers the function of intelligently recommending recipes, the home appliance or mobile phone can receive the recipe recommendation instruction sent by the user.
[0031] In this solution, the recipe recommendation instruction may include ingredient information or may not include ingredient information. In an optional implementation, when the user triggers the recipe recommendation instruction, the touch screen of the home appliance or mobile phone can display a prompt message "whether to recommend based on ingredients" to the user. If the user requires the controller to recommend corresponding recipes based on ingredients, the user can fill in the ingredient information through the touch screen and send a recipe recommendation instruction carrying the ingredient information. Alternatively, the user can send an instruction to automatically obtain ingredients to the controller, and after receiving the instruction, the controller can send an instruction to obtain ingredients to the smart refrigerator. After receiving the instruction, the smart refrigerator takes a photo of the inside of the refrigerator through the camera inside the refrigerator. After obtaining the photo of the inside of the refrigerator, the ingredients in the photo are extracted, and the ingredient information is generated based on the ingredients, and the ingredient information is sent to the controller. After obtaining the ingredient information, the controller recommends recipes to the user based on the ingredient information.
[0032] S102: If the recipe recommendation instruction does not include ingredient information, obtain at least one candidate recipe corresponding to the current moment from a predetermined historical database.
[0033] The historical database includes data generated when the user uses and browses each recipe in the historical period. The ingredient information includes information such as ingredient type, ingredient name, and ingredient quantity. In an optional embodiment, when the user browses a recipe on a kitchen appliance or a mobile phone, the controller can store information such as the recipe identification number and browsing time of the recipe browsed by the user in the historical database. When the user selects a recipe and cooks according to the cooking mode recorded in the recipe, the controller can record information such as the recipe identification number, recipe selection time, and cooking mode usage time of the recipe.
[0034] Specifically, when a recipe recommendation instruction sent by a user is received and the recipe recommendation instruction does not include ingredient information, it means that the user may not have any remaining ingredients at home, or the user does not need to select a recipe based on the ingredients. In this case, the controller needs to directly recommend a recipe to the user. After receiving the recipe recommendation instruction without ingredient information, the controller searches for a recipe that is frequently used by the user in the current time period in the historical time period according to the usage time of each recipe stored in the historical database, and determines the recipe as a candidate recipe.
[0035] Exemplarily, the historical database divides 24 hours a day into 6 time periods, namely 6:30-8:30, 8:30-11:30, 11:30-14:30, 14:30-17:30, 17:30-19:30, and 19:30-6:30. The historical database includes information such as the number of times each recipe is used and the browsing time in each time period. At 7:40, the user sends a recipe recommendation instruction without ingredient information to the controller. The controller searches the historical database for each recipe corresponding to 6:30-8:30 according to the recipe recommendation instruction, and determines at least one recipe with a large number of uses and a long browsing time, and determines the at least one recipe as a candidate recipe.
[0036] In an optional embodiment, a target time period of the current moment is determined based on various time periods in a historical database, and at least one alternative recipe corresponding to the target time period is determined from the historical database; if the browsing time of at least one alternative recipe is greater than a first preset time, at least one alternative recipe is determined to be a first candidate recipe; if the usage time of a cooking mode corresponding to at least one first candidate recipe is greater than its corresponding second preset time, at least one first candidate recipe is determined to be at least one candidate recipe.
[0037] S103: Obtain the price of ingredients corresponding to at least one candidate recipe at the current moment, and determine at least one recommended recipe based on the price of ingredients and at least one candidate recipe.
[0038] Among them, the price of ingredients includes the price of ingredients in the candidate recipes at the current moment on each shopping platform. The recommended recipe is selected from each candidate recipe according to the price of ingredients, and finally needs to be recommended to the user. Specifically, the controller includes a wireless communication module, and the wireless communication module is wirelessly connected to each public shopping platform. These shopping platforms can be manually added and connected to the controller by the user, or they can be shopping platforms that can be "delivered to the home" for the user determined by the controller according to the current location. In an optional embodiment, after determining the candidate recipes, if the candidate recipes include a recipe of an ingredient type, and the ingredient type includes at least two candidate recipes, the recommended recipe can be determined according to the ingredient prices corresponding to at least two candidate recipes at the current moment. If the candidate recipes include only one recipe, the candidate recipe is determined as a recommended recipe. At the same time, the ingredient price corresponding to the candidate recipe at the current moment is obtained, and the ingredient price is displayed to the user. If the candidate recipe corresponding to the current moment is not obtained in the historical database, the commonly used recipes pre-determined by the controller according to the domain big data are used as recommended recipes.
[0039] In an optional embodiment, the controller may obtain the current price of ingredients of at least one candidate recipe on each shopping platform through a preset interface; determine the price difference corresponding to at least one candidate recipe based on the current price of ingredients of at least one candidate recipe on each shopping platform and the historical average price of at least one candidate recipe on each shopping platform; determine the ingredient type of at least one candidate recipe; if there are at least two ingredient types and each type includes at least two candidate recipes, determine the candidate recipe with the largest price difference in each type as the recommended recipe.
[0040] S104: Display at least one recommended recipe to the user.
[0041] Specifically, after determining at least one recommended recipe, the controller can generate recipe display information based on the recommended recipe, and display the recipe display information of each recommended recipe to the user through the display screen of the smart refrigerator or other smart kitchen appliances, or through the user's mobile phone. Exemplarily, the recommended recipes determined by the controller include two: stir-fried cauliflower and scallion pork ribs. The user can see information such as the number of recipes (2), the name of the recipe (stir-fried cauliflower and scallion pork ribs), the type of recipe (vegetarian and non-vegetarian), and the specific content of the recipe on the display screen.
[0042] In the scheme of this embodiment, a recipe recommendation instruction sent by a user is received. If the recipe recommendation instruction does not include ingredient information, at least one candidate recipe corresponding to the current moment is obtained from a predetermined historical database. The price of the ingredients corresponding to at least one candidate recipe at the current moment is obtained, and at least one recommended recipe is determined based on the ingredient price and at least one candidate recipe. The at least one recommended recipe is displayed to the user. The technical scheme of this embodiment, when the user has no ingredient requirements, recommends a recipe that meets the user's needs at the current moment and can save the user's economic expenditure based on the user's use of recipes in historical time periods and the cost of using the recipes, thereby improving the efficiency of the intelligent recipe recommendation method while improving the user experience.
[0043] Figure 2 This is a second flow chart of a recipe recommendation method provided by the present application. The specific method can be as follows: Figure 2 As shown, the method may include the following steps:
[0044] S201. Receive a recipe recommendation instruction sent by a user.
[0045] S202: If the recipe recommendation instruction does not include ingredient information, determine a target time period where the current moment is located based on various time periods in the history database, and determine at least one candidate recipe corresponding to the target time period from the history database.
[0046] Among them, the target time period is the time period of the current moment. Specifically, if the recipe recommendation instruction does not include ingredient information, it means that the user may not have any remaining ingredients at home, or the user does not need the controller to recommend recipes based on the ingredients. In different time periods, the user's "preferred" recipes may be different. For example, in the morning, the user may prefer breakfast recipes such as egg custard and rice porridge. At noon, they prefer lunch recipes such as noodles, fried rice, etc. In the afternoon, they prefer healthy recipes such as fat-reducing meals and health meals. The historical database stores the recipes that the user has selected or used in each time period.
[0047] When the controller receives the recipe recommendation instruction sent by the user, the controller determines the target time period of the current time according to the current time, searches for all recipes corresponding to the target time period in the history database, and determines these recipes as candidate recipes.
[0048] S203: Determine at least one candidate recipe based on a browsing duration of the at least one candidate recipe and a usage duration of a cooking mode corresponding to the at least one candidate recipe.
[0049] Among them, browsing time refers to the time that the user browses the display page of the alternative recipes in the historical period. The use time of the cooking mode refers to the time that the user cooks according to the alternative recipes. Specifically, browsing time and cooking time can reflect the user's preference for a recipe. For example, after the user selects a recipe, he only browses the display page of the recipe for a few seconds, which means that the user may have just touched the screen by mistake. If the user selects a recipe, the first step of the recipe is to steam and bake for 30 minutes, but the user only uses the oven to steam and bake for 2 minutes before exiting the cooking mode, which means that the user does not "prefer" the recipe. Therefore, the data of the above recipes can be regarded as invalid data. In the process of recommending recipes, these data need to be ignored in order to obtain recommended recipes that are more in line with user preferences and needs.
[0050] In the present scheme, at least one candidate recipe is determined from at least one alternative recipe based on the browsing time of at least one alternative recipe and the usage time of the cooking mode corresponding to at least one alternative recipe, including: if the browsing time of at least one alternative recipe is greater than a first preset time, determining the at least one alternative recipe as a first candidate recipe; if the usage time of the cooking mode corresponding to at least one first candidate recipe is greater than its corresponding second preset time, determining the at least one first candidate recipe as at least one candidate recipe.
[0051] Among them, the first preset time length and the second preset time length are predetermined by the controller according to domain big data, etc. The first candidate recipe is a recipe whose browsing time is longer than the first preset time length. If the browsing time of at least one alternative recipe is longer than the first preset time length, it means that the user did not accidentally select the alternative recipe, but "preferred" the recipe. Therefore, if the browsing time of at least one alternative recipe is longer than the first preset time length, at least one alternative recipe is determined to be the first candidate recipe. If the browsing time of each alternative recipe is less than or equal to the preset time length, at least one commonly used recipe predetermined according to the domain big data can be determined as a recommended recipe.
[0052] Specifically, the cooking modes corresponding to different recipes are different, so the second preset time lengths corresponding to different recipes are different. For example, the cooking mode for boiled eggs is: boil for 10 minutes, and the second preset time length corresponding to boiled eggs can be one minute. The cooking mode for scrambled eggs is: stir-fry for 30 seconds, and the second preset time length corresponding to scrambled eggs can be 3 seconds. If the usage time length of the cooking mode corresponding to at least one first candidate recipe is greater than the second preset time length corresponding to the first candidate recipe, it means that the user does "prefer" the recipe more, and further, the first candidate recipe is determined as a candidate recipe. If the usage time length of the cooking mode corresponding to each first candidate recipe is not greater than its corresponding second preset time length, at least one commonly used recipe predetermined according to the domain big data can be determined as a recommended recipe.
[0053] In the above steps, the candidate recipes can be further screened according to the browsing time and usage mode time of the recipes, and "invalid recipes" in the candidate recipes can be removed to improve the accuracy of recipe recommendations.
[0054] S204: Obtain the current price of ingredients of at least one candidate recipe on each shopping platform through a preset interface.
[0055] Among them, the preset interface can be an application programming interface corresponding to each shopping platform. Through the preset interface, the controller can access the current price data and historical price data of each shopping platform. Each shopping platform can be manually added and connected to the controller by the user, or it can be a shopping platform determined by the controller according to the current location and can be "delivered to home" for the user. Specifically, after determining at least one candidate recipe, the controller can obtain the price of each ingredient corresponding to each candidate recipe on each shopping platform through the preset interface. For example, the candidate recipes include stir-fried Chinese cabbage and scallion ribs. The ingredients required for stir-fried Chinese cabbage are: Chinese cabbage, scallions and chili peppers. The ingredients required for scallion ribs are: ribs, scallions, ginger and garlic. The shopping platform includes shopping platform 1 and shopping platform 2. The controller can obtain the prices of Chinese cabbage, ribs, scallions, ginger, garlic and chili peppers on shopping platform 1 and shopping platform 2 through the preset interface. The price of stir-fried choy sum corresponding to shopping platform 1 is determined based on the price of choy sum, onion and chili peppers on shopping platform 1, and the price of scallion ribs corresponding to shopping platform 1 is determined based on the price of spare ribs, onion, ginger and garlic on shopping platform 1. The price of stir-fried choy sum corresponding to shopping platform 2 is determined based on the price of choy sum, onion and chili peppers on shopping platform 2, and the price of scallion ribs corresponding to shopping platform 2 is determined based on the price of spare ribs, onion, ginger and garlic on shopping platform 2.
[0056] S205: Determine a price difference corresponding to at least one candidate recipe based on the current price of ingredients of at least one candidate recipe on each shopping platform and the historical average price of at least one candidate recipe on each shopping platform.
[0057] Specifically, after determining the current ingredient prices of each candidate recipe on each shopping platform, the ingredient price corresponding to the shopping platform with the lowest ingredient price is selected as the ingredient price of at least one candidate recipe. The historical average price of each candidate recipe on the shopping platform is obtained through a preset interface, and the ingredient price of the candidate recipe at the current moment is subtracted from the historical average price to obtain the price difference of the candidate recipe.
[0058] Exemplarily, the candidate recipes include stir-fried choy sum, stir-fried green vegetables with mushrooms, scallion ribs, and braised beef brisket. The price of the ingredients for stir-fried choy sum corresponding to shopping platform 1 is 5 yuan, the price of the ingredients for stir-fried green vegetables with mushrooms is 7 yuan, the price of the ingredients for scallion ribs is 20 yuan, and the price of the ingredients for braised beef brisket is 50 yuan. The price of the ingredients for stir-fried choy sum corresponding to shopping platform 2 is 6 yuan, the price of the ingredients for stir-fried green vegetables with mushrooms is 6 yuan, the price of the ingredients for scallion ribs is 18 yuan, and the price of the ingredients for braised beef brisket is 57 yuan. Then, the historical average price of stir-fried choy sum (assuming 7 yuan) and the historical average price of braised beef brisket (assuming 56 yuan) corresponding to shopping platform 1 are obtained, and the historical average price of the ingredients for stir-fried green vegetables with mushrooms (assuming 18 yuan) and the historical average price of the ingredients for stir-fried green vegetables with mushrooms (assuming 7 yuan) corresponding to shopping platform 2 are obtained. Furthermore, it was determined that the price difference for stir-fried choy sum was 2 yuan, the price difference for stir-fried vegetables with mushrooms was 1 yuan, the price difference for spare ribs with scallions was 0 yuan, and the price difference for braised beef brisket was 6 yuan.
[0059] If the number of candidate recipes is one, the candidate recipe is directly determined as a recommended recipe, and the prices of ingredients of the recipe on various shopping platforms are obtained, and the prices of ingredients on various shopping platforms are displayed to the user.
[0060] S206. Determine at least one recommended recipe based on the price difference corresponding to at least one candidate recipe.
[0061] In actual applications, if there is a discount for a certain ingredient, the price difference of the ingredient will be large, and users will generally be more inclined to choose ingredients with discounts. The prices of different types of ingredients vary greatly, and the recommended recipes required by users may be recipes of multiple different types. Therefore, it is more accurate to determine the recommended recipes based on the price difference of the same ingredient type. In this solution, optionally, after obtaining the price difference of at least one candidate recipe, the ingredient type of at least one candidate recipe is determined; if each ingredient type includes at least two candidate recipes, the candidate recipe with the largest price difference in each type is determined as at least one recommended recipe.
[0062] Among them, the ingredient types include vegetarian dishes and non-vegetarian dishes. Since the main ingredients of a general home-cooked recipe can determine the cost of the recipe, if the ingredients of a recipe mainly include vegetarian dishes, the ingredient type of the recipe is determined to be vegetarian, such as pure vegetarian stir-fried Chinese cabbage, such as minced meat vermicelli and minced meat eggplant, which are mainly vegetarian dishes and supplemented with non-vegetarian dishes. If the ingredients of a recipe mainly include non-vegetarian dishes, the ingredient type of the recipe is determined to be non-vegetarian, such as braised beef brisket, green pepper pork shreds, and big plate chicken. Specifically, after obtaining the price difference between the candidate recipe and the candidate recipe, the ingredient type of the candidate recipe is determined, and the recipe with the largest price difference is selected from the candidate recipes of each type, and the recipe is determined as the recommended recipe. If a certain ingredient type only includes one candidate recipe, the candidate recipe of the ingredient type is determined as the recommended recipe.
[0063] For example, the candidate recipes include stir-fried cauliflower, stir-fried green vegetables with mushrooms, scallion spareribs, and braised beef brisket. The price difference of stir-fried cauliflower is 2 yuan, the price difference of stir-fried green vegetables with mushrooms is 1 yuan, the price difference of scallion spareribs is 0 yuan, and the price difference of braised beef brisket is 6 yuan. It can be further determined that the recommended recipes are stir-fried cauliflower and braised beef brisket.
[0064] In the above steps, according to the price difference of recipes with different types of ingredients, recipes corresponding to ingredients with greater discounts can be selected for the user, and recipes that better meet the user's needs and can reduce the user's financial expenditure can be recommended to the user.
[0065] S207: Display at least one recommended recipe to the user.
[0066] In this embodiment, a recipe recommendation instruction sent by a user is received. If the recipe recommendation instruction does not include ingredient information, the target time period at the current moment is determined based on each time period in the historical database, and at least one candidate recipe corresponding to the target time period is determined from the historical database, and at least one candidate recipe is determined based on the browsing time of at least one candidate recipe and the use time of the cooking mode corresponding to at least one candidate recipe. The ingredient price of at least one candidate recipe at the current moment on each shopping platform is obtained through a preset interface. According to the ingredient price of at least one candidate recipe at the current moment on each shopping platform and the historical average price of at least one candidate recipe on each shopping platform, the price difference corresponding to at least one candidate recipe is determined. At least one recommended recipe is determined based on the price difference corresponding to at least one candidate recipe. The technical solution of this embodiment can accurately determine the alternative recipes according to the data of the user using the recipes in the historical period. The alternative recipes are further screened according to the browsing time and the use mode time of the recipes, and the recipes corresponding to the ingredients with greater discounts are selected for the user according to the price difference of the recipes of different ingredient types. So that the recipes that are more in line with the user's needs can be accurately and comprehensively recommended to the user in the end, improving the user experience.
[0067] Figure 3 This is a third flow chart of a recipe recommendation method provided by the present application. The specific method can be as follows: Figure 3 As shown, the method may include the following steps:
[0068] S301. Receive a recipe recommendation instruction sent by a user.
[0069] S302: If the recipe recommendation instruction includes ingredient information, the ingredient information is matched with the ingredient information of each recipe in the historical database to obtain a matching result.
[0070] The matching result is a successful match or a failed match. Specifically, when a recipe recommendation instruction sent by a user is received, and the recipe recommendation instruction includes ingredient information, it means that there are remaining ingredients at home, or the user needs the controller to recommend a recipe based on the ingredients. After obtaining the ingredient information, the ingredient information is matched with the ingredient information of each recipe in the historical database. If the ingredient information sent by the user includes the main ingredients of a recipe, the matching result is determined to be a successful match, otherwise, the matching result is determined to be a failed match.
[0071] S303: Determine at least one ingredient recipe based on the matching result, and determine at least one recommended recipe based on the at least one ingredient recipe.
[0072] The ingredient recipe is a recipe that successfully matches the ingredient information sent by the user. Specifically, if the ingredient recipe that successfully matches the ingredient information sent by the user includes only one recipe, the ingredient recipe is determined to be a recommended recipe. If the ingredient recipe includes multiple recipes, the recipe that the user prefers more can be selected as the recommended recipe based on the information in the history database. In this solution, optionally, if the ingredient recipe includes multiple recipes, the number of selections of each ingredient recipe can be determined from the history database, and the ingredient recipe with the most selections can be determined as the recommended recipe.
[0073] For example, the food information sent by the user includes potatoes and chicken. The controller matches the food information with the food information of each recipe in the history database, and the obtained food recipes include: ground pot chicken, farmhouse potato stewed chicken, and large plate chicken. The history database records that the user selected ground pot chicken 5 times, selected farmhouse potato stewed chicken 10 times, and selected large plate chicken 1 time. According to the number of selections of each food recipe, it can be determined that the recommended recipe is farmhouse potato stewed chicken.
[0074] In the above steps, the controller can recommend recipes that the user prefers more to the user according to the number of times the user selects each ingredient recipe, thereby meeting the user's needs for recommended recipes.
[0075] S304: Display at least one recommended recipe to the user.
[0076] The technical solution of this embodiment receives a recipe recommendation instruction sent by a user. If the recipe recommendation instruction includes ingredient information, the ingredient information is matched with the ingredient information of each recipe in the historical database to obtain a matching result. The matching result is a successful match or a failed match. At least one ingredient recipe is determined based on the matching result, and at least one recommended recipe is determined based on the at least one ingredient recipe. The at least one recommended recipe is displayed to the user. The technical solution of this embodiment can accurately recommend recipes that meet the user's needs to the user based on the ingredient information provided by the user, thereby improving the efficiency of recipe recommendations and improving the user experience.
[0077] Figure 4 This is a schematic diagram of the structure of a recipe recommendation device provided by the present application, which is suitable for executing a recipe recommendation method provided by the present application. Figure 4 As shown, the device may specifically include:
[0078] The instruction receiving module 401 is used to receive a recipe recommendation instruction sent by a user;
[0079] A first determining module 402 is configured to obtain at least one candidate recipe corresponding to the current moment from a predetermined historical database if the recipe recommendation instruction does not include ingredient information;
[0080] The second determination module 403 is used to obtain the price of ingredients corresponding to at least one candidate recipe at the current moment, and determine at least one recommended recipe based on the price of ingredients and at least one candidate recipe;
[0081] The recipe recommendation module 404 is used to display at least one recommended recipe to the user.
[0082] Optionally, the first determining module 402 is specifically configured to: determine the target time period where the current moment is located based on each time period in the history database, and determine at least one candidate recipe corresponding to the target time period from the history database;
[0083] At least one candidate recipe is determined based on a browsing time of the at least one candidate recipe and a usage time of a cooking mode corresponding to the at least one candidate recipe.
[0084] Optionally, the first determining module 402 is further configured to: if the browsing time of at least one candidate recipe is greater than a first preset time, determine at least one candidate recipe as a first candidate recipe;
[0085] If the usage time of the cooking mode corresponding to at least one first candidate recipe is greater than its corresponding second preset time, the at least one first candidate recipe is determined as at least one candidate recipe.
[0086] Optionally, the second determination module 403 is specifically configured to: obtain the current price of ingredients of at least one candidate recipe on each shopping platform through a preset interface;
[0087] Determine a price difference corresponding to at least one candidate recipe based on the current price of ingredients of at least one candidate recipe on each shopping platform and the historical average price of at least one candidate recipe on each shopping platform;
[0088] At least one recommended recipe is determined based on a price difference corresponding to at least one candidate recipe.
[0089] Optionally, the second determination module 403 is further configured to: determine an ingredient type of at least one candidate recipe;
[0090] If each ingredient type includes at least two candidate recipes, the candidate recipe with the largest price difference in each type is determined as at least one recommended recipe.
[0091] Optionally, the second determination module 403 is further configured to: if the recipe recommendation instruction includes ingredient information, match the ingredient information with the ingredient information of each recipe in the historical database to obtain a matching result; the matching result is a matching success or a matching failure;
[0092] At least one ingredient recipe is determined based on the matching result, and at least one recommended recipe is determined based on the at least one ingredient recipe.
[0093] Optionally, the second determining module 403 is further configured to: if there are at least two ingredient recipes, determine the number of selections of the at least two ingredient recipes from the history database;
[0094] The ingredient recipe with the most selection times is determined as the recommended recipe.
[0095] The state control device of the clothes drying device provided in this application can execute a recipe recommendation method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in this embodiment, please refer to the description in any method embodiment of this application.
[0096] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0097] Figure 5 A schematic diagram of the structure of the electronic device provided in this application. Figure 5 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0098] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0099] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0100] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a recipe recommendation method.
[0101] In some embodiments, a recipe recommendation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of a recipe recommendation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a recipe recommendation method in any other appropriate manner (e.g., by means of firmware).
[0102] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0103] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow charts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0104] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0105] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0106] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0107] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0108] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
[0109] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
[0110] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A recipe recommendation method, It is characterized in that The method comprises: Receive recipe recommendation instructions sent by users; If the recipe recommendation instruction does not include ingredient information, obtaining at least one candidate recipe corresponding to the current moment from a predetermined historical database; Obtaining an ingredient price corresponding to at least one candidate recipe at a current moment, and determining at least one recommended recipe based on the ingredient price and at least one candidate recipe; At least one recommended recipe is displayed to the user.
2. The method according to claim 1, It is characterized in that The history database includes the browsing time of each recipe and the usage time of the cooking mode corresponding to each recipe; Acquiring at least one candidate recipe corresponding to the current moment from a predetermined historical database includes: Determine a target time period where the current moment is located based on each time period in the history database, and determine at least one candidate recipe corresponding to the target time period from the history database; At least one candidate recipe is determined based on a browsing time of the at least one candidate recipe and a usage time of a cooking mode corresponding to the at least one candidate recipe.
3. The method according to claim 2, It is characterized in that Determining at least one candidate recipe based on a browsing time of at least one candidate recipe and a usage time of a cooking mode corresponding to at least one candidate recipe includes: If the browsing time of at least one candidate recipe is longer than the first preset time, determining at least one candidate recipe as a first candidate recipe; If the usage time of the cooking mode corresponding to at least one first candidate recipe is greater than its corresponding second preset time, the at least one first candidate recipe is determined as at least one candidate recipe.
4. The method according to claim 1, It is characterized in that Acquiring an ingredient price corresponding to at least one candidate recipe at a current moment, and determining at least one recommended recipe based on the ingredient price and at least one candidate recipe, including: Obtaining the current price of ingredients of at least one candidate recipe on each shopping platform through a preset interface; Determine a price difference corresponding to at least one candidate recipe based on the current price of ingredients of at least one candidate recipe on each shopping platform and the historical average price of at least one candidate recipe on each shopping platform; At least one recommended recipe is determined based on a price difference corresponding to at least one candidate recipe.
5. The method according to claim 4, It is characterized in that Determining at least one recommended recipe based on the price difference corresponding to at least one candidate recipe includes: determining an ingredient type of at least one candidate recipe; If each ingredient type includes at least two candidate recipes, the candidate recipe with the largest price difference in each type is determined as at least one recommended recipe.
6. The method according to claim 1, It is characterized in that The method further comprises: If the recipe recommendation instruction includes ingredient information, the ingredient information is matched with the ingredient information of each recipe in the historical database to obtain a matching result; the matching result is a matching success or a matching failure; At least one ingredient recipe is determined based on the matching result, and at least one recommended recipe is determined based on the at least one ingredient recipe.
7. The method according to claim 6, It is characterized in that Determining at least one recommended recipe based on at least one ingredient recipe includes: If there are at least two ingredient recipes, determining the number of selections of the at least two ingredient recipes from the historical database; The ingredient recipe with the most selection times is determined as the recommended recipe.
8. A recipe recommendation device, It is characterized in that The device comprises: An instruction receiving module, used for receiving a recipe recommendation instruction sent by a user; A first determining module, configured to obtain at least one candidate recipe corresponding to the current moment from a predetermined historical database if the recipe recommendation instruction does not include ingredient information; A second determination module is used to obtain the price of ingredients corresponding to at least one candidate recipe at the current moment, and determine at least one recommended recipe based on the ingredient price and at least one candidate recipe; The recipe recommendation module is used to display at least one recommended recipe to the user.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, a recipe recommendation method as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, a recipe recommendation method as described in any one of claims 1 to 7 is implemented.
