Nutritional matching recommendation method and system
By constructing a food nutrition knowledge map and user portraits, and using deep learning algorithms, we solve the problems of high labor costs and low efficiency in the existing technology, realize automated and personalized nutrition combination recommendations, and improve the intelligence and intelligence of nutrition combination recommendations. User experience.
Patent Information
- Application Number
- CN202410213821.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-02-27
AI Technical Summary
The existing nutrition recommendation technology relies on professional knowledge, has high labor costs, heavy workload, and low efficiency. It cannot be widely used and cannot be customized according to the user's personal situation. It has poor practicality and user experience.
By collecting food nutrition big data and user behavior data, we build a food nutrition knowledge map and user portraits, and use deep learning algorithms to build nutrition combination recommendation models and evaluation models to achieve automated and personalized nutrition combination recommendations.
It reduces labor cost investment, improves the efficiency and intelligence of nutritional combination recommendations, enhances the credibility of recommended data and user experience, and realizes unified management and analysis of cloud computing.
Smart Images

Figure CN118170969B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of nutrition pairing recommendation, and in particular relates to a nutrition pairing recommendation method and system. Background Art
[0002] With the development of society and the advancement of science and technology, people are paying more and more attention to healthy diet. As an important part of healthy diet, reasonable nutritional matching can meet the needs of the human body for various nutrients and maintain good health. However, the dietary structure of modern people has changed a lot. Excessive intake of high-fat, high-sugar and high-salt foods has led to a series of chronic diseases, such as obesity, hypertension, diabetes, etc. These problems have seriously affected people's quality of life and even threatened their lives.
[0003] Although the importance of nutritional matching has been widely recognized, in real life, many people still face the problem of how to properly match food. On the one hand, people do not know enough about the nutritional components of food, making it difficult to achieve scientific matching; on the other hand, personal taste preferences, eating habits and other factors will also affect the implementation of nutritional matching.
[0004] In the existing technology, most of them rely on the professional knowledge of the staff to make nutritional combination recommendations, which requires high experience and knowledge reserves of the staff, large labor costs, heavy workload, low efficiency, and cannot be widely used; moreover, it is impossible to customize it according to the user's personal situation, and the practicality and user experience are poor. Summary of the invention
[0005] In order to solve the problems of high manpower cost investment, heavy workload, low efficiency, limited application, poor practicality and user experience in the prior art, the present invention aims to provide a nutrition combination recommendation method and system.
[0006] The technical solution adopted by the present invention is:
[0007] A method for recommending nutritional combinations comprises the following steps:
[0008] Collect food nutrition big data, and build food nutrition knowledge graph and nutrition measurement index set based on the food nutrition big data;
[0009] Collect historical basic data and historical behavior data of several historical users, and construct corresponding historical user portraits based on the several historical basic data and the corresponding several historical behavior data;
[0010] Based on the food nutrition knowledge graph and several historical user portraits, a deep learning algorithm is used to build a corresponding nutrition pairing recommendation model and generate several corresponding historical nutrition pairing recommendation data;
[0011] Based on the nutritional measurement index set and some historical nutritional combination recommendation data, a corresponding nutritional combination recommendation evaluation model is constructed using a deep learning algorithm;
[0012] Collect the current user's real-time basic data, real-time behavior data, and real-time alternative food list, and build a corresponding real-time user profile based on the real-time basic data and real-time behavior data;
[0013] Based on the real-time candidate food list, use the food nutrition knowledge graph to generate the corresponding real-time candidate food nutrition component dataset;
[0014] Input the real-time user portrait and the real-time candidate food nutritional component dataset into the nutritional combination recommendation model to make nutritional combination recommendations and obtain the corresponding candidate real-time nutritional combination recommendation dataset;
[0015] Input the candidate real-time nutrition pairing recommendation data set into the nutrition pairing recommendation evaluation model, conduct nutrition pairing recommendation evaluation, and obtain the corresponding real-time nutrition pairing recommendation score set;
[0016] According to the real-time nutrition pairing recommendation score set, the candidate real-time nutrition pairing recommendation data set is screened to obtain the corresponding optimal real-time nutrition pairing recommendation data.
[0017] Furthermore, food nutrition big data is collected, and based on the food nutrition big data, a food nutrition knowledge graph and a set of nutrition measurement indicators are constructed, including the following steps:
[0018] Collecting food nutrition big data and preprocessing the food nutrition big data to obtain the corresponding preprocessed food nutrition data set;
[0019] Using a pre-trained named entity model, extracting a number of named entities of each pre-processed food nutrition data in the pre-processed food nutrition data set;
[0020] Use a pre-trained entity relationship model to extract entity relationships between several named entities;
[0021] According to several named entities and several entity relationships, a corresponding food nutrition knowledge graph is constructed;
[0022] According to the food nutrition knowledge graph, a corresponding nutrition measurement indicator set is generated; the nutrition measurement indicator set includes N nutrition measurement indicators.
[0023] Furthermore, historical basic data and historical behavior data of a number of historical users are collected, and corresponding historical user portraits are constructed based on the historical basic data and the corresponding historical behavior data, including the following steps:
[0024] Collect historical basic data and historical behavior data of several historical users;
[0025] Generate a number of corresponding historical basic tags based on the historical basic data of historical users;
[0026] Generate a number of corresponding historical behavior tags based on the historical behavior data of historical users;
[0027] Integrate several historical basic tags and several historical behavior tags of each historical user to build a corresponding historical user portrait.
[0028] Furthermore, the historical basic data includes the historical age, historical gender, historical height, historical weight, historical body mass index, historical waist circumference and historical hip circumference of the historical user;
[0029] The historical basic labels include the historical age label, historical gender label, historical height label, historical weight label, historical body mass index label, historical waist circumference label and historical hip circumference label of the historical user;
[0030] Historical behavior data includes historical users’ eating habits, taste preferences, food lists, and exercise records;
[0031] The historical behavior tags include the historical eating habit tags, historical taste preference tags, historical food list tags, and historical exercise record tags of historical users.
[0032] Furthermore, according to the food nutrition knowledge graph and several historical user portraits, a corresponding nutrition pairing recommendation model is constructed using a deep learning algorithm, and several corresponding historical nutrition pairing recommendation data are generated, including the following steps:
[0033] According to the food nutrition knowledge graph and several historical user portraits, a corresponding historical nutrition pairing recommendation sample set is constructed;
[0034] Preprocessing and labeling the historical nutrition pairing recommendation sample set to obtain a preprocessed historical nutrition pairing recommendation sample set with real nutrition pairing recommendation labels;
[0035] The pre-processed historical nutrition combination recommendation sample set is divided into the first model training sample set and the first model test sample set in a ratio of 7:3;
[0036] Using a deep learning algorithm, an initial nutrition pairing recommendation model is constructed, and the first model training sample set is input into the initial nutrition pairing recommendation model for optimization training to generate a number of corresponding first historical predicted nutrition pairing recommendation labels to obtain an optimized nutrition pairing recommendation model;
[0037] Inputting the first model test sample set into the optimized nutrition pairing recommendation model to perform model testing to obtain a number of corresponding second historical prediction nutrition pairing recommendation labels;
[0038] Comparing and counting the second historical predicted nutrition pairing recommendation labels with the corresponding real nutrition pairing recommendation labels to obtain the first model test accuracy;
[0039] If the first model test accuracy is greater than the first preset model test accuracy threshold, the optimal nutrition pairing recommendation model is output, and the first and second historical predicted nutrition pairing recommendation labels are output as the corresponding historical nutrition pairing recommendation data; otherwise, the optimization training continues.
[0040] Furthermore, the nutrition combination recommendation model is constructed based on the CNN-RNN-MLP algorithm.
[0041] Furthermore, based on the set of nutrition measurement indicators and several historical nutrition matching recommendation data, a corresponding nutrition matching recommendation evaluation model is constructed using a deep learning algorithm, including the following steps:
[0042] Preprocessing and labeling a number of historical nutrition pairing recommendation data to obtain a preprocessed historical nutrition pairing recommendation score sample set with a real nutrition pairing recommendation score label;
[0043] The pre-processed historical nutrition combination recommendation score sample set is divided into a second model training sample set and a second model test sample set in a ratio of 7:3;
[0044] Based on the set of nutrition measurement indicators, a deep learning algorithm is used to construct an initial nutrition combination recommendation evaluation model, and the second model training sample set is input into the initial nutrition combination recommendation evaluation model for optimization training to obtain an optimized nutrition combination recommendation evaluation model;
[0045] Inputting the second model test sample set into the optimized nutrition pairing recommendation evaluation model to perform model testing and obtain a number of corresponding historical prediction nutrition pairing recommendation score labels;
[0046] Compare and count several historical predicted nutrition pairing recommendation score labels with several corresponding real nutrition pairing recommendation score labels to obtain the second model test accuracy;
[0047] If the second model test accuracy is greater than the second preset model test accuracy threshold, the optimal nutrition combination recommendation evaluation model is output, otherwise, the optimization training continues.
[0048] Furthermore, the nutritional combination recommendation evaluation model is constructed based on the N-GAN-Attention-MLP algorithm, where N is the total number of nutritional measurement indicators.
[0049] Further, according to the real-time nutrition pairing recommendation score set, the candidate real-time nutrition pairing recommendation data set is screened to obtain the corresponding optimal real-time nutrition pairing recommendation data, including the following steps:
[0050] sorting the real-time nutrition pairing recommendation scores in the real-time nutrition pairing recommendation score set in descending order, and obtaining the highest real-time nutrition pairing recommendation score;
[0051] According to the highest real-time nutrition pairing recommendation score, searching and matching are performed in the candidate real-time nutrition pairing recommendation data set to obtain corresponding matching candidate real-time nutrition pairing recommendation data;
[0052] The matched alternative real-time nutrition pairing recommendation data is output as the optimal real-time nutrition pairing recommendation data.
[0053] A nutrition matching recommendation system is used to implement a nutrition matching recommendation method. The system includes a cloud computing center and a plurality of user terminals. The cloud computing center is respectively connected to the plurality of user terminals for communication;
[0054] The cloud computing center is provided with a knowledge graph construction unit, a historical user portrait construction unit, a nutrition matching recommendation model construction unit, a nutrition matching recommendation evaluation model construction unit, a real-time user portrait construction unit, a food nutrient component acquisition unit, a nutrition matching recommendation unit, a nutrition matching recommendation evaluation unit and an optimal nutrition matching recommendation screening unit, which are connected in sequence. The real-time user portrait construction unit and the optimal nutrition matching recommendation screening unit are respectively connected to a number of user terminals for communication;
[0055] The user terminal is provided with a data collection unit and a nutrition pairing recommendation visualization unit connected in sequence. The data collection unit is communicated with a real-time user portrait construction unit of a cloud computing center, and the nutrition pairing recommendation visualization unit is communicated with an optimal nutrition pairing recommendation screening unit of the cloud computing center.
[0056] The beneficial effects of the present invention are:
[0057] The present invention discloses a nutrition pairing recommendation method and system. By constructing a food nutrition knowledge graph and performing food nutrition component analysis, the dependence on the professional knowledge of the staff is avoided, the manpower cost investment is reduced, and the workload is alleviated; unified data management and analysis are performed based on a cloud computing center, thereby improving the application prospect of nutrition pairing recommendation; a nutrition pairing recommendation model is constructed to perform automatic, efficient and accurate nutrition pairing recommendation, thereby improving the intelligence level of nutrition pairing recommendation; a nutrition pairing recommendation evaluation model is constructed to perform nutrition pairing recommendation evaluation, thereby enhancing the credibility and data value of nutrition pairing recommendation data, and improving practicality and user experience.
[0058] Other beneficial effects of the present invention will be further described in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a flowchart of the nutrition matching recommendation method of the present invention.
[0060] Figure 2 It is a structural block diagram of the nutrition matching recommendation system in the present invention. DETAILED DESCRIPTION
[0061] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments.
[0062] Embodiment 1:
[0063] like Figure 1 As shown, this embodiment provides a method for recommending nutrition combinations, comprising the following steps:
[0064] S1: Collect food nutrition big data, and build a food nutrition knowledge graph and a set of nutrition measurement indicators based on the food nutrition big data, including the following steps:
[0065] S1-1: Collect food nutrition big data and preprocess the food nutrition big data to obtain the corresponding preprocessed food nutrition data set. The food nutrition big data comes from food nutrition labels, food ingredient databases, scientific research literature, etc.
[0066] S1-2: Use the pre-trained named entity model to extract several named entities of each pre-processed food nutrition data in the pre-processed food nutrition data set. The named entities include food name, nutrient composition, nutrient, food source and other named entities. The nutrient composition includes protein, fat, carbohydrate, vitamin, mineral, etc.;
[0067] S1-3: Use the pre-trained entity relationship model to extract entity relationships between several named entities;
[0068] S1-4: Construct the corresponding food nutrition knowledge graph based on several named entities and several entity relationships;
[0069] S1-5: Generate a corresponding nutrition measurement indicator set according to the food nutrition knowledge graph; the nutrition measurement indicator set includes N nutrition measurement indicators;
[0070] The nutritional measurement index set includes nutrient content index, nutrient density index, energy density index, glycemic index, fat quality index, protein quality index, mineral bioavailability index, vitamin activity index, antioxidant index, dietary fiber content index and food additive content index; the nutritional evaluation index of food is a set of parameters used to evaluate the content and quality of nutrients in food. These indicators help determine the nutritional value of food and provide a measurement standard for the subsequent nutritional matching recommendation score;
[0071] S2: Collect historical basic data and historical behavior data of several historical users, and construct corresponding historical user portraits based on the several historical basic data and the corresponding several historical behavior data, including the following steps:
[0072] S2-1: Collect historical basic data and historical behavior data of several historical users;
[0073] Historical basic data includes historical age, gender, height, weight, body mass index, waist circumference and hip circumference of historical users;
[0074] Historical behavior data includes historical users’ eating habits, taste preferences, food lists, and exercise records;
[0075] S2-2: Generate a number of corresponding historical basic tags based on the historical basic data of historical users;
[0076] The historical basic labels include the historical age label, historical gender label, historical height label, historical weight label, historical body mass index label, historical waist circumference label and historical hip circumference label of the historical user;
[0077] S2-3: Generate a number of corresponding historical behavior tags based on the historical behavior data of historical users;
[0078] The historical behavior tags include historical eating habits tags, historical taste preference tags, historical food list tags, and historical exercise record tags of historical users;
[0079] S2-4: Integrate several historical basic tags and several historical behavior tags of each historical user to build a corresponding historical user portrait;
[0080] S3: Based on the food nutrition knowledge graph and several historical user portraits, a deep learning algorithm is used to build a corresponding nutrition pairing recommendation model and generate several corresponding historical nutrition pairing recommendation data, including the following steps:
[0081] S3-1: Based on the food nutrition knowledge graph and several historical user portraits, a corresponding historical nutrition pairing recommendation sample set is constructed;
[0082] S3-2: preprocessing and labeling the historical nutrition pairing recommendation sample set to obtain a preprocessed historical nutrition pairing recommendation sample set with real nutrition pairing recommendation labels;
[0083] S3-3: Divide the preprocessed historical nutrition combination recommendation sample set into a first model training sample set and a first model test sample set in a ratio of 7:3;
[0084] S3-4: Using a deep learning algorithm, construct an initial nutrition pairing recommendation model, and input the first model training sample set into the initial nutrition pairing recommendation model for optimization training, generating a corresponding number of first historical predicted nutrition pairing recommendation labels, and obtaining an optimized nutrition pairing recommendation model;
[0085] S3-5: Inputting the first model test sample set into the optimized nutrition pairing recommendation model to perform model testing to obtain a number of corresponding second historical prediction nutrition pairing recommendation labels;
[0086] S3-6: Compare and count the second historical predicted nutrition pairing recommendation labels and the corresponding real nutrition pairing recommendation labels to obtain the first model test accuracy;
[0087] S3-7: If the first model test accuracy is greater than the first preset model test accuracy threshold, then outputting the optimal nutrition pairing recommendation model, and outputting the first and second historical predicted nutrition pairing recommendation labels as the corresponding historical nutrition pairing recommendation data; otherwise, continuing the optimization training;
[0088] The nutrition matching recommendation model is constructed based on the CNN-RNN-MLP algorithm, and the nutrition matching recommendation model includes a first input layer, a user portrait feature extraction module constructed based on a convolutional neural network (CNN) algorithm, a nutrient component data extraction module constructed based on a recurrent neural network (RNN) algorithm, a first feature fusion module constructed based on a multi-layer perceptron (MLP) algorithm, and a first output layer, the first input layer is respectively connected to the user portrait feature extraction module and the nutrient component data extraction module, the user portrait feature extraction module and the nutrient component data extraction module are both connected to the first feature fusion module, and the first feature fusion module is connected to the first output layer;
[0089] The CNN network extracts the deep features of user portraits through a multi-layer network structure. The RNN network is used to extract the deep features of food nutrients in the food nutrition knowledge graph, and by capturing the temporal information of food nutrients, it improves the learning ability of the deep features of food nutrients. The MLP network is a fully connected layer, and its characteristic is that all neurons between layers are interconnected. It is used to fuse different features to obtain corresponding fusion features and improve data representation capabilities.
[0090] S4: Based on the nutritional measurement index set and some historical nutritional combination recommendation data, a corresponding nutritional combination recommendation evaluation model is constructed using a deep learning algorithm, including the following steps:
[0091] S4-1: Preprocessing and labeling a number of historical nutrition pairing recommendation data to obtain a preprocessed historical nutrition pairing recommendation score sample set with a real nutrition pairing recommendation score label;
[0092] S4-2: Divide the preprocessed historical nutrition combination recommendation score sample set into a second model training sample set and a second model test sample set in a ratio of 7:3;
[0093] S4-3: Based on the nutritional measurement index set, use the deep learning algorithm to build an initial nutritional combination recommendation evaluation model, and input the second model training sample set into the initial nutritional combination recommendation evaluation model for optimization training to obtain an optimized nutritional combination recommendation evaluation model;
[0094] S4-4: Inputting the second model test sample set into the optimized nutrition pairing recommendation evaluation model to perform model testing to obtain a number of corresponding historical prediction nutrition pairing recommendation score labels;
[0095] S4-5: Compare and count a number of historical predicted nutrition pairing recommendation score labels with a number of corresponding real nutrition pairing recommendation score labels to obtain the second model test accuracy;
[0096] S4-6: If the second model test accuracy is greater than the second preset model test accuracy threshold, outputting the optimal nutrition combination recommendation evaluation model, otherwise, continuing the optimization training;
[0097] The nutrition match recommendation evaluation model is constructed based on the N-GAN-Attention-MLP algorithm, and the nutrition match recommendation evaluation model includes a second input layer, N nutrition match recommendation feature extraction modules constructed based on the Generative Adversarial Network (GAN) algorithm, a second feature fusion module constructed based on the MLP algorithm, and a second output layer, the second input layer is respectively connected to the N nutrition match recommendation feature extraction modules, the N nutrition match recommendation feature extraction modules are all connected to the second feature fusion module, and the second feature fusion module is connected to the second output layer, wherein N is the total number of nutrition measurement indicators;
[0098] The Transformer structure is used as the generator of the GAN network to extract the features of the nutrition matching recommendation data from multiple angles, and has the generalization ability to extract features of information at different scales; the Attention mechanism dynamically adjusts the weights of several multi-scale generators of the GAN network, so that these multi-scale generators have different weights; the MLP network is used as a fully connected layer, and the neurons between layers are all interconnected. It is used to fuse the features of the nutrition matching recommendation features from N nutrition measurement angles, obtain multi-angle fusion features, and improve data representation capabilities;
[0099] S5: Collect the real-time basic data, real-time behavior data and real-time alternative food list of the current user, and build a corresponding real-time user profile based on the real-time basic data and real-time behavior data, including the following steps:
[0100] S5-1: Collect the current user's real-time basic data, real-time behavior data, and real-time alternative food list;
[0101] S5-2: Generate a number of corresponding real-time basic tags according to the real-time basic data of the current user;
[0102] S5-3: Generate a number of corresponding real-time behavior tags according to the real-time behavior data of the current user;
[0103] S5-4: Integrate several real-time basic tags and several real-time behavior tags of the current user to build a corresponding real-time user profile;
[0104] S6: Based on the real-time candidate food list, using the food nutrition knowledge graph, generating a corresponding real-time candidate food nutrition component dataset, including the following steps:
[0105] S6-1: Using the food nutrition knowledge graph, obtain a number of food nutrition named entities corresponding to each real-time candidate food in the real-time candidate food list;
[0106] S6-2: Generate corresponding real-time candidate food nutrient component data according to a number of food nutrient named entities and entity relationships between the food nutrient named entities and other named entities;
[0107] S6-3: Obtain corresponding real-time candidate food nutrient composition data sets according to the real-time candidate food nutrient composition data of all real-time candidate foods in the real-time candidate food list.
[0108] S7: Inputting the real-time user portrait and the real-time candidate food nutrient component dataset into the nutrition pairing recommendation model to make nutrition pairing recommendations and obtain the corresponding candidate real-time nutrition pairing recommendation dataset, including the following steps:
[0109] S7-1: Input the real-time user profile and the real-time candidate food nutritional composition dataset into the first input layer of the nutritional combination recommendation model;
[0110] S7-2: Use the user portrait feature extraction module of the nutrition matching recommendation model to extract real-time user portrait features of the real-time user portrait;
[0111] S7-3: using the nutrient composition data extraction module of the nutrient combination recommendation model to extract the nutrient composition data features of the real-time candidate food;
[0112] S7-4: Using the first feature fusion module of the nutrition matching recommendation model, the real-time user portrait feature and the real-time candidate food nutrient component data feature are fused to obtain a first real-time fusion feature;
[0113] S7-5: using the first output layer of the nutrition matching recommendation model, performing classification prediction according to the first real-time fusion feature, and obtaining a corresponding real-time predicted nutrition matching recommendation label;
[0114] S7-6: Obtain corresponding real-time alternative food nutrient data based on the real-time predicted nutritional combination recommendation label;
[0115] S7-7: Traverse all the real-time candidate food nutrient component data in the real-time candidate food nutrient component data set to obtain the corresponding real-time candidate food nutrient component data set;
[0116] S8: Inputting the candidate real-time nutrition pairing recommendation data set into the nutrition pairing recommendation evaluation model to perform nutrition pairing recommendation evaluation to obtain the corresponding real-time nutrition pairing recommendation score set, including the following steps:
[0117] S8-1: Inputting the candidate real-time nutrition matching recommendation data set into the second input layer of the nutrition matching recommendation evaluation model;
[0118] S8-2: using the nutrition matching recommendation feature extraction module of the nutrition matching recommendation evaluation model, extracting N real-time nutrition matching recommendation features from N nutrition measurement angles; the N nutrition measurement angles correspond to nutrient content index, nutrient density index, energy density index, glycemic index index, fat quality index, protein quality index, mineral bioavailability index, vitamin activity index, antioxidant index index, dietary fiber content index and food additive content index;
[0119] S8-3: using the second feature fusion module of the nutrition matching recommendation evaluation model, performing feature fusion on the N real-time nutrition matching recommendation features to obtain a second real-time fusion feature;
[0120] S8-4: using the second output layer of the nutrition matching recommendation evaluation model, performing classification prediction according to the second real-time fusion feature, and obtaining a corresponding real-time predicted nutrition matching recommendation score label;
[0121] S8-5: Obtaining a corresponding real-time nutrition pairing recommendation score according to the real-time predicted nutrition pairing recommendation score label;
[0122] S8-6: traverse all candidate real-time nutrition pairing recommendation data in the real-time candidate real-time nutrition pairing recommendation data set to obtain a corresponding real-time nutrition pairing recommendation score set;
[0123] S9: Screening the candidate real-time nutrition pairing recommendation data set according to the real-time nutrition pairing recommendation score set to obtain the corresponding optimal real-time nutrition pairing recommendation data, including the following steps:
[0124] S9-1: sorting the real-time nutrition pairing recommendation scores in the real-time nutrition pairing recommendation score set in descending order, and obtaining the highest real-time nutrition pairing recommendation score;
[0125] S9-2: searching and matching in the candidate real-time nutrition pairing recommendation data set according to the highest real-time nutrition pairing recommendation score, and obtaining corresponding matching candidate real-time nutrition pairing recommendation data;
[0126] S9-3: Outputting the matched candidate real-time nutrition pairing recommendation data as the optimal real-time nutrition pairing recommendation data.
[0127] Embodiment 2:
[0128] like Figure 2 As shown, this embodiment provides a nutrition matching recommendation system for implementing a nutrition matching recommendation method. The system includes a cloud computing center and a plurality of user terminals. The cloud computing center is respectively connected to the plurality of user terminals for communication;
[0129] The cloud computing center is provided with a knowledge graph construction unit, a historical user portrait construction unit, a nutrition matching recommendation model construction unit, a nutrition matching recommendation evaluation model construction unit, a real-time user portrait construction unit, a food nutrient component acquisition unit, a nutrition matching recommendation unit, a nutrition matching recommendation evaluation unit and an optimal nutrition matching recommendation screening unit, which are connected in sequence. The real-time user portrait construction unit and the optimal nutrition matching recommendation screening unit are respectively connected to a number of user terminals for communication;
[0130] A knowledge graph construction unit, which is used to collect food nutrition big data and construct a food nutrition knowledge graph and a set of nutrition measurement indicators based on the food nutrition big data;
[0131] A historical user portrait construction unit is used to collect historical basic data and historical behavior data of a number of historical users, and to construct corresponding historical user portraits based on the historical basic data and the corresponding historical behavior data;
[0132] A nutrition pairing recommendation model building unit is used to build a corresponding nutrition pairing recommendation model based on the food nutrition knowledge graph and several historical user portraits using a deep learning algorithm, and generate several corresponding historical nutrition pairing recommendation data;
[0133] A nutrition matching recommendation evaluation model construction unit is used to construct a corresponding nutrition matching recommendation evaluation model using a deep learning algorithm based on a set of nutrition measurement indicators and a number of historical nutrition matching recommendation data;
[0134] A real-time user profile building unit, configured to receive the real-time basic data, real-time behavior data and real-time alternative food list of the current user sent by the user terminal, and build a corresponding real-time user profile according to the real-time basic data and real-time behavior data;
[0135] A food nutrition component acquisition unit is used to generate a corresponding real-time candidate food nutrition component data set based on the real-time candidate food list using the food nutrition knowledge graph;
[0136] A nutrition pairing recommendation unit is used to input the real-time user portrait and the real-time candidate food nutrient component data set into the nutrition pairing recommendation model, make nutrition pairing recommendations, and obtain the corresponding candidate real-time nutrition pairing recommendation data set;
[0137] A nutrition matching recommendation evaluation unit is used to input the candidate real-time nutrition matching recommendation data set into the nutrition matching recommendation evaluation model, perform nutrition matching recommendation evaluation, and obtain a corresponding real-time nutrition matching recommendation score set;
[0138] The optimal nutrition combination recommendation screening unit is used to screen the candidate real-time nutrition combination recommendation data set according to the real-time nutrition combination recommendation score set, obtain the corresponding optimal real-time nutrition combination recommendation data, and send the optimal real-time nutrition combination recommendation data to the corresponding user terminal;
[0139] The user terminal is provided with a data collection unit and a nutrition matching recommendation visualization unit connected in sequence, the data collection unit is in communication connection with a real-time user portrait construction unit of a cloud computing center, and the nutrition matching recommendation visualization unit is in communication connection with an optimal nutrition matching recommendation screening unit of the cloud computing center;
[0140] A data collection unit, used to collect the real-time basic data, real-time behavior data and real-time alternative food list of the current user, and send the real-time basic data, real-time behavior data and real-time alternative food list to the real-time user portrait construction unit of the cloud computing center;
[0141] The nutrition pairing recommendation visualization unit is used to receive the optimal real-time nutrition pairing recommendation data sent by the optimal nutrition pairing recommendation screening unit of the cloud computing center, and visualize the optimal real-time nutrition pairing recommendation data.
[0142] The present invention discloses a nutrition pairing recommendation method and system. By constructing a food nutrition knowledge graph and performing food nutrition component analysis, the dependence on the professional knowledge of the staff is avoided, the manpower cost investment is reduced, and the workload is alleviated; unified data management and analysis are performed based on a cloud computing center, thereby improving the application prospect of nutrition pairing recommendation; a nutrition pairing recommendation model is constructed to perform automatic, efficient and accurate nutrition pairing recommendation, thereby improving the intelligence level of nutrition pairing recommendation; a nutrition pairing recommendation evaluation model is constructed to perform nutrition pairing recommendation evaluation, thereby enhancing the credibility and data value of nutrition pairing recommendation data, and improving practicality and user experience.
[0143] The present invention is not limited to the above optional implementations, and anyone can derive other various forms of products under the enlightenment of the present invention. The above specific implementations should not be understood as limiting the scope of protection of the present invention. The scope of protection of the present invention should be based on the definition in the claims, and the description can be used to interpret the claims.
Claims
1. A method for recommending nutritional combinations, characterized in that: The steps include: Collect food nutrition big data, and build food nutrition knowledge graph and nutrition measurement index set based on the food nutrition big data; Collect historical basic data and historical behavior data of several historical users, and construct corresponding historical user portraits based on the several historical basic data and the corresponding several historical behavior data; Based on the food nutrition knowledge graph and several historical user portraits, a deep learning algorithm is used to build a corresponding nutrition pairing recommendation model and generate several corresponding historical nutrition pairing recommendation data; Based on the nutritional measurement index set and some historical nutritional combination recommendation data, a corresponding nutritional combination recommendation evaluation model is constructed using a deep learning algorithm; Collect the current user's real-time basic data, real-time behavior data, and real-time alternative food list, and build a corresponding real-time user profile based on the real-time basic data and real-time behavior data; Based on the real-time candidate food list, use the food nutrition knowledge graph to generate the corresponding real-time candidate food nutrition component dataset; Input the real-time user portrait and the real-time candidate food nutritional component dataset into the nutritional combination recommendation model to make nutritional combination recommendations and obtain the corresponding candidate real-time nutritional combination recommendation dataset; Input the candidate real-time nutrition pairing recommendation data set into the nutrition pairing recommendation evaluation model, conduct nutrition pairing recommendation evaluation, and obtain the corresponding real-time nutrition pairing recommendation score set; According to the real-time nutrition pairing recommendation score set, the candidate real-time nutrition pairing recommendation data set is screened to obtain the corresponding optimal real-time nutrition pairing recommendation data.
2. A nutritional combination recommendation method according to claim 1, characterized in that: Collecting food nutrition big data and constructing food nutrition knowledge graph and nutrition measurement index set based on food nutrition big data includes the following steps: Collecting food nutrition big data and preprocessing the food nutrition big data to obtain the corresponding preprocessed food nutrition data set; Using a pre-trained named entity model, extracting a number of named entities of each pre-processed food nutrition data in the pre-processed food nutrition data set; Use a pre-trained entity relationship model to extract entity relationships between several named entities; According to several named entities and several entity relationships, a corresponding food nutrition knowledge graph is constructed; According to the food nutrition knowledge graph, a corresponding nutrition measurement indicator set is generated; the nutrition measurement indicator set includes N nutrition measurement indicators.
3. A method for recommending nutrition combinations according to claim 1, characterized in that: Collecting historical basic data and historical behavior data of several historical users, and constructing corresponding historical user portraits based on the several historical basic data and the corresponding several historical behavior data, including the following steps: Collect historical basic data and historical behavior data of several historical users; Generate a number of corresponding historical basic tags based on the historical basic data of historical users; Generate a number of corresponding historical behavior tags based on the historical behavior data of historical users; Integrate several historical basic tags and several historical behavior tags of each historical user to build a corresponding historical user portrait.
4. A method for recommending nutrition combinations according to claim 3, characterized in that: The historical basic data includes the historical age, historical gender, historical height, historical weight, historical body mass index, historical waist circumference and historical hip circumference of the historical user; The historical basic tags include the historical age tag, historical gender tag, historical height tag, historical weight tag, historical body mass index tag, historical waist circumference tag and historical hip circumference tag of the historical user; The historical behavior data includes the user's eating habits, taste preferences, food lists, and exercise records; The historical behavior tags include historical eating habit tags, historical taste preference tags, historical food list tags, and historical exercise record tags of historical users.
5. A nutritional combination recommendation method according to claim 1, characterized in that: Based on the food nutrition knowledge graph and several historical user portraits, a deep learning algorithm is used to build a corresponding nutrition pairing recommendation model and generate several corresponding historical nutrition pairing recommendation data, including the following steps: According to the food nutrition knowledge graph and several historical user portraits, a corresponding historical nutrition pairing recommendation sample set is constructed; Preprocessing and labeling the historical nutrition pairing recommendation sample set to obtain a preprocessed historical nutrition pairing recommendation sample set with real nutrition pairing recommendation labels; The pre-processed historical nutrition combination recommendation sample set is divided into the first model training sample set and the first model test sample set in a ratio of 7:3; Using a deep learning algorithm, an initial nutrition pairing recommendation model is constructed, and the first model training sample set is input into the initial nutrition pairing recommendation model for optimization training to generate a number of corresponding first historical predicted nutrition pairing recommendation labels to obtain an optimized nutrition pairing recommendation model; Inputting the first model test sample set into the optimized nutrition pairing recommendation model to perform model testing to obtain a number of corresponding second historical prediction nutrition pairing recommendation labels; Comparing and counting the second historical predicted nutrition pairing recommendation labels with the corresponding real nutrition pairing recommendation labels to obtain the first model test accuracy; If the first model test accuracy is greater than the first preset model test accuracy threshold, the optimal nutrition pairing recommendation model is output, and the first and second historical predicted nutrition pairing recommendation labels are output as the corresponding historical nutrition pairing recommendation data; otherwise, the optimization training continues.
6. A method for recommending nutritional combinations according to claim 5, characterized in that: The nutrition matching recommendation model is constructed based on the CNN-RNN-MLP algorithm.
7. A method for recommending nutritional combinations according to claim 2, characterized in that: Based on the nutritional measurement index set and some historical nutritional combination recommendation data, a corresponding nutritional combination recommendation evaluation model is constructed using a deep learning algorithm, including the following steps: Preprocessing and labeling a number of historical nutrition pairing recommendation data to obtain a preprocessed historical nutrition pairing recommendation score sample set with a real nutrition pairing recommendation score label; The pre-processed historical nutrition combination recommendation score sample set is divided into a second model training sample set and a second model test sample set in a ratio of 7:3; Based on the set of nutrition measurement indicators, a deep learning algorithm is used to construct an initial nutrition combination recommendation evaluation model, and the second model training sample set is input into the initial nutrition combination recommendation evaluation model for optimization training to obtain an optimized nutrition combination recommendation evaluation model; Inputting the second model test sample set into the optimized nutrition pairing recommendation evaluation model to perform model testing and obtain a number of corresponding historical prediction nutrition pairing recommendation score labels; Compare and count several historical predicted nutrition pairing recommendation score labels with several corresponding real nutrition pairing recommendation score labels to obtain the second model test accuracy; If the second model test accuracy is greater than the second preset model test accuracy threshold, the optimal nutrition combination recommendation evaluation model is output, otherwise, the optimization training continues.
8. A method for recommending nutritional combinations according to claim 7, characterized in that: The nutrition combination recommendation evaluation model is constructed based on the N-GAN-Attention-MLP algorithm, where N is the total number of nutrition measurement indicators.
9. A method for recommending nutritional combinations according to claim 1, characterized in that: According to the real-time nutrition pairing recommendation score set, the candidate real-time nutrition pairing recommendation data set is screened to obtain the corresponding optimal real-time nutrition pairing recommendation data, including the following steps: sorting the real-time nutrition pairing recommendation scores in the real-time nutrition pairing recommendation score set in descending order, and obtaining the highest real-time nutrition pairing recommendation score; According to the highest real-time nutrition pairing recommendation score, searching and matching are performed in the candidate real-time nutrition pairing recommendation data set to obtain corresponding matching candidate real-time nutrition pairing recommendation data; The matched alternative real-time nutrition pairing recommendation data is output as the optimal real-time nutrition pairing recommendation data.
10. A nutrition pairing recommendation system, used to implement the nutrition pairing recommendation method according to any one of claims 1 to 9, characterized in that: The system includes a cloud computing center and a plurality of user terminals, wherein the cloud computing center is respectively connected to the plurality of user terminals for communication; The cloud computing center is provided with a knowledge graph construction unit, a historical user portrait construction unit, a nutrition matching recommendation model construction unit, a nutrition matching recommendation evaluation model construction unit, a real-time user portrait construction unit, a food nutrient component acquisition unit, a nutrition matching recommendation unit, a nutrition matching recommendation evaluation unit and an optimal nutrition matching recommendation screening unit, which are connected in sequence. The real-time user portrait construction unit and the optimal nutrition matching recommendation screening unit are respectively connected to a plurality of user terminals in communication; The user terminal is provided with a data collection unit and a nutrition match recommendation visualization unit which are connected in sequence. The data collection unit is communicatively connected to a real-time user portrait construction unit of a cloud computing center. The nutrition match recommendation visualization unit is communicatively connected to an optimal nutrition match recommendation screening unit of the cloud computing center.
