Site-of-Metabolism Prediction with Aleatoric and Epistemic Uncertainty Quantification

Roxane Axel Jacob, Oliver Wieder, Ya Chen, Angelica Mazzolari, Andreas Bergner, Klaus-Jürgen Schleifer, Johannes KirchmairJournal of Chemical Information and Modeling 2025

TL;DR

This paper introduces "aweSOM," a novel graph neural network (GNN) model for predicting sites of metabolism (SOMs) in xenobiotics. Crucially, aweSOM quantifies prediction uncertainty by decomposing it into aleatoric (data noise) and epistemic (model knowledge) components, offering deeper insights into model reliability and error sources.

What Problem Does This Paper Address?

Predicting where a molecule will be metabolized (the "site of metabolism" or SOM) is critical for drug discovery and development. It helps optimize drug efficacy and safety by understanding how a drug might be broken down in the body. While many computational models exist for SOM prediction, they often provide point predictions without indicating how confident they are. This lack of uncertainty information limits their practical utility, making it hard to trust predictions, especially for novel or complex molecules. Furthermore, existing models struggle to distinguish why a prediction might be uncertain – is it due to inherent noise in the experimental data, or because the model simply hasn't seen enough similar examples to be confident? This paper aims to address this by developing a SOM prediction model that not only predicts SOMs but also quantifies and decomposes the uncertainty associated with these predictions.

Methods

The core of this work is the development of aweSOM, a graph neural network (GNN) model. GNNs are well-suited for molecular data as they can directly process the graph structure of molecules (atoms as nodes, bonds as edges). aweSOM builds upon existing GNN architectures by incorporating a deep ensemble approach. This involves training multiple GNN models with the same architecture but different random initializations.

The key innovation lies in how aweSOM leverages these ensembles to quantify uncertainty:

  • Total Uncertainty: Measured by the entropy of the averaged predictions from all models in the ensemble.
  • Aleatoric Uncertainty: Estimated by averaging the entropy of each individual model's prediction distribution. This captures uncertainty arising from inherent noise or variability in the data itself.
  • Epistemic Uncertainty: Calculated as the difference between total and aleatoric uncertainty. This reflects uncertainty due to a lack of knowledge or insufficient training data for certain types of molecules or structural motifs.

This decomposition allows users to understand why a prediction is uncertain, guiding further investigation or data collection.

Datasets

The primary dataset used for training and evaluation is the MetaQSAR database. This database contains 2,825 parent compounds with 6,320 expert-curated SOMs for phase I and phase II metabolism. The authors used a preprocessed version, splitting it into a training set of 1,971 compounds and a test set of 360 compounds. They also created synthetic datasets for controlled experiments:

  • A "halogen-agnostic" model trained on data excluding halogen-containing molecules.
  • A "noise-injected" model where artificial label noise was introduced by mislabeling some halogen-containing molecules.

Key Insights and Ideas

  • Uncertainty Decomposition is Crucial: Simply knowing a prediction is uncertain isn't as useful as knowing why. Distinguishing between aleatoric (data noise) and epistemic (model knowledge) uncertainty provides actionable insights.
  • Epistemic Uncertainty Signals Data Gaps: High epistemic uncertainty strongly suggests that the model lacks sufficient training data for similar chemical structures or reaction types. This is a direct indicator for where more experimental data is needed.
  • Aleatoric Uncertainty Reflects Data Quality: High aleatoric uncertainty, especially in the context of experimentally derived data, points to issues with data consistency, experimental variability, or inherent ambiguity in SOM annotations.
  • Halogen Atoms as a Test Case: Using halogen atoms in controlled experiments effectively demonstrated how missing data (leading to high epistemic uncertainty) and noisy labels (leading to high aleatoric uncertainty) impact model predictions and uncertainty estimates.
  • Experimental Data Favors Aleatoric Uncertainty: For datasets derived from experimental observations (like MetaQSAR), aleatoric uncertainty tends to be the dominant source of total uncertainty, highlighting the importance of data curation and standardization.

Key Results

  • Comparable Performance: aweSOM achieved classification and ranking performance comparable to the state-of-the-art FAME3R model, with nearly identical metrics (e.g., MCC, PR-AUC, TOP-2 success rate) on the test set.
  • Correlation Between Uncertainty and Accuracy: The study confirmed a strong negative correlation between uncertainty scores (both aleatoric and epistemic) and predictive accuracy, as measured by the Brier score. Atoms with lower uncertainty were more likely to be correctly predicted.
  • Controlled Experiments:
    • The "halogen-agnostic" model showed increased epistemic uncertainty for halogen atoms, indicating the model's reduced confidence due to missing training examples.
  • The "noise-injected" model demonstrated a significant increase in aleatoric uncertainty for halogen atoms, highlighting the model's sensitivity to label noise.
  • Case Studies: Analysis of specific molecules (abemaciclib, etrasimod, PCB 30) illustrated how aweSOM's uncertainty scores can pinpoint unreliable predictions, suggest areas for experimental follow-up, and highlight challenges in data annotation. For instance, a missed SOM for abemaciclib had a total uncertainty of 1.00, with high epistemic uncertainty indicating a lack of similar training data.

Limitations and Future Work

  • Thresholds are Data-Dependent: The proposed thresholds for interpreting epistemic (<0.10) and aleatoric (<0.70) uncertainty are based on the MetaQSAR dataset and may need adjustment for different datasets or applications.
  • Computational Cost: Deep ensembles, while powerful for uncertainty quantification, can be computationally more expensive than single models.
  • Future Work: The authors suggest expanding training data to include underrepresented chemical spaces and reaction types to reduce epistemic uncertainty. They also emphasize the need for improved data curation and standardization to reduce aleatoric uncertainty. Further work could explore more sophisticated uncertainty quantification techniques and their application to other areas of cheminformatics.

Summary updated

BibTeX
@article{jacob2025site,
  author = {Roxane Axel Jacob and Oliver Wieder and Ya Chen and Angelica Mazzolari and Andreas Bergner and Klaus-Jürgen Schleifer and Johannes Kirchmair},
  title = {{Site-of-Metabolism Prediction with Aleatoric and Epistemic Uncertainty Quantification}},
  journal = {Journal of Chemical Information and Modeling},
  year = {2025},
  doi = {10.1021/acs.jcim.5c00762},
}
Figure