journal article·2025-09-16Open access

A Knowledge-Based Bidirectional Encoder Representation from Transformers to Predict a Paratope Position from a B Cell Receptor’s Amino Acid Sequence Alone

Hyuntae Park, Kwang-Sig Lee

Applied Sciences· Volume 15· Issue 18

Abstract

Antibody function is an important topic for the understanding of disease, but it would be quite challenging to make an accurate prediction of a paratope position from very limited information such as a B cell receptor’s (BCR’s) amino acid sequence alone. In this context, this study presents a knowledge-based Bidirectional Encoder Representation from Transformers (K-BERT) to deliver a precise prediction of a paratope position from a B cell receptor’s amino acid sequence alone. Here, the knowledge context of an amino acid consisted of its predecessor amino acids. These knowledge contexts were either common among all amino acids within each BCR chain or different for different amino acids within each BCR chain. Also, oversampling was employed given that the original data of 20,679 cases (900 BCR chains) were characterized by class imbalance, i.e., 18,724:1955 for labels 0:1. The performance measures in terms of sensitivity and F1 registered great improvements as different knowledge contexts and oversampling were introduced. The accuracy, sensitivity, specificity and F1 of a baseline model (with common knowledge and no oversampling) were 90.3, 0.0, 100.0 and 50.0, respectively. On the other hand, the corresponding accuracy, sensitivity, specificity and F1 of the final model (with different knowledge and strong oversampling) were 83.2, 90.1, 78.1 and 84.1. The final model demonstrated better sensitivity and F1 outcomes compared to the baseline model, i.e., 90.1 vs. 0.0 for sensitivity, 84.1 vs. 50.0 for F1. In conclusion, the K-BERT is an effective decision support system to predict a paratope position from a B cell receptor’s amino acid sequence alone. It has great potential for antibody therapeutics.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Monoclonal and Polyclonal Antibodies Research · Glycosylation and Glycoproteins Research · vaccines and immunoinformatics approaches

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Obstetrics and Gynecology, Korea University College of Medicine, Seoul 02841, Republic of Korea

AI Center, Korea University College of Medicine, Seoul 02841, Republic of Korea

Funding

Korea Health Industry Development Institute · Korea University · the Korea Health Industry Development Institute grant · the Patient-Centered Clinical Research Coordinating Center grant · the Ministry of Health and Welfare of South Korea

References (43)

Show source-provided references
1. B cell development pathways10.1146/annurev.immunol.19.1.595 ↗
2. Mechanisms of B-cell lymphoma pathogenesis10.1038/nrc1589 ↗
4. B-cell receptor: From resting state to activate10.1111/j.1365-2567.2012.03564.x ↗
5. TLR signaling in B-cell development and activation10.1038/cmi.2012.61 ↗
6. Altered B cell signalling in autoimmunity10.1038/nri.2017.24 ↗
7. Targeting B cell receptor signalling in cancer: Preclinical and clinical advances10.1038/nrc.2017.121 ↗
8. B cell receptor signaling10.1007/978-981-15-3532-1_2 ↗
9. Tkachenko, A., Kupcova, K., and Havranek, O. (2023). B-cell receptor signaling and beyond: The role of Igalpha (CD79a)/Igbeta (CD79b) in normal and malignant B cells. Int. J. Mol. Sci., 25.10.3390/ijms25010010 ↗
10. Yuuki, H., Itamiya, T., Nagafuchi, Y., Ota, M., and Fujio, K. (2024). B cell receptor repertoire abnormalities in autoimmune disease. Front. Immunol., 15.10.3389/fimmu.2024.1326823 ↗
11. Lee, K.S., and Kim, E.S. (2024). Generative artificial intelligence in the early diagnosis of gastrointestinal disease. Appl. Sci., 14.10.3390/app142311219 ↗
12. Generative adversarial networks10.1145/3422622 ↗
13. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention is all you need. arXiv.
14. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2018). BERT, Pre-training of deep bidirectional transformers for language understanding. arXiv.
15. OpenAI (2023). GPT-4 technical report. arXiv.
16. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020). An image is worth 16 x 16 words: Transformers for image recognition at scale. arXiv.
17. Dewaker, V., Morya, V.K., Kim, Y.H., Park, S.T., Kim, H.S., and Koh, Y.H. (2025). Revolutionizing oncology: The role of Artificial Intelligence (AI) as an antibody design, and optimization tools. Biomark. Res., 13.10.1186/s40364-025-00764-4 ↗
18. Ruffolo, J.A., Gray, J.J., and Sulam, J. (2021). Deciphering antibody affinity maturation with language models and weakly supervised learning. arXiv.
19. Kenlay, H., Dreyer, F.A., Kovaltsuk, A., Miketa, D., Pires, D., and Deane, C.M. (2024). Large scale paired antibody language models. arXiv.10.1371/journal.pcbi.1012646 ↗
20. Reprogramming pretrained language models for antibody sequence infilling
21. Hadsund, J.T., Satława, T., Janusz, B., Shan, L., Zhou, L., Röttger, R., and Krawczyk, K. (2024). nanoBERT: A deep learning model for gene agnostic navigation of the nanobody mutational space. Bioinform. Adv., 4.10.1093/bioadv/vbae033 ↗
22. ProtTrans: Towards cracking the language of life’s code through self-supervised learning10.1109/TPAMI.2021.3095381 ↗
23. Deciphering the language of antibodies using self-supervised learning10.1016/j.patter.2022.100513 ↗
24. Learning the high-dimensional immunogenomic features that predict public and private antibody repertoires10.4049/jimmunol.1700594 ↗
25. Petroni, F., Rocktäschel, T., Lewis, P., and Bakhtin, A. (2019). Language models as knowledge bases?. arXiv.10.18653/v1/D19-1250 ↗
26. Safavi, T., and Koutra, D. (2021). Relational world knowledge representation in contextual language models: A review. arXiv.10.18653/v1/2021.emnlp-main.81 ↗
27. Yu, W., Iter, D., Wang, S., Xu, Y., Ju, M., Sanyal, S., Zhu, C., Zeng, M., and Jiang, M. (2022). Generate rather than retrieve: Large language models are strong context generators. arXiv.
28. Large language models encode clinical knowledge10.1038/s41586-023-06291-2 ↗
29. Ju, T., Sun, W., Du, W., Yuan, X., Ren, Z., and Liu, G. (2024). How large language models encode context knowledge? A layer-wise probing study. arXiv.
30. Karim, M.R., Islam, T., Shajalal, M., Beyan, O., Lange, C., Cochez, M., Rebholz-Schuhmann, D., and Decker, S. (2023). Explainable AI for bioinformatics: Methods, tools and applications. Brief. Bioinform., 24.10.1093/bib/bbad236 ↗
31. Artificial Intelligence in Genetics
32. Claverie, J.M., and Cedric Notredame, C. (2007). Bioinformatics for Dummies, Wiley. [2nd ed.].
33. Pevsner, J. (2015). Bioinformatics and Functional Genomics, Wiley. [3rd ed.].
34. European Molecular Biology Laboratory-European Bioinformatics Institute (2025, June 01). UniProt. Available online: https://www.uniprot.org/.
35. Weizmann Institute of Science (2025, June 01). GeneCards. Available online: https://www.genecards.org/.
36. National Center for Biotechnology Information (2025, June 01). GenBank, Available online: https://www.ncbi.nlm.nih.gov/genbank/about/.
37. Li, D., Pucci, F., and Rooman, M. (2024). Prediction of paratope-epitope pairs using convolutional neural networks. Int. J. Mol. Sci., 25.10.3390/ijms25105434 ↗
38. Mastering the game of Go with deep neural networks and tree search10.1038/nature16961 ↗
39. Hambly, B., Xu, R., and Yang, H. (2022). Recent advances in reinforcement learning in finance. arXiv.10.2139/ssrn.3971071 ↗
40. Yu, C., Liu, J., and Nemati, S. (2020). Reinforcement learning in healthcare: A survey. arXiv.
41. Dognin, P., Padhi, I., Melnyk, I., and Das, P. (2021, January 7–11). ReGen: Reinforcement learning for text and knowledge base generation using pretrained language models. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, Punta Cana, Dominican Republic.10.18653/v1/2021.emnlp-main.83 ↗
42. Pang, J.C., Yang, S.H., Li, K., Zhang, J., Chen, X.H., Tang, N., and Yu, Y. (2024). Knowledgeable agents by offline reinforcement learning from large language model rollouts. arXiv.
43. Wang, Y., Yang, Q., Zeng, Z., Ren, L., Liu, L., Peng, B., Cheng, H., He, X., Wang, K., and Gao, J. (2025). Reinforcement learning for reasoning in large language models with one training example. arXiv.