The invention discloses a molecular activity prediction method based on a long-
short term memory network and an attention mechanism, and belongs to the field of
deep learning and biological information. The invention aims to solve the problem of low accuracy of predicting the ligand activity of the type 2
cannabinoid receptor by the existing method due to dynamic nature and
high complexity of molecular interaction. According to the method, the molecular fingerprints are utilized to comprehensively capture the chemical characteristics of molecules, and the molecular fingerprints are combined to provide rich molecular information for subsequent models. And
processing molecular sequence data using an LSTM unit, encoding structural information of the molecule into an intermediate representation. The dot product attention mechanism is applied to the output of the LSTM layer, the attention degree of the model to different features can be enhanced, the prediction network can automatically pay attention to the features most helpful for the classification task, and therefore the method can better adapt to the dynamic nature and
high complexity of molecular interaction. The method can be applied to the field of molecular activity prediction.