The invention discloses a
drug relocation prediction method based on
causal inference. The method comprises the following steps: 1) constructing a multi-
modal heterograph; 2) obtaining a
medicine functional embedding expression; 3) calculating a causal intensity weight of a
drug-
disease edge based on Do-calculation, and constructing a causal
perception heterograph; 4) constructing a structural
causal model, and calculating the average
treatment effect of the
drug on the
disease; 5) designing a causal heterogeneous graph convolutional network, and learning node deep causal characterization; 6) identifying and correcting bias and errors; (7) What-if analysis is conducted through an anti-fact reasoning module, and the difference between an anti-fact result and the effect is calculated; and 8) fusing node deep causal characterization, a causal intervention result and an anti-fact reasoning conclusion, outputting a drug-
disease causal association probability, and tracing a key causal path and an action mechanism. According to the method, the problem that the causal effect and the false correlation are difficult to distinguish in a traditional drug
relocation method is solved, and the reliability, the
interpretability and the generalization ability of a prediction result are improved.