Machine learning models based on laboratory data: new insight into the differential diagnosis of tuberculous and viral meningitis
Frontiers in Cellular and Infection Microbiology · 2026-04-15 · 16
DOI: 10.3389/fcimb.2026.1791663 ↗At a glance
Journal article in Frontiers in Cellular and Infection Microbiology, published online on 2026-04-15. Written by Xiaoyan Hao and 9 co-authors. Institution: Department of Clinical Laboratory Medicine, Xijing Hospital, Fourth Military Medical University, Xi'an, China. Major MEDLINE topics: Tuberculosis, Meningeal, Meningitis, Viral, Machine Learning. Cited 1 times so far (Crossref); 32 references. The full text is freely available (open access, CC BY 4.0).
Abstract (original language)
Background
The differential diagnosis of tuberculous meningitis (TBM) and viral meningitis (VM) remains a formidable clinical challenge. This study aims to develop machine learning (ML) models and a nomogram for differentiating between TBM and VM.
Methods
Clinical and laboratory data were collected from 558 participants, including 190 TBM patients and 368 VM patients, treated between 2000 and 2024 at Xijing Hospital. Resampling techniques were employed to balance the dataset. Four feature selection methods (RFECV-ADA, Boruta, Spearman, MI) were utilized to identify potential indicators. Two supervised ML algorithms were implemented for model development. Model performance was evaluated with the area under the curve, as well as sensitivity (SEN), specificity, accuracy, positive predictive value, and negative predictive value. The influence of each feature was visualized with SHapley Additive exPlanations (SHAP) diagrams. Finally, a nomogram was created from the selected features.
Results
Ten features were identified, including the mean corpuscular volume, hemoglobin, D-Dimer level, cerebrospinal fluid (CSF) glucose, protein, immunoglobulin G, A, M, chloride, and albumin levels. The ENN-XgBoost_V10 model demonstrated the highest SEN of 75.79%, in differentiating TBM from VM and a SEN of 81.45% in patients with at least five leucocytes per μL of CSF and a CSF-to-blood glucose ratio less than 0.5. According to SHAP analysis, the significance of these features in prediction was underscored. Calibration curve analysis indicated that the nomogram predictions were relatively similar to the actual outcomes.
Conclusions
Based on ten routine laboratory tests, the ENN-XgBoost_V10 model differentiates TBM from VM with superior SEN to traditional methods.
Subjects
MeSH terms (MEDLINE)
Author keywords
Authors and institutions
- Department of Clinical Laboratory Medicine, Xijing Hospital, Fourth Military Medical University, Xi'an, China.
- Department of Neurosurgery, Xijing Hospital, Fourth Military Medical University, Xi'an, China.
Cite
APA
Hao, X., Hu, Y., Zhou, L., Wang, F., Liu, X., Wang, J., Chen, J., Ji, A., Bai, C., & Liu, J. (2026). Machine learning models based on laboratory data: new insight into the differential diagnosis of tuberculous and viral meningitis. Frontiers in Cellular and Infection Microbiology, 16. https://doi.org/10.3389/fcimb.2026.1791663
Vancouver
Hao X, Hu Y, Zhou L, Wang F, Liu X, Wang J, et al. Machine learning models based on laboratory data: new insight into the differential diagnosis of tuberculous and viral meningitis. Frontiers in Cellular and Infection Microbiology. 2026;16. doi:10.3389/fcimb.2026.1791663
BibTeX
@article{Hao2026,
author = {Hao, Xiaoyan and Hu, Yujiao and Zhou, Lei and Wang, Fengjuan and Liu, Xinran and Wang, Jing and Chen, Jiankang and Ji, Ang and Bai, Congxia and Liu, Jiayun},
title = {Machine learning models based on laboratory data: new insight into the differential diagnosis of tuberculous and viral meningitis},
journal = {Frontiers in Cellular and Infection Microbiology},
year = {2026},
volume = {16},
doi = {10.3389/fcimb.2026.1791663}
}
EUVIMED