The application discloses a
liver cancer prognosis evaluation model generation method and related devices, and relates to the technical field of
data processing. The method obtains medical multi-
modal data of a
liver cancer patient, the medical multi-
modal data including macroscopic
magnetic resonance imaging data and microscopic
pathological whole slice image data; based on a graph neural network, the medical multi-
modal data is converted into multi-scale graph structure data and is subjected to cross-scale topological alignment through a GroMoVe optimal transport
algorithm to obtain topological fusion features; the topological fusion features are input into a causal intervention module constructed based on a structural
causal model, a counterfactual generation is performed to eliminate
confounding factors, and causal invariant features are extracted; a continuous
time evolution component is trained based on the causal invariant features, the continuous
time evolution component represents time dynamic changes of a
tumor recurrence risk based on a neural
ordinary differential equation, and a
liver cancer prognosis evaluation model is obtained. The application improves liver
cancer recurrence prediction accuracy, enhances model generalization robustness and
interpretability.