The application discloses a
drug interaction prediction method and
system based on a graph neural network and a multiple attention mechanism. The method comprises the following steps: converting SMILES sequences of a
drug pair into graph data, and obtaining an embedding matrix of the
drug pair by using a multilayer GIN operation; extracting a self-attention
feature matrix of the drug pair from the embedding matrix of the drug by using a self-attention mechanism
encoder, calculating a
cosine similarity matrix of the drug pair, and obtaining a self-attention
feature vector of the drug pair after a flattening operation;
processing the embedding matrix of the drug pair by using an interactive attention mechanism
encoder, obtaining an interactive attention coefficient
feature matrix, performing average
pooling operation on the interactive attention coefficient
feature matrix of the two drugs respectively, then performing
standardization, and then obtaining an interactive
feature vector of the drug pair; and inputting the self-attention
feature vector and the interactive feature vector of the drug pair into a
multilayer perceptron to predict the interaction between the drug pair. The application can better predict the interaction between drugs.