The invention discloses a
chronic disease risk prediction method and
system fusing a
knowledge graph and a large
language model, and the method comprises the following steps: obtaining a
natural language problem related to a
chronic disease, and carrying out the semantic analysis; according to the analysis content, hypothetical
questions and answers related to chronic diseases are generated through a large
language model, and key entities are extracted; mapping the key entities to corresponding nodes in a
medical knowledge graph, exploring a semantic path and a causal relationship between the key entities, and constructing an
inference chain pointing to potential
disease risks from acquired information; introducing a fragment
granularity sensing mechanism, performing fine
granularity analysis on each fragment in the reasoning chain, and rearranging and optimizing a link sequence; and based on the optimized
inference chain, converting the question and answer result into a structured diagnosis result for visual display. According to the method, the whole process from
question asking to answer generation of the patient is optimized, the efficiency and accuracy of
chronic disease risk prediction are effectively improved, and meanwhile, personalized health management service is provided for the patient.