Skip to main content
Top
Published in: BMC Infectious Diseases 1/2023

Open Access 01-12-2023 | Research

Machine learning model for the prediction of gram-positive and gram-negative bacterial bloodstream infection based on routine laboratory parameters

Authors: Fan Zhang, Hao Wang, Liyu Liu, Teng Su, Bing Ji

Published in: BMC Infectious Diseases | Issue 1/2023

Login to get access

Abstract

Background

Bacterial bloodstream infection is responsible for the majority of cases of sepsis and septic shock. Early recognition of the causative pathogen is pivotal for administration of adequate empiric antibiotic therapy and for the survival of the patients. In this study, we developed a feasible machine learning (ML) model to predict gram-positive and gram-negative bacteremia based on routine laboratory parameters.

Methods

Data for 2118 patients with bacteremia were obtained from the Medical Information Mart for Intensive Care dataset. Patients were randomly split into the training set and test set by stratified sampling, and 374 routine laboratory blood test variables were retrieved. Variables with missing values in more than 40% of the patients were excluded. Pearson correlation test was employed to eliminate redundant features. Five ML algorithms were used to build the model based on the selected features. Additionally, 132 patients with bacteremia who were treated at Qilu Hospital of Shandong University were included in an independent test cohort to evaluate the model.

Results

After feature selection, 32 variables remained. All the five ML algorithms performed well in terms of discriminating between gram-positive and gram-negative bacteremia, but the performance of convolutional neural network (CNN) and random forest (RF) were better than other three algorithms. Consider of the interpretability of models, RF was chosen for further test (ROC-AUC = 0.768; 95%CI = 0.715–0.798, with a sensitivity of 75.20% and a specificity of 63.79%). To expand the application of the model, a decision tree (DT) was built utilizing the major variables, and it achieved an AUC of 0.679 (95%CI = 0.632–0.723), a sensitivity of 66%, and a specificity of 67.82% in the test cohort. When tested in the Qilu Hospital cohort, the ROC-AUC of the RF and DT models were 0.666 (95%CI = 0.579–0.746) and 0.615 (95%CI = 0.526–0.698), respectively. Finally, a software was developed to make the RF- and DT-based prediction models easily accessible.

Conclusion

The present ML-based models could effectively discriminate between gram-positive and gram-negative bacteremia based on routine laboratory blood test results. This simple model would be beneficial in terms of guiding timely antibiotic selection and administration in critically ill patients with bacteremia before their pathogen test results are available.
Appendix
Available only for authorised users
Literature
1.
go back to reference Timsit JF, Ruppe E, Barbier F, Tabah A, Bassetti M. Bloodstream infections in critically ill patients: an expert statement. Intensive Care Med. 2020;46(2):266–84.CrossRefPubMedPubMedCentral Timsit JF, Ruppe E, Barbier F, Tabah A, Bassetti M. Bloodstream infections in critically ill patients: an expert statement. Intensive Care Med. 2020;46(2):266–84.CrossRefPubMedPubMedCentral
2.
go back to reference Adrie C, Garrouste-Orgeas M, Ibn Essaied W, Schwebel C, Darmon M, Mourvillier B, et al. Attributable mortality of ICU-acquired bloodstream infections: Impact of the source, causative micro-organism, resistance profile and antimicrobial therapy. J Infect. 2017;74(2):131–41.CrossRefPubMed Adrie C, Garrouste-Orgeas M, Ibn Essaied W, Schwebel C, Darmon M, Mourvillier B, et al. Attributable mortality of ICU-acquired bloodstream infections: Impact of the source, causative micro-organism, resistance profile and antimicrobial therapy. J Infect. 2017;74(2):131–41.CrossRefPubMed
3.
go back to reference Zahar JR, Timsit JF, Garrouste-Orgeas M, Francais A, Vesin A, Descorps-Declere A, et al. Outcomes in severe sepsis and patients with septic shock: pathogen species and infection sites are not associated with mortality. Crit Care Med. 2011;39(8):1886–95.CrossRefPubMed Zahar JR, Timsit JF, Garrouste-Orgeas M, Francais A, Vesin A, Descorps-Declere A, et al. Outcomes in severe sepsis and patients with septic shock: pathogen species and infection sites are not associated with mortality. Crit Care Med. 2011;39(8):1886–95.CrossRefPubMed
4.
go back to reference Pouwels KB, Vansteelandt S, Batra R, Edgeworth JD, Smieszek T, Robotham JV. Intensive care unit (ICU)-acquired bacteraemia and ICU mortality and discharge: addressing time-varying confounding using appropriate methodology. J Hosp Infect. 2018;99(1):42–7.CrossRefPubMed Pouwels KB, Vansteelandt S, Batra R, Edgeworth JD, Smieszek T, Robotham JV. Intensive care unit (ICU)-acquired bacteraemia and ICU mortality and discharge: addressing time-varying confounding using appropriate methodology. J Hosp Infect. 2018;99(1):42–7.CrossRefPubMed
5.
go back to reference Kumar A, Ellis P, Arabi Y, Roberts D, Light B, Parrillo JE, et al. Initiation of inappropriate antimicrobial therapy results in a fivefold reduction of survival in human septic shock. Chest. 2009;136(5):1237–48.CrossRefPubMed Kumar A, Ellis P, Arabi Y, Roberts D, Light B, Parrillo JE, et al. Initiation of inappropriate antimicrobial therapy results in a fivefold reduction of survival in human septic shock. Chest. 2009;136(5):1237–48.CrossRefPubMed
6.
go back to reference Abe R, Oda S, Sadahiro T, Nakamura M, Hirayama Y, Tateishi Y, et al. Gram-negative bacteremia induces greater magnitude of inflammatory response than Gram-positive bacteremia. Crit Care. 2010;14(2):R27.CrossRefPubMedCentral Abe R, Oda S, Sadahiro T, Nakamura M, Hirayama Y, Tateishi Y, et al. Gram-negative bacteremia induces greater magnitude of inflammatory response than Gram-positive bacteremia. Crit Care. 2010;14(2):R27.CrossRefPubMedCentral
7.
go back to reference Bilgili B, Haliloglu M, Aslan MS, Sayan I, Kasapoglu US, Cinel I. Diagnostic accuracy of procalcitonin for differentiating bacteraemic gram-negative sepsis from gram-positive sepsis. Turk J Anaesthesiol Reanim. 2018;46(1):38–43.PubMedPubMedCentral Bilgili B, Haliloglu M, Aslan MS, Sayan I, Kasapoglu US, Cinel I. Diagnostic accuracy of procalcitonin for differentiating bacteraemic gram-negative sepsis from gram-positive sepsis. Turk J Anaesthesiol Reanim. 2018;46(1):38–43.PubMedPubMedCentral
8.
go back to reference Liu HH, Zhang MW, Guo JB, Li J, Su L. Procalcitonin and C-reactive protein in early diagnosis of sepsis caused by either gram-negative or gram-positive bacteria. Ir J Med Sci. 2017;186(1):207–12.CrossRefPubMed Liu HH, Zhang MW, Guo JB, Li J, Su L. Procalcitonin and C-reactive protein in early diagnosis of sepsis caused by either gram-negative or gram-positive bacteria. Ir J Med Sci. 2017;186(1):207–12.CrossRefPubMed
9.
go back to reference Xu XJ, Tang YM, Liao C, Song H, Yang SL, Xu WQ, et al. Inflammatory cytokine measurement quickly discriminates gram-negative from gram-positive bacteremia in pediatric hematology/oncology patients with septic shock. Intensive Care Med. 2013;39(2):319–26.CrossRef Xu XJ, Tang YM, Liao C, Song H, Yang SL, Xu WQ, et al. Inflammatory cytokine measurement quickly discriminates gram-negative from gram-positive bacteremia in pediatric hematology/oncology patients with septic shock. Intensive Care Med. 2013;39(2):319–26.CrossRef
12.
go back to reference Lynch CJ, Liston C. New machine-learning technologies for computer-aided diagnosis. Nat Med. 2018;24(9):1304–5.CrossRefPubMed Lynch CJ, Liston C. New machine-learning technologies for computer-aided diagnosis. Nat Med. 2018;24(9):1304–5.CrossRefPubMed
13.
go back to reference Beeler C, Dbeibo L, Kelley K, Thatcher L, Webb D, Bah A, et al. Assessing patient risk of central line-associated bacteremia via machine learning. Am J Infect Control. 2018;46(9):986–91.CrossRefPubMed Beeler C, Dbeibo L, Kelley K, Thatcher L, Webb D, Bah A, et al. Assessing patient risk of central line-associated bacteremia via machine learning. Am J Infect Control. 2018;46(9):986–91.CrossRefPubMed
14.
go back to reference Mahmoud E, Al Dhoayan M, Bosaeed M, Al Johani S, Arabi YM. Developing machine-learning prediction algorithm for bacteremia in admitted patients. Infection and drug resistance. 2021;14:757–65.CrossRefPubMedPubMedCentral Mahmoud E, Al Dhoayan M, Bosaeed M, Al Johani S, Arabi YM. Developing machine-learning prediction algorithm for bacteremia in admitted patients. Infection and drug resistance. 2021;14:757–65.CrossRefPubMedPubMedCentral
15.
go back to reference Tsai CM, Lin CR, Zhang H, Chiu IM, Cheng CY, Yu HR, et al. Using machine learning to predict bacteremia in febrile children presented to the Emergency Department. Diagnostics (Basel, Switzerland). 2020;10(5):307.PubMed Tsai CM, Lin CR, Zhang H, Chiu IM, Cheng CY, Yu HR, et al. Using machine learning to predict bacteremia in febrile children presented to the Emergency Department. Diagnostics (Basel, Switzerland). 2020;10(5):307.PubMed
16.
go back to reference Bhavani SV, Lonjers Z, Carey KA, Afshar M, Gilbert ER, Shah NS, et al. The development and validation of a machine learning model to predict bacteremia and fungemia in hospitalized patients using electronic health record data. Crit Care Med. 2020;48(11):e1020–8.CrossRefPubMedPubMedCentral Bhavani SV, Lonjers Z, Carey KA, Afshar M, Gilbert ER, Shah NS, et al. The development and validation of a machine learning model to predict bacteremia and fungemia in hospitalized patients using electronic health record data. Crit Care Med. 2020;48(11):e1020–8.CrossRefPubMedPubMedCentral
17.
go back to reference Johnson AEW, Pollard TJ, Shen L, Lehman L-wH, Feng M, Ghassemi M, et al. MIMIC-III, a freely accessible critical care database. Scientific Data. 2016;3(1):160035.CrossRefPubMedPubMedCentral Johnson AEW, Pollard TJ, Shen L, Lehman L-wH, Feng M, Ghassemi M, et al. MIMIC-III, a freely accessible critical care database. Scientific Data. 2016;3(1):160035.CrossRefPubMedPubMedCentral
19.
go back to reference Goldberger AL, Amaral LA, Glass L, Hausdorff JM, Ivanov PC, Mark RG, et al. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation. 2000;101(23):E215–20.CrossRefPubMed Goldberger AL, Amaral LA, Glass L, Hausdorff JM, Ivanov PC, Mark RG, et al. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation. 2000;101(23):E215–20.CrossRefPubMed
21.
go back to reference Weinstein MP, Towns ML, Quartey SM, Mirrett S, Reimer LG, Parmigiani G, et al. The clinical significance of positive blood cultures in the 1990s: a prospective comprehensive evaluation of the microbiology, epidemiology, and outcome of bacteremia and fungemia in adults. Clin Infect Dis. 1997;24(4):584–602.CrossRefPubMed Weinstein MP, Towns ML, Quartey SM, Mirrett S, Reimer LG, Parmigiani G, et al. The clinical significance of positive blood cultures in the 1990s: a prospective comprehensive evaluation of the microbiology, epidemiology, and outcome of bacteremia and fungemia in adults. Clin Infect Dis. 1997;24(4):584–602.CrossRefPubMed
22.
go back to reference Muehlematter UJ, Mannil M, Becker AS, Vokinger KN, Finkenstaedt T, Osterhoff G, et al. Vertebral body insufficiency fractures: detection of vertebrae at risk on standard CT images using texture analysis and machine learning. Eur Radiol. 2019;29(5):2207–17.CrossRefPubMed Muehlematter UJ, Mannil M, Becker AS, Vokinger KN, Finkenstaedt T, Osterhoff G, et al. Vertebral body insufficiency fractures: detection of vertebrae at risk on standard CT images using texture analysis and machine learning. Eur Radiol. 2019;29(5):2207–17.CrossRefPubMed
24.
go back to reference Cornaglia G. Fighting infections due to multidrug-resistant gram-positive pathogens. Clin Microbiol Infect. 2009;15(3):209–11.CrossRefPubMed Cornaglia G. Fighting infections due to multidrug-resistant gram-positive pathogens. Clin Microbiol Infect. 2009;15(3):209–11.CrossRefPubMed
25.
go back to reference Asokan GV, Ramadhan T, Ahmed E, Sanad H. WHO global priority pathogens list: a bibliometric analysis of Medline-Pubmed for knowledge mobilization to infection prevention and control practices in Bahrain. Oman Med J. 2019;34(3):184–93.CrossRefPubMedPubMedCentral Asokan GV, Ramadhan T, Ahmed E, Sanad H. WHO global priority pathogens list: a bibliometric analysis of Medline-Pubmed for knowledge mobilization to infection prevention and control practices in Bahrain. Oman Med J. 2019;34(3):184–93.CrossRefPubMedPubMedCentral
26.
go back to reference Cerceo E, Deitelzweig SB, Sherman BM, Amin AN. Multidrug-resistant gram-negative bacterial infections in the hospital setting: overview, implications for clinical practice, and emerging treatment options. Microb Drug Resist. 2016;22(5):412–31.CrossRefPubMed Cerceo E, Deitelzweig SB, Sherman BM, Amin AN. Multidrug-resistant gram-negative bacterial infections in the hospital setting: overview, implications for clinical practice, and emerging treatment options. Microb Drug Resist. 2016;22(5):412–31.CrossRefPubMed
27.
go back to reference Garnacho-Montero J, Garcia-Garmendia JL, Barrero-Almodovar A, Jimenez-Jimenez FJ, Perez-Paredes C, Ortiz-Leyba C. Impact of adequate empirical antibiotic therapy on the outcome of patients admitted to the intensive care unit with sepsis. Crit Care Med. 2003;31(12):2742–51.CrossRefPubMed Garnacho-Montero J, Garcia-Garmendia JL, Barrero-Almodovar A, Jimenez-Jimenez FJ, Perez-Paredes C, Ortiz-Leyba C. Impact of adequate empirical antibiotic therapy on the outcome of patients admitted to the intensive care unit with sepsis. Crit Care Med. 2003;31(12):2742–51.CrossRefPubMed
28.
go back to reference Chase M, Klasco RS, Joyce NR, Donnino MW, Wolfe RE, Shapiro NI. Predictors of bacteremia in emergency department patients with suspected infection. Am J Emerg Med. 2012;30(9):1691–7.CrossRefPubMed Chase M, Klasco RS, Joyce NR, Donnino MW, Wolfe RE, Shapiro NI. Predictors of bacteremia in emergency department patients with suspected infection. Am J Emerg Med. 2012;30(9):1691–7.CrossRefPubMed
29.
go back to reference Brodská H, Malíčková K, Adámková V, Benáková H, Šťastná MM, Zima T. Significantly higher procalcitonin levels could differentiate gram-negative sepsis from gram-positive and fungal sepsis. Clin Exp Med. 2013;13(3):165–70.CrossRefPubMed Brodská H, Malíčková K, Adámková V, Benáková H, Šťastná MM, Zima T. Significantly higher procalcitonin levels could differentiate gram-negative sepsis from gram-positive and fungal sepsis. Clin Exp Med. 2013;13(3):165–70.CrossRefPubMed
30.
go back to reference Ratzinger F, Dedeyan M, Rammerstorfer M, Perkmann T, Burgmann H, Makristathis A, et al. Neither single nor a combination of routine laboratory parameters can discriminate between gram-positive and gram-negative bacteremia. Sci Rep. 2015;5:16008.CrossRefPubMedPubMedCentral Ratzinger F, Dedeyan M, Rammerstorfer M, Perkmann T, Burgmann H, Makristathis A, et al. Neither single nor a combination of routine laboratory parameters can discriminate between gram-positive and gram-negative bacteremia. Sci Rep. 2015;5:16008.CrossRefPubMedPubMedCentral
31.
go back to reference Vandijck DM, Hoste EA, Blot SI, Depuydt PO, Peleman RA, Decruyenaere JM. Dynamics of C-reactive protein and white blood cell count in critically ill patients with nosocomial gram positive vs. gram negative bacteremia: a historical cohort study. BMC Infect Dis. 2007;7:106.CrossRefPubMedCentral Vandijck DM, Hoste EA, Blot SI, Depuydt PO, Peleman RA, Decruyenaere JM. Dynamics of C-reactive protein and white blood cell count in critically ill patients with nosocomial gram positive vs. gram negative bacteremia: a historical cohort study. BMC Infect Dis. 2007;7:106.CrossRefPubMedCentral
32.
go back to reference Hoerr V, Zbytnuik L, Leger C, Tam PP, Kubes P, Vogel HJ. Gram-negative and Gram-positive bacterial infections give rise to a different metabolic response in a mouse model. J Proteome Res. 2012;11(6):3231–45.CrossRefPubMedPubMedCentral Hoerr V, Zbytnuik L, Leger C, Tam PP, Kubes P, Vogel HJ. Gram-negative and Gram-positive bacterial infections give rise to a different metabolic response in a mouse model. J Proteome Res. 2012;11(6):3231–45.CrossRefPubMedPubMedCentral
33.
go back to reference Karlsson H, Larsson P, Wold AE, Rudin A. Pattern of cytokine responses to gram-positive and gram-negative commensal bacteria is profoundly changed when monocytes differentiate into dendritic cells. Infect Immun. 2004;72(5):2671–8.CrossRefPubMedPubMedCentral Karlsson H, Larsson P, Wold AE, Rudin A. Pattern of cytokine responses to gram-positive and gram-negative commensal bacteria is profoundly changed when monocytes differentiate into dendritic cells. Infect Immun. 2004;72(5):2671–8.CrossRefPubMedPubMedCentral
34.
go back to reference Sarmiento EU, Espiritu BR, Gleich GJ, Thomas LL. IL-3, IL-5, and granulocyte-macrophage colony-stimulating factor potentiate basophil mediator release stimulated by eosinophil granule major basic protein. J Immunol. 1995;155(4):2211–21.CrossRefPubMed Sarmiento EU, Espiritu BR, Gleich GJ, Thomas LL. IL-3, IL-5, and granulocyte-macrophage colony-stimulating factor potentiate basophil mediator release stimulated by eosinophil granule major basic protein. J Immunol. 1995;155(4):2211–21.CrossRefPubMed
35.
go back to reference Michaeli B, Martinez A, Revelly JP, Cayeux MC, Chiolero RL, Tappy L, et al. Effects of endotoxin on lactate metabolism in humans. Crit Care. 2012;16(4):R139.CrossRefPubMedPubMedCentral Michaeli B, Martinez A, Revelly JP, Cayeux MC, Chiolero RL, Tappy L, et al. Effects of endotoxin on lactate metabolism in humans. Crit Care. 2012;16(4):R139.CrossRefPubMedPubMedCentral
36.
go back to reference Khatib-Massalha E, Bhattacharya S, Massalha H, Biram A, Golan K, Kollet O, et al. Lactate released by inflammatory bone marrow neutrophils induces their mobilization via endothelial GPR81 signaling. Nat Commun. 2020;11(1):3547.CrossRefPubMedPubMedCentral Khatib-Massalha E, Bhattacharya S, Massalha H, Biram A, Golan K, Kollet O, et al. Lactate released by inflammatory bone marrow neutrophils induces their mobilization via endothelial GPR81 signaling. Nat Commun. 2020;11(1):3547.CrossRefPubMedPubMedCentral
37.
go back to reference Tapia P, Soto D, Bruhn A, Alegria L, Jarufe N, Luengo C, et al. Impairment of exogenous lactate clearance in experimental hyperdynamic septic shock is not related to total liver hypoperfusion. Crit Care. 2015;19:188.CrossRefPubMedPubMedCentral Tapia P, Soto D, Bruhn A, Alegria L, Jarufe N, Luengo C, et al. Impairment of exogenous lactate clearance in experimental hyperdynamic septic shock is not related to total liver hypoperfusion. Crit Care. 2015;19:188.CrossRefPubMedPubMedCentral
38.
go back to reference Jirillo E, Caccavo D, Magrone T, Piccigallo E, Amati L, Lembo A, et al. The role of the liver in the response to LPS: experimental and clinical findings. J Endotoxin Res. 2002;8(5):319–27. Jirillo E, Caccavo D, Magrone T, Piccigallo E, Amati L, Lembo A, et al. The role of the liver in the response to LPS: experimental and clinical findings. J Endotoxin Res. 2002;8(5):319–27.
Metadata
Title
Machine learning model for the prediction of gram-positive and gram-negative bacterial bloodstream infection based on routine laboratory parameters
Authors
Fan Zhang
Hao Wang
Liyu Liu
Teng Su
Bing Ji
Publication date
01-12-2023
Publisher
BioMed Central
Published in
BMC Infectious Diseases / Issue 1/2023
Electronic ISSN: 1471-2334
DOI
https://doi.org/10.1186/s12879-023-08602-4

Other articles of this Issue 1/2023

BMC Infectious Diseases 1/2023 Go to the issue
Live Webinar | 27-06-2024 | 18:00 (CEST)

Keynote webinar | Spotlight on medication adherence

Live: Thursday 27th June 2024, 18:00-19:30 (CEST)

WHO estimates that half of all patients worldwide are non-adherent to their prescribed medication. The consequences of poor adherence can be catastrophic, on both the individual and population level.

Join our expert panel to discover why you need to understand the drivers of non-adherence in your patients, and how you can optimize medication adherence in your clinics to drastically improve patient outcomes.

Prof. Kevin Dolgin
Prof. Florian Limbourg
Prof. Anoop Chauhan
Developed by: Springer Medicine
Obesity Clinical Trial Summary

At a glance: The STEP trials

A round-up of the STEP phase 3 clinical trials evaluating semaglutide for weight loss in people with overweight or obesity.

Developed by: Springer Medicine