Hostname: page-component-74656f9884-7drmj Total loading time: 0 Render date: 2026-11-05T11:10:59.180Z Has data issue: false hasContentIssue false

Comparison of rule-based and neural network models for negation detection in radiology reports

Published online by Cambridge University Press:  18 November 2020

D. Sykes*
Affiliation:
Division of Psychiatry, Centre for Clinical Brain Sciences
A. Grivas
Affiliation:
Institute for Language, Cognition and Computation, School of Informatics
C. Grover
Affiliation:
Institute for Language, Cognition and Computation, School of Informatics
R. Tobin
Affiliation:
Institute for Language, Cognition and Computation, School of Informatics
C. Sudlow
Affiliation:
Usher Institute of Population Health Sciences and Informatics
W. Whiteley
Affiliation:
Centre for Clinical Brain Sciences, Edinburgh Medical School
A. Mcintosh
Affiliation:
Division of Psychiatry, Centre for Clinical Brain Sciences
H. Whalley
Affiliation:
Division of Psychiatry, Centre for Clinical Brain Sciences
B. Alex
Affiliation:
Institute for Language, Cognition and Computation, School of Informatics Edinburgh Futures Institute, School of Literatures, Languages and Cultures, University of Edinburgh, Edinburgh, UK
*
*Corresponding author. E-mail: dominic.sykes@ed.ac.uk
Rights & Permissions [Opens in a new window]

Abstract

Using natural language processing, it is possible to extract structured information from raw text in the electronic health record (EHR) at reasonably high accuracy. However, the accurate distinction between negated and non-negated mentions of clinical terms remains a challenge. EHR text includes cases where diseases are stated not to be present or only hypothesised, meaning a disease can be mentioned in a report when it is not being reported as present. This makes tasks such as document classification and summarisation more difficult. We have developed the rule-based EdIE-R-Neg, part of an existing text mining pipeline called EdIE-R (Edinburgh Information Extraction for Radiology reports), developed to process brain imaging reports, (https://www.ltg.ed.ac.uk/software/edie-r/) and two machine learning approaches; one using a bidirectional long short-term memory network and another using a feedforward neural network. These were developed on data from the Edinburgh Stroke Study (ESS) and tested on data from routine reports from NHS Tayside (Tayside). Both datasets consist of written reports from medical scans. These models are compared with two existing rule-based models: pyConText (Harkema et al. 2009. Journal of Biomedical Informatics 42(5), 839–851), a python implementation of a generalisation of NegEx, and NegBio (Peng et al. 2017. NegBio: A high-performance tool for negation and uncertainty detection in radiology reports. arXiv e-prints, p. arXiv:1712.05898), which identifies negation scopes through patterns applied to a syntactic representation of the sentence. On both the test set of the dataset from which our models were developed, as well as the largely similar Tayside test set, the neural network models and our custom-built rule-based system outperformed the existing methods. EdIE-R-Neg scored highest on F1 score, particularly on the test set of the Tayside dataset, from which no development data were used in these experiments, showing the power of custom-built rule-based systems for negation detection on datasets of this size. The performance gap of the machine learning models to EdIE-R-Neg on the Tayside test set was reduced through adding development Tayside data into the ESS training set, demonstrating the adaptability of the neural network models.

Information

Type
Article
Copyright
© The Author(s), 2020. Published by Cambridge University Press
Figure 0

Figure 1. An example of a synthetic yet realistic brain imaging report with disease entity, modifier, negation, relation and label annotations created for the ESS and Tayside datasets. Manual annotation used for development, training and evaluation were conducted using the brat annotation tool (Stenetorp et al. 2012).

Figure 1

Table 1. Dataset statistics

Figure 2

Table 2. Disease and modifier entity negation statistics across our datasets. The leading count is the number of non-negated occurrences (POS) followed by the number of negated occurrences (NEG)

Figure 3

Table 3. Counts of the most common tokens that surround a negated mention of a disease/modifier. Tokens are grouped into types depending on the manner with which we interpret them to interact with the mentions. They are ordered from top to bottom from most frequent to least frequent. The counts were constructed using a window of the 15 previous and 15 next tokens as context

Figure 4

Figure 2. Negation cue distribution around negated (top graph) and positive (bottom graph) disease entities and modifiers for a selection of the most frequent cues from Table 3. We have plotted interpolating lines to highlight the relative increase and decrease in frequency depending on the position in the context window. We note that for the negated contexts seen in the top graph, no and evidence almost always precede the mention, while other cues appear both before and after it. Moreover, the appearance of no in the negated context can precede the entity by more than 10 tokens, while connectives such as and, or and comma appear in a closer context, suggesting that they are used to extend the scope of negation. As expected, the cues are more frequent in negated contexts than positive contexts as can be seen by comparing the graphs (note that the y-axis is on a different scale).

Figure 5

Figure 3. Percentage of times negation of a disease entity or modifier $t_0$ can be explained by finding an occurrence of the negation cue no in the n preceding tokens. The graph can be interpreted as the cumulative value of the blue curve in the top graph of Figure 2, being aggregated from index 0 to $-15$.

Figure 6

Figure 4. FFNN-Neg architecture description. Given we wish to predict whether a target input $t_i$ is negated, we feed a padded context window surrounding the target token to the network. To encode entity information, we replace the tokens of an entity with a single surrogate ENT token. We feed the concatenation of the embeddings of the context window through a feedforward network with a single hidden layer and a sigmoid output layer for negation prediction.

Figure 7

Figure 5. Token data are input for a word embedding and entity surrogate embedding, to which dropout of 0.5 is applied. These are used as input to a bidirectional LSTM. The hidden state of the LSTM is concatenated with Binary Entity Data for input into a fully connected layer with sigmoid activation for negation prediction.

Figure 8

Table 4. Overall negated entity (n. 961) results on the ESS test set. We report precision (positive predictive value), recall (sensitivity) and F1 score (harmonic mean of precision and recall) for negative annotations as well as 95% confidence intervals for precision and recall in parentheses for rule-based systems and the mean $\pm 1$ standard deviation of five runs with different random seeds for machine learning models. Bold text indicates the highest performing model overall.

Figure 9

Table 5. Overall negated entity (n. 988) results on the Tayside test set. We report precision (positive predictive value), recall (sensitivity) and F1 score (harmonic mean of precision and recall) for negative annotations as well as 95% confidence intervals for precision and recall in parentheses for rule-based systems and the mean $\pm 1$ standard deviation of five runs with different random seeds for machine learning models. Bold text indicates the highest performing model overall.

Figure 10

Figure 6. Example negation detection output of EdIE-R-Neg and FFNN-Neg on synthetic data. Diseases are represented in purple and modifiers in orange. Negation is marked as NEG in the tag. Both systems get the first two sentences correct. Correctly tagging the third sentence relies on understanding that ‘hard to differentiate x’ implies that x is likely not present, something both EdIE-R-Neg and FFNN-Neg fail. FFNN-Neg gets the tags of the last sentence wrong presumably by relying on the presence of but or information that this is a haemorrhagic stroke entity, which is more commonly negated than not.

Figure 11

Table 6. Effect of training on additional Tayside data on reported Tayside test scores (transfer learning). The scores reported are the mean over five runs with different random initialisation seeds and the range reported in parentheses is a standard deviation below and above the mean. Bold text indicates the highest performing model for each metric.

Figure 12

Table A.1. Comparison of results for all models on the ESS test set broken down by disease and modifier entities including total counts. We take negation to be the positive class, therefore TP (True Positives) are correctly predicted negated disease and modifier entities while TN (True Negatives) are correctly predicted non-negated disease and modifier entities

Figure 13

Table A.2. Comparison of results for all models on the Tayside test set, as well as summary data for disease and modifier entities combined. We take negation to be the positive class, therefore TP (True Positives) are correctly predicted negated disease and modifier entities while TN (True Negatives) are correctly predicted non-negated disease and modifier entities