The invention discloses a virtual
drug screening method based on Hash learning. The method comprises the following steps: firstly, acquiring a
protein-molecular compound
data set; respectively defining a
protein encoder and a molecular
encoder; defining a comparative learning objective function, and learning similarity information of proteins and molecules; defining a multi-
modal hash objective function, and learning binary vectors of proteins and molecules; and forming a final
loss function by the contrast learning and the multi-
modal hash objective function, and training the model. Molecules in the molecular
database are expressed as binary vectors. When virtual
drug screening is carried out, a
protein target is expressed as a binary vector. And calculating the
Hamming distance between the binary vector of the
protein target and the binary vector in the molecular
database, or constructing an
inverted index through the binary vector
database to retrieve molecules which are most likely to be combined. According to actual needs, a certain proportion of molecules are selected as candidate
drug molecules. According to the method, the precision of virtual drug screening is improved, the storage overhead is reduced, and the retrieval speed is improved.