Recipe recommendation method and device and electronic equipment

By combining the user's exercise and health information and selected ingredients labels, we output recipe recommendation information that meets the user's health needs, solving the problem that users find it difficult to quickly find recipes that meet their own health management needs, and achieving efficient recipe recommendations.

CN119943281APending Publication Date: 2025-05-06VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510013150.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

When users browse a variety of ingredients, it is difficult for users to quickly find recipes that meet their health management needs, and the existing technology cannot effectively solve this problem.

Method used

By receiving user input, combining user's exercise and health information and the food label on the display, we output recipe recommendation information that meets user's health needs.

Benefits of technology

It realizes the rapid recommendation of recipes that meet the requirements based on the user's specific health needs and ingredients selected, and improves the efficiency of users in finding recipes that meet their own health management needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119943281A_ABST
    Figure CN119943281A_ABST
Patent Text Reader

Abstract

The invention discloses a recipe recommendation method and device and electronic equipment, and belongs to the technical field of electronic equipment. The method comprises the following steps: receiving first input; in response to the first input, outputting recipe recommendation information based on the user exercise health information and a food material identifier selected in a first interface displayed on a display screen by the first input; wherein the first interface comprises at least one food material identifier, and the food material identifier is used for indicating food materials.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a recipe recommendation method, device and electronic equipment. Background Art

[0002] With the development of Internet technology, people often use shopping applications and social applications to browse a variety of ingredients. When users are not familiar with the browsed ingredients, they need to search for the browsed ingredients to obtain recipes using the browsed ingredients as raw materials. However, the dishes made with the recipes may not meet the health management needs of the users, so the users need to spend a lot of time to select recipes that meet their needs from the retrieved recipes. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a recipe recommendation method, device and electronic device that can provide recipes that meet the health management needs of different users.

[0004] In a first aspect, an embodiment of the present application provides a recipe recommendation method, the method comprising:

[0005] receiving a first input;

[0006] In response to the first input, outputting recipe recommendation information based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen;

[0007] Among them, the first interface includes at least one food ingredient identifier, and the food ingredient identifier is used to indicate the food ingredient.

[0008] In a second aspect, an embodiment of the present application provides a recipe recommendation device, the device comprising:

[0009] A receiving module, configured to receive a first input;

[0010] A processing module, configured to output recipe recommendation information in response to the first input based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen;

[0011] Among them, the first interface includes at least one food ingredient identifier, and the food ingredient identifier is used to indicate the food ingredient.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method provided in the first aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method provided in the first aspect are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method provided in the first aspect.

[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method provided in the first aspect.

[0016] In an embodiment of the present application, through the user's sports health information and the ingredient identifier selected in the first interface displayed on the display screen as the first input, the recipe recommendation information uses the selected ingredient information as raw materials and also matches the user's sports health information. The recipe recommendation information can meet the different health management needs of different users. Users can browse the recipe recommendation information to know how to prepare dishes with the ingredients represented by the ingredient identifier. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flowchart of a recipe recommendation method provided by some embodiments of the present application;

[0018] Figure 2 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0019] Figure 3 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0020] Figure 4 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0021] Figure 5 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0022] Figure 6 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0023] Figure 7 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0024] Figure 8 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0025] Fig. 9is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0026] Fig.10 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0027] Fig.11 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0028] Fig.12 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0029] Fig.13 is a schematic diagram of an interface of a recipe recommendation method provided in some embodiments of the present application;

[0030] Fig.14 is a schematic diagram of the structure of a recipe recommendation device provided in some embodiments of the present application;

[0031] Fig.15 is a schematic diagram of the structure of an electronic device provided by some embodiments of the present application;

[0032] Fig.16 It is a schematic diagram of the hardware structure of the electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0034] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0035] It should be noted that the recipe recommendation method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, and vehicle-mounted electronic devices. In some embodiments of the present application, the recipe recommendation method provided in the embodiments of the present application is illustrated by taking an electronic device as the execution subject to execute the recipe recommendation method.

[0036] For ease of understanding, the technical terms involved in this application are explained and described below.

[0037] Logo: text, symbols, images, etc. used to indicate information. Controls or other containers can be used as carriers to display information, including but not limited to text logos, symbol logos, and image logos.

[0038] Intelligent agent: An application that can perceive the environment, make decisions and take actions to achieve specific goals. Intelligent agents have a certain degree of autonomy and intelligence.

[0039] Sports and health agent: An agent that collects, processes and analyzes users’ sports data (such as heart rate, number of steps, calories burned, etc.) through data analysis algorithms and machine learning models, and provides users with personalized exercise plans and health management suggestions based on the sports data.

[0040] Control: A control (also called part, component, widget or control) is a graphical user interface element and the basic building block of the user interface, such as a window or text box, displayed in the program interface of any application. A control can be a button, text box, label, etc., which is used to control all data processed by each application and the interactive operations on this data.

[0041] The recipe recommendation method provided in the embodiment of the present application can be applied to the scenario where the user searches for recipes for the browsed ingredients. Among them, one specific application scenario is that when the user has a muscle gain demand, he needs to search for recipes that are conducive to muscle gain based on the ingredients he can eat. For example, the user is allergic to beef and mutton and can only eat pork, eggs and other high-protein ingredients other than beef and mutton. Another specific application scenario is that when the user needs to control his own weight, he needs to search for recipes that reduce calorie intake based on his favorite ingredients.

[0042] The recipe recommendation method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0043] Figure 1 is a flowchart of a recipe recommendation method provided by an embodiment of the present application. Figure 1 As shown, the embodiment of the present application provides a recipe recommendation method, which may include:

[0044] Step 110, receiving a first input;

[0045] In the embodiment of the present application, the first input may be an input for the user to select ingredients. The first input may be a touch input of the electronic device by the user through a finger or a touch device such as a stylus, for example, the touch input may be a touch click operation, or a sliding operation, or other operations. The first input may also be an input operation performed by the user with the help of other input devices such as a mouse, a remote control device, a keyboard, etc. connected to the electronic device. In some embodiments of the present application, the above-mentioned first input is used to indicate the selection of an ingredient identification. Exemplarily, the above-mentioned first input includes but is not limited to: a touch input of the ingredient identification displayed in the first interface by the user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited thereto. The specific gesture in the embodiment of the present application may be any one of a single-click gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double-click gesture; the click input in the embodiment of the present application may be a single-click input, a double-click input, or any number of click inputs, etc., and may also be a long press input or a short press input. For example, the above-mentioned first input may be: a click input of the user on any ingredient identification in the first interface. For example, the first input may also be: a double-click gesture of the user on the first interface, so as to select all the ingredient identifiers displayed on the first interface as selected ingredient identifiers.

[0046] Step 120, in response to the first input, outputting recipe recommendation information based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen;

[0047] The first interface includes at least one food ingredient identifier, and the food ingredient identifier is used to indicate the food ingredient.

[0048] The first interface may be a program interface of any application, such as a program interface of a shopping application, a program interface of a social application, a program interface of an artificial intelligence AI assistant program, a program interface of a browser program, etc. The first interface displays one or more ingredient labels, which may be an image of the ingredient or a name of the ingredient. Figure 2As shown, in the first interface of the shopping application, there are displayed a plurality of ingredient labels corresponding to ingredients for the user to purchase, including an ingredient label 21a indicating cabbage, an ingredient label 21b indicating ham, an ingredient label 21c indicating eggs, an ingredient label 21d indicating apples, and an ingredient label 21e indicating seafood. If the user needs to prepare a dish using cabbage, eggs, and seafood as ingredients, the user can click or long press the ingredient labels 21a, 21c, and 21e displayed in the first interface to complete the selection of the ingredients cabbage, eggs, and seafood.

[0049] Optionally, the ingredient indicated by the ingredient identification selected in the first input in the first interface is determined as the ingredient selected by the user, and the ingredient selected by the user is used as the raw material in the output recipe recommendation information. The recipe recommendation information does not include ingredients indicated by the ingredient identification not selected by the user in the first interface.

[0050] The user's sports health information includes but is not limited to the user's physiological data, sports information performed within a preset time period, etc. The user's physiological data includes but is not limited to age, gender, weight, height, body fat, heart rate, blood oxygen saturation, etc. The sports information performed within a preset time period includes but is not limited to the type of sports, sports duration, energy consumption, etc.

[0051] In some embodiments of the present application, a database including a variety of recipes is pre-set, and based on the user's sports health information and the ingredient identifier selected by the first input in the first interface, recipes that meet the selected ingredient identifier and the user's sports health information are filtered out from the database and output as recipe recommendation information.

[0052] In some embodiments of the present application, a language model is obtained by pre-training. The user's sports health information and the food identification selected by the first input in the first interface are input into the language model, and the language model outputs recipe recommendation information that matches the selected food identification and the user's sports health information. The pre-trained language model can be based on a deep algorithm model such as a convolutional neural network (CNN), a deep neural network (DNN), or a recurrent neural network (RNN).

[0053] Exemplarily, in a scenario where the user has a need to gain muscle, the user clicks on the ingredient label indicating corn and the ingredient label indicating chicken displayed on the first interface. The electronic device outputs recipe recommendation information about corn chicken breast meatballs based on the body fat percentage "20%" in the user's sports health information and the selected ingredient label indicating corn and the ingredient label indicating chicken. The recipe uses corn and chicken as ingredients.

[0054] For example, in a scenario where the user needs to control his weight. The user clicks on the food label indicating corn and the food label indicating chicken displayed on the first interface, and the electronic device calculates the body mass index (BMI) "28kg / m 2 ", and the selected ingredient label indicating corn and the ingredient label indicating chicken, output the recipe recommendation information about corn chicken porridge, which uses corn and chicken as ingredients.

[0055] In an embodiment of the present application, through the user's sports health information and the ingredient identifier selected in the first interface displayed on the display screen as the first input, the recipe recommendation information uses the selected ingredient information as raw materials and also matches the user's sports health information. The recipe recommendation information can meet the different health management needs of different users. Users can browse the recipe recommendation information to know how to prepare dishes with the ingredients represented by the ingredient identifier.

[0056] In some embodiments of the present application, the first interface is a program interface of a first application, and the first application is a shopping application or a social application; optionally, after step 110, the method further includes:

[0057] Step 130, displaying a dialog window of a second application, the dialog window including a first prompt message and a first input control; the second application is an artificial intelligence AI assistant program, the first prompt message is used to prompt the user whether to use the food identification function, and the first input control is used to input control information.

[0058] The control information in the embodiment of the present application is specifically a prompt word (prompts), which refers to the input text provided by the user to the artificial intelligence AI assistant program. The function of the prompt word is to instruct the artificial intelligence AI assistant program to generate relevant outputs. The control information is an instruction or request issued by the user to the second application through the first input control. The control information includes text that can be understood by the second application and indicates that the food label is to be identified. For example, the control information can be "Please identify the ingredients in the picture", "Identify food", "Please identify", etc.

[0059] Step 140: upon receiving a control input to the first input control, displaying in the dialog window the ingredient information obtained by the second application program identifying the ingredient identifier selected by the first input.

[0060] The first application and the second application are different applications, and the first interface and the dialogue window are interfaces provided by different applications respectively. Optionally, when the first application is a shopping application, the first interface can display links provided by one or more merchants for users to purchase ingredients corresponding to the ingredient identifiers. Optionally, when the first application is a social application, the first interface can display chat records, life dynamics, etc. shared by one or more users. The second application is an artificial intelligence AI assistant program, and the second application can be a conversational artificial intelligence program. Users can communicate, search, entertain, learn, etc. with the second application in a dialogue window in an interactive way of natural language dialogue.

[0061] When browsing the first interface, the user makes a first input to the food label displayed in the first interface, triggering the electronic device to switch to the second application in the foreground and display the dialog window of the second application. In some embodiments of the present application, the dialog window of the second application can be displayed on the first interface in the form of a floating window. Figure 3 In some embodiments of the present application, the dialog window 32 is displayed in the form of a floating window on the first interface 31. In other embodiments, the dialog window of the second application can be displayed in full screen.

[0062] The first prompt information may be interactive information output by the second application based on the food information selected by the first input. After the user browses to the first prompt information, the control information may be input through the first input control, and the second application may identify the food identifier selected by the first input based on the control information, and display the food information obtained by identifying the food identifier selected by the first input in the dialog window. The first input control may be a text input box for inputting text, a control for starting voice input, a control for users to click to input, etc. Figure 3 As shown, in some embodiments of the present application, the first prompt information 33 is displayed in the dialog window 32, and the first input control 34 is displayed. Figure 4 As shown, when the control information input by the user in the first input control is "Please identify the ingredients in the picture", in the dialog window 32, the ingredient information 41 obtained by the second application identifying the ingredient identification selected by the first input is displayed.

[0063] In some embodiments of the present application, the second application can recognize the food identification of the first input selection through a locally pre-set recognition model. In other embodiments, the second application sends the food identification of the first input selection to a cloud server, and the cloud server recognizes the food identification of the first input selection, and after obtaining the corresponding food information, the cloud server sends the food information to the second application, and displays at least one food information in the dialog window for the user to browse.

[0064] Exemplarily, in a scenario where the user has a need to gain muscle, the user clicks on the corn ingredient icon in the ingredient icons displayed on the first interface to select the ingredient icon indicating corn, and the electronic device displays the dialog window of the second application in full screen form. The dialog window displays the first prompt information "Do you identify the ingredient?" and the user operates the first input control to input voice control information. When the control information entered by the user in the first input control is "Identify food", the identified ingredient information "corn" is displayed in the dialog window.

[0065] For example, Figure 2 As shown, in the scenario where the user has a need to control weight, the user clicks on the food label 21b indicating ham, the food label 21c indicating eggs, the food label 21d indicating apples, and the food label 21e indicating fish displayed on the first interface 31 to select the food label 21b, the food label 21c, the food label 21d, and the food label 21e; Figure 3 As shown, the aforementioned click operation is used to control the electronic device to switch the second application to the foreground, and display the dialog window 32 of the second application in the form of a floating window. The dialog window 32 displays the first prompt information 33 "Received a picture, can provide you with the following services"; Figure 4 As shown, the user clicks on the first input control displayed as "Identify Food", and in the dialog window, the ingredient information 41 "The following ingredients are identified: ham, eggs, apples, fish" is displayed.

[0066] In some embodiments of the present application, optionally, before step 140, the following is further included:

[0067] Step 150: determine a circled area according to the first input.

[0068] The circled area can be determined based on the moving trajectory of the first input. For example: the user makes a moving gesture, and the food identifications that the moving trajectory passes through are all determined as the food information in the circled area. For another example: the user makes a moving gesture, and the food information located within the circular moving trajectory is all determined as the food identification in the circled area. For another example: the user makes a drag gesture, and a selection box that changes size as the drag gesture moves is displayed, and the boundary of the circled area is determined by the selection box. Among them, the food identification in the circled area is the food identification selected by the user.

[0069] In step 150, a screenshot of the circled area may be taken, and image recognition may be performed on the content of the screenshot to obtain the food information. Alternatively, digital information displayed in the circled area may be obtained, and the digital information may be analyzed to obtain the food information.

[0070] Step 160: The second application program identifies the food label in the circled area to obtain food information; wherein the food information includes the food name of the food indicated by the food label.

[0071] By identifying the ingredients in the circled area, the ingredient information is obtained, so that the ingredient information selected by the first input in the first interface can be quickly analyzed and obtained, and the user does not need to input the required ingredient information into the second application one by one.

[0072] For example, in a scenario where the user has a need to increase muscle mass, the user makes a drag gesture to display and select the circled area of ​​the food ingredient identification indicating corn in the first interface. The dialog window of the second application is displayed in full screen, and the dialog window displays the first prompt information "Do you want to identify the food ingredient?" The user operates the first input control to input voice control information. When the control information input by the user in the first input control is "Please identify", the identified food ingredient information "corn" is displayed in the dialog window.

[0073] For example, in a scenario where the user has a need to control weight. Figure 5 As shown, five kinds of food labels are displayed in order from top to bottom in the first interface 31, namely, food label 21a indicating cabbage, food label 21b indicating ham, food label 21c indicating egg, food label 21d indicating apple, and food label 21e indicating fish. Click to select food label 21b, food label 21c, food label 21d, and food label 21e. The user makes a sliding gesture on the first interface 31. The moving path of the sliding gesture is a ring around food label 21b, food label 21c, food label 21d, and food label 21e, and determines that food label 21b, food label 21c, food label 21d, and food label 21e are food labels within the circled area 51.

[0074] In some embodiments of the present application, optionally, before step 120, the method further includes:

[0075] Step 170, receiving a second input.

[0076] The second input can be a touch input of the electronic device by the user through a finger or a touch device such as a stylus, and the second input is used to control the electronic device to display the interactive interface of the sports and health intelligent body. For example, the touch input can be a touch click operation, a sliding operation, or other operations. The second input can also be an input operation performed by the user with the help of other input devices such as a mouse, a remote control device, a keyboard, etc. connected to the electronic device. In some embodiments of the present application, the above-mentioned second input is used to call up the interactive interface of the sports and health intelligent body. Exemplarily, the above-mentioned second input includes but is not limited to: the user clicks on the sports and health intelligent body icon displayed on the second interface through a touch device such as a finger or a stylus to display the interactive interface of the sports and health intelligent body.

[0077] Step 180, in response to the second input, display a second interface; the second interface is an interactive interface of the sports and health intelligent body, and the second interface includes a second input control.

[0078] The sports and health agent is an agent installed in the second application. The agent perceives changes in the environment, makes judgments and decisions based on the knowledge and algorithms it has learned, and then performs actions to affect the environment or achieve a predetermined goal. The sports and health agent is a model pre-trained based on multiple samples of user sports and health information.

[0079] The sports health intelligent body can collect the user's step count, exercise duration, exercise type, exercise energy consumption and other exercise information within a preset time period through sensors set in the user's mobile phone, smart wearable devices and other devices. It can also collect the user's weight, heart rate, blood oxygen and other physiological data information. The sports health intelligent body can also receive physical examination reports and hospitalization information about the user uploaded by the user, or query medical institutions to obtain more professional physiological data information. The multiple data in the user's sports health information can be directly obtained by the sports health intelligent body, or generated by the sports health intelligent body based on one or more of the acquired data. For example: the bracelet worn by the user detects blood oxygen data and heart rate data, and the sports health intelligent body obtains the blood oxygen data and heart rate data detected by the bracelet, and the sports health intelligent body generates cardiovascular analysis information based on the blood oxygen data and heart rate data.

[0080] Step 190, when a third input to the second input control is received, the user's sports health information is obtained, and the user's sports health information and the sharing control are displayed on the second interface.

[0081] The second input control may be a text input box for inputting text information, a control for starting voice input, a control for the user to click and input, etc. The third input may be a touch input of the electronic device by the user through a finger or a touch device such as a stylus, for example, the touch input may be a touch click operation, or a sliding operation, or other operations. The third input may also be an input operation performed by the user with the aid of other input devices such as a mouse, a remote control device, a keyboard, etc. connected to the electronic device. In some embodiments of the present application, the third input is used to call up the user's sports health information and sharing controls. Exemplarily, the third input includes but is not limited to: the user enters text information in the text input box in the second interface through a touch device such as a finger or a stylus, triggering the display of the user's sports health information and sharing controls adapted to the text information in the second interface. Exemplarily, the third input includes but is not limited to: the user clicks the button control displayed on the second interface through a touch device such as a finger or a stylus to trigger the display of the user's sports health information and sharing controls in the second interface.

[0082] Step 200: When a fourth input to the sharing control of the second interface is received, the user's sports health information is displayed in the dialog window of the second application.

[0083] The sharing control may be a text input box for inputting text information, a control for starting voice input, a button for the user to click and input, etc. The fourth input may be a touch input of the electronic device by the user through a finger or a touch device such as a stylus, for example, the touch input may be a touch click operation, or a sliding operation, or other operations. The fourth input may also be an input operation performed by the user with the aid of other input devices such as a mouse, a remote control device, a keyboard, etc. connected to the electronic device. In some embodiments of the present application, the fourth input is used to share the user's sports health information to the second application. Exemplarily, the second input includes but is not limited to: the user clicks and inputs the button control displayed on the interactive interface of the sports health intelligent body through a touch device such as a finger or a stylus, and displays the user's sports health information in the dialog window of the second application. Exemplarily, the second input includes but is not limited to: the user performs a long press operation on the user's sports health information through a touch device such as a finger or a stylus, clicks and inputs the display sharing control, and displays the user's sports health information in the dialog window of the second application.

[0084] Exemplarily, in a scenario where the user has a need to gain muscle, the user clicks on the second input control displayed on the second interface. Upon receiving the click input on the second input control, the sports health intelligent body obtains the user's sports health information of body fat percentage "20%", and displays the body fat percentage "20%" and the sharing control on the second interface. Upon receiving the click input on the sharing control on the second interface, the user's sports health information of body fat percentage "20%" is displayed in the dialog window of the second application.

[0085] For example, in a scenario where the user needs to control his weight. Figure 6 , display the interactive interface 61 of the sports health agent, click the second input control 62 displayed as "My user sports health information". Figure 7 , the sports health agent obtains the user's sports health information and displays the user's sports health information 71 in the form of a dialog box on the interactive interface 61 of the sports health agent as "5484 steps, 38 minutes of exercise, 215 calories of active energy, 942 calories of resting energy, 75 beats / min of resting heart rate, 98% of blood oxygen". The user can click the sharing control 72 of "Share to the second application". Please refer to Figure 8 , so that the dialog window 32 of the second application displays the user's sports health information 71.

[0086] In the method provided in the present application, a second interface is displayed in response to a second input; when a third input to the second input control is received, the user's sports health information is obtained, and the user's sports health information and a sharing control are displayed on the second interface; when a fourth input to the sharing control of the second interface is received, the user's sports health information is displayed in the dialog window of the second application, so that the second application can obtain more accurate user sports health information through the sports health agent, improve the professionalism and accuracy of the recipe recommendation information, and thus make the dishes made from the recipe recommendation information more beneficial to the user's physical health.

[0087] In some embodiments of the present application, step 170 specifically includes: receiving a control input to a first input control;

[0088] When the first input control is a text information input box, the control input may be inputting text control information into the first input control; when the first input control is a voice input control, the control input may be inputting voice control information into the first input control. Exemplarily, the control input includes but is not limited to: a sliding input made by a user on the second interface through a touch device such as a finger or a stylus.

[0089] Optionally, step 180 specifically includes:

[0090] Step 1801, in response to a control input, displaying a program interface of a second application, wherein the program interface of the second application includes at least one intelligent agent icon;

[0091] Step 1802: upon receiving a selection input for a sports and health intelligent body icon among at least one intelligent body icon, displaying a second interface.

[0092] The second application may have one or more agents, and different agents are suitable for different scenarios. For example: the sports health agent is suitable for conversations related to sports health. The teaching agent is suitable for conversations related to education and learning. The picture creation agent is suitable for conversations about picture synthesis. One agent icon corresponds to one agent. When the second application includes multiple agents, the program interface of the second application can be displayed in response to a control input, and multiple agent icons are displayed in the program interface of the second application. When the second application includes one agent, the program interface of the second application can be displayed in response to a control input, and an agent icon is displayed in the program interface of the second application. Select the sports health agent icon from at least one agent icon displayed in the program interface of the second application to display the interactive interface of the sports health agent.

[0093] For example, in a scenario where the user has a need to increase muscle mass, the dialog window is displayed in full screen, a sliding input is made to the dialog window, a program interface of a second application is displayed in the form of a floating frame, at least one intelligent body icon is displayed in the program interface of the second application, a sports and health intelligent body icon is selected from the at least one intelligent body icon, and an interactive interface of the sports and health intelligent body is displayed.

[0094] In this embodiment, by displaying the program interface of the second application including at least one intelligent body icon, upon receiving a selection input of a sports and health intelligent body icon among the at least one intelligent body icon, the second interface is displayed to quickly call out the sports and health intelligent body.

[0095] In some other embodiments, step 170 specifically includes: receiving control input to the dialog window.

[0096] The control input to the dialog window may be a touch input to the electronic device by the user through a finger or a touch device such as a stylus. The touch input of a specific gesture input by the user may be any one of a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double click gesture. In some embodiments of the present application, the control input is an agent icon of an agent that controls the electronic device to display the second application.

[0097] Optionally, step 180 specifically includes:

[0098] Step 1803, in response to the control input, display at least one agent icon;

[0099] Step 1804: upon receiving a selection input for a sports and health intelligent body icon among at least one intelligent body icon, displaying a second interface.

[0100] In some embodiments of the present application, in response to the control input, the agent icons corresponding to all agents in the second application are displayed. In other embodiments of the present application, in response to the control input, the agent icons corresponding to some agents in the second application are displayed, and the agent icons corresponding to the some agents can be pre-selected and set from multiple agent icons.

[0101] For example, in a scenario where the user has a need to control weight, the dialog window is displayed in the form of a floating frame, a sliding input is made to the dialog window from the edge of the dialog window to the center of the dialog window, and in response to the sliding input, at least one intelligent body icon is displayed in full screen, and a sports and health intelligent body icon is selected from the at least one intelligent body icon to display the interactive interface of the sports and health intelligent body.

[0102] In this embodiment, steps 183 and 184 are provided to be different from steps 181 and 182 so as to provide a richer interaction method to trigger the interactive interface for displaying the sports health intelligent body.

[0103] In some embodiments of the present application, optionally, after step 200, the following is further included:

[0104] Step 210, receiving information input to a first input control, the information input is used to input recipe recommendation indication information;

[0105] Step 220, in response to the information input, displaying recipe recommendation indication information in the dialog window, and performing semantic analysis on the recipe recommendation indication information to obtain recipe requirement description information; wherein the recipe requirement description information includes at least one of the following: the meal time type of the recipe, the regional type of the recipe, and the nutritional requirement information of the recipe.

[0106] The recipe recommendation indication information is text or voice information input by the user through the first input control, and the recipe recommendation indication information may include the user's personalized requirements for the recipe. The recipe recommendation indication information may be semantically analyzed through a language model pre-set in a local or cloud server to obtain recipe requirement description information. The recipe requirement description information is a vector, character, etc. obtained by semantically analyzing the recipe recommendation indication information. The purpose and intention of the user inputting the recipe recommendation indication information can be known through the recipe requirement description information, so as to output recipe recommendation information that matches the recipe requirement description information.

[0107] The recipe requirement description information includes at least one of the following: the meal time type of the recipe, the regional type of the recipe, and the nutritional requirement information of the recipe. The meal time type of the recipe includes but is not limited to breakfast, lunch, dinner, afternoon tea, supper, etc. The regional type of the recipe includes but is not limited to cuisine, administrative region, etc. The cuisine can be Sichuan cuisine, Hunan cuisine, Cantonese cuisine. The administrative region can be China, the United States, Japan, etc. The nutritional requirement information of the recipe includes but is not limited to caloric content, nutritional ingredients, therapeutic effects, etc. For example: the recipe recommendation instruction information is "Please recommend a dinner suitable for Guangdong people", and the identified recipe requirement description information is "Guangdong" and "Dinner". For example: the recipe recommendation instruction information is "Please recommend a pasta for the Northwest region", and the identified recipe requirement description information is "Northwest region" and "pasta".

[0108] Step 120 specifically includes:

[0109] Step 1201, generating recipe recommendation information according to the user's sports health information, the recipe requirement description information and the ingredient identifier selected by the first input in the first interface displayed on the display screen;

[0110] Step 1202: Display recipe recommendation information in the dialog window of the second application.

[0111] The recipe recommendation information output by the second application is not only related to the user's sports health information and the selected ingredient identification, but also related to the recipe requirement description information.

[0112] For example, in a scenario where the user has a need to increase muscle mass, the second application's dialog window displays the user's sports health information of the ingredient information "corn" and "body fat percentage 20%". The received recipe recommendation instruction information of "recommend a breakfast" is semantically analyzed to obtain the recipe requirement description information of "breakfast", and the recipe recommendation information of "cornbread" is generated according to "body fat percentage 20%", "corn" and "breakfast".

[0113] For example, in a scenario where the user needs to control his weight. Figure 8 , the second application's dialog window 32 displays the food information 41 as "ham, eggs, apples, fish" and the user's sports health information 71 as "number of steps 5484, number of exercise minutes 38 minutes, active energy 215 kcal, resting energy 942 kcal, resting heart rate 75 beats / min, blood oxygen 98%". Please refer to Fig. 9 , perform semantic analysis on the recipe recommendation instruction information 91 "Please recommend a breakfast recipe for me today" received through the first input control 93, obtain the recipe requirement description information for "breakfast", and generate recipe recommendation information 92 for "Ham, Egg and Apple Roll" based on the ingredient information, user sports and health information and the generated recipe requirement description information.

[0114] In some embodiments of the present application, by performing semantic analysis on the received recipe recommendation indication information, recipe requirement description information is obtained, so that recipe recommendation information can be generated according to the user's sports health information, the recipe requirement description information, and the ingredient identifier selected in the first interface by the first input, so that the recipe recommendation information better meets the user's needs. Since the recipe recommendation indication information input by the user in the first input control can be expressed in various ways, the recipe recommendation indication information is semantically analyzed and the semantics of the recipe recommendation indication information is extracted to obtain the recipe requirement description information.

[0115] In some embodiments of the present application, optionally, step 121 specifically includes:

[0116] Step 1211, vectorizing the user's sports health information to obtain a first vector;

[0117] Step 1212, identifying the ingredient identifier of the first input selection to obtain ingredient information, and performing vector processing on the ingredient information to obtain a second vector;

[0118] Step 1213, vectorizing the recipe requirement description information to obtain a third vector;

[0119] Step 1214, concatenate the first vector, the second vector and the third vector to obtain a concatenated vector;

[0120] Step 1215, semantic encoding is performed on the concatenated vector to obtain semantic features;

[0121] Step 1216, perform self-attention processing on the semantic features to obtain recipe recommendation information.

[0122] Exemplarily, the user's sports health information is "5484 steps, 38 minutes of exercise, 215 calories of active energy, 942 calories of resting energy, 75 beats / min of resting heart rate, and 98% blood oxygen". The language model first segments the user's sports health information to obtain phrases (tokens) such as steps, 5485, steps, exercise, minutes, 38, minutes, etc. The embedding layer of the language model maps the phrases obtained by the segmentation to a first vector E1 through the embedding layer. The ingredient identifier of the first input selection is identified to obtain the ingredient information, and the embedding layer of the language model maps the ingredient information to a second vector E2 through the embedding layer. The user enters "Please recommend today's breakfast recipe for me" in the first input control displayed on the interactive interface. The language model segments the recipe recommendation indication information "Please recommend today's breakfast recipe for me" to obtain the phrases "please, help, me, recommend, today, breakfast, recipe", and the embedding layer of the language model maps the phrases obtained by the segmentation to a third vector E3 through the embedding layer.

[0123] The first vector, the second vector, and the third vector can be spliced ​​together horizontally or vertically to obtain a spliced ​​vector, and then the spliced ​​vector is input into the Transformer layer of the language model for semantic encoding to obtain semantic features; the semantic features are processed by self-attention to understand the semantic relationship, and after multiple layers of Transformer and self-attention processing, the recipe recommendation information is generated by an autoregressive strategy, that is, any word in the recipe recommendation information is related to the first vector, the second vector, and the third vector. The Transformer layer can decode the input spliced ​​vector in parallel, thereby shortening the processing time. Self-attention processing can directly model the association between any two positions in the input sequence, capture long-distance dependencies, and thus improve the accuracy of recipe recommendation information.

[0124] In this embodiment, the user's sports health information, ingredient identification, and recipe requirement description information are vectorized and spliced ​​into a splicing vector so that the splicing vector has the characteristics of the first vector, the second vector, and the third vector; the splicing vector is semantically encoded to obtain semantic features, and self-attention processing is performed on the semantic features so that any word in the obtained recipe recommendation information is related to the first vector, the second vector, and the third vector.

[0125] The user can have a dialogue with the second application in the dialogue window to obtain more information about the recipe recommendation information.

[0126] In some embodiments of the present application, optionally, after step 120, the following is further included:

[0127] Step 230, receiving information input to the first input control, the information input is used to input recipe calorie query indication information; the recipe calorie query indication information is used to query the calorie information of the dishes recommended by the recipe recommendation information;

[0128] Step 240, in response to the information input, displaying recipe calorie query indication information in the dialog window, and displaying the recipe calorie information in the dialog window of the second application.

[0129] The dish made from each recipe recommendation information has calorie information, and semantic analysis is performed on the recipe calorie query indication information input by the user to generate calorie information that answers the recipe calorie query indication information.

[0130] By entering the recipe calorie query instruction information, you can obtain the recipe calorie information, which is convenient for users to track their daily calorie intake according to the recipe calorie information, so as to achieve healthy management of weight loss, weight gain or weight maintenance, and help users understand their eating habits. Users can also use the recipe calorie information to match their diet to ensure that the food they consume can provide the calories and nutrition needed by the body, adjust the calorie intake in the diet, and optimize the exercise effect.

[0131] For example, the user wants to know the calorie content of any recipe in the recipe recommendation information. Fig.10 , enter the spectral calorie query indication information 1011 "Please help estimate the calories of breakfast" in the first input control 93. The language model first segments the spectral calorie query indication information 1011 to obtain words such as "please, help, estimate, breakfast, calories". The embedding layer of the language model maps the phrase obtained by the segmentation into a fourth vector E4 through the embedding layer, and then inputs it into the Transformer layer of the language model to obtain the recipe calorie information 1012 as "2 eggs: about 140 calories; 2 slices of ham: about 60 calories; 1 apple: about 95 calories; honey or maple syrup: about 60 calories per spoon; based on the calorie estimation of the above ingredients, the calories of the entire ham, egg and apple roll are approximately between 355-400 calories.".

[0132] In some embodiments of the present application, optionally, after step 120, the following is further included:

[0133] Step 250, receiving information input to the first input control, the information input is used to input recipe suggestion indication information; the recipe suggestion indication information includes dining requirement information; the recipe suggestion indication information is used to obtain ingredient selection suggestions for making dishes recommended by the recipe recommendation information;

[0134] Step 260, in response to the information input, displaying recipe suggestion indication information in the dialog window, and displaying recipe suggestion information matching the dining requirement information in the dialog window of the second application.

[0135] The user can not only ask the second application for more information about the recipe recommendation information in the dialog window, but also make further requests for the recipe recommendation information so that the obtained recipe recommendation information better meets the different requirements of the user in different states.

[0136] By inputting recipe suggestion instruction information, you can obtain recipe suggestion information for user reference, and adjust the recipe recommendation information so that the adjusted recipe recommendation information better meets user needs and ensures a balanced and diverse diet. Recipe suggestion information can also provide low-fat, low-sugar, high-fiber and other healthy food combinations to help users form healthy eating habits. Recipe suggestion information can also provide more detailed cooking steps and techniques for users to choose from, helping users improve their cooking skills and allowing users to enjoy the fun of making delicious food.

[0137] For example, see Fig.11, the user wants to generate recipe suggestion information. Recipe suggestion indication information 111 "I am trying to lose weight recently, do you have any suggestions?" is entered in the first input control 93. Recipe suggestion information 112 matching the recipe suggestion indication information 111 is displayed in the dialog window of the second application program: "Use lean ham: If possible, choose lean ham to reduce fat intake. Reduce added sugar: Try to reduce or avoid using honey or maple syrup to reduce additional sugar intake. Pair with vegetables: Consider adding some vegetables to the wraps, such as spinach, tomatoes, etc., to increase satiety and dietary fiber intake.".

[0138] In some embodiments of the present application, the recipe recommendation information includes at least one of the following: dish name information, ingredient list information, dish preparation method description information, and dish consumption suggestion information.

[0139] The ingredient list information includes the main ingredients and auxiliary ingredients required to make the dish, and the amount and preparation method of the main ingredients and auxiliary ingredients can also be indicated. The ingredients used in the ingredient list information can be less than the ingredient information selected by the first input, and other ingredients other than the ingredient information selected by the first input can be added. The dish preparation method description information is used to describe the steps for making the dish, so that the user can copy the dish corresponding to the recipe recommendation information according to the steps in the dish preparation method description. The dish consumption suggestion information includes but is not limited to: less oil, less salt, recommended replacement ingredients, recommended cooking time and other cooking skills and precautions to help users quickly master the tricks of making dishes. Exemplarily, the recipe recommendation information includes the dish consumption suggestion information of "it is recommended to use it as an appetizer before the main meal". Exemplarily, the recipe recommendation information includes the dish consumption suggestion information of "it is recommended to replace chicken thighs with chicken breasts".

[0140] The name of the dish can briefly tell the user what the dish is going to be, which helps to clarify the goal of cooking and eating. The ingredient list lists all the ingredients needed to make the dish in detail, ensuring that the user can prepare all the necessary ingredients before starting to make it. The user can understand the cooking steps, heat control, seasoning techniques, etc. through the description of the dish preparation method to ensure the taste and quality of the dish made by the user. The dish consumption suggestion information can guide the user on how to reasonably match the dishes to ensure balanced nutrition and improve the taste.

[0141] In some embodiments of the present application, the first input includes at least one of the following: fingertip touch input, knuckle touch input, and air gesture input.

[0142] Fingertip touch input includes but is not limited to any fingertip click operation, fingertip sliding operation, and other fingertip operations. Knuckle touch input includes but is not limited to any fingertip click operation, fingertip sliding operation, and other fingertip operations. Air gesture input includes but is not limited to any of single-click gesture, drag gesture, pressure recognition gesture, long-press gesture, area change gesture, double-press gesture, and double-click gesture.

[0143] In some embodiments of the present application, when the first input is a knuckle touch input, the first input includes a knuckle tapping the screen and a sliding input of circling an area along a reference direction from the tapping position;

[0144] In the case where the first input is a fingertip touch input, the first input includes a sliding input in which the fingertip taps the screen and circles an area along a reference direction from the tapping position;

[0145] In the case where the first input is an air gesture input, the first input includes an air gesture input of circling an area along a reference direction.

[0146] The user can make a sliding input or air gesture input around the food logo to be selected along the reference direction to draw the food logo to be selected into the circled selection area. The circled selection area can be a circular moving area, an elliptical moving area, or an irregularly shaped annular moving area.

[0147] By determining the circled area according to the first input, one or more food identifiers can be quickly selected, so that food identifiers in the circled area can be identified to obtain food information.

[0148] In some embodiments of the present application, the first input may further include:

[0149] The motion trajectory of the sliding input or the air gesture input is trimmed to obtain a circled area of ​​a preset shape.

[0150] Since the movement track of the user's sliding input or air gesture input is not necessarily regular, a circled area with a preset shape can be obtained through trimming processing to improve the accuracy of determining the selected food identification. The first area of ​​the preset shape can be a circular circled area, an elliptical circled area, or a rectangular circled area.

[0151] For example, see Fig.12 , the user's index finger joint moves on the first interface to form an elliptical moving track, and the first area 121 is obtained according to the elliptical moving track. Fig.13 As shown, the elliptical first area 121 is trimmed to obtain a rectangular selected area 131 .

[0152] It should be noted that the recipe recommendation method provided in the embodiment of the present application can be executed by a recipe recommendation device. In the embodiment of the present application, the recipe recommendation device executing the recipe recommendation method is taken as an example to illustrate the recipe recommendation device provided in the embodiment of the present application.

[0153] Fig.14 is a schematic diagram of the structure of a recipe recommendation device provided by another embodiment of the present application. Fig.14 As shown, the recipe recommendation device may include:

[0154] A receiving module 141, configured to receive a first input;

[0155] The processing module 142 is used to output recipe recommendation information in response to the first input based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen;

[0156] Among them, the first interface includes at least one food ingredient identifier, and the food ingredient identifier is used to indicate the food ingredient.

[0157] In some embodiments of the present application, through the user's sports health information and the ingredient identifier selected in the first interface displayed on the display screen as the first input, the recipe recommendation information uses the selected ingredient information as raw materials and also matches the user's sports health information. The recipe recommendation information can meet the different health management needs of different users. Users can browse the recipe recommendation information to know how to prepare dishes with the ingredients represented by the ingredient identifier.

[0158] In some embodiments of the present application, the first interface is a program interface of a first application, and the first application is a shopping application or a social application; the recipe recommendation device may further include:

[0159] Display module 143, used to display a dialog window of a second application, the dialog window including a first prompt message and a first input control; the second application is an artificial intelligence AI assistant program, the first prompt message is used to prompt the user whether to use the food identification function, and the first input control is used to input control information;

[0160] The display module 143 is further configured to display, in the dialog window, the ingredient information obtained by the second application program identifying the ingredient identifier selected by the first input when a control input to the first input control is received.

[0161] In some embodiments of the present application, the processing module 142 is further configured to determine a circled area according to the first input;

[0162] The recipe recommendation device may also include:

[0163] The identification module 144 is used for the second application to identify the food mark in the circled area to obtain food information; wherein the food information includes the food name of the food indicated by the food mark.

[0164] In some embodiments of the present application, the receiving module 141 is further configured to receive a second input;

[0165] The display module 143 is also used to display a second interface in response to a second input; the second interface is an interactive interface of the sports health agent, and the second interface includes a second input control;

[0166] The display module 143 is further configured to obtain the user's sports health information when receiving a third input to the second input control, and display the user's sports health information and the sharing control on the second interface;

[0167] The display module 143 is further configured to display the user's sports health information in the dialog window of the second application program when a fourth input to the sharing control of the second interface is received.

[0168] In some embodiments of the present application, the receiving module 141 is further configured to receive a control input to the first input control;

[0169] The display module 143 is also used to display a program interface of the second application in response to the control input, and the program interface of the second application includes at least one intelligent agent icon;

[0170] The display module 143 is further configured to display a second interface upon receiving a selection input of a sports and health intelligent body icon among at least one intelligent body icon.

[0171] In some embodiments of the present application, the receiving module 141 is further used to receive control input to the dialog window;

[0172] The display module 143 is also used to display at least one agent icon in response to the control input;

[0173] The display module 143 is further configured to display a second interface upon receiving a selection input of a sports and health intelligent body icon among at least one intelligent body icon.

[0174] In some embodiments of the present application, the receiving module 141 is further used to receive information input to the first input control, where the information input is used to input recipe recommendation indication information;

[0175] The recipe recommendation device may also include:

[0176] The semantic analysis module 145 is used to display the recipe recommendation indication information in the dialogue window in response to the information input, and perform semantic analysis on the recipe recommendation indication information to obtain the recipe requirement description information; wherein the recipe requirement description information includes at least one of the following: the meal time type of the recipe, the regional type of the recipe, and the nutritional requirement information of the recipe;

[0177] The processing module 142 is also used to generate recipe recommendation information according to the user's sports health information, the recipe requirement description information and the ingredient identifier selected by the first input in the first interface displayed on the display screen;

[0178] The display module 143 is also used to display recipe recommendation information in the dialog window of the second application.

[0179] In some embodiments of the present application, the processing module 142 is specifically used to perform vectorization processing on the user's sports health information to obtain a first vector;

[0180] The processing module 142 is specifically used to identify the food identification selected by the first input, obtain food information, and perform vector processing on the food information to obtain a second vector;

[0181] The processing module 142 is specifically used to perform vectorization processing on the recipe requirement description information to obtain a third vector;

[0182] The processing module 142 is specifically used to splice the first vector, the second vector and the third vector to obtain a spliced ​​vector;

[0183] The processing module 142 is specifically used to perform semantic encoding on the splicing vector to obtain semantic features;

[0184] The processing module 142 is specifically used to perform self-attention processing on the semantic features to obtain recipe recommendation information.

[0185] In some embodiments of the present application, the receiving module 141 is further used to receive information input to the first input control, where the information input is used to input recipe calorie query indication information; the recipe calorie query indication information is used to query the calorie information of the dish recommended by the recipe recommendation information;

[0186] The display module 143 is also used to display recipe calorie query indication information in the dialogue window in response to information input, and to display recipe calorie information in the dialogue window of the second application.

[0187] In some embodiments of the present application, the receiving module 141 is further used to receive information input to the first input control, where the information input is used to input recipe suggestion indication information; the recipe suggestion indication information includes dining requirement information; the recipe suggestion indication information is used to obtain ingredient selection suggestions for making dishes recommended by the recipe recommendation information;

[0188] The display module 143 is also used to display recipe suggestion indication information in the dialogue window in response to the information input, and to display recipe suggestion information matching the dining requirement information in the dialogue window of the second application.

[0189] In some embodiments of the present application, the recipe recommendation information includes at least one of the following: dish name information, ingredient list information, dish preparation method description information, and dish consumption suggestion information.

[0190] In some embodiments of the present application, the first input includes at least one of the following: fingertip touch input, knuckle touch input, and air gesture input.

[0191] In some embodiments of the present application, when the first input is a knuckle touch input, the first input includes a knuckle tapping the screen and a sliding input of circling an area along a reference direction from the tapping position;

[0192] In the case where the first input is a fingertip touch input, the first input includes a sliding input in which the fingertip taps the screen and circles an area along a reference direction from the tapping position;

[0193] In the case where the first input is an air gesture input, the first input includes an air gesture input of circling an area along a reference direction.

[0194] The recipe recommendation device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), an ATM or a self-service machine, etc., and augmented reality (augmented reality, AR), virtual reality (virtual reality, VR) devices, etc., which are not specifically limited in the embodiment of the present application.

[0195] The recipe recommendation device in the embodiment of the present application may be a device having an operating system. The operating system may include an Android operating system, an iOS operating system, a BlueOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0196] The recipe recommendation device provided in the embodiment of the present application can achieve Figures 1 to 13 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0197] Alternatively, if Fig.15 As shown, an embodiment of the present application further provides an electronic device 100, including a processor 101 and a memory 102, wherein the memory 102 stores programs or instructions that can be executed on the processor 101, and when the program or instructions are executed by the processor 101, the various steps of the above-mentioned recipe recommendation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described again here.

[0198] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0199] Fig.16 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0200] The electronic device 1000 includes but is not limited to components such as a radio frequency unit 161, a network module 162, an audio output unit 163, an input unit 164, a sensor 165, a display unit 166, a user input unit 167, an interface unit 168, a memory 169, and a processor 160.

[0201] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 160 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.16 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0202] The processor 160 is used to receive a first input;

[0203] The processor 160 is further configured to output recipe recommendation information in response to the first input based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen;

[0204] The first interface includes at least one food ingredient identifier, and the food ingredient identifier is used to indicate the food ingredient.

[0205] In an embodiment of the present application, through the user's sports health information and the ingredient identifier selected in the first interface displayed on the display screen as the first input, the recipe recommendation information uses the selected ingredient information as raw materials and also matches the user's sports health information. The recipe recommendation information can meet the different health management needs of different users. Users can browse the recipe recommendation information to know how to prepare dishes with the ingredients represented by the ingredient identifier.

[0206] In some embodiments of the present application, the first interface is a program interface of a first application, and the first application is a shopping application or a social application;

[0207] The processor 160 is further configured to display a dialog window of a second application, the dialog window including a first prompt message and a first input control; the second application is an artificial intelligence AI assistant program, the first prompt message is used to prompt a user whether to use the food identification function, and the first input control is used to input control information;

[0208] The processor 160 is further configured to, upon receiving a control input to the first input control, display in the dialog window the ingredient information obtained by the second application program identifying the ingredient identifier selected by the first input.

[0209] In some embodiments of the present application, the processor 160 is further configured to determine a circled area according to the first input;

[0210] The processor 160 is also used for the second application to identify the food mark in the circled area to obtain food information;

[0211] The food information includes the food name of the food indicated by the food identifier.

[0212] In some embodiments of the present application, the processor 160 is further configured to receive a second input;

[0213] The processor 160 is also used to display a second interface in response to a second input; the second interface is an interactive interface of the sports health agent, and the second interface includes a second input control;

[0214] The processor 160 is further configured to obtain the user's sports health information when receiving a third input to the second input control, and display the user's sports health information and the sharing control on the second interface;

[0215] The processor 160 is further configured to display the user's sports health information in the dialog window of the second application program when a fourth input to the sharing control of the second interface is received.

[0216] In some embodiments of the present application, the processor 160 is further configured to receive a control input to the first input control;

[0217] The processor 160 is further configured to display a program interface of a second application in response to a control input, wherein the program interface of the second application includes at least one intelligent agent icon;

[0218] The processor 160 is further configured to display a second interface upon receiving a selection input of a sports and health intelligent body icon among the at least one intelligent body icon.

[0219] In some embodiments of the present application, the processor 160 is further configured to receive a control input for the dialog window;

[0220] The processor 160 is further configured to display at least one agent icon in response to a control input;

[0221] The processor 160 is further configured to display a second interface upon receiving a selection input of a sports and health intelligent body icon among the at least one intelligent body icon.

[0222] In some embodiments of the present application, the processor 160 is further configured to receive information input to the first input control, where the information input is used to input recipe recommendation indication information;

[0223] The processor 160 is further configured to display the recipe recommendation indication information in the dialog window in response to the information input, and perform semantic analysis on the recipe recommendation indication information to obtain recipe requirement description information; wherein the recipe requirement description information includes at least one of the following: the meal time type of the recipe, the regional type of the recipe, and the nutritional requirement information of the recipe;

[0224] The processor 160 is also used to identify ingredients and output recipe recommendation information, including:

[0225] The processor 160 is further configured to generate recipe recommendation information based on the user's sports health information, the recipe requirement description information, and the ingredient identifier selected by the first input in the first interface displayed on the display screen;

[0226] The processor 160 is further configured to display recipe recommendation information in the dialog window of the second application.

[0227] In some embodiments of the present application, the processor 160 is further configured to perform vectorization processing on the user's sports health information to obtain a first vector;

[0228] The processor 160 is further configured to identify the food identifier of the first input selection to obtain food information, and perform vector processing on the food information to obtain a second vector;

[0229] The processor 160 is further configured to perform vectorization processing on the recipe requirement description information to obtain a third vector;

[0230] The processor 160 is further configured to concatenate the first vector, the second vector, and the third vector to obtain a concatenated vector;

[0231] The processor 160 is further used to perform semantic encoding on the concatenated vector to obtain a semantic feature;

[0232] The processor 160 is also used to perform self-attention processing on the semantic features to obtain recipe recommendation information.

[0233] In some embodiments of the present application, the processor 160 is further configured to receive information input to the first input control, where the information input is used to input recipe calorie query indication information; the recipe calorie query indication information is used to query calorie information of dishes recommended by the recipe recommendation information;

[0234] The processor 160 is further configured to display recipe calorie query indication information in the dialog window in response to information input, and to display recipe calorie information in the dialog window of the second application.

[0235] In some embodiments of the present application, the processor 160 is further configured to receive information input to the first input control, the information input being used to input recipe suggestion indication information; the recipe suggestion indication information includes dining requirement information; the recipe suggestion indication information is used to obtain ingredient selection suggestions for making a dish recommended by the recipe recommendation information;

[0236] The processor 160 is further configured to display recipe suggestion indication information in the dialog window in response to the information input, and to display recipe suggestion information matching the dining requirement information in the dialog window of the second application.

[0237] In some embodiments of the present application, the recipe recommendation information includes at least one of the following: dish name information, ingredient list information, dish preparation method description information, and dish consumption suggestion information.

[0238] In some embodiments of the present application, the first input includes at least one of the following: fingertip touch input, knuckle touch input, and air gesture input.

[0239] In some embodiments of the present application, when the first input is a knuckle touch input, the first input includes a knuckle tapping the screen and a sliding input of circling an area along a reference direction from the tapping position;

[0240] In the case where the first input is a fingertip touch input, the first input includes a sliding input in which the fingertip taps the screen and circles an area along a reference direction from the tapping position;

[0241] In the case where the first input is an air gesture input, the first input includes an air gesture input of circling an area along a reference direction.

[0242] It should be understood that in the embodiment of the present application, the input unit 164 may include a graphics processor (Graphics Processing Unit, GPU) 1641 and a microphone 1642, and the graphics processor 1641 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 166 may include a display panel 1661, and the display panel 1661 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 167 includes a touch panel 1671 and at least one of other input devices 1672. The touch panel 1671 is also called a touch screen. The touch panel 1671 may include two parts: a touch detection device and a touch controller. Other input devices 1672 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0243] The memory 169 can be used to store software programs and various data. The memory 169 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 169 may include a volatile memory or a non-volatile memory, or the memory 169 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 169 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0244] The processor 160 may include one or more processing units; optionally, the processor 160 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 160.

[0245] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned recipe recommendation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0246] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0247] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned recipe recommendation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0248] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0249] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned recipe recommendation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0250] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0251] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0252] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A recipe recommendation method, characterized in that: include: receiving a first input; In response to the first input, outputting recipe recommendation information based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen; The first interface includes at least one food ingredient identifier, and the food ingredient identifier is used to indicate the food ingredient.

2. The method according to claim 1, characterized in that The first interface is a program interface of a first application, and the first application is a shopping application or a social application; After receiving the first input, the method further includes: Displaying a dialog window of a second application, the dialog window comprising first prompt information and a first input control; the second application is an artificial intelligence AI assistant program, the first prompt information is used to prompt a user whether to use an ingredient identification function, and the first input control is used to input control information; When a control input to the first input control is received, the ingredient information obtained by the second application program identifying the ingredient identifier selected by the first input is displayed in the dialog window.

3. The method according to claim 2, characterized in that Before displaying the food information obtained by the second application program identifying the food identifier selected by the first input in the dialog window, the method further includes: Determine a circled area according to the first input; The second application program identifies the food mark in the circled area to obtain food information; The food information includes the food name of the food indicated by the food identifier.

4. The method according to claim 2, characterized in that: Before outputting the recipe recommendation information based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen, the method further includes: receiving a second input; In response to the second input, a second interface is displayed; the second interface is an interactive interface of the sports health agent, and the second interface includes a second input control; When receiving a third input to the second input control, obtaining the user's sports health information, and displaying the user's sports health information and a sharing control on the second interface; When a fourth input to the sharing control of the second interface is received, the user's sports health information is displayed in the dialog window of the second application.

5. The method according to claim 4, characterized in that The receiving a second input comprises: receiving a control input to the first input control; The step of displaying a second interface in response to the second input includes: In response to the control input, displaying a program interface of the second application, the program interface of the second application including at least one intelligent agent icon; When a selection input of the sports and health intelligent body icon among the at least one intelligent body icon is received, a second interface is displayed.

6. The method according to claim 4, characterized in that The receiving a second input comprises: Receiving control input to the dialog window; The step of displaying a second interface in response to the second input includes: In response to the control input, displaying at least one agent icon; When a selection input of the sports and health intelligent body icon among the at least one intelligent body icon is received, a second interface is displayed.

7. The method according to claim 4, characterized in that After displaying the user's sports health information in the dialog window of the second application, the method further includes: receiving information input to the first input control, wherein the information input is used to input recipe recommendation indication information; In response to the information input, the recipe recommendation indication information is displayed in the dialog window, and the recipe recommendation indication information is semantically analyzed to obtain recipe requirement description information; wherein the recipe requirement description information includes at least one of the following: a meal time type of the recipe, a regional type of the recipe, and nutritional requirement information of the recipe; The outputting of recipe recommendation information based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen includes: Generate recipe recommendation information according to the user's sports health information, the recipe requirement description information and the ingredient identifier selected by the first input in the first interface displayed on the display screen; In the dialog window of the second application, the recipe recommendation information is displayed.

8. The method according to claim 7, characterized in that The generating of recipe recommendation information according to the user's sports health information, the recipe requirement description information and the ingredient identifier selected by the first input in the first interface displayed on the display screen includes: Performing vectorization processing on the user's sports health information to obtain a first vector; Identify the ingredient identifier selected by the first input to obtain ingredient information, and vectorize the ingredient information to obtain a second vector; Vectorizing the recipe requirement description information to obtain a third vector; splicing the first vector, the second vector and the third vector to obtain a spliced ​​vector; Performing semantic encoding on the concatenated vector to obtain semantic features; The semantic features are subjected to self-attention processing to obtain recipe recommendation information.

9. The method according to claim 2, characterized in that: After outputting the recipe recommendation information based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen, the method further includes: receiving information input to the first input control, wherein the information input is used to input recipe calorie query indication information; the recipe calorie query indication information is used to query calorie information of dishes recommended by the recipe recommendation information; In response to the information input, the recipe calorie query indication information is displayed in the dialog window, and the recipe calorie information is displayed in the dialog window of the second application.

10. The method according to claim 2, characterized in that After outputting the recipe recommendation information based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen, the method further includes: receiving information input to the first input control, the information input being used to input recipe suggestion indication information; the recipe suggestion indication information comprising dining requirement information; the recipe suggestion indication information being used to obtain ingredient selection suggestions for making a dish recommended by the recipe recommendation information; In response to the information input, the recipe suggestion indication information is displayed in the dialog window, and the recipe suggestion information matching the dining requirement information is displayed in the dialog window of the second application.

11. The method according to claim 1, characterized in that: The recipe recommendation information includes at least one of the following: dish name information, ingredient list information, dish preparation method description information, and dish consumption suggestion information.

12. The method according to claim 1, characterized in that The first input includes at least one of the following: fingertip touch input, knuckle touch input, and air gesture input.

13. The method according to claim 12, characterized in that In the case where the first input is a knuckle touch input, the first input includes a knuckle tapping the screen and a sliding input of circling an area along a reference direction from the tapping position; In the case where the first input is a fingertip touch input, the first input includes a sliding input of tapping the screen with a fingertip and circling an area along a reference direction from the tapping position; In the case where the first input is an air gesture input, the first input includes an air gesture input of circling an area along a reference direction.

14. A recipe recommendation device, characterized in that: include: A receiving module, configured to receive a first input; a processing module, configured to output recipe recommendation information in response to the first input, based on the user's sports health information and the ingredient identifier selected by the first input in the first interface displayed on the display screen; The first interface includes at least one food ingredient identifier, and the food ingredient identifier is used to indicate the food ingredient.

15. The recipe recommendation device according to claim 14, characterized in that: The first interface is a program interface of a first application, and the first application is a shopping application or a social application; The recipe recommendation device also includes: A display module, used to display a dialog window of the second application, wherein the dialog window includes a first prompt message and a first input control; The second application is an artificial intelligence AI assistant program, the first prompt information is used to prompt the user whether to use the food identification function, and the first input control is used to input control information; The display module is further configured to display, in the dialog window, the ingredient information obtained by the second application program identifying the ingredient identifier selected by the first input when a control input to the first input control is received.

16. The recipe recommendation device according to claim 15, characterized in that: The processing module is further used to determine a circled area according to the first input; The recipe recommendation device also includes: An identification module, used for the second application to identify the food identifier in the circled area to obtain food information; The food information includes the food name of the food indicated by the food identifier.

17. The recipe recommendation device according to claim 15, characterized in that: The receiving module is also used to receive a second input; The display module is also used to display a second interface in response to the second input; the second interface is an interactive interface of the sports health intelligent body, and the second interface includes a second input control; The display module is further used to obtain the user's sports health information when receiving a third input to the second input control, and display the user's sports health information and the sharing control on the second interface; The display module is also used to display the user's sports health information in the dialog window of the second application when a fourth input to the sharing control of the second interface is received.

18. The recipe recommendation device according to claim 17, characterized in that: The receiving module is also used to receive a control input to the first input control; The display module is further used to display a program interface of the second application in response to the control input, wherein the program interface of the second application includes at least one intelligent agent icon; The display module is also used to display a second interface when receiving a selection input of a sports and health intelligent body icon among the at least one intelligent body icon.

19. The recipe recommendation device according to claim 17, characterized in that: The receiving module is also used to receive control input to the dialog window; The display module is also used to display at least one agent icon in response to the control input; The display module is also used to display a second interface when receiving a selection input of a sports and health intelligent body icon among the at least one intelligent body icon.

20. The recipe recommendation device according to claim 17, characterized in that: The receiving module is further used to receive information input to the first input control, wherein the information input is used to input recipe recommendation indication information; The recipe recommendation device also includes: a semantic analysis module, for displaying the recipe recommendation indication information in the dialog window in response to the information input, and performing semantic analysis on the recipe recommendation indication information to obtain recipe requirement description information; wherein the recipe requirement description information includes at least one of the following: a meal time type of a recipe, a regional type of a recipe, and nutritional requirement information of a recipe; The processing module is further used to generate recipe recommendation information according to the user's sports health information, the recipe requirement description information and the ingredient identifier selected by the first input in the first interface displayed on the display screen; The display module is also used to display the recipe recommendation information in the dialog window of the second application.

21. The recipe recommendation device according to claim 20, characterized in that: The processing module is also used to perform vectorization processing on the user's sports health information to obtain a first vector; The processing module is further used to identify the food identifier selected by the first input to obtain food information, and perform vector processing on the food information to obtain a second vector; The processing module is further used to perform vectorization processing on the recipe requirement description information to obtain a third vector; The processing module is further used to splice the first vector, the second vector and the third vector to obtain a spliced ​​vector; The processing module is also used to perform semantic encoding on the splicing vector to obtain semantic features; The processing module is also used to perform self-attention processing on the semantic features to obtain recipe recommendation information.

22. The recipe recommendation device according to claim 16, characterized in that: The receiving module is further used to receive information input to the first input control, wherein the information input is used to input recipe calorie query indication information; the recipe calorie query indication information is used to query the calorie information of the dish recommended by the recipe recommendation information; The display module is also used to display the recipe calorie query indication information in the dialogue window in response to the information input, and to display the recipe calorie information in the dialogue window of the second application.

23. The recipe recommendation device according to claim 16, characterized in that: The receiving module is further used to receive information input to the first input control, the information input is used to input recipe suggestion indication information; the recipe suggestion indication information includes dining requirement information; the recipe suggestion indication information is used to obtain ingredient selection suggestions for making the dish recommended by the recipe recommendation information; The display module is also used to display the recipe suggestion indication information in the dialogue window in response to the information input, and to display the recipe suggestion information matching the dining requirement information in the dialogue window of the second application.

24. The recipe recommendation device according to claim 14, characterized in that: The recipe recommendation information includes at least one of the following: dish name information, ingredient list information, dish preparation method description information, and dish consumption suggestion information.

25. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the recipe recommendation method as described in any one of claims 1 to 13 are implemented.