The invention discloses a personalized diet recommendation method and
system based on a
knowledge graph. The method comprises the steps: acquiring menu data of a
knowledge base, extracting attribute information of a menu, and constructing a menu entity node; acquiring existing user historical behavior data, calculating similarity between menus, and generating a menu
knowledge graph according to the similarity; according to the menu
knowledge graph, generating a first recommendation candidate set with high similarity with the historical behavior data of the user; calculating the tendency degree of the user to the menu attributes, and generating a
relation graph of the user and the menu attributes; screening out an optimized second recommendation candidate set according to a
relation graph of the user and menu attributes; calculating and generating a
relation graph between the users according to the relation graph between the users and the menu attributes; and generating a final recommendation candidate
list according to the relation graph between the users and the collection behaviors of the target similar users. According to the method, layer-by-layer recommendation
list screening is carried out based on the multiple knowledge graphs, and accurate personalized recommendation is realized.