{'fraction_non_alphanumeric': 0.045719384809196364, 'fraction_numerical': 0.027085192378352843, 'mean_word_length': 5.07138304652645, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Development and Validation of a Quick Sepsis-Related Organ Failure Assessment-Based Machine-Learning Model for Mortality Prediction in Patients with Suspected Infection in the Emergency Department

The quick sepsis-related organ failure assessment (qSOFA) score has been introduced to predict the likelihood of organ dysfunction in patients with suspected infection. We hypothesized that machine-learning models using qSOFA variables for predicting three-day mortality would provide better accuracy than the qSOFA score in the emergency department (ED). Between January 2016 and December 2018, the medical records of patients aged over 18 years with suspected infection were retrospectively obtained from four EDs in Korea. Data from three hospitals (n = 19,353) were used as training-validation datasets and data from one (n = 4234) as the test dataset. Machine-learning algorithms including extreme gradient boosting, light gradient boosting machine, and random forest were used. We assessed the prediction ability of machine-learning models using the area under the receiver operating characteristic (AUROC) curve, and DeLong’s test was used to compare AUROCs between the qSOFA scores and qSOFA-based machine-learning models. A total of 447,926 patients visited EDs during the study period. We analyzed 23,587 patients with suspected infection who were admitted to the EDs. The median age of the patients was 63 years (interquartile range: 43–78 years) and in-hospital mortality was 4.0% (n = 941). For predicting three-day mortality among patients with suspected infection in the ED, the AUROC of the qSOFA-based machine-learning model (0.86 [95% CI 0.85–0.87]) for three -day mortality was higher than that of the qSOFA scores (0.78 [95% CI 0.77–0.79], p < 0.001). For predicting three-day mortality in patients with suspected infection in the ED, the qSOFA-based machine-learning model was found to be superior to the conventional qSOFA scores.


Introduction
The early recognition and prompt treatment of sepsis in the emergency department (ED) are important to improve patient outcomes [1]. Sepsis has been characterized as a systemic inflammatory response syndrome (SIRS) to infection [2]. The quick sepsis-related organ failure assessment (qSOFA) criteria [3] were introduced by the Third International Consensus Definitions for Sepsis and Septic Shock (Sepsis-3). The qSOFA scores can be used outside of the intensive care unit (ICU) for predicting mortality or ICU stay [4][5][6][7][8][9]. However, several meta-analyses of qSOFA scores have shown that these scores had a poor sensitivity for predicting in-hospital mortality [10][11][12][13][14]. Early warning scores [15,16], a tool for identifying hospitalized patients at risk of deterioration, have been proposed for predicting hospital mortality in those with suspected sepsis in the ED [7,[17][18][19][20]. However, Hamilton et al. reported that the early warning scores were not accurate in predicting sepsis mortality in the ED (67% of sensitivity and 60% of specificity) [21].
Recently, various machine-learning methods for predicting outcomes more accurately have been implemented in the medical field [22][23][24]. Machine-learning models for the early identification of patients at risk for sepsis have been developed in the ICU [25] and ED settings [26][27][28]. Although these diverse machine-learning models can improve predictive accuracy for sepsis outcomes, they require excessive variables and laboratory results that may not be available in the ED. These factors can lead to poor generalizability of the machine-learning-based prognostic models.
The objective of this study was to develop and validate the prognostic performance of a qSOFA-based machine-learning model for three-day mortality prediction in patients with suspected infection in the ED.

Study Design
This retrospective multicenter study was conducted between January 2016 and December 2018 in four hospitals (Dongtan Sacred Heart Hospital, Kangnam Sacred Heart Hospital, Chuncheon Sacred Heart Hospital, and Hallym University Sacred Heart Hospital) of the Hallym University Medical Center (capacity of more than 3000 beds) in the Republic of Korea. Approximately 150,000 patients visited the EDs per year during the study period with a mean of 37,000 (range: 19,000-52,000) annual visits. A total of 447,926 patients visited the ED during the study period. The medical records of 23,587 patients older than 18 years suspected of having an infection were accessed and their data were analyzed.
The Institutional Review Board of the Hallym Medical Center approved the study (approval no. 2019-10-017-001) and waived the requirement for informed consent due to the retrospective nature of the analyses.

Data Collection and Definition
Clinical data were extracted using the clinical big data analytic solution Smart Clinical Data Warehouse (CDW) from the Hallym University Medical Center, which is based on the QlikView Elite Solution (Qlik, King of Prussia, PA, USA). It analyzes the electronic medical record (EMR) text and integrated fixed data. Using the Smart CDW, we collected the following clinical data of patients with suspected infection: demographic variables (age and sex), diagnoses at the ED, initial vital signs (systolic blood pressure, respiration rate, mental status, body temperature, and heart rate), arterial partial pressure of carbon dioxide, white blood cell count, duration of hospitalization, ICU admission, mechanical ventilation, and mortality. Mental status was evaluated by emergency specialist nurses using the alert, voice, pain, unresponsive (AVPU) scale (Supplementary Table S1). Body temperature was assessed using a tympanic ear thermometer.
Among the patients admitted to the ED, the data of those whose main diagnoses were infection-related were extracted. Infection-related diagnoses were referenced in a previous study by Rodriguez et al. [29]. Two of the authors (pulmonologist and anesthesiologist) reviewed and examined the patient data for eligibility, and ambiguous inclusions were excluded by consensus review (Supplementary Table S2). To avoid recording errors in the EMRs, we excluded systolic blood pressure, heart rate, respiratory rate, and body temperature values that were outside the ranges of 30-300 mmHg, 10-300 beats/min, 3-60 breaths/min, and 30-45 • C, respectively [30]. The primary outcome was mortality within 3 days of admission to the ED and secondary outcomes were in-hospital mortality, ICU admission within 3 days of admission to ED, and ICU admission.
The qSOFA criteria consist of systolic blood pressure ≤ 100 mmHg, respiratory rate ≥ 22 breaths/min, and altered mental status [3]. We considered altered mental status as non-alert per the AVPU scale [31]. Patients were assigned one point for each criterion, and a qSOFA score of ≥ 2 was considered indicative of poor outcomes. The SIRS criteria are considered to be met if at least two of the following four clinical findings are present [2]: temperature > 38 • C or < 36 • C, heart rate > 90/min, respiratory rate > 20/min or arterial partial pressure of carbon dioxide < 32 mm Hg, and white blood cell count > 12 × 10 9 /L or < 4 × 10 9 /L or immature band cells > 10%. Additionally, the modified early warning score (MEWS) is widely used for detecting clinical deterioration in patients in the ED [16]; it is also used in prediction assessment for in-hospital mortality or ICU admission (Supplementary Table S1) [32].

Statistical Analysis and Machine Learning
Data on patient demographics, severity of illness scores (qSOFA, SIRS, and MEWS), diagnoses on admission, and outcome variables were analyzed using descriptive statistics. Continuous and categorical variables are expressed as the median (interquartile range) and number (percentage), respectively. We assessed the discriminatory power of each severity of illness score using the area under the receiver operating characteristic (AUROC) curves. All statistical analyses were performed using the Statistical Package for the Social Sciences (SPSS) Version 24.0 (IBM Corporation, Armonk, NY, USA).
The qSOFA-based machine-learning model was developed using the qSOFA criteria, including systolic blood pressure, respiratory rate, and mental status. A dataset was created with the variables of the 23,587 patients. We divided the dataset into training and validation test sets to prevent the model from overfitting the test set. The test set consisted of data from other hospitals that were not associated with training-validation to test the model. The data from three hospitals (Dongtan Sacred Heart Hospital, Kangnam Sacred Heart Hospital, and Hallym University Sacred Heart Hospital) were used for training-validation (n = 19,353) and the data from one hospital (Chuncheon Sacred Heart Hospital) as the test dataset (n = 4234). The training-validation set was divided into the training and validation sets at a 9:1 ratio. The overall dataset was divided as follows: 74% for the training set, 8% for the validation set, and 18% for the test set. Datasets were standardized by min-max scaling. Regarding the model algorithm, extreme gradient boosting (XGB), light gradient boosting machine (LGBM), and random forest were used. In the training dataset, deaths and ICU inpatients were much fewer than survivors and general ward inpatients, respectively. This data imbalance can bias the machine-learning models and render them inaccurate. To solve this problem, we trained the model after balancing the training dataset through the synthetic minority oversampling technique to a 1:1 ratio in the XGB and LGBM models and modeled the balanced random forest. Three models were trained with the basic hyperparameters and training sets and evaluated with a validation set to select the one with the best performance. We performed 5-fold cross validation on the training dataset and tuned the hyperparameters using grid search. The final model was validated through the test set. We evaluated models with the ROC curve and AUROC using Anaconda (Python version 3.7, https://www.anaconda.com; Anaconda Inc., Austin, TX, USA), the XGBoost package version 0.90 (https: //xgboost.readthedocs.io), the LGBM package version 2.2.3 (https://lightgbm.readthedocs.io/en/latest/Python-Intro.html), and the imbalanced-learn package version 0.5.0 (https://imbalanced-learn.readthedocs.io).
DeLong's test was used to compare AUROCs between qSOFA scores and qSOFA-based machine-learning models [33].

Results
Characteristics of patients with suspected infection in the ED are summarized in Table 1. A total of 23,587 patients suspected of having an infection were enrolled, and their data were analyzed (Figure 1). The median age was 63 years (IQR: 43-78 years) and 46.1% were men (n = 10,862). Approximately 21.9% (n = 5173) of the patients were admitted to the ICU and 941 died in the hospital (4.0%). The most common diagnoses were respiratory (28.6%, n = 6736), intra-abdominal (24.1%, n = 5693), and urinary tract (15.4%, n = 3638) infection. There were significant differences in median age, severity of illness scores, ICU admission, and in-hospital mortality between the test and training-validation datasets.  Predictive performance of algorithm-specific machine learning models through validation sets are shown in Supplementary Tables S3 and S4 shows the cross-validation results of selected models. The AUROCs showing the performance of the qSOFA-based machine-learning model for outcome prediction are presented in Figure 2. For predicting three-day mortality among patients with suspected infection in the ED, the AUROC of the qSOFA-based machine-learning model was 0.85 (95% CI 0.83-0.86). The prognostic performance of the qSOFA-based machine-learning model for the prediction of several outcomes was as follows: 0.75 (95% CI 0.74-0.76) for in-hospital mortality, 0.79 (95% CI 0.79-0.79) for three -day ICU admission, and 0.79 (95% CI 0.78-0.79) for ICU admission. The AUROCs of the qSOFA-based machine-learning model for three-day mortality in the higher (≥2) and lower (<2) qSOFA groups were 0.76 (95% CI 0.67-0.81) and 0.77 (95% CI 0.71-0.80), respectively (Figure 3).    Table 2. Area under the receiver operating characteristic curve for outcomes according to the severity of illness scores from the independent test set.

Variable
AUROC (95% CI) In the prediction of outcome, the discriminatory abilities of the qSOFA scores and machine-learning models in the test set are shown in Table 3. Prediction performance of the qSOFA-based machine-learning model (0.86 [95% CI 0.85-0.87]) for three-day mortality was significantly higher than the conventional qSOFA scores (0.78 [95% CI 0.77-0.79], p < 0.001). Compared with the qSOFA scores, machine-learning models demonstrated a significantly higher AUROC. Table 3. Prediction performance of the qSOFA scores and machine-learning models in the test set.

Discussion
In this multicenter study, we applied three machine-learning algorithms (extreme gradient boosting, light gradient boosting machine, and random forest) using three qSOFA variables to predict three-day mortality in patients with suspected infection in the ED. The outcome predictive abilities of the qSOFA-based machine-learning model performed in the independent test set was satisfactory. Particularly, prediction performance of the machine-learning model for three-day mortality was superior to the conventional qSOFA score. Furthermore, we developed a qSOFA-based machine-learning model for predicting three-day mortality in the lower (<2) qSOFA groups that showed an acceptable AUROC.
Recently, machine-learning models have been applied for predicting diverse outcomes in the ED, e.g., cardiac arrest prediction [24], ED triage [34][35][36], prediction of hospital admission [37], identification of patients with suspected infection [27], screening of sepsis [28] or septic shock [26], and mortality prediction in patients with sepsis [38] or suspected infection [39]. Our study suggests that the ability of machine-learning models for predicting deterioration within three days of patients with suspected infection are superior to the conventional severity illness scores. Machine-learning models, which can predict sepsis outcome with high accuracy, are important because the sepsis is a medical emergency [40] and there is limited time for patient care in the ED. Horng et al. demonstrated that accurate triggering of clinical decision support will become increasingly more important as clinical decision support becomes more integrated into EMRs [27]. Cho et al. reported that a deep learning-based early warning system, which can be applied with EMRs, accurately predicted the deterioration of patients [41]. We suggest that our qSOFA-based machine-learning model incorporated with real-time clinical variables on the EMR can be utilized by physicians for making clinical decisions for treating sepsis.
The qSOFA criteria consist of systolic blood pressure (≤100 mmHg), respiratory rate (≥22 breaths/min), and altered mental status (three point each) [3]. However, the cutoffs for qSOFA can be potentially arbitrary [42]. On the other hand, our machine learning models using continuous variables may enable finer classification of dataset [43]. Machine leaning approaches are adept at handling high-order interactions between the predictors and non-linear relationships with the outcome [35]. Additionally, ensembles of decision tree methods like gradient boosting can automatically provide estimates of feature importance from a trained predictive model. Feature importance provides a score that indicates how valuable each feature is in the construction of the boosted decision trees within the model. We suggest that these factors contribute to better predictive ability of machine learning models than conventional qSOFA scores.
The qSOFA scores are recognized as a parsimonious tool for other complex and cost consuming way to screen for sepsis outcome [3]. Our findings support that the qSOFA score can be acceptable for predicting acute deterioration in patients with suspected infection (AUROC: three-day mortality = 0.78 and three-day ICU admission = 0.73). However, the results of a recent meta-analysis showed that the qSOFA scores are not useful for predicting in-hospital mortality (AUROC = 0.68) or ICU admission (AUROC = 0.65) [44]. Moreover, because of the poor sensitivity of the qSOFA scores, there is a possibility of delays in sepsis identification [45]. However, novel machine-learning models can accurately predict sepsis onset beforehand [46]. In accordance with the results of previous studies [38,39], our machine-learning models showed higher accuracy rate of mortality prediction in patients with suspected infection than the qSOFA scores. Therefore, machine-learning based prediction models may be beneficial for physicians in management of sepsis in the future.
The major strength of this multicenter study was the use of a large dataset and the successful prediction of mortality in the test set using the machine-learning models. These results are reliable because the model was tested using an independent test set that had patient characteristics different from those in training-validation.
Nevertheless, the study had several limitations due to its retrospective design. Although both authors carefully reviewed the diagnoses, the study population was difficult to be determined because the definition of suspected infection varied among studies. Additionally, we cannot confirm that the attending physician had documented the diagnosis. The indication of ICU admission may vary among different EDs. Therefore, further prospective studies are needed to examine the efficacy of these machine-learning models for predicting mortality in patients with infection in the ED setting.

Conclusions
We developed machine-learning models using three qSOFA criteria to predict three-day mortality in patients with suspected infection in the ED. The qSOFA-based machine-learning models are superior to the conventional qSOFA scores. We suggest that our qSOFA-based machine-learning models can assist physicians' clinical decision-making for treating sepsis in the ED.
Supplementary Materials: The following are available online at http://www.mdpi.com/2077-0383/9/3/875/s1, Table S1: The modified early warning score, Table S2: Infection-related diagnosis, Table S3: Predictive performance of algorithm-specific machine learning models through validation sets, Table S4: Algorithms of selected machine-learning models and results of training set cross-validation.
Author Contributions: M.S.B. and Y.S.K. were responsible for study conception and design and drafting of the article. M.S.B. was responsible for acquisition of the data. All authors were responsible for the analysis and interpretation of data and for critical revision of the manuscript. M.S.B. takes responsibility for the paper as a whole. All authors have read and agreed to the published version of the manuscript.