$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
Patient information
A total of 267 patients who underwent cholecystectomy were included in this study, of which 45 patients had an ICU LOS of ≥ 7 days and 222 patients had an ICU LOS of < 7 days. On baseline quantitative data, there were differences between the two groups in sentiment polarity, sentiment subjectivity, glucose, albumin, bicarbonate, SOFA, APSIII, ICU mean heart rate, and ICU mean systolic blood pressure (Table 1). The ICU LOS ≥ 7 days group had higher sentiment polarity, greater sentiment subjectivity, lower albumin levels, lower bicarbonate levels, higher SOFA, higher APSIII, faster ICU mean heart rate, and lower ICU mean systolic blood pressure (all p < 0.05).
On baseline qualitative data, there were differences between the two groups in gender, propofol, fentanyl, ciprofloxacin, and mild liver disease (Table 2). The percentage of males in the ICU LOS ≥ 7 days group was 71.111% and 28.889% of females, whereas the percentage of males in the ICU LOS < 7 days group was 53.604% and 46.396% of females. The ICU LOS ≥ 7 days group had a higher percentage of propofol (91.111% vs. 41.441%), fentanyl (86.667% vs. 50.000%), and ciprofloxacin (73.333% vs. 35.586%) use. The ICU LOS≥7 days group had 40.000% of patients with mild liver disease, while only 18.018% of patients in the ICU LOS < 7 days group had mild liver disease.
Analysis of the clinical value of sentiment polarity and sentiment subjectivity
As this study explored the correlation between sentiment scores in nursing notes and prognosis, and as baseline data showed that sentiment polarity and subjectivity differed between the two groups, the discriminative properties of both for ICU LOS were further examined using ROC analysis. In this study. ICU LOS was categorized into 3-day ICU LOS, 7-day ICU LOS, and 10-day ICU LOS. As shown in Table 3, the area under curve (AUC) values of sentiment polarity discrimination for 3-day ICU LOS, 7-day ICU LOS, and 10-day ICU LOS were 0.647 (0.571, 0.713), 0.704 (0.629, 0.777) and 0.691(0.610, 0.777), respectively, while AUC values of sentiment subjectivity discrimination for 3-day ICU LOS, 7-day ICU LOS, and 10-day ICU LOS were 0.531(0.456, 0.583), 0.594 (0.517, 0.664) and 0.657 (0.592, 0.728), respectively. The results of the DeLong test suggested that the performance of sentiment polarity in discriminating 3-day ICU LOS was better than sentiment subjectivity (p = 0.015).
Decision curve analysis (DCA) was used to explore the clinical net benefits of sentiment polarity and subjectivity in discriminating between 3-day, 7-day, and 10-day ICU LOS. In DCA, the high-risk threshold probability denotes the discrimination probability of a prolonged ICU stay at which a clinician would be indifferent between intervening and not intervening; net benefit was referenced against the treat-all (intervene in every patient) and treat-none (intervene in no patient) strategies, so the threshold ranges given below indicate the discrimination risk window over which acting on each metric could be clinically reasonable. As shown in Figure 1A, when the threshold was about 0.30-0.58, the clinical benefit of the sentiment polarity for discriminating 3-day ICU LOS was higher than that of the sentiment subjectivity, treat-all, and treat-none models. When the threshold was about 0.10-0.30, the clinical benefit of the sentiment polarity for discriminating 7-day ICU LOS was higher than that of the sentiment subjectivity, treat-all, and treat-none model (Figure 1B). A similar result was also observed in discriminating 10-day ICU LOS, with a threshold of about 0.10-0.22 (Figure 1C). Both ROC and DCA analyses indicated that, among the two text-derived metrics, sentiment polarity provided somewhat greater discrimination and net clinical benefit than sentiment subjectivity for discriminating ICU LOS, particularly for 7-day ICU LOS. These comparisons are exploratory and limited to the two sentiment metrics; they do not establish that sentiment polarity is superior to established severity scores.
The discriminative performance of sentiment polarity relative to other indicators, including differences in baseline data on 7-day ICU LOS, was further compared. As shown in Table 4, the AUC values of sentiment polarity, sentiment subjectivity, glucose, albumin, bicarbonate, SOFA, APSIII, ICU mean heart rate, ICU mean systolic blood pressure, gender, propofol, fentanyl, ciprofloxacin, and mild liver disease in discriminating 7-day ICU LOS were 0.688 (0.606, 0.757), 0.559 (0.441, 0.655), 0.636 (0.549, 0.719), 0.684 (0.582-0.785), 0.585 (0.490-0.679), 0.759 (0.688, 0.826), 0.752 (0.697, 0.836), 0.668 (0.587, 0.756), 0.619 (0.530, 0.707), 0.588 (0.513, 0.662), 0.726 (0.681, 0.783), 0.673 (0.621, 0.727), 0.660 (0.589, 0.720), 0.603 (0.510, 0.672), respectively. By DeLong's test, sentiment polarity showed a statistically higher AUC than sentiment subjectivity (p = 0.034) and gender (p = 0.023). For all other comparators, including the clinical severity scores SOFA (AUC = 0.759, p = 0.267) and APSIII (AUC = 0.752, p = 0.338) and propofol use (AUC = 0.726, p = 0.446), as well as glucose, albumin, bicarbonate, ICU mean heart rate, ICU mean systolic blood pressure, fentanyl, ciprofloxacin, and mild liver disease, the AUC differences relative to sentiment polarity were not statistically significant (all p > 0.05), regardless of which direction the point estimate favored. Although SOFA, APSIII, and propofol use had numerically higher point-estimate AUCs than sentiment polarity, this numerical difference did not reach statistical significance, and sentiment polarity's AUC was likewise not statistically distinguishable from several indicators with lower point estimates (e.g., albumin, bicarbonate, ICU mean systolic blood pressure). Taken together, these results indicate that sentiment polarity exhibited discriminative ability that was statistically comparable to, rather than uniformly superior to, established clinical severity measures, while showing a significant advantage over sentiment subjectivity and gender alone. Sentiment polarity's value is therefore best framed as competitive and complementary rather than superior to validated severity indices: its principal advantage lies in its automatic extraction from routine nursing notes, providing a low-cost, scalable signal that may supplement, rather than replace, instruments such as SOFA and APSIII.
On internal validation by 1000 bootstrap resamples, optimism was negligible: for 7-day ICU LOS, the single-index sentiment-polarity model (Figure 4A) had an optimism-corrected AUC of 0.70 (apparent 0.704), with a calibration slope of 1.06 and a Brier score of 0.138 (mean absolute calibration error = 0.04), while the model additionally adjusted for SOFA and APSIII (Figure 4B) showed a mean absolute calibration error of 0.034, indicating stable discrimination and adequate calibration; in the absence of an external cohort, these findings remain exploratory.
Correlation of sentiment polarity and sentiment subjectivity, with ICU LOS
The results of the RCS analysis (Figures 2A–B) suggested that sentiment polarity showed a nonlinear relationship with 7-day ICU LOS (p for overall = 0.002, p for nonlinear = 0.027), and sentiment subjectivity did not have a linear or nonlinear relationship with 7-day ICU LOS (p for overall = 0.205, p for nonlinear = 0.227). The results of RCS only found a correlation between sentiment polarity and ICU LOS, so the independent association between sentiment polarity and ICU LOS using generalized linear regression was further explored. When setting ICU LOS as a binary variable (Table 5), sentiment polarity had a correlation with ICU LOS with or without adjustment [crude model: OR(95%) = 1.83 (1.29, 2.61), p < 0.001; model 1:OR(95%) = 1.75 (1.21, 2.54), p = 0.003; model 2: OR(95%) = 2.30 (1.31, 4.03), p = 0.004; model 3: OR(95%) = 1.63 (0.92, 2.87), p = 0.092]. The same result was also found in setting ICU LOS as a continuous variable (Table 5) [crude model: β = 17.786 (9.169, 26.404), p < 0.001; model 1: β = 14.724 (6.287, 23.162), p = 0.001; model 2: β = 15.963 (5.352, 26.574), p = 0.003; model 3: β = 11.362 (0.976, 21.749), p = 0.032].
Correlation of sentiment polarity with secondary outcomes (postoperative infection, in-hospital death, and 28-day LOS)
The correlation between sentiment polarity and secondary outcomes was further explored. Among the 267 patients, postoperative infection occurred in 38/267, in-hospital death in 36/267 (13.5%), and a 28-day hospital LOS in 39/267 (14.6%). As shown in Figure 3A–C, there was a nonlinear relationship between sentiment polarity and in-hospital death (p for overall = 0.010, p for nonlinear = 0.046), while there was a linear relationship between sentiment polarity and 28-day LOS (p for overall < 0.001, p for nonlinear = 0.217), nevertheless, sentiment polarity did not have a linear or nonlinear relationship with postoperative infection (p for overall = 0.562, p for nonlinear = 0.364). Based on these results, ROC analysis was used to explore the ability of sentiment polarity in discriminating between in-hospital death and 28-day LOS. The AUC values of sentiment polarity in discriminating in-hospital death and 28-day LOS were 0.674 (0.602, 0.755) and 0.753 (0.669, 0.847), respectively. At the same time, the sensitivity of sentiment polarity in discriminating in-hospital death and 28-day LOS was 0.694 (0.453, 0.896) and 0.667 (0.503, 0.959), respectively. The corresponding specificities were 0.649 (0.495, 0.863) and 0.737 (0.457, 0.912), and the accuracies were 0.672 (0.536, 0.820) and 0.733 (0.510, 0.868), respectively (Table 6; all 95% CIs obtained by bootstrap resampling). Because the numbers of in-hospital deaths and 28-day events were small and no internal or external validation was performed, these secondary-outcome analyses should be regarded as exploratory and require confirmation in adequately powered, validated, and severity-adjusted analyses.
DATA AVAILABILITY:
MIMIC-IV is a restricted-access database; informed consent for the original data collection was obtained from patients at the source institutions during routine clinical care and database construction, whereas the present study is a secondary analysis of the already de-identified MIMIC-IV database for which the requirement for additional individual informed consent was waived. The raw data can be obtained by completing the CITI "Data or Specimens Only Research" training and signing the PhysioNet Credentialed Health Data Use Agreement (https://physionet.org/content/mimiciv/). Because the MIMIC-IV Data Use Agreement prohibits redistribution of the individual patient records, the raw data cannot be deposited publicly; however, the de-identified derived dataset underlying the present analyses, together with the complete SQL extraction queries and analysis scripts required to regenerate it from MIMIC-IV, has been provided to the journal as supplementary files. Both the data extraction code and the raw data are available in Supplementary Table 1 and Supplementary Coding File.

Figure 1: The clinical net benefit of sentiment polarity and sentiment subjectivity in discriminating 3-day ICU LOS, 7-day ICU LOS, and 10-day ICU LOS. (A) 3-day ICU LOS, (B) 7-day ICU LOS, (C) 10-day ICU LOS, Model 1: sentiment polarity, Model 2: sentiment subjectivity. The x-axis shows the probability of the high-risk threshold, and the y-axis shows the net benefit. The grey “All” line (treat-all) assumes every patient is treated as high risk, and the black “None” line (treat-none) assumes no patient is treated; Model 1 and Model 2 each use a single discrimination index (sentiment polarity and sentiment subjectivity, respectively). The outcomes were defined as ICU LOS ≥ 3 days (A), ≥ 7 days (B), and ≥ 10 days (C). N = 267. Abbreviations: ICU = intensive care unit, LOS = length of stay. Please click here to view a larger version of this figure.

Figure 2: Correlation of sentiment polarity and sentiment subjectivity with ICU LOS. (A) Sentiment polarity, (B) Sentiment subjectivity. The outcome was 7-day ICU LOS (coded as a binary event, ≥ 7 days vs. < 7 days). The solid line shows the estimated odds ratio across the exposure range and the shaded band the corresponding 95% confidence interval; the horizontal dashed line marks an odds ratio of 1. Restricted cubic splines were fitted with 4 knots at the 5th, 35th, 65th, and 95th percentiles for each exposure, with the reference value set to the median. The model was unadjusted. N = 267. Abbreviations: ICU = intensive care unit, LOS = length of stay. Please click here to view a larger version of this figure.

Figure 3: Correlation of sentiment polarity with secondary outcomes (postoperative infection, in-hospital death, and 28-day LOS). (A) Postoperative infection, (B) In-hospital death, (C) 28-day LOS. Postoperative infection and in-hospital death were coded as binary events; 28-day LOS was coded as a binary event (≥ 28 days vs. < 28 days). The solid line shows the estimated odds ratio and the shaded band the 95% confidence interval, with the horizontal dashed line at an odds ratio of 1. Restricted cubic splines were fitted with 4 knots at the 5th, 35th, 65th, and 95th percentiles of sentiment polarity, with the reference value at the median. The model was unadjusted. N = 267. Abbreviations: LOS = length of stay. Please click here to view a larger version of this figure.

Figure 4: Calibration of the sentiment-polarity models for 7-day ICU LOS, assessed by 1000 bootstrap resamples. (A) Single discrimination index sentiment polarity model; (B) model additionally adjusted for SOFA and APSIII. The dashed diagonal denotes perfect calibration (Ideal); the dotted line is the apparent calibration, and the solid line is the bootstrap bias-corrected calibration; grey lines are 0.95 confidence limits, and the rug plot shows the distribution of discrimination probabilities. Mean absolute error = 0.04 (A) and 0.034 (B). N = 267. Please click here to view a larger version of this figure.
| Variable | ICU LOS < 7 days (N = 222) | ICU LOS ≥ 7 days (N = 45) | p |
| Sentiment polarity | 0.131 [0.095,0.185] | 0.178 [0.154,0.236] | <0.001 |
| Sentiment subjectivity | 0.453 [0.396,0.517] | 0.487 [0.435,0.533] | 0.046 |
| Age (years old) | 67.000 [57.000,77.000] | 67.000 [57.000,76.000] | 0.847 |
| BMI (kg/m2) | 28.000 [25.400,33.200] | 29.000 [27.100,34.700] | 0.45 |
| Glucose (mg/dL) | 127.000 [103.000,158.000] | 137.000 [115.000,194.000] | 0.013 |
| Albumin (g/dL) | 3.044 ± 0.538 | 2.628 ± 0.727 | <0.001 |
| ALT (IU/L) | 68.000 [27.000,206.000] | 49.000 [29.000,178.000] | 0.406 |
| Anion gap (mEq/L) | 14.000 [13.000,17.000] | 14.000 [13.000,17.000] | 0.578 |
| AST (IU/L) | 78.000 [39.000,223.000] | 71.000 [38.000,192.000] | 0.942 |
| Bicarbonate (mEq/L) | 23.419 ± 4.227 | 21.778 ± 5.485 | 0.026 |
| Blood urea nitrogen (mg/dL) | 16.000 [12.000,23.000] | 20.000 [11.000,30.000] | 0.219 |
| Chloride (mEq/L) | 105.000 [101.000,108.000] | 106.000 [100.000,109.000] | 0.214 |
| Creatinine (mg/dL) | 0.900 [0.800,1.300] | 1.100 [0.800,1.800] | 0.231 |
| Hematocrit (%) | 33.843 ± 6.179 | 32.531 ± 6.620 | 0.202 |
| Platelets (K/µL) | 211.000 [155.000,287.000] | 189.000 [135.000,275.000] | 0.347 |
| Potassium (mEq/L) | 4.100 [3.700,4.600] | 4.300 [3.800,4.800] | 0.393 |
| RBC (m/µL) | 3.724 ± 0.688 | 3.546 ± 0.755 | 0.123 |
| RDW (%) | 14.600 [13.800,15.600] | 14.500 [13.900,15.800] | 0.984 |
| Sodium (mEq/L) | 138.000 [136.000,141.000] | 139.000 [136.000,142.000] | 0.644 |
| Lactate (mmol/L) | 1.500 [1.100,2.200] | 1.700 [1.200,2.600] | 0.313 |
| Lymphocyte (%) | 8.000 [5.000,13.500] | 8.700 [5.000,14.000] | 0.666 |
| WBC (K/µL) | 11.300 [8.400,15.600] | 11.300 [8.200,16.500] | 0.65 |
| CCI | 5.000 [3.000,7.000] | 6.000 [4.000,8.000] | 0.199 |
| SOFA | 4.000 [2.000,6.000] | 6.000 [5.000,11.000] | <0.001 |
| APSIII | 40.000 [32.000,54.000] | 58.000 [45.000,70.000] | <0.001 |
| ICU mean heart rate (bpm) | 88.806 [77.708,100.161] | 95.885 [87.917,109.686] | <0.001 |
| ICU mean systolic blood pressure (mmHg) | 117.296 [106.667,127.478] | 110.259 [102.808,120.353] | 0.014 |
| ICU mean diastolic blood pressure (mmHg) | 60.133 [54.313,67.227] | 57.953 [51.000,62.278] | 0.108 |
Table 1: Baseline quantitative information of patients undergoing cholecystectomy. Abbreviations: BMI = body mass index; ALT alanine transaminase; AST = aspartate aminotransferase; RBC = red blood cell; RDW = red cell distribution width; WBC = white blood cell; CCI = Charlson comorbidity index; SOFA = sequential organ failure assessment; APSIII = simplified acute physiology score III; ICU = intensive care unit; LOS = length of stay.
| Variable | | ICU LOS < 7 days (N = 222) | ICU LOS ≥ 7 days (N = 45) | p |
| Gender | Male | 119 (53.604) | 32 (71.111) | 0.031 |
| Female | 103 (46.396) | 13 (28.889) | |
| Race | White | 168 (77.419) | 29 (69.048) | 0.244 |
| Others | 49 (22.581) | 13 (30.952) | |
| Marital status | Married | 107 (50.472) | 16 (37.209) | 0.113 |
| Others | 105 (49.528) | 27 (62.791) | |
| Smoking | No | 214 (96.396) | 44 (97.778) | 0.64 |
| Yes | 8 (3.604) | 1 (2.222) | |
| Drinking alcohol | No | 191 (86.036) | 38 (84.444) | 0.781 |
| Yes | 31 (13.964) | 7 (15.556) | |
| Propofol | No | 130 (58.559) | 4 (8.889) | <0.001 |
| Yes | 92 (41.441) | 41 (91.111) | |
| Fentanyl | No | 111 (50.000) | 6 (13.333) | <0.001 |
| Yes | 111 (50.000) | 39 (86.667) | |
| Ciprofloxacin | No | 143 (64.414) | 12 (26.667) | <0.001 |
| Yes | 79 (35.586) | 33 (73.333) | |
| Levofloxacin | No | 196 (88.288) | 36 (80.000) | 0.133 |
| Yes | 26 (11.712) | 9 (20.000) | |
| Hypertension | No | 98 (44.144) | 20 (44.444) | 0.97 |
| Yes | 124 (55.856) | 25 (55.556) | |
| Hyperlipidemia | No | 157 (70.721) | 36 (80.000) | 0.205 |
| Yes | 65 (29.279) | 9 (20.000) | |
| Myocardial infarction | No | 198 (89.189) | 41 (91.111) | 0.701 |
| Yes | 24 (10.811) | 4 (8.889) | |
| Congestive heart failure | no | 186 (83.784) | 37 (82.222) | 0.797 |
| yes | 36 (16.216) | 8 (17.778) | |
| Cerebrovascular disease | no | 212 (95.495) | 41 (91.111) | 0.229 |
| yes | 10 (4.505) | 4 (8.889) | |
| Dementia | no | 220 (99.099) | 44 (97.778) | 0.443 |
| yes | 2 (0.901) | 1 (2.222) | |
| Mild liver disease | no | 182 (81.982) | 27 (60.000) | 0.001 |
| yes | 40 (18.018) | 18 (40.000) | |
| Chronic pulmonary disease | no | 161 (72.523) | 37 (82.222) | 0.175 |
| yes | 61 (27.477) | 8 (17.778) | |
Table 2: Baseline qualitative information of patients undergoing cholecystectomy. Abbreviations: ICU = intensive care unit, LOS = length of stay.
| Variable | AUC (95%CI) | Sensitivity (95%CI) | Specificity (95%CI) | Accuracy (95%CI) | Optimal threshold (95%CI) | Delong-test p |
| 3-day ICU LOS | Sentiment polarity | 0.647 (0.571,0.713) | 0.638 (0.345,0.745) | 0.623 (0.556,0.891) | 0.660 (0.602,0.697) | 0.151 (0.131,0.208) | 0.015 |
| Sentiment subjectivity | 0.531 (0.456,0.583) | 0.762 (0.271,0.981) | 0.333 (0.093,0.829) | 0.528 (0.436,0.617) | 0.413 (0.350,0.528) | / |
| 7-day ICU LOS | Sentiment polarity | 0.704 (0.629,0.777) | 0.867 (0.433,0.937) | 0.500 (0.464,0.875) | 0.633 (0.540,0.819) | 0.133 (0.133,0.211) | 0.057 |
| Sentiment subjectivity | 0.594 (0.517,0.664) | 0.756 (0.324,1.000) | 0.419 (0.141,0.873) | 0.498 (0.302,0.795) | 0.435 (0.360,0.569) | / |
| 10-day ICU LOS | Sentiment polarity | 0.691 (0.610,0.777) | 0.800 (0.493,0.926) | 0.573 (0.524,0.871) | 0.643 (0.564,0.821) | 0.151 (0.151,0.211) | 0.587 |
| Sentiment subjectivity | 0.657 (0.592,0.728) | 0.857 (0.573,1.000) | 0.427 (0.284,0.731) | 0.507 (0.376,0.715) | 0.435 (0.413,0.506) | / |
Table 3: The discriminative ability of sentiment polarity and sentiment subjectivity in discriminating 3-day ICU LOS, 7-day ICU LOS, and 10-day ICU LOS. Data are point estimates with 95% CI in parentheses. The 95% CI for the AUC was calculated using the DeLong method; CIs for sensitivity, specificity, accuracy, and the optimal threshold were obtained by bootstrap resampling with 1000 replicates. The optimal threshold was determined by maximizing the Youden index (sensitivity + specificity − 1); sensitivity, specificity, and accuracy were calculated at this threshold, with accuracy defined as (true positives + true negatives) / total sample. The optimal threshold is expressed on the native scale of each variable (the discriminated-probability/sentiment-score scale here). The "DeLong-test" column reports the two-sided p-value of the DeLong test for the difference between two paired ROC curves: within each ICU-LOS threshold, sentiment polarity was compared against sentiment subjectivity, the latter serving as the reference curve and marked "/". A p-value < 0.05 indicates a statistically significant difference in discriminative ability between the two metrics. This analysis was conducted in a cohort of 267 patients. Abbreviations: ICU = intensive care unit, LOS = length of stay, AUC = area under the curve, CI = confidence interval.
| Variable | AUC (95%CI) | Sensitivity (95%CI) | Specificity (95%CI) | Accuracy (95%CI) | Optimal threshold (95%CI) | Delong-test p |
| Sentiment polarity | 0.688 (0.606,0.757) | 0.878 (0.427,0.942) | 0.451 (0.384,0.899) | 0.608 (0.491,0.806) | 0.133 (0.133,0.212) | / |
| Sentiment subjectivity | 0.559 (0.441,0.655) | 0.829 (0.184,1.000) | 0.295 (0.097,0.965) | 0.549 (0.263,0.847) | 0.413 (0.350,0.606) | 0.034 |
| Glucose | 0.636 (0.549,0.719) | 0.341 (0.264,0.971) | 0.890 (0.276,0.960) | 0.820 (0.7810.860) | 188.000 (106.000,209.325) | 0.456 |
| Albumin | 0.684 (0.582,0.785) | 0.465 (0.309,0.808) | 0.862 (0.528,0.976) | 0.783 (0.571,0.862) | 2.400 (2.100,2.900) | 0.971 |
| Bicarbonate | 0.585 (0.490,0.679) | 0.844 (0.128,0.936) | 0.311 (0.281,1.000) | 0.401 (0.375,0.884) | 25.000 (13.000,25.000) | 0.068 |
| SOFA | 0.759 (0.688,0.826) | 0.829 (0.491,0.931) | 0.590 (0.439,0.876) | 0.809 (0.758,0.849) | 5.000 (4.000,8.000) | 0.267 |
| APSIII | 0.752 (0.697,0.836) | 0.634 (0.558,0.930) | 0.775 (0.499,0.864) | 0.806 (0.767,0.855) | 56.000 (39.675,59.000) | 0.338 |
| ICU mean heart rate | 0.668 (0.587,0.756) | 0.610 (0.381,0.962) | 0.665 (0.334,0.935) | 0.809 (0.766-0.858) | 94.932 (81.195,107.326) | 0.738 |
| ICU mean systolic blood pressure | 0.619 (0.530,0.707) | 0.721 (0.422,0.964) | 0.511 (0.267,0.802) | 0.545 (0.367,0.750) | 116.880 (105.667,125.240) | 0.153 |
| Gender | 0.588 (0.513,0.662) | 0.711 (0.571,0.837) | 0.464 (0.400,0.537) | 0.506 (0.449,0.577) | 1.000 (1.000,1.000) | 0.023 |
| Propofol | 0.726 (0.681,0.783) | 0.902 (0.826,0.980) | 0.549 (0.491,0.631) | 0.617 (0.566,0.684) | 1.000 (1.000,1.000) | 0.446 |
| Fentanyl | 0.673 (0.621,0.727) | 0.878 (0.800,0.950) | 0.468 (0.401,0.533) | 0.543 (0.488,0.609) | 1.000 (1.000,1.000) | 0.765 |
| Ciprofloxacin | 0.660 (0.589,0.720) | 0.707 (0.555,0.826) | 0.613 (0.539,0.657) | 0.622 (0.563,0.683) | 1.000 (1.000,1.000) | 0.615 |
| Mild liver disease | 0.603 (0.510,0.672) | 0.415 (0.250,0.561) | 0.792 (0.731,0.840) | 0.715 (0.661,0.765) | 1.000 (1.000,1.000) | 0.156 |
Table 4: The discriminative ability of indicators, which were differences in baseline information, in discriminating 7-day ICU LOS. Data are point estimates with 95% CI in parentheses. The 95% CI for the AUC was calculated using the DeLong method; CIs for sensitivity, specificity, accuracy, and the optimal threshold were obtained by bootstrap resampling with 1000 replicates. The optimal threshold was determined by maximizing the Youden index (sensitivity + specificity − 1); sensitivity, specificity, and accuracy were calculated at this threshold, with accuracy defined as (true positives + true negatives) / total sample. The optimal threshold is expressed on the native scale of each variable (the discriminated-probability scale for the sentiment scores, the original clinical units for laboratory and vital-sign variables, and the coded value 1/2 for binary variables such as medications, gender, and comorbidities). The "DeLong-test" column reports the two-sided p-value of the DeLong test comparing the ROC curve of each listed variable against that of sentiment polarity, which served as the reference model and is marked "/". A p value < 0.05 indicates that the variable's discriminative ability differs significantly from that of sentiment polarity. This analysis was conducted in a 214-patient complete-case cohort. Abbreviations: SOFA = sequential organ failure assessment; APSIII = simplified acute physiology score III; ICU = intensive care unit; LOS = length of stay; AUC = area under the curve; CI = confidence interval
| Set ICU LOS as a binary variable (7-day ICU LOS) | | |
| Model | OR per 1-SD (95%CI) | p |
| Crude model | 1.83 [1.29, 2.61] | <0.001 |
| Model 1 | 1.75 [1.21, 2.54] | 0.003 |
| Model 2 | 2.30 [1.31, 4.03] | 0.004 |
| Model 3 | 1.63 [0.92, 2.87] | 0.092 |
| Set ICU LOS as a continuous variable |
| Model | β (95%CI) | p |
| Crude model | 17.786 [9.169,26.404] | <0.001 |
| Model 1 | 14.724 [6.287,23.162] | 0.001 |
| Model 2 | 15.963 [5.352,26.574] | 0.003 |
| Model 3 | 11.362 [0.976,21.749] | 0.032 |
Table 5: Correlation of sentiment polarity with ICU LOS. Crude model: no adjustments. Model 1 adjusted SOFA, APSIII; model 2 adjusted glucose, albumin, bicarbonate, ICU mean heart rate, ICU mean systolic blood pressure, gender, and mild liver disease; model 3 adjusted propofol, fentanyl, and ciprofloxacin. OR are expressed per 1-SD increase in sentiment polarity; the covariate-adjusted models (Models 2-3) were fitted on the 214 patients with complete albumin data. Although Model 3 adjusts only for medications (propofol, fentanyl, and ciprofloxacin) and does not itself include albumin, it was deliberately restricted to the same 214-patient complete-case cohort as Model 2 so that the two adjusted models are estimated on an identical sample and are directly comparable; the crude model and Model 1 were fitted on the full cohort of 267 patients. Abbreviations: ICU = intensive care unit, LOS = length of stay, CI = confidence interval, OR = odds ratio.
| Index | In-hospital death | 28-day LOS |
| AUC (95%CI) | 0.674 (0.602,0.755) | 0.753 (0.669,0.847) |
| Sensitivity (95%CI) | 0.694 (0.453,0.896) | 0.667 (0.503,0.959) |
| Specificity (95%CI) | 0.649 (0.495,0.863) | 0.737 (0.457,0.912) |
| Accuracy (95%CI) | 0.672 (0.536,0.820) | 0.733 (0.510,0.868) |
| Optimal threshold (95%CI) | 0.162 (0.148,0.209) | 0.178 (0.129,0.216) |
Table 6: The discriminative ability of sentiment polarity in discriminating in-hospital death and 28-day LOS. Values are point estimates with 95% CI in parentheses (AUC by the DeLong method; sensitivity, specificity, and accuracy by bootstrap resampling). Event counts: in-hospital death, n = 36/267; 28-day LOS ≥ 28 days, n = 39/267. Abbreviations: CI = confidence interval; AUC = area under the curve; LOS = length of stay.
Supplementary Table 1: Raw data. De-identified raw data used in the study.Please click here to download this file.
Supplementary Coding File: Coding file. The codes used to run the analysis.Please click here to download this file.