This invention discloses a dietary recommendation method and
system based on
linear programming optimization and
disease principle retrieval, comprising the following steps: acquiring
user input information and a set of recommended dishes, as well as acquiring multi-source
nutrition-related data; performing reading and structured preprocessing on the multi-source
nutrition-related data to form a dish
nutrition dataset and a
disease nutrition and treatment principle
knowledge base; determining the
basal metabolic rate and daily
total energy consumption, and constructing a single-
meal nutrition target and single-
meal nutrition
constraint matrix according to a preset
meal ratio; performing cleaning and word segmentation on
disease information, performing
similarity matching in the disease nutrition and treatment principle
knowledge base to determine the disease nutrition and treatment principle set; constructing a
linear programming optimization model, performing constraint solving to obtain the optimal dish weight result, and generating recommended dish combinations that satisfy the nutrition target and disease constraints; and outputting the dietary recommendation result. This invention achieves medically rational, nutritionally accurate, and interpretable dietary recommendations.