Previously submitted to: JMIR Medical Informatics (no longer under consideration since Sep 29, 2026)
Date Submitted: Sep 28, 2026
Open Peer Review Period: Sep 29, 2026 - Sep 29, 2026
(closed for review but you can still tweet)
NOTE: This is an unreviewed Preprint
Warning: This is a unreviewed preprint (What is a preprint?). Readers are warned that the document has not been peer-reviewed by expert/patient reviewers or an academic editor, may contain misleading claims, and is likely to undergo changes before final publication, if accepted, or may have been rejected/withdrawn (a note "no longer under consideration" will appear above).
Peer review me: Readers with interest and expertise are encouraged to sign up as peer-reviewer, if the paper is within an open peer-review period (in this case, a "Peer Review Me" button to sign up as reviewer is displayed above). All preprints currently open for review are listed here. Outside of the formal open peer-review period we encourage you to tweet about the preprint.
Citation: Please cite this preprint only for review purposes or for grant applications and CVs (if you are the author).
Final version: If our system detects a final peer-reviewed "version of record" (VoR) published in any journal, a link to that VoR will appear below. Readers are then encourage to cite the VoR instead of this preprint.
Settings: If you are the author, you can login and change the preprint display settings, but the preprint URL/DOI is supposed to be stable and citable, so it should not be removed once posted.
Submit: To post your own preprint, simply submit to any JMIR journal, and choose the appropriate settings to expose your submitted version as preprint.
Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.
Interpretable Machine Learning Framework for Early Sepsis Detection in Intensive Care Units Using SHAP and LIME: A Comparative Model Development and Explainability Study
ABSTRACT
Background:
Sepsis is a life-threatening organ dysfunction caused by a dysregulated host response to infection and remains one of the leading causes of mortality in intensive care units (ICUs) worldwide. Although high-performance “black-box” machine learning (ML) models have shown promise for early sepsis detection, their lack of transparency limits clinician trust and adoption in real-world clinical decision support.
Objective:
This study aimed to develop and comparatively evaluate ML models for early sepsis prediction using ICU time-series data and to integrate explainable artificial intelligence (XAI) techniques—Shapley additive explanations (SHAP) and local interpretable model-agnostic explanations (LIME)—to provide transparent, clinically meaningful, and patient-level explanations of model predictions.
Methods:
We used the PhysioNet Challenge 2019 sepsis dataset, comprising hourly ICU patient records (546,123 records; 44 features), including vital signs, laboratory measurements, and demographic information. After preprocessing (removal of highly missing features, median imputation, and feature selection), 16 clinically relevant features were retained. Data were split into training (80%, n=436,898) and testing (20%, n=109,225) sets using stratified sampling. Four ML models—logistic regression, random forest, XGBoost, and LightGBM—were trained and compared using accuracy, precision, recall, F1-score, ROC-AUC, and PR-AUC. The final model was selected using a predefined emphasis on sensitivity (recall) for early-warning purposes. Multiple classification thresholds (0.50–0.90) were evaluated to examine the precision–recall trade-off. Global and local model interpretability were assessed using SHAP (summary and waterfall plots) and LIME, and their explanation consistency was compared at both the individual patient and overall feature levels.
Results:
LightGBM achieved the highest recall (63.80%) among the evaluated models at the default threshold (0.50), with an accuracy of 83.56%, precision of 8.12%, F1-score of 14.41%, ROC-AUC of 82.68%, and PR-AUC of 13.39%, and was therefore selected as the final model because the predefined model-selection criterion emphasized recall for the early-warning objective. Threshold analysis showed a clear precision–recall trade-off: increasing the threshold to 0.85 improved precision from 8.12% to 18.26% but reduced recall from 63.80% to 28.69%, yielding the highest F1-score (22.31%) among the thresholds tested. SHAP analysis identified ICU length of stay (ICULOS), heart rate, respiratory rate, age, and temperature as the most influential predictors of sepsis risk. Patient-level comparison between SHAP and LIME showed consistent identification of key contributing features (e.g., heart rate, respiratory rate, ICULOS, and gender) for individual predictions, with an overall SHAP–LIME feature-agreement ranking led by ICULOS, heart rate, and respiratory rate.
Conclusions:
We developed an interpretable ML framework for early sepsis detection that combines comparative model evaluation with SHAP- and LIME-based explainability. LightGBM, selected for its higher sensitivity to sepsis cases, together with consistent SHAP and LIME explanations, may support more transparent early-warning model interpretation. Further external validation and clinical evaluation are needed before real-world deployment.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.