The application discloses a
drug virtual screening method based on hash learning, which comprises the following steps: firstly, obtaining a
protein-molecule complex dataset; defining
protein and molecule encoders respectively; defining a contrast learning objective function to learn the similarity information of the
protein and the molecule; defining a multi-
modal hash objective function to learn the binary vector of the protein and the molecule; constructing a final
loss function by combining the contrast learning and the multi-
modal hash objective function, and training a model; and representing molecules in a molecule
database as binary vectors. When performing
drug virtual screening, a
protein target is represented as a binary vector. The
Hamming distance between the binary vector of the
protein target and the binary vectors in the molecule
database is calculated, or an
inverted index is constructed from the binary vector
database to retrieve the most likely binding molecules. According to actual requirements, a certain proportion of molecules are selected as candidate
drug molecules. The application improves the precision of drug
virtual screening, reduces storage overhead, and improves retrieval speed.