The invention discloses a graph contrast learning
drug recommendation method and
system fusing clinical features, and relates to the technical field of intelligent
medical treatment. The method comprises the following steps: acquiring a clinical
medical record database of a patient, extracting diagnosis, operation and
medicine information of each treatment, and constructing a historical
medical record heterogeneous graph of the patient; in heterogeneous graph propagation, a structure guidance matrix (
mask) is generated by using a
conditional probability matrix to guide node connection and attention generation, and the expression stability is improved in combination with Hellinger distance constraint; in the aspect of
drug modeling, from three perspectives of a
drug co-occurrence network, an
interaction network and a molecular
structure diagram, representation consistency and
interpretability are improved through diagram contrast learning. On the basis, four types of
loss function optimization recommendation results are designed, and a
medicine combination with the lowest comprehensive
medicine use risk is screened out for clinical auxiliary diagnosis and treatment. According to the method, multi-view
medical knowledge is fused, efficient drug combination screening and recommendation are realized, meanwhile, the
drug interaction risk is reduced, and the recommendation accuracy and safety are improved.