Skip to main content
Journal of Medical Internet Research logoLink to Journal of Medical Internet Research
. 2022 Jun 10;24(6):e30210. doi: 10.2196/30210

Machine Learning–Based Text Analysis to Predict Severely Injured Patients in Emergency Medical Dispatch: Model Development and Validation

Kuan-Chen Chin 1,#, Yu-Chia Cheng 2,#, Jen-Tang Sun 3, Chih-Yen Ou 2, Chun-Hua Hu 4, Ming-Chi Tsai 4, Matthew Huei-Ming Ma 5,6, Wen-Chu Chiang 5,6,#, Albert Y Chen 2,✉,#
Editor: Tiffany Leung
Reviewed by: Ayan Chatterjee, Manabu Torii, Jens Hüsers
PMCID: PMC9233260  PMID: 35687393

Abstract

Background

Early recognition of severely injured patients in prehospital settings is of paramount importance for timely treatment and transportation of patients to further treatment facilities. The dispatching accuracy has seldom been addressed in previous studies.

Objective

In this study, we aimed to build a machine learning–based model through text mining of emergency calls for the automated identification of severely injured patients after a road accident.

Methods

Audio recordings of road accidents in Taipei City, Taiwan, in 2018 were obtained and randomly sampled. Data on call transfers or non-Mandarin speeches were excluded. To predict cases of severe trauma identified on-site by emergency medical technicians, all included cases were evaluated by both humans (6 dispatchers) and a machine learning model, that is, a prehospital-activated major trauma (PAMT) model. The PAMT model was developed using term frequency–inverse document frequency, rule-based classification, and a Bernoulli naïve Bayes classifier. Repeated random subsampling cross-validation was applied to evaluate the robustness of the model. The prediction performance of dispatchers and the PAMT model, in severe cases, was compared. Performance was indicated by sensitivity, specificity, positive predictive value, negative predictive value, and accuracy.

Results

Although the mean sensitivity and negative predictive value obtained by the PAMT model were higher than those of dispatchers, they obtained higher mean specificity, positive predictive value, and accuracy. The mean accuracy of the PAMT model, from certainty level 0 (lowest certainty) to level 6 (highest certainty), was higher except for levels 5 and 6. The overall performances of the dispatchers and the PAMT model were similar; however, the PAMT model had higher accuracy in cases where the dispatchers were less certain of their judgments.

Conclusions

A machine learning–based model, called the PAMT model, was developed to predict severe road accident trauma. The results of our study suggest that the accuracy of the PAMT model is not superior to that of the participating dispatchers; however, it may assist dispatchers when they lack confidence while making a judgment.

Keywords: emergency medical service, emergency medical dispatch, dispatcher, trauma, machine learning, frequency–inverse document frequency, Bernoulli naïve Bayes

Introduction

Background

Trauma is a leading cause of accidental death globally. According to the World Health Organization, injuries contribute to >5 million deaths each year. Road traffic accidents accounted for most injuries and were the ninth leading cause of death in 2012 [1]. Severe trauma is a time-sensitive emergency condition. Prompt transport is beneficial for patients with neurotrauma and penetrating injuries with unstable hemodynamic features [2]. Delays in transportation are associated with poor functional outcome [3].

Prehospital triage allows severely ill patients to receive appropriate time-sensitive management. For cardiac arrest and stroke victims, dispatchers can obtain critical information on the phone, such as the patient’s level of consciousness, breath patterns, or prehospital stroke scales [4,5]. However, no standardized questions have been designed for dispatchers when they encounter severe trauma. Only a few studies on helicopter emergency medical services have addressed the accuracy of dispatch for trauma victims [6]. Current trauma scales for predicting severity require either physiological or anatomical assessments [7]. Therefore, a victim’s condition cannot be identified or evaluated until the first batch of emergency medical technicians (EMTs) arrives at the scene.

Motivation

Content analysis has been conducted on emergency calls to discover the factors that affect dispatch and have the potential to assist prehospital triage [8,9]. Specifically, text classification has demonstrated the effectiveness of classifying events recorded during phone calls [10]. In addition, natural language processing has been used in emergency medicine. Text mining techniques have been used to predict the triage level, length of stay, disposition, and mortality in emergency department patients [11-16]. A textual analysis–based machine learning framework was developed to assist dispatchers during the prehospital phase in out-of-hospital cardiac arrest (OHCA) recognition; this framework has been commercialized [17-20]. These techniques make it possible to stratify the risk to patients when structured questions are unavailable, similar to the assessment of trauma patients over the phone.

The classic process of text classification includes text preprocessing, feature extraction, and classifier construction. Text preprocessing aims to remove noise and effectively retrieve information through text cleaning and organization [21]. Common feature extraction approaches can be loosely divided into two domains: word frequency and semantics [22,23]. Machine and deep learning models, such as k-nearest neighbors, decision trees, support vector machines, multilayer perceptron classifiers, and naïve Bayes, are widely used as classifiers [24-28].

Aim

We hypothesized that severe trauma cases could be recognized based on the content of communication between callers and call takers during emergency calls. The main research question and objective of this study was to develop a machine learning–based model through text mining of emergency calls to automatically identify severely injured patients in road accidents. We focused on road accidents instead of all trauma cases because they are the major cause of trauma, and compared with other types of injuries, the content of emergency calls for road accidents is homogeneous. As there are no suitable previous studies for comparison, our second objective was to compare the results of the model with 6 participating dispatchers’ judgment.

Methods

Study Design and Setting

This paper describes a cross-sectional study on identifying severely injured patients in road accidents by analyzing Mandarin text of emergency calls using machine learning. The results were compared with those of human judgment. We defined severely injured patients as those who fit the major trauma criteria of the EMT trauma triage protocol, that is, prehospital-activated major trauma (PAMT).

Data Acquisition

Data were obtained from the Taipei Trauma Registry, which is a database of trauma accident information from 8 out of 18 hospitals with first aid capabilities. A random sample of one-fourth of the total cases considered as PAMT in 2018 was retrieved. After excluding cases without complete information, 92 PAMT patients (92 of 377 registered cases) were enrolled. As control cases, 3 consecutive non-PAMT road accident calls were matched with each PAMT on the same day from the dispatch system. If the number of non-PAMT cases to be matched on a given day was insufficient, only 1 or 2 calls were included. A total of 92 PAMT calls and 255 non-PAMT calls were considered in this study. The exclusion criteria were as follows: the caller was not by the side of the victim, the caller did not speak Mandarin, the accident was not vehicle-related, and the calls did not provide sufficient information. The final data for analysis included 114 cases in total, which comprised 42 PAMT and 72 non-PAMT cases (Figure 1).

Figure 1.

Figure 1

Data acquisition and study design. PAMT: prehospital-activated major trauma.

Ethics Approval

This study was approved by the institutional review board of the National Taiwan University Hospital (case number 201902043RINB).

Model Development

As shown in Figure 2, formal model development comprises four steps: (1) text preprocessing, (2) feature engineering, (3) model classification, and (4) model enhancement, which was conducted to improve model performance.

Figure 2.

Figure 2

Model development. PAMT: prehospital activated major trauma; TF-IDF: term frequency–inverse document frequency; KNN: k-nearest neighbors; SVM: support vector machine; MNB: multinomial naïve Bayes; BNB: Bernoulli naïve Bayes; MLP: multilayer perceptron; SENS: sensitivity; SPEC: specificity; PPV: positive predictive value; NPV: negative predictive value; ACC: accuracy. Repeated random subsampling-cross validation (RRS-CV) for 100 times were performed in the step of model enhancement. All training data include 39 PAMT and 65 non-PAMT cases; testing data included 3 PAMT and 7 non-PAMT cases.

Text Preprocessing (Step 1)

The purpose of text preprocessing is to organize the data such that useful information can be retrieved. This process includes word segmentation, stop word removal, and synonym grouping (Figure 2). First, each emergency call was manually converted into a text form. The continuous text string was then segmented into words, which were the shortest units of meaning, consisting of at least one character. Segmentation was performed using the Chinese word segmentation system developed by the Institute of Information Science and the Institute of Linguistics of Academia Sinica [29,30]. To eliminate segmentation errors caused by ambiguous Chinese compound words, a dictionary of special terms with specific weights was manually constructed based on experience and trial and error. The segmentation system refers to the weight required to force certain words to merge or separate. Subsequently, stop words were removed to remove insignificant words, such as conjunctions, pronouns, and articles. Then, synonyms were grouped and regarded as the same word, potentially reducing the model overfitting to specific words, thus providing a means for bias-variance control. From >27,000 characters in the original 114 texts, approximately 7000 different word meanings were identified.

Feature Engineering (Step 2)

In feature engineering, the segmented words were transformed into a machine-readable format by feature extraction (step 2.1, Figure 2). As emergency calls are often short, and conversations are urgent, important words are frequently mentioned (Multimedia Appendix 1). Thus, we used term frequency–inverse document frequency (TF-IDF) to weigh each word. The TF-IDF calculation consists of two sections: TF and IDF (Multimedia Appendix 2). TF illustrates the word frequency, whereas IDF explains the rarity of words appearing in the entire document. A higher frequency of occurrence of a word in one specific text indicates its importance. In contrast, a higher frequency of occurrence of the word in the entire body of texts lowers its importance. By considering these 2 frequencies simultaneously, we ranked all words by importance to conduct feature selection (step 2.2, Figure 2). The most important 160 out of 7000 words were chosen based on the experiments. The selected features were placed in a feature space to reduce the number of dimensions and to make the results more explanatory. The feature space included the selected features used to develop the model.

Model Selection (Step 3)

For model selection, we evaluated several commonly used machine learning models for text classification, including k-nearest neighbors, decision tree, support vector machine, multilayer perceptron, multinomial naïve Bayes, and Bernoulli naïve Bayes (BNB). Repeated random subsampling cross-validation (RRS-CV) was conducted 100 times to avoid overfitting and to obtain more stable and reliable classification results. RRS-CV splits samples in a randomized and repeated manner without replacement. The performance of the different models used for comparison was the average of 100 RRS-CV scores. According to Table 1, among these, the BNB-based model achieved the best results. The BNB classifier, which is a supervised learning model, is based on Bayes’ theorem. It assumes that each input variable is independent of the other variables. According to the BNB equation in Multimedia Appendix 2, the calculation concentrates on binary information of whether the word appears in a document. The Boolean expression of the selected features forms the feature vector for each document. The category estimation of a document depends on the maximum a posteriori of each class k, which consists of the likelihood of the document being given by class k and its prior probability. The category with the highest maximum a posteriori labeled the classified documents. To avoid a zero-probability situation, Laplace smoothing was used to set the additive smoothing parameter to one. Consequently, no hyperparameter tuning was required for BNB. Compared with other text classification models, the BNB model has the advantages of simplicity, efficient computational speed, and ability to achieve a high level of accuracy without hyperparameter tuning. Furthermore, this model is suitable for processing small-scale data and short texts [31,32]. The results and hyperparameter tuning of other models are presented in Multimedia Appendix 3.

Table 1.

Comparison of machine learning models.

Model SENSa (%) SPECb (%) PPVc (%) NPVd (%) ACCe (%) Youden index
KNNf 18.7 89.0 32.6 72.1 67.9 0.077
Decision tree 32.7 76.0 35.9 72.9 63.0 0.087
SVMg 55.7 74.0 49.3 80.3 68.5 0.297
MNBh 19.0 96.1 42.2 73.8 73.0 0.151
BNBi 53.0 j 86.7 j 67.0 j 81.6 j 76.6 j 0.397 j
MLPk 53.7 79.0 55.6 80.6 71.4 0.327

aSENS: sensitivity.

bSPEC: specificity.

cPPV: positive predictive value.

dNPV: negative predictive value.

eACC: accuracy.

fKNN: k-nearest neighbors.

gSVM: support vector machine.

hMNB: multinomial naïve Bayes.

iBNB: Bernoulli naïve Bayes.

jBNB-based model achieved the best ACC and Youden index.

kMLP: multilayer perceptron.

For the split of training and validation data, we set a fixed ratio of PAMT to non-PAMT cases in the validation data. As shown in Figure 3, when the amount of training data becomes larger than that of the validation data, the training score gradually decreases and the validation score increases. The 2 lines were closest when the training and validation data sizes were 104 and 10, respectively. The convergence illustrates that, at this number of training samples, adding more training data does not significantly improve the classification performance. Therefore, for all text classification models, 104 texts were randomly selected as training data and the remaining 10 texts were used as validation data (Figure 2). The training data included 39 PAMT and 65 non-PAMT cases, and the validation data included 3 PAMT and 7 non-PAMT cases. The ground truth of model classification is the on-scene judgment of the EMT, which is presented in the form of binary labels. Figure 4 shows the scalability of the BNB-based model. As the training data increased, the model-fitting time fluctuated moderately around 0.002 seconds but significantly increased when the training data size was >104. In addition, 104 training data points with 10 validation data points had the highest validation score and the third shortest model-fitting time (Figure 5).

Figure 3.

Figure 3

Learning curve of the Bernoulli naïve Bayes.

Figure 4.

Figure 4

Scalability of the Bernoulli naïve Bayes.

Figure 5.

Figure 5

Performance of the Bernoulli naïve Bayes.

Model Enhancement (Step 4)

To optimize the final performance of our model, we enhanced the BNB-based models using feature addition (step 4.1) and rule-based judgment (step 4.2). In feature addition, we gathered 37 keywords provided by the experts and combined them with the 160 words chosen in step 2.2 to form a new feature space (Figure 2). The experts included 6 participating dispatchers and 2 emergency physicians. After they had listened to the 114 audio recordings, they were asked, “Which keyword in an emergency call indicates whether a patient is a PAMT or non-PAMT patient?” They then provided keywords based on their personal experience. The 37 keywords were expected to expand the important feature set, which may be limited by the small amount of data. The feature space created by the union of 160 and 37 words was used to develop enhanced models. Although important features must be included, their contribution to the classification may be small if their frequencies are not significant. Therefore, a rule-based judgment (step 4.2) was designed to highlight the importance of the 37 suggested keywords. Specifically, any text used in the validation that contained at least 2 of the 37 words provided by the experts was classified as PAMT. Texts that did not fit this rule were further examined by a BNB classifier (Figure 2).

The enhanced BNB-based model was compared with various derivative models based on combinations of different steps. The 4 derivative versions of the BNB-based model are presented in Table 2. Model A comprised manually selected features and rule-based judgment. Model B was a classical text classification model that included TF-IDF feature extraction and selection with BNB classification. Model C comprised feature engineering steps and manual feature addition with BNB classification. Finally, we named the best version as the PAMT model. It comprises steps 1 to 4.2, including text preprocessing, feature engineering, model classification, and both model enhancement approaches.

Table 2.

BNB-based models of different combinations of steps.

Model Performance Steps includeda BNBb classification

SENSc (%) SPECd (%) PPVe (%) NPVf (%) ACCg (%) Youden index 1 2 4.1 4.2
Model A 54.7 82.1 56.8 80.9 73.9 0.368

Model B 53.0 86.7 67.0 81.6 76.6 0.397

Model C 54.0 87.3 67.8 82.1 77.3 0.413
PAMTh model 68.0 78.0 60.6 85.8 75.0 0.460

aStep 1, text preprocessing; step 2, term frequency–inverse document frequency feature extraction and selection; step 4.1, manual feature addition; step 4.2, rule-based judgment.

bBNB: Bernoulli naïve Bayes.

cSENS: sensitivity.

dSPEC: specificity.

ePPV: positive predictive value.

fNPV: negative predictive value.

gACC: accuracy.

hPAMT: prehospital-activated major trauma.

Human Participants

For a reference comparison with the PAMT model, we conducted a survey to collect severe trauma judgments from 6 volunteer dispatchers. They were from the fire departments of Taipei City and New Taipei City (Table 3). The participants were asked to listen to 114 road accident audio clips. As we focused on text analysis, the participants were not allowed to receive any information other than the text. Therefore, the audio clips were transcribed into a computer-synthesized voice using a text-to-speech tool. The audio clips were played randomly in both female and male voices. In this way, the tone, speed, and emotions of the speech were neutralized. While listening to the clips, each participant classified the cases as PAMT or non-PAMT depending on their personal experience and intuition. They also shared information regarding their certainty (certain or uncertain) in each case.

Table 3.

Profiles of the participating dispatchers.

Participant Sex Age (years), range Service city EMTa experience (year) Dispatch experience (year)
A Male 30-39 New Taipei City 13 6
B Female 40-49 New Taipei City 10 2
C Male 30-39 New Taipei City 14 1
D Male 30-39 New Taipei City 10 1
E Male 30-39 Taipei City 10 4
F Male 30-39 Taipei City 9 4

aEMT: emergency medicine technician.

Data Analysis

The analysis determined the accuracy, positive predictive value, negative predictive value, sensitivity, and specificity of the PAMT model prediction and average judgments of the participants [33,34].

Accuracy refers to the proportion of correctly predicted PAMT and non-PAMT cases. The proportion of cases with true-predicted PAMT and non-PAMT results can be presented as positive predictive value and negative predictive value, respectively. sensitivity and specificity represent the ability of a classification system to correctly identify PAMT and non-PAMT cases, respectively. The Youden index was calculated using different models and can be expressed as the sum of sensitivity and specificity minus 1.

All 114 cases were categorized into certainty levels from 0 to 6, depending on how many participants regarded a case as certain. For example, a case with certainty level 4 indicated that 4 participants were certain of their judgment, whereas the other two were not. The accuracy was also calculated for different certainty levels.

Data management and statistical analyses were performed using Python (Python Software Foundation) and Excel (Microsoft Corporation).

Results

Sample

In total, 114 patients were included in the final analysis. The transcribed texts ranged from 84 to 652 characters, with a mean of 241.4 (SD 106.7) characters; the mean character count of PAMT cases was greater than that of non-PAMT cases (266, SD 102 vs 227, SD 107). The transcribed computer-synthesized audio ranged from 24 to 145 seconds in length, with a mean of 58.9 (SD 24.5) seconds, and the mean call length of PAMT cases was longer than that of non-PAMT (64, SD 24 vs 54, SD 24 seconds) cases (Multimedia Appendix 4).

Outcome Data

In this study, the machine learning model was trained on a random sample of 104 cases and validated on the remaining 10 cases. RRS-CV was conducted 100 times to obtain greater unbiased validation results; moreover, no external data were used to test the performance of the trained models. According to Table 1, BNB outperformed the other models because it had the highest overall metrics: accuracy (76.6%) and Youden index (0.397). The mean sensitivity, specificity, positive predictive value, and negative predictive value for BNB were 53.0%, 86.7%, 67.0%, and 81.6%, respectively. As there was still room for improvement, model enhancement was performed based on BNB to increase the performance. The enhanced BNB-based model, known as the PAMT model, exhibited the best performance. Its Youden index was 0.460, and it achieved a mean sensitivity, specificity, positive predictive value, negative predictive value, and accuracy of 68.0%, 78.0%, 60.6%, 85.8%, and 75.0%, respectively (Table 2). The performance of model C, which was only enhanced by adding the features provided by the 6 volunteer dispatchers, was ranked after the PAMT model. The mean sensitivity, specificity, positive predictive value, negative predictive value, accuracy, and Youden index of model C were 54.0%, 87.3%, 67.8%, 82.1%, 77.3%, and 0.413, respectively. Model A contained only the features provided by the experts and was classified based on rule-based judgment. It achieved the worst results (sensitivity 54.7%; specificity 82.1%; positive predictive value 56.8%; negative predictive value 80.9%; accuracy 73.9%; Youden index 0.368).

In contrast, the mean sensitivity, specificity, positive predictive value, negative predictive value, and accuracy of the 6 participants were 63.1%, 85.0%, 71.7%, 80.3%, and 76.8%, respectively (Multimedia Appendix 5). The PAMT model with the best performance had a higher sensitivity and negative predictive value but a lower specificity, positive predictive value, and accuracy than the participants. Overall, the PAMT model did not surpass the performance of the participating dispatchers (Figure 6).

Figure 6.

Figure 6

Overall performance of participating dispatchers versus prehospital-activated major trauma (PAMT) model. ACC: accuracy; NPV: negative predictive value; PAMT: prehospital activated major trauma; PPV: positive predictive value; SENS: sensitivity; SPEC: specificity.

In the subgroup analysis, as shown in Figure 7, the mean accuracy of the participants at certainty levels from 0 to 6 was 66.7%, 64.3%, 68.2%, 76.4%, 56.9%, 79.8%, and 87.1%. The mean accuracy of the PAMT model at certainty levels from 0 to 6 was 83.3%, 70.4%, 72.7%, 91.7%, 58.3%, 64.3%, and 81.3%. After all cases were categorized based on different certainty levels, the accuracy of the participants for levels 0 to 6 generally increased, except for level 4, whereas the accuracy of the PAMT model did not show such a linear pattern. The results of the PAMT model did not display a clear trend; that is, they were affected by the certainty level because the BNB model classified cases according to the feature distribution. If we define levels 5 and 6 as certain cases and levels 0 to 4 as uncertain cases, we can observe that, although the accuracy of the PAMT model was lower than that of the participants in certain cases (77.52% vs 85.48%), it was greater than the accuracy of the participants in uncertain cases (73.57% vs 66.34%; Figure 7).

Figure 7.

Figure 7

Accuracy of predicting prehospital-activated major trauma (PAMT) by participating dispatchers and PAMT model over different certainty levels.

Discussion

Principal Findings

Our study makes 3 major contributions to the field. First, this is the primary study to use a machine learning–based model to identify severely injured patients during the dispatch phase. Second, the overall performance of the model was similar to that of human dispatchers (Figure 6). Third, the model produced favorable results for cases in which dispatchers were uncertain (Figure 7).

With no suitable previous studies as a reference, we enrolled 6 volunteer dispatchers in our study. Their judgment was regarded as a reference for comparison with the models. Although such a small sample size cannot represent all dispatchers, we were still able to observe heterogeneity in human performance. As shown in Multimedia Appendix 5, three participants (A, B, and E) had a high specificity and low sensitivity, whereas the other three (C, D, and F) had more balanced figures between specificity and sensitivity. We can speculate that different experiences may affect judgment, and that the policy each participant chose, either aggressive or conservative, also made a difference. With the assistance of the proposed model, which is more stable and adjustable, it is possible to narrow the range of human discrepancies and decrease the uncertainty.

The proposed machine learning models are text classification models. As important words were repeatedly mentioned in often short and intermittent emergency calls (Multimedia Appendix 1), the frequency-based feature extraction method, TF-IDF, demonstrated the ability to select representative words in severe trauma calls. In addition, feature correlation analysis was performed for these words (Multimedia Appendix 6). Features with high correlation coefficients were words that frequently appeared together in Mandarin, or in the question required to be asked during a call. In contrast, low correlation words indicated that they appeared independently. Despite varying degrees of correlation, all the selected features are meaningful and have the potential to be keywords for judging PAMT. Therefore, the occurrence of these words was the main input for the machine learning models. Furthermore, we analyzed the length of the texts and the accuracy between the PAMT and participants. As each text was represented by a feature vector formed by word occurrences, the original length may be one of the factors affecting accuracy. Multimedia Appendix 7 presents further results.

To explore why machine learning performed better in classifying uncertain cases, we compared the words suggested by experts and the words selected by the model. Of the 37 words provided by the experts, 23 were regarded as keywords specifically for PAMT. In Multimedia Appendix 8, we compare these 23 words and the top 23 decisive words selected by the model that were most likely to occur in the PAMT texts. In the left column, most words are aggregated in the “Patient status” and “Patient basic information” categories; few are in the “Geographic information” and “Auxiliary words and other information” categories. In contrast, the words in the right column are grouped not only in the “Patient status” category but also in “Geographic information” and “Auxiliary words and other information.” This phenomenon shows that the participants focused more on the situations and injury mechanisms of the patients, whereas the proposed model was able to capture other information such as the location of an accident or wording in a conversation. In uncertain cases, there may be fewer obvious keywords for PAMT, which is possibly why the proposed model is more helpful.

In addition to the PAMT model, we tried different feature combinations and classification approaches to develop three other models. Models A, B, and C refer to manual feature addition with rule-based judgment, TF-IDF feature engineering with BNB classification, and TF-IDF feature engineering plus manual feature addition with BNB classification, respectively (Table 2). The PAMT model consisted of steps 2.1 to 4.2. It is important to consider sensitivity and specificity while developing a triage tool; therefore, we chose the model with the highest Youden index as our final model, which was the PAMT model. The sensitivity of the PAMT model was also the highest, making it suitable for use as a triage tool.

Our results demonstrate that it is necessary to combine machine learning (steps 2.1 and 2.2) and human experience (steps 4.1 and 4.2) to develop a prehospital dispatching triage tool (Table 2). A purely manual model using the features provided by experts with rule-based judgment, such as model A, or a classical machine learning–based text classification model, such as model B, did not perform sufficiently well. Although the features of model C are composed of the TF-IDF selection and are provided by experts, without rule-based judgment to increase the importance of these keywords, it failed to outperform the PAMT model. Rule-based judgment makes the added feature of experts suggesting words more significant in classification, which is a complement of limited data. Although the best classification performance of the BNB model indicates that the occurrence of words in a call is key to identifying PAMT cases, there is currently no machine learning model that can completely replace human dispatchers.

Comparison With Prior Work

Abundant research has been conducted on field triage and prognosis prediction using prehospital data for the early recognition of severely injured trauma patients. However, the dispatching accuracy has seldom been addressed in previous studies [35,36]. The predictors used in these studies, either physiological data or injury mechanisms, were difficult to acquire through telephone calls. In the few studies regarding the accuracy of dispatching, most dealt with helicopter emergency medical services dispatching [6,37-40]. In another study, all trauma emergency calls were included and compared between clinicians and nonclinicians in a prehospital critical care team in Scotland [41]. The sensitivity of the two groups, in the study, for identifying major trauma (injury severity score>15) were 0.112 and 0.259 and the specificity was 0.998 and 0.995. Our model had a significantly higher sensitivity and lower specificity. However, the results varied as the gold standards differed. We chose the judgment of the on-scene EMT as the gold standard as it represents comprehensive prehospital information, whereas injury severity score is prognostic data that can only be obtained in the hospital. Moreover, a higher sensitivity, which avoids undertriage, allows us to apply the model as an early triage tool that can determine the priority of dispatching based on patient severity.

For a machine learning dispatch support system, a commercialized model for the recognition of OHCA through dispatching was proposed [17]. The model consists of an automatic speech recognition and textual analysis. In 2 retrospective studies conducted in Denmark and Sweden, positive results were reported in terms of both accuracy and time [18,19]. In a randomized controlled trial in Denmark, the performance of this model surpassed human recognition; however, no significant improvements were found in dispatchers’ ability to recognize OHCA with model assistance [20]. Although there are numerous differences in recognizing OHCA and severe trauma, this model also uses machine learning–based text analysis. Another machine learning–based voice analysis model was proposed to recognize the emotional state of OHCA callers [42]. Although the goal differed from our approach, the study also had a small sample size, and the data source was the audio of emergency calls. It is reasonable to expect that the performance of future models may improve with a combination of semantic and emotional analyses.

Limitations

Our study had several limitations. First, human intervention is required for text preprocessing. Conversations in the recordings were often in fragments without a complete grammatical structure and contained specific terms. A customized dictionary for word segmentation, stop word removal, and synonym grouping must be constructed according to the specific medical domain, regional features, and culture. Although there are references, applying these procedures requires researchers to fully comprehend phone conversations [29]. We assumed that everyone who understood the conversation would process the audio and text materials in the same way; otherwise, the features we used in the later steps would be different. This limitation can be overcome by replacing this step with an automatic program [10]. Second, the dispatchers listened to 114 audio clips before providing the keywords. Although they did not know the answers and were asked to provide their opinions based on their experience, they might have chosen words from the audio that they had just heard. Third, owing to strict protocols and the administration’s concern for this novel study concept, the recordings of the emergency calls were not allowed to be copied, and only a limited number of crews were permitted to access them over a short period. Given that the preprocessing steps were labor intensive, we could not enroll a large sample size. To compensate for this shortage, we randomly sampled the PAMTs during the entire year of 2018 in the Taipei Trauma Registry. For text classification, the main factors that affect the results may not be determined by data size [43]. Another innovative study with a small amount of data contributed to specific fields [42]. This study serves as a proof of concept and aims to reveal the potential of this methodology for target applications. Nevertheless, some advanced text classification models, such as deep learning models with semantic feature extraction methods [44], may be limited by the size and characteristics of the data. Therefore, research should be conducted on a larger scale with more participants and integrated data to develop a more mature model for actual deployment.

Conclusions

The results of our study suggest that the applied machine learning model is not superior to dispatchers in identifying road accident calls in severe trauma cases; however, the model can assist dispatchers when they lack confidence in the judgment of the calls. A study conducted on a larger scale is required for further model development and validation.

Acknowledgments

This study was funded by the Taiwan Ministry of Science and Technology (grants MOST 108-2314-B-002-130-MY3 and MOST 109-2314-B-002-154-MY2) and the National Taiwan University Hospital (grant UN110-052). The authors wish to acknowledge the 6 volunteer dispatchers, Chi-Li Liu, Ding-Chuan Wang, Jerry Lai, Shun-Wei Chung, Yu-Chi Chang, and Yu-Ju Hsu, for participating in this study. This would not have been possible without their assistance. The authors appreciate the excellent performance of emergency medical technicians and the quality assurance of the Ambulance Division and Dispatch Center of the Taipei Fire Department. Their commitment and accomplishments have significantly improved prehospital care. The authors would also like to thank the staff and Dr Chin-Hao Chang of the National Taiwan University Hospital Statistical Consulting Unit for his help with the statistics.

Abbreviations

BNB

Bernoulli naïve Bayes

EMT

emergency medical technician

OHCA

out-of-hospital cardiac arrest

PAMT

prehospital-activated major trauma

RRS-CV

repeated random subsampling cross-validation

TF-IDF

term frequency–inverse document frequency

Multimedia Appendix 1

Example texts.

Multimedia Appendix 2

Equations and Python script used in the model.

Multimedia Appendix 3

Comparison of machine learning models.

Multimedia Appendix 4

Descriptive statistics for audio and text files.

Multimedia Appendix 5

Profiles and predictive performances of the participating dispatchers.

Multimedia Appendix 6

Feature correlation analysis.

Multimedia Appendix 7

Relation of the length of text and accuracy.

Multimedia Appendix 8

Representative keywords for prehospital-activated major trauma (PAMT) chosen by experts and the PAMT model.

Footnotes

Authors' Contributions: KCC and YCC contributed equally as first authors, and WCC and AYC contributed equally as corresponding authors. KCC contributed to the formal analysis, visualization, and original draft. YCC contributed to the data curation, formal analysis, methodology, and original draft. JTS contributed to the conceptualization, data curation, methodology, resources, visualization, and review and editing of the manuscript. CYO contributed to data curation. CHH contributed to data curation and resources. MCT contributed to data curation and resources. MHMM contributed to funding acquisition, project administration, resources, and supervision. WCC contributed to conceptualization, data curation, methodology, visualization review, editing, and supervision. AYC contributed to conceptualization, formal analysis, funding acquisition, project administration, editing, and supervision.

Conflicts of Interest: None declared.

References

  • 1.Injuries and violence: the facts 2014. World Health Organization. 2014. [2022-05-19]. https://apps.who.int/iris/bitstream/handle/10665/149798/9789241508018_eng.pdf .
  • 2.Harmsen AM, Giannakopoulos GF, Moerbeek PR, Jansma EP, Bonjer HJ, Bloemers FW. The influence of prehospital time on trauma patients outcome: a systematic review. Injury. 2015 Apr;46(4):602–9. doi: 10.1016/j.injury.2015.01.008.S0020-1383(15)00012-1 [DOI] [PubMed] [Google Scholar]
  • 3.Chen CH, Shin SD, Sun JT, Jamaluddin SF, Tanaka H, Song KJ, Kajino K, Kimura A, Huang EP, Hsieh MJ, Ma MH, Chiang WC. Association between prehospital time and outcome of trauma patients in 4 Asian countries: a cross-national, multicenter cohort study. PLoS Med. 2020 Oct 6;17(10):e1003360. doi: 10.1371/journal.pmed.1003360. https://dx.plos.org/10.1371/journal.pmed.1003360 .PMEDICINE-D-20-02427 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Drennan IR, Geri G, Brooks S, Couper K, Hatanaka T, Kudenchuk P, Olasveengen T, Pellegrino J, Schexnayder SM, Morley P, Basic Life Support (BLS), Pediatric Life Support (PLS) and Education, Implementation and Teams (EIT) Taskforces of the International Liaison Committee on Resuscitation (ILCOR) BLS Task Force. Pediatric Task Force. EIT Task Force Diagnosis of out-of-hospital cardiac arrest by emergency medical dispatch: a diagnostic systematic review. Resuscitation. 2021 Feb;159:85–96. doi: 10.1016/j.resuscitation.2020.11.025.S0300-9572(20)30583-9 [DOI] [PubMed] [Google Scholar]
  • 5.Zhelev Z, Walker G, Henschke N, Fridhandler J, Yip S. Prehospital stroke scales as screening tools for early identification of stroke and transient ischemic attack. Cochrane Database Syst Rev. 2019 Apr 09;4(4):CD011427. doi: 10.1002/14651858.CD011427.pub2. http://europepmc.org/abstract/MED/30964558 . [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Bohm K, Kurland L. The accuracy of medical dispatch - a systematic review. Scand J Trauma Resusc Emerg Med. 2018 Nov 09;26(1):94. doi: 10.1186/s13049-018-0528-8. https://sjtrem.biomedcentral.com/articles/10.1186/s13049-018-0528-8 .10.1186/s13049-018-0528-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Gianola S, Castellini G, Biffi A, Porcu G, Fabbri A, Ruggieri MP, Stocchetti N, Napoletano A, Coclite D, D'Angelo D, Fauci AJ, Iacorossi L, Latina R, Salomone K, Gupta S, Iannone P, Chiara O, Italian National Institute of Health guideline working group Accuracy of pre-hospital triage tools for major trauma: a systematic review with meta-analysis and net clinical benefit. World J Emerg Surg. 2021 Jun 10;16(1):31. doi: 10.1186/s13017-021-00372-1. https://wjes.biomedcentral.com/articles/10.1186/s13017-021-00372-1 .10.1186/s13017-021-00372-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Richards CT, Wang B, Markul E, Albarran F, Rottman D, Aggarwal NT, Lindeman P, Stein-Spencer L, Weber JM, Pearlman KS, Tataris KL, Holl JL, Klabjan D, Prabhakaran S. Identifying key words in 9-1-1 calls for stroke: a mixed methods approach. Prehosp Emerg Care. 2017;21(6):761–6. doi: 10.1080/10903127.2017.1332124. http://europepmc.org/abstract/MED/28661784 . [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Riou M, Ball S, Williams TA, Whiteside A, O'Halloran KL, Bray J, Perkins GD, Cameron P, Fatovich DM, Inoue M, Bailey P, Brink D, Smith K, Della P, Finn J. The linguistic and interactional factors impacting recognition and dispatch in emergency calls for out-of-hospital cardiac arrest: a mixed-method linguistic analysis study protocol. BMJ Open. 2017 Jul 09;7(7):e016510. doi: 10.1136/bmjopen-2017-016510. https://bmjopen.bmj.com/lookup/pmidlookup?view=long&pmid=28694349 .bmjopen-2017-016510 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Trujillo A, Orellana M, Acosta MI. Design of emergency call record support system applying natural language processing techniques. Proceedings of the 6th Conference on Information and Communication Technologies of Ecuador; TIC.EC '19; November 27-29, 2019; Cuenca City, Ecuador. 2019. pp. 53–65. [DOI] [Google Scholar]
  • 11.Choi SW, Ko T, Hong KJ, Kim KH. Machine learning-based prediction of Korean triage and acuity scale level in emergency department patients. Healthc Inform Res. 2019 Oct;25(4):305–12. doi: 10.4258/hir.2019.25.4.305. https://www.e-hir.org/DOIx.php?id=10.4258/hir.2019.25.4.305 . [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Chen CH, Hsieh JG, Cheng SL, Lin YL, Lin PH, Jeng JH. Early short-term prediction of emergency department length of stay using natural language processing for low-acuity outpatients. Am J Emerg Med. 2020 Nov;38(11):2368–73. doi: 10.1016/j.ajem.2020.03.019.S0735-6757(20)30161-3 [DOI] [PubMed] [Google Scholar]
  • 13.Sterling NW, Patzer RE, Di M, Schrager JD. Prediction of emergency department patient disposition based on natural language processing of triage notes. Int J Med Inform. 2019 Sep;129:184–8. doi: 10.1016/j.ijmedinf.2019.06.008.S1386-5056(19)30375-2 [DOI] [PubMed] [Google Scholar]
  • 14.Zhang X, Kim J, Patzer RE, Pitts SR, Patzer A, Schrager JD. Prediction of emergency department hospital admission based on natural language processing and neural networks. Methods Inf Med. 2017 Oct 26;56(5):377–89. doi: 10.3414/ME17-01-0024.17-01-0024 [DOI] [PubMed] [Google Scholar]
  • 15.Lucini FR, Fogliatto FS, da Silveira GJ, Neyeloff JL, Anzanello MJ, Kuchenbecker RS, Schaan BD. Text mining approach to predict hospital admissions using early medical records from the emergency department. Int J Med Inform. 2017 Apr;100:1–8. doi: 10.1016/j.ijmedinf.2017.01.001.S1386-5056(17)30001-1 [DOI] [PubMed] [Google Scholar]
  • 16.Fernandes M, Mendes R, Vieira SM, Leite F, Palos C, Johnson A, Finkelstein S, Horng S, Celi LA. Risk of mortality and cardiopulmonary arrest in critical patients presenting to the emergency department using machine learning and natural language processing. PLoS One. 2020 Apr 2;15(4):e0230876. doi: 10.1371/journal.pone.0230876. https://dx.plos.org/10.1371/journal.pone.0230876 .PONE-D-19-27950 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.AI for Patient Consultations. Corti. [2021-09-12]. https://www.corti.ai/
  • 18.Blomberg SN, Folke F, Ersbøll AK, Christensen HC, Torp-Pedersen C, Sayre MR, Counts CR, Lippert FK. Machine learning as a supportive tool to recognize cardiac arrest in emergency calls. Resuscitation. 2019 May;138:322–9. doi: 10.1016/j.resuscitation.2019.01.015. https://linkinghub.elsevier.com/retrieve/pii/S0300-9572(18)30975-4 .S0300-9572(18)30975-4 [DOI] [PubMed] [Google Scholar]
  • 19.Byrsell F, Claesson A, Ringh M, Svensson L, Jonsson M, Nordberg P, Forsberg S, Hollenberg J, Nord A. Machine learning can support dispatchers to better and faster recognize out-of-hospital cardiac arrest during emergency calls: a retrospective study. Resuscitation. 2021 May;162:218–26. doi: 10.1016/j.resuscitation.2021.02.041. https://linkinghub.elsevier.com/retrieve/pii/S0300-9572(21)00099-X .S0300-9572(21)00099-X [DOI] [PubMed] [Google Scholar]
  • 20.Blomberg SN, Christensen HC, Lippert F, Ersbøll AK, Torp-Petersen C, Sayre MR, Kudenchuk PJ, Folke F. Effect of machine learning on dispatcher recognition of out-of-hospital cardiac arrest during calls to emergency medical services: a randomized clinical trial. JAMA Netw Open. 2021 Jan 04;4(1):e2032320. doi: 10.1001/jamanetworkopen.2020.32320. https://jamanetwork.com/journals/jamanetworkopen/fullarticle/10.1001/jamanetworkopen.2020.32320 .2774644 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Uysal AK, Gunal S. The impact of preprocessing on text classification. Inf Process Manag. 2014 Jan;50(1):104–12. doi: 10.1016/J.IPM.2013.08.006. doi: 10.1016/J.IPM.2013.08.006. [DOI] [Google Scholar]
  • 22.Sparck Jones K. A statistical interpretation of term specificity and its application in retrieval. J Doc. 1972 Jan;28(1):11–21. doi: 10.1108/eb026526. doi: 10.1108/eb026526. [DOI] [Google Scholar]
  • 23.Mikolov T, Chen K, Corrado G, Dean J. Efficient estimation of word representations in vector space. Proceedings of the 2013 International Conference on Learning Representations; ICLR '13; May 2-4, 2013; Scottsdale, AZ, USA. 2013. [Google Scholar]
  • 24.Kamath CN, Bukhari SS, Dengel A. Comparative study between traditional machine learning and deep learning approaches for text classification. Proceedings of the 2018 ACM Symposium on Document Engineering; DocEng '18; August 28-31, 2018; Halifax, Canada. 2018. pp. 1–11. [DOI] [Google Scholar]
  • 25.Mccallum A, Nigam K. A Comparison of Event Models for Naive Bayes Text Classification. Association for the Advancement of Artificial Intelligence. 1998. [2022-05-19]. https://www.cs.cmu.edu/~knigam/papers/multinomial-aaaiws98.pdf .
  • 26.Trstenjak B, Mikac S, Donko D. KNN with TF-IDF based framework for text categorization. Procedia Eng. 2014;69:1356–64. doi: 10.1016/J.PROENG.2014.03.129. doi: 10.1016/J.PROENG.2014.03.129. [DOI] [Google Scholar]
  • 27.Lodhi H, Saunders C, Shawe-Taylor J, Cristianini N, Watkins C. Text classification using string kernels. J Mach Learn Res. 2002 Feb;2:419–44. [Google Scholar]
  • 28.Li Y, Wang X, Xu P. Chinese text classification model based on deep learning. Future Internet. 2018 Nov 20;10(11):113. doi: 10.3390/FI10110113. doi: 10.3390/FI10110113. [DOI] [Google Scholar]
  • 29.Ma WY, Chen KJ. Introduction to CKIP Chinese word segmentation system for the first international Chinese Word Segmentation Bakeoff. Proceedings of the 2nd SIGHAN Workshop on Chinese Language Processing; SIGHAN '03; July 11-12, 2003; Sapporo, Japan. 2003. pp. 168–71. [DOI] [Google Scholar]
  • 30.Li PH, Fu TJ, Ma WY. Why Attention? Analyze BiLSTM deficiency and its remedies in the case of NER. Proceedings of the 34th AAAI Conference on Artificial Intelligence; AAAI '20; February 7-12, 2020; New York, NY, USA. 2020. pp. 8236–44. [DOI] [Google Scholar]
  • 31.Venkatesh. Ranjitha KV. Classification and optimization scheme for text data using machine learning naïve Bayes classifier. Proceedings of the 2018 IEEE World Symposium on Communication Engineering; WSCE '18; December 28-30, 2018; Singapore, Singapore. 2018. pp. 33–6. [DOI] [Google Scholar]
  • 32.Sheshasaayee A, Thailambal G. Comparison of classification algorithms in text mining. Int J Pure Appl Math. 2017;116(22):425–33. [Google Scholar]
  • 33.Chatterjee A, Gerdes MW, Prinz A, Martinez S. A comparative study to analyze the performance of advanced pattern recognition algorithms for multi-class classification. Proceedings of the 2020 Conference on Emerging Technologies in Data Mining and Information Security; IEMIS '20; July 2-4, 2020; Kolkata, India. 2020. pp. 111–24. [DOI] [Google Scholar]
  • 34.Chatterjee A, Gerdes MW, Martinez SG. Identification of risk factors associated with obesity and overweight-a machine learning overview. Sensors (Basel) 2020 May 11;20(9):2734. doi: 10.3390/s20092734. https://www.mdpi.com/resolver?pii=s20092734 .s20092734 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Sewalt CA, Venema E, Wiegers EJ, Lecky FE, Schuit SC, den Hartog D, Steyerberg EW, Lingsma HF. Trauma models to identify major trauma and mortality in the prehospital setting. Br J Surg. 2020 Mar;107(4):373–80. doi: 10.1002/bjs.11304. http://europepmc.org/abstract/MED/31503341 . [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Atiksawedparit P, Rattanasiri S, Sittichanbuncha Y, McEvoy M, Suriyawongpaisal P, Attia J, Thakkinstian A. Prehospital prediction of severe injury in road traffic injuries: a multicenter cross-sectional study. Injury. 2019 Sep;50(9):1499–506. doi: 10.1016/j.injury.2019.05.028. https://linkinghub.elsevier.com/retrieve/pii/S0020-1383(19)30324-9 .S0020-1383(19)30324-9 [DOI] [PubMed] [Google Scholar]
  • 37.Giannakopoulos GF, Bloemers FW, Lubbers WD, Christiaans HM, van Exter P, de Lange-de Klerk ES, Zuidema WP, Goslings JC, Bakker FC. Criteria for cancelling helicopter emergency medical services (HEMS) dispatches. Emerg Med J. 2012 Jul;29(7):582–6. doi: 10.1136/emj.2011.112896.emj.2011.112896 [DOI] [PubMed] [Google Scholar]
  • 38.Wilmer I, Chalk G, Davies GE, Weaver AE, Lockey DJ. Air ambulance tasking: mechanism of injury, telephone interrogation or ambulance crew assessment? Emerg Med J. 2015 Oct;32(10):813–6. doi: 10.1136/emermed-2013-203204.emermed-2013-203204 [DOI] [PubMed] [Google Scholar]
  • 39.Coats TJ, Newton A. Call selection for the Helicopter Emergency Medical Service: implications for ambulance control. J R Soc Med. 1994 Apr;87(4):208–10. http://europepmc.org/abstract/MED/8182675 . [PMC free article] [PubMed] [Google Scholar]
  • 40.Cameron S, Pereira P, Mulcahy R, Seymour J. Helicopter primary retrieval: tasking who should do it? Emerg Med Australas. 2005 Aug;17(4):387–91. doi: 10.1111/j.1742-6723.2005.00762.x.EMM762 [DOI] [PubMed] [Google Scholar]
  • 41.Sinclair N, Swinton PA, Donald M, Curatolo L, Lindle P, Jones S, Corfield AR. Clinician tasking in ambulance control improves the identification of major trauma patients and pre-hospital critical care team tasking. Injury. 2018 May;49(5):897–902. doi: 10.1016/j.injury.2018.03.034.S0020-1383(18)30163-3 [DOI] [PubMed] [Google Scholar]
  • 42.Chin KC, Hsieh TC, Chiang WC, Chien YC, Sun JT, Lin HY, Hsieh MJ, Yang CW, Chen AY, Ma MH. Early recognition of a caller's emotion in out-of-hospital cardiac arrest dispatching: an artificial intelligence approach. Resuscitation. 2021 Oct;167:144–50. doi: 10.1016/j.resuscitation.2021.08.032.S0300-9572(21)00333-6 [DOI] [PubMed] [Google Scholar]
  • 43.Ong MS, Magrabi F, Coiera E. Automated categorisation of clinical incident reports using statistical text classification. Qual Saf Health Care. 2010 Dec;19(6):e55. doi: 10.1136/qshc.2009.036657.qshc.2009.036657 [DOI] [PubMed] [Google Scholar]
  • 44.Lee JY, Dernoncourt F. Sequential short-text classification with recurrent and convolutional neural networks. Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies; NAACL HLT '16; June 12-17, 2016; San Diego, CA, USA. 2016. pp. 515–20. [DOI] [Google Scholar]

Associated Data

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

Supplementary Materials

Multimedia Appendix 1

Example texts.

Multimedia Appendix 2

Equations and Python script used in the model.

Multimedia Appendix 3

Comparison of machine learning models.

Multimedia Appendix 4

Descriptive statistics for audio and text files.

Multimedia Appendix 5

Profiles and predictive performances of the participating dispatchers.

Multimedia Appendix 6

Feature correlation analysis.

Multimedia Appendix 7

Relation of the length of text and accuracy.

Multimedia Appendix 8

Representative keywords for prehospital-activated major trauma (PAMT) chosen by experts and the PAMT model.


Articles from Journal of Medical Internet Research are provided here courtesy of JMIR Publications Inc.

RESOURCES