bioRxiv Science⌕ Search

bioRxiv · 10.1101/2024.08.23.609306

Protein sequence classification using natural language processing techniques

Abstract

Proteins are essential to numerous biological functions, with their sequences determining their roles within organisms. Traditional methods for determining protein function are time-consuming and labor-intensive. This study addresses the increasing demand for precise, effective, and automated protein sequence classification methods by employing natural language processing (NLP) techniques on a dataset comprising 75 target protein classes. We explored various machine learning and deep learning models, including K-Nearest Neighbors (KNN), Multinomial Naive Bayes, Logistic Regression, Multi-Layer Perceptron (MLP), Decision Tree, Random Forest, XGBoost, Voting and Stacking classifiers, Convolutional Neural Network (CNN), Long Short-Term Memory (LSTM), and transformer models (BertForSequenceClassification, DistilBERT, and ProtBert). Experiments were conducted using amino acid ranges of 1-4 grams for machine learning models and different sequence lengths for CNN and LSTM models. The KNN algorithm performed best on tri-gram data with 70.0% accuracy and a macro F1 score of 63.0%. The Voting classifier achieved best performance with 74.0% accuracy and an F1 score of 65.0%, while the Stacking classifier reached 75.0% accuracy and an F1 score of 64.0%. ProtBert demonstrated the highest performance among transformer models, with a accuracy 76.0% and F1 score 61.0% which is same for all three transformer models. Advanced NLP techniques, particularly ensemble methods and transformer models, show great potential in protein classification. Our results demonstrate that ensemble methods, particularly Voting Soft classifiers, achieved superior results, highlighting the importance of sufficient training data and addressing sequence similarity across different classes. Author summaryProteins are vital to numerous biological functions, with their sequences determining their roles within organisms. Traditional methods of protein function determination are time-consuming. This study proposes a system utilizing machine learning, deep learning, and natural language processing (NLP) techniques for protein sequence classification. We explore various models, including K-Nearest Neighbors, Multinomial Naive Bayes, Logistic Regression, Multilayer Perceptron, Decision Tree Classifier, Random Forest Classifier, XGBoost, ensemble methods (Voting and Stacking classifier), LSTM, CNN, and transformer models (BertForSequenceClassification, DistilBERT, ProtBert). Our results demonstrate that ensemble methods, particularly Voting Soft classifiers, achieve superior performance, highlighting the potential of advanced NLP techniques in protein classification.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Perveen, H., Weeds, J.. 2024-08-23. Protein sequence classification using natural language processing techniques. https://doi.org/10.1101/2024.08.23.609306

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Inferring cascade drivers of VEXAS syndrome by a causal machine learning tool CauNagi

VEXAS syndrome is an adult-onset severe autoinflammatory disease caused by somatic mutations in UBA1, yet the cascade mechanisms linking primitive hematopoietic abnormalities to mature myeloid dysfunctions remain largely unknown. Identifying master regulators of a progressive disease, a black-box process, from complex transcriptomic data also remains challenging. To address this challenge, we developed CauNagi, a computational framework for prioritizing cascade candidate regulators (CCRs). CauNagi integrates a causal representation learning module derived from CausCell with an iterative deep learning backbone adapted from UNAGI; in addition, CauNagi extends these two components with a unique downstream module for CCRs analysis designed to characterize regulatory propagation across hierarchical cellular states. Mechanistically, CauNagi iteratively integrates causal disentangled representation learning with (1) disease-stage cell-state trajectory reconstruction and (2) dynamic regulatory analysis. Benchmarking on single-cell transcriptomic datasets showed that CauNagi preserved cell-type structure in idiopathic pulmonary fibrosis (IPF) and enriched known acute myeloid leukemia(AML)-associated genes among its top-ranked global regulators. When applied to VEXAS syndrome, CauNagi readily revealed inflammatory responses, endoplasmic reticulum stress, and myeloid bias, consistent with the disease features. Furthermore, the CCRs analysis module of CauNagi assisted us in identifying 36 causal drivers, with SPI1, NFKB1, STAT3, and FOS prioritized as high-confidence regulatory hubs linking aberrant myeloid differentiation and inflammatory programs. These findings were further supported by an independent single-cell transcriptomic dataset from a murine VEXAS model. Overall, CauNagi provides a computationally efficient and systematic framework for identifying candidate causal regulators. Beyond hematopoietic diseases, CauNagi may also be applicable to other progressive disorders for which multistage single-cell transcriptomic datasets are available. CauNagi is available at https://github.com/steamed-stuffed-bun/CauNagi.

bioinformatics↗

Inferential boundaries of age prediction: why prediction does not establish biological age measurement

Chronological-age clocks reconstruct age from biological measurements, yet their outputs are interpreted as biological age, gaps as ageing acceleration and intervention-associated decreases as rejuvenation. We show that age supervision identifies an age-task statistic, not a biological-age construct, and establish how this distinction changes biomarker construction and validation. Even at the population optimum, the same observable distribution and age-prediction performance admit incompatible biological-age interpretations. Resolving this ambiguity requires assumptions or evidence beyond the age task. Squared-error age loss penalizes within-age output dispersion without defining its biological direction. Given age and background, a gap re-expresses the compressed score; exact age recovery eliminates it even when heterogeneity remains in the measurements. Shared biological covariance permits genuine prognostic value without establishing construct identity. After allogeneic haematopoietic stem-cell transplantation, recipient-blood scores showed excess donor-lineage affiliation under a score-pairing null. In NHANES, age-trained scores improved held-out five-year mortality prediction beyond age and background, yet direct modelling of source measurements and mortality supervision at matched scalar capacity yielded further gains. The intended biological object must therefore guide study design, measurement selection and representation; validation must establish the claimed measurement relation rather than rely on age-prediction success alone.

bioinformatics↗

DisenTE: Sparse Pattern-Context Modeling for Interpretable Translation-Efficiency Matrix Completion

Partially observed object-by-context matrices arise across data-rich science, where dominant object effects can obscure smaller but informative context-dependent variation. We study this problem in a translation-efficiency atlas of 9,494 5' UTRs across 78 cellular and tissue contexts. We present DisenTE, a sequence-conditioned neural model that combines separate sequence and context branches with a sparse low-rank pattern-context channel. Each module pairs a sequence-derived activation with context-specific deployment weights, forming a dictionary whose sequence and context components can be examined separately. Under five-fold within-panel entry masking, DisenTE achieves a UTR-centered residual Spearman correlation of 0.641 +/- 0.005, compared with 0.304 +/- 0.003 for the strongest reference model. The learned dictionary retains 11 of 20 candidate modules. CTM 6 has the largest overlap with an external TOP set and a cap-proximal pyrimidine pattern; CTMs 5 and 7 also overlap the set but have purine-containing consensuses. The evidence supports CTM 6 as a TOP sequence anchor and CTMs 5 and 7 as TOP-set-associated factors. On this dataset, DisenTE improves completion over the evaluated references and provides module-level summaries of its fitted context-dependent variation.

bioinformatics↗