Abstract
Accurate prediction of drug-target interactions (DTI) is crucial for drug discovery. Recently, deep learning (DL) models have shown promising performance for DTI prediction. However, these models can be difficult to use for both computer scientists entering the biomedical field and bioinformaticians with limited DL experience. We present DeepPurpose, a comprehensive and easy-to-use deep learning library for DTI prediction. DeepPurpose supports training of customized DTI prediction models by implementing 15 compound and protein encoders and over 50 neural architectures, along with providing many other useful features. We demonstrate state-of-the-art performance of DeepPurpose on several benchmark datasets.
Introduction
Identifying how chemical compounds bind to protein targets—known as Drug-Target Interaction (DTI)—is a foundational step in drug discovery and repurposing (e.g., finding existing drugs to treat new pathogens like SARS-CoV-2). While deep learning has shown massive potential for predicting these interactions, the barrier to entry is high due to the need for both biochemical domain knowledge and advanced engineering skills. DeepPurpose bridges this gap by offering a streamlined, modular toolkit accessible to researchers across disciplines.
Methodology: Modular Encoder-Decoder Framework
DeepPurpose standardizes DTI prediction using a flexible encoder-decoder framework. This modularity allows researchers to rapidly prototype models by swapping components without rewriting core logic.
Encoders and Decoders
The library processes a compound's SMILES string and a protein's amino acid sequence through specialized encoders:
- Compound Encoders: DeepPurpose offers 8 encoders, including classic fingerprints (Morgan, PubChem), 1D-CNNs, Transformers, and Message Passing Graph Neural Networks (MPNN).
- Protein Encoders: There are 7 protein encoders available, such as Amino Acid Composition (AAC), CNNs, and Transformers.
The latent vectors generated by these encoders are concatenated and passed through a Multi-Layer Perceptron (MLP) decoder to predict binding affinity (regression tasks using Mean Squared Error) or binding probability (classification tasks using Binary Cross Entropy).
Ease of Use: The 10-Line Framework
A core feature of DeepPurpose is its simplicity. Users can load data, choose encoders, split datasets, train, and evaluate a model in fewer than 10 lines of Python code. This abstraction removes the boilerplate code typically associated with deep learning projects, allowing bioinformaticians to focus on the science rather than the engineering.
Experimental Results
DeepPurpose achieves state-of-the-art performance on standard benchmark datasets like DAVIS and KIBA. Models built with the library achieve performance comparable to or better than established, custom-built SOTA methods like KronRLS, GraphDTA, and DeepDTA.
- DAVIS: Models achieve a Concordance Index (CI) of up to ~0.89.
- KIBA: Models similarly reach a CI of up to ~0.89.
These results demonstrate that the library's ease-of-use does not come at the cost of predictive power. Furthermore, the framework reduces the latency of deploying a custom web interface for DTI prediction to under 1 second per query using Gradio integration.
Conclusion
DeepPurpose democratizes AI in drug discovery by providing a plug-and-play architecture for DTI prediction. Beyond training, it includes native support for virtual screening, drug repurposing (integrating the Broad Repurposing Hub), and instant UI generation. While some combinations of encoders and architectures are incompatible (e.g., MPNNs requiring molecular graphs), the toolkit provides a robust starting point for most DTI tasks. Future work involves expanding to 3D structural data and further optimizing the computational efficiency of sequence-based Transformers.
Summary updated