DeepTemporal-Sepsis: A Calibrated Transformer Framework for Early ICU Sepsis Prediction with Grad-CAM Temporal Phenotyping

Sepsis is responsible for approximately 270,000 deaths annually in the United States. Conventional scoring systems, such as SOFA and qSOFA, are largely reactive and do not effectively leverage longitudinal ICU data for early prediction. This study aims to develop a deep learning framework capable of predicting sepsis onset up to 6 h before Sepsis-3 criteria are met while also providing clinically interpretable temporal explanations. The PhysioNet/CinC 2019 Challenge dataset, comprising 1,552,210 patient hours from 40,336 ICU patients, was utilized. A temporal transformer encoder (TTE) was trained using 12-h look-back windows with 92 engineered features. Severe class imbalance (2.6% positive rate) was addressed through weighted random sampling and focal loss. Fivefold patient-level cross-validation was employed to prevent temporal leakage. Platt scaling was applied for probability calibration. Grad-CAM was adapted for temporal explainability, while SHAP was used for feature-level attribution. BiLSTM-Attention and XGBoost models served as baseline comparators. The TTE model achieved a cross-validated AUROC of 0.8320±0.0032 and an AUPRC of 0.1505±0.0148, significantly outperforming BiLSTM-Attention (AUROC: 0.7859) and XGBoost (AUROC: 0.7731; DeLong p<0.0001). Platt scaling reduced the expected calibration error from 0.3154 to 0.0017. The median alert lead time was 46.5 h (IQR: 21–84 h), with 95.3% of septic patients receiving alerts at least 3 h before onset. Grad-CAM analysis identified time steps t−10 and t−9 as the most predictive. However, high-severity patients (SOFA proxy ≥ 3) demonstrated substantially reduced performance (AUROC: 0.257). The proposed TTE framework demonstrated strong and well-calibrated early sepsis prediction with substantial clinical lead time. The concentration of predictive signals 10–11 h prior to alert generation supports the feasibility of continuous automated ICU monitoring from admission onward. Reduced performance in high-severity patients highlights the need for severity-stratified modelling in future research.

Authors

Institutions

Publication Details

Journal
BioMedInformatics
Published
2026-06-30
DOI
https://doi.org/10.3390/biomedinformatics6040040
Primary Topic
Sepsis Diagnosis and Treatment
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

DeepTemporal-Sepsis: A Calibrated Transformer Framework for Early ICU Sepsis Prediction with Grad-CAM Temporal Phenotyping

Shamim Akhtar, Md. Rakibul Hasan, Md Shahnawaj, Hamim Islam Hellol et al.
BioMedInformatics
Sepsis Diagnosis and Treatment
article

DeepTemporal-Sepsis: A Calibrated Transformer Framework for Early ICU Sepsis Prediction with Grad-CAM Temporal Phenotyping

Shamim Akhtar, Md. Rakibul Hasan, Md Shahnawaj, Hamim Islam Hellol, Novera Mahjabin Hossain, Roise Uddin, Sumaia Benta Arif
article en

Abstract

Sepsis is responsible for approximately 270,000 deaths annually in the United States. Conventional scoring systems, such as SOFA and qSOFA, are largely reactive and do not effectively leverage longitudinal ICU data for early prediction. This study aims to develop a deep learning framework capable of predicting sepsis onset up to 6 h before Sepsis-3 criteria are met while also providing clinically interpretable temporal explanations. The PhysioNet/CinC 2019 Challenge dataset, comprising 1,552,210 patient hours from 40,336 ICU patients, was utilized. A temporal transformer encoder (TTE) was trained using 12-h look-back windows with 92 engineered features. Severe class imbalance (2.6% positive rate) was addressed through weighted random sampling and focal loss. Fivefold patient-level cross-validation was employed to prevent temporal leakage. Platt scaling was applied for probability calibration. Grad-CAM was adapted for temporal explainability, while SHAP was used for feature-level attribution. BiLSTM-Attention and XGBoost models served as baseline comparators. The TTE model achieved a cross-validated AUROC of 0.8320±0.0032 and an AUPRC of 0.1505±0.0148, significantly outperforming BiLSTM-Attention (AUROC: 0.7859) and XGBoost (AUROC: 0.7731; DeLong p<0.0001). Platt scaling reduced the expected calibration error from 0.3154 to 0.0017. The median alert lead time was 46.5 h (IQR: 21–84 h), with 95.3% of septic patients receiving alerts at least 3 h before onset. Grad-CAM analysis identified time steps t−10 and t−9 as the most predictive. However, high-severity patients (SOFA proxy ≥ 3) demonstrated substantially reduced performance (AUROC: 0.257). The proposed TTE framework demonstrated strong and well-calibrated early sepsis prediction with substantial clinical lead time. The concentration of predictive signals 10–11 h prior to alert generation supports the feasibility of continuous automated ICU monitoring from admission onward. Reduced performance in high-severity patients highlights the need for severity-stratified modelling in future research.

BioMedInformaticsVol. 6(4)
American Systems (United States) (US), Pacific States University (US)
Openalex Percentile: Top 8%
Sepsis Diagnosis and Treatment
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.