ContextD: an algorithm to identify contextual properties of medical terms in a Dutch clinical corpus
Paper · 2014 · Zubair Afzal, Ewoud Pons, Ning Kang et al.
Summary
A clinical note can mention a disease because a clinician found it, because an examination ruled it out, or because the patient’s mother had it. Searching for the disease name retrieves all of these mentions. Making the results useful for clinical research requires another step: determining what the note says about each mention. ContextD addresses this problem for Dutch clinical records. It assigns a label for negation, a label for temporal status, and a label for the person who experienced the condition. The study develops the algorithm and evaluates it on an annotated corpus of general practitioners’ entries, specialist letters, radiology reports, and discharge letters.
ContextD adapts ConText, a rule-based algorithm originally designed for English. It starts with medical terms that have already been marked in a sentence. Nearby words or phrases can override the initial labels if the term lies within their scope, the stretch of text they are allowed to affect. The authors compare a Dutch translation of the original trigger lists with a version refined on development documents. The refinements account for differences in Dutch word order, shorten the reach of cues in some document types, and recognize shorthand such as a minus sign after a finding in a general practitioner’s entry. Additional patterns look for evidence that a condition belongs to the patient’s history.
On the held-out evaluation documents, the final version achieved F-scores of 87% to 93% for negated mentions across the four document types. It recovered many more negated mentions than the translation baseline, with some loss of precision. For the experiencer label Patient, F-scores ranged from 99% to 100%. Patient mentions were overwhelmingly common, so those scores primarily describe how well the algorithm recognized that majority class. Historical mentions were harder, with F-scores of 26% to 54%. For hypothetical mentions, the reported F-scores were 13% to 44% in the document types where the system correctly detected any.
The error analysis explains why the task goes beyond finding a cue. A phrase can deny an explanation for a headache while leaving the headache itself affirmed. A time expression can refer to a planned review rather than to the illness mentioned nearby. In some notes, section headings or clinical knowledge supplied evidence that the rules could never see. The study shows what local cues can accomplish for already recognized terms and makes the anonymized Erasmus Medical Center Dutch clinical corpus available for further research on the cases those cues handle poorly.
Deep dive: ContextD: an algorithm to identify contextual properties of medical terms in a Dutch clinical corpus
ContextD uses Dutch clinical notes to test how well local text cues identify denied conditions, their timing, and who experienced them. · about 32 minutes to read
The problem and its context
What a mention tells us
Electronic medical records contain free text alongside structured entries. The paper discusses the growing secondary use of these records for clinical research. A written note may contain a symptom, a treatment, or a diagnostic conclusion that would be useful in such a study. The first problem is finding the relevant terms. The next is recovering enough of what the writer said about them to use the mentions correctly. In information extraction, finding and interpreting a mention are distinct operations. ContextD concentrates on interpretation once the mention has been found.
A term indicating an infection, for instance, can occur in a note describing an examination that found no evidence of it. A diagnosis can belong to a patient’s past, or to a relative whose history is being taken. A clinician can also refer to a condition in instructions about when to return. In that case the note mentions a possible event. A system that collects terms without recording these differences can turn exclusions, family history, and conditional advice into apparent observations about the patient.
The paper’s unit of analysis is the individual marked mention. This matters because a sentence can express several claims. The presence of a negative expression tells us something about the sentence, but it leaves open which of the mentioned conditions the expression applies to. The paper uses scope for the region in which a cue can affect a mention. Cue detection and scope assignment are separate decisions. A system can find a genuine marker of negation and still assign the wrong label if it lets that marker reach too far.
The properties also answer different questions. Negation concerns whether the text provides evidence of absence. Temporality distinguishes recent, historical, and hypothetical mentions under the annotation scheme inherited from ConText. Experiencer distinguishes the patient from anyone else. The system makes these decisions for the same mention. For instance, recognizing a family relationship supplies evidence for the experiencer label while leaving the timing of the condition to be determined separately. None of the labels independently verifies what happened to the patient. They describe how a mention is presented in the record.
From negation cues to contextual labels
Among the approaches reviewed in the paper, NegEx provided the most direct starting point. NegEx recognizes phrases that indicate a finding is absent and keeps a separate inventory of expressions that resemble genuine negation cues. An expression such as not ruled out matters because it keeps a possibility open. Treating ruled out as a cue in isolation would give the opposite interpretation. This distinction between a genuine cue and a misleading match carries over to ConText and then to ContextD.
ConText extended the same design to temporal status and experiencer. The algorithm uses words and phrases as evidence, checks where they occur relative to a marked condition, and limits their reach. Its appeal to the ContextD authors was practical. The rules are compact enough to inspect and adapt, and the English system had already been tested on several varieties of clinical writing. The Dutch adaptation could retain the basic decision procedure while changing the linguistic evidence used to make each decision.
Other work had already taken on pieces of the problem. NegFinder combined grammatical analysis with regular expressions. Huang and colleagues likewise drew on grammatical structure as well as text patterns for negation in radiology. Such approaches use information about how words fit together to decide whether a negative expression applies to a finding. A different line of work, exemplified by Elkin and colleagues, treated uncertain assertions as an explicit category alongside positive and negative ones. That distinction becomes important in ContextD because clinicians can document a possibility without denying it or confirming it.
The paper also reviews machine learning approaches that treat cue detection and scope detection as prediction tasks. Some first locate the signal and then estimate where its influence starts and ends. Finding the exact scope is a more demanding task than deciding whether a particular marked mention falls within a plausible region. The earlier results therefore describe several related problems, including correct cue detection, correct scope boundaries, and correct labels for clinical mentions. Scores for one of these outcomes answer a different question from scores for another.
Speculation and temporal information had their own research traditions. Some speculation systems used lexical evidence, while others added syntactic patterns or learned to discriminate between uses of ambiguous expressions. Earlier work on clinical time also distinguished detecting a time expression from identifying its relation to an event. The paper discusses both the Med-TTK system for temporal expressions and the i2b2 shared task on temporal relations. That distinction anticipates a central challenge for ContextD. A note can contain a clearly recognizable duration without using it to date the nearby medical condition.
The authors saw no consistent winner among rule-based, learned, and combined approaches in the literature they reviewed. Their discussion emphasizes the text on which a system is developed and tested. A fixed rule can extend past the words it truly governs, while a system learned from one collection can lose accuracy on a different kind of note. Earlier comparisons on clinical assertion had favored different approaches in different settings. The authors chose adaptation of ConText as a tractable way to study the Dutch problem across several genres.
Why Dutch clinical writing needed its own test
Earlier work covered mainly English clinical records, although the paper cites adaptations of NegEx for Swedish and French. The authors knew of no Dutch system for the task at the time. A Dutch implementation needed a vocabulary of cues and a collection of documents on which readers could check the resulting labels. A translation could supply candidate phrases, but even a correct Dutch rendering might appear in a different position relative to the condition, or be split into parts that surround it.
Variation within Dutch clinical writing was just as relevant. General practitioners’ notes can consist of fragments and shorthand. Specialist correspondence may reach the record as a scan or a summary entered by the general practitioner. Radiology reports follow departmental conventions, while discharge letters are intended for communication across settings and tend to be more fully structured. The authors wanted the corpus to reflect several points in the documentation of care. Testing the genres separately would show where a single set of assumptions about sentences, punctuation, and local expressions was adequate and where it needed adjustment.
The method, step by step
From records to marked mentions
The project began with the Erasmus Medical Center Dutch clinical corpus. The general practitioner entries and specialist letters came from the IPCI database. A general practitioner entry concerns a visit and can follow the SOAP structure: Subjective, Objective, Assessment, and Plan. The researchers used its free text. Specialist letters convey the deliberations and treatment approach after referral. The radiology reports and discharge letters came from Erasmus Medical Center. Radiology reports describe and interpret imaging, with much of the text produced by speech recognition and editable by the radiologist. Discharge letters communicate what happened during an admission and what issues remain.
To identify medical mentions, the authors assembled a Dutch vocabulary from the Unified Medical Language System, or UMLS. They kept terms belonging to 35 semantic types, concentrating mainly on categories such as diseases, symptoms, and drugs. The resulting list contained 153,573 entries, including synonyms and alternative forms already listed in UMLS. In each document collection, they randomly selected documents from those containing at least one listed term.
For processing, the Dutch sentence splitter in Apache OpenNLP divided the text into sentences. The authors used case-insensitive exact string matching to mark vocabulary entries in that text. A difference in capitalization was allowed, while other differences needed a matching variant in the list. ContextD then worked from a sentence with the locations of the target mentions already marked. The tasks of selecting documents, recognizing mentions, and assigning contextual labels thus depended on the chosen vocabulary at different points in the study.
The authors describe the ContextD implementation and the anonymized annotated corpus as resources for research. They started from the Java implementation of ConText. That choice gave them an existing procedure for recognizing cues and applying them to premarked mentions. The new work concerned Dutch expressions, the rules for deciding how far they apply, and the data for developing and testing those decisions.
What the annotators marked
The authors used linguistic annotation to establish reference labels for each recognized mention. The negation labels were Negated and Not negated. An annotator chose Negated when the text indicated that the condition was absent. The distinction concerns the assertion around the mention. A word associated with negation can occur in the same sentence and affect some other claim.
For temporality, the scheme used Recent, Historical, and Hypothetical. The boundary between recent and historical was 2 weeks. A condition within that period belonged to the recent category, while one that developed earlier counted as historical. Hypothetical covers a different kind of case, such as a fever mentioned in conditional advice to return if it develops. Although the study places it on the temporality axis, the label also concerns whether the event is presented as having happened. This becomes consequential for possible current diagnoses, which can be current in time and uncertain in status.
For experiencer, the labels were Patient and Other. Other could cover a relative or any other person besides the patient. The goal was to separate the patient’s conditions from conditions attributed to someone else. More specific identities, such as which relative had a condition, were outside the label inventory.
Two annotators independently applied the guidelines, which included definitions and examples. An expert familiar with the document types resolved disagreements. Agreement was calculated for the property labels on already marked terms. For instance, agreement about whether a term was historical says nothing about whether the readers would have chosen the same span or found the same condition if they had received unmarked text.
The development and evaluation sets each received half of every document collection. The authors used the development set to revise their cue lists and rules and reserved the evaluation set for the final test. In this study, development meant inspecting annotated examples and refining a deterministic system. It supplied evidence about which trigger variants were worth retaining, where a scope needed to be shortened, and which constructions called for a special rule.
How a cue changes a label
At the start of processing, ConText assigns every mention Not negated, Recent, and Patient. These defaults stand unless suitable evidence changes them. The procedure searches the sentence for known expressions, called triggers. A trigger is associated with a property value and a role in determining where that value applies. A negative phrase before an infection, for instance, can have the same effect as a phrase after the infection stating that it has been excluded.
ConText classifies the cues for every nondefault property value as pre-triggers, post-triggers, termination triggers, or pseudo-triggers. A pre-trigger acts on material after it. A post-trigger acts on material before it. Under the original sentence-wide defaults, the former reaches rightward to the sentence end and the latter reaches leftward to the sentence start. A termination trigger encountered along that path cuts the region short. The direction is part of the cue’s definition, so detecting a cue on the wrong side of a marked condition gives no grounds for applying it there.
Pseudo-triggers identify expressions whose parts might otherwise be mistaken for genuine cues. An expression meaning unchanged, for example, can contain a negative word without asserting that the condition is absent. Once the procedure has collected the relevant matches in a sentence, it examines them in text order. It skips pseudo-trigger matches as sources of label changes. For a trigger that assigns a value, it establishes the corresponding scope and applies the value to each marked condition within that region.
This procedure can affect several mentions with one cue. That is useful when a clinician lists several absent findings after a shared expression. Its behavior depends on the region being a reasonable approximation to the part of the sentence governed by the cue. A sentence boundary or intervening termination cue can keep the rule from continuing into a new assertion. Within the remaining span, the procedure works from position and the properties attached to cues.
Assigning contextual labels with ContextD
The steps in order.
What the Dutch adaptation changed
The authors first attempted automatic translation of the English trigger lists using Google Translate. They found that the resulting coverage was insufficient. A native Dutch speaker familiar with clinical writing checked the translations and supplied variants. About 60% of the original English triggers had a one-to-one Dutch translation. For other cues, the Dutch inventory included multiple versions. The English expression never had, for example, led to Dutch forms including nooit gehad, had nooit, and hadden nooit. This expansion covered differences in word order and inflection that a single translated string could easily miss.
The translation established the baseline. The team then worked through the development documents and refined the lists and procedures. One issue was that a cue might have different effects depending on which expression it was paired with. In a note conveying that a patient has never had urinary tract infections, nooit can appear before the condition and doorgemaakt after it. Together they indicate that the condition was never experienced. In another note, the same word for never can deny use of medication whose description happens to mention tinnitus. Using nooit as a general pre-trigger can then incorrectly mark the tinnitus itself as absent. The authors dropped its standalone use from the trigger list when it failed to help and retained the idea of rules for particular combinations.
This was also a way to handle differences in word order between Dutch and English. A phrase translated as a unit may occur in separated pieces in Dutch. A rule seeking evidence on either side of a mention can recognize such a construction. The approach remains tied to specified combinations. It asks whether the pieces required by a particular rule are present, while a general analysis of the sentence’s grammar is outside the matching procedure.
The authors also experimented with how far a trigger should reach in each document genre. A sentence boundary remained the outer limit, but ContextD used shorter default spans of 6 words for general practitioner entries and 10 words for specialist letters. It could stop sooner at a termination cue. In general practitioner entries, commas and semicolons were added as stopping points. For specialist letters, the additional punctuation cues were colons and semicolons. Such boundaries are especially relevant in fragments that place several observations close together without the structure of a fully formed sentence.
General practitioner entries also received rules for a compact notation of absence. A clinician may put a minus sign after a finding, as in fever-. The authors added patterns for this notation and its variations. It is an example of an adaptation that a bilingual list of ordinary words would overlook. The character following the term is itself evidence about the finding.
Historical mentions prompted another extension. The inherited algorithm offered relatively few cues for them, so the authors added a temporality component based on regular expressions. A regular expression describes a pattern of text and can match several variants of that pattern. The component searched on both sides of the marked clinical term for indications of a past event. It used adjusted scopes to reduce the chance of assigning a historical label on the strength of an unrelated expression. The paper places the detailed expressions and their rules in its supplementary material. The method described in the article is a combination of those local patterns and the existing cue mechanism.
How the scores were defined
The evaluation treated each reported value as a positive class in its own comparison. For negation the positive label was Negated. For experiencer it was Patient. For temporality, each of Recent, Historical, and Hypothetical was evaluated against the remaining values together. This convention matters when reading the results. A true positive for experiencer is a correctly identified patient mention, and a true positive for historical status is a correctly identified historical mention.
P = TP ÷ (TP + FP)
P denotes precision. TP is the count of true positives, meaning mentions correctly assigned the positive label. FP is the count of false positives, meaning mentions given that label when the reference assigns a different one. The parentheses enclose the total number of positive predictions, and the division gives the share that were correct.
R = TP ÷ (TP + FN)
R denotes recall. TP is the count of correctly assigned positives. FN is the count of false negatives, meaning mentions that carry the positive label in the reference but receive a different label from the system. The denominator adds these counts to obtain the total number of reference positives. Recall is the share of those mentions the system recovered.
F = 2 × P × R ÷ (P + R)
F is the F-measure, also called F-score. P is precision and R is recall. The multiplication by 2 and division by their sum give their harmonic mean. This measure rewards getting both parts of the task right. Selecting only a few unmistakable cases can yield high precision while leaving recall, and therefore the F-score, low.
The authors used Cohen’s kappa to describe agreement between the annotators. Kappa accounts for the agreement expected from the annotators’ use of the labels. It is a measure of how consistently people assigned labels before adjudication. Precision, recall, and F-score address a different comparison: how the algorithm’s predictions matched the adjudicated labels. For a class with no reference examples, recall has a zero denominator. Precision has a zero denominator when the system makes no positive predictions. A missing score in such a setting is different from a computed score reporting poor performance.
Experiments and results
What was available to test
The annotated collection had substantial differences in class balance. Across the corpus, negated mentions represented 12% of recognized terms in general practitioner entries, 15% in specialist letters, 16% in radiology reports, and 13% in discharge letters. Historical mentions varied more by genre. They represented 2% in general practitioner entries and 3% in radiology, compared with 8% in specialist letters and 6% in discharge letters. The authors connect that difference to the use of correspondence to convey a patient’s medical history.
Hypothetical mentions represented 1% in general practitioner entries, 2% in specialist letters, and 1% in radiology. The corpus contained none in discharge letters. Mentions attributed to someone other than the patient ranged from 0.1% to 2% across document types. Those distributions establish what the usual case looks like, and they explain why results for the rarer values are especially sensitive to what the authors happened to find in the development and evaluation documents.
The agreement analysis already showed a difference in how readily the properties could be assigned. Kappa for Negated was 0.90 in both general practitioner entries and specialist letters. For Historical, it was 0.57 in general practitioner entries and 0.62 in specialist letters. For Hypothetical, it was 0.48 and 0.46, respectively, with 0.46 the lowest kappa the paper reports. The authors describe agreement for Recent as generally very good, with radiology an exception where it was good. The experiencer result for radiology was also an exception to the generally very good agreement for that property. The authors relate this to the extreme rarity of the Other class in those reports. With such an imbalance, a small number of disagreements can have a marked effect on kappa.
Negation improved in every genre
The principal comparison used the held-out evaluation documents for both settings. The baseline ran the ConText procedure with the automatically translated and manually checked Dutch trigger inventory. Final ContextD used the lists and rules after development, including the scope changes and specialized patterns. Because the baseline already incorporated Dutch variants, this comparison measures the gain from refinement after translation and manual review.
Negated-mention recall for translated ConText and ContextD on the Dutch evaluation set
The final rules recovered more reference negations in every document genre.
The numbers
| System or setting | Recall |
|---|---|
| General practitioner entries, translated baseline | 0.66 |
| General practitioner entries, final ContextD (this paper) | 0.90 |
| Specialist letters, translated baseline | 0.63 |
| Specialist letters, final ContextD | 0.90 |
| Radiology reports, translated baseline | 0.55 |
| Radiology reports, final ContextD | 0.97 |
| Discharge letters, translated baseline | 0.67 |
| Discharge letters, final ContextD | 0.93 |
The baseline was already precise when it predicted a negation. On the evaluation set, its precision was 0.96 for general practitioner entries, 0.93 for specialist letters, 0.96 for radiology reports, and 0.98 for discharge letters. That precision came with missed cases. Radiology illustrates the pattern particularly clearly. The baseline recovered relatively few of the reference negations despite being very frequently correct when it applied the label.
The final version gave up some precision in all genres. Its evaluation precision for negation was 0.88 in general practitioner entries, 0.84 in specialist letters, 0.91 in radiology reports, and 0.92 in discharge letters. The higher recall more than compensated in F-score. For general practitioner entries, the baseline and final F-scores were 0.78 and 0.89. For specialist letters they were 0.75 and 0.87. For radiology reports they were 0.70 and 0.93, and for discharge letters 0.79 and 0.92. The gains were therefore consistent across genres, with different precision and recall profiles in the final setting.
Historical labels became easier to retrieve
The historical category also benefited from refinement, mainly through better recall. In general practitioner entries, baseline recall on the evaluation set was 0.17 and final recall was 0.54. In specialist letters it went from 0.10 to 0.76, in radiology reports from 0.30 to 0.67, and in discharge letters from 0.13 to 0.78. The final procedure was finding historical mentions that a translated inventory alone had missed.
Precision remained a problem. On evaluation documents, the final historical precision was 0.17 for general practitioner entries, 0.41 for specialist letters, 0.37 for radiology, and 0.39 for discharge letters. Specialist letters illustrate how that tradeoff can still yield an F-score gain. Their baseline precision was 0.47, higher than the final precision, but it accompanied much lower recall. The final procedure placed many more mentions in the historical category, including both correctly recovered cases and incorrect assignments.
Historical-mention F-score for translated ConText and ContextD on the Dutch evaluation set
The final procedure improved historical labeling across genres, with the weakest result still in general practitioner entries.
The numbers
| System or setting | F-score |
|---|---|
| General practitioner entries, translated baseline | 0.16 |
| General practitioner entries, final ContextD (this paper) | 0.26 |
| Specialist letters, translated baseline | 0.17 |
| Specialist letters, final ContextD | 0.54 |
| Radiology reports, translated baseline | 0.30 |
| Radiology reports, final ContextD | 0.48 |
| Discharge letters, translated baseline | 0.19 |
| Discharge letters, final ContextD | 0.52 |
The results for Recent help put the historical gains in context. On the held-out documents, final recall for recent mentions was 0.94 in general practitioner entries, 0.92 in specialist letters, 0.96 in radiology, and 0.91 in discharge letters. The corresponding baseline recalls were 0.98, 0.99, 0.98, and 0.98. Final precision for Recent was higher in each genre, while the F-scores were slightly lower in general practitioner entries, specialist letters, and discharge letters and remained 0.97 in radiology. Recent was the initial assignment. Changing labels more readily gave the procedure a better chance of finding alternative temporal values, with consequences for the balance of precision and recall on the default value.
Hypothetical mentions and experiencer labels
The translated baseline did not correctly identify any hypothetical mentions in the evaluation set. With the final rules, precision for Hypothetical was 0.67 in both specialist letters and radiology reports. Recall was 0.07 in specialist letters and 0.33 in radiology. The resulting F-scores were 0.13 and 0.44, respectively. The same precision in these genres thus accompanied very different coverage. In general practitioner entries, the final version still failed to correctly identify a hypothetical mention. The discharge letter collection had no reference examples of the class.
For experiencer, F-scores for the Patient class were 0.99 in general practitioner entries, specialist letters, and discharge letters and 1.00 in radiology. The translated baseline and the final system had the same reported F-score in each of these genres. Patient was both the default assignment and the most common label. The test therefore demonstrates strong agreement with the reference for patient mentions. Its headline scores provide limited information about how consistently the system detected the much smaller group attributed to other people.
Across the evaluation documents, the algorithm used 41 distinct triggers in assigning the contextual labels described by the authors. The paper breaks this down into 23 for negation, 5 for historical status, 3 for hypothetical status, and 10 for experiencers other than the patient. The most common negation trigger was geen, which expresses absence. The historical expression status na and the kinship term moeder were the most used cues for temporality and experiencer, respectively. The trigger counts describe the expressions that came into play in these documents. The inventories available to the system were much larger.
The comparison with English ConText
The paper also compares selected Dutch results with published results from the original English ConText study. The authors chose radiology reports and discharge letters because the genres appeared similar across the studies. This comparison gives a reference point for the adaptation, with different documents and languages on either side. The translated baseline on the Dutch evaluation set remains the direct test of the Dutch modifications.
For radiology negation, both studies reported an F-score of 0.93. Their precision and recall differed. English ConText had precision of 1.00 and recall of 0.86, while Dutch ContextD had precision of 0.91 and recall of 0.97. For the discharge-letter comparison, F-score for negation was 0.86 for English ConText and 0.92 for Dutch ContextD. The Dutch figures describe the Dutch evaluation documents, while the English figures come from the earlier evaluation.
On historical status in discharge letters, English ConText had an F-score of 0.73 and Dutch ContextD had an F-score of 0.52. The contrast was mainly in precision, with 0.68 for English and 0.39 for Dutch, whereas recall was 0.77 and 0.78, respectively. The authors note that some apparent historical false positives in the Dutch data involved reference labels that they questioned during error analysis. For historical mentions in radiology, the comparison lacked an English score. Hypothetical status also lacked a matched comparison: the English radiology result was unavailable, and the Dutch discharge material had no hypothetical examples. The authors describe experiencer performance in the two studies as similarly high.
What the ablations show
The translation comparison evaluates a package of changes
The paper gives no component-by-component ablation. Its controlled comparison holds the Dutch evaluation documents fixed and changes the system from translated ConText to final ContextD. The error audits and trigger counts then offer evidence about where the combined modifications helped and where difficulties remained.
The aggregate comparison makes a case for adapting beyond a translated vocabulary. The larger gains in recall for negation and historical status show that the development process helped the system act on evidence that the translation baseline frequently missed. The comparison cannot allocate those gains among the revised inventories, the combined-trigger rules, the shorter scopes, the punctuation boundaries, the notation for absence, and the historical patterns. Some modifications can even act in opposite directions on individual mentions. Adding a cue makes it possible to change more labels, while shortening a scope can prevent a cue from changing a label at all.
Genre-specific settings also need to be interpreted at the level the study tested. A shorter cue range in general practitioner notes is a response to their compact style, and the punctuation rules reflect the way one observation may run into the next. The final figures report the net behavior of a system that uses all these decisions together. The reported comparison does not establish how much of the general practitioner result would carry over with a different window or with the punctuation rules removed.
A smaller observation from development concerns nooit. As a standalone cue, it failed to improve performance. The example involving medication use and tinnitus explains how that failure can arise. The word signals negation somewhere, but the medical term that happens to appear nearby is not what is being denied. The combined rule for an expression meaning that a patient has never experienced a condition is narrower. This is evidence for treating the construction as the unit of the rule. It supplies no held-out estimate for the separate contribution of the combined-trigger rules.
The trigger counts give another view of what the rules are doing. Of 395 possible Dutch negation triggers, 23 were found in the evaluation set. A common expression such as geen can account for many decisions, while most entries in the vocabulary may go unused in a given test collection. The observed concentration tells us how this corpus exercised the inventory. Cues that were dormant here could still matter in other clinical writing or in rarer constructions.
Why the system missed reference labels
The authors examined samples of false negatives from the evaluation set, where the intended positive label was missed. In 40% of the audited errors, a cue was missing from the inventory. One note expresses absence of a family history for thrombosis using blanco voor. Without that phrase in the list, the algorithm leaves the thrombosis mention with its default negation label. The mention had already been found. The failure arose at the later stage of deciding what the note said about it.
A missing cue can reflect a deliberate choice. The authors describe leaving out expressions such as is weg, meaning that something is gone, when including them caused too many incorrect predictions in development. Finding the same phrase in a missed evaluation example identifies an opportunity for a more selective rule. It does not establish that adding the bare phrase to the inventory would improve the system overall. The phrase must behave well across the cases in which it occurs.
A further 19% of the audited false negatives involved cue configurations where a pre-trigger or a post-trigger alone was inadequate. In a compact entry, the Dutch word nee can follow a finding and rule it out, with several such answers taking up the same sentence. The authors suggest that a post-trigger with a maximum reach of 2 words might have recognized the denial of morning stiffness in one such example. The narrow rule is targeted at the adjacency of the finding and its answer. A general backward rule for nee would be free to affect earlier findings to which a different answer belongs.
In 17% of the sampled false negatives, the sentence was too complex for the authors to identify a trigger or pattern that they could generalize. One clustered several symptoms and included the patient’s thought that a kidney stone might be responsible. The phrase signaling that thought could be treated as evidence of a hypothetical diagnosis in that instance. The authors judged that using it broadly would introduce false positives. This example resembles the problem with nooit: a phrase is informative in context, while its unrestricted use is unreliable.
Trigger variants made up 8% of the audited false negatives. The remaining 16% came from circumstances such as typing errors, incorrect sentence splits, and evidence located in a different sentence. These failures implicate different parts of the procedure. Adding a missed verb form can improve coverage of a phrase within the algorithm’s existing design. Evidence beyond the sentence requires a change in what text the procedure can consult.
For hypothetical mentions in general practitioner entries, the discussion identifies a development problem as well. The cues used to express a contingency were rarely represented among development examples. The Dutch cue bij, glossed as upon, was absent there and accounted for about a third of the evaluation errors the authors discuss for that difficult category. The other cases involved complex sentences from which they struggled to derive reliable patterns. The finding concerns both the language of hypothetical mentions and the amount of evidence available for refining the rules.
Why the system applied a label too readily
The false-positive audit examined incorrect positive predictions. For hypothetical and patient mentions, there were fewer errors available than the authors’ intended sample size, so they included all available cases. The audit percentages describe the errors reviewed under that sampling procedure. They are not rates among all mentions in the evaluation set.
In 37% of these errors, the system found a cue and extended its scope over a condition that the cue did not govern. The radiology example is an assertion that there is no ophthalmological explanation for a headache. The Dutch negative cue applies to the proposed explanation. The headache remains the finding to be explained. A position-based scope reaches the word for headache and can negate it anyway. This is a case where even a perfectly recognized trigger gives the wrong result when the span is defined too broadly.
The authors attributed 14% of the audited false positives to annotation errors. Several concerns involved status na, an expression that can signal a prior event. The reference had sometimes left a mention recent or treated it as hypothetical when the audit judged it historical. This means some apparent prediction errors also exposed weaknesses in the reference labels. The published evaluation scores still use the study’s reference assignments. The audit provides a way to interpret part of the disagreement behind those scores.
Ambiguous experiencer cues accounted for another 14% in the authors’ audit. The short Dutch form pa can refer to a father or to pathology, while oma can mean grandmother or stand for acute otitis media. A literal match supplies the same signal in both readings. The cases illustrate how an expression intended to identify a person can behave differently when it is also a medical abbreviation. Adding more occurrences of the same string to a list would leave that ambiguity intact.
Problems with the temporality patterns accounted for 11% of the audited false positives. In one note, a duration appeared near a mention of influenza, and the regular expression caused the influenza to be labeled historical. The note actually described a recent illness and used the duration in instructions about a further review if the patient did not improve. A cue such as net, meaning recently, and a comparison sign associated with the duration supplied clues the rule could have used. The example shows that recognizing a plausible duration and attaching it to the correct event are separate steps.
Missing pseudo-triggers accounted for 9% of audited false positives. An expression meaning that cramps had not decreased included a negative word, but the statement concerned the amount of cramping rather than its existence. A pseudo-trigger for the larger expression could keep the embedded negative word from changing the mention’s negation label. The remaining 15% were attributed to other causes. Across the audit, incomplete cue coverage, inaccurate scope, ambiguous wording, and reference disagreement recur as distinct sources of error. Each would require different evidence to establish that a change had helped.
Limitations
Limits identified by the authors
The authors qualify what the corpus can say about the medical vocabulary found in different notes. A list of 153,573 entries sounds broad, but that count includes variants and synonyms. The Dutch terms came from a limited portion of UMLS and concentrated on selected semantic types. General practitioner entries were shortest in the corpus while yielding more matched terms than the much longer discharge letters. The authors suggest that the vocabulary favored common clinical terms likely to occur in general practice. The matching statistics therefore describe what this particular lexicon found in each genre.
Exact matching also leaves gaps when clinicians write unlisted variants or make spelling errors. The same problem applies to trigger phrases. Recognizing a new spelling is the simpler case. Some variants occur in different constructions, where the scope or the regular expression may also need adjustment. Extending a list can solve a missing-string problem while leaving the interpretation problem intact.
ContextD’s local rules are bounded by the quality of sentence splitting. The authors observed errors from the Dutch Apache OpenNLP sentence splitter because it was trained on regular text. Fragmentary general practitioner entries and specialist letters make sentence boundaries particularly important. Splitting a note prematurely can place the cue and its condition in separate inputs. Failing to split at a real boundary can put unrelated assertions into the same input. The authors discuss retuning the sentence splitter for clinical writing. They also suggest that grammatical analysis could be more practical for genres such as radiology reports and discharge letters, where the text is generally better structured.
Even with correct sentence boundaries, a rule confined to one sentence misses context provided elsewhere. A heading indicating past medical history can set the temporal interpretation for several following statements. A condition can appear under that heading without a time phrase in the same sentence. The authors point out that ContextD had no access to this section information. This limitation differs from finding a missing trigger. The evidence may be entirely clear to a reader who can see the document’s structure.
The annotation exercise also exposed ambiguity in what counts as historical. The authors observed that readers with medical training could rely on knowledge of a disease’s usual course and assign a historical label from its presumed chronicity. They also disagreed on how much time status na implied when a note did not give an explicit date. One reader might classify the event as part of the history, while another might regard its timing as uncertain. A procedure that reads only local words cannot reproduce judgments that draw on knowledge absent from those words. A phrase can also reasonably support different labels under a scheme with a fixed age boundary and no explicit value for uncertain timing.
Differential diagnoses posed a related difficulty. In a note where appendicitis and diverticulitis were under consideration, one annotator treated them as recent on the reasoning that they would be current if present. The other treated them as hypothetical because they were possibilities. The disagreement identifies two questions that the label inventory places together: when a condition would hold and how firmly it is asserted. ContextD also did not separate patient-reported complaints, a clinician’s suspected diagnosis, and an established diagnosis. The authors discuss richer assertion labels as a way to represent differences in certainty that the original scheme compresses.
Finally, the authors describe candidate improvements based on evaluation errors, including new triggers and more specific historical patterns. The error analysis shows which cases prompted those proposals. Their benefit on fresh documents would require another evaluation, especially because the study already encountered expressions that helped individual examples but hurt development performance when applied more widely.
Limits of the evidence
The reported contextual scores apply after recognition of a medical term. A condition missed by the vocabulary never reaches the annotation or context-labeling stage. Consequently, the evaluation documents can show how the algorithm treats a known mention of a disease, while performance on all clinically relevant mentions in the records remains undetermined. That distinction matters most for terms likely to appear as shorthand, misspellings, or vocabulary absent from the chosen UMLS categories.
Document selection also limits the population being measured. The authors randomly selected records that contained a match to the vocabulary. The collection covers different parts of clinical documentation, but the results remain conditional on that selection and on the processes that produced the documents in the participating collections. The holdout supports a comparison on unseen examples from those sources. Generalization to a different institution, a new collection process, or a different set of Dutch clinical genres remains an open question.
The evaluation emphasizes different classes for different properties. Negated is the positive class for negation. Patient is the positive class for experiencer, where it is also the usual value. The high patient F-scores and the strong negation F-scores thus document different achievements. The former show accurate identification of patient mentions in a heavily imbalanced collection. The latter measure recovery of a less frequent contextual override. A separate assessment centered on Other would be needed to tell how reliably family members and other non-patients were detected.
Rare labels also constrain the temporal comparisons. The absence of hypothetical examples in discharge letters leaves no direct evidence about the algorithm’s ability to recognize them in that genre. In general practitioner entries, the observed failure to recover any hypothetical example is informative for the evaluated documents, while the limited development evidence makes the causes hard to separate. The study supports several explanations, including sparse examples, absent cues, and complex wording. It does not isolate their relative effects in a controlled experiment.
The English comparison is bounded in another way. Choosing apparently similar document genres enables a descriptive comparison, but the English and Dutch results involve separate collections and separate annotation circumstances. A difference in historical precision may reflect the rules, the clinical writing, the labels, or some combination of these. The clearest claim about the value of Dutch refinement comes from the baseline and final versions evaluated on the same Dutch documents. The clearest claim about the causes of individual errors comes from the examples in the audit.
What came after
Spanish radiology reports
A later citing study from 2016 examined syntactic methods for detecting negation in Spanish radiology reports. Its stated topic brings together a genre studied in ContextD and an alternative source of evidence for determining what a cue governs. ContextD’s radiology example about the absence of an explanation for a headache shows the relevance of that question. The words for the explanation and the finding can lie close together, while the grammatical relation determines which one is denied. The Dutch authors themselves identified grammatical analysis as a possible direction for well-structured reports. The Spanish study addresses that same point of contact between document genre and cue scope. The citation establishes the connection to ContextD, while the study’s title establishes its language, genre, and methodological focus. Syntactic negation detection in Spanish radiology reports
German clinical reports
A separate citing study from 2016 addressed negation detection in German clinical reports. It continues the multilingual line of work that ContextD places alongside earlier Swedish and French adaptations. ContextD’s Dutch experiments clarify what changes when a study moves to another language: the vocabulary of cues needs local evidence, and the position and reach of a cue depend on how clinicians express findings in that language. The German study’s stated scope concerns negation in clinical reports. Its citation of ContextD connects the two studies at that task level, while leaving the specific implementation and any reuse of the Dutch rules undetermined. Negation detection in German clinical reports
The two later studies focus on negation, the contextual property for which ContextD showed the most consistent improvement over its translation baseline outside the default labels. They extend the record of clinical negation research to additional languages. The Spanish radiology study also follows the question raised by the Dutch error analysis about using grammatical structure to determine whether a cue governs a finding. This is a narrower continuation of the Dutch study’s agenda, which also examined historical and hypothetical mentions and the attribution of conditions to people other than the patient.
Cite
Cite as Zubair Afzal, Ewoud Pons, Ning Kang, Miriam Sturkenboom, Martijn J. Schuemie and Jan A. Kors. 2014. ContextD: an algorithm to identify contextual properties of medical terms in a Dutch clinical corpus. BMC Bioinformatics.
@inproceedings{afzal2014contextd,
title = {{ContextD: an algorithm to identify contextual properties of medical terms in a Dutch clinical corpus}},
author = {Zubair Afzal, Ewoud Pons, Ning Kang, Miriam Sturkenboom, Martijn J. Schuemie and Jan A. Kors},
booktitle = {BMC Bioinformatics},
year = {2014},
doi = {10.1186/s12859-014-0373-3},
url = {https://doi.org/10.1186/s12859-014-0373-3}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/afzal-2014-contextd-algorithm-identify-contextual-properties/