Food recommendation method and system based on big data
By building a knowledge graph and using a graph autoencoder, combined with a gated recurrent unit and a deep neural network model, the problem of inaccurate user demand recommendations on the takeout platform is solved, and accurate recommendations for users' current needs are achieved, improving the accuracy of recommendations. and user satisfaction.
Patent Information
- Application Number
- CN202410735662.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Users face information overload on takeout platforms. Traditional food recommendations rely on historical purchase records and cannot accurately reflect users' current needs, resulting in inaccurate recommendation results.
A food recommendation method based on big data is used to build a knowledge graph by obtaining the target user's screen recording video, historical order records and similar user data, and uses a graph autoencoder to determine the food importance, and based on the gated loop unit and depth Neural network model for recommendation.
It achieves accurate recommendations for users' current needs, improves recommendation accuracy and user satisfaction, and can adjust food display methods in real time based on user feedback.
Smart Images

Figure CN118537100A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of food recommendation, and in particular to a food recommendation method and system based on big data. Background Art
[0002] With the popularization of mobile Internet, food delivery platforms, as the main form of online catering services, have been warmly welcomed by the majority of users. On food delivery platforms, users can browse various foods, choose their favorite stores to place orders, and enjoy convenient food delivery services. However, with the increasing variety of food on food delivery platforms and the rapid expansion of the number of stores, users are faced with the problem of information overload when browsing and selecting food. Traditional food recommendations mainly rely on users' historical purchase records for recommendations. However, users' historical purchase records often do not reflect their current food purchase needs, which results in inaccurate recommendations.
[0003] Therefore, how to recommend foods that meet current needs to users is an urgent problem to be solved. Summary of the invention
[0004] The main technical problem solved by the present invention is how to recommend food that meets the current needs of users.
[0005] According to a first aspect, the present invention provides a food recommendation method based on big data, comprising: obtaining a screen recording video of a target user browsing food; using a food determination model to determine a plurality of currently concerned foods based on the screen recording video of the target user browsing food; obtaining the target user's historical food order records, a plurality of ordering users who have placed orders in the current time period, and a historical food order record of each ordering user who has placed orders in the current time period; using a similarity determination model to determine a plurality of similar users and the similarity of each similar user to the target user based on the target user's historical food order records and the plurality of ordering users who have placed orders in the current time period; obtaining the historical food order records of each similar user and the foods ordered by each similar user in the current time period; and constructing a knowledge graph. The knowledge graph includes multiple nodes and multiple edges, wherein the multiple nodes include a target node and multiple similar user nodes connected to the target node, each similar user node establishes an edge with the target node, the node features of the target node include the multiple concerned foods and the historical food order records of the target user, the node features of each similar user node include the historical food order records of each similar user and the food ordered by each similar user in the current time period, and the features of the edge established between each similar user node and the target node include the similarity between each similar user and the target user; the knowledge graph is processed based on a graph autoencoder to determine multiple target foods and the importance of each target food; and recommendations are made to the target user based on the multiple target foods and the importance of each target food.
[0006] Furthermore, the food determination model is a gated recurrent unit.
[0007] Furthermore, the method further includes: obtaining feedback information of the target user on the target food; and adjusting the display mode of the target food based on the feedback information of the target user on the target food.
[0008] Furthermore, the recommending to the target user based on the multiple target foods and the importance of each target food includes: sorting each target food in order of importance from high to low to obtain a recommended ranking order; and displaying the multiple target foods to the user terminal based on the recommended ranking order.
[0009] Furthermore, the similarity determination model is a deep neural network model.
[0010] According to a second aspect, the present invention provides a food recommendation system based on big data, including: a first acquisition module, used to acquire a screen recording video of a target user browsing food; a food determination module, used to determine multiple current foods of interest based on the screen recording video of the target user browsing food using a food determination model; a second acquisition module, used to acquire the target user's historical food order records, multiple ordering users who have placed orders in the current time period, and the historical food order records of each ordering user who has placed orders in the current time period; a similarity determination module, used to determine multiple similar users and the similarity of each similar user to the target user based on the target user's historical food order records and the historical food order records of multiple ordering users who have placed orders in the current time period using a similarity determination model; a third acquisition module, used to acquire each similar user's historical food order records, the food ordered by each similar user in the current time period a knowledge graph module for constructing a knowledge graph, wherein the knowledge graph includes multiple nodes and multiple edges, wherein the multiple nodes include a target node and multiple similar user nodes connected to the target node, wherein each similar user node establishes an edge with the target node, wherein the node features of the target node include the multiple concerned foods and the historical food order records of the target user, the node features of each similar user node include the historical food order records of each similar user and the food ordered by each similar user in the current time period, and the features of the edge established between each similar user node and the target node include the similarity between each similar user and the target user; an importance determination module for determining the importance of multiple target foods and each target food by processing the knowledge graph based on a graph autoencoder; a recommendation module for making recommendations to the target user based on the importance of the multiple target foods and each target food.
[0011] Furthermore, the food determination model is a gated recurrent unit.
[0012] Furthermore, the system is also used to: obtain feedback information of the target user on the target food; and adjust the display mode of the target food based on the feedback information of the target user on the target food.
[0013] Furthermore, the recommendation module is further used to: sort each target food in descending order of importance to obtain a recommended arrangement order; and display multiple target foods to the user terminal based on the recommended arrangement order.
[0014] Furthermore, the similarity determination model is a deep neural network model.
[0015] The present invention provides a food recommendation method and system based on big data, the method comprising obtaining a screen recording video of a target user browsing food; determining a plurality of currently concerned foods using a food determination model based on the screen recording video of the target user browsing food; obtaining the target user's historical food order records, a plurality of ordering users who have placed orders in the current time period, and the historical food order records of each ordering user who has placed orders in the current time period; determining a plurality of similar users and the similarity of each similar user to the target user using a similarity determination model based on the target user's historical food order records and the plurality of ordering users who have placed orders in the current time period; obtaining the historical food order records of each similar user and the foods ordered by each similar user in the current time period; and constructing a knowledge graph, the knowledge graph comprising a plurality of nodes. and multiple edges, the multiple nodes include a target node and multiple similar user nodes connected to the target node, each similar user node establishes an edge with the target node, the node features of the target node include the multiple concerned foods and the historical food order records of the target user, the node features of each similar user node include the historical food order records of each similar user and the food ordered by each similar user in the current time period, and the features of the edge established between each similar user node and the target node include the similarity between each similar user and the target user; based on the graph autoencoder, the knowledge graph is processed to determine the importance of multiple target foods and each target food; based on the multiple target foods and the importance of each target food, recommendations are made to the target user, and the method can recommend foods that meet the current needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a process of a food recommendation method based on big data provided by an embodiment of the present invention; Figure 2 A schematic diagram of a food recommendation system based on big data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In an embodiment of the present invention, there is provided Figure 1 A food recommendation method based on big data is shown, and the food recommendation method based on big data includes steps S1 to S8: Step S1, obtaining a screen recording video of a target user browsing food.
[0018] The target users are those who need food recommendations.
[0019] The screen recording video when the target user browses food refers to recording the display video of the terminal screen when the target user browses the food-related application through the screen recording software. The time period of the screen recording video when the target user browses food can be 30 seconds, 1 minute, 2 minutes, etc.
[0020] By recording the user's actual actions in the application, the user's current behavior data for ordering food can be obtained in real time, rather than relying on the user's historical data. As an example, when a user opens a food application, the screen recording operation is started. The user's actions such as browsing different food pages in the application, clicking on products, adding products to the shopping cart, etc. will be recorded to form a screen recording video file.
[0021] For example, a screen recording video of a target user browsing food items shows that the user browsed 10 food items in the past five minutes.
[0022] Step S2, determining a plurality of currently focused foods using a food determination model based on the screen recording video of the target user browsing foods.
[0023] The food determination model is a gated recurrent unit. The input of the food determination model is a screen recording video of the target user browsing food, and the output of the food determination model is a plurality of currently concerned foods.
[0024] The Gated Recurrent Unit (GRU) is used to process sequence data and timing information. The Gated Recurrent Unit includes three components: a memory unit, an update gate, and a reset gate. Through the gating mechanism, the Gated Recurrent Unit can better capture the long-term dependencies in the screen recording video sequence data when the target user browses the food, thereby more accurately determining multiple current focus foods.
[0025] The currently focused food is the food that the user may be interested in, which is obtained by the food determination model based on the screen recording video output when the target user browses the food.
[0026] The screen recording video contains visual information of all the food pages the user browses in the application, clicks on products, adds products to the shopping cart, and other operations. By analyzing the content displayed in the video, we can determine the multiple foods that the user is currently paying attention to, as well as their browsing and interaction behaviors. The gated recurrent unit converts the screen recording video into behavioral sequence data, which can perform sequence analysis on the user's operations. By analyzing the user's operation sequence in the application, the gated recurrent unit can infer the user's behavior trajectory and intention, and then determine the multiple foods that the user is currently paying attention to.
[0027] The screen recording video of the target user browsing food provides real-time behavioral data, rich visual information, behavioral sequence analysis and contextual reasoning. These features enable the screen recording video of the target user browsing food to be used by the gated recurrent unit to determine the multiple foods that the user is currently paying attention to.
[0028] In one embodiment, the food determination model includes a food browsing interface segmentation layer, a food behavior data determination layer, a food attention output layer, and a food determination layer. The input of the food browsing interface segmentation layer is a screen recording video of the target user browsing food, and the output of the food browsing interface segmentation layer is a screen recording video of the user browsing each food. The input of the food behavior data determination layer is a screen recording video of the user browsing each food. The output of the food behavior data determination layer is the time when the user browses each food and the user's operation data on each food. The input of the food attention output layer is the time when the user browses each food and the user's operation data on each food. The output of the food attention output layer is the user's attention to each food. The input of the food determination layer is the user's attention to each food, and the output of the food determination layer is multiple currently concerned foods. The user's operation data on each food includes operations such as collecting food, following stores, adding to shopping carts, and making comments.
[0029] Step S3, obtaining the historical food order records of the target user, multiple ordering users who have placed orders in the current time period, and the historical food order records of each ordering user who has placed orders in the current time period.
[0030] The target user's historical food order records refer to the records of food orders placed by the target user in the past period of time. These records include information such as order time, purchased food, quantity, etc.
[0031] The multiple ordering users who have placed orders in the current time period are multiple users who have placed orders in the current preset time period. The current time period may be a time period from the current time point, for example, the current time period is half an hour before or one hour before the current time point. The current time point may be the time point when step S3 is executed. As an example, the current time point is 12 noon, and the current time period may be one hour before 12 o'clock, that is, 11 o'clock to 12 o'clock.
[0032] The historical food order record of each ordering user who has placed an order in the current time period is a record of food orders placed by each user who has placed an order in the current time period in the past period of time.
[0033] Step S4, using a similarity determination model to determine multiple similar users and the similarity between each similar user and the target user based on the historical food order records of the target user and the historical food order records of multiple ordering users who have placed orders in the current time period.
[0034] The similarity determination model is a deep neural network model. The input of the similarity determination model is the historical food order records of the target user and the historical food order records of multiple ordering users who have placed orders in the current time period, and the output of the similarity determination model is multiple similar users and the similarity between each similar user and the target user. The deep neural network may include multiple processing layers, each processing layer is composed of multiple neurons, and each neuron performs a matrix transformation on the data. The parameters used by the matrix can be obtained through training.
[0035] The deep neural network model can learn higher-level abstract features from the historical food order records of the target user and the historical food order records of multiple ordering users who have placed orders in the current time period through a multi-level neural network structure, and then analyze the food preferences, purchasing habits and other characteristics of different users, and then determine multiple similarities and the similarity between each similar user and the target user.
[0036] Step S5, obtaining the historical food order records of each similar user and the food ordered by each similar user in the current time period.
[0037] After similar users are determined, the historical food order records of each similar user and the food ordered by each similar user in the current time period can be obtained.
[0038] Step S6, constructing a knowledge graph, the knowledge graph including multiple nodes and multiple edges, the multiple nodes including a target node and multiple similar user nodes connected to the target node, each similar user node establishing an edge with the target node, the node features of the target node including the multiple concerned foods and the historical food order records of the target user, the node features of each similar user node including the historical food order records of each similar user and the food ordered by each similar user in the current time period, and the features of the edge established between each similar user node and the target node include the similarity between each similar user and the target user.
[0039] The knowledge graph can integrate various features of the target user and similar users into a unified structure, which is convenient for subsequent analysis by the graph autoencoder. In the knowledge graph, nodes represent entities or concepts, and each node contains a set of features that describe the attributes or states of the entity. Edges In the knowledge graph, edges represent the relationship between nodes. The features of edges are used to describe the properties of edges. The features of edges include the similarity between similar users and the target user.
[0040] The target node represents the node of the target user in the knowledge graph. The similar user nodes represent the nodes of other users similar to the target user in the knowledge graph. Each similar user node is connected to the target node.
[0041] Step S7: Process the knowledge graph based on the graph autoencoder to determine multiple target foods and the importance of each target food.
[0042] The input of the graph autoencoder is the knowledge graph, and the output of the graph autoencoder is multiple target foods and the importance of each target food.
[0043] The target food is the food that needs to be recommended to the target user in the end. The importance of the target food indicates the importance of the food when recommending.
[0044] The nodes in the knowledge graph include the target node and the similar user nodes connected to it, and the edges represent the relationship between the nodes. Both the target node and the similar user nodes have rich node features, such as historical food order records. The edges established between the similar user nodes and the target node also have features, such as the similarity between the similar users and the target users. The graph autoencoder can process complex graph structure data, learn the low-dimensional representation of the nodes through the encoder and decoder, and convert it into a continuous vector space. Such a representation can retain the semantic relationship and important features between the nodes. The knowledge graph provides rich node and edge information, and the graph autoencoder has the ability to process graph structure data and can learn useful feature information from it to determine multiple target foods and the importance of each target food.
[0045] By building a knowledge graph, we can analyze the relationship between the target user and similar users, as well as their historical food order records and node features such as the food they follow. This information can more accurately predict the food that users may be interested in, improve the accuracy of recommendations and user satisfaction.
[0046] Step S8: recommending the target foods to the target user based on the multiple target foods and the importance of each target food.
[0047] In some embodiments, each target food may be sorted in descending order of importance to obtain a recommended ranking order, and then multiple target foods may be displayed to the user terminal based on the recommended ranking order.
[0048] In some embodiments, the store review information corresponding to each target food can be obtained, and the store score corresponding to each target food can be determined using a review processing model based on the store review information corresponding to each target food. The total score is obtained by weighted summing the store score corresponding to each target food and the importance of each target food, and each target food is sorted in order from high to low according to the total score to obtain a recommended ranking order, and then multiple target foods are displayed to the user terminal based on the recommended ranking order. Recommend to the target user. The review processing model is a deep neural network model, and the input of the review processing model is the store review information corresponding to each target food, and the output of the review processing model is the store score corresponding to each target food. The store review information corresponding to each target food includes a review picture, a review text, and a review video.
[0049] Based on the same inventive concept, Figure 2 A schematic diagram of a food recommendation system based on big data provided by an embodiment of the present invention, the food recommendation system based on big data includes: A first acquisition module 21 is used to acquire a screen recording video of a target user browsing food; A food determination module 22, configured to determine a plurality of currently concerned foods using a food determination model based on a screen recording video of the target user browsing foods; The second acquisition module 23 is used to acquire the historical food order records of the target user, multiple ordering users who have placed orders in the current time period, and the historical food order records of each ordering user who has placed orders in the current time period; A similarity determination module 24 is used to determine a plurality of similar users and a similarity between each similar user and the target user using a similarity determination model based on the historical food order records of the target user and the historical food order records of the plurality of ordering users who have placed orders in the current time period; The third acquisition module 25 is used to obtain the historical food order records of each similar user and the food ordered by each similar user in the current time period; The knowledge graph module 26 is used to construct a knowledge graph, wherein the knowledge graph includes a plurality of nodes and a plurality of edges, wherein the plurality of nodes include a target node and a plurality of similar user nodes connected to the target node, wherein each similar user node establishes an edge with the target node, wherein the node features of the target node include the plurality of concerned foods and the historical food order records of the target user, and the node features of each similar user node include the historical food order records of each similar user and the food ordered by each similar user in the current time period, and the features of the edge established between each similar user node and the target node include the similarity between each similar user and the target user; An importance determination module 27, configured to process the knowledge graph based on a graph autoencoder to determine the importance of multiple target foods and each target food; The recommendation module 28 is used to recommend the target food to the target user based on the multiple target foods and the importance of each target food.
Claims
1. A food recommendation method based on big data, It is characterized in that include: Get screen recording videos of target users browsing food products; Determine a plurality of currently concerned foods using a food determination model based on a screen recording video of the target user browsing foods; Obtain the historical food order records of the target user, multiple ordering users who have placed orders in the current time period, and the historical food order records of each ordering user who has placed orders in the current time period; Determine multiple similar users and the similarity between each similar user and the target user using a similarity determination model based on the historical food order records of the target user and the historical food order records of multiple ordering users who have placed orders in the current time period; Obtain the historical food order records of each similar user and the food ordered by each similar user in the current time period; Constructing a knowledge graph, wherein the knowledge graph includes a plurality of nodes and a plurality of edges, wherein the plurality of nodes include a target node and a plurality of similar user nodes connected to the target node, wherein each similar user node establishes an edge with the target node, wherein the node features of the target node include the plurality of concerned foods and the historical food order records of the target user, and the node features of each similar user node include the historical food order records of each similar user and the food ordered by each similar user in the current time period, and the features of the edge established between each similar user node and the target node include the similarity between each similar user and the target user; Processing the knowledge graph based on a graph autoencoder to determine a plurality of target foods and the importance of each target food; Recommendations are made to a target user based on the plurality of target foods and the importance of each target food.
2. The food recommendation method based on big data as claimed in claim 1, It is characterized in that The food determination model is a gated recurrent unit.
3. The food recommendation method based on big data as claimed in claim 1, It is characterized in that The method further comprises: Obtaining target users’ feedback on target foods; The display mode of the target food is adjusted based on the feedback information of the target user on the target food.
4. The food recommendation method based on big data as claimed in claim 1, It is characterized in that The recommending to the target user based on the plurality of target foods and the importance of each target food comprises: Sort each target food in descending order of importance to obtain a recommended ranking order; A plurality of target foods are displayed to a user terminal based on the recommended arrangement order.
5. The food recommendation method based on big data as claimed in claim 1, It is characterized in that The similarity determination model is a deep neural network model.
6. A food recommendation system based on big data, It is characterized in that include: The first acquisition module is used to acquire the screen recording video of the target user browsing food; A food determination module, configured to determine a plurality of currently concerned foods using a food determination model based on a screen recording video of the target user browsing foods; The second acquisition module is used to acquire the historical food order records of the target user, multiple ordering users who have placed orders in the current time period, and the historical food order records of each ordering user who has placed orders in the current time period; A similarity determination module, configured to determine a plurality of similar users and a similarity between each similar user and the target user using a similarity determination model based on the historical food order records of the target user and the historical food order records of the plurality of ordering users who have placed orders in the current time period; The third acquisition module is used to obtain the historical food order records of each similar user and the food ordered by each similar user in the current time period; A knowledge graph module, for constructing a knowledge graph, wherein the knowledge graph includes a plurality of nodes and a plurality of edges, wherein the plurality of nodes include a target node and a plurality of similar user nodes connected to the target node, wherein each similar user node establishes an edge with the target node, wherein the node features of the target node include the plurality of concerned foods and the historical food order records of the target user, and the node features of each similar user node include the historical food order records of each similar user and the food ordered by each similar user in the current time period, and the features of the edge established between each similar user node and the target node include the similarity between each similar user and the target user; An importance determination module, used for determining the importance of multiple target foods and each target food by processing the knowledge graph based on a graph autoencoder; The recommendation module is used to recommend the target food to the target user based on the multiple target foods and the importance of each target food.
7. The food recommendation system based on big data as claimed in claim 6, It is characterized in that The food determination model is a gated recurrent unit.
8. The food recommendation system based on big data as claimed in claim 6, It is characterized in that The system is also used to: Obtaining target users’ feedback on target foods; The display mode of the target food is adjusted based on the feedback information of the target user on the target food.
9. The food recommendation system based on big data as claimed in claim 6, It is characterized in that The recommendation module is also used to: Sort each target food in descending order of importance to obtain a recommended ranking order; A plurality of target foods are displayed to a user terminal based on the recommended arrangement order.
10. The food recommendation system based on big data as claimed in claim 6, It is characterized in that The similarity determination model is a deep neural network model.
Citation Information
Cited By
Food processing control method and system based on artificial intelligence
CN120029083A
A food processing control method and system based on artificial intelligence
CN120029083B
