TY - JOUR
T1 - Machine learning models for predicting cerebrospinal fluid bacterial culture outcomes in post-neurosurgical meningitis-development and temporal three-year validation
AU - Zheng, Guanghui
AU - Zhao, Shanbo
AU - Mi, Donghua
AU - Hou, Haotian
AU - Shi, Yijun
AU - Sun, Jialu
AU - Peng, Cheng
AU - Zhang, Zixuan
AU - Ye, Chuyang
AU - Zhang, Meihui
AU - Zhang, Guojun
N1 - Publisher Copyright:
© The Author(s), under exclusive licence to Springer-Verlag GmbH Germany, part of Springer Nature 2026.
PY - 2026/12
Y1 - 2026/12
N2 - Post-neurosurgical bacterial meningitis (PNBM) is a serious complication associated with substantial morbidity and mortality. Bacterial culture presently serves as the gold standard for diagnosis, however, clinical reliance on third-tier reports to address empirical antibiotic concerns, with a turnaround time of 3–5 days, can lead to imprecise antibiotic administration in patients. Therefore, we develop and validate a branch of machine learning method to predict the result of cerebrospinal fluid (CSF) culture, which can shorten the time for precise diagnosis to within 2 h. A cohort study was conducted in nonmaternity inpatient units at Beijing Tiantan Hospital & Capital Medical University during Jan 2016 to Dec 2020. Six machine learning models including 4 decision tree models(Random Forest, Catboost, LightGBM, and XGboost), Support Vector Classification(SVC) and Multi-Layer Perceptron(MLP) were applied for two models construction by utilizing tenfold cross-validation.The performances of these models were assessed in terms of discrimination, calibration, and clinical application in another 3 years cohort. In this study, the derivation cohort included 4014 patients, of whom 995 had positive CSF cultures, including 431 Gram-negative and 564 Gram-positive cultures, and 3019 had negative cultures. The temporal validation cohort included 1059 patients. LightGBM achieved the highest the area under the receiver operating characteristic curve (AUC) for Model 1 and Model 2, at 0.898 and 0.875, respectively. SHapley Additive exPlanations (SHAP) analysis identified CSF leukocyte(C-Leu) count as the leading predictor of culture positivity and Gram-negative cultures, whereas platelet count was the principal contributor to Gram-positive culture classification. Machine learning, specifically leveraging LightGBM modeling showed good discrimination in predicting CSF bacterial culture outcomes after neurosurgery. The model may support early risk stratification while culture results are pending.
AB - Post-neurosurgical bacterial meningitis (PNBM) is a serious complication associated with substantial morbidity and mortality. Bacterial culture presently serves as the gold standard for diagnosis, however, clinical reliance on third-tier reports to address empirical antibiotic concerns, with a turnaround time of 3–5 days, can lead to imprecise antibiotic administration in patients. Therefore, we develop and validate a branch of machine learning method to predict the result of cerebrospinal fluid (CSF) culture, which can shorten the time for precise diagnosis to within 2 h. A cohort study was conducted in nonmaternity inpatient units at Beijing Tiantan Hospital & Capital Medical University during Jan 2016 to Dec 2020. Six machine learning models including 4 decision tree models(Random Forest, Catboost, LightGBM, and XGboost), Support Vector Classification(SVC) and Multi-Layer Perceptron(MLP) were applied for two models construction by utilizing tenfold cross-validation.The performances of these models were assessed in terms of discrimination, calibration, and clinical application in another 3 years cohort. In this study, the derivation cohort included 4014 patients, of whom 995 had positive CSF cultures, including 431 Gram-negative and 564 Gram-positive cultures, and 3019 had negative cultures. The temporal validation cohort included 1059 patients. LightGBM achieved the highest the area under the receiver operating characteristic curve (AUC) for Model 1 and Model 2, at 0.898 and 0.875, respectively. SHapley Additive exPlanations (SHAP) analysis identified CSF leukocyte(C-Leu) count as the leading predictor of culture positivity and Gram-negative cultures, whereas platelet count was the principal contributor to Gram-positive culture classification. Machine learning, specifically leveraging LightGBM modeling showed good discrimination in predicting CSF bacterial culture outcomes after neurosurgery. The model may support early risk stratification while culture results are pending.
KW - CSF
KW - LightGBM
KW - Machine learning
KW - Post-neurosurgical bacterial meningitis
UR - https://www.scopus.com/pages/publications/105051774610
U2 - 10.1007/s00203-026-05196-8
DO - 10.1007/s00203-026-05196-8
M3 - Article
C2 - 42799883
AN - SCOPUS:105051774610
SN - 0302-8933
VL - 208
JO - Archives of Microbiology
JF - Archives of Microbiology
IS - 12
M1 - 661
ER -