May 28, 2026
Accurate prediction of drug-target interactions (DTI) is critical for drug discovery. Existing methods often rely on single-modal representations (e.g., sequences or graphs) or combine only two modalities, overlooking 3D structural features.To address this challenge, we propose TriMod-DTI, a triple-modal contrastive learning framework that incorporates 1D sequences, 2D graphs, and 3D structures of drugs and proteins, obtaining the universal and complementary feature represetations for DTI prediction. We design a Feature Extractor to capture drug and target features across the three modalities, thereby enriching their representations. We further propose a triple-modal contrastive learning strategy to align different modal representations of the same drug or protein in the latent space. By constructing cross-modal positive and negative sample pairs, this approach enhances the model’s discriminative ability. Experiments on three benchmark datasets demonstrate that TriMod-DTI outperforms state-of-the-art methods. The ablation studies validate the contributions of each modality. Moreover, case studies highlight its practical potential for DTI prediction and drug discovery. The source code of TriMod-DTI is available at https://github.com/klez1/TriMod-DTI.
Accurate prediction of drug–target interactions (DTIs) is crucial for drug discovery, facilitating the identification of therapeutic targets and candidate compounds [1]. Traditionally, DTIs are determined through experimental approaches such as high-throughput screening [2]. However, these methods are often expensive, time-consuming, and difficult to scale for large-scale drug discovery.
In recent years, deep learning has made significant progress in DTI prediction [3]. Existing deep learning models can be broadly categorized into unimodal and multimodal approaches. Unimodal methods model drugs and targets using information from a single modality. For example, TransformerCPI [4] utilizes the Transformer architecture to represent drug and protein sequences. GraphDTA [5] leverages graph neural networks (GNNs) [6] to learn molecular graph representations. AttentionSiteDTI [7] focuses on constructing drug and protein binding site representations. Mutual-DTI [8] incorporates a multi-head self-attention mechanism to effectively capture drug-protein interaction features, significantly improving prediction accuracy. MGMA-DTI [9] uses graph convolutional networks (GCNs) [10] and multi-order gated convolution to encode drug and protein features, with a multi-attention fusion network to model their interactions.
Unimodal approaches have achieved promising results in DTI prediction, but they still have certain limitations. These models rely on singlemodality data, making it challenging to fully capture the complexity of drug-target interactions. Researchers have started exploring multi-modal representations of drugs and proteins. IIFDTI [11] integrates drug sequence and graph information with protein sequences, while CSCL-DTI [12] enhances drug representation through sequence–graph fusion and contrastive learning. Despite their promising performance, most existing multimodal models simply fuse features from different modalities without explicitly modeling their relationships, which may lead to information redundancy or conflicts.
To better understand the relationships among modalities, we conduct a cosine similarity analysis on embeddings derived from 1D sequences, 2D molecular graphs, and 3D structural representations of drugs and proteins on the GPCR dataset. As shown in Figure 1, similarities between modalities are generally low, mostly distributed within [\(-0.25\), 0.25], indicating strong complementarity. These findings highlight the limitations of single-modality representations and suggest that effectively modeling cross-modal relationships is essential for improving DTI prediction.
To address these challenges, we propose TriMod-DTI, a framework that integrates sequence, graph, and 3D structural representations of drugs and proteins. Building upon CSCL-DTI [12], the model further incorporates protein binding-site graphs and 3D structures to enrich multimodal representations. In addition, we introduce a cross-modal contrastive learning mechanism inspired by the CLIP framework [13] to align multimodal embeddings. The main contributions of this work are summarized as follows.
We propose TriMod-DTI, a multimodal DTI prediction framework that integrates sequence, graph, and 3D structural representations of drugs and proteins, and introduces a cross-modal contrastive learning strategy to align and fuse representations from different modalities.
Extensive experiments on three benchmark datasets demonstrate that TriMod-DTI consistently outperforms several state-of-the-art methods, while ablation studies further validate the effectiveness of each modality and the proposed contrastive learning mechanism.
We conducted a comprehensive evaluation of the TriMod-DTI on three public datasets, namely GPCR, Human, and DrugBank. We used the RDKit [14] to generate drug structure files and employed the OmegaFold [15] to predict the 3D structural information of proteins. We utilized the dataset from previous studies [12]. Due to the absence of 3D structural information for certain proteins and drug molecules, we performed data cleaning and removed the incomplete records, with the final dataset summarized in Table 1.
| Datasets | Drugs | Targets | Interactions | Positive | Negative |
|---|---|---|---|---|---|
| Human | 2,175 | 1,540 | 4,965 | 2,330 | 2,635 |
| GPCR | 4,976 | 330 | 14,376 | 7,479 | 6,897 |
| DrugBank | 1,441 | 1,262 | 13,121 | 5,634 | 7,487 |
An overview of the TriMod-DTI framework is illustrated in Figure 2. The DTI prediction task is formulated as a binary classification problem by leveraging multi-modal representations of drugs and targets. The framework comprises three sequential stages, where sequence, graph, and structural information are extracted for both drugs and proteins, modality-specific encoders are employed to learn feature embeddings from each individual modality, and the learned drug and target representations are fused to construct a joint feature representation that is fed into a classifier for DTI prediction.
We adopt a multimodal framework to represent drugs by integrating sequence, graph, and structural information.
Sequence representation. Drug SMILES sequences are segmented into sub-sequences using the FCS algorithm [16]. Each substructure is mapped to a positional embedding \({E}{pos_i}^d\) and a content embedding \({E}{con_i}^d\), and the combined embedding is defined as \[{E}{i}^{d} = {E}{pos_{i}}^d + {E}{con{i}}^d.\] The embedding matrix \({E}^{d}\in \mathbb{R}^{l_d \times \vartheta}\) is then processed by a Transformer encoder [17] to capture contextual relationships between substructures, producing the sequence representation \[\tilde{E}^{d}={Transformer}_{d}({E}^{d}).\]
Graph representation. We employ RDKit [14] to convert drug SMILES into molecular graphs \(G_{d_2}(\mathcal{V},\mathcal{E})\), where \(\mathcal{V}\) and \(\mathcal{E}\) denote the sets of atoms and covalent bonds, respectively. Each atom is represented by a 75-dimensional feature vector constructed from one-hot encodings of atomic properties. The node feature matrix is denoted as \(M_d \in \mathbb{R}^{N_a \times 75}\), where \(N_a\) represents the number of atoms, and \(A\) denotes the adjacency matrix of the molecular graph.
The molecular graph is encoded by a GCN [10] to obtain the drug representation \(d_2\) according to \[Z_d^{i+1} = \sigma(GCN(\tilde{A}, W^{i}, b^{i}, Z_d^{i})),\] where \(\tilde{A}\) denotes the self-loop adjacency matrix, \(\sigma\) represents the nonlinear activation function, and the initial representation \(Z_d^{0}\) is obtained by projecting \(M_d\) into a \(D_a\)-dimensional embedding space.
Structural representation. To incorporate spatial information, we construct a 3D molecular graph \(G_{d_3}=(\mathcal{V},\mathcal{E})\) from RDKit-generated SDF files. Edges are established between atoms whose Euclidean distance is smaller than 4.5 Å [18]. Node and edge features encode atomic coordinates and bond information. Geometric Vector Perceptrons (GVP) [19] are employed to jointly process scalar and vector features according to \[s' = \sigma(W_v \, Concat(\|W_h V\|_2 , s) + b),\] \[V' = \sigma(\|W_u W_h V\|_2) \odot \|W_u W_h V\|_2 .\]
A GVP-GNN [19] further updates node representations through message passing \[m_{j \rightarrow i}^{(l)} = g(Concat(v_j^{(l-1)}, \epsilon_{j \rightarrow i})),\] \[v_i^{(l)} = LayerNorm\left(v_i^{(l-1)} + \frac{1}{|N(i)|}\sum_{j \in N(i)} m_{j \rightarrow i}^{(l)}\right).\]
Finally, global add pooling aggregates node embeddings to obtain the 3D molecular representation, whose dimensionality is aligned with the sequence and 2D graph representations for subsequent cross-modal contrastive learning.
To obtain informative target representations, we extract sequence, binding-site graph, and 3D structural features of proteins.
Sequence representation. Protein sequences are first segmented using the FCS algorithm. Each amino acid is mapped to a content embedding \({E}{con_i}^{p}\) and a positional embedding \({E}{pos_i}^{p}\). The initial embedding is defined as \[{E}{i}^{p} = {E}{pos_{i}}^{p}+{E}{con_{i}}^{p}.\] The embedding matrix \(E^{p}\in \mathbb{R}^{l_p \times \vartheta}\) is fed into a Transformer encoder to obtain the protein sequence representation \(t_1\).
Graph representation. Protein 3D structures are predicted using OmegaFold [15]. Binding sites are identified following the method of Saberi Fathi et al. [20]. Each pocket is represented as a graph, where nodes denote atoms and edges represent atomic connections. Following AttentionSiteDTI [7], each atom is encoded as a 31-dimensional feature vector containing atom type, degree, hydrogen count, and implicit valency.
Since a protein may contain multiple binding pockets, multiple pocket graphs are constructed. These graphs are encoded using a Topology Adaptive Graph Convolutional Network (TAGCN) [21]. The convolution operation is defined as \[H=\sum_{k=1}^{K}(D^{-1/2}AD^{-1/2})^k X W_k + b ,\] where \(A\) and \(D\) denote the adjacency and degree matrices, and \(X\) represents the initial node features. After graph convolution, global attention pooling aggregates node features within each pocket to obtain pocket-level embeddings. The final protein representation \(t_2\) is obtained through a fully connected layer.
Structural representation. For 3D structural modeling, the coordinates of \(C_{\alpha}\) atoms and residue types are extracted from the PDB file. Residues are encoded as node features, and edges are constructed using the NeighborSearch function in Biopython [22] with an 8Å threshold [23]. The resulting graph is processed using a GCN encoder to obtain the structural representation \(t_3\).
We introduce a Fusion Block to integrate the three modalities. Because representations from different modalities may exhibit distribution discrepancies, direct fusion can cause information loss. To mitigate this issue, a tri-modal alignment strategy based on contrastive learning is employed. A cross-modal contrastive loss aligns representations of the same drug (or protein) while separating those of different samples in the embedding space. As illustrated in Figure 2c, cross-modal pairs of the same drug are treated as positive samples, whereas intra- and cross-modal pairs from different drugs are regarded as negative samples. The same strategy is applied to proteins. The contrastive loss for drugs is defined as \[\mathcal{L}_{\text{CL}}^d=\frac{1}{3}(\mathcal{L}_{12}^d+\mathcal{L}_{23}^d+\mathcal{L}_{13}^d),\] where \(\mathcal{L}_{ab}^d = \mathcal{L}_{\text{CL}}^a + \mathcal{L}_{\text{CL}}^b\), and \[\mathcal{L}_{\text{CL}}^a = -\frac{1}{2}\sum_{i=1}^{N_d}\log\frac{\exp(s(d_i^a, d_i^b)/\tau)}{\sum_{j=1}^{N}\left[\exp(s(d_i^a, d_j^b)/\tau) + \exp(s(d_i^a, d_j^a)/\tau)\right]},\] with \(\mathcal{L}_{\text{CL}}^b\) following the same form as \(\mathcal{L}_{\text{CL}}^a\) (swapping \(a\) and \(b\)). Here, \(\tau\) is the temperature parameter, \(N\) is the batch size, and \(s(\cdot,\cdot)\) denotes cosine similarity. The contrastive loss for targets is defined identically. After the alignment process, the representations derived from various modalities are concatenated together to construct the joint feature vector, which is defined as follows. \[F = (d_1 \oplus d_2 \oplus d_3) \oplus (t_1 \oplus t_2 \oplus t_3).\]
In this study, the fused features are passed through three fully connected layers to map them to the final classification output. We employ an MLP with ReLU activation in the hidden layers and a Sigmoid activation in the output layer for prediction. We optimize the model using cross-entropy loss that is mathematically expressed as follows. \[\mathcal{L}(y, \hat{y}) = -\frac{1}{N} \sum_{i=1}^{N} \left[ y_i \log(\hat{y}_i) + (1 - y_i) \log(1 - \hat{y}_i) \right],\] where \(N\) is the number of training samples. \(y_i\) and \(\hat{y}_{i}\) denote known and predicted labels respectively. The total loss comprises classifier and contrastive loss. \[\mathcal{L} = \alpha\mathcal{L}(y, \hat{y})+\beta\mathcal{L}_{CL}^d+\gamma\mathcal{L}_{CL}^p,\] where \(\alpha\), \(\beta\), and \(\gamma\) are hyperparameters that control the influence of each loss on the model’s training process.
Following existing works [11], [12], we adopted different dataset splitting strategies for DTI evaluation.For the Human and DrugBank datasets, we used five-fold cross-validation, randomly dividing the dataset into training, validation, and test sets with a ratio of 8:1:1. For the GPCR dataset, 20% of the training set was used as validation.Each dataset split was evaluated over 10 independent runs to ensure reliability of the results. Implementation was based on PyTorch 2.1.0 on an Ubuntu 22.04 machine with an RTX 4090 (24GB) GPU. The model with the best validation AUC was used for testing.
We select widely recognized evaluation metrics, including the area under the receiver operating characteristic curve (AUC), area under the precision-recall curve (AUPR) and Precision as our primary evaluation criteria.
We evaluated the effectiveness of the proposed model by conducting a detailed comparison with six baseline methods. Among them, TransformerCPI[4], Mutual-DTI[8] and MGMA-DTI focus solely on the sequence information of drugs and proteins, while GraphDTA[5], IIFDTI[11] and CSCL-DTI[12] consider both the sequence and graph structural information of drug-target interactions. The training protocols for all baseline models were kept consistent with those of TriMod-DTI to ensure a fair comparison.
| Dataset | Method | AUC | AUPR | Precision |
|---|---|---|---|---|
| Human | TransformerCPI | \(0.928 \pm 0.070\) | \(0.929 \pm 0.074\) | \(0.832 \pm 0.089\) |
| GraphDTA | \(0.947 \pm 0.046\) | \(0.943 \pm 0.042\) | \(0.884 \pm 0.087\) | |
| IIFDTI | \(0.980 \pm 0.001\) | \(0.982 \pm 0.003\) | \(0.914 \pm 0.036\) | |
| Mutual-DTI | \(0.973 \pm 0.005\) | \(0.976\pm0.005\) | \(0.907\pm0.015\) | |
| CSCL-DTI | \(0.981 \pm 0.003\) | \(0.981\pm0.005\) | \(0.943 \pm 0.031\) | |
| MGMA-DTI | \(0.981\pm0.003\) | \(0.981\pm0.004\) | \(0.942\pm0.021\) | |
| TriMod-DTI | \(\boldsymbol{0.988\pm0.003}\) | \(\boldsymbol{0.986\pm0.004}\) | \(\boldsymbol{0.945\pm0.022}\) | |
| GPCR | TransformerCPI | \(0.804\pm0.054\) | \(0.801\pm0.058\) | \(0.697\pm0.053\) |
| GraphDTA | \(0.809\pm0.033\) | \(0.802\pm0.034\) | \(0.702\pm0.035\) | |
| IIFDTI | \(0.825\pm0.008\) | \(0.822\pm0.007\) | \(0.714\pm0.025\) | |
| Mutual-DTI | \(0.766\pm0.002\) | \(0.786\pm0.005\) | \(0.672\pm0.006\) | |
| CSCL-DTI | \(0.852\pm0.005\) | \(0.841\pm0.012\) | \(0.739\pm0.008\) | |
| MGMA-DTI | \(0.868\pm0.025\) | \(0.852\pm0.019\) | \(0.744\pm0.004\) | |
| TriMod-DTI | \(\boldsymbol{0.870 \pm 0.015}\) | \(\boldsymbol{0.868\pm0.002}\) | \(\boldsymbol{0.751\pm0.010}\) | |
| DrugBank | TransformerCPI | \(0.772\pm0.059\) | \(0.520\pm0.102\) | \(0.402\pm0.079\) |
| GraphDTA | \(0.808\pm0.024\) | \(0.551\pm0.042\) | \(0.445\pm0.094\) | |
| IIFDTI | \(0.805\pm0.013\) | \(0.521\pm0.021\) | \(0.426\pm0.010\) | |
| Mutual-DTI | \(0.799\pm0.009\) | \(0.550\pm0.012\) | \(0.431\pm0.012\) | |
| CSCL-DTI | \(0.815\pm0.008\) | \(0.549\pm0.027\) | \(0.446\pm0.016\) | |
| MGMA-DTI | \(0.812\pm0.006\) | \(\boldsymbol{0.551\pm0.012}\) | \(0.425\pm0.024\) | |
| TriMod-DTI | \(\boldsymbol{0.818\pm0.007}\) | \(0.532\pm0.018\) | \(\boldsymbol{0.463\pm0.011}\) |
Table 2 compares the performance of different models on three datasets. On the Human dataset, TriMod-DTI slightly outperforms the baselines, improving AUC and AUPR by 0.7% and 0.5% over the second-best method. On the GPCR dataset, it shows more notable gains, surpassing MGMA-DTI [9] by 0.2% in AUC, 1.6% in AUPR, and 0.7% in Precision. On the DrugBank dataset, although TriMod-DTI achieves the best AUC and Precision, its AUPR is relatively lower, possibly due to the stronger class imbalance, which leads the model to predict positives only at high confidence.
We conducted ablation studies to evaluate the contrastive learning strategy and the contribution of each modality. Due to space limitations, detailed results are provided in our GitHub repository. For contrastive learning ablation, removing the full contrastive loss (\(\mathcal{L}_{CL}\)) or any of its cross-modal components (\(\mathcal{L}_{12}\), \(\mathcal{L}_{23}\), \(\mathcal{L}_{13}\)) consistently degraded performance. The full contrastive learning achieved gains of 1.1% in AUC and 2.0% in AUPR over the non-contrastive baseline.
As shown in Figure 3, the sequence modality contributes most to performance, followed by the graph modality, while the 3D modality alone performs relatively poorly. This may be attributed to our 3D encoder design, which primarily incorporates atomic coordinates and bond information but excludes essential chemical properties such as atom types, degrees, and formal charges. Nevertheless, integrating all three modalities enables complementary learning: sequence and graph features capture global molecular information, while the 3D structure provides local spatial context. This integration leads to the best overall performance of TriMod-DTI.
We systematically investigated four key parameters in TriMod-DTI, including the dropout rate, learning rate, number of GCN layers, and number of cross-attention heads. As shown in Figure 4, on the GPCR dataset, the model achieved optimal performance with dropout rate of 0.2, learning rate of 1e-3, 2 GCN layers, and 4 attention heads. Detailed sensitivity analysis results on the Human dataset are available in our GitHub repository.
To evaluate TriMod-DTI, we conducted a case study on Verapamil (DB00661) and D(2) dopamine receptor (P14416). From the top-10 predicted candidate drugs for the receptor shown in Table 3, 5 were validated by literature on PubMed1. Furthermore, we performed molecular docking between Verapamil and its top-ranked predicted target (Glucose-6-phosphate isomerase 2, P13376) using the DeepMice2 server. Visualization with PyMOL3 as presented in Figure 5 showed that Verapamil forms hydrogen bonds with key residues (THR-274, GLY-151, SER-149) within the binding pocket, stabilizing the complex and providing structural evidence for the predicted interaction. Full target prediction results are available in our GitHub repository.
| Rank | Target Name | Target Uniprot ID | Evidence |
|---|---|---|---|
| 1 | Meso-diaminopimelate D-dehydrogenase | P04964 | Unconfirmed |
| 2 | Adenylate kinase | P69441 | Unconfirmed |
| 3 | Glucose-6-phosphate isomerase 2 | P13376 | PMID: 36978873 |
| 4 | Purine nucleoside phosphorylase | P00491 | Unconfirmed |
| 5 | Heparin cofactor 2 | P05546 | PMID: 31713254 |
| 6 | Proteasome subunit alpha type-5 | P28066 | PMID: 27813130 |
| 7 | Ras-related protein Ral-A | P11233 | Unconfirmed |
| 8 | Cytochrome b6-f complex subunit 8 | P83798 | PMID: 37831396 |
| 9 | Ornithine decarboxylase antizyme 1 | P54368 | PMID: 2491756 |
| 10 | Dihydropteridine reductase | P09417 | Unconfirmed |
This study presents TriMod-DTI, a multimodal framework for drug–target interaction prediction that integrates sequence, graph, and structural representations of drugs and targets. By employing modality-specific encoders and a cross-modal contrastive learning strategy, the model effectively aligns heterogeneous representations and captures complementary information across modalities. Experimental results on three benchmark datasets demonstrate that TriMod-DTI achieves competitive performance compared with existing methods and shows potential in supporting drug discovery tasks. In the future, more advanced geometric learning techniques and modality-aware contrastive strategies can be explored to further enhance the performance of multimodal representation learning.
The work is supported in part by the National Natural Science Foundation of China (Grant No.62573372), in part by the Hunan Province College Students’ Innovation Training Program (Grant No. S202410530023),and the Hunan Provincial Key Research and Development Program Project (Grant No.2025JK2003).
The authors have no competing interests to declare that are relevant to the content of this article.