Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Sep 1.
Published in final edited form as: Surgery. 2024 Jul 6;176(3):577–585. doi: 10.1016/j.surg.2024.05.042

Prediction of Intra-abdominal Injury Using Natural Language Processing of Electronic Medical Record Data

Giovanna Danna 1, Ravi Garg 2, Joanna Buchheit 2, Radha Patel 1, Tiannan Zhan 2, Alexander Ellyn 1, Farhan Maqbool 2, Linda Yala 2, Yuriy Moklyak 2, James Frydman 2, Abel Kho 2, Nan Kong 3, Alona Furmanchuk 2, Alexander Lundberg 2, Anne M Stey 2
PMCID: PMC11330356  NIHMSID: NIHMS2001582  PMID: 38972771

Abstract

Background:

This study aimed to use natural language processing (NLP) to predict the presence of intra-abdominal injury using unstructured data from electronic medical records (EMR).

Methods:

This was a random sample retrospective observational cohort study leveraging unstructured data from injured patients taken to one of nine acute care hospitals in an integrated health system between 2015 and 2021. Patients with International Classification of Disease External Cause of Morbidity Codes were identified. History and Physical, Consult, Progress and Radiology Report text from the first eight hours of care were abstracted. Annotator dyads independently annotated encounters’ text files to establish ground truth regarding whether intra-abdominal injury occurred. Features were extracted from text using NLP techniques, Bag of Words and Principal Component Analysis (PCA). We tested Logistic Regression, Random Forests, and Gradient Boosting Machine to determine accuracy, recall and precision of NLP to predict intra-abdominal injury.

Results:

A random sample of 7,000 patient encounters out of 177,127 were annotated. Only 2,951 had sufficient information to determine whether an intra-abdominal injury was present. Among those, 84 (2.9%) had an intra-abdominal injury. The concordance between annotators was 0.989. Logistic regression of features identified with Bag of Words and PCA had the best predictive ability, with an area under the Receiver Operating Characteristic Curve of 0.9, recall of 0.73 and precision of 0.17. Text features with greatest importance included “abdomen”, “pelvis,” “spleen”, and “hematoma”.

Conclusion:

NLP could be a screening decision support tool, that if paired with human clinical assessment can maximize precision of intra-abdominal injury identification.

Keywords: Trauma, Natural Language Processing, Electronic Medical Record, machine learning, trauma surgery

INTRODUCTION

Intra-abdominal injuries have a 40% mortality rate.1 Patients with less obvious external signs of trauma are still at risk for clinically significant intra-abdominal injury.2, 3 Delayed diagnosis or treatment of intra-abdominal injury leads to worse outcomes.2, 4 Human clinical assessment has a high positive predictive value (i.e. precision) for detecting intra-abdominal injury but has poor recall due to the presence of concomitant and distracting injuries.5, 6 Recall is the number of results that are correctly identified relative to all patients with the disease, meaning what percentage of positives were actually classified correctly.7 It is unclear if natural language processing of electronic medical record (EMR) data could have sufficient accuracy and recall to identify patients with intra-abdominal injury.

Leveraging natural language processing (NLP) of EMR data may improve diagnosis of intra-abdominal injury soon after emergency department presentation. NLP of EMR unstructured text data can identify features associated with a diagnosis.8, 9 Unstructured text data of patient condition and care come in various forms including history of present illness and consult notes, radiology reports and operative reports. NLP has been useful in identifying common terms highly predictive of chest injury.10 EMR decision support tools utilized in real-time could screen and prompt clinicians to diagnose intra-abdominal injury early to facilitate prompt treatment.

The overall objective of this study was to determine if NLP with machine learning models utilizing EMR data of injured patients in the first eight hours of care could have sufficient accuracy and recall to predict intra-abdominal injury. The first aim was to describe patients with intra-abdominal injury identified by annotation of the EMR unstructured text data. The second aim was to determine the accuracy, recall and precision of several NLP techniques with different machine learning models in classifying patients with intra-abdominal injuries versus those without. The third aim was to identify the text features most highly associated with intra-abdominal injury. The hypothesis was integrating EMR unstructured text data using NLP, machine learning models could classify patients with intra-abdominal injury with high accuracy and recall.

PATIENTS AND METHODS

Study Design & Data Sources

This was a random sample retrospective observational cohort study. We leveraged EMR unstructured text data from the first eight hours of care of injured patients that presented to any emergency department of nine acute care hospitals in an integrated academic health system between 2015 to 2021 to test the hypothesis that NLP with machine learning could predict intra-abdominal injury with good accuracy and recall.11 The University Institutional Review Board approved this study number STU00213470. The Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis (TRIPOD) guidelines were followed in the reporting of the methods and results.12

Inclusion and Exclusion Criteria

Injured patient encounters in the EMRs of these nine acute care hospitals presenting between 2015 to 2021 in the emergency department were identified using International Classification of Diseases 9th (ICD-9) and 10th (ICD-10), External Cause of Morbidity or Injury Diagnosis Codes (Appendix 1). We selected a random sample of 7000 encounters from 177,127 encounters for annotation (Appendix 2). All unstructured text data from the first eight hours of care of each encounter were abstracted. This time point was used as it has been recognized to yield models that were highly predictive of chest injury.10 Unstructured text data included were history and physical, nursing, consult and progress notes, radiology (Computed Tomography and ultrasound) reports, and operative reports.

Annotation

All unstructured text data from the first eight hours of care of each encounter were read and analyzed independently by two clinician annotators (GD, LY, RP, AE, FM) to determine ground truth of whether the patient in the encounter had an intra-abdominal injury. Patient encounters were included only if they contained enough information in the text to determine whether or not they had intra-abdominal injury objectively by two separate annotators independently. Encounters were excluded by annotators if the encounter lacked text documentation of any abdominal physical and/or radiological examination (N=4049). Discordance between two annotators (GD, LY, RP, AE, FM) were resolved through discussion until consensus was achieved. When consensus could not be achieved a third annotator with more clinical trauma expertise (FM, LY, AS) adjudicated to minimize bias.

Outcome

The primary outcome of this study was intra-abdominal injury. Intra-abdominal injury was defined as a documented abnormal physical exam with abnormal findings of acute intra-abdominal processes concerning for injury such as abdominal distention, ecchymosis, or generalized tenderness (peritonitis). These physical exam findings were cross referenced with radiology or operative reports when also present. These report findings were prioritized in diagnosis of intra-abdominal injury even if a normal physical exam had been recorded. A patient was considered to not have an intra-abdominal injury if they had a documented normal abdominal physical exam or an abdominal CT scan that did not have any documented acute intra-abdominal injury, such as no solid organ laceration or contusion, free-fluid, bowel or mesenteric thickening or active contrast extravasation.

Feature Selection and Definitions

Demographic data (age, sex, race, insurance) at the time of each encounter were captured. Age was treated as a categorical variable with three ordinal levels based on sample distribution. Sex was defined based on sex on physical exam as male or female. Ethnicity was defined as Hispanic, Non-Hispanic and Unable to Respond. Race was treated as a categorical variable with Caucasian, Asian/Pacific Islander, Black/African American, and Unable to Respond. Insurance was treated as a categorical variable with Private Insurance, Medicaid, Medicare, and Uninsured. Trauma Center Designation was defined by the Illinois Department of Public Health Rules and Regulations as Non-trauma Centers, Level II Trauma centers and Level I Trauma centers.12

EMR structured data documented in the first eight hours of emergency department or hospital care were also extracted. These structured data included all laboratory data, medication data, and procedures data. Laboratory data were all treated as ordinal variables and coded based on clinical thresholds. Medication and procedure data were treated as dichotomous variable based on whether or not they were present in the encounter. Injury Diagnosis was defined using the Barell Matrix13, 14 or Injury Mortality Diagnosis (IMD) Matrix15 for ICD-9 and ICD-10 codes, respectively.16 Multiple injury diagnoses were collapsed into seven summary categories based on body regions (traumatic brain injury, head/neck injury, extremity injury, pelvic injury, thoracic/abdominal injury, spinal cord injury, other/missing/system wide). Abbreviated Injury Scale (AIS), Injury Severity Score (ISS), and mechanism of injury were calculated from ICD 9 codes using the R package “icdpicr” version 1.0.1[11] in R version 4.3.0.17, 18

Feature Creation using NLP

NLP features were constructed from the EMR unstructured text data. First, the text was pre-processed to remove language abnormalities and make it usable for feature extraction. This included lowercasing the text, as well as removing punctuations, stop words and non-alphanumeric words. All the reports for each patient were aggregated, then these aggregated reports from all the patients created a large corpus. A token dictionary was created of all the unique important terms from the corpus. We experimented with unigrams, bigrams, trigrams and noun phrases. The combination of unigrams and bigrams worked best.

We did threshold-based feature reduction. Using the token dictionary, we transformed the corpus to a patient-token matrix in which each token (unigram or bigram) is represented by term-frequency-inverse document frequency (tf-idf). Next, we used logistic regression with “l1” penalty (LASSO) to reduce the large dimensionality of features. The LASSO method puts a constraint on the sum of the parameter coefficient and applies shrinking (regularization) to penalize the coefficient of non-essential features to zero. We filtered all the non-zero coefficient features and used them as our set of features. A 294-feature vocabulary was manually created for the experiments.

We applied principal component analysis (PCA) and constructed a graph of the cumulative explained variance by number of principal components (Appendix 3). This graph provided us with the most effective number of principal components that explained the most variance in the data set. These principal components were reviewed for good face validity by board certified trauma surgeons Drs. Stey, Yala and Maqbool. We then selected these principal components to form our set of features. A total of 50 principal components were selected to form the second set of features as those explained more than 75% of variance. We experimented with larger number of components but that didn’t yield in higher accuracy. The bag of words and principal components were combined to form the third set of features for the experiments. Blinding was done in development of the NLP as the algorithm operated only on input data provided by annotators without biases or preconceived notions of study hypothesis.

Statistical Analysis

The frequency of patient encounters with intra-abdominal injury as identified by the annotator dyads reviewing the EMR unstructured text data was calculated. Patient encounters’ characteristics were compared between patients’ encounters with intra-abdominal injury and those without using Fisher’s Exact test for categorical variables.

Patient encounters were split into 80:20 for training and validation, respectively. A number of different predictive models were trained to enhance predictive performance. These models included logistic regression, random forests, gradient boosting machines, and finally extreme gradient boosting (XGBoost). Each of these models were trained with each of the three feature sets. Model performance was compared based on area under the receiver operating characteristic (ROC) curve, recall and precision. Previously published literature has estimated the size of annotated data necessary to achieve a performance goal and found a range of 80 to 560 annotated samples was adequate to achieve a mean average and root mean squared error below 0.01.19

Lastly, each model was augmented with EMR structured data as defined above. Each model varied in use and weight of features from EMR unstructured and structured data. Models were separately trained on different independent variable data, such as demographic data, diagnosis, mechanism, laboratory results, medications, procedures, as well as hospital trauma center designation. The models were trained on all data points using the python package (v0.17.2). Finally, we used the concordance index, or c-index, as the evaluation metric by which to judge the discrimination of our models.

RESULTS

A total of 2951 cases had sufficient data to determine whether or not intra-abdominal injury was present. Only 84 (2.9%) had documented presence of intra-abdominal injury. Approximately 66 (2.0%) encounters out of 2951 had missing demographic information. Similarly, 536 (18.2%) of encounters were missing systolic blood pressure (SBP), 579 (19.6%) missed temperature, 1244 (42.1%) missed platelet data and 1241 (42.0%) missed hemoglobin data. There were a total of 2801 encounters with no evidence of intra-abdominal injury with complete data and 84 with evidence of intra-abdominal injury with complete data.

Demographic characteristics were similar between patient encounters with and without intra-abdominal injury (Table 1). However, those with intra-abdominal injury were more commonly insured with Medicaid 20.2% vs. 9.0%, or uninsured 13.1% vs 9.5% compared to those without intra-abdominal injury, p <0.001.

Table 1.

Demographics of Trauma Encounters With and Without Intra-Abdominal Injury to Nine Acute Care Hospitals from 2015–2021

Feature No intra-abdominal injury N = 2867 (n, %) Intra-abdominal injury N = 84 (n, %) p-value*
Sex 0.35
Males 1473 (51.4) 41 (48.8)
Female 1328 (46.3) 43(51.2)
Missing 66 (2.3) 0 (0.0)
Age (years) 0.05
16–47 715 (24.9) 26 (30.9)
48–63 522 (18.2) 22 (26.2)
>=64 1562 (54.5) 36 (42.9)
Missing 68 (2.4) 0 (0.0)
Ethnicity 0.28
Hispanic 293 (10.2) 5 (6.0)
Non-Hispanic 2480 (86.5) 79 (94.0)
Unable to Respond 28 (1.0) 0 (0.0)
Missing 66 (2.3) 0 (0.0)
Race 0.18
Caucasian 2460 (85.8) 73 (86.9)
Asian/Pacific Islander 64 (2.2) 1 (1.2)
Black 112 (3.9) 7 (8.3)
Unable to Respond 164 (5.7) 3 (3.6)
Missing 67 (2.3) 0 (0.0)
Insurance 0.03
Private 881 (30.7) 24 (28.6)
Medicaid 283 (9.9) 17 (20.2)
Medicare 1352 (47.2) 31 (36.9)
Uninsured 274 (9.5) 11 (13.1)
Missing 77 (2.7) 1 (1.2)
Hospital Trauma Designation 0.01
Non-trauma Center 20 (0.7) 2 (2.4)
Level II 2685 (93.7) 74 (88.1)
Level I 96 (3.3) 8 (9.5)
Missing 66 (2.3) 0 (0.0)
*

P values derived from Chi Square test of Independence for categorical variables

The patient encounters with intra-abdominal injury more commonly had an ISS of greater than 15, 14.3% vs. 2.8% among those without intra-abdominal injury, p <0.001 (Table 2). Patient encounters with intra-abdominal injuries more commonly experienced motor vehicle collision (MVC) as mechanisms of injury 34.5% compared to 14.8% among those without intra-abdominal injuries, p <0.001. Patient encounters with intra-abdominal injuries more often presented to Level II Trauma centers 88.1%, compared to Level I 9.5%, or Non-Trauma Centers 2.4%, p<0.001.

Table 2:

Injury and Clinical Characteristics of Trauma Encounters With and Without Intra-Abdominal Injury to Nine Acute Care Hospitals from 2015–2021

Feature No intra-abdominal injury N = 2867 (n, %) Intra-abdominal injury N = 84 (n, %) p-value*
Systolic Blood Pressure (mm Hg) 0.10
<120 464 (16.2) 18 (21.4)
>120 1887 (65.8) 46 (54.8)
Missing 516 (18.0) 20 (23.8)
Temperature (degrees Celsius)
<35 7 (0.2) 1 (1.2) 0.11
35–37.3 2183 (76.1) 59 (70.2)
>37.3 126 (4.3) 2 (2.4)
Missing 557 (19.4) 22 (26.2)
Platelet <0.01
<150,000 189 (6.6) 8 (9.5)
150,000–450,000 1428 (49.8) 62 (73.8)
>450,000 19 (0.7) 1 (1.2)
Missing 1231 (42.9) 13 (15.5)
Hemoglobin <0.01
<11.5 272 (9.5) 16 (19.0)
>=11.5 1366 (47.6) 56 (66.7)
Missing 1229 (42.9) 12 (14.3)
Injury Severity Score <0.01
1 to 8 2352 (82.1) 63 (75.0)
9 to 15 354 (12.3) 9 (10.7)
>15 81 (2.8) 12 (14.3)
Missing 80 (2.8) 1 (1.2)
Mechanism of Injury
Cut or Pierce 2 (<0.1) 0 (0.0)
Drowning 1 (<0.1) 0 (0.0)
Fall 476(16.6) 8 (9.5)
Firearm 8 (<0.3) 1 (1.2)
MVC 424 (14.8) 29 (34.5)
Pedal cyclist 5 (<0.2) 0 (0.0)
Pedestrian 2 (<0.1) 0 (0.0)
Transport 2 (<0.1) 0 (0.0)
Natural or environment 12 (0.4) 0 (0.0)
Poison 12(0.4) 2 (2.3)
Struck 5 (0.2) 0 (0.0)
Other 28 (1) 3 (3.6)
Missing 1890 (66.0) 43 (51.2)
Abbreviated Injury Score General 0.57
0 1863 (65.0) 57 (67.9)
1–2 924 (32.3) 27 (32.1)
3 0 (0.0) 0 (0.0)
>3 10 (0.3) 0 (0.0)
Missing 70 (2.4) 0 (0.0)
Abdomen <0.01
0 2641 (92.1) 45 (53.6)
1–2 155 (5.4) 36 (42.9)
3 1 (<0.1) 1 (1.2)
>3 0 (0.0) 2 (2.3)
Missing 70 (2.4) 0 (0.0)
Chest <0.01
0 2472 (86.2) 51 (60.7)
1–2 303 (10.6) 23 (27.4)
3 22 (0.8) 9 (10.7)
>3 0 (0.0) 1 (1.2)
Missing 70 (2.4) 0 (0.0)
Extremities 0.52
0 2007 (70.0) 59 (70.2)
1–2 567 (19.8) 20 (23.8)
3 219 (7.6) 5 (6.0)
>3 70 (2.4) 0 (0.0)
Missing 4 (0.1) 0 (0.0)
Face 0.12
0 2700 (94.2) 78 (92.8)
1–2 94 (3.3) 6 (7.1)
3 3 (0.1) 0 (0.0)
>3 0 (0.0) 0 (0.0)
Missing 70 (2.4) 0 (0.0)
Head & Neck 0.17
0 2148 (74.9) 72 (92.9)
1–2 586 (20.4) 11 (13.1)
3 28 (1.0) 1 (1.2)
>3 35 (1.2) 0 (0.0)
Missing 70 (2.4) 0 (0.0)
*

P values derived from Chi Square test of Independence for categorical variables

Patient encounters with intra-abdominal injuries had a higher mortality rate at 4.8% compared to 0.9% in those without intra-abdominal injuries, p<0.001 (Table 3). Patient encounters with intra-abdominal injuries had a higher rate of transfer to an acute care hospital at 14.3% compared to 2.7% for those without intra-abdominal injuries, p<0.001. Patient encounters with intra-abdominal injuries had a lower rate of discharge home at 60.7% compared to 72.9% in those without intra-abdominal injuries, p<0.001.

Table 3.

Hospital Discharge Disposition of Trauma Encounters With and Without Intra-Abdominal Injury to Nine Acute Care Hospitals from 2015–2021

Outcomes No Intra-abdominal injury N = 2867 (n, %) Intra-abdominal injury N = 84 (n, %) p-value*
Mortality 25 (0.9%) 4 (4.8%)
Home 2091 (72.9%) 51 (60.7%)
Transfer to acute care hospital 77 (2.7%) 12 (14.3%)
Rehabilitation 608 (21.2%) 17 (20.2%)

Missing 66 (2.3%) 0 (0.0%)
*

P value calculated using Fisher’s Exact test. Home = include home, prison, psychiatric facility, Against medical advice and home health.

Several NLP techniques and machine learning models were compared in classifying patient encounters with intra-abdominal injury and those without intra-abdominal injuries. Models had a range of areas under the ROC curve of 0.81 to 0.9 (Table 4). The three highest performing models used logistic regression and had areas under the ROC curve ranging from 0.88 to 0.9 (Figure 1). The single highest performing model combined PCA and Bag of Words with logistic regression, and performed with a precision of 0.17, recall of 0.73 and area under the ROC curve of 0.9. The lowest performing model was a gradient boosting machine with PCA, with precision of 0.018, recall of 0.011 and area under the ROC curve of 0.81. The calibration plots with associated calibration slope and intercept for each model can be found in Figure 2. Gradient boosting machines had the largest slope at 1.39.

Table 4.

Natural Language Processing with Machine Learning Models to Predict Encounters with Intra-abdominal Injury at Nine Acute Care Hospitals after Trauma from 2015–2021

Feature Type Classifier Type F1 ±CI Precision ±CI Recall ±CI  Area under the ROC Curve ±CI
BOW Logistic Regression 0.26 0.16 0.17 0.13 0.73 0.07 0.9 0.09
BOW Random Forest 0.21 0.1 0.13 0.08 0.68 0.09 0.87 0.07
BOW Gradient Boosting Machine 0.27 0.14 0.52 0.09 0.68 0.05 0.86 0.09
BOW XGBoost 0.25 0.14 0.50 0.07 0.20 0.04 0.85 0.12
PCA Logistic Regression 0.21 0.09 0.50 0.07 0.16 0.05 0.88 0.08
PCA Random Forest 0.22 0.12 0.13 0.09 0.76 0.1 0.86 0.07
PCA Gradient Boosting Machine 0.014 0.12 0.018 0.006 0.011 0.017 0.81 0.06
PCA XGBoost 0.12 0.04 0.38 0.12 0.08 0.02 0.85 0.08
BOW+PCA Logistic Regression 0.27 0.12 0.17 0.12 0.73 0.07 0.9 0.1
BOW+PCA Random Forest 0.22 0.09 0.13 0.07 0.69 0.1 0.87 0.1
BOW+PCA Gradient Boosting Machine 0.19 0.06 0.36 0.13 0.13 0.06 0.86 0.07
BOW+PCA XGBoost 0.21 0.05 0.48 0.14 0.13 0.05 0.86 0.1

CI: Confidence Interval, ROC: Receiver Operating Curve, PCA: Principal Component Analysis

Figure 1. Area Under the Receiver Operating Characteristic Curve for the Highest Performing Machine Learning Model.

Figure 1.

*Feature type Principal Component Analysis (PCA) and Bag Of Words (BOW) with classifier type Logistic Regression had the highest performance with an Area Under the Curve (AUC) of 0.90

Figure 2.

Figure 2

Calibration Plots and Associated Calibration Slope and Intercept for all Performing Models

Several words were identified as key features highly associated with intra-abdominal injury (Figure 3). Words with highest importance in determining intra-abdominal injury included abdomen pelvis (score: 0.015), spleen (score: 0.011), rib (score: 0.110) and hematoma (score: 0.010). These findings were consistent with the tags used to annotate presence of injury. For example, not all text documents included abdomen pelvis physical exam findings, so those with such had a higher chance of containing pertinent information for diagnosis of injury.

Figure 3.

Figure 3.

Words Identified as Key Features Highly Associated with Intra-abdominal Injury

DISCUSSION

The main finding of this analysis was that NLP using EMR unstructured data could successfully predict patient encounters with intra-abdominal injury with excellent accuracy and recall. The precision of the tested models was modest. The best performing model combined PCA and Bag of Words with logistic regression would be most useful as a screening tool, where recall is most prioritized. Fundamentally, we believe that these types of predictive clinical decision support tools should serve as screening tools and that the clinicians themselves are indispensable in ascertaining the diagnosis of intra-abdominal injury with high precision. As such, we sought to maximize recall over precision, anticipating this model can signal concern for possible intra-abdominal injury to the clinician who would then make the final diagnosis.

This study builds on previously published utility of NLP in assisting with clinical diagnosis.20 NLP has the ability to aid in the diagnosis of valvular heart disease, severe chest injury, and Kawasaki disease.10, 21, 22 NLP provided improved accuracy and timeliness compared to human clinical diagnosis. The current approach could be replicated for other types of injury, and have been for both intra-cranial and intrathoracic trauma.23 One study developed a model that accurately and timely forecasted intracranial pressure crises in patients with severe traumatic brain injuries before their happening.24 The main implication of this finding is that NLP with machine learning models would be helpful as a screening clinical decision support tool.25, 26 For example, NLP with machine learning models could be incorporated into EMR to flag records with high predicted probability of intra-abdominal injury, encouraging clinicians to evaluate closely for intra-abdominal injury. The latest advances in NLP (such as ChatGPT) are generative large language models. Instead of predicting a binary outcome (like presence or absence of intra-abdominal injury), they generate predictions of what text will come next. A benefit of our approach was that all 7000 encounters, a huge amount of clinical data, were annotated by two clinicians to obtain ground truth. In fact, large language models must be trained with exactly these types of data to be able to generate a large language model prediction autonomously. Our work therefore is the necessary first step to creating high performing generative large language models. However, the problem with commercially available generative large language models is that they are not secure enough to enter unstructured corpus from patient medical records.

There are other existing predictive models for intra-abdominal injury.27, 28 One example is a study which sought to predict injury via six previously defined clinical factors that are high risk for intraabdominal injury including hypotension, abnormal abdominal examination, elevated amylase, elevated AST, hematuria, and low hematocrit. Their tool predicted 16 out of the 17 patients with intra-abdominal injury correctly.27 This could be a future step in developing a model like ours that however does not use CT scans as golden standard but rather other less invasive laboratory values.

Intra-abdominal injuries are difficult to identify in complex trauma patients with multiple other injuries. The recall in our highest performing model (0.73) is comparable to that of other similar NLP systems. For example, one study, using NLP to identify patients with a diagnosis of pneumonia based solely on the initial clinical document provided by physicians, developed an NLP with a recall of 0.72 (training) and 0.55 (validation).29 Regarding the Area under the ROC curve, a score of 1.0 signifies perfect discrimination, while values over 0.80 are deemed clinically beneficial. All of our models scored above 0.80 in Area under the ROC curve, suggesting the clinical utility of our models.30

Ground truth was established in our study through fellowship trained trauma surgeon annotation. We have not yet to compared the performance of NLP’s in diagnosing with a senior doctor specific to emergency medicine. A direct comparison between our model and emergency medicine physician assessments is an interesting future direction.

There are several study limitations that are important to mention. The first of these was the low positivity rate for presence of intra-abdominal injury within the random sample. We attribute this to the fact that a large proportion of cases presenting to emergency departments were irrelevant (not trauma cases) or had insufficient data to make a clear diagnosis of injury. This can be ameliorated in the future with exclusion criteria that would give a higher positivity rate, for example MVC or firearm mechanisms. Our approach was to be inclusive in identification of injured patients of any type across 9 different hospitals. This maximized the generalizability of our incidence rates, recall and precision of our models and of the volume of patient data a machine learning algorithm would have to process. The disadvantage was that people with minor injuries isolated to one body part (fractured leg, or head injury) who did not have documented abdominal chief complaints, concerning injury mechanisms or abdominal physical exam findings therefore did not undergo further evaluation of the abdomen with an abdominal ultrasound, CT scan or operative exploration. This situation could be avoided in the future if we include only patients with an abdominal CT scan. This however was not done because we wanted to represent the true incidence of intra-abdominal injuries to all types of hospitals to maximize generalizability of our findings. The low rate of positivity for intra-abdominal injury impacted our calibration plots as well. As slope is a measure of sensitivity, a linear line with a slope close to 1 is desired. Gradient boosting had the largest slope at 1.39.1 However, of note the line of this curve is not linear suggesting modest calibration. Future work with narrower inclusion criteria for larger positivity rates using methods may improve calibrations. A second limitation to this study was the generalizability of these findings, as our cohort included patients reporting to acute care hospitals in an integrated health system in a large metropolitan area. However, this system includes a wide range of patient populations, as well as diversity in hospitals ranging from critical access hospitals, free standing emergency departments, rural and suburban community hospitals to a larger academic center. The range of trauma level designation as well was a strength in the diversity of hospitals and limits bias. Furthermore, analyzing encounters from smaller less resourced centers provided knowledge regarding the types of injuries presenting to these centers which is a common blind spot in many trauma registries. Further work could include developing a model that can predict not only the presence of injury, but the type/severity of injury as well. This would be beneficial in other centers such as those previously mentioned who have such blind spots in their registries. Third, because these data were collected from a wide range of hospitals with different workflows and clinical assessment practices of injured patients, there were missing data. Structured data in particular were more commonly missing among patients without intra-abdominal injury, suggesting that the clinical team had relatively low suspicion for severe injury and therefore did not obtain further laboratory testing. Furthermore, the machine learning techniques more robustly handle missing data compared to classical statistical methods where all features of theoretical importance are forced into the model regardless of feature importance. Finally, these models have not yet been externally validated. We are currently in the process of doing so. This is a current future direction.

CONCLUSION

This study used EMR unstructured text data from nine acute care hospitals and found NLP can successfully predict the presence of intra-abdominal injury. The novel use of NLP in diagnosis is innovative because of the ability to prompt clinicians for timely diagnosis. Its use has important implications for other commonly delayed and missed diagnoses.

Supplementary Material

1

This study aimed to use natural language processing (NLP) to predict the presence of intra-abdominal injury using unstructured data from electronic medical records (EMR). The importance of this report is in showing that NLP could be a screening decision support tool, that if paired with human clinical assessment can maximize precision of intra-abdominal injury identification.

Source of Funding:

AMS was funded by the American Association for the Surgery of Trauma, the American College of Surgeons and the National Institutes of Health/National Heart Lung and Blood Institute (K23HL157832-01).

Abbreviations:

NLP

Natural Language Processing

EMR

Electronic medical records

PCA

Principal Component Analysis

(ICD-9) and (ICD-10)

International Classification of Diseases 9th and 10th

IMD

Injury Mortality Diagnosis

ISS

Injury Severity Score

XG boost

Extreme Gradient Boost

ROC

Receiver Operating Characteristic

SD

standard deviation

SBP

Systolic Blood Pressure

MVC

Motor Vehicle Collision

TRIPOD

The Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis

BOW

Bag of Words

Footnotes

Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.

Conflicts of Interest: There are no conflicts of interest in regards to these data.

Presentation: This study was presented as a Quick Shot oral presentation at the 19th Annual Academic Surgical Congress, February 7–9th, 2023, in Houston, TX.

COI/Disclosure: The authors report no proprietary or commercial interest in any product mentioned or concept discussed in this article.

REFERENCES

  • 1.Isenhour JL, Marx J. Advances in abdominal trauma. Emerg Med Clin North Am. 2007;25:713–33, ix. [DOI] [PubMed] [Google Scholar]
  • 2.Nishijima DK, Simel DL, Wisner DH, Holmes JF. Does this adult patient have a blunt intra-abdominal injury? JAMA. 2012;307:1517–27. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Parreira JG, Oliari CB, Malpaga JM, Perlingeiro JA, Solda SC, Assef JC. Severity and treatment of “occult” intra-abdominal injuries in blunt trauma victims. Injury. 2016;47:89–93. [DOI] [PubMed] [Google Scholar]
  • 4.Shebrain S, Zelada J, Lipsky AM, Putnam B. Mesenteric injuries after blunt abdominal trauma: delay in diagnosis and increased morbidity. Am Surg. 2006;72:955–61. [PubMed] [Google Scholar]
  • 5.Kontopodis N, Kouraki A, Panagiotakis G, Miliadis O, Volakakis J, Spiridakis K. Diagnosis of intra-abdominal injuries can be challenging in multitrauma patients with associated injuries. Our experience and review of the literature. G Chir. 2013;34:27–31. [PubMed] [Google Scholar]
  • 6.Michetti CP, Sakran JV, Grabowski JG, Thompson EV, Bennett K, Fakhry SM. Physical Examination is a Poor Screening Test for Abdominal-Pelvic Injury in Adult Blunt Trauma Patients. Journal of Surgical Research. 2010;159:456–61. [DOI] [PubMed] [Google Scholar]
  • 7.Fränti P, Mariescu-Istodor R. Soft precision and recall. Pattern Recognition Letters. 2023;167:115–21. [Google Scholar]
  • 8.Koleck TA, Dreisbach C, Bourne PE, Bakken S. Natural language processing of symptoms documented in free-text narratives of electronic health records: a systematic review. J Am Med Inform Assoc. 2019;26:364–79. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Li C, Zhang Y, Weng Y, Wang B, Li Z. Natural Language Processing Applications for Computer-Aided Diagnosis in Oncology. Diagnostics. 2023;13:286. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Kulshrestha S, Dligach D, Joyce C, Baker MS, Gonzalez R, O’Rourke AP, et al. Prediction of severe chest injury using natural language processing from the electronic health record. Injury. 2021;52:205–12. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Jones EL, Stovall RT, Jones TS, Bensard DD, Burlew CC, Johnson JL, et al. Intra-abdominal injury following blunt trauma becomes clinically apparent within 9 hours. J Trauma Acute Care Surg. 2014;76:1020–3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Trauma Centers by Region. [Google Scholar]
  • 13.Barell V, Aharonson-Daniel L, Fingerhut LA, Mackenzie EJ, Ziv A, Boyko V, et al. An introduction to the Barell body region by nature of injury diagnosis matrix. Inj Prev. 2002;8:91–6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.The Barell Injury Diagnosis Matrix, Classification by Body Region and Nature of the Injury. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.ICD-10 Framework: Injury Mortality Diagnosis Matrix. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Fingerhut LA, Warner M. The ICD-10 injury mortality diagnosis matrix. Inj Prev. 2006;12:24–9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Clark DE, Black AW, Skavdahl DH, Hallagan LD. Open-access programs for injury categorization using ICD-9 or ICD-10. Inj Epidemiol. 2018;5:11. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.The R Project for Statistical Computing. [Google Scholar]
  • 19.Figueroa RL, Zeng-Treitler Q, Kandula S, Ngo LH. Predicting sample size required for classification performance. BMC Med Inform Decis Mak. 2012;12:8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Van Vleck TT, Chan L, Coca SG, Craven CK, Do R, Ellis SB, et al. Augmented intelligence with natural language processing applied to electronic health records for identifying patients with non-alcoholic fatty liver disease at risk for disease progression. Int J Med Inform. 2019;129:334–41. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Solomon MD, Tabada G, Allen A, Sung SH, Go AS. Large-scale identification of aortic stenosis and its severity using natural language processing on electronic health records. Cardiovasc Digit Health J. 2021;2:156–63. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Doan S, Maehara CK, Chaparro JD, Lu S, Liu R, Graham A, et al. Building a Natural Language Processing Tool to Identify Patients With High Clinical Suspicion for Kawasaki Disease from Emergency Department Notes. Acad Emerg Med. 2016;23:628–36. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Peters S, Nicolas V, Heyer CM. Multidetector computed tomography-spectrum of blunt chest wall and lung injuries in polytraumatized patients. Clin Radiol. 2010;65:333–8. [DOI] [PubMed] [Google Scholar]
  • 24.Petrov D, Miranda SP, Balu R, Wathen C, Vaz A, Mohan V, et al. Prediction of intracranial pressure crises after severe traumatic brain injury using machine learning algorithms. J Neurosurg. 2023;139:528–35. [DOI] [PubMed] [Google Scholar]
  • 25.Demner-Fushman D, Chapman WW, McDonald CJ. What can natural language processing do for clinical decision support? J Biomed Inform. 2009;42:760–72. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Smith JC, Spann A, McCoy AB, Johnson JA, Arnold DH, Williams DJ, et al. Natural Language Processing and Machine Learning to Enable Clinical Decision Support for Treatment of Pediatric Pneumonia. AMIA Annu Symp Proc. 2020;2020:1130–9. [PMC free article] [PubMed] [Google Scholar]
  • 27.Streck CJ Jr., Jewett BM, Wahlquist AH, Gutierrez PS, Russell WS. Evaluation for intra-abdominal injury in children after blunt torso trauma: can we reduce unnecessary abdominal computed tomography by utilizing a clinical prediction model? J Trauma Acute Care Surg. 2012;73:371–6; discussion 6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Pennell C, Polet C, Arthur LG, Grewal H, Aronoff S. Risk assessment for intra-abdominal injury following blunt trauma in children: Derivation and validation of a machine learning model. J Trauma Acute Care Surg. 2020;89:153–9. [DOI] [PubMed] [Google Scholar]
  • 29.Jones BE, South BR, Shao Y, Lu CC, Leng J, Sauer BC, et al. Development and Validation of a Natural Language Processing Tool to Identify Patients Treated for Pneumonia across VA Emergency Departments. Appl Clin Inform. 2018;9:122–8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Corbacioglu SK, Aksel G. Receiver operating characteristic curve analysis in diagnostic accuracy studies: A guide to interpreting the area under the curve value. Turk J Emerg Med. 2023;23:195–8. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

1

RESOURCES