Harnessing Contextual Embeddings: A Deep Learning Framework for Predicting PCR Amplification Using BERT Tokenization
Niloofar LatifianiD, Naghme NazeriD, Amir Masoud Jafarpisheh, Babak Hossein KhalajiD
Abstract
Polymerase Chain Reaction (PCR) is a widely used molecular biology technique to amplify DNA sequences. PCR amplification is affected by factors such as binding dynamics and primer-template interactions. This study aims to reduce the time and cost of the experiment by predicting PCR outcomes based on these factors. To achieve this, we first identify the most stable binding sites for each primer-template pair by calculating the Gibbs free energy. Then, we propose a unique labelling strategy that captures primer-template interactions in the binding sites by analyzing match and mismatch positions. We categorize a set of English words into two semantically distinct groups: one for match positions and another for mismatch positions. Words within each group have a higher cosine similarity to one another than to words in the opposing group. We assign the corresponding word to each base pair based on whether it is a match or a mismatch. The labelled sequence is then tokenized with BERT, serving as input to an CNN-BiLSTM model. Achieving 84.8% accuracy, this approach outperforms prior methods and pioneers BERT-based analysis in primer-template bindings. Crucially, the model also demonstrates significantly better sensitivity, specificity, and Area Under the ROC Curve (AUC) compared to prior work, indicating a more robust capability to correctly distinguish both successful and failed PCR outcomes, which is vital for reliable experimental prediction. HighlightsO_LISelecting the most important features for PCR amplification using Random Forest Classifier C_LIO_LIProposing a new labelling approach to represent the matches and mismatches between PCR primers and templates C_LIO_LIUsing BERT tokenizer to tokenize the corresponding representation of matches and mis-matches C_LIO_LIAugmenting the data based on the semantic similarities of the words in the BERT tokenizer C_LIO_LIUsing CNN-BiLSTM to predict PCR amplification results C_LI
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 1
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Deep learning uncovers sequence-specific amplification bias in multi-template PCR
Andreas L. Gimpel, Bowen Fan, … Robert N. Grass·bioRxiv·Sep 20, 2024
- Optimizing Polymerase Chain Reaction (PCR) using Machine Learning
Nicholas J. Cordaro, Andrew J. Kavran, … Aaron J. Clauset·bioRxiv·Aug 12, 2021
- Blocking uncertain mispriming errors of PCR
Takumi Takahashi, Hiroyuki Aoyanagi, … Shoichi Toyabe·Biophysical JournalPeer-reviewed·Sep 10, 2024
- Error-suppression mechanism of PCR by blocker strands
H. Aoyanagi, S. Pigolotti, … S. Toyabe·bioRxiv·Jun 2, 2022
- ColabPCR: A validated Google Colaboratory Notebook for Reproducible and Precise Primer Design.
Mauricio J. Lozano, Dardo Dallachiesa, … Eduardo José Peña·Computational Biology and ChemistryPeer-reviewed·Mar 27, 2026
- Mathematical Modeling of PCR with Variable Concentrations of DNA and Taq Polymerase
F. Ahmad, S. Zia, … M. H. Raza·bioRxiv·Mar 16, 2023