ResearchBMC Emergency Medicine · Aug 12, 2026

Development and internal validation of an interpretable machine-learning model for predicting sepsis within 48 hours after admission in emergency-admitted patients with pulmonary infection

Lin S, Zhang S
Emergency MedicineInfectious DiseasePulmonologyAdult
Read the full paper free at PubMed Central ↗

Abstract

Objective To develop and internally validate a machine-learning model using routinely available early clinical variables to predict clinically documented sepsis within 48 h after admission among patients with pulmonary infection in a single-center development-only setting. Methods Adult patients with pulmonary infection admitted through the Department of Emergency Internal Medicine of Ningde Municipal Hospital between December 2021 and December 2025 were retrospectively included. The primary outcome was clinically documented sepsis within 48 h after admission, adjudicated retrospectively using a clinical-record-based Sepsis-3 conceptual framework. Patients were randomly divided into training and validation sets at a 7:3 ratio. Predictors were selected using LASSO regression and bidirectional stepwise logistic regression based on the Akaike information criterion. Six models were developed using the same predictor set: logistic regression, random forest, support vector machine, neural network, gradient boosting machine, and XGBoost. Model performance was assessed using discrimination, calibration, decision curve analysis, bootstrap confidence intervals, DeLong testing, bootstrap 0.632+ optimism correction, threshold sensitivity analyses, class-imbalance sensitivity analyses, and supplementary comparisons with NEWS/NEWS2, MEWS, and SIRS. Model-agnostic SHAP was used to interpret the selected SVM model. Results A total of 425 patients were included, of whom 106 (24.94%) developed clinically documented sepsis within 48 h. The final model included Glasgow Coma Scale score, respiratory rate, systolic blood pressure, procalcitonin, C-reactive protein, and lactate. In the validation set, SVM achieved an AUC of 0.869 (95% CI, 0.805-0.933), with sensitivity of 0.812, specificity of 0.760, PPV of 0.531, NPV of 0.924, and F1 score of 0.642. LR showed similar sensitivity and discrimination, with an AUC of 0.872 (95% CI, 0.808-0.937), sensitivity of 0.812, specificity of 0.771, PPV of 0.542, NPV of 0.925, and F1 score of 0.650. XGBoost achieved the numerically highest AUC of 0.879 (95% CI, 0.819-0.939), but had lower sensitivity of 0.625. Pairwise DeLong testing showed no significant AUC difference between SVM and LR or XGBoost. Model-agnostic SHAP analysis of the SVM model identified lactate, procalcitonin, Glasgow Coma Scale score, respiratory rate, C-reactive protein, and systolic blood pressure as contributors to model output. Conclusions In this single-center development-only study, SVM based on six routinely available early variables showed a sensitivity-favorable profile for identifying patients with pulmonary infection at risk of clinically documented sepsis within 48 h after admission. LR provided a transparent nomogram-based statistical reference, whereas XGBoost showed higher specificity but lower sensitivity. These models may support early risk stratification and focused monitoring in conjunction with standardized early warning scores and clinical judgment, but they cannot be used as stand-alone rule-out tools or deployed clinically without external validation and prospective evaluation.

More on this topic

Sepsis and septic shockAI in medicine

Subject terms

Humans; Male; Sepsis; Retrospective Studies; Female; Middle Aged; Predictive Learning Models; Machine Learning; Aged; Emergency Service, Hospital; Lung Diseases; Logistic Models

DOI: 10.1186/s12873-026-01725-2 · PubMed: 43004202

Cite this article

Lin S, Zhang S. Development and internal validation of an interpretable machine-learning model for predicting sepsis within 48 hours after admission in emergency-admitted patients with pulmonary infection. BMC Emerg Med. 2026;26(1). doi:10.1186/s12873-026-01725-2

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

Top Emergency Medicine studies every Monday

The week’s key trials and guidelines, free to read, in one short email. No account; unsubscribe in one click.

Choose specialties and topics

Similar articles

Research · J Am Med Inform Assoc · Jul 15, 2026 · Digital Health & AI, Pulmonology

Translating machine learning predictions into meaningful risk estimates to support clinical decisions: a post hoc analysis of chronic obstructive pulmonary disease adverse outcomes using unified auto clinical scores

Research · Arthritis Res Ther · Mar 5, 2026 · Rheumatology, Pulmonology

An interpretable machine learning model integrating clinical and CT radiomic features for the detection of interstitial lung disease in idiopathic inflammatory myopathies

Research · Respir Res · Nov 26, 2025 · Pulmonology, Rheumatology

Rheumatoid arthritis-associated interstitial lung disease: clinical predictive model and external validation

Research · Respir Res · Mar 19, 2026 · Pulmonology, Digital Health & AI

Development and internal validation of a machine learning-based model for predicting 2-year mortality in interstitial lung disease

Meta-analysis · J Med Internet Res · Sep 17, 2026 · Digital Health & AI, Infectious Disease

Artificial intelligence models show varying performance for predicting sepsis in hospitalized adults