<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Transformer-Based Disease and Drug Named Entity Recognition in Multilingual Clinical Texts: MultiCardioNER challenge</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Anna Aksenova</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Aleksis Datseris</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sylvia Vassileva</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Svetla Boytcheva</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Aalto University</institution>
          ,
          <country country="FI">Finland</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Faculty of Mathematics and Informatics, Sofia University "St. Kliment Ohridski"</institution>
          ,
          <addr-line>Sofia</addr-line>
          ,
          <country country="BG">Bulgaria</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Ontotext</institution>
          ,
          <addr-line>Sofia</addr-line>
          ,
          <country country="BG">Bulgaria</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <abstract>
        <p>This paper presents a transformer-based approach for disease Named Entity Recognition (NER) in Spanish clinical texts using the DisTEMIST dataset and drug multi-lingual NER in Spanish, English and Italian clinical texts using the DrugTEMIST dataset. For the disease NER task, we use CLIN-X-ES, a BERT-based model pretrained on Spanish clinical texts and additional pretrained on a custom dataset, and fine-tuned on token classification, achieving F1 score 0.8049 on the test set. For the drug NER task, we experiment with language-specific clinical models as well as general domain multilingual models and achieved the best results with the language-specific models. For Spanish we fine-tuned the CLIN-X-ES model and our best model showed 0.9238 F1 score, for English we fine-tuned BioLinkBERT which scored F1 - 0.9223, and for Italian we pretrained the CLIN-X-ES model with a custom Italian dataset and achieved F1 score - 0.8838. Our system placed first on the English and Italian tracks in the drug subtask in MultiCardioNER challenge.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Named entity recognition (NER)</kwd>
        <kwd>Biomedical NLP</kwd>
        <kwd>Medication extraction</kwd>
        <kwd>Diagnosis extraction</kwd>
        <kwd>Clinical NER</kwd>
        <kwd>Multilingual NER</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Clinical narratives are a valuable source of healthcare information, but it requires design of special
NLP models for efective data extraction. Automated identification of key terms such as diseases,
medications, and procedures within clinical documents is known as clinical named entity recognition
(NER). This process plays a significant role in clinical natural language processing (NLP) by facilitating
the extraction of structured data from clinical narratives for subsequent analysis and interpretation
by downstream healthcare applications. MultiCardioNER1 [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] is a shared task part of CLEF BioASQ
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], which aims to detect diseases in Spanish clinical texts as well as drugs in a multilingual setting,
including Spanish, English and Italian. The organizers have provided annotated datasets for training
and evaluation of the systems - DisTEMIST for disease NER and DrugTEMIST for drug NER. The
shared task consists of two subtask - Subtask 1 addressing disease recognition in Spanish, and Subtask
2 addressing drug recognition in multiple languages. In both subtasks, the challenge is to recognize
terms in cardiology reports.
      </p>
      <p>This paper describes our approach for disease and drug NER which we submitted for the
MultiCardioNER challenge. Our code is available on GitHub 2. The contributions of this paper are as
follows:
• Developed a system for disease entity recognition in Spanish and performed diferent experiments
with BERT-based models, achieving 0.8049 F1 score on the DisTEMIST dataset;
• Developed a system for drug entity recognition in Spanish, English, and Italian which achieved
state-of-the-art (SOTA) results on English and Italian DrugTEMIST dataset and very competitive
results on Spanish;
• We investigated and compared the performance of multilingual BERT-based models vs
languagespecific models for named entity recognition;
• We adapted a clinical Spanish RoBERTa model to the Italian language and showed the best result
on the drug NER task for Italian;</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        The state-of-the-art methods for biomedical named entity recognition are predominantly using deep
learning based models [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. The most recent NER approaches for clinical documents also include
some hybrid models like dictionary guided attention based model [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and transfer learning [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ],[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
Besides classical approaches like machine learning [8], hidden Markov models (HMM) and conditional
random fields (CRF) [ 9], an interesting application of Fourier Networks for NER and relation extraction
were proposed in [10]. Another direction of research is using models based on knowledge graphs [11]
as additional source for information. The limited availability of annotated data, imbalanced training
datasets and lack of resources in low resource languages triggered another direction in the NER model
development using data augmentation techniques to tackle these issues [12], [13].
      </p>
      <p>Specifically for the task of NER for medication extraction the SOTA methods are based on
BiLSTM+CRF [14] reporting F1-score 0.93 for the best performing system for NER tasks over MIMIC-III3
dataset. Another approach is based on Question-Answering (QA) for medication event extraction [15]
translating the NER task to span identification task in QA, reporting NER F1-score 0.98. The classical
models like SVM, CRF and rule-based models [16],[17] show comparable results. In the n2c2 shared task
on medication event extraction in clinical notes [18] the top score model for NER task scores strict F1
0.97 using transformer based pretrained LLM, using a BERT-based model (RoBERTa-large-PM-M3-Voc)
with classification layer and BILOU tags.</p>
      <p>For the task of NER for diagnoses, the SOTA methods are also based on transformers [19], [20] of
various architectures. Most widely used are domain and task adaptations of the transformer architecture,
such as BERT, RoBERTa and ELECTRA. Additional enhancement using knowledge bases in deep learning
models [21] can help in dataset annotation and expansion.</p>
      <p>
        The organizers of MultiCardioNER have organized multiple challenges in the area of information
extraction from Spanish clinical texts for diferent entity types - diseases, procedures, symptoms, etc.
Transformer-based approaches are very commonly used for NER tasks in diferent languages. In
previous challenges for diseases using the DisTEMIST dataset, the top teams have used BERT-based
models trained for token classification like Spanish RoBERTa
(PlanTL-GOB-ES/roberta-base-biomedicalclinical-es [22]) ([23], [24], [25]), mBERT and the Spanish BETO [26]. In a similar challenge for named
entity recognition of medical procedures in Spanish text, competitors used an architecture including
the same Spanish RoBERTa or XLM-RoBERTa model and adding BiLSTM and CRF layers on top ([
        <xref ref-type="bibr" rid="ref8">27</xref>
        ],
[
        <xref ref-type="bibr" rid="ref9">28</xref>
        ]). In the task of symptoms NER, ensemble of transformer models for Spanish clinical text achieved
the best result - F1 0.74 (strict) [
        <xref ref-type="bibr" rid="ref10">29</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Data</title>
      <p>3.1. Subtask 1
MultiCardioNER corpus for disease named entity recognition task consists of two data subsets of
diferent nature: DisTEMIST and CardioCCC. The DisTEMIST dataset consists of 1000 clinical cases of
diferent medical specialities (incl. oncology, otorhinolaryngology, dentistry, pediatrics, primary care,
allergology, radiology, psychiatry, ophthalmology and more). CardioCCC is a collection of 508 cardiology
clinical case reports, which are longer on average than the DisTEMIST reports. The CardioCCC dataset
contains 508 documents, split in 258 for development and 250 for testing. Following the suggestions
by the organizers, we used DisTEMIST as a train set, leaving CardioCCC documents for validation.
Additionally, a custom dataset was used for clinical domain adaptation (see Section 3.2). Each team
had to provide their model predictions on a dataset containing the CardioCCC test data and a large
unlabelled background dataset. At the time of submission, the organizers had not released which
examples were part of the test set. Therefore the number of documents in the prediction set is a lot
higher than the train or validation sets, however only a small portion was used for evaluating the model
performance by the organizers.
3.2. Subtask 2
Similar to Subtask1, the MultiCardioNER corpus for the drug prediction task consists of two data
subsets of diferent nature: DrugTEMIST and CardioCCC. The diference between the datasets is quite
substantial. DrugTEMIST is a task-specific adaptation of DisTEMIST dataset that consists of 1000
clinical cases of diferent medical specialities. CardioCCC is a collection of 508 cardiology clinical case
reports, meaning that reports are longer on average. Similarly to subtask 1, we used DrugTEMIST as a
train set, leaving CardioCCC documents for validation.</p>
      <p>One of the important aspects of the dataset is the sparsity of annotations. For DrugTEMIST only 9%
sentences contain drugs, while for CardioCCC the share is even lower - 6%.</p>
      <sec id="sec-3-1">
        <title>3.3. Custom Medical Text Dataset</title>
        <p>To adapt foundation models for the clinical domain, we collected language-specific datasets with raw
texts. The data statistics can be found in Table 2.
1. Wikidata concepts related to medicine: We ran a SPARQL query over WikiData4 extracting
labels that are included in the following medical ontologies and classifications: ICD-11 5; ICD-10,</p>
        <sec id="sec-3-1-1">
          <title>4https://query.wikidata.org/ 5https://icd.who.int/es</title>
          <p>ICD-10 CM 6, Symptom Ontology7, eMedicine8, DiseasesDB, MedlinePlus9, MONDO10 , Human
Disease Ontology11, SNOMED CT12, UMLS13.
2. Wikipedia articles related to medical concepts: Based on the extracted WikiData concepts,
we went through the concept list and downloaded the texts of WikiPedia articles that were created
for those concepts. For some concepts the articles did not exist. We used Mediawiki API 14 for
text extraction.
3. Abbreviation lists found online: For each of the languages, we browsed for medical
abbreviation lists available online. Some of them were extracted from the open-source articles, others
were scraped from websites.
4. Drug descriptions: As drug descriptions usually contain quite useful information on symptoms,
side efects and dosages, we leveraged multilingual drug description lists 15.
5. EMA medical documentation: We leveraged a parallel corpus of the European Medical Agency</p>
          <p>Documentation16.
6. Machine-translated data: To enrich the amount of medical data, we decided to use machine
translated datasets. For this purpose, we used medical abstracts corpus17.</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>3.4. Drug Gazetteer</title>
        <p>As drug lists are dynamic and changing over time, specifically designed dictionaries were created
based on various oficial drug sources to support model-based drug extraction. For the English drug
dictionary, we used OMOP Standardized Vocabulary V5.0 18 (incl. ATC, RxNorm), DrugCentral19 (FDA
Approved Drugs, EMA Approved Drugs, PMDA Approved Drugs, PMDA+EMA+FDA Approved Drug),
DrugBank20, DailyMed21 (NIHS human drugs), Top25022, UnatedHealthcare23, and Drugs.com24 (My
Med List). For Spanish, we used Centro de información online de medicamentos de la AEMPS - (CIMA)25
(incl. ATC Spanish version and Arbol Medicamentos DSCA Spanish). For Italian, we used ATC and
Lists of Class A and Class H medicinal products of Italian Medicine Agency26. The drug names and
synonyms are aggregated in three dictionaries for English, Italian and Spanish. The total number of
generic and brand names of drugs included in the cleaned lists, after removing duplication are presented
on Table 3. In addition to the drug dictionaries were used some procedures names for lab test from
LOINC27 for all languages in order to disambiguate some drug mentions from lab tests for measuring
levels of some minerals and vitamins, like Vitamin D, Magnesium, Calcium, etc.
6https://www.eciemaps.sanidad.gob.es/browser/metabuscador
7https://raw.githubusercontent.com/DiseaseOntology/SymptomOntology/main/src/ontology/symp.owl
8https://emedicine.medscape.com/
9https://medlineplus.gov/
10https://obofoundry.org/ontology/mondo
11https://www.disease-ontology.org/
12https://www.snomed.org/
13https://www.nlm.nih.gov/research/umls/index.html
14https://www.mediawiki.org/wiki/API:Main_page
15https://www.ema.europa.eu/en/medicines/human
16https://live.european-language-grid.eu/catalogue/corpus/12729
17https://github.com/sebischair/medical-abstracts-tc-corpus
18https://www.ohdsi.org/web/wiki/doku.php?id=documentation:vocabulary
19https://drugcentral.org/
20https://go.drugbank.com/
21https://www.dailymed.nlm.nih.gov/dailymed/
22https://clincalc.com/PronounceTop200Drugs/
23https://www.uhc.com/member-resources/pharmacy-benefits/prescription-drug-lists
24https://www.drugs.com/mednotes/
25https://cima.aemps.es/cima/publico/nomenclator.html
26https://www.aifa.gov.it/en/liste-farmaci-a-h/
27https://loinc.org/</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.5. Data pre-processing</title>
        <p>
          As clinical documents are quite lengthy, especially in the case of the CardioCCC corpus, we decided to
split the documents into sentences using the following tools for diferent languages:
• English - MedSpaCy Sentence Splitting 28
• Italian - Tint Sentence Splitting 29 [
          <xref ref-type="bibr" rid="ref11">30</xref>
          ]
• Spanish - SPACCC Sentence splitter 30
        </p>
        <p>
          Afterwards, we used the Brat tool 31 [
          <xref ref-type="bibr" rid="ref12">31</xref>
          ] for data transformation from BRAT to CONLL format. The
dataset statistics after pre-processing are shown in Table 4.
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Methods</title>
      <p>
        4.1. Subtask 1
Our system was built using transformer-based models that were either multilingual or adapted to
Spanish and that were preferably adapted to the biomedical domain as well. The models we used were:
• PlanTL-GOB-ES/roberta-base-biomedical-clinical-es [22]: Biomedical pretrained
language model for Spanish. This model is a RoBERTa-based model trained on a
biomedicalclinical corpus in Spanish collected from several sources.
• CLIN-X-ES [
        <xref ref-type="bibr" rid="ref13">32</xref>
        ]: This model is based on the multilingual XLM-R transformer (xlm-roberta-large)
further pretrained on a Spanish clinical corpus.
• DeBERTa v3 [
        <xref ref-type="bibr" rid="ref14">33</xref>
        ]: A transformer-based model with disentagled attention trained using ELECTRA
style pretraining. Both base and large versions were used and also a version of DeBERTa that
was further pretrained on clinical data.
      </p>
      <p>• mDeBERTa v3 32: A multilingual version of DeBERTa.</p>
      <p>Additionally, some of the models were further pretrained on medical data from the Custom Medical Text
Dataset described in Section 3.3. Approximately 0.08 of the tokens are annotated entities per sentence
which corresponds to a very sparse annotation setting. Hence the majority of tokens to be evaluated by
the model will be negative examples. Therefore, we tried to fine-tune our models with diferent class
weight ratios (positive to negative samples) to try to make up for the class imbalance. The ratios chosen
were inversely proportional to the prevalence of the class.
28https://github.com/medspacy/medspacy
29https://github.com/dhfbk/tint
30https://github.com/PlanTL-GOB-ES/SPACCC_Sentence-Splitter
31http://brat.nlplab.org
32https://huggingface.co/microsoft/mdeberta-v3-base
4.2. Subtask 2
The drug name extraction task was reformulated as a drug Named Entity Recognition (NER) task.
As the setting for this task was multilingual, we focused on two major approaches: building a single
multilingual model capable of making predictions on all languages by leveraging knowledge transfer
between languages during training, and training language-specific models which are independent from
each other. In addition, as the drug name list is dynamic, we experimented with adding drug names
from oficial drug registries such as DrugBank as a gazzetteer. The gazetteer collection is described in
Section 3.4.</p>
      <p>In particular we experimented with the following methods:
• Multilingual model</p>
      <p>For the foundation multilingual model we used a FacebookAI/xlm-roberta-base33 backbone.
We experimented with training the original model and also performing domain adaptation. The
adapted model was trained on English, Spanish and Italian medical datasets on the Masked
Language Modeling objective using the dataset from Section 3.3. In addition, we experimented
with a multilingual model pretrained on several NER datasets which has shown good results on
similar tasks: numind/NuNER-multilingual-v0.134
• Language-specific models</p>
      <p>As a set of language-specific models we focused on michiyasunaga/BioLinkBERT-base35
for English, PlanTL-GOB-ES/roberta-base-biomedical-clinical-es36 for Spanish and
dbmdz/bert-base-italian-cased37 for Italian. As the models for English and Spanish were
originally pretrained on medical data, we expected them to perform well as is, whilst for the Italian
model, we conducted additional domain adaptation. Furthermore, as Italian medical vocabulary
is relatively close to Spanish, we conducted language adaptation of the Spanish model on the
Italian medical dataset too.
• Drug Gazetteer</p>
      <p>The gazetteer was applied before model predictions by finding exact match of drug names in the
text. Dictionary statistics and description can be found in Section 3.4.
33https://huggingface.co/FacebookAI/xlm-roberta-base
34https://huggingface.co/numind/NuNER-multilingual-v0.1
35https://huggingface.co/michiyasunaga/BioLinkBERT-base
36https://huggingface.co/PlanTL-GOB-ES/roberta-base-biomedical-clinical-es
37https://huggingface.co/dbmdz/bert-base-italian-cased</p>
      <p>As described in Section 3.2, the dataset is highly imbalanced and as a potential solution for boosting
the precision of predictions, we experimented with training a binary classification model to identify
sentences that contain drug annotations and sort out empty sentences. FacebookAI/xlm-roberta-base
after domain adaptation was used t train the classifier model. Furthermore, as many drug names
included punctuation marks, we added a post-processing step joining drug names divided by symbols /
and +.</p>
      <p>Figure 1 shows the overall architecture of the approach. Depending on the configuration we either
include or do not include filtering and dictionary-based annotations.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Experiments &amp; Results</title>
      <p>5.1. Subtask 1
For the Named Entity Recognition task we employed a standard approach for token classification
task. To simplify the setting and to avoid truncation due to limits in the input sequence length, we
trained on the split sentences (see Section 3.5). Standard token classification pipeline from Huggingface
Transformers was used. For the pretraining, we used a standard masked language modeling pretraining
objective. In general, the models achieved better recall than precision. The models that achieved the
best results were the models that had domain adaptation for both Spanish and clinical language domains.
Despite that DeBERTa is generally a model that achieves better performance than XLM-R, the best
model in our experiments was CLIN-X-ES, a XLM-R-based model pretrained on a Spanish clinical corpus.
It is notable that DeBERTa-base achieved better performance than DeBERTa-large probably because the
dataset was quite small. Using pretraining generally gave small improvements or no improvements, but
pertained models converged much faster - on average it took them between 2-6 epochs less to converge.
5.2. Subtask 2
For the second subtask the setup was quite similar to the first one. During the first set of experiments we
compared the multilingual candidate models. The results are reported at Table 6. It could be observed
that in-domain pretraining positively influences the overall performance of the model. For each of the
languages, the F-score improves by circa 2%.</p>
      <p>As for the monolingual model comparison reported at Table 7, we can observe that in general
monolingual models exhibit slightly better performance for all the target languages except for Italian.
Curiously, a Spanish model trained on medical data and fine-tuned on Italian medical data performs
better compared to Italian foundation model adapted to the clinical domain.</p>
      <p>Table 8 reports results of the submitted systems on the validation dataset. In general, language-specific
models show better performance for this task. Filtering consistently increases precision but slightly
reduces recall for medical XLM-R model pipelines for all the languages. The result is quite natural as by
ifltering out extra sentences we are adding more false negative examples to the final prediction. The
most significant diference is observed for Italian.</p>
      <p>The final evaluation on the test set showed that medical XLM-R is a SOTA result for Italian and
BioLinkBERT is the best approach for English.</p>
      <p>As for the final submission, the best candidate models remained unchanged. Although on the
validation set filtering out empty sentences proved to be a beneficial strategy, on the test set results of
the pipeline without filtering are generally better.</p>
      <sec id="sec-5-1">
        <title>5.3. Error Analysis</title>
        <p>After the annotated test data was released, we conducted error analysis and found the following patterns.
First, most of the errors related to recall are the cases of drugs that include numbers and special symbols.
However, there were cases where the model predicted drugs names that were missing in the annotations
(e.g. it was the case with Angiotensin-converting enzyme (ACE) inhibitors).</p>
        <p>Based on the performance evaluation one can see that adding dictionary-based matching decreases
precision of the models. This can be explained by several factors rooting from the nature of the dictionary
we used. In the oficial drug registries there are quite a lot of drugs with ambiguous brand names (e.g.
vita - life in Italian), which increases the number of false positive predictions. In addition, there are
drug names that are homonymous with laboratory test measures, for instance sodium, vitamin K,
etc. Rule-based matching does not rule out such cases. Lastly, oficial names of the medications include
dosages and concentrations, while in the challenge data those were not included in the annotations (e.g.
oficial name lidocain 2%, annotated name lidocain).</p>
        <p>The issue with drug dosage and medication concentration is relevant for model predictions too.
While the Italian models rarely included concentrations in the predictions, for English and Spanish this
was often the case. Such inconsistencies originate from training data diferences. The final models were
trained on 2 diferent datasets (DrugTEMIST, CardioCCC) and those appeared to be annotated diferently.
While in DrugTEMIST dosages and concentrations were consistently included in the drug span, for
CardioCCC this is not the case. Moreover, combined drug names were also annotated inconsistently
being either split into 2 drugs, or combined into one. Figure 2 shows an example of drug annotations
which do not include the respective dosages as part of the labelled span. The inconsistency of labelling
between the train, dev, and test sets is a source of errors for the final trained model.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>In this paper we presented transformer based models for drug and disease named entity recognition
in multilingual clinical texts. The experiments for disease NER showed that the domain-adapted
and language-specific model CLIN-X-ES scored 0.819 F1 and outperformed DeBERTa-based models.
For the drug NER task, the best scores for English and Spanish were achieved using monolingual
models BioLinkBERT and RoBerta-base-biomedical-clinical-es respectively. For Italian, in contrast,
the multilingual model XLMR_med outperformed the monolingual one by a small margin. Although
dictionaries showed contribution to the recall metric, the ambiguities in the drug names that contain
some common vocabulary or the common confusion with lab test results cause a significant drop in
the precision. We experimented with diferent approaches to attempt to tackle the label sparsity issue
adjusting class weights during training as well as adding a classification step which predicts whether
the sentence contains a drug name. The approach using a classifier as a filtering step showed improved
performance on the validation set, however, did not work so well on the actual test set. As future work,
using hybrid solution with the help of LLMs can improve the system performance and address the
issues with the disambiguation of the term usage in context.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgements</title>
      <p>This work was partially supported by the European Union-NextGenerationEU, through the National
Recovery and Resilience Plan of the Republic of Bulgaria [Grant Project No. BG-RRP-2.004-0008] and
by Horizon Europe research and innovation programme project RES-Q plus [Grant Agreement No.
101057603], funded by the European Union. Views and opinions expressed are however those of the
author(s) only and do not necessarily reflect those of the European Union or the Health and Digital
Executive Agency. Neither the European Union nor the granting authority can be held responsible for
them.</p>
    </sec>
    <sec id="sec-8">
      <title>Limitations References</title>
      <p>The methods described in this paper were submitted as part of the MultiCardioNER challenge and
were validated only on the challenge datasets. Further investigation on diferent datasets is needed to
explore the generalizability of the approach. The specific labeling approach on the datasets impacts the
model performance, as in the case of drug NER the inconsistencies of dosage labelling was a source of
errors. In diferent settings, the labelling guidelines used might be diferent and therefore the presented
approach may not perform as well.
[8] S. Archana, J. Prakash, An efective undersampling method for biomedical named entity recognition
using machine learning, Evolving Systems (2024) 1–9.
[9] X. Wang, C. Yang, R. Guan, A comparative study for biomedical named entity recognition,</p>
      <p>International Journal of Machine Learning and Cybernetics 9 (2018) 373–382.
[10] A. Yazdani, D. Proios, H. Rouhizadeh, D. Teodoro, Eficient joint learning for clinical named entity
recognition and relation extraction using fourier networks: A use case in adverse drug events,
arXiv preprint arXiv:2302.04185 (2023).
[11] Y. Lou, X. Zhu, K. Tan, Dictionary-based matching graph network for biomedical named entity
recognition, Scientific Reports 13 (2023) 21667.
[12] S. Ghosh, U. Tyagi, S. Kumar, D. Manocha, Bioaug: Conditional generation based data augmentation
for low-resource biomedical ner, in: Proceedings of the 46th International ACM SIGIR Conference
on Research and Development in Information Retrieval, 2023, pp. 1853–1858.
[13] I. Bartolini, V. Moscato, M. Postiglione, G. Sperlì, A. Vignali, Data augmentation via context
similarity: An application to biomedical named entity recognition, Information Systems 119 (2023)
102291.
[14] Q. Wei, Z. Ji, Z. Li, J. Du, J. Wang, J. Xu, Y. Xiang, F. Tiryaki, S. Wu, Y. Zhang, et al., A study of
deep learning approaches for medication and adverse drug event extraction from clinical text,
Journal of the American Medical Informatics Association 27 (2020) 13–21.
[15] T. Tsujimura, K. Yamada, R. Ida, M. Miwa, Y. Sasaki, Contextualized medication event extraction
with striding ner and multi-turn qa, Journal of Biomedical Informatics 144 (2023) 104416.
[16] S. Doan, N. Collier, H. Xu, P. H. Duy, T. M. Phuong, Recognition of medication information from
discharge summaries using ensembles of classifiers, BMC medical informatics and decision making
12 (2012) 1–10.
[17] S. Doan, H. Xu, Recognizing medication related entities in hospital discharge summaries using
support vector machine, in: Proceedings of COLING. International conference on computational
linguistics, volume 2010, NIH Public Access, 2010, p. 259.
[18] D. Mahajan, J. J. Liang, C.-H. Tsou, Ö. Uzuner, Overview of the 2022 n2c2 shared task on
contextualized medication event extraction in clinical notes, Journal of Biomedical Informatics 144 (2023)
104432.
[19] X. Liu, Y. Zhou, Z. Wang, Recognition and extraction of named entities in online medical diagnosis
data based on a deep neural network, Journal of Visual Communication and Image Representation
60 (2019) 1–15.
[20] M. Polignano, M. de Gemmis, G. Semeraro, et al., Comparing transformer-based ner approaches
for analysing textual medical diagnoses., in: CLEF (Working Notes), 2021, pp. 818–833.
[21] S. Silvestri, F. Gargiulo, M. Ciampi, Iterative annotation of biomedical ner corpora with deep
neural networks and knowledge bases, Applied sciences 12 (2022) 5775.
[22] C. P. Carrino, J. Armengol-Estapé, A. Gutiérrez-Fandiño, J. Llop-Palao, M. Pàmies, A.
GonzalezAgirre, M. Villegas, Biomedical and clinical language models for spanish: On the benefits of
domain-specific pretraining in a mid-resource scenario, 2021. arXiv:2109.03570.
[23] V. Moscato, M. Postiglione, G. Sperlì, Biomedical spanish language models for entity recognition
and linking at bioasq distemist, in: Working Notes of Conference and Labs of the Evaluation
(CLEF) Forum. CEUR Workshop Proceedings, 2022, pp. 315–324.
[24] F. Borchert, M.-P. Schapranow, Hpi-dhc @ bioasq distemist: Spanish biomedical entity linking
with pre-trained transformers and cross-lingual candidate retrieval, in: Conference and Labs of
the Evaluation Forum, 2022. URL: https://api.semanticscholar.org/CorpusID:251471783.
[25] M. Chizhikova, J. Collado-Montañez, P. López-Úbeda, M. C. Díaz-Galiano, L. A. U. López, M. T. M.</p>
      <p>Valdivia, Sinai at clef 2022: Leveraging biomedical transformers to detect and normalize disease
mentions, in: Conference and Labs of the Evaluation Forum, 2022. URL: https://api.semanticscholar.
org/CorpusID:251471813.
[26] J. Reyes-Aguillón, R. del Moral, O. Ramos-Flores, H. Gómez-Adorno, G. Bel-Enguix, Clinical
named entity recognition and linking using bert in combination with spanish medical embeddings,
in: Conference and Labs of the Evaluation Forum, 2022. URL: https://api.semanticscholar.org/</p>
      <sec id="sec-8-1">
        <title>Hyperparameters</title>
        <p>
          For fine-tuning the models we used the following hyperparameters settings:
• learning rate: We used AdamW[
          <xref ref-type="bibr" rid="ref15">34</xref>
          ] optimizer with between 1-e5 and 5-e5 learning rate.
• number of epochs: We experimented between 5-20 epochs depending on how long it took the
model to converge.
• batch size: Initialized to 8 with gradient accumulation steps 1-2 giving an efective batch size of
8-16 due to GPU memory limitations).
        </p>
        <p>• learning rate scheduler: linear</p>
        <sec id="sec-8-1-1">
          <title>For pretraining we used the following hyperparameter settings:</title>
          <p>• learning rate: We used AdamW optimizer with 5-e5 learning rate.
• number of epochs: 3 epochs due to resource limitations.
• weight decay: 0.01.
• batch size: Initialized to 8 due to GPU memory limitations.
• learning rate scheduler: linear</p>
        </sec>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Lima-López</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Farré-Maduell</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Rodríguez-Miret</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rodríguez-Ortega</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Lilli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lenkowicz</surname>
          </string-name>
          , G. Ceroni,
          <string-name>
            <given-names>J.</given-names>
            <surname>Kossof</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Shah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Nentidis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Krithara</surname>
          </string-name>
          , G. Katsimpras, G. Paliouras,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>Krallinger, Overview of MultiCardioNER task at BioASQ 2024 on Medical Speciality and Language Adaptation of Clinical NER Systems for Spanish, English and Italian</article-title>
          , in: G. Faggioli,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ferro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Galuščáková</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          . García Seco de Herrera (Eds.),
          <source>CLEF Working Notes</source>
          ,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A.</given-names>
            <surname>Nentidis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Katsimpras</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Krithara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lima-López</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Farré-Maduell</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Krallinger</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Loukachevitch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Davydova</surname>
          </string-name>
          , E. Tutubalina, G. Paliouras,
          <source>Overview of BioASQ</source>
          <year>2024</year>
          :
          <article-title>The twelfth BioASQ challenge on Large-Scale Biomedical Semantic Indexing and Question Answering</article-title>
          , in: L.
          <string-name>
            <surname>Goeuriot</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Mulhem</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Quénot</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Schwab</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Soulier</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Maria Di Nunzio</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Galuščáková</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>García Seco de Herrera</surname>
          </string-name>
          , G. Faggioli, N. Ferro (Eds.),
          <source>Experimental IR Meets Multilinguality, Multimodality, and Interaction. Proceedings of the Fifteenth International Conference of the CLEF Association (CLEF</source>
          <year>2024</year>
          ),
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>H.</given-names>
            <surname>Cho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>Biomedical named entity recognition using deep neural networks with contextual information</article-title>
          ,
          <source>BMC bioinformatics 20</source>
          (
          <year>2019</year>
          )
          <fpage>1</fpage>
          -
          <lpage>11</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>L.</given-names>
            <surname>Luo</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.-H. Wei</surname>
            , P.-T. Lai,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Leaman</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          <string-name>
            <surname>Lu</surname>
          </string-name>
          ,
          <article-title>Aioner: all-in-one scheme-based biomedical named entity recognition using deep learning</article-title>
          ,
          <source>Bioinformatics</source>
          <volume>39</volume>
          (
          <year>2023</year>
          )
          <article-title>btad310</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Akhtar</surname>
          </string-name>
          ,
          <article-title>A dictionary-guided attention network for biomedical named entity recognition in chinese electronic medical records</article-title>
          ,
          <source>Expert Systems with Applications</source>
          <volume>231</volume>
          (
          <year>2023</year>
          )
          <fpage>120709</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>H.</given-names>
            <surname>Fabregat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Duque</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Martinez-Romo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Araujo</surname>
          </string-name>
          ,
          <article-title>Negation-based transfer learning for improving biomedical named entity recognition and relation extraction</article-title>
          ,
          <source>Journal of Biomedical Informatics</source>
          <volume>138</volume>
          (
          <year>2023</year>
          )
          <fpage>104279</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Bhattacharya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Bhat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Tripathy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bansal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Choudhary</surname>
          </string-name>
          ,
          <article-title>Improving biomedical named entity recognition through transfer learning and asymmetric tri-training</article-title>
          ,
          <source>Procedia Computer Science</source>
          <volume>218</volume>
          (
          <year>2023</year>
          )
          <fpage>2723</fpage>
          -
          <lpage>2733</lpage>
          . CorpusID:
          <volume>251471813</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>T.</given-names>
            <surname>Almeida</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. A. A.</given-names>
            <surname>Jonker</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Poudel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Silva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Matos</surname>
          </string-name>
          ,
          <article-title>Discovering medical procedures in spanish using transformer models with mcrf and augmentation</article-title>
          ,
          <source>in: Working Notes of CLEF 2023 - Conference and Labs of the Evaluation Forum</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [28]
          <string-name>
            <given-names>M.</given-names>
            <surname>Chizhikova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Collado-Montañez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. C.</given-names>
            <surname>Díaz-Galiano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. A.</given-names>
            <surname>Ureña-López</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. T.</given-names>
            <surname>Martín-Valdivia</surname>
          </string-name>
          ,
          <article-title>Coming a long way with pre-trained transformers and string matching techniques: Clinical procedure mention recognition and normalization</article-title>
          ,
          <source>in: Working Notes of CLEF 2023 - Conference and Labs of the Evaluation Forum</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [29]
          <string-name>
            <given-names>F.</given-names>
            <surname>Gallego</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. J.</given-names>
            <surname>Veredas</surname>
          </string-name>
          ,
          <string-name>
            <surname>ICB-UMA at BioCreative</surname>
            <given-names>VIII</given-names>
          </string-name>
          @
          <article-title>AMIA 2023 Task 2 SYMPTEMIST (Symptom TExt Mining Shared Task)</article-title>
          ,
          <source>in: Proceedings of the BioCreative VIII Challenge and Workshop: Curation and Evaluation in the era of Generative Models, Zenodo</source>
          ,
          <year>2023</year>
          . URL: https: //doi.org/10.5281/zenodo.10104058. doi:
          <volume>10</volume>
          .5281/zenodo.10104058.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [30]
          <string-name>
            <given-names>A.</given-names>
            <surname>Palmero Aprosio</surname>
          </string-name>
          , G. Moretti,
          <article-title>Italy goes to Stanford: a collection of CoreNLP modules for Italian, ArXiv e-prints (</article-title>
          <year>2016</year>
          ). arXiv:
          <volume>1609</volume>
          .
          <fpage>06204</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [31]
          <string-name>
            <given-names>P.</given-names>
            <surname>Stenetorp</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Pyysalo</surname>
          </string-name>
          , G. Topić,
          <string-name>
            <given-names>T.</given-names>
            <surname>Ohta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ananiadou</surname>
          </string-name>
          , J. Tsujii,
          <article-title>brat: a web-based tool for NLP-assisted text annotation</article-title>
          ,
          <source>in: Proceedings of the Demonstrations Session at EACL</source>
          <year>2012</year>
          ,
          <article-title>Association for Computational Linguistics</article-title>
          , Avignon, France,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [32]
          <string-name>
            <given-names>L.</given-names>
            <surname>Lange</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Adel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Strötgen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Klakow</surname>
          </string-name>
          ,
          <article-title>Clin-x: pre-trained language models and a study on cross-task transfer for concept extraction in the clinical domain</article-title>
          ,
          <year>2021</year>
          . URL: https://arxiv.org/abs/ 2112.08754. arXiv:
          <volume>2112</volume>
          .
          <fpage>08754</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [33]
          <string-name>
            <given-names>P.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Gao</surname>
          </string-name>
          , W. Chen,
          <article-title>Debertav3: Improving deberta using electra-style pre-training with gradientdisentangled embedding sharing</article-title>
          ,
          <year>2021</year>
          . arXiv:
          <volume>2111</volume>
          .
          <fpage>09543</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [34]
          <string-name>
            <given-names>I.</given-names>
            <surname>Loshchilov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Hutter</surname>
          </string-name>
          , Decoupled weight decay regularization,
          <year>2019</year>
          . arXiv:
          <volume>1711</volume>
          .
          <fpage>05101</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>