MetaReact: A Reaction-Aware Transformer for End-to-End Prediction of Drug Metabolism
aDrug Discovery and Design Center, State Key Laboratory of Drug Research, Shanghai Institute of Materia Medica, Chinese Academy of Sciences, 555 Zuchongzhi Road, Shanghai 201103, China
bUniversity of Chinese Academy of Sciences, No.19A Yuquan Road, Beijing 100049, China
cDepartment of Medicinal Chemistry, School of Pharmacy, Fudan University, Shanghai 201203, China
*Corresponding author: Tel: +86-18251823321 (Jiacheng Xiong), Tel: +86-13821547729 (Xutong Li), Tel: +21-68077843 (Mingyue Zheng), E-mail addresses: s19-xiongjiacheng@simm.ac.cn (Jiacheng Xiong), lixutong@simm.ac.cn (Xutong Li), myzheng@simm.ac.cn (Mingyue Zheng)Abstract
Accurate prediction of drug metabolites and enzyme selectivity is essential for rational drug design and safety assessment. However, existing computational approaches are often limited to specific enzyme families or reaction types, lacking the capacity to model enzyme-subtype specificity and prioritize major metabolites. Here, we present MetaReact, an end-to-end generalizable Transformer-based model that unifies the prediction of metabolic enzymes, metabolites, and sites of metabolism (SOM). By integrating structure-aware encoding ReactSeq, a chemistry reaction-based pretraining, MetaReact consistently outperforms state-of-the-art methods across multiple benchmarks under three settings: enzyme-agnostic, enzyme-completion, enzyme-conditioned. Notably, it achieves 60% Top-3 accuracy in identifying major metabolites and superior CYP450 enzyme-subtype prediction/SOM recognition. Case studies validate its applicability to complex natural products, synthetic cannabinoids, and clinical candidates, facilitating toxicity assessment and molecular optimization. This scalable, rule-free solution advances human metabolism modeling, with potential for computational pharmacokinetics and early drug discovery.
Article notes
Competing Interest Statement
The authors have declared no competing interest.
Footnote Group
1Introduction
Drug metabolism is a pivotal determinant of pharmaceutical efficacy and safety, as enzymatic conversion of drug molecules into metabolites often alters their physicochemical characteristics, pharmacological activity, or potential toxicity—key factors linked to late-stage drug development failures.1–3 Typically proceeding via Phase I functionalization (e.g., oxidation, reduction) followed by Phase II conjugation (with endogenous groups to enhance solubility and excretion efficiency)4, such metabolic processes can introduce unforeseen safety risks even for structurally related metabolites5. Consequently, early and accurate prediction of drug metabolites is therefore critical for informed decision-making in pharmaceutical development.6,7 Regulatory guidelines (e.g., U.S. Food and Drug Administration [FDA] and International Council for Harmonisation of Technical Requirements for Pharmaceuticals for Human Use [ICH] M3 (R2)) further emphasize identifying and characterizing metabolites accounting for >10% of total drug-related exposure before Phase III clinical trials.8–10
Common preclinical approaches for metabolic profiling include recombinant enzyme systems, human liver microsomes (HLMs), primary human hepatocytes, and animal models.7,11 While in vitro systems are cost-effective, they often fail to recapitulate the full complexity of metabolism in living organisms.12–14 For example, while recombinant enzyme incubations can confirm the involvement of specific enzymes, they lack physiological context. HLMs, while widely used, primarily comprise cytochrome P450 enzymes (CYPs), uridine 5’-diphospho-glucuronosyltransferases (UGTs), and esterases, and thus fail to capture the activity of other metabolic enzymes.15,16 Animal models offer closer physiological relevance but are limited by interspecies differences.17–19 Humanized chimeric mice with livers repopulated by >80% human hepatocytes have recently shown promise in better recapitulating human metabolic pathways.20–22 However, their widespread adoption in routine screening remains limited by high costs and restricted availability.
Computational approaches enable rapid, large-scale screening of candidate compounds during early-stage drug development. Current computational strategies for predicting drug metabolism generally fall into two categories. The first focuses on identifying sites of metabolism (SOMs)—specific atoms or bonds within a molecule that are vulnerable to enzymatic modification. Representative models include RS-Predictor23, SOMP24, SMARTCyp3.025, FAME326, Rainbow XenoSite27, GNN-SOM28 and GLMCyp29. Many rely on precomputed features such as density functional theory (DFT) activation energies, topological descriptors, and steric accessibility, and are largely limited to CYP450-mediated reactions. GNN-SOM overcomes this limitation by leveraging an end-to-end graph neural network (GNN) to learn atomic representations from molecular graphs and predict the likelihood of metabolism at specific atoms or bonds, conditioned on two-digit EC number.28 GLMCyp is a deep learning model for predicting CYP450 reaction sites on small molecules. By combining 2D molecular graph features, 3D structural representations from Uni-Mol30, and CYP450 protein features from ESM-231, it accurately identifies SOMs for nine human CYP450 isoforms.29 While these models outperforms conventional machine learning models, it remains restricted to resolving enzyme subtype specificity, particularly within closely related CYP450 isoforms.
The second category focuses on directly predicting the chemical structures of metabolites generated from the parent compound. Most current tools in this category are rule-based, such as SyGMa32, RD-Metabolizer33, GLORYx34, Metabolic Forest35, CyProduct36, and BioTransformer3.037. These approaches rely on expert-defined transformation rules that are only activated when the substrate precisely matches a predefined pattern. As a result, the utility of such approaches is constrained by insufficient rule coverage and specificity; moreover, greater rule complexity may further increase the likelihood of false positives. To overcome the shortcomings of rule-based methods, recent advances have introduced template-free deep learning models that learn transformation patterns directly from data. MetaTrans formulates metabolite prediction as a SMILES-to-SMILES translation task, utilizing a Transformer architecture pretrained on general chemical reaction datasets and subsequently fine-tuned on metabolic reaction data.38 MetaPredictor integrates SOM tagging with a prompt-based strategy to guide metabolite generation in an end-to-end manner.39 While these deep learning models demonstrate improved generalization over rule-based systems, they still lack enzyme-specific guidance and fail to capture the selectivity among enzyme families or subtypes, limiting their adaptability to different needs in early discovery, mechanistic metabolism studies, and medicinal chemistry optimization.
Recent advances like DeepMetab have unified CYP450-mediated metabolism prediction (substrate identification, SOM localization, metabolite generation) via a GNN-based multi-task framework, using rule-based metabolite generation post-SOM prediction to ensure mechanistic consistency.40 Yet even these models suffer from limited generalizability, poor enzyme specificity, and inadequate coverage of non-CYP enzymes, creating a critical gap for a unified, flexible modeling framework. Notably, no existing model simultaneously addresses the dual needs of medicinal chemists and pharmacokineticists: predicting enzyme-substrate selectivity across diverse enzyme families, and inferring SOMs and metabolite structures under both known and unknown enzymatic contexts.
To fill this gap, we introduce MetaReact, a deep learning framework designed for comprehensive drug metabolism prediction across diverse enzymatic contexts. By leveraging ReactSeq41, a reaction-aware molecular representation that encodes atomic and bond-level changes between reactants and products, MetaReact inherently captures reaction-center information to support SOM identification. Pretrained on a broad collection of general organic reactions and fine-tuned on a large curated dataset of metabolic reactions, MetaReact supports three task settings (enzyme-agnostic, enzyme-completion and enzyme-conditioned) for flexible adaptation to diverse drug discovery use cases. These capabilities enable direct inference of metabolic enzymes, SOMs, and metabolite structures from a given substrate, offering a unified, generalizable tool to advance both medicinal chemistry and pharmacokinetic research.
2Results
3.5Predictions in Challenging Scenarios
3Conclusion and Discussion
Drug metabolism research seeks to understand enzymatic transformations that underlie drug efficacy and toxicity, thereby informing the design of safer and more effective therapies. Existing computational tools are often fragmented, constrained to specific enzyme families or rule-based heuristics, and rarely optimized for clinically critical tasks such as major metabolite prioritization.
Here we present MetaReact, a unified Transformer-based framework that integrates metabolite prediction, enzyme annotation, and site-of-metabolism identification in a single model. Its performance is driven by three innovations: the ReactSeq representation, which explicitly encodes atom- and bond-level transformations; a pretraining-fine-tuning strategy, which transfers general chemical reactivity knowledge to metabolism-specific data; and a prompt-guided task formulation, which allows one model to flexibly adapt to enzyme-agnostic, enzyme-completion, and enzyme-conditioned settings. Together, these designs enabled MetaReact to outperform state-of-the-art methods across diverse benchmarks.
Each setting aligns with distinct real-world applications. In the enzyme-agnostic mode, MetaReact successfully predicted metabolites of structurally complex substrates such as synthetic cannabinoids, traditional Chinese medicines, and clinical drugs. In the enzyme-completion mode, it identified aldehyde oxidase involvement in failed clinical compounds, highlighting hidden enzymatic liabilities. In the enzyme-conditioned mode, it provided actionable guidance for metabolic site modification, supporting rational optimization strategies.
Despite these advances, several challenges remain. Model accuracy is still limited by the coverage and balance of training data, especially for rare enzymes and multi-step pathways. ReactSeq focuses on local transformations but does not fully capture conformational dynamics or protein-ligand interactions. Moreover, real-world applications demand the ability to capture drug-drug interactions, such as competitive metabolism when multiple compounds share the same enzyme, and to achieve cross-species generalization from animal studies to human contexts where enzymatic activity differs substantially. Addressing these limitations will require tighter integration of structural biology, multi-omics perturbation data, and experimental validation.
In conclusion, MetaReact establishes a scalable, rule-free paradigm for human metabolism modeling. By unifying metabolite, enzyme, and SOM prediction and demonstrating broad applicability from complex substrates to clinical pipelines, it provides both methodological innovation and practical impact, laying the foundation for more comprehensive metabolism-aware drug discovery.
4Methodology
2.2Model Architecture and Training
Transformer Backbone and Tokenization
MetaReact adopts a sequence-to-sequence Transformer with an encoder-decoder backbone. SMILES strings are encoded at the character level, while enzyme identifiers are added to the vocabulary as single, indivisible tokens. Missing enzyme information is represented by a placeholder token “ <blank>”, which is excluded from loss computation via masking. The tokenizer maps characters to integer indices that are subsequently embedded into high-dimensional vectors and processed by self-attention in the encoder and cross-attention in the decoder. All reactions are represented in ReactSeq to expose atom- and bond-level transformations. Details are provided in the in the Supplementary Information Section A.2.
Pretraining and Fine-tuning Pipeline
Training follows a transfer-learning pipeline. The model is first pretrained on ReactSeq-formatted reverse reactions derived from general organic chemistry for 500,000 epochs. The learned weights are then transferred and fine-tuned on the curated metabolic reaction dataset for 10,000 epochs, yielding the final MetaReact model. Model selection is based on validation performance.
2.3Evaluation Framework Evaluation Metrics
Model performance was quantified by computing the Tanimoto similarity (based on ECFP4 fingerprints) between predicted and true metabolites, with a similarity score of 1 indicating a correct match. The performance metrics included accuracy, precision, recall, and F1-score. The specific calculation formulas are as follows:
where Ncorrect denotes the number of correctly predicted metabolites, is the total number of metabolites predicted in the top-n results, and Ntrue is total number of ground-truth metabolites.
Given that a substrate may yield multiple true metabolites, we further define three match-level evaluation metrics. At least one metabolite indicates at least one predicted metabolite exactly matches any of the true metabolites. At least half metabolites shows at least 50% of the ground-truth metabolites are recovered by the prediction. All metabolites means the predicted set of metabolites is exactly consistent with the reference set. Hereafter, accuracy refers to the At least one metabolite metric unless stated otherwise.
Enzyme-completion evaluation (D-data & internal test set)
In the enzyme-completion setting, evaluation was performed on two datasets. The D-data benchmark contains 123 newly added drugs and their 198 corresponding metabolites curated from DrugBank version 5.1.1271 relative to version 5.1.10. Among these, 51 drugs have annotated enzyme information spanning six families and 19 subtypes (Figure S2). To extend enzyme coverage, we further incorporated 2,073 reactions with explicit enzyme annotations from the internal test dataset. This subset spans 14 enzyme families and 72 subtypes, including CYP, UGT, sulfotransferase (SULT), and AOX, with CYP450 and UGT accounting for ∼70% and ∼20% of reactions, respectively (Figure S3).
Enzyme-conditioned evaluation (D-data & internal test set)
In the enzyme-conditioned setting, evaluation was performed in two scenarios. First, we used 2,073 enzyme-annotated reactions from the internal test set to compare predictions with and without enzyme subtype information, thereby quantifying the benefit of enzyme context. Second, we benchmarked MetaReact against CyProduct36, a rule-based tool covering nine major CYP450 isoforms (CYP1A2, CYP2A6, CYP2B6, CYP2C8, CYP2C9, CYP2C19, CYP2D6, CYP2E1, CYP3A4). For fairness, MetaReact’s predictions were restricted to the same enzyme conditions; in the D-data benchmark, this corresponded to 38 drugs with 65 annotated reactions.
SOM prediction (SOM external test set)
SOM prediction aims to identify the specific atoms within a substrate that undergo enzymatic transformation. In this setting, evaluation was conducted using an external SOM test set comprising 357 enzyme-substrate-site entries from 74 drugs, constructed by combining D-data with CYP-related reactions from MetaTrans dataset. This dataset spans eight major CYP450 isoforms (CYP3A4, CYP2C9, CYP2D6, CYP2C8, CYP2B6, CYP2A6, CYP1A2, CYP2E1).
MetaReact was benchmarked against existing CYP450-focused SOM predictors, including SOMP24, SMARTCyp3.025, Rainbow XenoSite27, GLMCyp29, and GNN-SOM28. Two evaluation settings were considered. At the CYP450 family level, the enzyme family was specified without distinguishing isoforms; GNN-SOM and Rainbow XenoSite were evaluated only in this setting as they do not support isoform-specific prediction. At the CYP450 isoform level, performance was assessed for eight representative isoforms, each with at least 20 reactions to ensure reliability (Figure S4). SMARTCyp3.0 and SOMP were tested on a subset of isoforms, whereas GLMCyp and MetaReact covered all eight.
Supporting information
Data availability
The Drugbank data can be downloaded from https://go.drugbank.com/#. The MetXBioDB dataset is available at https://zenodo.org/records/4247792. The Recon3D dataset can be accessed at https://ngdc.cncb.ac.cn/databasecommons/database/id/6846. The HumanCyc dataset can be downloaded from the following link: https://maayanlab.cloud/Harmonizome/dataset/HumanCyc+Pathways. The SMPDB is available at https://smpdb.ca.
Code availability
The MetaReact source code, trained model and implementation scripts are are publicly available at our GitHub repository: https://github.com/myzhengSIMM/MetaReact.
Acknowledgements
This study was supported by the Strategic Priority Research Program of the Chinese Academy of Sciences (XDB0830000, China), National Natural Science Foundation of China (82204278, China; T2225002, China and 82273855, China), SIMM-SHUTCM Traditional Chinese Medicine Innovation Joint Research Program (E2G805H, China), Shanghai Municipal Science and Technology Major Project, National Key Research and Development Program of China (2023YFC2305904, China and 2022YFC3400504, China), Key Technologies R&D Program of Guangdong Province (2023B1111030004, China), Shanghai Post-doctoral Excellence Program (2024707, China), Postdoctoral Fellowship Program of CPSF (GZB20250838, China) and the Lingang Laboratory (LGL-8888-02, China).
We also acknowledge Shanghai Supercomputer Center for providing computing resources.
Conflict of Interest
The authors declare no conflict of interest.