Abstract
Biomedical Named Entity Recognition (NER) often suffers from the use of opaque labels that lack semantic meaning. This study proposes a method to integrate entity definition information into deep learning architectures, specifically reframing NER as a Machine Reading Comprehension (MRC) task. Using the PharmaCoNER Spanish clinical dataset, the researchers demonstrate that providing models with expert-derived definitions significantly improves performance, reaching a state-of-the-art F1-score of 0.9137.
Introduction
In traditional Named Entity Recognition (NER), models are typically trained to classify tokens into categories represented by arbitrary indices or one-hot vectors. While effective for general domains, this approach struggles in specialized fields like biomedicine where entity boundaries are often ambiguous and terminology is highly technical. Human annotators resolve these ambiguities by consulting detailed "annotation guidelines." This paper explores the hypothesis that deep learning models can similarly benefit from access to these formal definitions, particularly in lower-resource languages such as Spanish.
Methods
The researchers investigated two primary architectures for incorporating entity definition information into a BERT-based framework:
- Machine Reading Comprehension (MRC): The NER task is reframed as a question-answering problem. The model is provided with a "query" (the entity definition) and a "context" (the clinical text). The goal is to predict the start and end indices of the entity within the context.
- Span-level One-pass (SOne): This architecture utilizes a multi-layer pointer network. Definition information is injected by concatenating the mean-pooled word embeddings of the entity definition directly to the BERT token representations.
The study compared simple, rule-based queries against comprehensive definitions extracted from professional annotation guidelines.
Datasets
The models were evaluated using the PharmaCoNER 2019 corpus, a collection of 1,000 Spanish clinical records manually annotated by medicinal chemistry experts. The dataset contains 24,654 mentions across four entity types: NORMALIZABLES (chemicals mapable to unique IDs), NO_NORMALIZABLES, PROTEINAS, and UNCLEAR.
Results
The MRC-based model utilizing guideline definitions achieved a state-of-the-art micro-averaged F1-score of 0.9137, with a precision of 0.9225 and a recall of 0.9050. This performance represents a 0.0032 improvement over the top-performing system in the original PharmaCoNER 2019 challenge. Furthermore, the proposed method showed a statistically significant 1% absolute improvement (p < 0.05) over a baseline model that lacked definition-based features.
Discussion
The primary advantage of this approach is semantic grounding. By providing definitions, the model gains a conceptual understanding of the entities. For instance, the model successfully identified "protrombina" (prothrombin) because the definition for PROTEINAS explicitly included "proteins and genes," creating a semantic bridge that a simple label could not provide.
However, challenges remain. The model occasionally confused NORMALIZABLES and NO_NORMALIZABLES due to the linguistic similarity of their definitions. Additionally, boundary errors accounted for approximately 16% of the total errors. Future work will explore the use of Knowledge Graphs and more dynamic attention mechanisms to further refine the integration of external knowledge into the NER process.
Summary updated