SINA-BERT: A pre-trained Language Model for Analysis of Medical Texts in Persian

Nasrin Taghizadeh, Ehsan Doostmohammadi, Elham Seifossadat, Hamid R. Rabiee, Maedeh-sadat TahaeiarXiv 2021

Abstract

SINA-BERT is the first specialized language model pre-trained specifically for the Persian medical domain. By training on a massive corpus of 2.8 million formal and informal medical documents, it significantly outperforms general-purpose Persian models across critical tasks like medical question classification, sentiment analysis, and document retrieval. This model addresses the unique linguistic challenges of Persian medical text, bridging the gap between technical academic language and informal patient communication.

Introduction

While the NLP community has seen a surge in domain-specific models for English, such as BioBERT and SciBERT, "under-resourced" languages like Persian have historically been underserved. General-purpose models often struggle with the dual challenge of medical text: the highly technical terminology found in journals and the messy, informal language used by patients on social media and health forums. SINA-BERT addresses this gap by providing a high-performance model and the necessary annotated datasets to evaluate medical NLP in Persian, establishing a foundation for future healthcare AI in the region.

Methodology

The researchers employed a "domain-adaptive pre-training" approach to develop SINA-BERT. Rather than training from scratch, the model was initialized with weights from ParsBERT, a state-of-the-art general Persian language model. It utilizes the standard BERT-base architecture (12 layers, 768 hidden units, 110M parameters) and was trained using the Masked Language Model (MLM) objective on a massive medical corpus.

For the complex task of question retrieval, the authors proposed novel representation methods beyond simple average pooling. Their most successful strategy, SINA-BERT_kw_rcnt, focuses on identifying keywords and feeding them into the model with their surrounding context, but then utilizing only the keyword embeddings for the final representation. This approach better captures the "meat" of a medical query compared to traditional methods.

Datasets and Resources

The study introduced several significant resources for the Persian NLP community:

  • Pre-training Corpus: A 2.8M document collection spanning medical news, journals, academic books, and informal data from Instagram, Telegram, and health forums.
  • Medical Question Classification: 4,400 annotated QA pairs categorized into specific medical specialties.
  • Medical Sentiment Analysis: 5,000 manually labeled comments from medical counseling websites categorized by satisfaction levels.
  • Question Retrieval Database: A database of 200,000 Persian medical QA pairs answered by professionals.
  • Evaluation Sets: 200 human-paraphrased questions and 1,000 "noisy" queries (with random token replacement) to test model robustness.

Key Results and Insights

SINA-BERT established new state-of-the-art benchmarks for Persian medical NLP across several dimensions. In supervised tasks like Question Classification, the model reached an accuracy of 96.14%, outperforming both multilingual and general Persian models.

Performance benchmarks for Persian medical question classification.

In unsupervised retrieval tasks, the model demonstrated superior semantic understanding. As shown in the qualitative comparison below, SINA-BERT successfully identifies highly relevant similar questions where general models often fail or return only tangentially related topics.

Comparison of medical query retrieval results between SINA-BERT and other models.

The "Supervision Gap" and Robustness

A critical insight from the research is the "Supervision Gap": the performance difference between SINA-BERT and general models was much wider in unsupervised tasks (like retrieval) than in supervised tasks (like classification). This suggests that while task-specific fine-tuning can help general models improve, domain-specific pre-training is essential for true contextual understanding in specialized fields.

Furthermore, SINA-BERT showed remarkable resilience to noise. In tests where 20% of the words in a query were replaced with random noise, SINA-BERT maintained a 97.1% retrieval accuracy (R@1), whereas general models like mBERT saw significant performance degradation.

Conclusion and Future Work

SINA-BERT represents a major advancement for Persian medical NLP, yet the field remains limited by a lack of diverse annotated data. Future research directions include expanding into Named Entity Recognition (NER) for medical entities, biological relation extraction, and applying the model to clinical notes for disease prediction and de-identification. Connecting extracted Persian medical terms to global knowledge bases through entity linking also remains a priority for future development.

Summary updated

Abstract

We have released Sina-BERT, a language model pre-trained on BERT (Devlin et al., 2018) to address the lack of a high-quality Persian language model in the medical domain. SINA-BERT utilizes pre-training on a large-scale corpus of medical contents including formal and informal texts collected from a variety of online resources in order to improve the performance on health-care related tasks. We employ SINA-BERT to complete following representative tasks: categorization of medical questions, medical sentiment analysis, and medical question retrieval. For each task, we have developed Persian annotated data sets for training and evaluation and learnt a representation for the data of each task especially complex and long medical questions. With the same architecture being used across tasks, SINA-BERT outperforms BERT-based models that were previously made available in the Persian language.
BibTeX
@misc{taghizadeh2021sina,
  author = {Nasrin Taghizadeh and Ehsan Doostmohammadi and Elham Seifossadat and Hamid R. Rabiee and Maedeh-sadat Tahaei},
  title = {{SINA-BERT: A pre-trained Language Model for Analysis of Medical Texts in Persian}},
  year = {2021},
  eprint = {2104.07613},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.07613},
}
Figure