Skip to main content
Bioinformatics logoLink to Bioinformatics
. 2025 Sep 22;41(10):btaf524. doi: 10.1093/bioinformatics/btaf524

HyperPhS: a pharmacophore-guided multimodal representation framework for metabolic stability prediction through contrastive hypergraph learning

Xiaoyi Liu 1, Na Zhang 2, Chenglong Kang 3, Chengwei Ai 4, Hongpeng Yang 5, Jijun Tang 6,✉, Fei Guo 7,✉
Editor: Janet Kelso
PMCID: PMC12574321  PMID: 40981510

Abstract

Motivation

Metabolic stability is crucial in the early stage of drug discovery and development. Drug candidate screening and optimization can be streamlined through the accurate prediction of stability. Functional groups within drug molecules are known as pharmacophores, which bind directly to receptors or biological macromolecules to produce biological effects, thereby affecting metabolic stability. Therefore, determining metabolic stability via the pharmacophore groups remains a significant challenge.

Results

To address these issues, we propose a Pharmacophore-guided Hypergraph representation framework for predicting metabolic Stability (HyperPhS). In this study, we introduce a hypergraph-based method to extract features from metabolic pharmacophores with multi-view representation and contrastive learning. In particular, we introduce a pharmacophore-based contrastive learning encoder that captures the consistency between functional and nonfunctional structures. Our method applies ChatGPT simultaneously to metabolites and heterogeneous encoders and integrates multimodal representations by using attention-driven fusion modules coupled with fully connected neural networks. On the HLM dataset, HyperPhS achieves outstanding performance with 87.6% in AUC and 62.6% in MCC, alongside an external test AUC of 88.3%. In addition, pharmacophore groups studied by HyperPhS are validated for their interpretability through case studies. Overall, HyperPhS is an effective and interpretable tool for determining metabolic stability, identifying critical functional groups, and optimizing compounds.

Availability and implementation

The code and data are available at https://github.com/xiaoyiliu-usc/HyperPhS.

1 Introduction

Metabolic stability, which refers to how extensively and quickly a drug is metabolized in the body, is crucial in the early stages of drug discovery and development (Rao Gajula et al. 2021). It significantly impacts key pharmacokinetic parameters, such as oral bioavailability, volume of distribution, clearance, half-life, and toxicity. These factors are essential for determining the appropriate dosage and frequency of drug administration (Liu et al. 2023). Thus, improving the metabolic stability of hit and lead compounds early in the drug discovery process is essential for effective drug candidate screening and lead optimization (Mao et al. 2023).

Metabolic stability is traditionally assessed through in vitro studies, where early-stage compounds are incubated with Liver Microsomes (LMs) to evaluate their metabolism (Gajula et al. 2021). LMs are abundant in cytochrome P450 (CYP450) enzymes crucial for drug metabolism and are widely employed in preliminary pharmacokinetic (PK) evaluations (Słoczyńska et al. 2019). Mouse, rat, and human LMs (MLMs, RLMs, HLMs) play a key role in these studies. However, these methods are often time-consuming, labor-intensive, and costly.

Recent advancements in machine learning have introduced various models to predict metabolic stability. Perryman et al. (2016) developed a Bayesian model and Ryu et al. (2022) applied a random forest model with HLM data. However, these models often underperform due to the overlooking of the molecular structure. Therefore, Renn et al. (2021) used Graph Convolution Networks (GCNs) to convert molecular SMILES sequences into graph structures, and Du et al. (2023) employed a graph contrastive learning strategy with Gated Recurrent Units (GRU) to integrate SMILES and topological features, enhancing prediction accuracy. However, the vastness of chemical space makes these methods difficult to scale and requires complex computation.

A pharmacophore is a functional group within a metabolic molecule that binds to receptors or biological macromolecules to produce biological effects (Gao et al. 2010). Effectively incorporating pharmacophore-guided key groups, rather than the entire molecular graph of metabolites, minimizes computational demands (Zhu et al. 2023). However, the effective integration of pharmacophore information remains a significant challenge. For example, current pharmacophore-based models suffer from limited representational capacity, often reducing pharmacophores to low-order or pairwise features (Jiang et al. 2023). These approaches fail to capture the high-dimensional, group-based structural dependencies that influence metabolic activity (Li et al. 2022a).

To address these challenges, we propose a pharmacophore guided multi-view representation for metabolic stability prediction through contrastively hypergraph learning, named HyperPhS (as shown in Fig. 1). HyperPhS represents pharmacophores as hyperedges connecting multiple atoms, enabling high-order structural learning and seamless integration with graph and text modalities in a unified contrastive framework. Specifically, HyperPhS leverages a text-assisted module that uses language models, including ChatGPT, to generate descriptions of metabolites from their SMILES representation and integrates these descriptions with molecular multimodal representations to improve stability prediction. To further enhance the learning of multiple distinct feature data sets, the HyperPhS model incorporates contrastive learning alongside specially designed metabolite encoders to effectively capture various structural aspects. Moreover, HyperPhS employs attention-based mechanisms for combining the information from different views of compounds in the fusion module. As a result, this model can identify and combine the most relevant information from each view. Finally, HyperPhS is then developed as a metabolic stability predictor.

Figure 1.

Figure 1.

An overview of HyperPhS. (A) Metabolic stability prediction workflow. (B) Generating metabolite descriptions with ChatGPT. (C) Pharmacophore-guided feature initialization. (C.1) Multi-view feature encoding using hypergraphs, GINs, fingerprints, and SciBERT. (C.2) Contrastive learning between graph and hypergraph representations. (C.3) An attention-based module for feature fusion and a multilayer perceptron (MLP) for stability prediction.

Overall, the main contributions can be summarized as follows:

  1. We propose HyperPhS, a novel hypergraph contrastive learning model that accurately predicts metabolic stability while providing interpretability by identifying key pharmacophores.

  2. We design a multi-view learning framework that introduces pharmacophore data alongside molecular structures and fingerprints to learn comprehensive features for metabolic stability prediction.

  3. HyperPhS outperforms state-of-the-art (SOTA) methods on two benchmark datasets, while case studies of stable and unstable molecules further validate its utility by emphasizing the critical relationship between pharmacophores and metabolic stability.

2 Materials and methods

2.1 Problem description

We formulate the metabolic stability prediction problem as a binary classification task. Given a set of N compounds, denoted as D={Di|i∈1,…,N}, along with a corresponding set of metabolic stability labels Y={yi|yi∈0,1,i∈1,…,N} for each compound Di, where yi=1 indicates that the ith compound is metabolically stable and yi=0 indicates it is unstable, our objective is to train a classifier fθ to assign probability scores y^ to the compounds, predicting their stability. Here, θ represents the classifier parameters.

2.2 Overview of HyperPhS

In this study, we propose a novel pharmacophore-guided hypergraph learning framework called HyperPhS (as shown in Fig. 1). HyperPhS effectively captures pharmacophore information through hypergraph learning and focuses on structural and nonstructural subgraphs using contrastive learning to reduce computation. Specifically, HyperPhS’s text-assisted module utilizes large language models, such as ChatGPT, to generate descriptions of metabolites based on their SMILES representation, which are integrated with molecular graphs for stability prediction. Additionally, HyperPhS utilizes metabolite encoders to learn distinct metabolite representations in parallel, extracting features from four key sources: metabolite descriptions, pharmacophore-guided hypergraphs, molecular graphs, and fingerprints. We also introduce an attention-based fusion module to integrate these multi-view representations, allowing the model to identify and combine the most relevant information from each view. Finally, the stability predictor assesses the stability of a given molecular structure based on the learned representations. We will provide a detailed introduction to each module.

2.3 Compound encoder

2.3.1 Molecule description and representation module

In this study, ChatGPT is employed to generate metabolite descriptions. Chemical structures are uniquely represented by International Union of Pure and Applied Chemistry (IUPAC) names, which follow a set of rules that map structures to more natural, language-like phrases compared to SMILES (Weininger 1988). Specifically, for all metabolites, SMILES strings were first converted into their corresponding IUPAC names using the PubChemPy library. These IUPAC names were subsequently used as input to ChatGPT-4 for generating textual descriptions, employing the following prompt:

Please delineate the structural features, functional aspects, and applicable implementations of the molecules {NAME}. And commence with the introduction: “The molecule is …” and reply to me in a sentence.

where {NAME} corresponds to the IUPAC name of the metabolite.

SciBERT (Beltagy et al. 2019) is used as the Encodert for the textual modality (Fig. 1B).

ht=Encodert(T), (1)

where T=[t1,…,tl] denotes the text input, l is the text length.

2.3.2 Pharmacophore-guided hypergraph representation module

A pharmacophore hypothesis comprises multiple chemical features and their spatial relationships. We use Basefeatures.fdef from RDKit (Landrum 2006). Based on the definitions of molecular substructures and their corresponding pharmacophore features in Zhu et al. (2023), we extracted all pharmacophore features for each molecule. Common pharmacophore features include aromatic rings, cations (positive charge center), hydrogen bond acceptors, and hydrogen bond donors. Hydrophobic groups are also common and include hydrophobes and lumped hydrophobes. Rare features are unknown. Supplementary Information, available as supplementary data at Bioinformatics online provides a detailed description of the pharmacophore hypergraph and its preparation.

To describe the complex relationships between pharmacophores in a molecule, we utilized a hypergraph convolution network and attention module to treat each pharmacophore as a fully integrated subgraph. We also learned deep embeddings on high-order graph-structured data, as introduced in Feng et al. (2019). Since a hyperedge can connect more than two vertices, each one represents a pharmacophore and connects the corresponding atoms. For the pharmacophores of a given molecule, let hypergraph Hp={V,E}, with vertices V={v1,v2,…,vn} and hyperedges E={e1,e2,…,em}, ei⊆V. The hypergraph Hp can be represented by its incidence matrix H∈Rn×m. Each element of the matrix is a Boolean value that indicates whether an atom is associated with a particular pharmacophore. This can be obtained from the stoichiometric matrix by converting its non-zero values into binary ones through binarization. The number of atoms is denoted by n while the number of pharmacophores is represented by m.

For a hypergraph incidence matrix H, each hyperedge ϵ is assigned a positive weight Wϵϵ, with all weights stored in the diagonal matrix W∈Rm×m. The vertex degree matrix Dii=∑ϵ=1mWϵϵHiϵ represents the number of hyperedges containing each vertex. Similarly, the hyperedge degree matrix Bϵϵ=∑i=1nHiϵ.

The hypergraph convolution operation for updating vertex embeddings, with row normalization applied to achieve directional and asymmetric propagation is shown in Equation (2):

X(l+1)=δ(D−1HWB−1HTX(l)P), (2)

where X(l)∈Rn×F(l) and X(l+1)∈Rn×F(l+1) represent the input to layers (l) and (l+1), respectively. P∈RF(l)×F(l+1). Matrices D and B are the vertex and hyperedge degree matrices, respectively.

To get the molecule hypergraph representation hp, we apply global max-pooling and mean-pooling to the atom representations X(l) and concatenate the resulting vectors

hp=CONCAT(max{X(l)},mean{X(l)}), (3)

2.3.3 Graph representation module

The molecular graph, representing the relationships between atoms and bonds, captures both local and global structure (Tsubaki et al. 2019, Cai et al. 2022). We introduce the Graph Isomorphism Network (GIN) to learn molecular representations from these graphs. For a molecule i, its graph G has nodes (atoms) and edges (bonds), with adjacency matrix A. GIN iteratively aggregates neighboring atom features, with each atom’s representation hv(k) in layer k defined as:

hv(k)=MLP((1+α(k))·hv(k−1)+∑u∈N(v)hu(k−1)), (4)

where α(k) is a learnable parameter and N(v) represents neighbors of node v. After K iterations, hv encodes K-hop neighborhood information.

To obtain the molecule-level representation hg, we apply global max and mean-pooling to atom representations hv and concatenate the results:

hg=CONCAT(max{hv(u)},mean{hv(u)}), (5)

2.3.4 Fingerprint representation module

Compound fingerprints are binary vectors indicating the presence or absence of specific substructures and are categorized into substructure key-based, topological or path-based, and circular fingerprints (Jia et al. 2020). In this study, SMILES notations were converted into four fingerprint types—Pharmacophore ErG, PubChem, MACCS, and Extended Connectivity FingerPrint (ECFP) using the RDKit toolkit (Landrum 2006). Firstly, pharmacophore-type node descriptions are used to generate a 441-bit Pharmacophore ErG fingerprint via the ErG method (Stiefl et al. 2006). Secondly, we apply a 166-bit MACCS fingerprint (Durant et al. 2002), which encodes atomic and bond characteristics using SMARTS patterns. Thirdly, an 881-bit PubChem fingerprint is employed for broad chemical structure coverage. Finally, circular fingerprints are generated using the 1024-bit ECFP with the Morgan algorithm, with a maximum neighborhood diameter of 2. After concatenating the fingerprint vectors, an MLP with non-linear activation functions, such as ReLU, is applied to obtain a fingerprint representation, denoted as hfp∈Rd:

hfp=MLP(fppub||fpmaccs||fperg||fpecfp), (6)

2.4 Contrastive learning

Inspired by research showing that graph representation learning is improved by maintaining consistency between local and global structures (You et al. 2020). Therefore, we introduce graph contrastive learning to enhance the representation learning of metabolites.

Suppose we randomly sample a mini-batch of Q molecular graphs and derive an equal number of the corresponding hypergraphs. We adopt pharmacophore-guided hypergraphs via contrastive learning to enhance learning. In particular, for a given molecule i, its graph representation and its hypergraph representation, while its representation and the representations of the remaining 2(Q−1) graphs/hypergraphs form negative pairs. The primary idea of graph contrastive learning is to maximize the agreement between the representations of positive pairs while minimizing the agreement between the representations of negative pairs (Chen et al. 2020).

For a given molecule i, its graph and hypergraph representations (hg and hp) are passed through an MLP projection head producing zi and z^i which are used for calculating the contrastive loss:

ℓzi,z^icontr=−log  exp (sim(zi,z^i)/τ)∑k=1,k≠i2Q exp (sim(zi,zk)/τ), (7)

where sim(zi,z^i)=ziTz^i||zi||||z^i|| denotes the similarity between the representations zi and z^i, i.e. cosine similarity. τ is the temperature parameter (set to 0.2 by default).

2.5 Attention-based fusion module

Our proposed fusion module utilizes the attention mechanism to effectively merge the multimodal features of the metabolites. The attention mechanism is capable of assigning different weights to the molecular features from different views, effectively highlighting the most informative and relevant features for a metabolic stability prediction task (Xiong et al. 2019, Wu et al. 2023).

Firstly, the features from different views are concatenated as a matrix Z=[ht;hp;hg;hfp]∈R4×d. Then, three-parameter matrices WQ∈Rd×dk, WK∈Rd×dk, and WV∈Rd×dv are utilized to compute the matrices for Query Q=ZWQ, Key K=ZWK, and Value V=ZWV matrices.

The attention mechanism is utilized to effectively weigh the different multi-view representations of a molecule in our proposed method. By computing the dot products of the Q and K matrices, dividing by dk, and applying the softmax function to obtain the attention weight matrix from the values as shown in Equation (8)

Attention(Q,K,V)=softmax(QKTdk)V, (8)

To enable our model to focus on information from different views simultaneously, HyperPhS incorporates multi-head attention. The resulting output matrix is shown in Equation (9):

headi=Attention(ZWiQ,ZWiK,ZWiV), (9)

For each head, we get the representation headi∈R4×dv, and then feed the representation into a 4×4 convolution layer (denoted as Conv()) to incorporate these features selectively. Finally, the features from M heads are concatenated as the output features for a compound:

hc=CONCAT(Conv(headi),…,Conv(headM)), (10)

2.6 Metabolic stability predictor

Furthermore, the outputs of the multi-head attention layers are fed into an MLP layer to get the predicted score y^ for each metabolite:

y^=sigmoid(MLP(hc)), (11)

Finally, Binary Cross-Entropy (BCE) loss is employed to compute the loss between the predicted vector y^ and the ground truth vector y. The overall loss function is defined as:

LC=−∑i=1Q[yi log(y^i)+(1−yi)log(1−y^i)], (12a)
LCL=12Q∑i=1Q(ℓzi,z^icontr+ℓzi^,zicontr), (12b)
Loss=LC+LCL. (12c)

3 Results

3.1 Benchmark dataset and evaluation metrics

Table 1 summarizes the Human Liver Microsomes (HLM), Rat Liver Microsomes (RLM), and external datasets used in our experiments, sourced from Li et al. (2022b). Model performance was assessed via 10-fold cross-validation on the HLM and RLM datasets, as well as an independent test consisting of training on the HLM dataset and testing on the external dataset, with results averaged over 10 runs. Key evaluation metrics included accuracy, F1 score, area under the curve (AUC), and Matthews correlation coefficient (MCC).

Table 1.

Statistics of metabolite dataset.

Dataset HLM HLM external RLM RLM external
Positive (stable) 3784 82 1542 736
Negative (unstable) 2094 29 1566 1746
Total 5878 111 3108 2482

3.2 Implementation details

Our model incorporates four complementary views of compounds, including text-based molecular descriptions, graph-based structural representations, pharmacophore-guided hypergraphs capturing higher-order interactions, and fingerprint-based substructure encodings.

For the text-based view, we used the GPT-4 model via the OpenAI API, and the SciBERT (Beltagy et al. 2019) is downloaded from Hugging Face. For the graph-based view, the initial node feature dimension is set to 84, and two GIN layers are used. The pharmacophore-guided hypergraph has two hypergraph layers followed by four attention heads. For the fingerprint view, each molecule is represented by a 2513-dimensional binary feature vector, with embedding obtained through a fully connected layer with 512 neurons. Four MLPs map the different representations to the same dimension of 512 to fuse the multi-view embeddings. The fusion module uses four attention heads to weigh the four views of a compound, such as metabolite descriptions, pharmacophore-guided hypergraphs, molecular graphs, and molecular fingerprints with attention dimensions dk and dv set to 2048. The τ is the temperature parameter set to 0.2 by default for the contrastive learning process. Moreover, HyperPhS is optimized using Adam (Kingma and Ba 2014) with a learning rate of 0.0005, 200 epochs, a batch size of 256, a dropout rate of 0.5, a data augmentation ratio of 0.4, and ReLU as the activation function. Furthermore, HyperPhS is implemented in Python 3.8 and PyTorch 2.0, utilizing functionalities from PyG 2.3.1, TensorFlow 2.13.0, Transformers 4.44.0, NetworkX 2.8.4, scikit-learn 1.2.2, numpy 1.23.5, pandas 2.0.2, and RDKit 2023.03.1.

3.3 Comparison with state-of-the-art methods

In this section, we evaluate the performance of the proposed HyperPhS model by comparing it with nine SOTA methods, including three traditional machine learning-based and four deep learning-based models. We used the parameter settings recommended in the original references. Specifically, FP-GBDT and FP-XGBoost (Li et al. 2022b) used ECFP fingerprints, with FP-GBDT having a depth of 4 and 1200 trees, and FP-XGBoost having a depth of 3 and 900 trees. PredMS (Ryu et al. 2022) employed molecular descriptors with Random Forest-based selection using 500 trees. GCN (Renn et al. 2021) used a two-layer architecture, while GAT (Veličković et al. 2017) had two layers with two attention heads. D-MPNN (Li et al. 2022b) incorporated atomic and bond features with six message-passing iterations, followed by two feed-forward layers. AttentiveFP (Xiong et al. 2019) used a three-layer message-passing network. CMMS-GCL (Du et al. 2023) utilized graph contrastive learning to integrate molecular graph and sequence representations for metabolic stability prediction. The MS-BACL model (Wang et al. 2024) employed bond graph augmentation and contrastive learning for stability prediction to complete understanding of molecular structures.

3.3.1 Performance evaluation on benchmark dataset

Tables 2 and 3 show the results of 10-fold cross-validation on the HLM and RLM datasets. For the HLM dataset, as shown in Table 2, our model (HyperPhS) achieves the best performance in all metrics, with an AUC of 87.6%±0.017%, an accuracy of 83.0%±0.018%, an F1 score of 87.0%±0.021%, and a MCC of 62.6%±0.039%. The results also show that HyperPhS improved the prediction performance on MCC by more than 11% compared to the GCN and GAT models. For example, HyperPhS improved the AUC, accuracy, F1 score, and MCC by 1.1%, 1.9%, 1.4%, and 6%, respectively, compared to the CMMS-GCL model. Additionally, HyperPhS significantly increased the accuracy of prediction performance by 1.0% and MCC by 2.5% compared to MS-BACL.

Table 2.

Performance of HyperPhS compared to baseline methods for HLM metabolic stability prediction.a

Method AUC Accuracy F1 score MCC
FP-GBDT (Li et al. 2022b) 0.815 0.773 0.830 0.503
XGBoost (Li et al. 2022b) 0.844 0.793 0.846 0.548
D-MPNN (Li et al. 2022b) 0.842 0.792 0.841 0.541
GAT (Veličković et al. 2017) 0.858 0.782 0.842 0.533
PredMS (Ryu et al. 2022) 0.854 0.785 0.843 0.552
MGCN (Renn et al. 2021) 0.852 0.784 0.825 0.544
AttentiveFP (Xiong et al. 2019) 0.853 0.793 0.836 0.564
CMMS-GCL (Du et al. 2023) 0.865 0.811 0.856 0.566
MS-BACL (Wang et al. 2024) 0.873 0.820 0.863 0.601
HyperPhS (ours) 0.876 0.830 0.870 0.626
a

The best results are highlighted in bold.

Table 3.

Performance of HyperPhS compared to baseline methods for RLM metabolic stability prediction.a

Method AUC Accuracy F1 score MCC
FP-GBDT (Li et al. 2022b) 0.820 0.740 0.750 0.470
XGBoost (Li et al. 2022b) 0.810 0.710 0.720 0.420
D-MPNN (Li et al. 2022b) 0.840 0.750 0.760 0.500
GAT (Veličković et al. 2017) 0.789 0.788 0.789 0.580
PredMS (Ryu et al. 2022) 0.800 0.730 0.740 0.460
MGCN (Renn et al. 2021) 0.706 0.706 0.702 0.413
AttentiveFP (Xiong et al. 2019) 0.862 0.780 0.795 0.590
CMMS-GCL (Du et al. 2023) 0.866 0.783 0.778 0.570
MS-BACL (Wang et al. 2024) 0.866 0.783 0.778 0.570
HyperPhS (ours) 0.888 0.806 0.807 0.612
a

The best results are highlighted in bold.

For the RLM dataset, as shown in Table 3, our model (HyperPhS) also achieves the best performance in all evaluation metrics, with an AUC of 88.8%, an accuracy of 80.6%, an F1 score of 80.7%, and an MCC of 61.2%. Compared to the CMMS-GCL model, HyperPhS shows improvements of 2.2% in AUC, 2.3% in accuracy, 2.9% in F1 score, and 4.2% in MCC. Additionally, compared to the MS-BACL model, HyperPhS achieves higher AUC, accuracy, F1 score, and MCC by 2.2%, 2.3%, 2.9%, and 4.2%, respectively. These results further highlight the ability of HyperPhS to provide more accurate and robust predictions of molecular metabolic stability compared to other models across different datasets.

Three main factors contribute to the superior performance of HyperPhS over baseline models. First, by incorporating features based on pharmacophores, HyperPhS captures critical chemical properties for metabolic stability, leading to more informative representations. Second, hypergraph contrastive learning allows the model to preserve both local and global molecular structures, enhancing representation learning. Third, the multi-view approach helps HyperPhS understand complex relationships within molecular structures, resulting in more accurate and robust predictions. These enhancements will be validated in the subsequent ablation study, demonstrating significant improvements in all evaluation metrics compared to other models.

3.3.2 Independent evaluation on external dataset

To validate the effectiveness and generalizability of our model, we evaluated HyperPhS and other baselines on an external dataset, training on the HLM or RLM dataset and testing on the external dataset.

The results in Tables 4 and 5 demonstrate that HyperPhS achieved the best performance compared with nine methods across all metrics, based on the average results over 10 iterations. In the HLM-External dataset evaluation, HyperPhS achieved an AUC of 88.3%, an accuracy of 84.7%, an F1 score of 89.7%, and an MCC of 59.9%. Compared to CMMS-GCL (Du et al. 2023), HyperPhS provided a notable improvement in accuracy by 1.1% and MCC by 3.0%, showcasing its superior feature extraction capabilities. Additionally, HyperPhS demonstrated a higher MCC than MS-BACL (Wang et al. 2024), emphasizing its robustness in capturing intricate relationships within molecular structures.

Table 4.

Performance of different models on the HLM-External dataset.a

Method AUC Accuracy F1 score MCC
FP-GBDT (Li et al. 2022b) 0.644 0.740 0.825 0.155
XGBoost (Li et al. 2022b) 0.678 0.732 0.830 0.150
D-MPNN (Li et al. 2022b) 0.766 0.760 0.852 0.218
GAT (Veličković et al. 2017) 0.814 0.755 0.825 0.414
PredMS (Ryu et al. 2022) 0.766 0.780 0.856 0.231
MGCN (Renn et al. 2021) 0.830 0.774 0.845 0.447
AttentiveFP (Xiong et al. 2019) 0.816 0.744 0.814 0.415
CMMS-GCL (Du et al. 2023) 0.885 0.836 0.889 0.569
MS-BACL (Wang et al. 2024) 0.897 0.842 0.895 0.588
HyperPhS (ours) 0.883 0.847 0.897 0.599
a

The best results are highlighted in bold.

Table 5.

Performance of different models on the RLM-External dataset.a

Method AUC Accuracy F1 score MCC
FP-GBDT (Li et al. 2022b) 0.630 0.610 0.690 0.190
XGBoost (Li et al. 2022b) 0.650 0.620 0.700 0.210
D-MPNN (Li et al. 2022b) 0.710 0.680 0.780 0.300
GAT (Veličković et al. 2017) 0.740 0.760 0.790 0.490
PredMS (Ryu et al. 2022) 0.600 0.560 0.640 0.110
MGCN (Renn et al. 2021) 0.680 0.690 0.740 0.360
AttentiveFP (Xiong et al. 2019) 0.850 0.780 0.790 0.590
CMMS-GCL (Du et al. 2023) 0.866 0.777 0.770 0.570
MS-BACL (Wang et al. 2024) – – – –
HyperPhS (ours) 0.879 0.798 0.802 0.597
a

The best results are highlighted in bold.

Similarly, in the RLM-External dataset evaluation, HyperPhS outperformed the baseline methods, achieving an AUC of 87.9%, an accuracy of 79.8%, an F1 score of 80.2%, and an MCC of 59.7%. These improvements were particularly significant compared to models like GAT (Veličković et al. 2017) and CMMS-GCL (Du et al. 2023), indicating that HyperPhS’s incorporation of pharmacophore-based features and hypergraph contrastive learning effectively captured local and global structural information. The multi-view approach enhanced its ability to model complex molecular interactions, leading to more accurate predictions. Notably, the MS-BACL model (Wang et al. 2024) could not be successfully applied when trained on the RLM dataset and tested on the external dataset, as certain molecules could not be converted into bond graphs, thereby preventing the extraction of the corresponding features.

3.4 Ablation studies

To assess the contribution of various components in HyperPhS, we conducted ablation studies by removing key elements, with results summarized in Table 6. The graph-only variant (G-Model) achieved an AUC of 85.9%, accuracy of 79.6%, F1 score of 84.0%, and MCC of 0.561. Incorporating the hypergraph (GH-Model) improved performance slightly. The HyperPhS w/o Text variant, which excludes text features, performed better but the complete HyperPhS model, with text and fusion, outperformed all variants, achieving an AUC of 87.6%, accuracy of 83.0%, and MCC of 0.626. These results demonstrate that each component enhances predictive performance, including hypergraph contrastive learning, multi-view encoding, and attention-based fusion (see Supplementary Information Section 1, available as supplementary data at Bioinformatics online).

Table 6.

Ablation studies of HyperPhS on HLM dataset.

Method AUC Accuracy F1 score MCC
G-model 0.859 0.796 0.840 0.561
GH-model 0.863 0.799 0.844 0.561
HyperPhS w/o text 0.873 0.809 0.853 0.585
HyperPhS w/o fusion 0.873 0.816 0.860 0.596
HyperPhSa 0.876 0.830 0.870 0.626
a

The best results are highlighted in bold.

3.5 Performance assessment of novel structural molecules

To evaluate the ability of the model to predict the stability of molecules with novel structures, the Tanimoto similarity between molecules in the HLM dataset was calculated using their ECFP fingerprints, following the approach outlined in previous studies (Du et al. 2023, Wang et al. 2024). The molecules were clustered using the K-means algorithm into five groups based on structural similarity, and the clustering results were visualized through principal component analysis (PCA), see Fig. 1, available as supplementary data at Bioinformatics online.

Therefore, we conducted leave-one-cluster-out cross-validation, in which one cluster was used as the test set and the remaining four as the training set. This procedure ensured that molecules in the test set possessed novel structures. As shown in Fig. 2, the results indicate that our proposed model HyperPhS consistently outperformed the other two leading models across all five clusters. Specifically, HyperPhS showed superior F1 scores across all clusters, reaching 92.55% in cluster 0 and 81.61% in cluster 4, outperforming the baseline methods by up to 12.55% in cluster 0 compared to CMMS-GCL. Additionally, HyperPhS demonstrated the highest accuracy values in all clusters, including a 2.91% improvement over CMMS-GCL in cluster 4. This indicates that the model effectively handles known and novel molecular structures, highlighting its potential for applications in drug design.

Figure 2.

Figure 2.

Performance of HyperPhS with suboptimal MS-BACL and CMMS-GCL models in identifying novel and diverse chemical structures.

3.6 Case study on interpretability

Following previous studies (Du et al. 2023, Wang et al. 2024), we conducted an in-depth analysis. This analysis focused on the stability of pharmacophore groups within molecular structures and their resulting impact on overall metabolic stability.

To identify pharmacophore groups that significantly influence molecular stability, we set a Shapley value threshold of 0.2 as in the previous study (Du et al. 2023). Pharmacophore groups exceeding this threshold were considered critical for stability. We ranked these key pharmacophore groups and visualized the top 10 that occur the most frequently, as shown in Fig. 3. In the visualization, red indicates pharmacophore groups contributing positively to stability, while blue indicates groups contributing negatively, with the intensity of the color reflecting the degree of influence. The pharmacophore atoms are circled in orange (see Supplementary Information Section Case study, available as supplementary data at Bioinformatics online). We conducted experiments on 10 key functional groups (highlighted in orange on the molecular heatmap). Figure 2, available as supplementary data at Bioinformatics online, shows four stable molecules with highlighted stable pharmacophore regions, demonstrating the significant role of these groups in enhancing molecular stability.

Figure 3.

Figure 3.

Case study on model interpretability, illustrating the top 10 functional groups influencing molecular stability, ranked by occurrence. Colors indicate positive (red) or negative (blue) impact, and relevant atoms are circled in orange.

In summary, our study successfully demonstrated the interpretability of the HyperPhS model, revealing that stable pharmacophore groups have a significant positive effect on molecular stability. Specifically, stable pharmacophores help maintain drug molecules’ structural integrity and functionality within a biological environment, thereby enhancing drug efficacy and safety. These findings provide new insights into the molecular mechanisms underlying stability and have important implications for drug design and chemical synthesis (Liu et al. 2024b).

4 Conclusion

In this work, we developed the HyperPhS model, utilizing multi-view learning with pharmacophore-guided hypergraph contrastive learning and an attention-based fusion module to predict molecular metabolic stability. Our results demonstrate that HyperPhS outperforms other models. Ablation studies confirm its strengths: it captures key chemical properties with pharmacophore-based features, improves understanding of molecular interactions via hypergraph learning, and preserves complex relationships through contrastive learning. Additionally, integrating multimodal learning with multiple metabolic encoders boosted performance across all metrics. In conclusion, HyperPhS enhances accuracy and interpretability in molecular stability prediction, offering valuable insights for drug discovery and metabolic network optimization (Mao et al. 2023, Liu et al. 2024a). Future work could further refine predictions by visualizing hypergraph relationships (Renn et al. 2021, Liu et al. 2023).

Supplementary Material

btaf524_Supplementary_Data

Contributor Information

Xiaoyi Liu, School of Chinese Materia Medica, Beijing University of Chinese Medicine, Beijing 100029, China.

Na Zhang, Computer Science and Engineering, Central South University, Changsha 410083, China.

Chenglong Kang, Computer Science and Engineering, Central South University, Changsha 410083, China.

Chengwei Ai, Computer Science and Engineering, Central South University, Changsha 410083, China.

Hongpeng Yang, Computer Science and Engineering, University of South Carolina, Columbia, SC 29208, United States.

Jijun Tang, Computer Science and Engineering, Shenzhen University of Advanced Technology, Nanshan 518055, China.

Fei Guo, Computer Science and Engineering, Central South University, Changsha 410083, China.

Author contributions

Xiaoyi Liu (Conceptualization [equal], Data curation [equal], Formal analysis [equal], Methodology [equal], Software [equal], Validation [equal], Visualization [equal], Writing—original draft [equal]), Na Zhang (Data curation [equal], Formal analysis [equal], Methodology [equal], Software [equal], Validation [equal]), Chenglong Kang (Data curation [equal], Formal analysis [equal], Methodology [equal], Software [equal], Validation [equal]), Chengwei Ai (Methodology [equal], Visualization [equal], Writing—review & editing [equal]), Hongpeng Yang (Methodology [equal], Software [equal], Validation [equal]), Jijun Tang (Funding acquisition [equal], Project administration [equal], Writing—review & editing [equal]), and Fei Guo (Conceptualization [equal], Funding acquisition [equal], Project administration [equal], Writing—review & editing [equal])

Supplementary data

Supplementary data are available at Bioinformatics online.

Conflicts of interest: The authors declare no competing financial interest.

Funding

This work was supported by the National Natural Science Foundation of China [62502050, 62532017, 62322215, and U24A20257], Shenzhen Science and Technology Program [JCYJ20241202130212016 and KQTD20200820113106007]. Also, this work was supported by the Fundamental Research Funds for the Central Universities [2025-JYB-XJSJJ008]. This study was also supported in part by the High-Performance Computing Center of Central South University and the High-Performance Computing Clusters [PL-17161] of Shenzhen Institutes of Advanced Technology.

Data availability

The data underlying this article are available in https://github.com/xiaoyiliu-usc/HyperPhS.

References

  1. Beltagy I, Lo K, Cohan A.  SciBERT: a pretrained language model for scientific text. arXiv preprint arXiv:2019, 1903.10676. [Google Scholar]
  2. Cai H, Zhang H, Zhao D  et al.  FP-GNN: a versatile deep learning architecture for enhanced molecular property prediction. Brief Bioinform  2022;23. [DOI] [PubMed] [Google Scholar]
  3. Chen T, Kornblith S, Norouzi M et al. A simple framework for contrastive learning of visual representations. In: International Conference on Machine Learning. PMLR, 2020, 1597–607.
  4. Du B-X, Long Y, Li X  et al.  CMMS-GCL: cross-modality metabolic stability prediction with graph contrastive learning. Bioinformatics  2023;39:btad503. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Durant JL, Leland BA, Henry DR  et al.  Reoptimization of MDL keys for use in drug discovery. J Chem Inf Comput Sci  2002;42:1273–80. [DOI] [PubMed] [Google Scholar]
  6. Feng Y, You H, Zhang Z  et al.  Hypergraph neural networks. AAAI  2019;33:3558–65. [Google Scholar]
  7. Gajula SNR, Nadimpalli N, Sonti R  et al.  Drug metabolic stability in early drug discovery to develop potential lead compounds. Drug Metab Rev  2021;53:459–77. [DOI] [PubMed] [Google Scholar]
  8. Gao Q, Yang L, Zhu Y  et al.  Pharmacophore based drug design approach as a practical process in drug discovery. Curr Comput Aided Drug Des  2010;6:37–49. [DOI] [PubMed] [Google Scholar]
  9. Jia Y, Chen L, Zhou J-P  et al.  iMPT-FRAKEL: a simple multi-label web-server that only uses fingerprints to identify which metabolic pathway types compounds can participate in. TOBIOIJ  2020;13:83–91. [Google Scholar]
  10. Jiang Y, Jin S, Jin X  et al.  Pharmacophoric-constrained heterogeneous graph transformer model for molecular property prediction. Commun Chem  2023;6:60. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Kingma DP, Ba J. Adam: a method for stochastic optimization. arXiv preprint, arXiv:2014,1412.6980, 1412(6).
  12. Landrum G. RDKit: open-source cheminformatics. Google Scholar.  2006.
  13. Li F, Yin J, Lu M  et al.  DrugMAP: molecular atlas and pharma-information of all drugs. Nucleic Acids Res  2022. a;51:D1288–99. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Li L, Lu Z, Liu G  et al.  In silico prediction of human and rat liver microsomal stability via machine learning methods. Chem Res Toxicol  2022. b;35:1614–24. [DOI] [PubMed] [Google Scholar]
  15. Liu X, Yang H, Ai C  et al.  MVML-MPI: multi-view multi-label learning for metabolic pathway inference. Brief Bioinform  2023;24:bbad393. [DOI] [PubMed] [Google Scholar]
  16. Liu X  et al. A generalizable framework for unlocking missing reactions in genome-scale metabolic networks using deep learning. arXiv preprint, arXiv:2409.13259, 2024. a.
  17. Liu X, Ai C, Yang H  et al.  RetroCaptioner: beyond attention in end-to-end retrosynthesis transformer via contrastively captioned learnable graph representation. Bioinformatics  2024. b;40:btae561. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Mao Z, Yuan Q, Li H  et al.  CAVE: a cloud-based platform for analysis and visualization of metabolic pathways. Nucleic Acids Res  2023;51:W70–7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Perryman AL, Stratton TP, Ekins S  et al.  Predicting mouse liver microsomal stability with “pruned” machine learning models and public data. Pharm Res  2016;33:433–49. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Rao Gajula SN, Pillai MS, Samanthula G  et al.  Cytochrome p450 enzymes: a review on drug metabolizing enzyme inhibition studies in drug discovery and development. Bioanalysis  2021;13:1355–78. [DOI] [PubMed] [Google Scholar]
  21. Renn A, Su BH, Liu H  et al.  Advances in the prediction of mouse liver microsomal studies: from machine learning to deep learning. Wiley Interdiscip Rev Comput Mol Sci  2021;11:e1479. [Google Scholar]
  22. Ryu JY, Lee JH, Lee BH  et al.  PredMS: a random Forest model for predicting metabolic stability of drug candidates in human liver microsomes. Bioinformatics  2022;38:364–8. [DOI] [PubMed] [Google Scholar]
  23. Słoczyńska K, Gunia-Krzyżak A, Koczurkiewicz P  et al.  Metabolic stability and its role in the discovery of new chemical entities. Acta Pharm  2019;69:345–61. [DOI] [PubMed] [Google Scholar]
  24. Stiefl N, Watson IA, Baumann K  et al.  ErG: 2D pharmacophore descriptions for scaffold hopping. J Chem Inf Model  2006;46:208–20. [DOI] [PubMed] [Google Scholar]
  25. Tsubaki M, Tomii K, Sese J  et al.  Compound–protein interaction prediction with end-to-end learning of neural networks for graphs and sequences. Bioinformatics  2019;35:309–18. [DOI] [PubMed] [Google Scholar]
  26. Veličković P, Cucurull G, Casanova A  et al. arXiv preprint arXiv: 2017, 1710.10903.
  27. Wang T, Li Z, Zhuo L  et al.  MS-BACL: enhancing metabolic stability prediction through bond graph augmentation and contrastive learning. Brief Bioinform  2024;25:bbae127. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Weininger D.  Smiles, a chemical language and information system. 1. Introduction to methodology and encoding rules. J Chem Inf Comput Sci  1988;28:31–6. [Google Scholar]
  29. Wu J, Dong Y, Gao Z  et al.  Dual attention and patient similarity network for drug recommendation. Bioinformatics  2023;39:btad003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Xiong Z, Wang D, Liu X  et al.  Pushing the boundaries of molecular representation for drug discovery with the graph attention mechanism. J Med Chem  2019;63:8749–60. [DOI] [PubMed] [Google Scholar]
  31. You Y, Chen T, Sui Y  et al.  Graph contrastive learning with augmentations. Adv Neural Inf Process Syst  2020;33:5812–23. [Google Scholar]
  32. Zhu H, Zhou R, Cao D  et al.  A pharmacophore-guided deep learning approach for bioactive molecular generation. Nat Commun  2023;14:6234. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

btaf524_Supplementary_Data

Data Availability Statement

The data underlying this article are available in https://github.com/xiaoyiliu-usc/HyperPhS.


Articles from Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES