TSignal: A transformer model for signal peptide prediction

Alexandru Dumitrescu, Emmi Jokinen, Juho Kellosalo, Ville O. Paavilainen, Harri Lähdesmäki

Abstract

Signal peptides are short amino acid segments present at the N-terminus of newly synthesized proteins that facilitate protein translocation into the lumen of the endoplasmic reticulum, after which they are cleaved off. Specific regions of signal peptides influence the efficiency of protein translocation, and small changes in their primary structure can abolish protein secretion altogether. The lack of conserved motifs across signal peptides, sensitivity to mutations, and variability in the length of the peptides, make signal peptide prediction a challenging task that has been extensively pursued over the years. We introduce TSignal, a deep transformer-based neural network architecture that utilizes BERT language models (LMs) and dot-product attention techniques. TSignal predicts the presence of signal peptides (SPs) and the cleavage site between the SP and the translocated mature protein. We show improved accuracy in terms of cleavage site and SP presence prediction for most of the SP types and organism groups. We further illustrate that our fully data-driven trained model identifies useful biological information on heterogeneous test sequences.

Introduction

Every protein synthesized within a cell must be directed to its correct functional location. For many proteins, this targeting is mediated by a Signal Peptide (SP) located at the N-terminus. Functioning as a biological "shipping label," the SP directs the protein to the secretory pathway, where it is eventually cleaved off by signal peptidases upon reaching its destination.

Predicting the presence and cleavage sites of these peptides is a complex task. While SPs typically share a tripartite structure—a positively charged N-region, a hydrophobic H-region, and a polar C-region—they lack strictly conserved sequence motifs. Their lengths and amino acid compositions vary significantly across different protein types and organism groups. Traditional prediction methods, such as Hidden Markov Models (HMMs), often rely on "inductive biases"—predefined biological rules that can limit the model's ability to recognize functional SPs that deviate from standard patterns.

Methodology: The TSignal Architecture

To overcome the limitations of rule-based systems, we developed TSignal, a fully data-driven transformer-based model. The architecture is designed to learn the complex "grammar" of protein sequences without being constrained by hard-coded structural rules.

The TSignal architecture integrates a pre-trained ProtBERT encoder with a three-layer transformer decoder to perform per-residue classification across various signal peptide types and organism groups.

TSignal consists of two primary components:

  1. ProtBERT Encoder: The model utilizes ProtBERT, a large-scale language model pre-trained on 216 million protein sequences. This provides the system with a deep contextual understanding of protein structures and sequences before specific SP training begins.
  2. Transformer Decoder: A three-layer decoder predicts a label for every amino acid in a sequence, choosing from eight categories. These include five distinct SP types (Sec/SPase I, II, IV, and Tat/SPase I, II) and three non-SP regions (intracellular, transmembrane, or extracellular).

Unlike previous state-of-the-art models like SignalP 6.0, TSignal does not enforce rigid structural constraints, such as requiring an SP to start at the first residue. Instead, it learns these biological patterns purely from the training data.

Experimental Setup and Datasets

The model was trained and validated on a high-quality dataset of 19,174 protein sequences curated from UniProt and Prosite. To ensure robust generalization and prevent simple sequence memorization, we employed a three-fold homology partitioning strategy. Benchmarking was conducted against a standard subset ($\mathcal{D}_B$), allowing for direct comparison with leading tools such as SignalP 6.0, DeepSig, and Phobius.

Results and Performance

TSignal demonstrated state-of-the-art performance across nearly all evaluated metrics. It achieved a weighted F1 score of 0.8127 for cleavage site (CS) prediction, surpassing SignalP 6.0’s score of 0.7976. For SP presence detection, TSignal reached a weighted Matthews Correlation Coefficient (MCC) of 0.8579, indicating high reliability in distinguishing between secretory and non-secretory proteins.

Comparative performance of TSignal against other predictors. The model shows superior or competitive MCC scores across different organism groups (eukarya, bacteria, archaea) and SP types.

A key strength of TSignal is its ability to identify "difficult" signal peptides. In tests involving functional SPs that lacked standard motifs—and were consequently missed by all other major predictors—TSignal correctly identified 50% of the cases. This suggests that the model's attention mechanism successfully captures subtle biological features, such as the "lipobox" for SPase II and the "twin-arginine" (RR) motif, without explicit instruction.

Conclusion and Future Directions

TSignal represents a significant shift toward more flexible, data-driven approaches in bioinformatics. By leveraging the power of transformer architectures and pre-trained protein language models, TSignal achieves high accuracy while maintaining the ability to generalize to non-canonical sequences. Future work will focus on refining the model as more experimentally verified data becomes available and utilizing saliency maps to help biologists discover new motifs governing protein translocation.

Summary updated

Abstract

Abstract Signal peptides are short amino acid segments present at the N-terminus of newly synthesized proteins that facilitate protein translocation into the lumen of the endoplasmic reticulum, after which they are cleaved off. Specific regions of signal peptides influence the efficiency of protein translocation, and small changes in their primary structure can abolish protein secretion altogether. The lack of conserved motifs across signal peptides, sensitivity to mutations, and variability in the length of the peptides, make signal peptide prediction a challenging task that has been extensively pursued over the years. We introduce TSignal, a deep transformer-based neural network architecture that utilizes BERT language models (LMs) and dot-product attention techniques. TSignal predicts the presence of signal peptides (SPs) and the cleavage site between the SP and the translocated mature protein. We show improved accuracy in terms of cleavage site and SP presence prediction for most of the SP types and organism groups. We further illustrate that our fully data-driven trained model identifies useful biological information on heterogeneous test sequences.
BibTeX
@article{dumitrescu2023tsignal,
  author = {Alexandru Dumitrescu and Emmi Jokinen and Juho Kellosalo and Ville O. Paavilainen and Harri Lähdesmäki},
  title = {{TSignal: A transformer model for signal peptide prediction}},
  journal = {Bioinformatics},
  year = {2023},
  doi = {10.1093/bioinformatics/btad228},
}
Figure