Machine learning prediction of enzyme optimum pH

Japheth E. Gado, Matthew W. Knotts, Ada Y. Shaw, Debora S. Marks, Nicholas P. Gauthier, Chris Sander, Gregg T. BeckhambioRxiv 2023

Abstract: The relationship between pH and enzyme catalytic activity, especially the optimal pH ($pH_{opt}$) at which enzymes function, is critical for biotechnological applications. Hence, computational methods to predict $pH_{opt}$ will enhance enzyme discovery and design by facilitating accurate identification of enzymes that function optimally at specific pH levels, and by elucidating sequence-function relationships. In this study, we proposed and evaluated various machine-learning methods for predicting $pH_{opt}$, conducting extensive hyperparameter optimization, and training over 11,000 model instances. Our results demonstrate that models utilizing language model embeddings markedly outperform other methods in predicting $pH_{opt}$. We present EpHod, the best-performing model, to predict $pH_{opt}$, making it publicly available to researchers. From sequence data, EpHod directly learns structural and biophysical features that relate to $pH_{opt}$, including proximity of residues to the catalytic center and the accessibility of solvent molecules. Overall, EpHod presents a promising advancement in $pH_{opt}$ prediction and will potentially speed up the development of enzyme technologies.

The Challenge of pH Optimization

Enzymes are essential for biotechnology, but their activity is highly sensitive to pH. While most enzymes function best near a neutral pH of 7.0, industrial processes often require "extremozymes" that can withstand highly acidic or alkaline conditions.

Traditionally, finding or engineering these enzymes involves laborious experimental screening or biophysical simulations that require high-resolution 3D structures—which are often unavailable. There is a massive gap between the billions of known protein sequences and the tiny fraction with characterized pH profiles. EpHod aims to bridge this gap with a sequence-only predictive model capable of screening vast metagenomic databases.

Methodology: EpHod Architecture

The researchers evaluated over 4,000 model variations, ultimately developing EpHod. This model utilizes "embeddings" from a pre-trained protein language model (ESM-1v), which capture complex evolutionary and structural information from amino acid sequences.

EpHod's architecture features a Residual Light Attention (RLAT) top model. To boost performance, the authors employed transfer learning: they first pre-trained the model on a massive dataset of environmental pH values ($pH_{env}$) before fine-tuning it on high-quality experimental $pH_{opt}$ data. This approach allows the model to learn general protein-environment relationships before specializing in catalytic optima.

Overview of the EpHod training pipeline, including feature representation, model selection, and reweighting strategies.

Data Strategy and Bias Mitigation

The model was trained using two primary datasets:

  • $pH_{opt}$ Dataset: 9,855 enzymes from the BRENDA database with experimentally determined optimal pH values.
  • $pH_{env}$ Dataset: 1.9 million secreted bacterial proteins mapped to the optimal growth pH of their source organisms. This larger dataset was used for pre-training, exploiting the biological link between an organism's environment and the enzymes it secretes.

A significant challenge in $pH_{opt}$ prediction is the heavy bias toward neutral values in existing databases. To prevent the model from simply "guessing 7," the authors used Label Distribution Smoothing (LDS) and reweighting techniques. This drastically improved accuracy for rare acidic and alkaline enzymes by adjusting the loss function to account for data density.

Distributions of enzyme activity (EC number), sequence length, and environmental pH data used for transfer learning.

Key Results and Insights

  • Superior Accuracy: EpHod achieved a Root Mean Squared Error (RMSE) of 1.27 pH units and an $R^2$ of 0.68 on a uniformly distributed test set, significantly outperforming traditional machine learning and biophysical methods.
  • Structural Awareness: Remarkably, without ever seeing a 3D structure, EpHod's attention mechanism learned to focus on residues near the catalytic center and on the protein surface—areas critical for pH-dependent function.
  • Generalization: The model maintained robust performance across all seven major enzyme classes (EC numbers) and even on sequences with very low similarity to the training set.

Conclusion

EpHod represents a major step forward in enzyme discovery and engineering. By providing a powerful tool for high-throughput sequence-based prediction, it enables researchers to identify and design enzymes tailored for specific industrial environments, potentially accelerating the development of sustainable biotechnologies.

Summary updated

BibTeX
@misc{gado2023machine,
  author = {Japheth E. Gado and Matthew W. Knotts and Ada Y. Shaw and Debora S. Marks and Nicholas P. Gauthier and Chris Sander and Gregg T. Beckham},
  title = {{Machine learning prediction of enzyme optimum pH}},
  year = {2023},
  doi = {10.1101/2023.06.22.544776},
  howpublished = {bioRxiv},
}
Figure