TEMPROT: protein function annotation using transformers embeddings and homology search

Gabriel Bianchin de Oliveira, Hélio Pedrini, Zanoni DiasBMC Bioinformatics 2023

Introduction

Determining protein function is a cornerstone of modern biology, yet the pace of laboratory-based functional annotation lags significantly behind the rapid growth of genomic sequencing. To address this, computational methods have emerged, primarily falling into two categories: homology-based searches (e.g., BLASTp) and machine learning-based pattern recognition. However, deep learning models often struggle with long protein sequences and data leakage issues.

In a study published in BMC Bioinformatics, researchers introduced TEMPROT, a framework that integrates Transformer-based protein embeddings with traditional homology search to achieve high-accuracy protein function prediction.

The Challenge of Functional Annotation

The primary obstacle in computational annotation is the "hard ceiling" on sequence length imposed by many deep learning architectures, typically limited to 512 or 1024 amino acids due to memory constraints. Additionally, many evaluation datasets suffer from data leakage, where high sequence similarity between training and test sets leads to over-optimistic performance metrics.

Methodology: The TEMPROT Framework

TEMPROT addresses these challenges through a multi-faceted approach involving advanced embedding extraction and an ensemble strategy.

Transformer Backbone and Sliding Window

The core of TEMPROT is ProtBERT-BFD, a Transformer model pre-trained on a massive corpus of protein sequences. To handle sequences of arbitrary length, the authors implemented a sliding window approach.

Sliding window mechanism for sequence processing

As shown in the figure above, the sequence is processed in segments. Specifically, TEMPROT uses a window of 500 amino acids with overlapping slices to ensure contextual continuity across boundaries.

Meta-classification and Data Augmentation

Instead of simple pooling, TEMPROT employs a meta-classifier to aggregate information from different sequence slices.

The TEMPROT architecture featuring ProtBERT-BFD and a meta-classifier

The architecture (illustrated above) extracts embeddings from the [CLS] token of each slice. These embeddings are then combined and fed into a multi-layer perceptron (the meta-classifier) for final prediction. To further enhance robustness, the authors introduced an evolutionary-based data augmentation strategy using the PAM1 matrix, creating "artificial" proteins that mimic natural evolutionary mutations.

The Ensemble: TEMPROT+

The enhanced version, TEMPROT+, combines the Transformer's deep learning predictions with traditional BLASTp homology search results using a weighted linear combination. This hybrid approach leverages both the "grammar" learned by the Transformer and the explicit evolutionary relationships captured by homology.

Key Results and Performance

The framework was evaluated using a cleaned version of the CAFA3 dataset, focusing on three Gene Ontology (GO) domains: Biological Process (BP), Cellular Component (CC), and Molecular Function (MF).

  • State-of-the-Art Accuracy: TEMPROT+ achieved top $F_{max}$ scores in the Cellular Component (0.692) and Molecular Function (0.662) categories, outperforming established models like DeepGOPlus.
  • Predicting Rare Terms: A significant strength of TEMPROT+ is its ability to identify "rare" functional terms—annotations that appear infrequently in training data and are typically difficult for machine learning models to capture.
  • Length Independence: The sliding window approach successfully allowed the model to process proteins of any length without the information loss associated with truncation.

Conclusion and Future Directions

TEMPROT demonstrates that combining modern language models with classical evolutionary biology tools provides a powerful path forward for bioinformatics. While it excels in CC and MF ontologies, the authors noted that the Biological Process (BP) domain remains a challenge due to its inherent complexity. Future work aims to incorporate structural data and protein-protein interaction networks to further bridge this gap.

Summary updated

BibTeX
@article{oliveira2023temprot,
  author = {Gabriel Bianchin de Oliveira and Hélio Pedrini and Zanoni Dias},
  title = {{TEMPROT: protein function annotation using transformers embeddings and homology search}},
  journal = {BMC Bioinformatics},
  year = {2023},
  doi = {10.1186/s12859-023-05375-0},
}
Figure