The invention discloses an intelligent canteen personalized
nutritious food recommendation
system and method based on AIGC, and relates to the technical field of
artificial intelligence, and the method comprises the steps: obtaining a user
feature vector, a food nutritional component vector and an attribute vector, collecting dishes eaten by a user in recent k days and corresponding timestamps, and forming a dish interaction sequence; constructing a
nutrition relation graph of the food according to the nutritional ingredient vectors and the attribute vectors, and calculating a
nutrition complementarity weight, a
nutrition exclusion weight and a nutrition similarity weight of edges connecting the food in the nutrition
relation graph based on the nutritional ingredient vectors; the method comprises the following steps: establishing a food interaction sequence, defining a state, an action and a state
transfer function of a
reinforcement learning model, defining a reward function based on the food interaction sequence, a nutrition complementarity weight and a nutrition exclusiveness weight, constructing and training the
reinforcement learning model, and outputting a recommended
recipe to a user by utilizing the trained
reinforcement learning model based on Monte Carlo tree search; and matching food in the recommended
recipe with dishes in the canteen menu on the current day to generate the
nutritious food.