---
title: "Joint Entity Extraction and Assertion Detection for Clinical Text"
description: "Bhatia and colleagues show how a clinical text system can find medical concepts and use its entity predictions to decide which findings are negated."
canonical: "https://research.elamur.ai/free/en/papers/bhatia-2019-joint-entity-extraction-assertion-detection/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bhatia-2019-joint-entity-extraction-assertion-detection/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Joint Entity Extraction and Assertion Detection for Clinical Text

# Joint Entity Extraction and Assertion Detection for Clinical Text

Paper · 2019 · Parminder Bhatia, Busra Celikkaya and Mohammed Khalilia

**Authors:** [Parminder Bhatia](https://md.research.elamur.ai/free/en/authors/parminder-bhatia/), Busra Celikkaya and [Mohammed Khalilia](https://md.research.elamur.ai/free/en/authors/mohammed-khalilia/) · **Year:** 2019 · **Venue:** Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **8** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/bhatia-2019-joint-entity-extraction-assertion-detection/cited-by/) · Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/P19-1091/)
- [PDF](https://aclanthology.org/P19-1091.pdf)
- [DOI 10.18653/v1/p19-1091](https://doi.org/10.18653/v1/p19-1091)

## Summary

A clinical note can name a condition while recording that the patient does not have it. It can also name a medication while saying that the patient denies taking it. A system that extracts the names alone loses a distinction a clinician reading the note would keep. Bhatia and colleagues study how to recover that distinction directly from the text. Their system learns to locate and categorize medical mentions and to identify which mentions carry a negative assertion. The first of these tasks is known as [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/).

The authors begin with a sequence tagger that builds a representation of each word from its characters, its word embedding and the words around it. They extend the tagger so that entity recognition and negation detection can learn from the same representation. One version gives each task its own decoder, the part of the system that turns the representation into a sequence of predictions. Another shares the decoder and gives each task its own output layer. Their final design, the conditional softmax decoder, also passes the entity layer’s full distribution of tag probabilities to the negation layer. The negation decision can then use both the surrounding text and the system’s degree of confidence that the current word belongs to a relevant entity.

On the 2010 i2b2/VA test split, the conditional decoder records a macro F1 of 0.855 for entity extraction and 0.905 for negation. The corresponding independent systems record 0.848 and 0.820. The conditional decoder also has the highest reported macro F1 for each task on the proprietary clinical-note dataset, at 0.874 for extraction and 0.899 for negation. Some comparisons involve tradeoffs between precision and recall, and the authors caution that the published i2b2/VA scores for NegEx and the augmented bag-of-words kernel come from a different data situation.

The experiments also show that the way a system shares its parameters matters. Sharing a decoder with separate output layers gives weaker results than keeping task-specific decoders in the full-data comparisons. Feeding the entity probabilities into the negation layer improves on that plain shared design. In the authors’ reduced-training-data experiment, the conditional decoder also has an advantage over the two-decoder version, and the gap narrows as more training data becomes available. These results concern negation. The paper places it within the broader problem of clinical assertion detection, which also includes distinctions such as whether a finding is hypothetical.

## Deep dive: Joint Entity Extraction and Assertion Detection for Clinical Text

Bhatia and colleagues show how a clinical text system can find medical concepts and use its entity predictions to decide which findings are negated. · about 36 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A mention and what the note says about it

Discharge summaries and progress notes contain medically relevant information in narrative form. A reader can use the surrounding language to tell whether a phrase gives a diagnosis, describes a treatment, or records something that has been ruled out or is absent. A system that turns a narrative into structured data has to preserve enough of that language to keep the resulting record faithful to the note. The authors describe uses for such records in clinical event surveillance, decision support, pharmacovigilance and studies of drug efficacy. Each of these uses gives a reason to distinguish a mention from an affirmative finding during [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/).

The medication passage that opens the paper makes the distinction visible. Abraxane appears in an instruction to discontinue it. The patient denies taking Tyleno, is described as currently taking no calcium carbonate, and has stopped taking colecalciferol. There are several recognizable medication mentions and several expressions relevant to their status. A reader has to connect each expression to the appropriate mention. In the same passage, a dose or a word adjacent to the medication may help identify the mention, while a verb or a phrase elsewhere in the clause supplies evidence about whether the patient takes the drug.

The example puts two different types of annotation in view. An entity annotation identifies the span in the note that names something medically relevant and assigns it a category. An assertion annotation describes how the note presents that mention. One question concerns the words that belong together. The other concerns what the author of the note says about the thing those words denote. An entity can be a valid extraction when its assertion is negative. A negative assertion is therefore information attached to a mention worth extracting.

The paper uses the term *cue* for an expression that signals negation. *Scope* concerns how far its effect extends and which mentions it covers. The same note can contain expressions of several kinds and multiple potentially relevant mentions. A method then has to determine whether a given cue bears on the mention it is evaluating. The opening figure marks cues for the reader, while the proposed system predicts entities and negation without producing explicit cue labels. Its training and evaluation are organized around the outputs needed to describe the mentions.

Clinical assertion is broader than the distinction this system addresses. The introduction identifies present, absent and hypothetical findings as examples of the meanings a system may need to distinguish. Hypothetical language matters because a note can discuss a possibility without reporting an observation. The paper concentrates on negated findings. Its use of *assertion detection* refers to that focus in the proposed task, even when the earlier work it discusses predicts several attributes or assertion categories.

#### From a cue to the mention it affects

The authors describe a common arrangement in earlier systems. An entity recognizer first finds candidate concepts and passes them to a separate assertion stage. That stage can look for nearby expressions and use rules to decide whether they apply to the concepts it received. Giving each operation a separate stage makes the roles easy to identify. It also means that the assertion stage works with the mentions delivered by the extraction stage, so the quality and coverage of its input depend on an earlier decision.

NegEx is the paper’s main example of a rule-based approach. It uses a medical ontology to identify findings and regular expressions to look for negation cues. The search operates within a fixed scope. This design turns the relation between a cue and a finding into a decision that can be expressed through a match and a position constraint. If a relevant phrase falls within the window, the rules can use it. If the wording or the placement of the cue differs from what the rules cover, the system has fewer ways to recover the intended reading.

ConText extends the idea in two ways that matter to the authors’ account. It handles attributes beyond negation, including whether a finding is hypothetical, and it can vary the scope by looking for an expression that terminates it. That gives the system a way to respond to a boundary in the text. The boundary matters when several findings appear near one another and the scope of a single cue should end before reaching the next one.

Other work in the paper moves from linear scope to syntactic structure. NegBio uses a graph over grammatical dependencies to determine scope. The paper also describes work by Gkotsis and colleagues that uses a constituency parse, a tree in which groups of words are represented as phrases, to remove parts of a sentence outside the relevant scope. In both cases, a structural analysis can help decide how a cue is connected to a mention even when their distance in words is a poor guide. The authors still identify a limitation in relying on rules and regular expressions to recognize cues from their surface wording, particularly in complex constructions such as long noun phrases. The relations in the NegBio approach come from [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/).

These scope mechanisms address related questions at different levels. A fixed window asks which words fall close enough to the cue. A stopping expression asks whether the local text gives a reason to end the window. A syntactic analysis asks which parts of the sentence have the relevant grammatical connection. The paper’s method leaves those scope decisions implicit in the learned representations. The immediate outputs concern which words make up the entities and whether negation applies to them.

#### Learning assertions from labeled examples

The paper also describes assertion systems whose decisions are learned from examples. The leading approach from the i2b2/VA challenge, in the authors’ account, uses support vector machines after concept extraction. A support vector machine is a classifier that makes a decision using features of a supplied example. The challenge system trains classifiers for assertion information at the level of words within a concept and a separate classifier for the concept as a whole. The separation between the extraction stage and the assertion stage therefore remains even though a learned classifier supplies the latter.

The augmented bag-of-words kernel, abbreviated ABoW, combines features inspired by NegEx rules with features derived from the words in the text. The rule features preserve signals about configurations that are already understood to matter. The word features give the classifier additional evidence about the surrounding language. In that arrangement, the classifier can learn how to combine the available signals, while the feature design still determines which kinds of evidence it receives directly.

The authors also cite work by Cheng and colleagues in which a conditional random field is used to classify cues and identify their scope. A conditional random field scores labels in a sequence together, so the labels at individual positions can be evaluated as parts of a larger pattern. In that application, the predicted cues and scope are tasks in their own right. The clinical paper instead supervises the entity and negation outputs. The earlier study examined [negation and speculation detection in veterinary clinical text](https://md.research.elamur.ai/free/en/papers/cheng-2017-automatic-negation-speculation-detection-veterinary/).

The authors consider generalization across clinical text an open difficulty for these methods. A learned decision can depend on the examples and features available during training, while a rule depends on the wording or grammatical patterns covered by its design. Good performance in a particular setting therefore leaves the question of how the system would respond to unfamiliar text. Clinical notes also pose a practical constraint for learning-based methods because annotated examples are difficult to obtain. A strategy that relies on a large supply of new labels can be hard to evaluate or apply under those conditions.

#### Why learn extraction and assertion together?

Among the preceding neural approaches, the paper singles out work by Rumeng and colleagues on the presence and period of medical events. That work represents the events and their context with gated recurrent units, a kind of recurrent sequence processor, and uses attention to emphasize relevant parts of the representation. It starts with events that have already been annotated in the input. The classifier has evidence about where the event is because its position is supplied to it. Joint extraction changes what the system receives and what it has to produce from the note.

In Bhatia and colleagues’ setup, the same words and contextual patterns may help both outputs. Entity recognition can learn which word forms and local phrases typically belong to a medical concept. Negation detection needs some of that knowledge to locate the likely target of an assertion. Conversely, negation supervision can make distinctions in surrounding wording relevant to the representations shared by the two tasks. Multitask learning is the name for training related tasks together in this way. The paper implements it through shared parameters, so a set of learned weights used for one prediction can also be shaped by examples from the other task.

Parameter sharing leaves a design question. The system can share the process that reads the note and then give each task its own machinery for assembling output tags. It can also share the machinery that assembles tags and reserve separate parameters for choosing the final labels. The paper investigates these choices because the tasks have related inputs and unequal demands. A clinical note can supply evidence about an entity at many positions, while clear examples of its negation occur less often. If the representation shared by the tasks emphasizes the more frequent decisions, the negation layer may need more information about what the extractor sees at the current word.

The authors’ proposed connection turns a relationship between tasks into a relationship between predictions. The negation layer sees the extractor’s distribution over entity tags, alongside the shared representation of the word in context. This keeps the decision tied to the type of mention under consideration while the system still learns from the narrative itself. The architecture is designed to answer a practical question about sharing: how much of the work of reading and tagging a note can be reused while keeping the less frequent assertion decision informed?

### The method, step by step

#### From the words in a note to two predictions

The starting point is a tagger. It reads a series of tokens, where each token is an input unit represented by a vocabulary identifier. The article’s description treats the units passed to the word encoder as words and uses the characters within a word to build an additional representation. For each position, the tagger uses information about the word itself and about the words around it. It then predicts a tag as part of an output sequence. In the joint design, the system also produces a negation prediction for each position through a separate output layer.

A word contributes information at several levels. Its characters give the system evidence about its written form. Its word embedding gives it a learned vector associated with that vocabulary item. The words around it give the word encoder evidence about its use in this particular note. The shared decoder turns the resulting contextual representations into states that can be used for tagging. The entity layer then estimates the probability of each entity tag, and the negation layer receives those probabilities as an additional input at that position.

How the conditional decoder reads and tags clinical text The steps in order.

The flow describes the conditional design. The simpler designs share its way of reading the input and change how the outputs are produced. The independent comparison systems carry out the tasks separately. The two-decoder design shares the encoder, then gives extraction and negation separate recurrent decoders. The plain shared-decoder design uses a common recurrent decoder with separate output layers. The conditional design keeps that shared decoder and adds the direct connection between its task outputs.

#### What the sequence tagger is estimating

The authors describe recognition as a conditional probability problem. Given an input sequence, the tagger assigns a probability to an output tag sequence. Its estimate for a tag at the current position can depend on the earlier tags. The paper writes the probability as a product of the local conditional probabilities.

```
P(y | x; θ) = ∏ₜ₌₁ᵀ P(yₜ | xₜ, y<ₜ; θ)
```

Here `P` denotes probability, `y` is the full output tag sequence, and `x` is the full input sequence. The bar separates the predicted quantity from the information on which the probability is conditioned. The semicolon introduces `θ`, the learned parameters, and `=` equates the two expressions. The product sign `∏` multiplies the local probabilities over positions. Its lower limit `t = 1` starts at the first position, and `T` is the sequence length and upper limit. The subscripts in `yₜ` and `xₜ` select the tag and input at position `t`. The notation `y<ₜ` denotes all the output tags at positions earlier than `t`. The comma separates the current input from the earlier tags among the conditioning inputs.

The local factor is indexed by the current input position in the formula. In the architecture, the information delivered to the tagger at that position comes from a word encoder that has read the sequence in both directions. The tagger’s estimate can thus reflect words elsewhere in the input. The left-to-right dependence in the tagging description concerns the production of output tags. The word encoder’s access to the right-hand context is part of how it builds the input to each tagging step.

The probability describes how the tags form a sequence. The training description gives a more concrete account of how the recurrent tagger accesses the past. At a given step, the tagger receives an embedding of the previous tag and carries forward its recurrent state. A tag embedding is a vector associated with an output label. It gives the recurrent decoder a numerical input for the label that precedes the current decision, in much the same way that a word embedding supplies a numerical input for a vocabulary item. Passing this representation makes the previous output a direct source of information for the next step.

#### Building a representation from characters

The input description starts with a sequence of vocabulary identifiers.

```
x ∈ ℕᵀ
```

Here `x` denotes the ordered input sequence, `∈` means membership, `ℕ` is the set of natural numbers used for the vocabulary identifiers, and `T` is the length of the sequence. The superscript `T` on `ℕ` denotes a sequence of that many entries. The entry at each position stands for the identity of the input token.

To represent a word’s written form, the authors use a bidirectional long short-term memory network, abbreviated BiLSTM. An LSTM is a recurrent network that updates a state as it processes a sequence. One pass over the characters follows their order in the word and another follows the reverse order. Each pass ends with a state that has processed the characters of that word. The system places those two terminal states side by side to obtain a character representation for the word.

```
h꜀⁽ᵗ⁾ = [→hₗ⁽ᵗ⁾ ‖ ←hₗ⁽ᵗ⁾]
```

Here `h꜀⁽ᵗ⁾` is the character representation for the word at input position `t`, and the subscript `c` marks the character level. The arrows identify the forward and backward character passes. The terms `→hₗ⁽ᵗ⁾` and `←hₗ⁽ᵗ⁾` are their terminal hidden states for the same word. The subscript `l` indexes the final timestep of each pass in the paper’s notation, with `l` the length of the word. The bracketed expression is a vector, `‖` denotes concatenation, and `=` identifies the resulting vector with the character representation. Concatenation preserves the components of both states by appending one vector to the other.

The character encoder works on each word separately. At this stage, it summarizes how a word is spelled and has yet to incorporate evidence from the rest of the sentence. That distinction matters for clinical notes with abbreviations and misspellings, which the authors later discuss when interpreting the performance of the rule-based baseline. The character encoder supplies a way to use patterns within a spelling. How much those patterns help particular cases is a separate empirical question.

The authors place the character vector beside the entry for that word from a pretrained embedding vocabulary. They update the pretrained vectors during the supervised training of the tagger. The input to the next encoder is this combined vector. [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/)

```
mₜ = [h꜀⁽ᵗ⁾ ‖ emb_word(xₜ)]
```

Here `mₜ` is the combined input at word position `t`, `h꜀⁽ᵗ⁾` is that word’s character vector, and `xₜ` is its vocabulary identifier. The function `emb_word` retrieves the word embedding indexed by the identifier in its parentheses. The brackets enclose the combined vector, `‖` joins its two constituent vectors in order, and `=` names that joined vector `mₜ`.

The two representations give the word encoder access to different sources of evidence. The vocabulary entry provides a vector learned for the word as a unit. The character vector gives it information about the sequence within the word. Because the character encoder is applied repeatedly to the different words, a pattern learned from the characters of one word can also be represented when it occurs in another. The architecture includes both sources before reading the context in which the word occurs.

#### Reading the context and producing a sequence

A second BiLSTM works across the word positions. Its input is the sequence of combined word and character vectors. The encoder processes the sequence in both directions so that a word’s representation can reflect words that precede it and words that follow it. In the opening medication example, for example, the words around the drug name carry evidence about the mention’s status. The encoder offers the downstream tagger a contextual representation where such evidence can be incorporated into the vector at the mention’s position.

The decoder in the basic tagger is a unidirectional LSTM. It advances through the encoded words while receiving the previous label embedding. This is where the output sequence’s direction enters the architecture. At the current step, the decoder combines the word-level encoder representation, the previous label input and the state it has accumulated. Its output provides the input to a layer that assigns scores to the possible labels.

Training uses teacher forcing. The authors supply the annotated previous label to the recurrent tagger during training. The decoder can therefore learn how to make the next decision when the previous label is the one expected by the annotation. At test time, it feeds back a label from the sequence it actually generates. The decoder must then continue from its own earlier decisions. An error at one position can affect the information used later, even though the word encoder still supplies a contextual representation for each position.

The paper describes the basic training objective as cross-entropy. In this setting, cross-entropy penalizes a predicted label distribution when it places little probability on the annotated label. It gives the network an error signal that can shape its output layers and the representations feeding them. With shared components, evidence used to train the two output tasks can affect the same encoder parameters. The paper specifies the cross-entropy objective for the tagger and gives the joint architectures. It does not give a separate equation specifying how the task losses are weighted in joint training.

#### Deciding what to share

In the two-decoder version, both tasks receive the representations produced by the same character and word encoders. Each task has an LSTM decoder and a softmax output layer of its own. A softmax converts a set of scores into probabilities over the available labels. The entity decoder can build a recurrent state useful for identifying and typing a mention, and the negation decoder can build a state suited to the assertion decision. They can learn from the common input representation while retaining their own label-specific ways of using it.

This arrangement can be extended by assigning an additional decoder to each further attribute. The number of decoders then increases with the number of attributes. The authors point out that every additional recurrent decoder brings parameters that have to be estimated. That matters to the paper because annotated clinical data is scarce and because the experiments examine how the systems behave when the number of training examples is reduced. The two-decoder design provides task-specific capacity, and each task must supply enough useful evidence to train its decoder.

The plain shared-decoder version shares both the encoding and the recurrent decoding. At each position, the resulting common state goes to separate softmax layers for extraction and negation. Each output layer still gives probabilities over its own labels. Sharing the recurrent decoder reduces the amount of task-specific sequence processing. A further task would still need its output machinery, but under this design it would use the same recurrent decoder.

This design makes both predictions depend on the information preserved in the common state. The authors argue that learning this state can favor extraction because entity evidence is more frequent than negation evidence. The entity output layer and the negation output layer are then free to assign different meanings to features of the state, but neither receives the other layer’s interpretation. Even if a state corresponds to a strong entity prediction, plain sharing leaves the negation layer to recognize the relevance of that state from its own training signal.

The conditional version adds a path for that information. It computes the entity distribution first and appends it to the common decoder state going into the negation layer. The assertion prediction can use the same contextual vector as before and can now also see which entity tags the extractor favors. This is a directional dependency at each position. The entity layer produces its distribution from the decoder state, and the negation layer uses the entity distribution produced for that position.

#### What passes from extraction to negation

The entity branch in the conditional architecture is written as follows. The paper’s equation names the entity prediction and the underlying distribution together.

```
ŷₜᴱⁿᵗ, SoftOutₜᴱⁿᵗ = Softmaxᴱⁿᵗ(Wᴱⁿᵗ oₜ + bₛ)
```

Here `t` indexes the current position and the superscript `Ent` identifies the entity task. The hatted `ŷₜᴱⁿᵗ` denotes the predicted entity tag, and `SoftOutₜᴱⁿᵗ` denotes the full entity softmax distribution at that position. The comma lists the prediction and the distribution as the quantities obtained from the entity layer. `Softmaxᴱⁿᵗ` converts entity scores into probabilities over entity labels. Inside its parentheses, `oₜ` is the shared decoder’s output vector, `Wᴱⁿᵗ` is the entity layer’s weight matrix, and juxtaposing the matrix and vector denotes matrix multiplication. The `+` adds `bₛ`, the output-layer bias in the paper’s notation. The `=` connects the quantities on the left with the output computation on the right.

The category decision is a compact description of the entity layer’s preferred tag. The distribution also contains the evidence for competing tags. Where the entity layer is uncertain, this distinction gives the negation layer more input than a previously selected category would. It can see whether a relevant entity label is strongly favored, is one of several plausible possibilities, or has little support. The paper’s example is the `PROBLEM` category in i2b2/VA. In that setup the authors apply negation to problem entities, so the probabilities associated with the problem category give the negation layer information about whether the current position is an appropriate target for a negative assertion.

The negation branch uses the distribution together with the state that generated it.

```
ŷₜᴺᵉᵍ = Softmaxᴺᵉᵍ(Wᴺᵉᵍ [oₜ, SoftOutₜᴱⁿᵗ] + bₛ)
```

Here `ŷₜᴺᵉᵍ` is the predicted negation tag at position `t`, the hat marks a prediction, and the superscript `Neg` identifies the negation task. The function `Softmaxᴺᵉᵍ` yields the probabilities used for the negation prediction. `Wᴺᵉᵍ` is the negation weight matrix. The brackets and comma combine two vectors in order. `oₜ` is the shared decoder output at the current position and `SoftOutₜᴱⁿᵗ` is the entity probability vector at that same position, with `Ent` marking its source. Putting the weight matrix beside the bracketed vector denotes multiplication. The `+` adds the bias term denoted by `bₛ`, and the `=` expresses how the negation output is obtained. The paper uses the same bias notation in the two equations without specifying a tie between the bias parameters.

The connection gives the negation layer access to evidence about entity identity as a learned input. It is useful to distinguish this from supplying the correct entity label in advance. The probability vector comes from the extractor working on the same note. The statement that a low probability for `PROBLEM` should discourage a negation prediction describes behavior that the authors expect the system to learn. The equation implements that expectation through weighted inputs to a classifier. A rule that forbids an output under a particular entity decision would be a different mechanism.

There is also a distinction between this use of probabilities and teacher forcing. Teacher forcing concerns which previous label is passed into the recurrent tagger at the next step. Conditional softmax concerns the entity distribution passed to the negation layer at the current step. The latter is computed by the entity layer. During prediction, the system has the note and produces both outputs from it. That is the sense in which the proposed task is end to end.

#### Training settings

The embedding sizes are 100 dimensions for words, 25 for characters and 50 for tags. The word embeddings start from pretrained values and are adjusted during training, a process known as [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). The character and tag embeddings are initially random. The two encoders use 50 hidden units at the character level and 100 at the word level, while the tagger’s LSTM has a hidden size of 50. The dimensions describe the sizes of the vectors and states used by the architecture. They are not counts of labels or examples.

The authors apply dropout after each recurrent network and to the word embedding input. Dropout removes some activations during training, limiting the ease with which the system can rely on any particular activation being available. They use Adam to update the trainable parameters. They tune hyper-parameters with Bayesian optimization, a procedure that uses evaluations of tried settings to guide which settings to try next. These choices are part of the reported training setup, whereas the study’s controlled architecture comparisons concern the distribution of recurrent parameters and the connection between the output layers.

The public challenge experiment uses the earlier study’s split of 170 training notes and 256 test notes. The other experiment uses an annotated proprietary corpus of de-identified clinical notes. The paper also describes an experiment that trains on samples of the available training data to compare the conditional and two-decoder systems when supervision is reduced. The sampling experiment changes the amount of training evidence available for the architectures that are compared. It is separate from the comparison between the public and proprietary corpora.

### Experiments and results

#### The two test settings

The 2010 i2b2/VA challenge dataset covers extraction of tests, treatments and problems, along with assertion detection. Only part of the challenge collection was publicly available after the challenge, according to the authors. They reuse the earlier clinical extraction study’s split of 170 training notes and 256 test notes so they can compare their extraction experiment with that study’s baseline. In the negation setup the authors describe for this dataset, `PROBLEM` is the entity category to which they apply the negation attribute.

The proprietary corpus contains 4,200 de-identified clinical notes with medical-condition annotations. This is the size given for the corpus, while the precision, recall and F1 values are reported for the test set. The paper gives no corresponding count for the proprietary training and test subsets. This second setting lets the authors ask whether the ordering of their architectures is similar on another collection of clinical text. The proprietary data also give the NegEx evaluation a setting in which the rule-based system’s precision and recall look very different from its reported results on i2b2/VA.

The paper reports precision, recall and macro-averaged F1 for each task. Precision measures how many of the system’s predictions are correct among all predictions it makes. Recall measures how many of the annotated targets the system recovers. F1 combines the two, so a system with low precision or recall can have a low F1 even when the other quantity is high. A macro average gives equal weight to the groups whose scores are averaged. The comparison below uses the F1 values as reported, and the precision and recall figures are useful for seeing what is behind particular system comparisons.

#### Entity recognition

For entity extraction, the external neural baseline is an LSTM with a conditional random field. The LSTM supplies representations of the text and the conditional random field evaluates the tags as a sequence. The paper also compares against its independent entity tagger. This second comparison matters because it asks whether shared training and a joint design help beyond the authors’ own basic extraction system. The three joint variants are then compared on the same entity output metric.

Entity extraction on the 2010 i2b2/VA test split by macro F1 The conditional decoder leads the entity extraction comparison.

**The numbers**

| System or setting | Macro F1 |
| --- | --- |
| LSTM:CRF | 0.839 |
| Independent NER | 0.848 |
| Two Decoder | 0.851 |
| Shared Decoder | 0.834 |
| Conditional (this paper) | 0.855 |

On i2b2/VA, the independent entity tagger’s 0.848 macro F1 is already higher than the LSTM:CRF result of 0.839. The two-decoder system reaches 0.851 and the conditional version reaches 0.855. The plain shared decoder records 0.834, below the independent tagger as well as the other joint versions. These comparisons give different answers to the question of whether joint learning helps extraction, depending on how the decoder is organized.

The i2b2/VA precision and recall values show how the conditional system reaches its F1. The independent extractor has precision of 0.857 and recall of 0.841. The conditional system has precision of 0.854 and recall of 0.858. The independent extractor has higher precision in that comparison, and the conditional architecture retrieves more of the annotated targets according to recall. The plain shared decoder has precision of 0.852 and recall of 0.821. Its recall is lower than that of the other decoder variants, which helps explain its position in the F1 comparison.

On the proprietary test set, the LSTM:CRF reaches 0.830 macro F1 for entities, and the independent entity tagger reaches 0.863. The two-decoder system records 0.868, the plain shared decoder 0.85, and the conditional decoder 0.874. The ordering among the paper’s joint variants is the same as on i2b2/VA. The ordinary shared decoder again falls below independent extraction. The two-decoder and conditional versions improve on the independent system’s F1.

There is a related shift between precision and recall on the proprietary corpus. The independent entity tagger has precision of 0.880 and recall of 0.848. The conditional decoder has precision of 0.878 and recall of 0.872. The top F1 is again associated with a higher recall and slightly lower precision than the independent system’s. The paper presents the conditional decoder as a new best result on the i2b2/VA entity extraction task it evaluates. The result refers to its reported test setting and metric.

#### Negation detection

The negation comparison includes NegEx and ABoW, the earlier approaches using rules and rule-derived features. It also includes an independent negation tagger alongside the joint architectures. The authors explicitly qualify the comparison with the published i2b2/VA NegEx and ABoW scores. Because the available challenge material differs from the original data situation, those scores cannot be compared directly with the new scores as if the systems had been evaluated on a matched split. The independent negation tagger and the joint variants provide the comparisons within the paper’s evaluation.

Independent and joint negation detection on the 2010 i2b2/VA test split by macro F1 The conditional decoder has the highest macro F1 among the systems evaluated on the paper's split.

**The numbers**

| System or setting | Macro F1 |
| --- | --- |
| Independent Negation | 0.820 |
| Two Decoder | 0.899 |
| Shared Decoder | 0.882 |
| Conditional (this paper) | 0.905 |

The conditional architecture records 0.905 macro F1 for negation on the i2b2/VA test split, compared with 0.820 for the independent negation tagger. The authors describe this improvement as about 8% in F1. The two-decoder system is close to the conditional variant, with 0.899, and the plain shared decoder reaches 0.882. Each of the joint variants scores higher than the independent negation system in this test. The difference between the two ways of using a shared decoder shows that the output connection affects performance even when both versions use common encoding and recurrent decoding.

The conditional decoder also has the highest precision among the joint negation variants on this split, at 0.919. Its recall is 0.891. The two-decoder version instead records precision of 0.894 and recall of 0.908. The plain shared version has precision of 0.870 and recall of 0.902. The conditional version thus has the highest reported F1 among the joint systems while retrieving a smaller share of the annotated negations than either of the other joint variants in this setting. Which of these changes matters most depends on whether an application is more sensitive to missed negations or to positive assertions being treated as negative.

For context, the table gives NegEx a macro F1 of 0.845 and ABoW a macro F1 of 0.900 on i2b2/VA. The conditional decoder’s value is numerically higher than both. The authors’ split qualification governs what can be inferred from that ordering. The experiment directly supports the comparison of the independent, two-decoder, plain shared, and conditional taggers on the split they use. The earlier scores document how the rule-based and kernel approaches had performed in the comparison literature.

On the proprietary test set, the independent negation tagger reaches 0.83 macro F1. The two-decoder version scores 0.897, the plain shared decoder 0.878, and the conditional decoder 0.899. The gap between the top two architectures is small in the reported values. They reach those values with different precision and recall. The two-decoder system records precision of 0.931 and recall of 0.865, while the conditional system records precision of 0.928 and recall of 0.874. Here the conditional version has higher recall than the two-decoder version. The direction of that particular tradeoff differs from i2b2/VA.

Negation detection on the proprietary clinical-note test set by macro F1 The conditional and two-decoder systems are close, and both lead the independent negation tagger.

**The numbers**

| System or setting | Macro F1 |
| --- | --- |
| NegEx | 0.563 |
| Independent Negation | 0.83 |
| Two Decoder | 0.897 |
| Shared Decoder | 0.878 |
| Conditional (this paper) | 0.899 |

NegEx records precision of 0.403 and recall of 0.932 on the proprietary negation test, with macro F1 of 0.563. The high recall and low precision show that its difficulty in this setting grows out of the large proportion of predictions that are incorrect, even as it retrieves much of the annotated target set. The authors attribute the low F1 mostly to abbreviations and misspellings in the notes, which can interfere with rules that depend on matching the written form. The table does not give a proprietary ABoW result. The proprietary evidence therefore gives a comparison with NegEx and with the authors’ own taggers.

#### What carries across the two corpora

The conditional variant has the highest reported F1 for both tasks in both test settings. The changes are more pronounced when comparing the joint designs with independent negation than when comparing the joint designs with independent entity extraction. In extraction, the independent baseline already performs strongly relative to the earlier LSTM:CRF. In negation, all the joint designs exceed the independent baseline. The different results for the plain shared decoder make the distribution of parameters and task information important to interpreting that broader pattern.

The two joint designs with the highest F1 also differ in their assumptions about the kind of support negation needs. Separate recurrent decoders give negation its own task-specific processing of the shared input. Conditional decoding gives it a shared state and direct evidence about the extractor’s assessment. The full-data test scores show that the latter can achieve at least as high a reported F1 in the settings studied. The experiment with reduced training data probes another part of the design question by looking at how the alternatives respond when the amount of available supervision changes.

### What the ablations show

#### Sharing the encoder helps most clearly on negation

The architecture variants provide the main controlled comparisons in the paper. The independent taggers are the reference for each task. The two-decoder variant adds a shared encoder and continues to let each task carry out its own recurrent decoding. The plain shared decoder adds recurrent parameter sharing. The conditional decoder keeps the common decoder and connects the entity distribution to the negation layer. Comparing the variants gives evidence about which changes accompany better or worse results.

The comparison of independent negation with the two-decoder system is consistent with a benefit from sharing the input representation. On i2b2/VA the independent result is 0.820 macro F1 and the two-decoder result is 0.899. On the proprietary test set, the corresponding values are 0.83 and 0.897. The two-decoder system still gives negation its own recurrent parameters, so its gain is compatible with the explanation that the task benefits from a representation shaped by extraction examples while retaining capacity specialized for assertion decisions.

The corresponding gains for entity extraction are smaller. The independent extraction systems already do fairly well in the reported comparison, and the differences between them and the two-decoder variant are less pronounced than for negation. This is compatible with an asymmetry between tasks. Extraction supervision can inform the representation used to classify negation. An additional assertion label describes a narrower part of what the entity tagger needs for identifying spans and categories across a note. The paper offers no separate measurement of the amount of information either task contributes to the shared representation.

#### Sharing the decoder increases the demands on the common state

The plain shared-decoder variant is the clearest indication that additional parameter sharing by itself does not account for the best results. With one common recurrent decoder, it records a lower macro F1 than the two-decoder variant for each task on both test sets. For negation on i2b2/VA, the comparison is 0.882 for the plain shared system and 0.899 for separate decoders. On the proprietary notes, it is 0.878 and 0.897. The separate output softmaxes in the shared system preserve a separate label choice, while both layers have to work from the same recurrent state.

The authors explain the weaker shared-decoder performance in terms of frequency. Entity extraction has more frequent decisions to learn from, so the common decoder may be optimized more strongly for extraction than for negation. This is an account of what might happen to the task signals during training. The results do show that the common decoder with independent outputs is weaker. They do not directly show which information was lost from the shared state or quantify how heavily the updates favored one task.

The extraction scores also give this interpretation a boundary. The ordinary shared decoder is weaker than the independent entity tagger, even though the authors expect the common decoder to attend mainly to entity extraction. A task can exert more influence on a shared representation and still benefit from a decoder trained specifically for its own output. The design comparison therefore bears on how well a common state serves the two decisions. It does not measure task priority directly.

#### The conditional connection addresses a specific gap

The comparison between the two shared-decoder versions is the closest test of the output connection. They share the recurrent machinery and have separate output layers. The conditional version additionally gives the negation layer the entity probabilities. I2b2/VA negation F1 rises from the plain shared system’s 0.882 to 0.905. On the proprietary test set, it rises from 0.878 to 0.899. The entity results are also higher in the conditional version, reaching 0.855 and 0.874 on the respective test sets.

The direct connection has a concrete interpretation in the `PROBLEM` example. The softmax distribution provides evidence about whether the word being tagged is part of an entity eligible for the assertion decision. The negation layer still uses the decoder output, which provides contextual information about the wording. The architecture can use the entity evidence where it helps interpret the context and adjust its decision when the probabilities give weak support to a relevant entity. The improvement over plain sharing supplies evidence for the whole design as implemented.

The paper does not compare the full probability vector with a single predicted entity tag, a probability for only the problem category, or an annotated entity label supplied to the assertion layer. Those would answer different questions about how much of the observed benefit comes from uncertainty, how much comes from the preferred label, and how much depends on extraction errors. The reported comparison establishes the benefit of adding the distribution to the plain shared design. It leaves those finer distinctions open.

The conditional version also changes the information available to the joint training procedure because the entity output is used in computing the negation prediction. The reported entity improvement accompanies that design change. The experiments give no separate breakdown of the route by which it arises. In particular, the test scores alone cannot identify the contributions of the shared recurrent state, the output connection and the way the tasks shape the learned parameters during training.

#### Reducing the amount of training data

The authors motivate the conditional decoder partly through the cost of estimating a separate recurrent decoder for each task. They compare the two-decoder and conditional systems after sampling from the training data. In the extreme low-data setting they report an improvement of 6% in F1 for the conditional system over its two-decoder counterpart. Figure 5 depicts the gap narrowing as the amount of training data increases. The paper’s numerical statement gives the size of the reported advantage in the extreme setting. It does not specify the sample sizes and exact scores for the individual points in the comparison.

That pattern is consistent with the authors’ parameter-sharing rationale. With fewer labeled notes, task-specific recurrent parameters have less direct evidence from which to learn. A common decoder can reuse supervision between tasks, and passing entity probabilities gives the negation output another source of task-relevant information within that more compact arrangement. As the authors make more training data available, the task-specific decoders have more evidence on which to base their decisions and the reported advantage shrinks.

The low-data experiment compares two changes together. The conditional architecture shares the decoder and passes the entity distribution. The two-decoder architecture uses separate recurrent decoders and does not include that connection. The experiment shows that the conditional package performs better in the low-data comparison. It does not isolate how much of that advantage comes from a smaller recurrent parameter set and how much comes from passing the probabilities. The full-data comparison with the plain shared decoder helps establish that the connection has value, while a low-data comparison that included the plain shared decoder would be needed to distinguish those contributions under the same sampling conditions.

### Limitations

#### Limits the authors state

The authors explicitly qualify comparisons with earlier i2b2/VA negation results. Only part of the original challenge material was released publicly after the challenge. For their own experiments they use the note split employed in an earlier extraction study. Consequently, the published NegEx and ABoW figures serve as context for the new results, with a direct split comparison unavailable. This matters for interpreting the small difference between the conditional decoder and the published ABoW figure in particular. The reported ordering cannot on its own establish which would win if both were evaluated on the same notes.

The stated task scope is also narrower than general clinical assertion detection. The authors focus on negation and describe hypothetical and uncertain findings as part of the broader motivation. Their i2b2/VA example uses the negation attribute for problem entities. The note at the opening is useful for illustrating how medication mentions can occur under different kinds of negative language, but it does not establish that the reported benchmark evaluates a general inventory of medication statuses or other assertion categories.

The authors motivate the design by the difficulty of getting large, annotated clinical corpora. Their low-data experiment responds to this limitation by reducing the training material available for an existing comparison. They present relation extraction, normalization and more advanced kinds of conditioning as future work. Those are outside the experiments in the paper. The findings establish how the reported designs fare on entity extraction and negation under the evaluated conditions.

#### What the evaluation leaves open

Training and evaluation on two clinical corpora gives evidence from more than one dataset. The experiments do not report training on one corpus and then evaluating on the other. A system can perform well when it learns from examples in a corpus while still struggling with the language, conventions or annotations of a new corpus. The paper’s conclusions about shared representations are grounded in the within-corpus results. Transfer to an unfamiliar source of notes remains an open question.

The proprietary corpus is de-identified and annotated, and the paper gives its overall size. It gives fewer details about the proprietary split and annotation setup than about the public challenge split. That limits how precisely a reader can interpret differences between the two test settings. The values show which architectures did better in each experiment, while differences in the kinds of notes, labels and examples available to the learners remain possible reasons why particular precision and recall tradeoffs change across corpora.

The paper reports point estimates for precision, recall and macro F1. It does not give uncertainty intervals or variation across training runs for the differences between the joint systems. This is especially relevant where the two strongest architectures are close, as with proprietary negation. A ranking in the results table documents what occurred in the reported experiment. It gives limited information about how reliably the same ordering would recur under a different sample of notes or a different initialization. The low-data figure also describes a trend without the numerical detail needed to establish the amount of reduced training data at which the gap starts to narrow.

The central evaluation scores describe each task’s performance. They do not supply a combined breakdown of errors that tracks whether a span was missed, typed incorrectly, or extracted correctly and then assigned the wrong assertion. Such a breakdown would help show where the entity distribution most frequently aids negation and where an extraction error carries through to the second output. The equations show that the two outputs are connected. The results give overall changes in the scores, leaving the frequency of particular paths to error unspecified.

Similarly, the architecture includes character information and contextual encoding, but the paper’s comparisons vary the decoder designs. The authors identify abbreviations and misspellings as likely contributors to NegEx’s weak precision on the proprietary corpus. The evaluation does not report errors broken down by these wording phenomena, nor does it separately remove the character encoder to test its role in handling them. The explanation is consistent with the matching rules and the kind of text involved. The observed comparison measures the systems together with all the differences in their implementations.

Finally, because the system does not output cue or scope annotations, its negation scores cannot establish that it identifies the same cue and scope a human reader would mark. A correct assertion prediction shows that the system produced the annotated status for the target being evaluated. It leaves the intermediate interpretation implicit. The distinction is particularly relevant to cases where several mentions and several cues share a passage, as in the paper’s opening example. The evaluation supports claims about the recovered entities and their negation, while the linguistic analysis by which individual decisions are reached remains unmeasured.

### What came after

The later citation connects this paper to work on Arabic named entity recognition. Wojood presents a corpus for nested Arabic entities and studies their recognition using BERT. Nested recognition concerns cases in which one entity mention is contained within another. The clinical paper studies an additional decision about a mention’s assertion, while Wojood’s title identifies the organization of the entity spans themselves as the recognition problem. Both papers concern the information a tagger has to preserve when finding entities in text. [Wojood](https://md.research.elamur.ai/free/en/papers/jarrar-2022-wojood-nested-arabic-named-entity/)

The citation establishes a connection between the papers. An architectural inheritance would be a more specific claim, such as reuse of the conditional softmax or a direct comparison between the recurrent designs and Wojood’s approach. The documented connection supports placing the papers alongside each other as studies of richer entity recognition tasks, with the clinical paper adding a prediction about the status of a mention and the Arabic work addressing the recognition of nested mentions.

## Cite

Cite as Parminder Bhatia, Busra Celikkaya and Mohammed Khalilia. 2019. Joint Entity Extraction and Assertion Detection for Clinical Text. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/p19-1091](https://doi.org/10.18653/v1/p19-1091)

```bibtex
@inproceedings{bhatia2019joint,
  title = {{Joint Entity Extraction and Assertion Detection for Clinical Text}},
  author = {Parminder Bhatia, Busra Celikkaya and Mohammed Khalilia},
  booktitle = {Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1091},
  url = {https://doi.org/10.18653/v1/p19-1091}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
