Skip to content
naulon

No retraction, correction or concern found when last checked on Oct 16, 2026.

DeepLoc 2.0: multi-label subcellular localization prediction using protein language models

Vineet Thumuluri, José Juan Almagro Armenteros, Alexander Rosenberg Johansen and 2 more

Nucleic Acids Research · 2022 · CC BY

doi:10.1093/nar/gkac278

Abstract

The prediction of protein subcellular localization is of great relevance for proteomics research. Here, we propose an update to the popular tool DeepLoc with multi-localization prediction and improvements in both performance and interpretability. For training and validation, we curate eukaryotic and human multi-location protein datasets with stringent homology partitioning and enriched with sorting signal information compiled from the literature. We achieve state-of-the-art performance in DeepLoc 2.0 by using a pre-trained protein language model. It has the further advantage that it uses sequence input rather than relying on slower protein profiles. We provide two means of better interpretability: an attention output along the sequence and highly accurate prediction of nine different types of protein sorting signals. We find that the attention output correlates well with the position of sorting signals. The webserver is available at services.healthtech.dtu.dk/service.php?DeepLoc-2.0.

Full text

From PubMed Central, U.S. National Library of Medicine, as current on Oct 16, 2026. Paragraph numbers are ours, so an answer can point at one.

INTRODUCTION

Identifying protein localization in different cellular compartments plays a key role in functional annotation. It can also aid in identifying drug targets, and understanding diseases linked to aberrant subcellular localization. Some proteins are known to localize in multiple cellular compartments. Several biological mechanisms have been identified to explain the localization process, which involves short sequences known as sorting signals.

Several machine learning-based methods exist for predicting subcellular localization. They can vary in the output prediction, i.e. single versus multi-location, or in the input features. YLoc+ predicts multiple locations using biological features such as sorting signals, PROSITE (http://prosite.expasy.org/) patterns and optionally Gene Ontology (GO) terms from a database. Fuel-mLoc on the other hand uses only GO terms from a custom database called ProSeq-GO to predict multiple locations for a variety of organisms. DeepLoc 1.0 and LAProtT5 predict a single location based on features extracted from only the sequence (sequence profiles in the case of DeepLoc) using deep learning models.

DeepLoc 1.0 uses a three stage deep learning approach for sequence classification. First, a feature representation for each amino acid in the sequence is generated. Then an attention-based pooling stage produces a single representation for the whole sequence. Finally, the prediction stage uses a classifier to output the subcellular labels.

DeepLoc 2.0 uses the same template while updating important aspects:

Dataset: We curate large strict homology partitioned datasets of eukaryotic and human proteins for training and independent testing. We also compiled a dataset with experimentally verified annotation of nine types of sorting signals.

Feature representation: We use a pre-trained protein transformer language model.

An attention plot visualizes what part of the input the model uses for its predictions. Thus pointing to regions responsible for localization and potentially containing sorting signals. We use supervised learning with regularization to improve the interpretability of the attention plot.

Prediction stage: We predict multiple labels for both the ten class subcellular localization and nine class sorting signals tasks.

WEBSERVER

The webserver is free and open to all and there is no login requirement. It takes in a maximum of 500 input sequences in the FASTA format. The model’s attention is shown in a figure when the long result format is toggled. Regions with high attention values are used by the model for its prediction and they are indicative of the presence of sorting signals. Once the job is submitted, it enters a queue and a waiting page is shown. The users can provide an email address to be notified of the results or the page automatically redirects when the results become available. An example prediction page is shown in Figure 1. Note that our model provides an output regardless of the input sequence. However, it is very difficult for us to judge whether a prediction is sensible if it is not a eukaryotic protein. Detailed estimate of prediction times is provided in Supplementary Table S1.

DATA

We curate three datasets: two datasets with subcellular localization labels for cross-validation and independent validation, respectively, and a third dataset consisting of sorting signal labels, both the presence and location within the sequence, which is a part of the cross-validation dataset. Detailed statistics regarding the distribution of subcellular localization labels in the datasets are provided in Supplementary Figure S1 (Figure inspired by).

SwissProt localization dataset

The protein data were extracted from the UniProt database release 2021_03. The protein sequences and localization annotations were then filtered using the following criteria: eukaryotic, not fragments (these could have N-terminal or C-terminal sorting signals missing), encoded in the nucleus, >40 amino acids and experimentally annotated (ECO:0000269) subcellular localizations. These proteins can be categorized into one or multiple of these ten locations: Cytoplasm, Nucleus, Extracellular, Cell membrane, Mitochondrion, Plastid, Endoplasmic reticulum, Lysosome/Vacuole, Golgi apparatus, Peroxisome. The details of the sublocation mapping and the number of proteins in each category are provided in Supplementary Table S2. This dataset is used for 5-fold cross-validation after homology-based partitioning (Supplementary Section S1).

Human protein atlas

The Human Protein Atlas (HPA) project provides subcellular localization of human proteins using confocal microscopy. The annotations are provided with four reliability labels: Enhanced, Supported, Approved, and Uncertain, based on various criteria such as antibody validation and experimental evidence in the literature. We consider only Enhanced and Supported annotations for our independent test set since these are the most reliable labels. This dataset is ensured to not have any sequences with a >30% global sequence identity with the Swissprot Localization dataset described above and is used for independent validation.

Sorting signals

Annotated sorting signals that are experimentally verified were mainly compiled from the literature. Supplementary Table S3 is a list of signals and their sources. We excluded proteins that were not present in our constructed SwissProt Localization Dataset. This dataset is used in the cross-validation procedure.

DEEPLOC 2.0 OVERVIEW

As shown in Figure 2, the method can be broadly divided into three stages, each of which is briefly described below. More detailed information can be found in the Supplementary Section S2.

Per-token representation using a transformer model

We utilize transformer-based language models that have been successfully applied to the protein domain due to the abundance of unlabelled raw sequence data. They are trained in a self-supervised fashion on a large corpus, such as the UniRef50 database, using the masked language-modelling objective. The transformer is a deep learning method that uses multiple layers of the self-attention mechanism to produce representations that have been found to encode contact maps, taxonomy, and biophysical characteristics in their distributed representations. We evaluated three publicly available transformer models, the 12-layer ESM (Evolutionary Scale Modelling,) model with 84M parameters, the 33-layer ESM model with 650M parameters and the 3B parameter ProtT5-XL-UniRef50 model, referred to as ESM12, ESM1b and ProtT5, respectively, throughout the rest of the manuscript. The output of the language model is a vector representation for each residue (token) in the input sequence.

Sequence representation using attention pooling

The per-token representations are combined using attention: First, a scalar score is computed for each token by taking the dot-product of the representation with a learnable vector. The learnable vector is tuned using supervised learning by using both the subcellular localization labels as well as the sequence annotation of the sorting signals. We smooth the scalar scores along the sequence by applying a 1d Gaussian filter of width 5, clipped at one standard deviation, to account for signals being present in a contiguous set of residues. The attention weights over the sequence are then computed using the softmax function on the smoothed scores so that they sum to 1. The output representation is the attention weighted sum of the token representations. This attention pooled representation vector is used as input to the prediction stage. The attention weights, visualized in the webserver, and the prediction of the sorting signals provide a better understanding of the predictions of the model.

Multi-label localization and signal type prediction

The prediction stage consists of two multi-layer perceptron (MLP) classifier heads. The first head is trained along with the learnable vector from the attention step for the ten-class multi-label subcellular localization task. A second head is trained after freezing the rest of the parameters for the nine-class sorting signal prediction task. We found that optimizing for both tasks simultaneously proved to be difficult, hence we trained them one after another. These classifiers output a probability for each label. A weighted focal loss is used for each label independently and then the losses for all labels are averaged so that they are jointly optimized. A threshold for each output label is computed by maximizing Matthew’s Correlation Coefficient (MCC) on the training data. Accuracy-based metrics are susceptible to imbalance that the MCC metric can handle better. Both these predictions are provided as outputs.

RESULTS AND DISCUSSION

We chose YLoc+, DeepLoc 1.0, Fuel-mLoc, and LAProtT5 tools for comparison. These tools have public webservers or easily available local implementations. Since the outputs are different for each of the methods, we map the locations to the ten classes used in this work. We also reduce the Fuel-mLoc database by about 2% to remove close homologs to the test set for a fair comparison. The details of the mappings are provided in Supplementary Tables S4 and S5, modifications to the methods are described in the Supplementary Section S3. Additionally, in Supplementary Section S4, we provide insights from our experiments that the reader might find useful.

Multi-label classification results

On the cross-validation dataset (Table 1), DeepLoc 2.0 has the highest scores in all metrics. Details of the model performance based on the kingdom of the protein are provided in Supplementary Table S10.

From Table 2, on the independent HPA benchmark, we find that DeepLoc 2.0 outperforms other tools on several metrics except for the accuracy and MCC for nucleus which are highest for the LAProtT5 method. The MCC for endoplasmic reticulum is highest for the DeepLoc 1.0 method. DeepLoc 2.0 predicts a realistic average number of labels per protein compared to other methods. Supplementary Table S6 contains the results for all the methods and variants we benchmarked on this dataset. Supplementary Table S7 contains a threshold-independent comparison using the Area under the ROC (AUC) metric for methods which also output a prediction score.

Signal type prediction

Table 3 shows that DeepLoc 2.0 is able to distinguish between the nine signal types in most of the cases with high accuracy (79%). The worst performance is obtained for nuclear export signals. Additionally, the table shows the performances we measured on the sorting signals dataset by three specialized predictors: SignalP 6.0 for signal peptides, TargetP 2.0 for mitochondrial and plastid transit peptides, and NetGPI 1.1 for GPI anchors. Note that some of the sequences in the sorting signals dataset may have been included in the training sets of the specialized predictors, while the DeepLoc 2.0 values are cross-validated. DeepLoc 2.0 shows state-of-the-art performance in recognizing signal peptides and mitochondrial transit peptides. However, the specialized tools must be consulted in order to obtain the exact lengths of the sorting signals.

Attention-signal correlation

Table 4 demonstrates that DeepLoc 2.0’s attention is far better than that of DeepLoc 1.0 at providing insights into the sorting signals. The Kullback–Leibler (KL) divergence, a direct measure of dissimilarity between attention and signal, is lower for DeepLoc 2.0. More detailed metrics and comparisons are available for each sorting signal in the Supplementary Tables S8 and S9.

CONCLUSION

We provide a multi-label subcellular localization prediction tool, based on protein language models, that uses only the sequence information and outperforms existing methods. This is made possible by the use of a large curated dataset with annotations of multi-location proteins. Additionally, using a small dataset of sorting signals, we were able to improve the interpretability of the attention layer in our model. Thus, we can also provide the predicted signal type and important regions, which can give insights into relevant sections of the protein sequence that are responsible for particular localization. The webserver is available at https://services.healthtech.dtu.dk/service.php?DeepLoc-2.0.

DATA AVAILABILITY

The data used for training and testing are available at https://services.healthtech.dtu.dk/service.php?DeepLoc-2.0.

References 34

  1. 1.

    Rajendran L., Knölker H.-J., Simons K. Subcellular targeting strategies for drug design and delivery. Nat. Rev. Drug Discov.2010; 9:29–42.

    Not in our library10.1038/nrd2897

  2. 2.

    Schmidt V., Willnow T.E. Protein sorting gone wrong – VPS10P domain receptors in cardiovascular and metabolic diseases. Atherosclerosis. 2016; 245:194–199.

    Not in our library10.1016/j.atherosclerosis.2015.11.027

  3. 3.

    Guo Y., Sirkis D.W., Schekman R. Protein sorting at the trans-Golgi network. Ann. Rev. Cell Dev. Biol.2014; 30:169–206.

    Not in our library10.1146/annurev-cellbio-100913-013012

  4. 4.

    Delmolino L.M., Saha P., Dutta A. Multiple mechanisms regulate subcellular localization of human CDC6. J. Biol. Chem.2001; 276:26947–26954.

    Not in our library10.1074/jbc.m101870200

  5. 5.

    Millar A.H., Carrie C., Pogson B., Whelan J. Exploring the function-location nexus: using multiple lines of evidence in defining the subcellular location of plant proteins. Plant Cell. 2009; 21:1625–1631.

    Not in our library10.1105/tpc.109.066019

  6. 6.
  7. 7.

    Leslie M. Lost in translation. J. Cell Biol.2005; 170:338–338.

    Not in our library10.1083/jcb1703fta1

  8. 8.

    Kanner E.M., Friedlander M., Simon S.M. Co-translational targeting and translocation of the amino terminus of Opsin across the endoplasmic membrane requires GTP but Not ATP. J. Biol. Chem.2003; 278:7920–7926.

    Not in our library10.1074/jbc.m207462200

  9. 9.

    Wang J., Chen J., Enns C.A., Mayinger P. The first transmembrane domain of lipid phosphatase SAC1 promotes Golgi localization. PLoS ONE. 2013; 8:e71112.

    Not in our library10.1371/journal.pone.0071112

  10. 10.
  11. 11.

    Briesemeister S., Rahnenführer J., Kohlbacher O. Going from where to why—interpretable prediction of protein subcellular localization. Bioinformatics. 2010; 26:1232–1238.

    Not in our library10.1093/bioinformatics/btq115

  12. 12.

    Wan S., Mak M.-W., Kung S.-Y. FUEL-mLoc: feature-unified prediction and explanation of multi-localization of cellular proteins in multiple organisms. Bioinformatics. 2016; 33:749–750.

    Not in our library10.1093/bioinformatics/btw717

  13. 13.

    Almagro Armenteros J.J., Sønderby C.K., Sønderby S.K., Nielsen H., Winther O. DeepLoc: prediction of protein subcellular localization using deep learning. Bioinformatics. 2017; 33:3387–3395.

    Not in our library10.1093/bioinformatics/btx431

  14. 14.
  15. 15.
  16. 16.

    Thul P.J., Åkesson L., Wiking M., Mahdessian D., Geladaki A., Ait Blal H., Alm T., Asplund A., Björk L., Breckels L.M. et al. A subcellular map of the human proteome. Science. 2017; 356:eaal3321.

    Not in our library10.1126/science.aal3321

  17. 17.

    Wan S., Mak M.-W., Kung S.-Y. Sparse regressions for predicting and interpreting subcellular localization of multi-label proteins. BMC Bioinformatics. 2016; 17:97.

    Not in our library10.1186/s12859-016-0940-x

  18. 18.

    Vaswani A., Shazeer N., Parmar N., Uszkoreit J., Jones L., Gomez A.N., Kaiser L., Polosukhin I. Guyon I., Luxburg U.V., Bengio S., Wallach H., Fergus R., Vishwanathan S., Garnett R. Attention Is All You Need. Advances in Neural Information Processing Systems. 2017; 30:Curran Associates5998–6008.

    Not in our library

  19. 19.
  20. 20.

    Devlin J., Chang M.-W., Lee K., Toutanova K. BERT: pre-training of deep bidirectional transformers for language understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2019; Minneapolis, MinnesotaAssociation for Computational Linguistics4171–4186.

    Not in our library

  21. 21.

    Rives A., Meier J., Sercu T., Goyal S., Lin Z., Liu J., Guo D., Ott M., Zitnick C.L., Ma J. et al. Biological Structure and Function Emerge from Scaling Unsupervised Learning to 250 Million Protein Sequences. Proc. Nati. Acad. Sci.2021; 118:e2016239118.

    Not in our library10.1073/pnas.2016239118

  22. 22.

    Rao R., Liu J., Verkuil R., Meier J., Canny J.F., Abbeel P., Sercu T., Rives A. Meila M., Zhang T. MSA Transformer. Proceedings of the 38th International Conference on Machine Learning, PMLR. 2021; 139:8844–8856.

    Not in our library

  23. 23.

    Rao R., Meier J., Sercu T., Ovchinnikov S., Rives A. Transformer protein language models are unsupervised structure learners. 2020; bioRxiv doi:15 December 2020, preprint: not peer reviewed.

    Not in our library10.1101/2020.12.15.422761

  24. 24.

    Elnaggar A., Heinzinger M., Dallago C., Rihawi G., Wang Y., Jones L., Gibbs T., Feher T., Angerer C., Bhowmik D. et al. ProtTrans: towards cracking the language of lifes code through self-supervised deep learning and high performance computing. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2021;.

    Not in our library10.1109/tpami.2021.3095381

  25. 25.

    Vig J., Madani A., Varshney L.R., Xiong C., Socher R., Rajani N.F. BERTology meets biology: interpreting attention in protein language models. 2021; bioRxiv doi:28 March 2021, preprint: not peer reviewedhttps://arxiv.org/abs/2006.15222.

    Not in our library

  26. 26.
  27. 27.

    Martiny H.-M., Almagro Armenteros J.J., Johansen A.R., Salomon J., Nielsen H. Deep protein representations enable recombinant protein expression prediction. Comput. Biol. Chem.2021; 95:107596.

    Not in our library10.1016/j.compbiolchem.2021.107596

  28. 28.

    Bahdanau D., Cho K., Bengio Y. Bengio Y., LeCun Y. Neural machine translation by jointly learning to align and translate. 3rd International Conference on Learning Representations. 2015; San Diego, California.

    Not in our library

  29. 29.

    Lin T., Goyal P., Girshick R.B., He K., Dollár P. Focal loss for dense object detection. 2017 IEEE International Conference on Computer Vision (ICCV). 2017; 2999–3007.

    Not in our library

  30. 30.
  31. 31.

    Wan S., Mak M.-W., Kung S.-Y. mGOASVM: Multi-label protein subcellular localization based on gene ontology and support vector machines. BMC Bioinformatics. 2012; 13:290.

    Not in our library10.1186/1471-2105-13-290

  32. 32.
  33. 33.
  34. 34.

    Gíslason M.H., Nielsen H., Almagro Armenteros J.J., Johansen A.R. Prediction of GPI-anchored proteins with pointer neural networks. Curr. Res. Biotechnol.2021; 3:6–13.

    Not in our library

Cited by papers we hold 2

Reads

Read by people on this page

None yet.

Checked or read by AI through naulon

None yet.

A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.

Are you an author?

Is this your paper?

Claim it to add your note and be paid when agents cite it. Free.