Method of providing meal pairing information and electronic device

By combining virtual plates with AI models, the lack of intuitive interaction and real-time feedback in existing diet management technologies has been solved, enabling user-friendly meal matching and content generation, thus improving user experience and efficiency.

CN123182913APending Publication Date: 2026-11-27SHANGHAI HEMA ZHIYAN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611216314.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-11
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing dietary management technologies lack intuitive visual interaction with food trays, cannot provide real-time dynamic calorie feedback, and the generated content lacks intelligent integration of text and graphics, increasing the cognitive load and operational complexity for users.

Method used

The virtual plate element dynamically and visually presents the food pairing process, and uses artificial intelligence (AI) models to generate dietary content, including recommended shopping lists, calorie analysis, nutritional reviews, and information on the advantages and disadvantages of food pairings. It provides real-time feedback on the volume ratio and calorie content of food in physical space, and supports the removal or replacement of food.

Benefits of technology

It enables users to intuitively perceive the volume ratio and calorie impact when selecting ingredients, supports real-time adjustments, and generates beautiful and structured dietary graphic content, simplifying user operations and improving content generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182913A_ABST
    Figure CN123182913A_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method for providing meal arrangement information and an electronic device, including: in response to an access request submitted through a function entrance related to a meal arrangement function, displaying a target interface; the target interface includes a first area and a second area, and a virtual dinner plate element is displayed in the second area; after receiving a selection operation of a user on the candidate food material, an image of the selected food material is rendered and displayed in the virtual dinner plate element in the second area, and the heat information of the selected food material is displayed in the target interface; after receiving information that the user completes the selection of the food material, a meal content is generated based on the food material selected by the user through an artificial intelligence (AI) model. Through the embodiments of the present application, the user can intuitively perceive the volume proportion and heat information of different food material combinations in the physical space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing technology, and in particular to methods and electronic devices for providing dietary information. Background Technology

[0002] With the improvement of people's living standards and the enhancement of health awareness, dietary nutrition management has become a focus of public attention. Currently, there are various food recording and calorie management software programs available on the market. These technologies mainly help users manage their dietary information in the following ways: List-based recording: Users can add food items in a list by searching for the food name and enter the weight. The system then calculates the total calories in the background.

[0003] Image recognition: Users take photos of finished dishes, and image recognition technology is used to estimate the type of food and its calories.

[0004] Barcode scanning: For pre-packaged foods, nutritional data is obtained by scanning the barcode.

[0005] While existing diet management technologies have addressed the data recording issue to some extent, the following significant technical challenges remain in practical applications: Existing technologies often display data in the form of dry "number lists" or "progress bars," which increases the cognitive load on users and makes it difficult to establish an intuitive connection between "food portion size" and "calorie count." Summary of the Invention

[0006] This application provides a method and electronic device for providing dietary combination information, enabling users to intuitively perceive the volume ratio and calorie information of different food combinations in physical space.

[0007] This application provides the following solution: A method for providing dietary pairing information, the method being applied to an application client associated with a commodity information service system, the method comprising: In response to an access request submitted through a function entry related to the meal pairing function, a target interface is displayed; the target interface includes a first area and a second area, the first area includes a navigation sub-area and a content sub-area, the navigation area is used to display multiple tag options, the tag options correspond to multiple food categories related to meal pairing, the content sub-area is used to display multiple candidate foods corresponding to the selected tag option; a virtual plate element is displayed in the second area; After receiving the user's selection operation for the candidate ingredients, the image of the selected ingredient is rendered and displayed in the second area to display the virtual plate element, and the calorie information of the selected ingredient is displayed in the target interface; wherein, as the number of selected ingredients increases, the images of multiple ingredients are arranged in the virtual plate element according to a preset layout rule to form a combination preview image and display the cumulative calories of multiple ingredients. After receiving information from the user that they have completed their ingredient selection, the system generates dietary content based on the user's chosen ingredient combination using an artificial intelligence (AI) model. The dietary content includes a recommended shopping list corresponding to the ingredient combination, generated from the product information database in the product information service system. The recommended shopping list includes recommended ingredients and recommended quantities.

[0008] This also includes: While displaying the currently selected tag option and its corresponding candidate ingredient information in the first area, an AI recommendation operation option is provided. After this operation option is triggered, the AI ​​model recommends suitable ingredients to match the selected ingredients in the ingredient category to which the currently selected tag option belongs, based on the ingredients that the user has selected in other ingredient categories.

[0009] The food images displayed in the virtual plate element can be removed or replaced.

[0010] The dietary content generated by the AI ​​model also includes information on the names of the food pairing schemes generated by the AI ​​model.

[0011] The dietary content generated by the AI ​​model also includes: calorie analysis information for each ingredient, generated by the AI ​​model based on the combination of ingredients.

[0012] The dietary content generated by the AI ​​model also includes nutritional commentary on the food combinations provided by the AI ​​model.

[0013] The dietary content generated by the AI ​​model also includes information on the advantages and disadvantages of the food combinations obtained by the AI ​​model from analyzing the food combinations.

[0014] The dietary content generated by the AI ​​model also includes suggestions on meal preparation steps and / or cooking methods, generated by the AI ​​model based on the combination of the ingredients.

[0015] A computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of any of the preceding methods.

[0016] An electronic device, comprising: One or more processors; and A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of any of the preceding methods.

[0017] A computer program product includes a computer program / computer executable instructions that, when executed by a processor in an electronic device, implement the steps of any of the preceding methods.

[0018] According to the specific embodiments provided in this application, the following technical effects are disclosed: Through the embodiments of this application, a first area and a second area can be provided in the target interface. The first area includes a navigation sub-area and a content sub-area. The navigation sub-area is used to display multiple tag options, which correspond to multiple food categories related to dietary pairings. The content sub-area is used to display multiple candidate foods corresponding to the selected tag options. The second area displays virtual plate elements. Furthermore, after receiving information that the user has completed food selection, a dietary content can be generated based on the user's selected food combination using an artificial intelligence (AI) model. The dietary content includes a recommended shopping list corresponding to the food combination generated based on the product information database in the product information service system. The recommended shopping list includes recommended food products and recommended quantities. This solution allows users to intuitively perceive the volume ratio of different food combinations in physical space; it also allows for real-time calculation of calories, enabling users to adjust their food combinations based on calorie accumulation during the selection process; and finally, AI can automatically generate complete text and image content of the meal to facilitate users in creating food logs for sharing and other purposes.

[0019] Of course, any product implementing this application does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart of the method provided in the embodiments of this application; Figure 2 This is a schematic diagram of the first interface provided in an embodiment of this application; Figure 3 This is a schematic diagram of the second interface provided in an embodiment of this application; Figure 4 This is a schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0022] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0023] First, it should be noted that the inventors of this application discovered, in the process of developing this application, that existing dietary management technologies mainly have the following drawbacks: 1. Lack of intuitive visual interaction for the "plate": Existing technologies mostly display data in the form of dry "number lists" or "progress bars." Users cannot intuitively perceive the volume proportion of different food combinations in physical space (e.g., the actual distribution of carbohydrates, protein, and vegetables on the plate). This non-visual data presentation method increases the cognitive load on users and makes it difficult to establish an intuitive connection between "food portion size" and "calorie value."

[0024] 2. Lack of real-time feedback mechanism: In the current ordering or meal preparation process, users often select all ingredients first, and only then do they see the total calories. There is a lack of technology that dynamically accumulates calories in real time as users gradually select ingredients and provides immediate feedback on the impact on the overall dietary structure. This makes it difficult for users to make dynamic adjustments during the decision-making process (e.g., reducing the amount of a certain ingredient in real time after discovering that the calorie intake is too high).

[0025] 3. Limited content generation formats and lack of intelligent text and image integration: Current recording methods only focus on "data storage." When users need to generate food logs for sharing or other purposes, the system cannot automatically generate aesthetically pleasing and structured text and image content (such as beautifully designed meal posters or analysis reports) based on the user's personalized choices. Users often need to rely on third-party image editing software to create such content, which is cumbersome and inefficient.

[0026] To address the aforementioned issues, this application provides corresponding solutions. These solutions can be applied to product information service systems, where the specific system can focus on a vertical field related to diet, or it can be a product information service system encompassing more product categories. Specifically, the solution provided in this application allows users to progressively select ingredients based on multiple nutritional dimensions, dynamically visualizing the combination process through virtual plate elements, enabling users to intuitively perceive the volume proportions of different ingredient combinations in physical space; it also allows for real-time accumulation and calculation of calories, allowing users to adjust their combinations promptly based on calorie accumulation during ingredient selection; finally, AI can automatically generate complete dietary text and images.

[0027] The specific implementation schemes provided in the embodiments of this application will be described in detail below.

[0028] First, this application provides a method for providing dietary matching information. This method is applied to an application client associated with a commodity information service system. (See also...) Figure 1 The method may specifically include: S101: In response to an access request submitted through a function entry related to the meal pairing function, a target interface is displayed; the target interface includes a first area and a second area, the first area includes a navigation sub-area and a content sub-area, the navigation area is used to display multiple tag options, the tag options correspond to multiple food categories related to meal pairing, the content sub-area is used to display multiple candidate foods corresponding to the selected tag option; a virtual plate element is displayed in the second area.

[0029] In specific implementation, embodiments of this application can provide a dedicated function entry point. For example, the specific function entry point can be set in the function navigation area on the homepage of a dietary application client, supporting an icon + text display method. For example, the specific entry point text could be "Light Meal Partners," etc. After clicking through this function entry point, the user enters the target interface dedicated to that function to select ingredients.

[0030] Among them, such as Figure 2 As shown in (A), the target interface may include a first area 21 and a second area 22. Specifically, the first area 21 includes a navigation sub-area 211 and a content sub-area 212. The navigation sub-area 211 is used to display multiple tag options, which correspond to multiple food categories related to dietary pairings. The content sub-area 212 is used to display multiple candidate foods corresponding to the selected tag option. The second area 22 may display virtual plate elements, such as a white circular virtual plate, etc.

[0031] The specific categorization logic of the available ingredients is related to the core needs of users under the current food pairing theme. For example, taking "light meal pairing" as an example, ingredients can be categorized based on factors such as low calories and satiety. In this case, the ingredient categories corresponding to the tag options displayed in the specific navigation sub-area 211 could include: high-quality protein, vegetable base, fiber-rich fresh fruit, complex carbohydrates, healthy fats, low-sugar drinks, and natural seasonings—a total of seven categories. Typical ingredients under each category could be as follows: High-quality protein: beef, chicken breast, shrimp, salmon, eggs, etc. Characteristics: high biological value, low fat, muscle maintenance. These ingredients can be the "core building blocks" of a light meal plate. Their functional attributes include: providing essential amino acids, maintaining muscle mass, increasing satiety, and not placing an excessive burden on the digestive system. When these ingredients are subsequently selected by users and placed on a virtual meal plate element for display, they usually occupy the main visual focus (such as the center of a fan-shaped area), determining the basal metabolic value of the entire meal.

[0032] Vegetable Base: Tomatoes, broccoli, purple cabbage, cucumbers, lettuce, onions, etc. Characteristics: High in fiber, low in calories, and high in volume; these ingredients serve as both "visual filler" and "nutritional foundation" for light meal plates. Functional Attributes: Extremely low in calories but large in physical volume, rich in dietary fiber, vitamins, and minerals. They quickly fill the stomach, providing a feeling of fullness while balancing blood sugar levels. When these ingredients are selected and displayed on a virtual plate, they can be rendered as "bottom layer" or "base layer" elements in the layout algorithm, or occupy a large proportion of the plate (e.g., 1 / 2 area) to provide color contrast for other ingredients.

[0033] Fiber-rich fresh fruits: blueberries, avocados, apples, kiwis, etc. Characteristics: Low GI, slow-release energy, sustained energy supply; these ingredients serve as the "energy base" for light meals, unlike refined carbohydrates. Functional attributes: Rich in dietary fiber and B vitamins, with a low glycemic index (GI), providing a stable and sustained energy release, avoiding post-meal blood sugar spikes that lead to drowsiness and fat accumulation. These ingredients are considered "essential components." When selected and displayed on a virtual plate, they can be shown in significant quantities, typically alongside protein-rich ingredients, creating a sense of stability on the plate.

[0034] Complex carbohydrates: whole wheat bread, quinoa, oats, sweet potatoes, etc. Characteristics: antioxidants, natural enzymes, and color enhancers; these ingredients act as "flavor modifiers" and "micronutrient reservoirs" for light meals. Functional attributes: provide natural sweetness to improve taste, and are rich in antioxidants such as vitamin C and anthocyanins. They typically appear as a supporting ingredient in light meals, and their quantity should be controlled to avoid excessive fructose. Visually, they can "brighten" the presentation; they can be scattered in chunks or slices on a vegetable base to increase the color richness of the dish.

[0035] Healthy Fats: Mixed nuts, olive oil, flaxseed, etc. Characteristics: High-quality fatty acids, promotes absorption, smooth texture. These ingredients act as "nutritional catalysts" for light meals. Functional Attributes: Provides essential unsaturated fatty acids (such as Omega-3), aids in the absorption of fat-soluble vitamins, and enhances the aroma and smoothness of food, reducing the discomfort of "eating grass." These ingredients are "trace but crucial" elements; when visually rendered on a virtual plate, they can be treated as "toppings" or "glazes" in the layout algorithm, covering the surface of other ingredients.

[0036] Low-sugar beverages: Matcha, black coffee, lemonade, sparkling water, etc. Features: Zero / negative calories, refreshing, and aids metabolism; these beverages are the "liquid companions" to light meal sets. Functional attributes: Replaces high-sugar milk tea or carbonated drinks, providing a refreshing taste and helping to cut through greasiness; some drinks contain ingredients that aid metabolism or reduce water retention. System logic: When visually rendered onto the virtual plate, they can be located outside the plate (e.g., in the upper right corner), serving as a complete supplement to the meal set.

[0037] Natural seasonings: black pepper, lemon juice, Italian herbs, soy sauce, etc. Features: Clean label, low sodium, removes fishy smells and enhances freshness; these ingredients are the "soul" of light meals, determining whether users can stick to a light diet. Functional attributes: Abandoning high-calorie, high-trans-fat industrial sauces (such as mayonnaise and Thousand Island dressing), utilizing the acidity, spiciness, heat, and aroma of natural ingredients to enrich the flavor profile and control sodium intake. When rendered on a virtual plate, this can be represented by the sheen or fine texture of the food surface. Although its visual proportion may be relatively small, it determines the overall "health score" of the meal at the data level.

[0038] The content sub-area 212 can be shared by multiple food categories. When switching to a certain food category, the content sub-area 212 can display information on various candidate foods under that food category, including food names, illustrations, etc. Users can perform selection operations on specific foods within the content sub-area 212.

[0039] Of course, under other matching themes, the specific food categories displayed can also be... Figure 2 (A) shows a different approach. For example, assuming a "fitness" related theme, the logic for categorizing food ingredients will shift from low-calorie and satiety-based to functional, macronutrient ratio, and pre- and post-workout energy metabolism needs. Specifically, for a "muscle building and shaping" theme (emphasizing high protein, calorie surplus, and muscle glycogen replenishment), since the core needs of muscle-building individuals are "creating a calorie surplus" and "sufficient protein intake," the food ingredient categories will emphasize density and synthetic raw materials. In this case, the specific food categories and typical ingredients corresponding to each category could be: High biological value protein: Chicken breast, lean beef, deep-sea fish (salmon / tuna), whole eggs, whey protein powder, Greek yogurt. Features: Emphasis on a complete amino acid profile and high absorption rate.

[0040] Complex Slow Carb (Energy Base): Oats, Brown Rice, Sweet Potato / Purple Sweet Potato, Quinoa, Whole Wheat Pasta, Bagel. Features: Provides sustained and stable blood sugar release, supports high-intensity training, and prevents fat accumulation.

[0041] Testosterone-boosting / anti-inflammatory fats: Avocado, raw nuts (almonds / walnuts), chia seeds, olive oil, deep-sea fish oil. Benefits: Maintains healthy hormone levels and reduces joint inflammation after training.

[0042] Micronutrients and antioxidants: Broccoli, spinach, blueberries, bananas (for quick potassium replenishment before and after training), beets. Features: Bananas and beets help improve athletic performance and the pump; dark green vegetables help metabolize free radicals generated during training.

[0043] Functional supplements / drinks: Creatine, BCAAs (branched-chain amino acids), electrolyte water, black coffee (pre-workout alternative).

[0044] It should be noted that in the actual implementation, users can select the ingredients they need themselves. Additionally, an "AI recommendation" option can be provided. For details, please refer to [link / reference]. Figure 2 (A) The "AI Recommendation" option shown at point 23. After this option is triggered, an AI (Artificial Intelligence) model can recommend suitable ingredients to pair with the user's selected ingredients from other ingredient categories, within the ingredient category of the currently selected tag. The AI ​​model is an intelligent system built on artificial neural networks, capable of learning and performing complex tasks through massive amounts of data, such as content (text, images, videos, etc.) understanding and generation. This embodiment utilizes the aforementioned capabilities of the AI ​​model to recommend other suitable ingredients for specific themes such as "light meal pairings," even when the user has already selected some ingredients. This helps the user complete the ingredient selection process more quickly and provides more reasonable pairing solutions even when the user lacks relevant pairing knowledge or experience. The specific AI recommendation algorithm can comprehensively consider objectives such as nutritional complementarity, flavor harmony, and calorie control to provide corresponding recommended pairing information. The user can accept the AI ​​recommendation information with one click or continue to make their own selections.

[0045] S102: After receiving the user's selection operation for the candidate ingredients, the image of the selected ingredient is rendered and displayed in the second area to display the virtual plate element, and the calorie information of the selected ingredient is displayed in the target interface; wherein, as the number of selected ingredients increases, the images of multiple ingredients are arranged in the virtual plate element according to the preset layout rules to form a matching preview image and display the cumulative calories of multiple ingredients.

[0046] In accordance with Figure 2 (A) displays the available ingredient categories and candidate ingredients under each category. Users can then select the specific ingredient they need. After selecting an ingredient, its corresponding image is rendered in the second area 22, showing the effect of the ingredient being placed within a virtual plate element. Additionally, the calorie information of the selected ingredient can be displayed. For example, as shown... Figure 2 As shown in (B), if the user selects "tomato" under the "vegetable base" category, then the image of "tomato" can be rendered onto the virtual plate for display, and the calorie content of the ingredient can be displayed as 18 calories / 100g, etc.

[0047] Furthermore, since the theme is "pairing," users typically need to select ingredients from different categories to complete the pairing. In this embodiment, as more ingredients are selected, images of various ingredients can be arranged in a virtual plate element according to preset layout rules to form a pairing preview image and display the cumulative calories of the various ingredients. For example, as... Figure 2 As shown in (C), if a user selects "tomato" and then selects "blackberry" under the "Fiber-Rich Fresh Fruit" category, an image related to "blackberry" can be added to the virtual plate element. The virtual plate can also display the calories of "blackberry," the cumulative calories of the previously selected ingredients, and so on. In this way, users can intuitively perceive the volume proportions of different food combinations in physical space, including the actual distribution of carbohydrates, protein, and vegetables on the plate. Furthermore, the real-time dynamic accumulation of calories and immediate feedback on its impact on the overall dietary structure allows users to make timely adjustments or monitor calorie intake during the selection process.

[0048] In other words, the second area of ​​the interface is a virtual plate area (e.g., a white circle). Each time the user selects an ingredient, a high-resolution image of that ingredient is rendered and added to the virtual plate, displaying its corresponding calorie information. Multiple ingredients selected by the user can be arranged on the plate according to preset layout rules, forming an intuitive preview of the combination, and providing calorie information for newly added ingredients, as well as cumulative calorie information. Additionally, it supports adding, replacing, and removing ingredients. As the user selects ingredients in various dimensions, the plate gradually fills up from empty, ultimately presenting a complete image of the finished dish.

[0049] Specifically, during the process of adding various ingredients to the virtual plate element in sequence, the layout can be carried out according to preset rules. These layout rules aim to solve problems such as the hierarchy, occlusion, chaos, and visual realism when multiple ingredients coexist in the virtual plate, ensuring that the generated food image is both aesthetically pleasing and logical.

[0050] For example, the detailed technical solution for a specific preset layout rule can be as follows: 1. Dynamic partitioning rules based on trophic structure This rule is not a simple geometric division, but rather a dynamic calculation of the landing area of ​​the ingredients on the circular virtual plate based on the attribute tags of the ingredients (such as: staple food, protein, vegetables).

[0051] For example, one approach could be sector mapping: the system can logically divide a white circular virtual plate into three dynamic sector areas. When a user adds ingredients, the system reads the category tags from the ingredient's metadata and automatically maps them to the corresponding sector area. For instance, leafy green vegetables are restricted to the 180-degree sector area on the left side of the plate, meat is restricted to the upper right sector area, and staple foods are restricted to the lower right sector area.

[0052] In addition, a center-of-gravity anchoring algorithm can be used: within each sector area, a "visual center-of-gravity anchor point" can be set. The center point of an initial food image entering the area will coincide with this anchor point; subsequently added similar food images will be arranged radially or spirally outward from this anchor point, simulating the actual eating habits of picking up food.

[0053] 2. Z-axis layer stacking and base determination rules To address the occlusion issues when food images overlap, a preset Z-axis rendering priority based on physical properties and food shape can be established.

[0054] For example, fluid and base priority: the weight of food attributes can be preset. If the food contains shape tags such as "soup" or "sauce", the rendering engine will determine it as the "base layer" and force it to be placed on the base layer of the Z-axis (a layer that is lower than other layers).

[0055] Block and solid overlay: If the food is "meat chunks", "fried eggs" or "root vegetables", the system can identify it as an "overlay layer" and automatically raise its Z-axis level during rendering so that it covers the base layer.

[0056] Garnishes at the top: For small or decorative ingredients such as "scallions", "sesame seeds", and "cilantro", the system can identify them as the "top layer" and render them on top of all other ingredients, regardless of the order in which they are added, in order to conform to realistic visual logic.

[0057] 3. Geometric avoidance and edge adaptive rules This rule is used to handle the problem of images completely overlapping due to too much food in the same area, and achieves a natural spreading effect through geometric calculations.

[0058] Specifically, a collision detection mechanism can be set up: when a new food image is rendered onto the plate, the system can calculate the coordinate relationship between its circumscribed rectangle or circle and existing food images in real time. Once the overlap area exceeds a preset threshold (such as 30%), the avoidance logic is triggered.

[0059] Radial repulsion algorithm: After the avoidance is triggered, the new food image will not cover the old food, but can automatically move to the nearest free position along the radial direction outward from the center of the plate.

[0060] Edge Constraints: The edge of the plate is set as the physical boundary. When food is pushed or repelled by the edge of the plate, the algorithm automatically adjusts its scaling or rotation angle to ensure that the main part of the food image remains within the white circular area, preventing visual truncation caused by image overflow.

[0061] 4. Interactive dynamic reordering rules The rule responds to the user's "remove" and "replace" actions, ensuring a real-time sense of balance on the plate display.

[0062] Gap filling logic: When a user removes an ingredient, the system detects a visual gap in its original position. At this time, the layout engine calculates the centroid of the remaining ingredients. If the centroid deviates from the geometric center of the plate by more than a set value, the system will automatically fine-tune the coordinates of the remaining ingredients, moving them slightly towards the center or the gap to maintain visual "balance".

[0063] Smooth transition for category replacement: When a user performs a "replace" operation (such as replacing beef with chicken), the system not only replaces the image texture, but also keeps the original spatial coordinates and scaling ratio unchanged, or performs a slight scaling animation transition based on the volume difference between the old and new ingredients, avoiding the impact on user experience due to drastic layout changes.

[0064] By using the aforementioned preset layout rules, this application embodiment can automatically generate food combination images that conform to human cognitive habits, have clear hierarchy, and are well-defined without requiring the user to manually drag and adjust them. This effectively solves the problems of simply piling up food images, severe occlusion, and lack of realism.

[0065] S103: After receiving information that the user has completed the selection of ingredients, the system generates dietary content based on the combination of ingredients selected by the user through an artificial intelligence (AI) model. The dietary content includes a recommended shopping list corresponding to the combination of ingredients, generated based on the product information database in the product information service system. The recommended shopping list includes recommended ingredients and recommended quantities.

[0066] After a user completes their ingredient selection, an AI model can generate dietary content based on the chosen ingredient combinations. This dietary content may include a recommended shopping list corresponding to the ingredient combinations, generated from a product information database within a linked product information service system. The recommended shopping list may include recommended ingredients and their quantities. In other words, the user... Figure 2 The interface shown allows users to select ingredients, primarily to determine specific ingredient combinations. However, to place an order, these combinations need to be converted into specific products. Ingredient-related products may come in various weight specifications. For example, cherry tomatoes might correspond to multiple different SKUs (Stock Keeping Units), some SKUs being 250g per serving, others 500g per serving, and so on. Therefore, the system can combine specific ingredient combinations to recommend appropriate quantities to the user, facilitating the selection of specific product SKUs. Optionally, the system can automatically convert the quantities to commonly used market units based on the number of diners and serving sizes set by the user (e.g., 200g chicken breast → approximately 1 piece; 150g broccoli → approximately 1 / 2 head). Furthermore, the system can synchronize with the shopping cart function of the specific product information service system, creating a closed loop from planning to purchase.

[0067] In an optional manner, the specific dietary content may also include information such as the name of the combination scheme generated by the AI ​​model, the calorie analysis information of each ingredient generated by the AI ​​model based on the combination of ingredients, the nutritional comments of the combination of ingredients by the AI ​​model, the advantages and disadvantages of the combination obtained by the AI ​​model from the analysis of the combination of ingredients, the suggestions for meal preparation steps and / or cooking methods generated by the AI ​​model based on the combination of ingredients, and so on.

[0068] For example, assuming a user selects cherry tomatoes, white shrimp, lettuce, and soda, the AI-generated meal plan could be as follows: Figure 3 As shown. Among them, as Figure 3 As shown in (A), a name can be generated for the current combination scheme, such as "Summer Light Meal Bowl". Then, a specific shopping list can be included, including specific products and recommended quantities, such as 500g cherry tomatoes, 150g South American white shrimp, 500g lettuce, soda, etc. Specifically, the above combination of the same product and recommended quantity can correspond to one SKU. That is, if the user accepts the current recommendation, there is no need to select an SKU. They can directly place an order according to the AI ​​recommendation.

[0069] In addition to the shopping list, we can also provide content related to "complete calorie analysis," such as... Figure 3 As shown in (A), the system can analyze the calories of the currently selected ingredients, such as "cherry tomatoes" and "shrimp". In other words, in addition to providing calorie information for each ingredient during the selection process, the AI-generated content can also provide more detailed calorie analysis, including information on the nutrients contained in each ingredient and the characteristics of the ingredients.

[0070] In addition, such as Figure 3 As shown in (B), it can also provide AI-generated "Nutritional Health Score" and "AI Nutritionist Review," which assesses whether the various nutrients in the current shopping list are sufficient and abundant, and provides corresponding score results. For example, in the aforementioned example, the specific nutritional health score results could be: Protein adequacy: A+, Vitamin richness: A+, Dietary fiber: A-, Calorie control: A+, etc. This allows users to more intuitively determine whether the current shopping list is lacking in any particular nutrient, etc. In addition, through the "AI Nutritionist Review" section, the combination of items in the current shopping list can be reviewed from a nutritional perspective. Using natural language, the performance of the nutritional combinations can be summarized, the advantages and disadvantages of the combinations can be analyzed, and suggestions can be provided for suitable groups (such as muscle gain, fat loss, and daily light meals), making the specific assessment results more easy to understand.

[0071] Furthermore, such as Figure 3 As shown in (C), AI-generated recommended recipes can also be provided. For example, for the combination of "cherry, white shrimp, lettuce, and soda" selected in the previous example, specific recommended recipes could include "Shrimp and Lettuce Salad Bowl" or "Tomato Sparkling Drink." For each recommended recipe, corresponding reasons and steps can be provided.

[0072] Furthermore, based on previous nutritional health scores or summaries, suggestions or recommendations can be made regarding potential deficiencies in the current food combination. For example, ... Figure 3 As shown in (C), if the AI ​​determines that the combination submitted by the user may be lacking in satiety, it can ask the user if they want to "make the feeling of satiety last longer" and provide corresponding recommended ingredients, such as "half a boiled corn", "one boiled egg", "30g of boiled quinoa", etc.

[0073] In addition to providing the AI-generated meal options, the system also offers options such as "Re-plan" and "Select Ingredients." If the user is satisfied with the current meal plan, they can directly click the "Select Ingredients" option to enter the specific product SKU selection interface. Alternatively, since the AI ​​has already recommended a shopping list, it can automatically add the items from the list to the "Shopping Cart." Clicking the "Select Ingredients" option will then take the user directly to the "Shopping Cart" interface or the checkout interface, etc. If the user is not satisfied with the current meal plan, they can click the "Re-plan" option to select new ingredients.

[0074] In addition, to enhance user engagement, promote social sharing, and improve the data loop, the system can also provide the following interactive options below the AI-generated content, such as "favorite", "share", and "submit for publication". At the same time, it also supports users to edit and modify the generated content before publishing.

[0075] The "Favorites" option can be used to create a user's "personalized dietary database," and users can perform the following operations: Categorization and archiving: Users can save their favorite meal combinations to custom folders, such as "Monday low-fat lunch" or "5-minute quick breakfast".

[0076] One-click reuse: Saved plans can be loaded into the virtual plate with one click. Users do not need to select again next time. They can directly make minor adjustments based on the original plan, which greatly reduces decision-making costs.

[0077] Templated: For frequently used combinations, users can set them as "personal templates", and the system will proactively remind or recommend them at the same time every week.

[0078] The "Share" option is primarily used to meet users' social sharing needs and facilitate product dissemination. Specifically, it may include: Aesthetic Poster Generation: The system automatically arranges and generates a stylish "light meal check-in poster" by combining a high-definition rendering of the virtual plate, nutrition data cards, AI comments, and QR codes.

[0079] Multi-platform compatibility: Supports one-click sharing to various social media platforms. The QR code on the poster can guide friends to directly view the details of the outfit or copy the same design.

[0080] Privacy protection: When sharing, you can choose to hide specific calorie values ​​or personal body data, only displaying beautiful pictures of the plate and recipes, balancing the desire to share with privacy and security.

[0081] The "Submit and Publish" option is primarily used to transform personal outfits into public content on the platform, building a UGC (user-generated content) community ecosystem. For example, it can be published as: Structured Posts: After clicking "Publish," the user's meal plan will be automatically generated into a standard community post, which may include a title (AI can assist in generating), a picture of the plate, an ingredient list, nutritional analysis, and a personal reflection editing area.

[0082] Tags and Topics: The system automatically extracts food and efficacy tags (such as #highprotein #lowcaloriedin #avocado) and recommends popular topics to increase the exposure of the content.

[0083] Incentives and Feedback: After publication, other users can like, comment, favorite, or even "recreate" the plan with one click. The original author can receive points, badges, or platform benefits as rewards, forming a positive cycle of "creation-feedback-incentive".

[0084] Professional endorsement: For high-quality published content, the platform can introduce certified nutritionists to provide "professional reviews" or "highlight certification" to enhance the authority and credibility of the content.

[0085] In summary, through the embodiments of this application, a first area and a second area can be provided in the target interface. The first area includes a navigation sub-area and a content sub-area. The navigation area is used to display multiple tag options, which correspond to multiple food categories related to dietary pairings. The content sub-area is used to display multiple candidate foods corresponding to the selected tag options. The second area displays virtual plate elements. Furthermore, after receiving information that the user has completed food selection, a dietary content can be generated based on the user's selected food pairing combination using an artificial intelligence (AI) model. The dietary content includes a recommended shopping list corresponding to the food pairing combination, generated based on the product information database in the product information service system. The recommended shopping list includes recommended food products and recommended quantities. This solution allows users to intuitively perceive the volume ratio of different food combinations in physical space; it also allows for real-time calculation of calories, enabling users to adjust their food combinations based on calorie accumulation during the selection process; and finally, AI can automatically generate complete text and image content of the meal to facilitate users in creating food logs for sharing and other purposes.

[0086] It should be noted that the embodiments of this application may involve the use of user data. In practical applications, user-specific personal data may be used in the scheme described herein within the scope permitted by applicable laws and regulations, provided that it complies with the applicable laws and regulations of the country (e.g., with the user's explicit consent, with the user being properly notified, etc.).

[0087] Corresponding to the foregoing method embodiments, this application also provides an apparatus for providing information, the apparatus being applied to an application client associated with a commodity information service system, the apparatus including: The interface providing unit is used to respond to access requests submitted through function entry points related to the dietary pairing function and display the target interface; the target interface includes a first area and a second area, the first area includes a navigation sub-area and a content sub-area, the navigation area is used to display multiple tag options, the tag options correspond to multiple food categories related to dietary pairing, the content sub-area is used to display multiple candidate foods corresponding to the selected tag option; the second area displays virtual plate elements; The rendering and display unit is used to render and display the image of the selected ingredient in the virtual plate element in the second area after receiving the user's selection operation of the candidate ingredients, and to display the calorie information of the selected ingredients in the target interface; wherein, as the number of selected ingredients increases, the images of multiple ingredients are arranged in the virtual plate element according to the preset layout rules to form a matching preview image and display the cumulative calories of multiple ingredients. The AI ​​content display unit is used to generate dietary content based on the user's selected ingredient combinations after receiving information from the user. The dietary content includes a recommended shopping list corresponding to the ingredient combinations, generated from the product information database in the product information service system. The recommended shopping list includes recommended ingredients and recommended quantities.

[0088] In a specific implementation, the device may further include: The AI ​​recommendation unit is used to provide AI recommendation operation options during the process of displaying the currently selected tag option and its corresponding candidate ingredient information in the first area. After the operation option is triggered, the AI ​​model recommends ingredients that are suitable to match the selected ingredients in the ingredient category to which the currently selected tag option belongs, based on the ingredients that the user has selected in other ingredient categories.

[0089] The food images displayed in the virtual plate element can be removed or replaced.

[0090] Specifically, the dietary content generated by the AI ​​model also includes: the name of the combination scheme generated by the AI ​​model, the calorie analysis information of each ingredient generated by the AI ​​model based on the combination of ingredients, the nutritional comments of the combination of ingredients by the AI ​​model, the advantages and disadvantages of the combination obtained by the AI ​​model from the analysis of the combination of ingredients, and / or, the meal preparation steps and / or cooking method suggestions generated by the AI ​​model based on the combination of ingredients.

[0091] In addition, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method described in any of the foregoing method embodiments.

[0092] And an electronic device, comprising: One or more processors; and A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method described in any of the foregoing method embodiments.

[0093] A computer program product includes a computer program / computer executable instructions that, when executed by a processor in an electronic device, implement the steps of the method described in the foregoing method embodiments.

[0094] in, Figure 4 An exemplary architecture of an electronic device is shown, which may include a processor 410, a video display adapter 411, a disk drive 412, an input / output interface 413, a network interface 414, and a memory 420. The processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, and memory 420 can communicate with each other via a communication bus 430.

[0095] The processor 410 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in this application.

[0096] The memory 420 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 420 can store the operating system 421 for controlling the operation of the electronic device 400, and the basic input / output system (BIOS) for controlling the low-level operations of the electronic device 400. Additionally, it can store a web browser 423, a data storage management system 424, and an information providing system 425, etc. The aforementioned information providing system 425 can be the application program that specifically implements the aforementioned steps in this embodiment. In summary, when the technical solution provided in this application is implemented through software or firmware, the relevant program code is stored in the memory 420 and is called and executed by the processor 410.

[0097] Input / output interface 413 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.

[0098] Network interface 414 is used to connect a communication module (not shown in the figure) to enable communication and interaction between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0099] Bus 430 includes a pathway for transmitting information between various components of the device, such as processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, and memory 420.

[0100] It should be noted that although the above-described device only shows the processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, memory 420, bus 430, etc., in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the solution of this application, and does not necessarily include all the components shown in the figures.

[0101] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0102] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0103] The method and electronic device for providing dietary matching information provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for providing dietary pairing information, characterized in that, The method is applied to an application client associated with a commodity information service system, and the method includes: In response to an access request submitted through a function entry related to the meal pairing function, a target interface is displayed; the target interface includes a first area and a second area, the first area includes a navigation sub-area and a content sub-area, the navigation area is used to display multiple tag options, the tag options correspond to multiple food categories related to meal pairing, the content sub-area is used to display multiple candidate foods corresponding to the selected tag option; a virtual plate element is displayed in the second area; After receiving the user's selection operation for the candidate ingredients, the image of the selected ingredient is rendered and displayed in the second area to display the virtual plate element, and the calorie information of the selected ingredient is displayed in the target interface; wherein, as the number of selected ingredients increases, the images of multiple ingredients are arranged in the virtual plate element according to a preset layout rule to form a combination preview image and display the cumulative calories of multiple ingredients. After receiving information from the user that they have completed their ingredient selection, the system generates dietary content based on the user's chosen ingredient combination using an artificial intelligence (AI) model. The dietary content includes a recommended shopping list corresponding to the ingredient combination, generated from the product information database in the product information service system. The recommended shopping list includes recommended ingredients and recommended quantities.

2. The method according to claim 1, characterized in that, Also includes: While displaying the currently selected tag option and its corresponding candidate ingredient information in the first area, an AI recommendation operation option is provided. After this operation option is triggered, the AI ​​model recommends suitable ingredients to match the selected ingredients in the ingredient category to which the currently selected tag option belongs, based on the ingredients that the user has selected in other ingredient categories.

3. The method according to claim 1, characterized in that, The food images displayed in the virtual plate element can be removed or replaced.

4. The method according to claim 1, characterized in that, The dietary content generated by the AI ​​model also includes information on the names of the food pairing schemes generated by the AI ​​model.

5. The method according to claim 1, characterized in that, The dietary content generated by the AI ​​model also includes: calorie analysis information for each ingredient, generated by the AI ​​model based on the combination of ingredients.

6. The method according to claim 1, characterized in that, The dietary content generated by the AI ​​model also includes nutritional commentary on the food combinations provided by the AI ​​model.

7. The method according to claim 1, characterized in that, The dietary content generated by the AI ​​model also includes information on the advantages and disadvantages of the food combinations obtained by the AI ​​model from analyzing the food combinations.

8. The method according to claim 1, characterized in that, The dietary content generated by the AI ​​model also includes suggestions on meal preparation steps and / or cooking methods, generated by the AI ​​model based on the combination of the ingredients.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method described in any one of claims 1 to 8.

10. An electronic device, characterized in that, include: One or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method according to any one of claims 1 to 8.

11. A computer program product, comprising a computer program or computer-executable instructions, characterized in that, When the computer program / computer executable instructions are executed by a processor in an electronic device, they implement the steps of the method according to any one of claims 1 to 8.