A Deep Learning-Based System for PharmaCoNER

Ying Xiong, Yedan Shen, Yuanhang Huang, Shuai Chen, Buzhou Tang, Xiaolong Wang, Qingcai Chen, Jun Yan, Yi Zhou

Introduction

Clinical Natural Language Processing (NLP) has advanced significantly in English, but other languages like Spanish often lack the annotated data and specialized tools necessary for high-performance systems. The PharmaCoNER (Pharmacological Substances, Compounds, and Proteins and Named Entity Recognition) task was established to address this gap in Spanish medical records. Researchers from the Harbin Institute of Technology developed a high-performing pipeline for the 2019 challenge, focusing on two main hurdles: identifying pharmacological entities (Track 1) and mapping them to standard terminologies (Track 2).

System Architecture

The proposed system utilizes a two-stage pipeline designed to handle both named entity recognition (NER) and concept indexing.

The two-stage pipeline for PharmaCoNER, including preprocessing, NER classification, and concept indexing.

Track 1: NER Offset and Classification

For the NER task, the team employed a BERT-CRF architecture. BERT (Bidirectional Encoder Representations from Transformers) serves as the backbone, providing deep contextualized word representations. To further enhance performance, these representations were augmented with:

  • Character-level embeddings: Essential for handling out-of-vocabulary words and spelling variations common in medical text.
  • Part-of-Speech (POS) tags: Extracted using the Spanish-specific SPACCC_POS-TAGGER.
  • Word Shape features: Capturing the orthographic "look" of words (e.g., "PaO2" mapped to "AaNn").

A Conditional Random Field (CRF) layer was integrated on top of the BERT output to ensure that the predicted label sequences (following the BIO schema) were globally optimal and logically consistent.

Track 2: Concept Indexing

Mapping identified mentions to standard terminologies involved a candidate generation phase followed by a ranking model. Candidates were generated using Levenshtein distance and synonyms. The best match was then selected using a Bpool model—a Bi-LSTM architecture utilizing both max and mean pooling to capture salient features of both the mention and the potential standard term.

Datasets

The system was evaluated on the PharmaCoNER Corpus, which includes 1,000 manually annotated Spanish clinical cases. The data was split into training (500), development (250), and test (250) sets. Additionally, a background set of 3,751 unannotated cases was provided to ensure the robustness of the competition results. Entities were classified into four categories: NORMALIZABLES, NO_NORMALIZABLES, PROTEINAS, and UNCLEAR.

Key Results

The system achieved top-tier performance across both competition tracks, demonstrating the effectiveness of combining transformer-based models with traditional linguistic features.

Performance metrics (Precision, Recall, and F1-score) for Track 1 and Track 2.

The overall F1-score for Track 1 was 0.9105, while Track 2 achieved an F1-score of 0.8391. Notably, the system performed exceptionally well on common categories like NORMALIZABLES but faced challenges with rare categories such as NO_NORMALIZABLES, where it achieved perfect precision (1.0) but very low recall (0.2).

Insights and Discussion

Ablation studies revealed that feature engineering remains critical even in the era of large language models. For instance, character embeddings alone improved the NER F1-score by 1.69%. The team also identified "the tokenization trap," where standard tokenizers struggle with medical shorthand (e.g., splitting "PaO2" incorrectly), leading to boundary errors.

Furthermore, the pipeline nature of the system introduces error propagation; any mistake in the NER stage inevitably impacts the subsequent indexing stage.

Conclusion

The Harbin Institute of Technology's system for PharmaCoNER 2019 showcases the power of hybrid deep learning approaches for specialized medical NLP. Future work will focus on joint learning methods to train NER and indexing models simultaneously, reducing error propagation, and integrating Knowledge Graphs to provide the models with deeper medical "common sense."

Summary updated

BibTeX
@inproceedings{xiong2019deep,
  author = {Ying Xiong and Yedan Shen and Yuanhang Huang and Shuai Chen and Buzhou Tang and Xiaolong Wang and Qingcai Chen and Jun Yan and Yi Zhou},
  title = {{A Deep Learning-Based System for PharmaCoNER}},
  booktitle = {BioNLP-OST @ EMNLP},
  year = {2019},
  doi = {10.18653/v1/d19-5706},
}
Figure