Domain specific BERT representation for Named Entity Recognition of lab protocol

Tejas Vaidhya, Ayush Kaushal

Abstract

Extracting structured information from wet lab protocols is challenging due to the dense technical jargon and instructional nature of the text. This paper evaluates the performance of domain-specific BERT models, such as BioBERT and SciBERT, for Named Entity Recognition (NER) on the Wet Lab Protocols (WLP) dataset. Our results show that models pre-trained on biomedical literature significantly outperform general-purpose models. Specifically, the biobert_v1.1_pubmed model achieved an F1-score of 79.10, ranking highly in the WNUT 2020 Shared Task. We also identify subword tokenization as a primary bottleneck for processing complex scientific terms and suggest future directions for domain-specific tokenization.

Introduction

Scientific lab protocols serve as the "recipes" for experimental research, containing critical information about reagents, quantities, and procedural steps. Despite their importance, these documents are difficult for standard Natural Language Processing (NLP) systems to parse. General-purpose models like the original BERT are trained on broad corpora such as Wikipedia and BooksCorpus, leaving them ill-equipped to handle specialized terms like "acetyltransferase" or "ddH2O." This study investigates whether transfer learning with domain-specific BERT representations can bridge this gap.

Methodology

The authors employed a transfer learning framework where a pre-trained transformer model is augmented with a linear classification layer. The pipeline involves sub-word tokenization, encoding via a domain-specific BERT variant, and a final softmax layer to predict entity labels.

The study compared several BERT variants:

  • BioBERT: Pre-trained on PubMed abstracts and PMC full-text articles.
  • SciBERT: Pre-trained on scientific papers from Semantic Scholar.
  • Standard BERT: Base and Large versions used as comparative baselines.

These models were fine-tuned on the WLP dataset to adapt to the specific linguistic patterns of laboratory instructions.

Dataset

The research utilized the Wet Lab Protocols (WLP) dataset, part of the WNUT 2020 Shared Task-1. This dataset includes 615 protocols annotated by experts for entities such as Reagent, Method, Amount, Location, and Device. The annotations achieved an inter-annotator agreement of 0.75 (Cohen’s Kappa), ensuring high-quality training data.

Results and Discussion

The experimental results demonstrate the superiority of domain-specific pre-training for technical NER tasks.

Performance comparison of various BERT models on the Wet Lab Protocols dataset.

As shown in the table above, biobert_v1.1_pubmed achieved the highest F1-score of 79.10. The model was particularly strong in recall, ranking 1st runner-up in that category among 13 competing teams. Interestingly, BioBERT models trained on PubMed abstracts slightly outperformed those trained on full PMC articles, likely because the concise style of abstracts more closely mirrors the instructional nature of protocols.

The Tokenization Bottleneck

A significant finding of this study is the "tokenization bottleneck." Standard BERT uses WordPiece tokenization, which often breaks complex chemical and biological terms into semantically opaque fragments.

Examples of subword tokenization for complex biomedical terms, illustrating the fragmentation of technical jargon.

For example, the term "ddH2O" is tokenized as ['d', 'd', 'H', '2', 'O']. This fragmentation forces the model to learn the meaning of a term from its constituent characters rather than the whole word, increasing the difficulty of the NER task.

Conclusion and Future Work

This research highlights that domain-specific BERT models are essential for accurately extracting entities from lab protocols. While these models achieve high recall, their precision is hampered by inefficient tokenization of technical jargon. Future work will explore the development of custom tokenizers trained on biomedical corpora to maintain the integrity of scientific terms. Additionally, the authors plan to investigate model ensembling and alternative architectures like XLNet to improve the detection of adjacent entity boundaries.

Summary updated

BibTeX
@inproceedings{vaidhya2020domain,
  author = {Tejas Vaidhya and Ayush Kaushal},
  title = {{Domain specific BERT representation for Named Entity Recognition of lab protocol}},
  booktitle = {W-NUT @ EMNLP},
  year = {2020},
  doi = {10.18653/v1/2020.wnut-1.34},
}
Figure