Manuscript Offprint

arXiv:2610.19640

Synthetic reaction data from transformation rules for graph-to-sequence pretraining in biodegradation pathway prediction

Irsyaad Rijwan, Liam Brydon, Aidan Jared, Jörg Simon Wicker

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The scarcity of observed biodegradation reactions constrains the training of product and pathway predictors. We present enviGraph, a framework that generates and curates synthetic reaction data, uses these data to pretrain a graph-to-sequence predictor, and fine-tunes the predictor on observed environmental reactions for product and recursive pathway prediction. Applying inherited environmental transformation rules to structures from PubChem, NORMAN SusDat and EPA DSSTox, followed by curation, produces 776,851 canonical parent–product pairs for pretraining.

We compare this dataset with three United States Patent and Trademark Office (USPTO) reaction datasets: USPTO-50K, USPTO-MIT and USPTO-Stereo. We evaluate enviGraph and the sequence-based enviFormer using ten folds split by pathway on the EAWAG Biocatalysis/Biodegradation Database (BBD), regulatory pesticide biodegradation data (Soil) and activated-sludge biodegradation data (Sludge). For both predictors, synthetic pretraining gives the highest BBD mean precision-recall area under the curve (PR-AUC) among the evaluated pretraining datasets for single-generation and multi-generation prediction. enviGraph achieves BBD single-generation PR-AUC of 0.202±0.0500.202 \pm 0.050 with synthetic pretraining, compared with 0.169±0.0650.169 \pm 0.065 for the retrospectively selected strongest USPTO condition, USPTO-Stereo (mean ±\pm sample standard deviation across folds). Its exact BBD top-1 and top-5 accuracies with synthetic pretraining are 0.355 and 0.594. The strongest USPTO conditions give higher PR-AUC means than synthetic pretraining in most Soil and Sludge comparisons. enviGraph has higher Soil multi-generation PR-AUC means than enviFormer under each of the four main pretraining datasets, and with synthetic pretraining it also leads enviFormer on BBD single-generation PR-AUC and exact top-1 and top-5 accuracy.

Scientific Contribution. We introduce enviGraph, a framework that generates and curates rule-derived synthetic reaction data for graph-to-sequence pretraining, followed by fine-tuning for biodegradation product and pathway prediction. The resulting curated corpus contains 776,851 canonical depth-1 parent–product pairs. Evaluation against USPTO pretraining with two predictors across BBD, Soil and Sludge, in both single-generation and multi-generation tasks, shows that the usefulness of the synthetic data varies across environmental datasets.

Keywords: biodegradation; synthetic reaction data; graph-to-sequence learning; pretraining; transformation products; pathway prediction

1 Introduction

Organic contaminants can form transformation products with persistence, mobility and biological effects that differ from those of their parent compounds. The disappearance of a parent compound therefore provides an incomplete account of its environmental fate. Identifying transformation products experimentally is difficult when reference standards are unavailable or analytical methods do not capture short-lived intermediates. Computational prediction can help prioritise candidate structures and pathways for investigation, provided that predicted structures are distinguished from experimentally confirmed products [1–3].

Environmental reaction prediction faces a shortage of observed training examples. The enviPath resource provides compounds, reactions, pathways and transformation rules for microbial biodegradation, including the records inherited from the EAWAG Biocatalysis/Biodegradation Database (BBD), as well as Soil and Sludge collections [4, 5]. These resources describe different environmental settings and experimental records. They are substantially smaller than the reaction datasets extracted from United States Patent and Trademark Office (USPTO) records [6, 7] that are commonly used to train neural networks for reaction prediction.

Transformation rules encode reusable local changes that can be applied to many structures. Rule-based systems identify applicable transformations and construct candidate products; their coverage depends on the available rules and their specificity. Recursive application can produce a large number of candidate pathways. Earlier work combined transformation rules with learned prioritisation to control this expansion [8, 9]. More recently, enviRule automated the extraction and generalisation of reaction patterns and evaluated them through downstream product prediction [10]. A rule-generated product remains a hypothesis about a reaction's environmental occurrence. Using these products as training targets requires explicit choices about input structures, representation, acceptance, duplicate handling and evaluation-pair exclusion.

Neural networks can learn to generate reaction products from molecular inputs. Transformer models formulate product prediction as translation between molecular strings [11]. Pretrained initialisation improves generalisation over random initialisation in deep networks [12, 13]. In reaction prediction, a USPTO-pretrained Molecular Transformer fine-tuned on about 20,000 carbohydrate reactions reached 70.3% top-1 accuracy, compared with 30.4% for a model trained only on those reactions [14]. Pretrained Chemformer models likewise outperformed randomly initialised counterparts on reaction and retrosynthesis prediction [15].

In the environmental setting, enviFormer pre-trains on USPTO reactions before adaptation to biodegradation data and evaluates both immediate products and recursively generated pathways [16]. Its authors concluded that the model's ability to predict products depends on transfer learning. This transfer strategy addresses the limited size of environmental datasets, but the USPTO examples describe intended chemical syntheses rather than transformation under environmental conditions. Whether rule-derived environmental examples provide a more useful pretraining dataset is an empirical question, and the answer may differ across target collections.

Recent approaches differ in their pretraining data, prediction inputs and output tasks. ReactionT5 combines compound pretraining with reaction pretraining on Open Reaction Database records, then evaluates product prediction, retrosynthesis and yield prediction, including limited-data settings [17]. Enzyformer combines molecular and reaction pretraining for enzymatic retrosynthesis [18]. Template-driven generation of training reactions has precedents in synthesis prediction. RSGPT, a transformer for retrosynthesis, was pretrained on more than 10 billion reactions generated by applying templates extracted from reported reactions to molecular fragments [19]. Grandjean et al. [20] applied retrosynthesis templates to USPTO molecules, validated 27.5 million fictive reactions and found that a retrosynthesis model trained on a template-equilibrated subset outperformed one trained on USPTO reactions only. These evaluations concern synthetic chemistry and enzymatic retrosynthesis. To our knowledge, no earlier study builds a pretraining corpus from environmental transformation rules, and our study tests such a corpus for environmental products and pathways. ECLIPSE predicts enzyme-class associations from compounds and evaluates their use as additional inputs to product prediction [21]. In enviGraph, transformation rules supply training pairs, while prediction requires only the parent structure.

Molecular representation is a second design choice. A molecular graph directly exposes atom connectivity to an encoder, whereas a SMILES (Simplified Molecular Input Line Entry System) input specifies a traversal of that graph. Graph2SMILES combines local directed message passing and global graph-aware attention with sequence generation, providing a graph-to-sequence architecture for reaction prediction and retrosynthesis [22]. UGTformer also combines graph pretraining with metabolic prediction, but its outputs are substrate and site-of-metabolism labels rather than product structures [23]. We use an encoder derived from Graph2SMILES and an autoregressive product-SMILES decoder for environmental prediction. Comparing this predictor with enviFormer sets graph-to-sequence against sequence-to-sequence prediction on the same environmental data.

We introduce enviGraph through three connected contributions:

  1. We connect the generation and curation of rule-derived environmental reaction examples to graph-to-sequence pretraining, fine-tuning on observed reactions and biodegradation product and pathway prediction.

  2. We construct and document a curated corpus of 776,851 canonical depth-1 parent-product pairs, including its seed sources, transformation-rule provenance and curation procedure.

  3. We compare synthetic and USPTO pretraining for enviGraph and enviFormer across BBD, Soil and Sludge in single-generation and multi-generation tasks. We also compare the predictors under the same pretraining datasets. Synthetic pretraining gives the highest BBD mean precision-recall area under the curve (PR-AUC) for both predictors; the strongest USPTO conditions lead most Soil and Sludge comparisons.

Rule execution and neural optimisation remain separate stages within the framework. Multi-generation evaluation follows the procedure used for enviFormer and established work on missing intermediates and multi-step recovery [16, 24].

References (38)