Elamur Research

Biomedical named entity recognition using deep neural networks with contextual information

Paper · 2019 · Hyejin Cho and Hyunju Lee

Summary

A search through biomedical articles often begins with a question about which diseases, genes or chemicals the articles mention. Answering it requires finding the words that make up each name and assigning the right category to the whole phrase. A disease name can include a modifier that matters in one annotation and falls outside the marked phrase in another. A long name can appear alongside an abbreviation, with punctuation between them. For named entity recognition, all of these choices affect what counts as a correct answer. Cho and Lee ask whether giving a neural tagger direct access to small groups of neighboring words and characters helps it make those choices.

Their system, CLSTM, gives the recurrent network an explicit window around the item it is processing. At the character level, it can read a letter or symbol together with its nearby characters inside a word. At the word level, it can read a token together with the tokens immediately before and after it. A bidirectional long short-term memory network processes the resulting sequence from both directions. A conditional random field then scores complete sequences of tags, taking account of which tags occur next to each other. The authors compare versions that add windows at the word level, at the character level, or at both.

On the held-out test sets, the combined version reached a strict mention F-score of 85.68% on the NCBI disease corpus, ahead of the strongest baseline there, GRAM-CNN at 84.18%. It also led the comparison for joint disease and chemical recognition on CDR, with 86.44%. On the GM gene corpus, it scored 81.44%, close to BERT’s 81.65%. Strict scoring requires the predicted span and category to match the annotation exactly. When the authors accepted overlapping spans of the right type or compared individual token tags, the relative performance changed. The best way to add local context also depended on which kind of match mattered.

The authors examined errors and tested what happened when training and testing used different disease corpora. Their examples show how modifiers, shared words in coordinated phrases and parenthesized abbreviations complicate the decision about where a mention begins and ends. Under cross-corpus testing, BERT achieved higher recall and F-score in both directions. The paper thus gives evidence for explicit local context in supervised biomedical tagging, especially for exact recognition within the NCBI and CDR benchmarks. Its transfer experiments show how much the outcome can depend on the corpus that supplies the annotation.

Deep dive: Biomedical named entity recognition using deep neural networks with contextual information

Cho and Lee test whether explicit windows of nearby words and characters improve the recognition of diseases, genes and chemicals in biomedical text. · about 35 minutes to read

The problem and its context

Finding a mention in running text

Biomedical papers contain information that researchers may want to collect across many documents. A system that aims to find relationships among diseases, chemicals or genes first needs to locate the language that refers to those entities. For example, a relation extraction system needs candidate mentions before it can ask how the text connects them. This makes named entity recognition an early decision in information extraction. The task has a concrete output. For each mention, the recognizer identifies the portion of text that belongs to it and assigns a category from the set defined for the task.

The boundaries matter because a biomedical name can be a phrase. A recognizer may identify the central disease term and still omit a modifier included by the annotators. It can also extend a correct core phrase into descriptive language that lies outside their annotation. Both outputs show that the system has found relevant text. An application or benchmark that expects the exact mention can still treat the output as an error. In a corpus with several entity categories, finding a plausible name also leaves open the question of which category applies to that stretch of text.

The paper lists several reasons why the problem is particularly demanding in biomedical writing. New discoveries expand the vocabulary that a recognizer might encounter. The same entity can appear under several names, and writers often substitute abbreviations for longer forms. Some names mix letters, symbols and punctuation. Others are long enough that their ends are hard to infer from any single word. These features give a recognizer different kinds of evidence to work with. Parts of the spelling may be informative, while the surrounding words may establish whether the phrase is being used as a name or where that name stops.

Expert linguistic annotation gives supervised systems examples of those decisions. The paper emphasizes the expense and time involved when experts have to prepare annotations and design features by hand. Those are distinct kinds of work. Annotation establishes the target output for examples in a corpus. Feature engineering decides in advance which properties of the text a learning system gets to examine. A neural recognizer can learn representations of words and characters and still use expert-marked examples to learn what the corpus calls a mention. The authors’ proposal concerns the representation supplied to that recognizer.

From lists and patterns to sequence tagging

The early approaches described in the paper relied heavily on dictionaries and rules. A dictionary groups known entries by entity type, giving a recognizer a source of names to look up in text. Its coverage depends on what the resource contains. The authors describe disease and gene dictionaries as relatively well developed, while noting that comparable resources for many other biomedical categories are less complete. A name with an unexpected spelling or an unfamiliar synonym can therefore require additional coverage even when the basic lookup procedure works well.

Rules capture patterns that an expert has identified in the language of a particular category. They can recognize expressions whose usefulness comes from a recurring textual form. Their preparation requires knowledge of the domain and of the names being sought. A pattern designed around one entity class can have limited use for another class whose names follow different conventions. The paper credits dictionaries and rules with improvements in robustness and coverage while explaining why maintaining category-specific resources is laborious.

The next family of approaches learns to assign tags from annotated material. The paper describes work with hidden Markov approaches, maximum entropy Markov approaches, conditional random fields and support vector machines. It also describes hybrid systems that combine different techniques. Moving to supervised learning gives the recognizer a way to estimate the usefulness of the information supplied to it. The effort of choosing that information can still be substantial when the input consists of manually designed features.

Neural approaches offered a way to represent text using information learned from unstructured material. The authors discuss work that combines statistical word embeddings with architectures for processing text. An embedding assigns a word a vector of numerical values, which can be used as input to another network. A bidirectional long short-term memory network, abbreviated BiLSTM, can build a representation at each position while taking account of text in both directions. Pairing that network with a conditional random field, abbreviated CRF, adds a way to judge the tags together. The paper also discusses GRAM-CNN, a biomedical recognizer that uses local context through a convolutional architecture. It cites earlier work reporting that neural approaches could outperform entity-specific tools such as DNorm and ChemSpot.

BERT was another comparison available to the authors. The paper describes it as a bidirectional, pretrained system that uses self-attention through the Transformer and attention architecture. It reports that its pretraining used more than 2.5 billion words. BERT gives the study a comparison with a different way of bringing context into tagging, one in which substantial learning has already taken place before the recognizer is adapted to the annotated corpus.

What it means to make context explicit

A bidirectional recurrent network already has a way to use words on both sides of a position. The forward network brings information from earlier positions, and the backward network brings information from later ones. A CRF addresses a related but separate question by considering neighboring output tags. The input at a given step and the dependencies among output tags are different places to introduce context.

The paper intervenes at the first of those places. It assembles the vectors for neighboring items and the current item before passing them to the recurrent network. This gives a recurrent cell direct access to a local configuration as part of the input at a single position. Its recurrent state can still carry information across that position and the rest of the sequence. The distinction applies inside a word as well. The character at a given position can arrive with its immediate neighbors, even though the character sequence is also processed recurrently.

The authors draw on the idea of an n-gram, a contiguous run of items in text. In the proposed recognizer, the items can be characters of a word or tokens of a sentence. The paper adapts a familiar notion of local context to the inputs of a BiLSTM–CRF pipeline. Its experimental question is whether that change helps the system reproduce the entity boundaries and categories marked in biomedical corpora.

The method, step by step

Turning a sentence into an input and a target

The pipeline starts by splitting a sentence into tokens. The paper describes splitting on spaces and punctuation such as commas and hyphens. This tokenization establishes the positions at which the recognizer receives word inputs and produces word tags. The system also looks inside each resulting word to construct a representation from its characters. Thus a sentence supplies a sequence for word processing, and each word supplies its own sequence for character processing.

The annotated target uses IOB tags. A tag beginning with B marks the first token of a mention, a tag beginning with I marks a subsequent token in that mention, and O marks a token outside an entity. The B and I tags also carry the entity category. In the disease corpus, this lets the system distinguish a disease start from its continuation. In the corpus with disease and chemical labels, the tag must communicate the category as well as the part of the mention. A predicted B tag followed by the appropriate I tags describes a span that can be evaluated as a single mention.

The word vectors come from biomedical text. To initialize them, the authors use embeddings that Pyysalo and colleagues trained on approximately 23 million abstracts from PubMed and close to 700,000 full-text papers from PubMed Central. The embeddings have 200 dimensions and were trained using skip-gram with a window size of five. During recognition training, the embeddings undergo fine-tuning, so the labeled data can change the values used to represent words. When a word has no entry in the lookup table, the recognizer supplies an unknown-word vector, identified as UNK.

Characters have their own embeddings, which the authors initialize randomly. The sequence of those vectors gives the network a view of the spelling of each token. This path still supplies input when the word lookup returns UNK. An unfamiliar token can differ from another unfamiliar token through its character sequence even when both receive the same lexical lookup result. The character representation and the pretrained word vector are eventually joined to form the input for processing the sentence.

How CLSTM turns a sentence into entity tags

The steps in order.

How CLSTM turns a sentence into entity tagsStep 1: Split the sentence into tokens1. Split the sentence into tokensStep 2: Look up character and word embeddings2. Look up character and word embeddingsStep 3: Assemble character windows when enabled3. Assemble character windows when enabledStep 4: Encode each token’s characters bidirectionally4. Encode each token’s characters bidirectionallyStep 5: Join character representations with word embeddings5. Join character representations with word embeddingsStep 6: Assemble word windows when enabled6. Assemble word windows when enabledStep 7: Encode the sentence bidirectionally7. Encode the sentence bidirectionallyStep 8: Decode the complete IOB tag sequence8. Decode the complete IOB tag sequence

Building a window around each position

An ordinary character input corresponds to the character at the current step. With the character window enabled, the input contains its vector together with vectors from nearby positions. The window stays within the sequence for the word being represented, with padding used at the edges. The recurrent layer then reads the resulting sequence of windowed character inputs. Its output is used to describe the word’s internal form.

At the word level, the corresponding operation uses the word representations that have already been built. Each one combines the pretrained word vector with information from its characters. A word window places the vectors of the neighboring tokens beside the target token’s vector. Concatenation preserves the order of the components. The part of the input belonging to the left neighbor occupies a different place from the part belonging to the right neighbor. Averaging the vectors would remove that distinction. Here, the network can learn to treat the same information differently depending on where it appears relative to the target.

The authors describe the sentence with the following notation.

S = [w₁, w₂, …, wₙ]

Here S is the sentence after splitting, w denotes a word at the indexed position and n is the number of words in the sentence. The subscripts 1 and n identify the first and last positions. The brackets enclose the ordered sequence, and the ellipsis stands for the word positions in between. In the window operations, each word contributes its vector.

The paper writes a contiguous group of word vectors as follows.

wᵢ:ᵢ₊ⱼ = wᵢ ⊕ wᵢ₊₁ ⊕ … ⊕ wᵢ₊ⱼ

Here i is the starting position, j is the offset to the last position, and wᵢ:ᵢ₊ⱼ is the vector for the inclusive range from i through i + j. The symbol ⊕ joins vectors end to end in the order shown. The 1 in i + 1 gives the next position after i, and the ellipsis represents the intervening vectors in the same order. The paper uses these overlapping groups as inputs to the word-level layer.

A centered window needs neighboring positions even when the sentence has reached an edge. The paper handles this by padding the input at both ends. Its example for a word window of size 3 can be written as follows.

Snew = [w₀:₂, w₁:₃, w₂:₄, …, wₙ₋₂:ₙ, wₙ₋₁:ₙ₊₁]

Here Snew is the sequence fed to the word-level recurrent layer after windowing. Colons mark inclusive ranges of positions. The first range includes the left padding position w₀ and centers on w₁. The last range includes the last real word wₙ and the right padding position wₙ₊₁. The intermediate indices, including 2, 3 and 4, illustrate the window moving through the sentence. The ellipsis covers the rest of the interior windows. In this example the padded sequence of individual vectors has length n + 2, with n real words and the two edge positions. The windowed sequence gives the recurrent layer an input centered on each real word.

The general form applies at either level.

x′ₜ = xₜ₋⌊d/2⌋ ⊕ … ⊕ xₜ₋₁ ⊕ xₜ ⊕ xₜ₊₁ ⊕ … ⊕ xₜ₊⌊d/2⌋

Here xₜ is the original embedding at position t in the character or word sequence, and x′ₜ is the combined input constructed for that position. The chosen window width is d. The floor brackets in ⌊d/2⌋ give the integer part of the width divided by 2, determining how far the window extends on either side. The offsets −1 and +1 indicate the nearest left and right positions. The ellipses cover any other neighbors inside the window. The concatenation operator ⊕ retains the order of the contributing vectors, including padding vectors where the window reaches beyond the sequence.

The windows have odd widths because the authors want an equal number of neighbors on each side of the center. Adding a window at the character level therefore changes what the character recurrence sees at each step. Adding one at the word level changes what the sentence recurrence sees at each step. The combined version applies these operations in succession. It builds a character-aware representation for a word, then gives the sentence network a window made from those richer word representations.

Carrying information through the sequence

Long short-term memory addresses a problem the authors describe for ordinary recurrent neural networks. A recurrent state passes information forward as each new item is read. During training, the gradients used to update the weights can shrink or grow over long sequences, making it difficult to learn dependencies over many steps. An LSTM includes a memory cell and gates that regulate the information carried forward, incorporated from the current input and exposed as a hidden state.

A single pass uses what it has read in its own direction. A BiLSTM runs a forward pass and a backward pass in separate layers. At a given word, the forward state can incorporate what the network has seen from the left, and the backward state can incorporate what it has seen from the right. The representation joins these states.

hₜ = [h⃗ₜ, h⃖ₜ]

Here t is the position in the sequence, h⃗ₜ is the forward hidden state at that position and h⃖ₜ is the backward hidden state. The brackets denote concatenation, and hₜ is the resulting bidirectional representation. In the cell equations below, the same letter h instead describes the hidden state of the individual recurrent direction being calculated.

In CLSTM, the recurrent cell receives the wider input x′ₜ. The authors use a variant in which the input and forget gates are coupled. First the cell calculates how much new information to admit.

iₜ = σ(Wₓᵢ x′ₜ + Wₕᵢ hₜ₋₁ + W꜀ᵢ cₜ₋₁ + bᵢ)

Here iₜ is the input gate at step t. The sigmoid σ acts on the combined input to the gate. The vector x′ₜ is the windowed input, hₜ₋₁ is the preceding hidden state, and cₜ₋₁ is the preceding cell state. The subscript t−1 points to the preceding step in the direction being processed. Each W is a learned weight matrix that acts on the corresponding vector. The first subscript identifies the input, hidden state or cell state, and the second identifies the input gate. The vector bᵢ is the learned bias for that gate, and the plus signs add its contributions.

The next equation updates the cell memory.

cₜ = (1 − iₜ) ⊙ cₜ₋₁ + iₜ ⊙ tanh(Wₓ꜀ x′ₜ + Wₕ꜀ hₜ₋₁ + b꜀)

Here cₜ denotes the updated cell state and cₜ₋₁ the previous state. The input gate iₜ weights the candidate content. The expression 1 − iₜ is its element-wise complement and weights the retained content from the previous state. The operator ⊙ multiplies corresponding components. The hyperbolic tangent tanh transforms the candidate built from the windowed input x′ₜ, previous hidden state hₜ₋₁, weight matrices Wₓ꜀ and Wₕ꜀, and bias b꜀. The subscript c on those parameters identifies the cell update. Coupling the gates means that admitting more candidate content in a component reduces the weight given to that component of the previous memory.

The cell computes a separate gate to regulate the hidden output.

oₜ = σ(Wₓₒ x′ₜ + Wₕₒ hₜ₋₁ + W꜀ₒ cₜ₋₁ + bₒ)

Here oₜ is the output gate at position t. The sigmoid σ transforms the weighted sum of the windowed input x′ₜ, previous hidden state hₜ₋₁ and previous cell state cₜ₋₁, with bias bₒ. The matrices Wₓₒ, Wₕₒ and W꜀ₒ are the weights for these respective contributions. The subscript o identifies the output gate, and t−1 refers to the previous step.

The hidden state exposed by the cell is then calculated from its updated memory.

hₜ = oₜ ⊙ tanh(cₜ)

Here hₜ is the hidden output for this direction at step t, oₜ is the output gate and cₜ is the updated cell memory. The function tanh transforms the memory, and ⊙ applies the gate by multiplying corresponding components. The two directional outputs can then be joined as in the bidirectional representation above.

The window changes the text directly available to these calculations at each step. At a word position, for instance, a neighboring vector can influence the gates and candidate update directly through x′ₜ. It can also influence a hidden state carried over from another position. Those are distinct paths through the architecture. Likewise, a character and its adjacent symbols can be presented together before recurrence combines information along the word.

Choosing tags together

The word network supplies scores for the possible tags at each position. The CRF combines those scores with transition scores for adjacent tags. A candidate sequence can therefore score well when it gives plausible tags to the individual words and connects them in a plausible order. To see why that can matter for IOB tagging, consider a continuation tag. Its usefulness depends in part on the tags around it, because the continuation belongs to a span with a category and a beginning.

The paper introduces the general conditional probability of a candidate label sequence as follows.

p(y | x, λ) = exp(λ · F(y, x)) / Z(x)

Here x is the sequence of input vectors and y is a candidate sequence of labels for the same positions. The bar in p(y | x, λ) indicates conditioning on x and the learned weight vector λ. The global feature vector F(y, x) summarizes the features for that pairing of input and labels. The dot · is the dot product, and exp transforms its score to a positive value. The denominator Z(x) normalizes the result for the given input.

The global feature vector collects contributions at the positions in the sequence.

F(y, x) = ∑ᵢ f(y, x, i)

Here F(y, x) is the global feature vector for candidate labels y and input x, and f(y, x, i) is the local feature vector at position i. The summation ∑ᵢ adds those vectors across the input positions. The letter f in this definition denotes a CRF feature function. The evaluation section uses the same letter for the F-score, a separate quantity.

The normalizing factor accounts for the alternative sequences the CRF can score.

Z(x) = ∑ᵧ′ ∈ L(x) exp(λ · F(y′, x))

Here Z(x) is the sum for the fixed input x. The variable y′ runs through the set L(x) of possible label sequences, and ∈ indicates membership in that set. For each candidate, F(y′, x) is its global feature vector and λ is the weight vector. The dot denotes their dot product, exp gives the exponentiated score, and the summation adds those values over the candidates.

For the implemented tagger, the paper writes a sequence score in terms of the word-level scores and the transition matrix.

s(x, y) = ∑ᵢ₌₀ⁿ T[yᵢ, yᵢ₊₁] + ∑ᵢ₌₁ⁿ P[i, yᵢ]

Here s(x, y) is the score assigned to candidate tags y for the sentence input x. There are n real word positions, and i indexes the positions used in the two sums. The tag at position i is yᵢ. The matrix T gives the transition score for moving from the tag in its first index to the tag in its second index. Its sum starts at 0 so it includes the move from the start tag y₀. The last term in that sum reaches the end tag yₙ₊₁. The matrix P holds the scores from the recurrent network. The entry P[i, yᵢ] is the score of the proposed tag at word position i, and its sum runs from 1 through n. The plus sign joins the transition contribution and the contribution from the words. The CRF uses the sequence scores to decode the best tagging for the sentence.

Training the variants

The authors train versions with extra windows at the word level, the character level and both levels. The names of these variants specify where the explicit window is added. In particular, the word-level experiment is about widening the input at the sentence level. The method still describes the word input as combining a lexical embedding and a character representation. The experiments thus distinguish the location of local windowing from the presence of the underlying kinds of input.

Training data are used to learn the tagger. A development set is used to select settings such as window width, and the test set is held for evaluation. On GM, which lacks a designated development split, the authors randomly divide the original training material to create one. Candidate widths include 3, 5 and 7. Choosing an odd width lets the target occupy the center with symmetric left and right context. The window choices for the combined variant are allowed to differ from those used by the corresponding one-level variants.

For the BiLSTM, BiLSTM–CRF and CLSTM runs, the paper starts from the defaults used by Lample and colleagues. It changes the labeling scheme from IOBES to IOB, sets both the token embeddings and the token LSTM hidden layer to 200 instead of 100, and uses the biomedical pretrained embeddings in place of starting without them. GRAM-CNN and BERT use their own default settings. The authors make the datasets used in the study publicly available.

Experiments and results

Three corpora with different targets

The NCBI disease corpus provides manually marked disease mentions in PubMed abstracts. In the split statistics, the paper lists 592 abstracts for training, 100 for development and 100 for testing. The description of the resource reports 6892 mentions and 790 distinct disease concepts associated with MeSH and OMIM identifiers. Those concept identifiers describe the annotation resource. For recognition, the central target is the disease mention as it appears in the text. The paper gives conflicting overall abstract counts, so the split figures are the clearest way to describe its experimental setup.

The BioCreative II Gene Mention corpus, abbreviated GM, provides gene mentions and alternative annotations judged by human annotators. Its records are sentences. The split table lists 15,000 sentences in the original training portion and 5000 in the test portion. Because the corpus supplies no separate development set, the authors hold out part of the training portion for that purpose. The paper describes the random division without giving its resulting sizes. The recognition scores refer to the test set, after settings are chosen using the held-out development material.

The BioCreative V Chemical Disease Relation corpus, abbreviated CDR, supplies chemical and disease mentions in the same collection. Its training, development and test portions each contain 500 abstracts. According to its description, the corpus contains 3,116 chemically induced disease relations alongside 4,409 annotated chemical names and 5,818 disease names. CDR thus supports work on relations as well as recognition. In the main CDR evaluation, the system is scored on its tags for chemicals and diseases. The relation annotations help explain the purpose of the resource and are separate from what the reported recognition F-scores measure.

The authors use the development sets to choose a word-level window of 5 for all the corpora. For character-level CLSTM, the selected widths are 3 on NCBI, 5 on GM and 7 on CDR. For the variant that windows both levels, they choose width 5 at each level on NCBI and width 3 at each level on GM and CDR. These are the settings for the main comparisons within each corpus. The transfer experiment tries several widths because the development choices differed across the source corpora.

The comparison starts with a BiLSTM tagger without a CRF, then includes a BiLSTM with a CRF. The first gives a reference for the sequence encoder, while the second provides the closer architectural comparison for CLSTM. GRAM-CNN provides another approach to exploiting local context. BERT provides a comparison with adaptation from a pretrained self-attention system. Those baselines answer different questions. The comparison against BiLSTM–CRF speaks most directly to the architectural change, while the wider comparison puts the resulting tagger alongside other ways to solve the same task.

What a correct prediction counts as

The paper reports precision, recall and F-score on the test sets. Precision measures the share of counted predictions that are correct. Recall measures the share of annotated targets that the tagger finds. The F-score is their harmonic average. It can fall when either component is low, so the separate precision and recall values help explain what an F-score comparison represents.

p = TP / (TP + FP)

Here p is precision, TP is the count of true positives and FP is the count of false positives. A true positive meets the chosen matching rule. A false positive is a counted prediction without a correct match under that rule. The sum in parentheses gives the number of predictions used in the denominator.

r = TP / (TP + FN)

Here r is recall, TP is the count of true positives and FN is the count of false negatives. A false negative is an annotated target missed under the chosen rule. The sum in parentheses gives the number of annotated targets used in the denominator.

f = (2 × p × r) / (p + r)

Here f is the F-score, p is precision, and r is recall. The multiplication sign ×, the factor 2 and the sum p + r give the harmonic average of the two measures. The matching rule matters because it determines the counts from which p and r are calculated.

Under strict mention matching, the prediction needs the correct category, first token and last token. A prediction that finds the central noun of a disease phrase can miss under this rule if the gold annotation also includes a modifier. Under partial mention matching, an overlap with the annotated span is accepted when the category agrees. Under IOB tag matching, the comparison is at individual token positions, using the full tag at each position. A long mention can consequently contribute several token decisions even though it is a single target in a mention-level comparison.

The three rules answer questions that arise at different points in using the output. Strict matching asks whether the extracted phrase can be taken as the annotated mention. Partial matching asks whether the recognizer located some of the correct typed phrase. Token matching asks how much of the desired tag sequence is reproduced. A leading score under one rule can coexist with a weaker ranking under another, even on the same test set.

Exact spans within each corpus

NCBI gives the clearest advantage for explicit windows. The combined CLSTM scores 85.68% under strict matching, with precision of 84.73 and recall of 86.67 on the test set. The word-level variant has the highest strict precision in the NCBI comparison, 85.94, alongside recall of 84.69. Its F-score is 85.31%. The character-level variant reaches 84.72%. Each is ahead of GRAM-CNN, whose 84.18% is the strongest baseline F-score. The BiLSTM–CRF reaches 83.37, compared with 80.71 for the BiLSTM without joint decoding.

Strict mention F-score on the NCBI disease test set

The combined windows rank first, and each CLSTM variant exceeds the strongest baseline.

Strict mention F-score on the NCBI disease test setBiLSTM: 80.71BiLSTM80.71BiLSTM–CRF: 83.37BiLSTM–CRF83.37GRAM-CNN: 84.18GRAM-CNN84.18BERT: 80.90BERT80.90Word-level CLSTM: 85.31Word-level CLSTM85.31Character-level CLSTM: 84.72Character-level CLSTM84.72Word-and-character CLSTM (this paper): 85.68Word-and-character CLSTM (this paper)85.68
The numbers
System or settingF-score %
BiLSTM80.71
BiLSTM–CRF83.37
GRAM-CNN84.18
BERT80.90
Word-level CLSTM85.31
Character-level CLSTM84.72
Word-and-character CLSTM (this paper)85.68

The NCBI precision and recall values show how the combined variant reaches the leading F-score. It returns a larger share of the reference disease mentions than the word-level variant does. The word-level variant retains the advantage in precision. One interpretation supported by those results is that the choice of window location affects how the system balances missed and extra predictions, even when both choices improve the overall strict score relative to the closest baseline.

On GM, BERT has the highest strict mention F-score, 81.65%, with precision of 81.72 and recall of 81.59. The combined CLSTM has a precision of 81.75 and recall of 81.14, producing an F-score of 81.44%. The close precision values and different recall values explain the ordering. The other CLSTM variants score 80.89 at the word level and 80.73 at the character level. They also exceed BiLSTM–CRF at 80.30. Gene recognition therefore offers an instance in which the CLSTM variants improve on the recurrent CRF reference and BERT still leads the same comparison.

On CDR, which tests chemicals and diseases together, the combined variant reaches 86.44% with strict matching. Its test precision is 87.25 and recall is 85.66. The word-level and character-level versions reach 86.36% and 85.92%, respectively. GRAM-CNN has the strongest baseline F-score at 85.79, followed by BERT at 85.72 and BiLSTM–CRF at 85.50. The strict CDR precision of BiLSTM–CRF is 87.52, above the combined CLSTM’s precision. Its recall of 83.58 is lower. As on NCBI, the F-score ranking represents a balance of the two quantities.

Strict mention F-score on the CDR chemical and disease test set

All CLSTM variants exceed the baseline F-scores, with the combined variant narrowly ahead of the word-level variant.

Strict mention F-score on the CDR chemical and disease test setBiLSTM: 81.88BiLSTM81.88BiLSTM–CRF: 85.50BiLSTM–CRF85.50GRAM-CNN: 85.79GRAM-CNN85.79BERT: 85.72BERT85.72Word-level CLSTM: 86.36Word-level CLSTM86.36Character-level CLSTM: 85.92Character-level CLSTM85.92Word-and-character CLSTM (this paper): 86.44Word-and-character CLSTM (this paper)86.44
The numbers
System or settingF-score %
BiLSTM81.88
BiLSTM–CRF85.50
GRAM-CNN85.79
BERT85.72
Word-level CLSTM86.36
Character-level CLSTM85.92
Word-and-character CLSTM (this paper)86.44

Overlapping mentions and individual tags

Partial matching gives higher F-scores than strict or IOB matching in the paper’s comparisons. On NCBI, the leading partial mention F-score is GRAM-CNN’s 94.07. The combined CLSTM has the best partial score within its own family at 93.42. Thus the strongest exact-span result and the strongest result for typed overlaps belong to different systems on this test set. The score ordering depends on whether a system needs to reproduce both boundaries exactly or receives credit for locating some of the typed mention.

On the GM test set, the combined CLSTM leads the partial comparison with 93.00. The leading baseline under this rule is BiLSTM–CRF at 92.61, with BERT close at 92.58. On CDR, the word-level CLSTM leads partial matching at 92.66, followed within its family by the combined variant at 92.62. The strongest baseline for partial CDR matching is GRAM-CNN at 92.15. The CDR result is another case where the winning setting depends on how the boundaries are counted.

Under token-level IOB matching on NCBI, word-level CLSTM leads with 89.10%. The combined setting reaches 88.84%, the character-level setting 88.34%, and the strongest baseline, GRAM-CNN, reaches 87.65%. The combined variant’s lead under strict span matching therefore coexists with a word-level lead when each token is judged separately. Token-based scores depend on mention lengths because a longer span supplies more positions for the recognizer to get right or wrong.

On GM, BERT leads IOB matching with 87.85, compared with 87.00 for the combined variant. On CDR, the combined variant has the best IOB F-score at 86.83%, with BERT at 86.81%. BERT has higher CDR token recall, 85.01 compared with 83.41, while the combined CLSTM has higher precision, 90.56 compared with 88.69. The two systems reach very similar F-scores with different patterns of token prediction.

How long the training took

The paper compares how long task training takes on a workstation equipped with a Titan Xp GPU with 12G of memory and an i7-5930K CPU. It specifies a default of 100 training epochs on each dataset. BERT is fastest in the reported timing comparison, with 1.01 hours on NCBI, 10.04 hours on GM and 3.72 hours on CDR. The corresponding BiLSTM times are 4.08, 10.77 and 4.39 hours. GRAM-CNN has the longest reported times, including 34.08 hours on GM. These measurements describe the authors’ particular training setup.

Among the CLSTM settings, the authors describe the character-level version as relatively quick. They attribute this to the smaller character embedding dimension compared with the dimensions involved in word-level or combined windowing. They characterize CLSTM as taking 20% longer to train than the BiLSTM-based approaches. Widening recurrent inputs therefore comes with a practical training cost in their experiments. The paper explains BERT’s speed in terms of adaptation from an existing pretrained system, and separately reports that its original pretraining took 4 days. These durations describe distinct stages of building a recognizer.

What the ablations show

Changing where the system sees a window

The comparison between the plain BiLSTM and BiLSTM–CRF shows how the baseline changes with joint decoding. Under strict matching, the CRF version has a higher F-score on each test corpus. NCBI rises from 80.71 to 83.37, GM from 72.33 to 80.30, and CDR from 81.88 to 85.50. The NCBI token results give a more qualified picture. The CRF version scores 86.18, while the plain BiLSTM scores 86.26. A comparison at a whole-span level and one at the token level can therefore give different accounts of the change.

The three CLSTM variants then show what happens when the input windows are added in different places. Within each corpus, every variant exceeds BiLSTM–CRF on strict F-score. In this design, a word window alone is sufficient to improve the strict result over that reference. A character window alone is also sufficient. Using windows at both levels gives the highest strict CLSTM result within each test set. This is evidence that the combined configuration is a good choice for that metric in the experiments.

The ordering changes when the evaluation grants credit for a typed overlap or scores individual tags. On NCBI the word-level variant leads the paper’s IOB comparison. On CDR it leads the partial comparison. This suggests that the combined version’s strict advantage does not require a corresponding lead on every smaller unit of evaluation. The location of the window affects the result that a reader sees, and the matching rule affects how that result is ranked.

There is also a design detail to keep in view when comparing these variants. The single-level widths and the combined widths are selected separately. On GM, for example, the one-level character and word settings each use 5, while the combined setting uses 3 at each level. That makes the result a comparison among configurations selected for their own development performance. It combines the decision about where to add context with the decision about how wide that context should be. The experiments show that the joint configuration can work well after this selection. They give a less direct estimate of the effect of adding a second window at an otherwise fixed width.

Retraining from different initializations

The authors repeat training independently five times for the combined CLSTM. Their motivation is that the character vectors start at random and that training can depend on how the weights are initialized. The trials keep the development-selected settings and use strict mention matching on the test sets. This checks how sensitive the reported comparison is to repeated training under the same setup.

On NCBI, the authors report a best strict F-score of 85.68% and a worst of 85.02%. The mean in the table is 85.12, compared with GRAM-CNN’s baseline score of 84.18%. The observed advantage over that baseline survives even in the lowest reported NCBI trial. On CDR, the reported mean is 86.27, compared with the strongest baseline at 85.79. On GM, the trial mean is 80.96, above the BiLSTM–CRF result of 80.30 and below BERT’s 81.65%.

These repetitions help place the headline combined scores in context. Each corpus has a mean below the corresponding score highlighted in the main comparison. Still, the strongest observed NCBI and CDR baseline comparisons are consistent with advantages that persist across the CLSTM training trials as the authors describe them. On GM, the repetitions preserve the broad ordering between the combined tagger, the recurrent CRF baseline and BERT. This evidence concerns the effect of initialization under the chosen configurations.

Training on one disease corpus and testing on another

The transfer comparison focuses on the disease category shared by NCBI and CDR. The authors train on CDR and test disease recognition on NCBI, then train on NCBI and test disease recognition on CDR. This changes the source of supervision while retaining a common category name. The exact-span score shows how well the resulting phrase boundaries and disease decisions agree with the destination corpus.

With CDR training and NCBI testing, the highest CLSTM F-score is 54.87 for the word-level setting. GRAM-CNN reaches 49.88 and BiLSTM–CRF reaches 47.90. BERT leads with 60.00. The best CLSTM F-score for the reverse direction is 48.54 from the setting with width 3 at both levels, compared with 46.55 for BiLSTM–CRF and 57.57 for BERT. The best CLSTM configuration changes with the direction of transfer. Its strongest results in both directions come from comparisons over several window settings.

Strict disease mention F-score when training on CDR and testing on NCBI

The word-level CLSTM leads its variants and exceeds the recurrent and convolutional baselines, while BERT leads overall.

Strict disease mention F-score when training on CDR and testing on NCBIBiLSTM: 45.64BiLSTM45.64BiLSTM–CRF: 47.90BiLSTM–CRF47.90GRAM-CNN: 49.88GRAM-CNN49.88Character-level CLSTM, width 3: 53.51Character-level CLSTM, width 353.51Character-level CLSTM, width 7: 53.64Character-level CLSTM, width 753.64Word-and-character CLSTM, widths 3 and 3: 52.86Word-and-character CLSTM, widths 3 and 352.86Word-and-character CLSTM, widths 5 and 5: 53.02Word-and-character CLSTM, widths 5 and 553.02Word-level CLSTM (this paper): 54.87Word-level CLSTM (this paper)54.87BERT: 60.00BERT60.00
The numbers
System or settingF-score %
BiLSTM45.64
BiLSTM–CRF47.90
GRAM-CNN49.88
Character-level CLSTM, width 353.51
Character-level CLSTM, width 753.64
Word-and-character CLSTM, widths 3 and 352.86
Word-and-character CLSTM, widths 5 and 553.02
Word-level CLSTM (this paper)54.87
BERT60.00

BERT’s recall is higher than that of each listed CLSTM setting in both directions. Precision varies with setting. With CDR training and NCBI testing, the variant with width 5 at both levels attains precision of 69.36, compared with 68.92 for BERT. Its recall is 42.92, compared with 53.13 for BERT. With NCBI training and CDR testing, word-level CLSTM reaches precision of 60.92 and recall of 38.09. BERT’s precision is 54.17 and its recall is 61.44. The leading CLSTM F-score in that direction comes from a different configuration, whose precision is 54.00 and recall is 44.08. The paper’s observation that CLSTM can offer higher precision therefore applies to particular settings. BERT’s recall advantage holds across the configurations in the table.

The authors examine the guidelines of the two corpora to interpret the transfer results. NCBI’s construction used the 2012 version of MEDIC, which brought together disease terms from OMIM and MeSH. CDR used 2015 MeSH terms and could mark a disease mention even when it could not be mapped to an identifier. The paper points to pain and necrosis as terms marked as diseases in CDR and left unmarked in NCBI. A learned decision about what counts as a disease in one corpus can therefore disagree with the destination annotations.

The authors look at mentions that are annotated in a test corpus but occur without disease marking in the other corpus’s training material. They report 19 such mentions out of 960 for the NCBI test data and 83 out of 10,875 for the CDR data in that comparison. Their system correctly predicts 4 of the NCBI cases and 7 of the CDR cases. BERT correctly predicts 11 and 41, respectively. The authors interpret this as evidence that CLSTM more closely reflects the characteristics of the training annotations. They suggest BERT’s extensive general pretraining as a possible explanation for its recall. The comparison shows the behavior on the selected mentions, while the systems’ different architectures and training histories leave the cause open.

Looking at the actual recognition errors

The paper’s error analysis gives a closer view of what the strict metric can penalize. On NCBI, the tagger sometimes includes an adjective or other modifier beyond the annotation. For female breast cancer, the marked disease was breast cancer. In the opposite direction, the tagger shortened an annotated sporadic T-cell leukaemia to T-cell leukaemia. A policy of always retaining modifiers would help with the latter decision and produce the error in the former. Local spelling and word order provide evidence for where the span might end, while matching the corpus requires learning when those cues justify inclusion.

Coordination poses a different boundary problem. Writers can avoid repetition by sharing a word across coordinated expressions. In pineal and retinal tumours, the noun tumours belongs with both descriptors. The NCBI test annotation treats the coordinated expression as a single entity, while the tagger returns only the shared noun. In another case, it splits the coordinated phrase colorectal adenomas and/or carcinoma into separate mentions for the two terms. Each prediction reflects a recognizable local phrase, but strict agreement depends on how the coordination is represented as a whole.

In GM, the paper identifies a case where the annotation includes a name, its abbreviation and the parentheses around that abbreviation in one span. The recognizer extracts 62-kDa protein and p62 separately. Both parts are found, while the annotated grouping is missed. This example is useful for interpreting the gap between ratings that require the whole span and ratings that can reward finding some of it. The same textual evidence can support finding both pieces while leaving ambiguity about how to join them.

CDR provides examples in which span and category decisions interact. In serotonin syndrome, the expected answer is a disease, but the tagger marks serotonin as a chemical. In hepatitis B surface antigen, it returns a disease span for hepatitis B where the gold annotation marks the fuller phrase as a chemical. The embedded terms give plausible evidence for the categories the recognizer chose. The annotation calls for a decision based on the larger phrase, which is the unit evaluated under strict matching.

The paper also compares two NCBI annotations of a cerebellar ataxia name. The phrase autosomal dominant is included in one mention and excluded in another. In the latter case, the tagger includes those words. The observed mismatch is a strict error against the reference used for that occurrence and illustrates how the same kind of modifier can be treated differently even within a corpus. In a manual examination of NCBI false positives, the authors attribute 35.3% of the errors examined to entity boundaries and 9.3% to elliptical coordination. These figures describe their error inspection on NCBI. The examples explain why improvements in aggregate recognition can leave systematic problems with where a mention starts and ends.

Limitations

Limits identified by the authors

Cho and Lee highlight ambiguities in the span annotations as a recurring source of errors. The error analysis shows that a recognizer can identify the medically relevant part of a phrase and still disagree with the benchmark about the role of a modifier, a conjunction or a pair of parentheses. Weaknesses of that kind remain visible after adding context at both levels. The authors identify resolving such ambiguities as an area where recognition needs to improve.

The authors also acknowledge that the choice of corpus changes what the recognizer learns. Their disease transfer experiment makes this visible through words that are annotated in one resource and left outside disease mentions in another. The fact that CDR and NCBI use different criteria and different versions of their terminology resources matters for interpreting errors against the destination corpus. A prediction can reflect the evidence available during training and still score poorly under the new convention. The observed transfer results qualify the broader suggestion that the method makes biomedical recognition more robust across entity types.

The experiments also temper the comparison with BERT. On GM, BERT leads the exact mention and token-tag evaluations, although the combined CLSTM is close under exact matching. BERT has the highest strict F-score under cross-corpus testing in both directions. The authors discuss extensive pretraining as one possible reason for the stronger transfer recall. For training time, they explicitly distinguish the measured adaptation stage from the earlier pretraining effort. CLSTM incurs a cost of its own when wider inputs are added to the recurrent tagger.

Finally, the authors recognize initialization as a possible source of variation and address it by independently retraining the combined system. Their NCBI results show that performance varies within the fixed setup even while remaining above the strongest published comparison in their table. The observed trial range is a description of those runs. The paper’s robustness interpretation is strongest for the particular corpora, initialization repeats and strict matching criterion used there.

Limits of the experimental design

The main comparison evaluates annotated biomedical text from the selected corpora and categories. It establishes scores for disease mentions on NCBI, gene mentions on GM, and chemical and disease mentions together on CDR. The aggregate CDR results leave open how much each category contributes to the advantage. The transfer experiment covers the disease category shared by NCBI and CDR. Transfer to a new source for gene or chemical recognition remains outside that experiment, as does performance on biomedical categories absent from the benchmarks.

The reported numbers concern agreement with span and type annotations. Although NCBI includes concept identifiers, matching a span and a category does not measure whether the system can assign the right database identifier to a name. Likewise, the presence of relation annotations in CDR does not turn a recognition score into evidence about extracting those relations. Better exact boundaries could affect a downstream application that consumes mentions. The paper evaluates the quality of the mentions themselves, leaving the size of downstream effects unresolved.

The closest architectural comparison is between BiLSTM–CRF and the variants that widen the recurrent inputs. Concatenation changes the amount of information presented to each cell and the dimensions of its input. The experiment therefore compares different inputs and their associated parameterization. It leaves open how much of the change comes from keeping neighboring vectors in separate slots, from changes in input capacity, or from interactions with the learned character representation. GRAM-CNN and BERT help establish comparative performance. Their different architectures, defaults and sources of training information limit what their rankings reveal about individual mechanisms.

The framework also lacks a matched comparison in which all CLSTM variants use fixed window settings and only the affected layer is changed. The reported within-corpus results reflect development-selected settings. In the transfer table, more than one window configuration is reported, which is informative about sensitivity. The leading scores in that table describe how well particular configurations performed after comparison. The table gives limited evidence about which setting a practitioner could select for a new destination corpus without seeing labeled results there.

The repeated training analysis measures variation for the combined CLSTM. The baselines in the comparison are represented by single reported scores. Comparable run distributions across systems, confidence intervals and an explicit significance test would be required to put the smaller ranking differences on a firmer statistical footing. The close GM strict scores and CDR token scores are most directly read as the observed outcomes of the stated evaluation. The repetitions give more grounds for judging the CLSTM’s own sensitivity than for estimating the uncertainty of every difference between systems.

There are also limits to reconstructing the experimental splits from the reported dataset descriptions. The NCBI split table gives a total of 792 abstracts, while the prose describes the corpus as containing 793 PubMed abstracts. The paper does not account for that discrepancy. For GM, the original train and test sizes are given and the creation of development data is described, but the retained split sizes and membership are unspecified. The results can be interpreted using the reported evaluation design, while exact reconstruction of those details requires information beyond those descriptions.

The timing comparison is tied to the stated hardware and training arrangements. Its BERT times measure adaptation, and the paper’s original pretraining duration describes a separate run from the earlier work. The study reports training time and gives no corresponding end-to-end cost comparison under a common pretraining budget. It also leaves inference time and resource use for a deployed recognizer open. The timing results therefore answer a narrower practical question about running the authors’ training procedures on the benchmark datasets.

What came after

Subsequent adoption of CLSTM’s character and word windows is undocumented in this account. The paper itself identifies directions that remain open, including resolving coordinated mentions, learning more consistent span boundaries and improving recall when a recognizer is trained under one set of disease annotation conventions and evaluated under another. Those are questions raised by the study’s experiments, with no follow-up results available to establish how later work addressed them.

Cite

Cite as Hyejin Cho and Hyunju Lee. 2019. Biomedical named entity recognition using deep neural networks with contextual information. BMC Bioinformatics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1186/s12859-019-3321-4

@inproceedings{cho2019biomedical,
  title = {{Biomedical named entity recognition using deep neural networks with contextual information}},
  author = {Hyejin Cho and Hyunju Lee},
  booktitle = {BMC Bioinformatics},
  year = {2019},
  doi = {10.1186/s12859-019-3321-4},
  url = {https://doi.org/10.1186/s12859-019-3321-4}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/cho-2019-biomedical-named-entity-recognition-deep/