Elamur Research

Contributions to Clinical Named Entity Recognition in Portuguese

Paper · 2019 · Fábio Lopes, César Teixeira and Hugo Gonçalo Oliveira

Summary

A clinical report can record a patient’s condition, a test result and a treatment in the same passage. Finding these details across many reports requires a way to identify both the words that carry the information and the role they play. The paper studies that task for Portuguese neurology texts, where the authors faced a shortage of accessible examples marked for named entity recognition.

The authors manually labeled 281 clinical cases from the journal Sinapse. Their categories cover information such as conditions, anatomical sites, tests, results, treatments and timing. They also collected 3,377 published cases from the same journal to learn numerical representations of Portuguese clinical vocabulary. The recognition system combines those representations with grammatical and spelling features, reads the words in both directions, and chooses a sequence of labels that can mark phrases extending over several words. A parallel setup used general Portuguese representations learned from Wikipedia and Common Crawl. The comparison asks what the recognition system gains from the source of its word embeddings.

The clinical embeddings came from much less text and produced higher aggregate F1 scores in cross-validation on the journal cases. They also led on an independent set of 20 hospital texts from the neurology service in Coimbra. On that hospital set, the system with clinical embeddings achieved micro-averaged F1 of 70.41% when individual token labels were scored and 62.71% when complete labeled mentions had to match. The general-embedding system reached 69.93% and 58.94%, respectively. A separate conditional random field baseline using words and lemmas directly scored 63.61% and 52.13%. F1 combines how much of the reference annotation a system recovers with how often its predictions agree with that annotation.

The hospital evaluation shows that published cases can supply training material for extracting information from the kinds of neurology records tested. It also shows the cost of changing document sources. Aggregate scores fell on the hospital material, and the clinical embeddings helped some categories much more than others. The authors released the datasets and the clinical embeddings, giving subsequent experiments a way to examine both the annotation scheme and the transfer from published cases to hospital documents.

Deep dive: Contributions to Clinical Named Entity Recognition in Portuguese

How a Portuguese clinical entity recognizer learned from journal case reports and why clinical word embeddings helped it read hospital records. · about 33 minutes to read

The problem and its context

What needs to be found in a clinical report

A clinician writing about a patient typically has a reason to put several pieces of information in the same sentence. Where a test result appears alongside the name of a condition, the reader can use the rest of the sentence to understand what was observed and how it relates to the patient’s history. A system that searches for the same information across documents has to make some of those distinctions explicitly. It must decide where a mention begins, where it ends and which category describes its function in the report.

The authors place this task within a larger effort to make clinical text searchable as structured data. Admission notes, diagnostic reports, discharge letters and published case descriptions contain information about what happened to patients and what clinicians did in response. Reviewing all such prose by hand is impractical at scale. Marking the relevant phrases can support later work that organizes the information for queries. The step examined here is finding and classifying mentions in the text, within the broader task of information extraction.

The word entity has a broad meaning in this setting. A body structure or the name of a test can be an entity. So can an expression of time, a quantity, a negation cue or a word describing how a condition progressed. This breadth matters because the aim is to recover details that are useful in a clinical account. A time expression can help specify the duration of a symptom or the frequency of a treatment. A word indicating progression can have clinical significance even if it would be unremarkable outside the description of a patient’s condition.

Labels must also identify how words work together. An adjective can complete the name of a condition, or it can supply a separate characterization. A phrase in the description of a test can identify a finding, while the same phrase elsewhere can be part of the patient’s clinical history. The annotation scheme makes a choice about which role to record. That choice creates the reference against which the system is trained and evaluated. The clinical vocabulary and the interpretation of its context both matter.

Why the supply of text mattered

The paper distinguishes the production of clinical records from their availability for research. Hospitals produce considerable amounts of text, much of it containing personal information subject to restrictions. For a supervised recognition experiment, a researcher also needs people to mark the examples. Reading an available document and turning it into training material are separate jobs. An annotation scheme has to specify which mentions count, and annotators have to decide how its categories apply to real clinical language.

The paper describes shared tasks as one route by which earlier researchers obtained annotated data. In the i2b2/VA concept extraction challenge, Uzuner and colleagues used 871 medical records marked for problems, treatments and tests. Stubbs and Uzuner describe 1,304 longitudinal records annotated for heart-risk information. Resources of this kind made it possible to compare recognition systems against common reference labels. The authors also point to clinical shared-task activity that included Clinical TempEval.

The literature reviewed in the paper includes work outside English. The Swedish study by Skeppstedt and colleagues used 1,104 clinical notes and annotated categories including disorders, findings, anatomical structures and drugs. The Polish work described by Mykowiecka and colleagues used 700 mammography reports and 100 discharge documents for diabetic patients. The categories reflect the documents and the clinical information that the researchers wanted to retrieve. A collection built to find findings in mammography reports supplies supervision for a different set of decisions from one built to track heart-risk factors.

Ferreira and colleagues had already marked 90 notes for Portuguese clinical information extraction. The resource is especially relevant to Lopes and colleagues because it included categories such as Condition, Anatomical Site and Finding. Ethical restrictions prevented public access to those notes, according to the paper. Ferreira’s published guidelines were available, however. They gave the authors a starting definition of the task and a way to put an existing Portuguese annotation scheme to work on a new collection.

Portuguese research outside clinical text offered a further starting point. De Castro and colleagues had used bidirectional recurrent processing and a conditional random field for general Portuguese entity recognition. Hartmann and colleagues had tested Portuguese word representations on word analogies and on tasks such as assigning grammatical categories and assessing sentence similarity. The clinical study puts those strands together around a specific question. It asks how a sequence recognizer for Portuguese behaves when its word representations come from either clinical case descriptions or general text.

What earlier systems suggested

The clinical recognition work surveyed in the paper covered systems that make judgments from manually selected features and networks that learn from a sequence of words. A conditional random field, or CRF, could use the current word, patterns of neighboring words and features such as a document section name. Some earlier configurations added clinical terminology or the outputs of other clinical text tools. This gave researchers several ways to supply knowledge about what a phrase meant and where it appeared.

Recurrent networks offered a way to carry information along the text. As the paper describes it, Luu and colleagues compared a recurrent network with a feed-forward network using the same features on a task involving nursing shift notes. Information from earlier in the sequence was available to the recurrent system, and it performed better in that comparison. The paper also describes comparisons in which bidirectional long short-term memory, or BiLSTM, performed strongly. Bidirectionality lets the representation at a word incorporate evidence from both before and after that word.

A BiLSTM can be followed by a CRF so that the final tag decisions take account of neighboring tags. A separate line of work also offered ways to represent spelling and word structure. Xu and colleagues and Unanue and colleagues examined systems that combined word and character representations with a BiLSTM and a CRF. Their experiments supported the importance of character information and sequence-level output. The architecture adopted for Portuguese follows work such as Neural Architectures for Named Entity Recognition.

The source of the word representations was already an empirical question. Newman-Griffis and Zirikly had compared embeddings from records related to their clinical task with embeddings from larger collections drawn from other settings. Their smaller task-related corpora yielded performance similar to that of much larger alternatives. Unanue and colleagues also reported benefits from retraining word representations with domain-specific material. These findings made public neurology cases a plausible source of useful vocabulary information even with a limited amount of text.

The Portuguese study therefore has a resource question and a transfer question. The resource question is whether published cases can furnish useful supervision and useful word representations. The transfer question is whether a system trained with that supervision can recognize entities in hospital documents. The comparison with general-language embeddings addresses the value of the vocabulary source within this setup. The independent hospital test addresses a separate issue, namely how far the training carries when the actual documents change.

The method, step by step

Give each set of documents a job

The authors used different collections for annotation, embedding training and independent testing. The collection used to train and validate the recognizer contains 281 clinical cases from issues 1 and 2 of volume 17 of Sinapse, the journal of the Portuguese Society of Neurology. These cases supply the examples in which the words are paired with human-assigned labels. The labeled journal material is also where settings for the recognizer are compared.

The collection used for clinical embeddings contains 3,377 case texts from Sinapse volumes published between 2001 and 2018. The authors selected clinical cases from the journal and left experimental reports out of this collection. The embedding procedure learns from the words and their surrounding text. It can therefore use a much larger collection without requiring somebody to classify every mention as a test, condition or other entity.

The independent collection contains 20 texts from the neurology service at the Coimbra University Hospital Centre. It includes admission notes, diagnostic reports and discharge letters. The documents had been used in work on the European Epilepsy Database. Their role in this experiment is to supply a separate evaluation after the settings have been chosen in cross-validation. The hospital reports motivated the neurology focus of the resources drawn from the journal.

From Portuguese clinical text to labeled mentions

The steps in order.

From Portuguese clinical text to labeled mentionsStep 1: Collect journal cases and independent hospital documents1. Collect journal cases and independent hospital documentsStep 2: Split text into tokens and identify lemmas2. Split text into tokens and identify lemmasStep 3: Mark entity categories and boundaries for supervision3. Mark entity categories and boundaries for supervisionStep 4: Learn clinical FastText vectors from journal cases4. Learn clinical FastText vectors from journal casesStep 5: Combine word and lemma vectors with features5. Combine word and lemma vectors with featuresStep 6: Read each sequence in both directions6. Read each sequence in both directionsStep 7: Choose a coherent sequence of entity tags7. Choose a coherent sequence of entity tagsStep 8: Evaluate on journal folds and hospital records8. Evaluate on journal folds and hospital records

Prepare words, grammatical tags and lemmas

The input documents began as raw text. The authors used Portuguese tools from NLPPort to obtain a sequence of tokens, assign a grammatical category to each token and recover its lemma. Tok-Port handles tokenization. In the paper’s annotation example, commas occupy their own positions in the token sequence. This matters because both the input features and the prediction targets are aligned to those positions.

TagPort supplies the grammatical label, such as noun, adjective, preposition or punctuation. The labels provide a compact description of a token’s likely function. For instance, a word describing a condition may occur as an adjective after a noun, a pattern that a recognizer can learn to use alongside the words themselves. These features come from part-of-speech tagging.

LemPort then uses the token and its grammatical label to identify a base form. In the example accompanying the annotation, the Portuguese plural anos has the lemma ano, and começou has the lemma começar. A word and its lemma encode related information. The original token preserves the form used in the sentence, while the lemma brings inflected forms under a shared entry. Both are available to the recognizer through lemmatization.

The system also receives features derived from the visible form of the token. The authors mention whether its initial character is upper-case, whether all its characters are upper-case and whether it is a digit. A grammatical tag says something about a token’s role, while these features preserve clues that are visible in its spelling. The combination gives the system ways to distinguish, for instance, a number that may express a value from a word that may name what was measured.

Define the categories and mark the spans

The annotation starts from Ferreira’s guidelines, which had been developed with input from physicians and linguists. The authors excluded the Location category because geographic places and references such as a home address or setting were outside the clinical information they wanted to capture. They retained DateTime. Its usefulness comes from its relationship to clinical events, such as a disease duration or a treatment frequency.

They also introduced Genetics and Additional Observations. Genetics covers information about genes discussed in connection with disease, such as a reference to the study of the PMP22 gene. Additional Observations accommodates relevant information for which the other categories offer no clear place. The authors discuss a diagnosis concerning a patient’s husband and a patient’s discontinuation of medical follow-up as examples of judgments that can involve this category.

The category inventories in the data tables distinguish Anatomical Site, Condition, Characterization, DateTime, Evolution and Genetics. They also distinguish Negation, Additional Observations, Results, Route of Administration, Test, Therapeutics and Value. Out is used for tokens outside the annotated mentions. Several categories describe different aspects of a clinical event. Test can mark the procedure, Results can mark what it showed, Value can mark a quantity and Anatomical Site can mark the body structure involved. The full task requires recovering whichever of those spans the annotation actually records.

To encode a span, the annotator gives its first token a beginning tag, written with B- before the category abbreviation. Any further tokens in the span receive an inside tag with I- and the same abbreviation. An unmarked token receives O. This lets the sequence represent adjacent mentions of the same category as separate spans whenever their beginnings are labeled separately. The tag prefix and the category together express the decision made during linguistic annotation.

The paper’s example uses the conditions dislipidemia and síndrome depressiva. The former occupies a single token tagged B-C. In the latter, síndrome receives B-C and depressiva receives I-C. Here C means Condition, and the different prefixes tell the reader which word begins a mention and which word completes it. The conjunction between the conditions is marked O. The example shows how the system can represent distinct conditions joined in ordinary prose and keep the adjective inside the condition it helps name.

A tag sequence can also reveal an error that would be invisible in a list of the words selected for extraction. If the system gives depressiva an inside tag with no preceding start for its condition, the output lacks a valid beginning for that mention. If it gives the adjective a beginning tag of its own, it creates a new mention. These are different mistakes even when both predictions place both words within the broad category of Condition. The annotation scheme supplies the distinctions needed to train and evaluate span recognition.

Check a portion of the annotation

The first author annotated the full collection. A group with backgrounds in biomedical engineering, data science, computer science and physiotherapy then reviewed 30% of the training and validation collection. Each reviewer handled 15 texts. The authors compared the reviewer’s tags with the original ones and kept the original labels for training and evaluation. This made the revision a check on agreement with the annotation that the experiments would use.

The paper describes the agreement calculation in terms of matching token tags within each category. Written as a ratio, it is

A = M ÷ T

A is agreement for the category being examined. M counts the reviewed tokens for which the reviewer and the original annotator assigned the same tag. T is the total number of reviewed tokens counted for that category. The division gives a proportion, and the paper reports the agreement as a percentage. Since these are token counts, agreement is measured at the level of the tags assigned to words, including the boundary information encoded in the tags.

The authors also describe why agreement can vary by category. A word expressing uncertainty about a vascular process could be annotated separately as Characterization or included in a Condition span. A word describing deterioration can be treated as an attribute of a condition or as part of an Evolution mention. In the account of what an imaging procedure showed, an injury or a hematoma can look like the name of a Condition even though its role in the sentence is to state a result. The review quantifies how often tags matched, and these examples explain some of the decisions behind disagreements.

Learn word representations from clinical cases

A word embedding represents a word as a vector of numbers. The system that learns the vector from text aims to capture useful relationships among words from the contexts where they occur. For entity recognition, a representation can help connect a less familiar term to words seen in similar surroundings in the training examples. The category decision still comes from the supervised recognizer and the context where the token appears.

The clinical embedding collection contains 686,762 tokens. Using the Gensim implementation of FastText, the authors trained embeddings with 300 dimensions, a minimum word count of 5 and a minimum character fragment length of 1. They used skip-gram with negative sampling and kept the remaining settings at their defaults. In skip-gram training, the input word is used to predict surrounding words. Negative sampling supplies alternatives to distinguish from the words observed in context. This is the training principle described in Efficient Estimation of Word Representations in Vector Space.

FastText builds a representation using learned information from character fragments within a word. The paper explains the benefit by contrasting what happens when a term was absent during training. A whole-word entry can be missing, while a previously unseen term can still contain pieces for which the system has learned vectors. Combining information from those pieces can supply a representation for some unfamiliar forms. With the clinical configuration’s minimum fragment length, even individual characters can contribute. This use of spelling is described in Enriching Word Vectors with Subword Information.

In preparing the clinical text for embeddings, the authors converted words beginning with an upper-case character to lower-case. They justify their choice by pointing out that a word’s capitalized form at the beginning of a sentence would otherwise be recorded as a different form. After preprocessing, only 7,312 tokens, in the paper’s terminology, occur more than 5 times. The low count of often recurring forms helps motivate a representation that can draw information from pieces of words. Capitalization is also explicitly available as a feature at the recognition stage.

Set up the general-language comparison

The comparison embeddings are Portuguese FastText vectors learned from Wikipedia and Common Crawl. The paper describes the source as containing billions of tokens. These vectors share the clinical vectors’ dimensionality of 300 and minimum word count of 5. They offer the recognizer experience with vocabulary found in a much larger collection assembled for general use, as described in Learning Word Vectors for 157 Languages.

According to the authors, training for the general resource used a five-character window. In their data, they report that 27 words and 80 lemmas could not be assigned a vector from that resource. They gave each missing entry the embedding of UNK, a placeholder for an unknown word. This retained the token in the sequence, along with its position and surrounding words. Removing it would have changed the input around adjacent tokens as well as eliminating the information at that position.

The placeholder also clarifies the distinction between keeping a token and representing its lexical identity. Several words that lack their own vector can receive the same placeholder vector. Other input features and contextual evidence can still distinguish occurrences, while the lexical representation at that position is less informative. The authors use this difference in coverage as one possible explanation for the performance comparison. The experiment changes the source and some properties of the embeddings together.

Read the words and decide on tags

For each token position, the authors retrieve an embedding for the token and another for its lemma. They concatenate the vectors, which means putting their entries alongside one another so both sets of information reach the next layer. They add grammatical, orthographic and morphological features. The vector for a word provides learned lexical information, the lemma helps connect inflected forms and the additional features retain visible and grammatical cues.

The BiLSTM processes this sequence in opposite directions. A left-to-right pass can carry information from earlier words to the current position, while a right-to-left pass can carry information from later words. The resulting contextual representation can incorporate evidence on either side. In síndrome depressiva, the presence of the following adjective can inform the decision about the noun, and the preceding noun can inform the decision about the adjective. The architecture applies this kind of contextual processing throughout the sequence.

The CRF then uses the BiLSTM output to select tags jointly. An inside tag can continue a mention that the sequence has already started. The paper describes the CRF as enforcing that dependency as well as learning which neighboring tags tend to occur together. The task therefore has a word-context stage and a label-context stage. The former gathers evidence from the input sequence, while the latter governs how the selected labels fit together.

The paper gives an architectural description of the recurrent and CRF layers. Its account identifies the inputs, the processing directions and the output constraint. The numerical settings it supplies concern training and the sizes of the recurrent configurations. It leaves the internal scoring equations for those layers unspecified.

Select settings on the journal cases

The recognizer uses a learning rate of 0.001 with the Adam optimizer. The search varies the number of hidden units in the recurrent layer and the dropout percentage. Hidden units determine the size of the layer’s learned internal representation. Dropout is a training regularizer that withholds part of the network’s activity during training so it has less opportunity to depend too heavily on particular units.

The authors used 50 training epochs and 10-fold cross-validation for the search. An epoch is a pass through the training material for a run. Cross-validation rotates the held-out portion of the labeled journal data so that candidate settings can be judged across multiple partitions. The hidden-unit search used powers of 2 from exponent 3 through exponent 7, and the dropout range ran from 10% to 50%. The authors chose a modest range of layer sizes because the labeled collection was small and they were concerned about fitting it too closely.

There was a separate search for each embedding source. The selected hidden-unit count was the power of 2 with exponent 6 for the clinical embeddings and exponent 5 for the general embeddings. Both selected settings used 50% dropout. This procedure gives each embedding source a configuration selected on the journal material. It also means that the hospital comparison is between separately tuned systems. The hospital records supply the independent evaluation using the chosen settings.

Experiments and results

What the evaluation collections contain

The journal collection used for training and validation contains 58,304 tokens. The authors report 15,962 annotated entity occurrences and 8,748 distinct occurrences. Those counts describe different units. A token is a position in the running text, an entity occurrence is an annotated mention that may occupy several positions, and the distinct count describes the variety of those mentions. Condition accounts for 3,887 journal occurrences, while Anatomical Site accounts for 2,488. Genetics has 63 occurrences and Route of Administration has 71.

The hospital test collection contains 2,705 tokens, with 643 entity occurrences and 473 distinct occurrences. DateTime has 130 occurrences, Condition has 99 and Therapeutics has 88. Anatomical Site has 17, Results has 19 and Route of Administration has 3. The hospital material is about epilepsy and has no Genetics occurrences. Thus even a complete evaluation of these documents leaves Genetics unevaluated on the independent collection.

The difference between the sources includes the mix of labels. The paper reports that Condition makes up 24.35% of entity occurrences in the journal collection and 15.397% in the hospital test. DateTime makes up 9.52% of journal occurrences and 20.218% of hospital occurrences. Anatomical Site accounts for 15.59% of journal occurrences and 2.644% of hospital occurrences. A recognizer encounters a different distribution of opportunities for getting each category right when it moves to the hospital documents.

The proportion of tokens tagged Out also changes. It is 45.388% in the journal data used for training and validation and 53.900% in the independent hospital test. These are token shares, distinct from the proportions of annotated entity occurrences described above. The figures help explain why the collections should be understood as different evaluation environments, even though both consist of Portuguese clinical text and both focus on neurology.

How the scoring works

The authors report precision, recall and F1. Precision asks how much of what the system predicted agrees with the reference. Recall asks how much of the reference it recovered. F1 combines the pair, so that a system that marks many candidate phrases still needs to keep those predictions accurate, and a system that makes few mistakes still needs to recover enough of the reference mentions. The paper reports each metric with two ways of deciding what counts as a match.

Relaxed scoring compares predicted and reference tags at each token position. A system can receive credit for a correctly tagged word even if it misses another word in the same mention. Strict scoring evaluates an occurrence as a whole. For the example síndrome depressiva, a correct tag for síndrome receives token-level credit. The entire phrase must be correctly labeled for credit as a complete Condition mention. The two scores address different uses of the output. Token-level evaluation indicates how much of the labeling has been recovered, while strict evaluation measures whether the extracted phrases themselves match.

The paper reports micro, macro and weighted averages. A micro average pools decisions, so categories with many examples contribute more of the evidence going into the score. A macro average gives each category equal influence in the average. A weighted average assigns greater influence to categories with more support. For interpretation, the micro result gives the clearest account of pooled performance and the macro result provides a check on how performance looks across categories. The difference matters when a frequent label such as DateTime and a rare one such as Route of Administration have very different numbers of examples.

Cross-validation on the journal cases

The clinical embeddings lead in the journal cross-validation under both matching rules and all three ways of averaging F1. For relaxed micro F1, the reported values are 82.54±1.61 with clinical embeddings and 81.96±1.50 with general embeddings. For strict micro F1, they are 74.86±2.17 and 74.19±1.44, respectively. The values alongside the scores are the variation terms as printed in the cross-validation results. The chart shows the central values for strict micro F1.

Clinical and general embeddings on journal cross-validation, strict micro F1

Clinical embeddings achieve the higher central score for complete mentions.

Clinical and general embeddings on journal cross-validation, strict micro F1BiLSTM-CRF with general embeddings: 74.19BiLSTM-CRF with general embeddings74.19BiLSTM-CRF with clinical embeddings (this paper): 74.86BiLSTM-CRF with clinical embeddings(this paper)74.86
The numbers
System or settingF1 %
BiLSTM-CRF with general embeddings74.19
BiLSTM-CRF with clinical embeddings (this paper)74.86

The journal macro F1 figures give another view of the comparison. The clinical and general configurations have relaxed macro F1 of 79.54±1.89 and 78.02±2.76, respectively. Their strict macro F1 is 73.87±2.66 and 71.58±2.91. The direction of the central scores is the same whether category contributions are pooled or averaged equally. The reported variation also matters. The cross-validation values show the ranking of the averages, while the paper supplies no significance test for that ranking.

The balance between precision and recall is similar across the clinical and general runs on the journal data. With strict scoring, the clinical configuration has micro recall of 74.48±2.37 and micro precision of 75.25±2.36. The corresponding general configuration has micro recall of 73.35±1.57 and micro precision of 75.06±1.62. The clinical configuration’s higher central F1 accompanies a higher central value for both of its components.

Testing on records from the hospital

The independent evaluation includes the two BiLSTM-CRF systems and a CRF baseline. The baseline was trained with the same journal data and used the same kinds of features, with tokens and lemmas supplied in their raw form in place of embeddings. This comparison asks how the full recurrent systems fare against a sequence tagger with direct lexical features. The comparison between the recurrent systems asks how their separately selected clinical and general embedding configurations fare on the same hospital documents.

The clinical system records hospital micro F1 of 70.41% under relaxed scoring and 62.71% under strict scoring. The general embedding system reaches 69.93% relaxed and 58.94% strict. The baseline CRF reaches 63.61% relaxed and 52.13% strict. Clinical embeddings give the leading pooled F1 under both rules. The separation between the two embedding sources is more pronounced for complete spans.

Three systems on the independent hospital test, relaxed micro F1

The recurrent systems lead the baseline in token labeling, with clinical embeddings in front.

Three systems on the independent hospital test, relaxed micro F1CRF with raw words and lemmas: 63.61CRF with raw words and lemmas63.61BiLSTM-CRF with general embeddings: 69.93BiLSTM-CRF with general embeddings69.93BiLSTM-CRF with clinical embeddings (this paper): 70.41BiLSTM-CRF with clinical embeddings(this paper)70.41
The numbers
System or settingF1 %
CRF with raw words and lemmas63.61
BiLSTM-CRF with general embeddings69.93
BiLSTM-CRF with clinical embeddings (this paper)70.41

Three systems on the independent hospital test, strict micro F1

Clinical embeddings lead the comparison when a prediction must recover the full mention.

Three systems on the independent hospital test, strict micro F1CRF with raw words and lemmas: 52.13CRF with raw words and lemmas52.13BiLSTM-CRF with general embeddings: 58.94BiLSTM-CRF with general embeddings58.94BiLSTM-CRF with clinical embeddings (this paper): 62.71BiLSTM-CRF with clinical embeddings(this paper)62.71
The numbers
System or settingF1 %
CRF with raw words and lemmas52.13
BiLSTM-CRF with general embeddings58.94
BiLSTM-CRF with clinical embeddings (this paper)62.71

The hospital precision and recall figures show how the ranking arises. For relaxed micro scoring, the clinical configuration has recall of 70.97% and precision of 69.85%. The general configuration has recall of 67.68% and precision of 72.32%. The general configuration has the higher token-level precision, while the clinical configuration’s higher recall gives it the leading F1. For strict micro scoring, the clinical configuration leads on both recall and precision, with 62.36% and 63.05%. The general configuration has 56.14% recall and 62.03% precision under that rule.

The ranking also holds with the other aggregate F1 calculations. On the hospital test, relaxed macro F1 is 65.45% for the clinical embeddings, 61.93% for the general embeddings and 56.81% for the baseline. Strict macro F1 is 60.10%, 54.42% and 50.12% in the same order. The weighted F1 scores are 68.52%, 66.07% and 61.39% under relaxed scoring, and 61.10%, 56.26% and 51.31% under strict scoring. These groupings show that the aggregate ranking survives different choices about how much influence each category has.

The authors characterize the average hospital results as about 10% lower than those on validation. That is their general description of the drop across evaluations. The scores above give the specific measurements under each rule. The authors suggest that some hospital documents were organized as items with short descriptions, while the journal cases typically presented the clinical account in connected paragraphs. They also note spelling errors in the hospital material. The experiment measures the combined effect of moving to the independent dataset, where document organization, writing and category frequencies all differ.

The category results behind the averages

The hospital results for Value and Evolution show substantial advantages for the clinical embedding configuration on particular labels. For Value, strict F1 is 82.05% with clinical embeddings, 70.00% with general embeddings and 63.16% with the baseline. For Evolution, the corresponding strict scores are 78.00%, 64.37% and 65.85%. The paper associates Value with quantities such as doses and diagnostic measurements. It notes repeated wording in Evolution and its relationship to other categories like Condition and Results.

The recurrent systems perform well on Anatomical Site, even though it has few examples in the hospital set. Clinical embeddings obtain strict F1 of 76.92% and general embeddings obtain 75.00%, while the baseline reaches 51.06%. The authors point to the frequency of anatomical mentions in the journal training material. DateTime is also relatively strong, with strict F1 of 68.53%, 64.78% and 55.26% in the same order. Familiar time constructions can contribute evidence even when the texts refer to different ages or periods.

The general embeddings lead for some labels. For Condition, their strict F1 is 63.55%, compared with 61.40% for the clinical setting and 50.00% for the baseline. The paper’s authors expected stronger performance for categories such as Condition, Test and Therapeutics because the subjects of those mentions are relatively specific. Their specificity in the annotation scheme still leaves the recognizer with the job of identifying how those mentions are phrased in a document. The authors suggest that the change in writing style can help explain this result.

Therapeutics provides a case where the baseline has the leading category score. Its strict F1 is 69.68%, compared with 63.69% for general embeddings and 62.11% for clinical embeddings. The clinical system has strict recall of 67.05% for Therapeutics, with strict precision of 57.84%. The baseline has strict recall of 61.36% and precision of 80.60%. In this category, the balance of recall and precision favors the baseline under F1 even though the clinical system recovers more of the reference mentions.

The label Additional Observations presents a different difficulty. On the hospital test, the clinical configuration scores 19.35% strict F1, the general configuration scores 0.00% and the baseline scores 11.76%. The clinical configuration’s advantage leaves a large share of reference spans unrecovered. Characterization also remains difficult across systems. Strict F1 is 29.27% with clinical embeddings, 29.33% with general embeddings and 28.95% with the baseline. These results put a boundary on what can be inferred from improved aggregate recognition.

Negation and Route of Administration have the same relaxed and strict scores within each system. The test annotation has no inside-tagged tokens for either category, so their mentions occupy single tokens. Negation reaches 92.75% F1 with clinical embeddings and 94.12% with general embeddings. Route of Administration reaches 40.00% with each recurrent system and 50.00% with the baseline. The route category’s 3 test occurrences make its result sensitive to the few decisions represented in the collection.

What the ablations show

The paper reports no component-removal ablation of the BiLSTM-CRF. Its analyses compare embedding sources, search recurrent and dropout settings, inspect the nearest neighbors of selected words and examine where annotation and test performance are difficult. The CRF baseline provides a further comparison between complete recognition setups.

What the embedding comparison isolates

Both recurrent systems use the same journal annotations, the same general architecture and the same hospital evaluation. They receive the same kinds of input features. The study changes which embeddings supply the representations of tokens and lemmas, and selects settings separately for each source. This makes the comparison a test of what the authors could achieve with each resource through their training procedure. It establishes an aggregate advantage for the clinical configuration on both the journal and hospital evaluations.

Within that comparison, the source text and the treatment of character fragments change together. The clinical resource learns from published neurology cases and allows fragments of length 1. The general resource learns from Wikipedia and Common Crawl and leaves some words and lemmas with the unknown-word placeholder in this experiment. The sources also lead to different selected hidden-unit counts. Each of those differences could affect recognition. The observed scores measure the result of using the combined setups.

The CRF baseline also bundles changes. It omits the recurrent layer and uses raw tokens and lemmas in place of embedded representations, while retaining the general feature scheme and a sequence-level classifier. The two recurrent systems attain higher aggregate F1 on the hospital test. The performance difference applies to those complete systems as evaluated. The individual contributions of recurrence, the word embeddings and the CRF would require comparisons that varied those components individually.

The grid search answers a more local question about settings. Both embedding configurations select the upper tested dropout value, 50%. The paper interprets this as support for strong regularization with the available labeled data. The selected hidden-unit values also lie within the small range the authors adopted. The result identifies the preferred candidates in the search. It leaves open how either system would behave with a different search range or when the amount and type of labeled material change.

What the neighbors reveal about vocabulary

The authors inspect the top 5 nearest neighbors of selected words in each embedding space. A nearest neighbor is a word with a vector particularly close to the word being examined. Looking at such lists is a way to see which kinds of lexical relationships the vectors encode. The exercise sits before sequence labeling. It deals with the position of a word in the learned representation space, while the recognizer’s final decision also uses its context, grammar, spelling and neighboring tags.

The lists for ECG show a difference between terms related by use and terms closely related in form. In the clinical space, the abbreviation is close to its expanded form and to names associated with other cardiac investigations, including ECG-Holter, ecodoppler and ecocardiograma. In the general space, several of the nearest entries are alternative forms or capitalizations of terms for an electrocardiogram and an echocardiogram. Both lists reflect some knowledge of the medical vocabulary. The clinical list offers a broader range of associated investigations in this example.

For diabetes, the clinical neighbors include dislipidemia and HTA, as well as forms associated with diabetes itself. The general neighbors include spelling and capitalization variants and forms of pré-diabetes. This illustrates how proximity can encode distinct kinds of association. Related conditions may occur together or in similar kinds of descriptions in case reports. Variants of a spelling can be highly similar in a representation built from characters. The recognizer may gain different clues from each pattern.

The examples for paramnésia and hemiparésia make the same distinction visible in another way. Neighbors of paramnésia in the clinical space include forms related to memory and disorientation. Some general neighbors resemble the word in form, while their meanings give less direct clinical guidance. The general neighbors of hemiparésia include variants and related medical vocabulary, alongside an entry for a hemiparasite. For poliangeíte, the authors find general neighbors whose long strings make them difficult to interpret as useful clinical words.

There are cases where both sources return plausible medical neighbors. For polineuropatia, both lists contain related nerve conditions. Their top neighbors mix repetition of the underlying word, variations of it and other medically relevant terms. For artralgias, both lists include forms associated with pain, while the clinical list includes terms for other locations or kinds of pain. The individual examples support the paper’s interpretation of what the clinical corpus contributes. A list chosen for inspection gives qualitative evidence, with coverage and predictive impact remaining separate questions.

The authors connect this evidence with the missing-vector counts. Training on clinical case descriptions offers opportunities to encounter specialist words in meaningful settings. Allowing shorter character fragments offers another way to assemble representations when an exact form is missing. The examples of nearby words are consistent with useful clinical associations, while the missing-vector counts indicate a separate difference in which words can be represented individually. The paper does not partition the F1 result between those explanations.

What agreement and errors reveal about the label scheme

Overall agreement on the reviewed journal portion is 95.73% at the token level. Characterization has the lowest agreement at 86.29%. Additional Observations has 91.11% and Results has 91.68%, and the authors report uncertainty about these labels during the original annotation. The agreement check gives a way to see where readers differed before attributing all low scores to weaknesses in the automatic system.

For Characterization, the issue is often the role of a modifier. A term expressing uncertainty can be central to how an observation is stated, yet the annotation must decide whether it belongs inside the Condition span or is an observation about it. A description of decline can similarly bring Evolution and Characterization into play. Missing a modifier or assigning it to another category can produce a strict error even when the central medical term is recognized. The hospital results for Characterization show that this remains difficult across the evaluated systems.

Additional Observations gathers diverse material by design. Its examples include clinically relevant family information and actions affecting a patient’s care that fall outside more specific categories. A phrase can look like a familiar condition or treatment when the words are considered alone. Its placement in this category may depend on whose condition is described or how the statement fits in the account. The clinical configuration’s higher result for Additional Observations on the hospital data is compatible with better recognition of some instances, while the strict score shows the continuing difficulty of retrieving this varied material as complete spans.

Results can overlap with Condition in vocabulary because a diagnostic report may describe a lesion or hematoma as a finding. The same clinical expression can name a condition elsewhere. On the hospital test the clinical setup scores 47.73% relaxed F1 and 54.17% strict F1 for Results. The general setup scores 50.67% relaxed and 41.86% strict. Token-level and occurrence-level evaluations count different events, and the relative strengths of the two settings change with the scoring unit here. The Results row is one reason to keep the evaluation rule attached to every category score.

The authors associate stronger performance in several categories with recurring language and patterns of neighboring tags. Negation often appears with a Condition or Results mention, and Evolution can likewise have recognizable surroundings. Time expressions may use familiar constructions across documents. Those observations explain why the sequence architecture is a sensible fit for the task. Direct evidence for how much the CRF contributes to each of these categories would require a comparison that holds the input representation and recurrent processing fixed.

Limitations

Limits discussed by the authors

The authors revised only 30% of the journal annotation. They attribute the partial review to the available time. They also retained the original tags when reviewers had made different choices. As a consequence, the reported agreement describes the reviewed portion of the annotation, and the evaluation uses the initial interpretation of each span. The examples involving Characterization, Results and Additional Observations identify ambiguities that can remain present in the reference labels.

The hospital evaluation is small and clinically concentrated. Its 20 documents come from a neurology service, and the test material concerns epilepsy. As the authors note, the collection gives no independent hospital evidence about Genetics. It contains few occurrences of some other categories. The strong Anatomical Site score and the weaker Route of Administration score describe the particular examples available in these documents. The total number of test occurrences is helpful context for both.

The authors offer a document-style explanation for the decline from validation to testing. The published texts typically tell a case as a connected narrative, whereas some of the hospital material uses fields or items with brief descriptions. The hospital documents also contain spelling errors that the authors associate with their having been written for clinical use and left unpublished. These observations identify plausible sources of difficulty. The reported evaluations compare the collections as they are, so the impact of layout, wording and spelling is measured jointly.

The authors describe their parameter optimization as an area for further work. The experiment uses a limited search of recurrent size and dropout, with a fixed learning rate and a single main neural architecture. They propose investigating other architectures and enlarging the data. They also discuss relation extraction as a next step, because connecting mentions could make clinical reports easier to summarize. The results in the paper apply to finding and classifying mentions under the chosen annotation scheme.

What the setup leaves open

The transfer evidence is specific to a journal and a hospital service within neurology. That is a meaningful change of source and document type. Generalization to other specialties, institutions and kinds of clinical records remains an empirical question. A corpus dominated by other procedures, symptoms or styles of recording could change both the vocabulary available to the system and the distribution of the labels it has to predict.

The clinical embeddings were learned from a collection spanning many volumes of the same journal that supplied the annotated development cases. The paper does not describe whether the unlabeled embedding material excluded the individual cases assigned to validation folds. Cross-validation therefore estimates performance on labeled journal folds using the stated embedding resource, with the treatment of any overlap at the embedding stage unspecified. The hospital set offers the distinct check of transfer to a different collection of documents.

The source comparison supports a claim about these clinical and general FastText resources after separate tuning. A size-matched comparison with identical settings for the character fragments would address more directly what difference comes from specialization in the training text. A comparison at fixed recurrent size would clarify the effect of swapping embeddings within a single architecture. Because the tested setups differ in several of these respects, the paper establishes a practical advantage for the clinical configuration and gives plausible explanations for it.

That practical advantage comes with measurement uncertainty. In cross-validation, the reported variation terms are substantial in relation to the separation between the central scores. On the hospital set, the paper gives point estimates. It does not quantify how much the ranking might vary across alternative samples of hospital documents or across training runs. The clinical configuration leads on the reported aggregate measures, while claims about the stability of that lead require further evaluation.

Agreement and prediction scores also answer different questions. The agreement calculation concerns word-level tags on the reviewed journal material. Strict hospital F1 concerns recovery of complete mentions on a different collection. High agreement for a category can coexist with weak strict recall when the words and contexts change or the recognizer struggles to reconstruct the boundary. An aggregate agreement figure also pools tokens from categories with different frequencies. It cannot resolve the disagreements illustrated in the paper’s examples.

Finally, a complete labeled mention remains one piece of a clinical record. Recognizing a test, a result, a time expression and a condition supplies candidates for a structured account. Linking the result to the correct test, establishing whose condition is mentioned and organizing the events in time require additional decisions. The annotation and evaluation here establish the quality of the selected spans and their tags. Tasks such as relation extraction and summarization remain outside those measurements.

What came after

There is no identified later citing work to trace here. The paper closes with directions the authors intended to pursue. They proposed expanding the datasets and improving the search for recognition settings, as well as investigating architectures that use residual learning. A larger collection could extend evaluation to more categories and more kinds of documents. Those proposals describe planned work.

The authors also proposed identifying relations between extracted mentions. The distinction can be seen in a report that names a diagnostic procedure and records its outcome. Entity recognition supplies the spans corresponding to the procedure and the finding. Relation extraction would specify that the finding was reported as the outcome of that procedure. The authors connect this next step to the eventual goal of making clinical reports easier to summarize. Their demonstrated contribution is the annotation, embedding resource and recognition evaluation on which such a system could build.

Cite

Cite as Fábio Lopes, César Teixeira and Hugo Gonçalo Oliveira. 2019. Contributions to Clinical Named Entity Recognition in Portuguese. Proceedings of the 18th BioNLP Workshop and Shared Task.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w19-5024

@inproceedings{lopes2019contributions,
  title = {{Contributions to Clinical Named Entity Recognition in Portuguese}},
  author = {Fábio Lopes, César Teixeira and Hugo Gonçalo Oliveira},
  booktitle = {Proceedings of the 18th BioNLP Workshop and Shared Task},
  year = {2019},
  doi = {10.18653/v1/w19-5024},
  url = {https://doi.org/10.18653/v1/w19-5024}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/lopes-2019-contributions-clinical-named-entity-recognition/