Annotation Guidelines

The annotation process of the SPACCC chemical and drug corpus was inspired by previous annotation schemes and corpora used for the BioCreative CHEMDNER and GPRO tracks, translating the guidelines used for these tracks into Spanish and adapting them to the specificities and needs of more clinically oriented documents by modifying the annotation scheme and rules to cover medical information needs. This adaptation was carried out in collaboration with practicing physicians and medicinal chemistry experts. The adaptation, translation and refinement of the guidelines was carried out on a sample set of the SPACCC corpus and connected to an iterative process of annotation consistency analysis through inter-annotator agreement (IAA) calculation until a high annotation quality on terms of IAA was reached. A link to the final version of the used 34 pages annotation guidelines can be downloaded from here.

This iterative refinement process required direct interaction between the expert annotators in order to resolve discrepancies, using a side-by-side visualization of clinical case document annotations with the high lightened discrepancies and going over each of them in order to solve doubts, add rules and add clarifying examples to the guidelines. A common aspect that needed to be clarified was the annotation in the first sample annotation cycle of therapeutic application types that actually did not correspond to a chemical entity per se. The final, inter-annotator agreement measure obtained for this corpus was calculated on a set of 50 records that were double annotated (blinded) by two different expert annotators, reaching a pairwise agreement of 93% on the exact entity mention comparison level and 76% agreement when also the entity concept normalization was taken into account. Entity normalization was carried out primarily against the SNOMED-CT knowledgebase. Note that there is SNOMED CT version directly released by the Spanish Ministry of Health.

The manual annotation of the entire corpus was carried out in a three-step approach. First, an initial annotation process was carried out on an adapted version of the AnnotateIt tool. The resulting annotations were then exported, trailing whitespaces were removed and double annotations of the same string were send as an alert to the human annotators for revision/correction. Then, the annotations were uploaded into the BRAT annotation tool, which was slightly less efficient for mention labeling in terms of manual annotation speed. The human annotators performed then a final revision of the annotation in BRAT, to correct mistakes and to add missing annotation mentions. Finally, the senior annotator did a last round of annotation revision of the entire corpus.

The annotation of the entire set of entity mentions was carried out by medicinal chemistry experts, who in case of doubts regarding more clinically related concept mentions consulted the directly the practicing physicians collaborating with this annotation project. Moreover, technical assistance in terms of the annotation interface was offered during the entire corpus development process. Figure 3 shows the previous example case together with its corresponding textual annotation in the BRAT format and the clarification of the normalization of one specific entity mention.

Figure 3: An example of SPACCC annotation visualization together with its corresponding annotation in BRAT format, highlighting the normalization of entity mentions to SNOMED-CT, in this case of the antibiotic “Ciprofloxacino”.


Description of the Corpus

For this task we have prepared a manually classified collection of clinical case sections derived from Open access Spanish medical publications, named the Spanish Clinical Case Corpus (SPACCC). All clinical case records derived from various databases were gathered in a first step, preprocessed and the actual clinical case section was extracted removing embedded figure references or citations. These records where classified manually using the MyMiner file labeling online application by a practicing oncologist and revised by a clinical documentalist in order to assure that these records were related to the medical domain and they resembled the kind of structure and content that is relevant to process clinical content. During this process, clinical cases from other fields like psychology, historical forensics, some very particular cases of epidemiology studies or clinical case series not focused on a single patient/clinical case were removed. The final collection of 1000 clinical cases that make up the corpus had a total of 16504 sentences, with an average of 16.5 sentences per clinical case. The SPACCC corpus contains a total of 396,988 words, with an average of 396.2 words per clinical case. It is noteworthy to say that this kind of narrative shows properties of both, the biomedical and medical literature as well as clinical records. Moreover the clinical cases were not restricted to a single medical discipline, and thus cover a variety of medical topics, including oncology, urology, cardiology, pneumology or infections diseases, which is key in order to cover a diverse collection of chemicals and drugs. The SPACCC corpus will be distributed in plain text in UTF8 encoding, where each clinical case would be stored as a single file.

Figure 1. An example of SPACCC annotation visualized using the BRAT annotation interface.

The total number of labeled mentions of the last version of the SPACCC corpus is of 6,931. They do correspond to a more granular annotation scheme covering four different mention types directly proposed through consensus by both clinician and medicinal chemistry basic researches. Figure 1 shows a screenshot of a clinical case annotated using the BRAT interface. The overall annotation statistics are:

  • Entity type 1: 4,426 mentions of chemicals that can be manually normalized to a unique concept identifier (primarily SNOMED-CT), having the tag “NORMALIZABLES”.
  • Entity type 2: 55 mentions of chemicals that could not be normalized manually to a unique concept identifier, having the label “NO_NORMALIZABLES”.
  • Entity type 3: 2,291 mentions of proteins and genes following an adaptation of the BioCreative GPRO track annotation guidelines, having the label “PROTEINAS”. This class includes also peptides, peptide hormones and antibodies.
  • Entity type 4: 159 cases of general substance class mentions of clinical and biomedical relevance, including certain pharmaceutical formulations, general treatments, chemotherapy programs, vaccines and a predefined set of general substances (e.g.: Estragón, Silimarina, Bromelaína, Melanina, Vaselina, Lanolina, Alcohol, Tabaco, Marihuana, Cannabis, Opio and Gluten). Mentions of this class were labeled as “UNCLEAR” and will not be part of the entities evaluated by this track, but serve as additional annotations of medical relevance.

Currently the annotation format used is based on BRAT, but the distribution of this corpus also in other formats like PubAnnotation, BioC, or JSON will also be explored.

The entire SPACCC corpus will be randomly sampled into three subsets, the training, development and test set. The training and development set will comprise a total of 350 records each, while the test set, which will be used for evaluation purposes of participating teams will consist of a total of 300 records. Together with the test set release we plan to add an additional collection of 2,000 documents (background set) to make sure that participating teams will not be able to do manual corrections and also that these systems are able to scale to larger data collections.

Datasets

The PharmaCoNER corpus has been randomly sampled into three subset: the train, the development, and the test set. The training set contains 500 clinical cases, and the development and test set 250 clinical cases each.

Sample set

The sample set is composed of 15 clinical cases extracted from the training set. This sample set is also included in the evaluation script (see Resources). Download the sample set from here.

Train set

The train set is composed of 500 clinical cases. Download the train set from here.

Development set

The Development set is composed of 250 clinical cases. Download the development set from here.

Background set

The background set is composed of 2,751 clinical cases. It is distributed in plain text format. Download the background set from here.

Test set with Gold Standard annotations

The Test set is with Gold Standard annotations is composed of 250 clinical cases. Download the Test set with Gold Standard annotations from here.

Proceedings

Workshop

We would like to inform you that the participant systems description proceedings paper submission site is open at SoftConf, which is the official conference management system of EMNLP-IJCNLP 2019.

https://www.softconf.com/emnlp2019/ws-BioNLP-OST2019

The submission instructions are also updated in the “Calls” page of the homepage of BioNLP-OST 2019:

https://2019.bionlp-ost.org/calls

Note that we will mostly use the policy of EMNLP-IJCNLP 2019, with only a few exceptions:

  • We will take a single-blind review policy, which means authors do not hide their identity in their submissions, but reviewers’ identities will be blinded.
  • Unlike the main conference of EMNLP-IJCNLP 2019, we will not accept supplementary materials.

Note also that Submissions can be for long (8 pages + references) or short papers (4 pages + references).

There will be oral and poster presentation sessions.

Please check out the schedule below:

  • Aug. 19: Workshop paper submission due.
  • Sep. 16: Acceptance notification.
  • Sep. 26: Camera-ready submission due.
  • Nov. 3 or 4: Workshop in collocation with EMNLP-IJCNLP 2019 (Hong Kong).

All the above information can be found at the BioNLP-OST 2019 site.

Journal Special Issue

In previous experiences of shared task organization, it was observed that investigation is often continued after the workshop, based on new insights obtained through discussions during the workshop. The workshop functions as a venue for the different types of contributors, mainly task providers and solution providers, to meet together and exchange their experiences and insights. As a venue to compile the results of the follow-up investigation, a journal special issue will be organized to be published a few months after the workshop. The specific journal will be announced after negotiation with publishers.

More information at the BioNLP-OST 2019 webpage.

Scientific Committee

  • Nigel Collier, University of Cambridge
  • Jin-Dong Kim, Research Organization of Information and Systems
  • Peter Murray-Rust, University of Cambridge
  • Obdulia Rabal, University of Navarra / Centro de Investigación Médica Aplicada.
  • Alfonso Valencia, Barcelona Supercomputing Center.
  • David Wishart, University of Alberta.

Task Organizers

  • Aitor Gonzalez-Agirre, Barcelona Supercomputing Center.
  • Ander Intxaurrondo, Barcelona Supercomputing Center.
  • Jose Antonio Lopez-Martin, Hospital 12 de Octubre.
  • Montserrat Marimon, Barcelona Supercomputing Center.
  • Jesus Santamaria, Centro Nacional de Investigaciones Oncológicas.
  • Felipe Soares, Barcelona Supercomputing Center.
  • Marta Villegas, Barcelona Supercomputing Center.
  • Martin Krallinger, Barcelona Supercomputing Center.

Resources

Evaluation Script

  • Official evaluation script: This is the official evaluation script of the task. See Evaluation for more information about the evaluation and Evaluation script and Examples sections for even more clarity. Available at GitHub.

Baseline Systems

  • Official baseline system: This is the official baseline system of the task. Available soon at GitHub.

Linguistic Resources

  • AbreMES-DB: The Spanish Medical Abbreviation DataBase. Abbreviations are extracted from the metadata of different biomedical publications written in Spanish, which contain the titles and abstracts. Download from ZENODO.
  • Affixes EN-ES: Spanish drug naming file with prefix and suffix rules. Download from here.
  • Nomenclator for Prescription: Dictionary of chemicals, compounds, and drugs in Spanish. Download from here.
  • SPACCC_POS-TAGGER: Part-of-Speech Tagger for medical domain corpus in Spanish based on FreeLing. Download from GitHub.

Other Resources

  • Annotation guidelines: Official annotation guidelines used to annotate the PharmaCoNER data sets. Download from here.

Examples

In this section, we show examples of how the evaluation will be carried out to make it clearer.

Sub-track 1: NER offset

In this sub-track we want to match exactly the beginning and end locations of each entity tag, as well as detecting correctly the annotation type.

Gold Standard example

For the following examples, we will consider that this set of PharmaCoNER tags is our Gold Standard (GS):

Example of tags in a Gold Standard file for the NER sub-track

This GS file is in brat format. We have six NORMALIZABLES entities and three PROTEINAS entities. Each entity tag is composed of the ID, the entity type, the START and END offsets, and the TEXT snippet between the previous offsets.

NOTE: The ID and TEXT fields are not used for any of the evaluation metrics. The number in the ID field is arbitrary, and the evaluation of the TEXT field is implicit in the offset evaluation, as the text is the same for the GS and the systems.

System submission example

The following system annotations will be accepted by the evaluation script even if the IDs numbers do not match.

Example of tags in a system submission file for the NER sub-track

For this example the scores obtained by this system are the following:

Precisión has been computed dividing true positives (6) by the sum of true positives and false positives (0), scoring 6/(6+0) = 1.0. Recall has been computed dividing true positives by the sum of true positives and false negative (3: Tags with IDs T1, T8, and T9 in the GS), scoring 6/(6+3) = 0.6667. Finally, F1 is computed using precision and recall, scoring 2*((1*06667)/(1+0.6667))= 2*(0.6677/1.6667) = 0.8000.

NOTE: This is just an example. We are aware that achieving a precision score of 1.0 is quite a difficult task.

Sub-track 2: Concept Indexing

The second evaluation scenario will consist of a concept indexing task where for each document, the list of unique SNOMED concept identifiers have to be generated by participating teams, which will be compared to the manually annotated concept ids corresponding to chemical compounds and pharmacological substances.

Gold Standard example

For the following examples, we will consider that this set of PharmaCoNER tags is our Gold Standard (GS):

Example of tags in a Gold Standard file for the Concept Indexing sub-track

This GS file is in TSV format: the first column is the Document ID and it is used only to check if it matches the filename, and the second column is the Identifier of a concept found in the text. In this example, we have three different identifiers.

System submission example

For following system, only two annotations will be accepted (second and third lines) by the evaluation script. The other three annotations are not in the GS, and will be classified as False Positive:

Example of tags in a system submission file for the Concept Indexing sub-track

For this example the scores obtained by this system are the following:

Precisión has been computed dividing true positives (2) by the sum of true positives and false positives (0), scoring 2/(2+3) = 0.4. Recall has been computed dividing true positives by the sum of true positives and false negative (1: Identifier 372817009), scoring 2/(2+1) = 0.6667. Finally, F1 is computed using precision and recall, scoring 2*((0.4*06667)/(0.4+0.6667))= 2*(0.2667/1.0667) = 0.5000.

Evaluation Library

Introduction

This script is distributed as apart of the Pharmacological Substances, Compounds and proteins and Named Entity Recognition (PharmaCoNER) task. It is slightly based on the evaluation script from the i2b2 2014 Cardiac Risk and Personal Health-care Information (PHI) tasks. It is intended to be used via command line:

$> python evaluate.py [i2b2|brat] [ner|spans] GOLD SYSTEM

It produces Precision, Recall and F1 (P/R/F1) measures for both sub-tracks.

SYSTEM and GOLD may be individual files or also directories in which case all files in SYSTEM will be compared to files the GOLD directory based on their file names.

The PharmaCoNER evaluation script can be downloaded from GitHub.

Prerequisites

The evaluation script requires to have Python 3 installed on your system.

Directory structure

gold/

This directory contains the gold standard files for each of the sub-tracks, in separated directories. Each sub-directory may contain different sub-directories for each data set: sample, train, development, test, etc. Files in the latter directories must be in the appropriate format: .ann and .txt for the NER sub-track, and .tsv for Concept Indexing sub-track.

system/

This directory contains the submission files for each of the sub-tracks, in separated directories. Each sub-directory may contain different sub-directories for each data set: sample, train, development, test, etc. Each of the previous directories may contain any number of directories, one for each system run. Files in the latter directories must be in the appropriate format: .ann and .txt for the NER sub-track, and .tsv for Concept Indexing sub-track.

Usage

It is possible to configure the behavior of this software using the different options:

  • The ner and indexing options allow to select the sub-track.
  • The gs_dir and sys_dir options allow to select folders.
  • Verbose option allow to control the verbosity level.

The user can select the different options using the command line:

usage: evaluate.py [-h] [-v] {ner,indexing} gs_dir sys_dir [sys_dir ...]

Evaluation script for the PharmaCoNER track.

positional arguments:
  {ner,indexing}  Subtrack
  gs_dir          Directory to load GS from
  sys_dir         Directories with system outputs (one or more)

optional arguments:
  -h, --help      show this help message and exit
  -v, --verbose   List also scores for each document

Examples

Basic Examples:

Example 1: Evaluate the single system output file ’01.ann’ against the gold standard file ’01.ann’ for the NER subtrack. Input files in BRAT format.

$> python evaluate.py ner gold/01.ann system/run1/01.ann

Report (SYSTEM: run1):
------------------------------------------------------------
Document ID                        Measure        Micro
------------------------------------------------------------
01                                 Precision      0.3333 
                                   Recall         0.1364              
                                   F1             0.1935              
------------------------------------------------------------

Example 2: Evaluate the single system output file ’01.tsv’ against the gold standard file ’01.tsv’ for the Concept Indexing subtrack. Input files in TSV format.

$> python evaluate.py indexing gold/01.tsv system/run1/01.tsv

Report (SYSTEM: run1):
------------------------------------------------------------
Document ID                        Measure        Micro
------------------------------------------------------------
01                                 Precision      0.5714 
                                   Recall         0.1671             
                                   F1             0.2586              
------------------------------------------------------------

Example 3: Evaluate the set of system outputs in the folder system/run1 against the set of gold standard annotations in gold/ using the Concept Indexing subtrack. Input files in TSV format.

$> python evaluate.py indexing gold/ system/run1/

Report (SYSTEM: run1):
------------------------------------------------------------
SubTrack 2 [Indexing]                Measure        Micro
------------------------------------------------------------
Total (15 docs)                    Precision      0.3468
                                   Recall         0.1239              
                                   F1             0.1826              
------------------------------------------------------------

Example 4: Evaluate the set of system outputs in the folder system/run1, system/run2 and in the folder system/run3 against the set of gold standard annotations in gold/ using the NER subtrack. Input files in BRAT format.

$> python evaluate.py ner gold/ system/run1/ system/run2/ system/run3/

Report (SYSTEM: run1):
------------------------------------------------------------
SubTrack 1 [NER]                   Measure        Micro
------------------------------------------------------------
Total (15 docs)                    Precision      0.3258 
                                   Recall         0.1239              
                                   F1             0.1795              
------------------------------------------------------------


                                                                      
Report (SYSTEM: run2):
------------------------------------------------------------
SubTrack 1 [NER]                   Measure        Micro
------------------------------------------------------------
Total (15 docs)                    Precision      0.3333 
                                   Recall         0.1364              
                                   F1             0.1935              
------------------------------------------------------------


                                                                      
Report (SYSTEM: run3):
------------------------------------------------------------
SubTrack 1 [NER]                   Measure        Micro
------------------------------------------------------------
Total (15 docs)                    Precision      0.4
                                   Recall         0.1429              
                                   F1             0.2105              
------------------------------------------------------------

License

The PharmaCoNER evaluation script is distributed under the Apache License, Version 2.0 (the “License”).

Evaluation

Evaluation of automatic predictions for the PharmaConNER task will have two different scenarios or sub-tracks: NER offset and entity type classification sub-track and the concept indexing sub-track:

  • NER offset and entity type classification: The first evaluation scenario will consist in the classical entity-based or instanced-based evaluation that requires that system outputs match exactly the beginning and end locations of each entity tag, as well as match the entity annotation type of the gold standard annotations.
  • Concept indexing: The second evaluation scenario will consist of a concept indexing task where for each document, the list of unique SNOMED concept identifiers have to be generated by participating teams, which will be compared to the manually annotated concept ids corresponding to chemical compounds and pharmacological substances.

The primary evaluation metrics will consist of micro-averaged precision, recall and F1-scores:

Precision (P) = true positives/(true positives + false positives)

Recall (R) = true positives/(true positives + false negatives)

F-score (F1) = 2*((P*R)/(P+R))

For both sub-tracks, the official evaluation and the ranking of the submitted systems will be based exclusively in the F-score (F1) measure.

As part of the evaluation process, we plan to carry out a statistical significance testing between system runs using approximate randomization, following setting previously used in the context of i2b2 challenges. The used evaluation scripts together with proper documentation and README files with instructions will be freely available on GitHub to enable evaluation tools source code local testing by participating teams.

As prediction baseline we will use vocabulary transfer results from the training/development set derived entity named and using gazetteer-lookup on the test set corpus.

See evaluation examples here.