Background
Methods
Study design and setting
Study population
Outcome and predictor variables
Data preparation
Feature selection
Model development
Model evaluation
Ethical considerations
Results
Characteristics of HAI patients
Variable | Total (n = 73,859) | Non-HAI (n = 73,748) | HAI (n = 111) | t or χ2 | p-value | |||
---|---|---|---|---|---|---|---|---|
General characteristics | ||||||||
LoS at PCR testing, days, mean (SD) | - | - | 12.5 (10.9) | - | - | |||
Total LoS, days, mean (SD) | 12.5 (15.3) | 12.5 (15.3) | 27.0 (23.1) | -6.641 | < 0.001 | *** | ||
Age, years, mean (SD) | 58.7 (16.1) | 58.7 (16.1) | 68.8 (13.0) | -8.220 | < 0.001 | *** | ||
Sex, male, n (%) | 40,588 (55.0) | 40,529 (55.0) | 59 (53.2) | 0.082 | 0.775 | |||
BMI, mean (SD) | 23.0 (3.6) | 23.0 (3.6) | 22.9 (4.5) | 0.332 | 0.740 | |||
Pregnant, n (%) | 716 (1.0) | 716 (1.0) | 0 (0.0) | 0.312 | 0.577 | |||
Ex-smoker, n (%) | 15,161 (20.5) | 15,135 (20.5) | 26 (23.4) | 0.408 | 0.523 | |||
Current smoker, n (%) | 9,928 (13.4) | 9919 (13.4) | 9 (8.1) | 2.278 | 0.131 | |||
Immunosuppressed, n (%) | 19,543 (26.5) | 19,495 (26.4) | 48 (43.2) | 15.240 | < 0.001 | *** | ||
Corticosteroid use, n (%) | 25,035 (33.9) | 24,972 (33.9) | 63 (56.8) | 24.918 | < 0.001 | *** | ||
Comorbidities, n (%) | ||||||||
Diabetes | 4,653 (6.3) | 4,635 (6.3) | 18 (16.2) | 16.875 | < 0.001 | *** | ||
Obesity | 35 (0.0) | 35 (0.0) | 0 (0.0) | 0.000 | 1 | |||
Heart disease | 8,207 (11.1) | 8,176 (11.1) | 31 (27.9) | 30.146 | < 0.001 | *** | ||
Liver disease | 4,825 (6.5) | 4,816 (6.5) | 9 (8.1) | 0.230 | 0.631 | |||
Renal disease | 9,104 (12.3) | 9,074 (12.3) | 30 (27.0) | 20.890 | < 0.001 | *** | ||
Hematologic disease | 4,733 (6.4) | 4,720 (6.4) | 13 (11.7) | 4.366 | 0.037 | * | ||
Malignancy | 37,214 (50.4) | 37,166 (50.4) | 48 (43.2) | 1.991 | 0.158 | |||
Organ transplantation | 3,600 (4.9) | 3,596 (4.9) | 4 (3.6) | 0.161 | 0.688 | |||
Asthma | 926 (1.3) | 915 (1.2) | 11 (9.9) | 60.462 | < 0.001 | *** | ||
COPD | 1,095 (1.5) | 1,081 (1.5) | 14 (12.6) | 86.809 | < 0.001 | *** | ||
Vital signs, mean (SD) | ||||||||
Largest variation for BT, ºC | 0.8 (0.4) | 0.8 (0.4) | 1.0 (0.4) | -6.117 | < 0.001 | *** | ||
Largest variation for HR, beats/m | 16.4 (10.1) | 16.4 (10.1) | 19.3 (10.5) | -3.082 | 0.002 | ** | ||
Largest variation for RR, beats/m | 2.4 (4.3) | 2.4 (4.3) | 2.4 (2.8) | -0.033 | 0.741 | |||
Largest variation for SBP (mmHg) | 23.1 (12.6) | 23.1 (12.6) | 27.4 (12.5) | -3.610 | < 0.001 | *** | ||
Largest variation for DBP (mmHg) | 16.5 (8.4) | 16.5 (8.4) | 19.1 (8.5) | -3.340 | < 0.001 | *** | ||
Laboratory test results, mean (SD) | ||||||||
RBC count (103/Μl) | 3.7 (0.7) | 3.7 (0.7) | 3.3 (0.7) | 5.431 | < 0.001 | *** | ||
Hb (g/Dl) | 11.3 (2.0) | 11.3 (2.0) | 10.2 (1.9) | 5.723 | < 0.001 | *** | ||
WBC count (103/Μl) | 7.6 (4.5) | 7.6 (4.5) | 6.9 (4.6) | 1.571 | 0.116 | |||
Platelet count (103/Μl) | 221.0 (108.6) | 221.0 (108.6) | 184.8 (102.5) | 3.509 | < 0.001 | *** | ||
Haematocrit (%) | 33.7 (5.8) | 33.7 (5.8) | 30.5 (5.8) | 5.864 | < 0.001 | *** | ||
RDW (%) | 14.6 (2.2) | 14.6 (2.2) | 15.2 (2.3) | -2.703 | 0.007 | ** | ||
DNI (%) | 1.4 (3.2) | 1.4 (3.2) | 1.9 (2.0) | -2.366 | 0.020 | * | ||
Neutrophil count (103/Μl) | 5.5 (4.1) | 5.5 (4.1) | 5.0 (3.4) | 1.624 | 0.107 | |||
Lymphocyte count (103/Μl) | 1.3 (0.7) | 1.3 (0.7) | 0.9 (0.6) | 6.711 | < 0.001 | *** | ||
NLR | 7.1 (48.2) | 7.1 (48.2) | 8.7 (9.3) | -1.797 | 0.075 | |||
PNR | 58.8 (145.5) | 58.8 (144.7) | 102.6 (427.0) | -1.080 | 0.283 | |||
PLR | 237.8 (356.5) | 237.6 (356.2) | 329.8 (468.0) | -2.073 | 0.040 | * | ||
Sodium (mmol/L) | 138.9 (3.9) | 138.9 (3.9) | 137.8 (4.5) | 2.679 | 0.009 | *** | ||
Potassium (mmol/L) | 4.0 (0.5) | 4.0 (0.5) | 3.8 (0.5) | 4.370 | < 0.001 | *** | ||
Cl (mmol/L) | 102.7 (4.4) | 102.8 (4.4) | 101.1 (5.0) | 3.420 | < 0.001 | *** | ||
CO2 (mmol/L) | 23.8 (3.3) | 23.8 (3.3) | 23.6 (3.6) | 0.729 | 0.466 | |||
Calcium (mmol/L) | 8.5 (0.7) | 8.5 (0.7) | 8.2 (0.8) | 4.236 | < 0.001 | *** | ||
Albumin (mmol/L) | 3.4 (0.6) | 3.4 (0.6) | 3.0 (0.6) | 5.912 | < 0.001 | *** | ||
Total bilirubin (mmol/L) | 1.0 (1.9) | 1.0 (1.9) | 0.8 (1.0) | 2.227 | 0.028 | * | ||
BUN (mg/Dl) | 17.3 (13.5) | 17.3 (13.5) | 21.0 (16.8) | -2.296 | 0.024 | * | ||
Creatinine (mg/Dl) | 1.1 (1.3) | 1.1 (1.3) | 1.3 (1.3) | -1.540 | 0.124 | |||
ALT (mmol/L) | 36 (98.9) | 36 (99) | 33.8 (55.6) | 0.398 | 0.692 | |||
AST (mmol/L) | 41.4 (163.4) | 41.4 (163.4) | 45.6 (101.8) | -0.423 | 0.673 | |||
Radiology test result, n (%) | ||||||||
Chest X-ray, Normal | 25,121 (34) | 25,111 (34) | 10 (9.0) | |||||
Abnormal | 42,027 (56.9) | 41,926 (56.9) | 101 (91.0) | |||||
None | 6,711 (9.1) | 6,711 (9.1) | 0 (0) | 53.237 | < 0.001 | *** | ||
Room status, n (%) | ||||||||
Same room | 1,542 (2.1) | 1,526 (2.1) | 16 (14.4) | 76.703 | < 0.001 | *** | ||
Same unit | 9,146 (12.4) | 9,095 (12.3) | 51 (45.9) | 112.340 | < 0.001 | *** | ||
Multi-occupancy room | 64,858 (87.8) | 64,763 (87.8) | 95 (85.6) | 0.328 | 0.567 | |||
Double room | 35,534 (48.1) | 35,508 (48.1) | 26 (23.4) | 26.158 | < 0.001 | *** |
Prediction model development
Model | AUC (%) | Sensitivity | Specificity | Accuracy | F1 Score | TP (n) | TN (n) | FP (n) | FN (n) |
---|---|---|---|---|---|---|---|---|---|
LR | 86.6 | 0.77 | 0.79 | 79.1 | 1.1 | 17 | 11,671 | 3,079 | 5 |
RF | 83.3 | 0.82 | 0.82 | 82.2. | 1.3 | 18 | 12,119 | 2,631 | 4 |
XGB | 74.9 | 0.73 | 0.73 | 72.9 | 0.8 | 16 | 10,747 | 4,003 | 6 |
ANN | 75.2 | 0.64 | 0.70 | 70.0 | 0.6 | 14 | 10,320 | 4,430 | 8 |