Enzyme Classification via Semi-Supervised Functional Residue Learning

Chengyue Gong, Daiheng Zhang, Jeffrey Ouyang-Zhang, Qiang Liu, Adam R. Klivans, Daniel J. DiazbioRxiv 2026

Abstract

Predicting enzymatic function from protein sequences is a fundamental task in protein discovery and engineering. We present Semi-supervised Learning for Enzyme Classification (SLEEC), a framework that learns function-aware protein representations for Enzyme Commission (EC) number prediction. SLEEC achieves state-of-the-art (SOTA) performance on standard benchmarks and provides interpretable, residue-level annotations. We demonstrate that our framework is robust to benign sequence modifications—such as appending functional tags—a property current machine learning frameworks lack. Our main technical contribution is a multiple sequence alignment (MSA)-based data augmentation technique for discovering sparse residue activations within enzyme sequences.

Introduction

While hundreds of thousands of new proteins are sequenced daily, only about 0.2% have experimentally characterized functions. Computational biologists use machine learning models to predict EC numbers directly from sequences to bridge this gap. However, current SOTA models like CLEAN lack robustness to routine sequence modifications. In protein engineering, scientists frequently append functional tags (e.g., Halo-tags) for expression or localization. These tags do not change the enzyme's core catalytic function, but they confuse existing models that weight the entire sequence uniformly. Furthermore, training models to focus on "functional residues" (active sites) is difficult due to the scarcity of labeled active-site data.

Methods: The SLEEC Framework

SLEEC addresses these challenges through a two-stage pipeline that learns a function-aware protein representation.

The SLEEC architecture: a two-stage pipeline that predicts functional residues and uses them to weight sequence embeddings for final EC classification.

Stage 1: Functional Residue Classification

We train a binary classifier to predict whether a specific amino acid is functional. To overcome the scarcity of labeled data from the Mechanism and Catalytic Site Atlas (mCSA), we use a semi-supervised approach. We generate "pseudo-labels" from Multiple Sequence Alignments (MSAs) using CATH v4.3. By calculating the entropy of positions across an MSA, we identify highly conserved positions (the lowest 10% entropy) as functionally critical. A confidence-aware loss function is used to mitigate noise from these pseudo-labels.

Stage 2: EC Number Classification

Instead of standard average pooling, SLEEC uses the Stage 1 classifier to filter and weight the sequence. It pools only the embeddings of predicted functional residues—extracted via an ESM2 protein language model—to create a fixed-length representation. This representation is then decoded into an EC number prediction using a Multi-Layer Perceptron (MLP).

Results and Benchmarking

SLEEC was evaluated against several standard benchmarks, including New-392, Price-149, and ProteInfer.

  • SOTA Performance: On the New-392 benchmark, SLEEC achieved an F1 score of 0.644, a ~30% improvement over the previous SOTA, CLEAN (0.497). On Price-149, it improved F1 by 6% (0.525 vs 0.494).
  • Extreme Robustness: When appending a 297-amino-acid Halo-Tag to test sequences, CLEAN's performance plummeted by 39% on New-392 and 62% on Price-149. In contrast, SLEEC's performance dropped by a mere 4%, proving its function-aware pooling effectively ignores irrelevant sequence regions.
  • Generalization: On the ProteInfer benchmark, SLEEC outperformed CLEAN in both EC prediction (0.95 vs 0.92 F1) and Gene Ontology (GO) term classification (0.86 vs 0.80 F1).

Key Insights

The success of SLEEC rests on three core principles:

  1. Sparse Activation: Enzyme function is driven by a sparse set of residues. By forcing the model to pool representations only from these sites, it becomes immune to background noise.
  2. Evolutionary Priors: Evolution is a powerful unsupervised labeler. Using MSA entropy as a proxy for functional importance effectively bootstraps training data for residue-level classifiers.
  3. Pooling Strategy: Representation quality often matters more than parameter count. Even with a smaller ESM2-35M backbone, SLEEC's targeted pooling outperforms larger models using global pooling.
Visualization of sparse residue activations across multiple sequences, highlighting the model's ability to isolate functional sites from background sequence.

Discussion and Future Work

While SLEEC sets a new standard for robustness and accuracy, it is currently restricted to substrates with defined EC numbers. Future work will explore sparse fine-tuning of backbone weights and extending the framework to predict reactions lacking formal EC numbers or enzymes with promiscuous catalytic activity.

Summary updated

BibTeX
@misc{gong2026enzyme,
  author = {Chengyue Gong and Daiheng Zhang and Jeffrey Ouyang-Zhang and Qiang Liu and Adam R. Klivans and Daniel J. Diaz},
  title = {{Enzyme Classification via Semi-Supervised Functional Residue Learning}},
  year = {2026},
  doi = {10.64898/2026.02.11.705200},
  howpublished = {bioRxiv},
}
Figure