Manuscript Offprint
arXiv:2610.08046SepsisLens: Structure-Preserving Sequence Modelling for Decomposable Early Sepsis Warning
Abstract
Early sepsis warning from ICU records can be cast as a structure-preserving prediction problem. A model needs to detect deterioration from irregular measurements while keeping each alert connected to the physiological signals that support it. Many temporal models fuse clinical variables into a patient-level representation, supporting scalar risk prediction but weakening the structure needed for clinical decomposition. We present SepsisLens, which preserves variable-indexed temporal states until risk composition. Observation-aware representations encode each variable's dynamics and measurement history, while a shared temporal encoder models each trajectory without collapsing the variable axis. The StructuredRiskHead composes multi-horizon risk from explicit variable-level and organ-level components. We evaluate SepsisLens on three public ICU cohorts and one private-hospital cohort under a common pre-onset protocol. SepsisLens achieves strong discrimination on all four cohorts and lower alert burden at matched event recall on MIMIC-IV. Structural ablations support the design, while input-side masking shows that the ranked components reflect variables with greater influence on prediction.
Introduction
In the ICU, patients with emerging sepsis can deteriorate before the diagnosis is clear. A useful warning needs to detect this change in time to support intervention while remaining selective enough to limit false alarms. It also needs to show which physiological signals support the warning. A single risk score can raise concern, but the score is difficult to act on when detached from the signals behind it.
ICU electronic records make this warning task difficult. Clinical variables are measured at different frequencies in ICU care. Vital signs may be recorded often, laboratory tests may appear only intermittently, and some measurements may never be ordered. These observation patterns are clinically meaningful. The decision to measure a variable can reflect concern about the patient's condition. Sepsis adds another layer of structure. Organ dysfunction is central to its assessment, and SOFA summarises this dysfunction while retaining an organ-level account (Singer et al. 2016; Vincent et al. 1996). The score is an aggregate value, but it remains linked to the organ systems that contribute to the overall assessment. A model that returns only a scalar risk score can lose this link between prediction and physiological organisation.
Learning-based sepsis predictors have improved several parts of early warning. Recurrent and temporal models learn patient-level risk from ICU trajectories (Futoma, Hariharan, and Heller 2017; Rosnati and Fortuin 2021). Irregular-time models account for uneven measurements and missingness (Che et al. 2018; Shukla and Marlin 2021; Zhang et al. 2022). Attention-based models relate predictions to clinical variables (Choi et al. 2016), while calculator-informed graph models integrate clinical scores into temporal prediction (Yin et al. 2025). These advances leave a structure-preservation problem unresolved. Many temporal predictors fuse clinical variables into a patient-level representation before variable-specific temporal states are formed. We call this design early fusion. Early fusion can support scalar discrimination, but it weakens the variable structure needed for decomposable warning. Once variables have been mixed into a global hidden state, the prediction path no longer retains an explicit variable axis. The model may still rank risk well. The resulting risk, however, is not naturally composed from variable-level and organ-level components. Post-hoc attribution can identify inputs associated with a prediction (Jain and Wallace 2019; Rudin 2019). It does not make the prediction itself a structured composition of clinical components. Much prior work asks how a computed risk score can be explained. We ask how to preserve the clinical structure needed for risk to remain decomposable during prediction.
SepsisLens addresses this gap by preserving variable-indexed temporal states until risk composition. Observation-aware variable representations retain value dynamics, measurement timing, and never-observed status. A shared temporal encoder models each variable trajectory while preserving the variable axis. The StructuredRiskHead computes signed variable-level components, aggregates them into organ-level components, and adds a global residual correction to each horizon-specific risk logit. Organ-dysfunction supervision aligns the organ-level components during training. This design places an explicit clinical component path inside the forward computation and retains a residual path for global correction. Figure 1 summarises this structure-preserving path and contrasts it with early-fusion prediction and post-hoc attribution. We evaluate SepsisLens on three public ICU cohorts and one private-hospital cohort using a common pre-onset protocol. The evaluation examines predictive discrimination, alert burden at matched recall, the contribution of

Figure 1: Motivation for SepsisLens. (a) Irregular ICU observations contain information about variable values, changes, and measurement history. (b) Early fusion collapses variable trajectories into a global representation without explicit variable- or organ-level components. Post-hoc attribution is applied outside the risk computation. (c) SepsisLens preserves variable-indexed temporal states until risk composition, producing multi-horizon risk with explicit variable- and organ-level components.
the structural design, and the functional relationship between the ranked components and prediction.
The main contributions are as follows:
• We formulate ICU sepsis warning as a structure-preserving early-event prediction problem, where variable identity remains available until risk composition and is not removed by early fusion.
• We develop observation-aware variable representations and a variable-preserving temporal encoder that models each clinical variable as an identifiable temporal state until prediction.
• We introduce the StructuredRiskHead, which forms multi-horizon risk from signed variable-level components, organ-level aggregation, and a global residual correction, with organ-dysfunction supervision for component alignment.
• We evaluate SepsisLens on four ICU cohorts under a common pre-onset and validation-selected early-warning protocol. Results show strong discrimination on all cohorts, lower false alarm rates at matched event recall on MIMIC-IV, and functional relevance of structured components via ablations and input-side masking.
Structured clinical prediction. Clinical sepsis assessment is organised around organ dysfunction, as reflected in Sepsis-3 and SOFA (Singer et al. 2016; Vincent et al. 1996). This structure motivates models that retain clinically meaningful components within prediction. Attention-based models can associate predictions with visits or variables (Choi et al. 2016). Post-hoc attribution methods can support inspection (Jain and Wallace 2019; Rudin 2019). Neither makes the risk score itself a structured composition of clinical components. SepsisCalc incorporates clinical calculators into a dynamic temporal graph for early sepsis prediction, allowing clinical scoring information to enter the prediction process (Yin et al. 2025). SepsisLens addresses a different representation problem. It preserves variable-indexed temporal states during sequence encoding. The forward pass forms explicit variable-level and organ-level components before adding a global residual correction.
Operational evaluation for early warning. External validation of a widely used sepsis prediction model reported substantial alert burden at a threshold that still missed many sepsis cases (Wong et al. 2021). Early-warning models need to be evaluated beyond ranking metrics. Models with similar AUROC can produce different alert burdens after thresholding. A model can achieve high event recall by alerting often, while a low false alarm rate may simply reflect missed deterioration. This motivates our use of validation-selected thresholds and threshold-sweep analyses to compare operating profiles without reducing the comparison to a single operating point. We report threshold-independent discrimination alongside event recall, lead time, and false alarm rate.
Problem Formulation
For each patient, we construct an hourly aligned clinical trajectory with up to bins, including up to 24 pre-ICU alignment bins, and clinical variables. Let index timesteps and denote their aligned clinical hours relative to ICU admission, with for pre-ICU bins. The input contains a value matrix and a cumulative observation-history mask , where indicates that variable has been observed at or before timestep . Let denote the prediction horizons in hours. Let denote the sepsis onset hour on the aligned time grid, with for patients who do not develop sepsis. At each timestep before onset, the target for horizon is
where is the indicator function. For non-sepsis patients, makes all horizon targets negative.
The model outputs risk estimates for all horizons using only the observed history up to timestep :
where is the learned prediction function and denote the patient history available at prediction time.
The 6-hour horizon is the primary reporting horizon unless otherwise specified. Onset and post-onset timesteps are excluded from the early-warning loss. During training, time-aligned SOFA-derived organ dysfunction labels provide auxiliary supervision for the organ-level components. These labels are used during training only. At inference, the model receives only the patient trajectory. The task is to learn a history-only prediction function that produces multi-horizon sepsis risk while retaining an explicit variable-level and organ-level component path within the forward computation. The resulting risk estimates are thresholded to produce warnings, which are evaluated using event recall, lead time, and false alarm rate.
SepsisLens
SepsisLens has three stages: observation-aware variable representations, variable-preserving temporal encoding, and structured risk composition. The design keeps variables identifiable until risk composition, so the clinical component path remains inside the forward computation and is not added after prediction. Figure 2 gives an architecture overview.
Observation-Aware Variable Representations
The first stage encodes irregular measurements as variable-specific representations while retaining observation information (Figure 2(a)). For variable v at timestep t, SepsisLens constructs
where is the causally carried-forward normalised value, is the local trend relative to the most recent in-ICU observation, is elapsed time since the most recent in-ICU observation with zero at an observed timestep, and indicates the absence of both a current observation and a prior in-ICU observation. Pre-ICU measurements can still enter through the carried-forward value and cumulative observation-history mask.
A variable encoder combines the observation-aware channels with learned variable identity and organ-domain embeddings:
where denotes a fixed extended assignment that maps both SOFA-defining variables and additional clinically related variables to six domain groups organised around the SOFA organ systems, giving .
Variable-Preserving Temporal Encoding
Many clinical time-series models first mix variables into a patient-level state at each timestep. SepsisLens instead keeps the variable axis explicit. The embedded tensor Z is reshaped into BV separate variable trajectories, processed by a shared temporal encoder, and reshaped back:
where . We implement as two Mamba2 layers with RMSNorm and residual connections (Gu and Dao 2023; Dao and Gu 2024). The same encoder parameters are applied to every variable trajectory, which keeps the model compact. The hidden states are not pooled over the variable dimension, so remains a temporally contextualised state for variable . Information from different variables is combined only during risk composition by organ aggregation and a global residual correction.
Structured Risk Composition
For each horizon , StructuredRiskHead maps the preserved states to a risk logit using a structured component path and a global residual correction path (Figure 2(c)). Let
(b) Variable-preserving
z [B, T, V, d]
reshape
v1
v2
v3
shared
Mamba2 (shared
weights)
params,
independ-
dent
states
reshape
back
H [B, T, V, d]
(d) Variable → Organ mapping
| Respiration | RR, SpO2, ... |
|---|---|
| Coagulation | PLT, PT, ... |
| Liver | Bili, Hgb, ... |
| Cardiovascular | HR, MBP, ... |
| CNS | GCS |
| Renal | Creat, ... |
MAIN PIPELINE
r [B, T, V, 4]
VariableRepresentationEncoder
var emb ⊕ organ emb ⊕ proj
SharedVariableMamba
RMSNorm
Mamba2 layer 1
RMSNorm
Mamba2 layer 2
StructuredRiskHead
risk
logits
organ-level
components
variable-level
components
Training supervision
SOFA labels → organ-level components
Multi-horizon sepsis targets → risk logits
Risk scores + variable-level and organ-level components
(a) Obs-aware representation
value
trend ( )
never_observed
observed
never seen
(c) Risk-component decomposition for horizon h
H [B, T, V, d]
LayerNorm
gate
score
mean_V(H)
organ mapping (d)
Res Coa Liv CV CNS Ren
- residual
risk logit [B, T]
Figure 2: SepsisLens architecture. (a) Observation-aware representations encode value, trend, elapsed time, and never-observed status for each clinical variable. (b) A shared temporal encoder models variable trajectories and preserves variable-indexed states . (c) StructuredRiskHead computes gated variable-level components, aggregates them into organ-level components, and adds a global residual correction. (d) A fixed extended assignment maps all variables to six domain groups organised around the SOFA organ systems.
. The component path produces a signed variable-level score, a gate, and a gated component:
The signed score can increase or decrease the risk logit, while the gate controls contribution strength using the state, cumulative observation-history mask, and elapsed time.
Variable-level components are aggregated within six fixed domain groups organised around the SOFA systems (Vincent et al. 1996):
where . This produces one component for each organ domain. These components are computed inside the forward pass, not by post-hoc attribution.
The residual path forms a global correction from the mean- pooled variable states:
The final risk logit is
where is a scalar scale factor. The sum of the organ-level components forms the structured contribution to the logit, while provides a global residual correction.
Training Objective
The main objective trains multi-horizon sepsis risk over pre-onset timesteps:
where is the set of pre-onset timesteps, is a horizon weight, is the horizon-specific positive-timestep lead-time weight, and is focal binary cross-entropy with
and a positive-class weight (Lin et al. 2017). Positive pre-onset timesteps are additionally weighted to encourage earlier detection.
During training, time-aligned SOFA-derived dysfunction labels supervise the organ-level components. For ICU timesteps, let denote the dysfunction label for organ domain o, computed from measurements available up to t. Synthetic pre-ICU bins use zero-coded auxiliary targets. Using the same pre-onset timestep set as the sepsis-risk loss, the primary-horizon organ loss is
These labels supervise only the organ-level components during training and are never used as model inputs. At inference, SepsisLens receives only the patient trajectory. For an organ domain without label construction, we set the corresponding to zero, so the domain receives only negative auxiliary targets. Such domains are not interpreted as supervised organ-dysfunction estimates.
An sparsity term on primary-horizon variable scores discourages diffuse variable-level scores when . The full objective is
The displayed sums omit normalisation constants. At inference, SepsisLens receives only the patient trajectory and returns multi-horizon risk scores together with variable-level and organ-level components.
Experimental Setup
Datasets
We evaluate SepsisLens on four cohorts that cover different early-warning settings. All cohorts are converted to the same hourly format and use the same 31 clinical variables when available. MIMIC-IV (Johnson et al. 2023) is the primary cohort, with 66,237 ICU admissions split into 53,057 training, 6,602 validation, and 6,578 test admissions. MIMIC-III (Johnson et al. 2016) provides an earlier public ICU cohort, with 46,676 ICU admissions split into 37,327 training, 4,689 validation, and 4,660 test admissions. eICU (Pollard et al. 2018) is a multi-centre benchmark with 22,670 ICU unit stays split into 18,141 training, 2,278 validation, and 2,251 test unit stays, with 20% sepsis prevalence under a 1:4 case-control benchmark design. The private-hospital cohort contains 38,813 ICU admissions with 9.4% sepsis prevalence, split into 27,169 training, 5,821 validation, and 5,823 test admissions. This independent hospital cohort uses site-specific training, validation, and test splits. It has reduced feature availability, with 11 of the 31 variables unavailable after feature harmonisation.
Baselines
We compare SepsisLens with learning-based baselines and fixed-rule clinical scores. The learning-based models are LSTM, GRU, GRU-D (Che et al. 2018), Transformer, Raindrop (Zhang et al. 2022), RETAIN (Choi et al. 2016), and SepsisCalc (Yin et al. 2025). The clinical scores are NEWS, MEWS, qSOFA, and SIRS. For the primary comparison, all learning-based models use the same patient-level splits, input variables, primary 6 h evaluation target, and validation-selected threshold protocol. The baseline models are trained with binary cross-entropy and validation-based early stopping. Clinical scores use the available variables required by each score. All four scores have AUROC < .61 in all cohorts, well below the learning-based models.
Metrics and Threshold Protocol
We report AUROC and AUPRC as threshold-independent discrimination metrics, denoted AUC and APC in the tables. We also report F1 and operational metrics: event recall (eR: the fraction of sepsis stays with at least one pre-onset alert), false alarm rate (FAR: the mean fraction of alerting timesteps among non-sepsis stays), and median lead time (ldT: the time from first pre-onset alert to onset among detected events). Alerts may occur at any pre-onset timestep, allowing ldT to exceed the 6 h label window. For each model and seed, the primary 6 h threshold is selected on the validation set by maximising timestep-level F1, then applied once to the corresponding held-out test predictions. Matched-recall operating points are derived from threshold sweeps; structural ablations use a fixed threshold of 0.5. The masking flip metric uses the validation-selected alert threshold.
All learning-based experiments use three seeds (42, 3407, 2026). Results are mean ± std unless stated otherwise. Normalisation statistics are estimated from the training split only. Timesteps at or after sepsis onset are excluded from training loss, threshold selection, and test evaluation.
Results
The evaluation first reports predictive and operational performance on four cohorts, then examines alert burden, the contribution of the structural design, and the functional relevance of the risk components.
Q1: Primary 6-Hour Early-Warning Results
Table 1 compares SepsisLens with seven baselines under the common pre-onset protocol. SepsisLens achieves the highest AUC, APC, and F1 and the lowest FAR with 91.1K parameters. Although SepsisCalc, GRU-D, and Raindrop reach higher event recall at their validation-selected thresholds, their FARs are 1.8–2.1 times higher. SepsisLens also requires the lowest FAR at matched event recall (Table 3), while median lead time remains comparable among models.
Q2: Does the Design Remain Effective Across Cohorts?
Table 2 evaluates SepsisLens on four ICU cohorts. It maintains strong AUC and APC on all four cohorts. The eICU operating point is conservative, with low FAR and lower event recall. On the private cohort, where eleven variables are unavailable after harmonisation, SepsisLens reaches an AUC of .973 and FAR of .019. MIMIC-III has FAR below .001 before rounding and a median lead time of 6.3 h.
| Method | #P (K) | AUC | APC | F1 |
|---|---|---|---|---|
| SepsisLens | 91.1 | .939±.004 | .474±.019 | .504±.017 |
| SepsisCalc | 225.0 | .910±.001 | .271±.005 | .396±.002 |
| Transformer | 400.8 | .909±.001 | .293±.006 | .407±.003 |
| GRU-D | 222.1 | .905±.002 | .299±.009 | .418±.006 |
| LSTM | 214.7 | .904±.000 | .288±.004 | .409±.002 |
| Raindrop | 235.4 | .904±.002 | .268±.009 | .396±.006 |
| GRU | 161.0 | .899±.002 | .270±.010 | .397±.005 |
| RETAIN | 206.4 | .802±.001 | .214±.006 | .305±.007 |
| Method | eR | FAR | ldT |
|---|---|---|---|
| SepsisLens | .831±.014 | .046±.007 | 5.6±0.1 |
| SepsisCalc | .941±.004 | .097±.005 | 5.5±0.1 |
| Transformer | .882±.011 | .084±.004 | 5.7±0.1 |
| GRU-D | .924±.007 | .082±.003 | 5.5±0.1 |
| LSTM | .904±.017 | .085±.004 | 5.7±0.1 |
| Raindrop | .924±.007 | .096±.004 | 5.7±0.1 |
| GRU | .910±.006 | .090±.003 | 5.6±0.0 |
| RETAIN | .705±.032 | .091±.009 | 4.9±0.3 |
Table 1: Primary 6 h early-warning results on MIMIC-IV (mean ± std over three seeds).
| Cohort | Test n | AUC | APC | F1 |
|---|---|---|---|---|
| MIMIC-IV | 6,578 | .939±.004 | .474±.019 | .504±.017 |
| MIMIC-III | 4,660 | .996±.000 | .763±.005 | .747±.002 |
| eICU | 2,251 | .948±.002 | .219±.007 | .287±.004 |
| Private | 5,823 | .973±.001 | .404±.006 | .428±.002 |
| Cohort | eR | FAR | ldT |
|---|---|---|---|
| MIMIC-IV | .831±.014 | .046±.007 | 5.6±0.1 |
| MIMIC-III | .984±.004 | .000±.000 | 6.3±0.1 |
| eICU | .580±.076 | .009±.003 | 6.0±0.0 |
| Private | .641±.038 | .019±.004 | 6.0±0.0 |
Table 2: SepsisLens 6 h early-warning results on ICU cohorts.
All models show unusually high discrimination, suggesting a cohort effect under this event definition.
Q3: Does SepsisLens Reduce Alert Burden?
Figure 3(a) and Table 3 evaluate alert burden beyond a single validation-selected threshold. SepsisLens has the lowest mean FAR over three seeds at all three event-recall targets (.068, .083, and .100), followed by GRU-D (.072, .084, and .102). The full sweep shows the FAR–event-recall trade-off.
Q4: Which Design Choices Matter?
Table 4 isolates pre-ICU alignment, structured risk composition, variable-preserving encoding, and organ supervision at a fixed threshold of 0.5. Removing pre-ICU alignment causes the largest degradation: AUC falls from .939 to .909, FAR rises from .223 to .298, and median lead time falls from 7.2 h to 1.8 h. PlainHead and EarlyFusion remove the structured outputs or explicit variable axis while retaining similar scalar discrimination; their lower FAR at 0.5 reflects score distributions rather than superior operating profiles. Remov-
| Method | ≥.90 | ≥.93 | ≥.95 | Method | ≥.90 | ≥.93 | ≥.95 |
|---|---|---|---|---|---|---|---|
| SepsisLens | .068 | .083 | .100 | Raindrop | .087 | .098 | .112 |
| GRU-D | .072 | .084 | .102 | GRU | .086 | .102 | .113 |
| SepsisCalc | .085 | .096 | .109 | Transf. | .092 | .108 | .122 |
| LSTM | .082 | .096 | .110 | RETAIN | .196 | .223 | .250 |
Table 3: Mean FAR over three seeds at fixed event-recall targets on MIMIC-IV. Lower is better.
| Variant | AUC | APC | oAUC |
|---|---|---|---|
| SepsisLens | .939±.004 | .474±.019 | .940±.013 |
| -OrgSupv | .940±.002 | .448±.005 | .567±.015 |
| ICUOnly | .909±.002 | .452±.001 | .899±.003 |
| PlainHead | .935±.001 | .450±.008 | — |
| EarlyFusion | .944±.001 | .464±.017 | — |
| Variant | F1 | eR | FAR | ldT |
|---|---|---|---|---|
| SepsisLens | .330±.053 | .991±.003 | .223±.070 | 7.2±0.2 |
| -OrgSupv | .381±.014 | .989±.001 | .160±.012 | 6.9±0.1 |
| ICUOnly | .230±.008 | .986±.003 | .298±.011 | 1.8±0.0 |
| PlainHead | .347±.036 | .991±.004 | .199±.043 | 7.1±0.1 |
| EarlyFusion | .373±.055 | .988±.005 | .178±.051 | 6.9±0.1 |
Table 4: MIMIC-IV structural ablations at a fixed threshold of 0.5. oAUC denotes organ macro-AUROC.
ing organ supervision leaves scalar AUC nearly unchanged but reduces oAUC from .940 to .567, showing that the auxiliary objective aligns the organ-level components. This metric measures alignment with the auxiliary SOFA-derived organ targets, not scalar sepsis discrimination.
Q5: Are Structured Risk Components Functionally Tied to Prediction?
Figure 3(b,c) shows the organ- and variable-level components for a representative true-positive pre-onset alert. We test functional relevance by ranking variables by positive variable-level components at each patient's first true-positive alert, setting top-k, random-k, or bottom-k histories to the never-observed state, and rerunning the model. Table 5 reports and alert flip rates for over three seeds; random-k uses 20 samples per alert. Top-ranked masking has the largest effect at every , with the top five variables flipping of alerts below threshold (). Random masking has a smaller effect, while bottom-ranked masking produces the smallest probability drops and flip rates. The consistent top > random > bottom ordering indicates that the components rank variables by functional relevance to prediction, not only by their additive position in the output head.
Discussion
Operational metrics change the model comparison. AUROC alone is insufficient for early sepsis warning. On MIMIC-IV, ranking metrics do not determine operating profiles after thresholding. Higher event recall can require many more false alarms, and lower FAR can miss more events.
(a) Alert Burden: FAR vs Event Recall

(b) Organ-level components at alert
(c) Top variables at alert
Figure 3: Alert burden and structured risk outputs. (a) FAR versus event recall on MIMIC-IV over a threshold sweep. The marker denotes SepsisLens at its validation-selected threshold. The horizontal dashed line marks the eR = 0.95 target used in Table 3. (b,c) Organ-level and variable-level components for a representative true-positive pre-onset alert. The StructuredRiskHead produces these components from variable-indexed temporal states without post-hoc attribution.
| Masking | Metric | k = 1 | k = 3 | k = 5 |
|---|---|---|---|---|
| Top-k | Δp | .066±.006 | .176±.030 | .252±.034 |
| Flip | .593±.028 | .884±.037 | .956±.021 | |
| Random-k | Δp | .029±.006 | .095±.014 | .195±.018 |
| Flip | .364±.030 | .630±.045 | .843±.046 | |
| Bottom-k | Δp | .007±.014 | .021±.023 | .037±.028 |
| Flip | .180±.115 | .304±.154 | .407±.180 |
Table 5: Input-side variable masking on MIMIC-IV. Flip uses the validation-selected threshold.
Reporting event recall, lead time, and FAR alongside discrimination connects model selection to alert burden and timely intervention.
Prediction structure determines how risk is composed. SepsisLens preserves clinical structure before the risk score is computed. Post-hoc attribution can inspect a completed score but does not determine its composition. The ablations separate the roles of the structured head and variable-preserving encoding. PlainHead removes the structured component outputs and slightly reduces AUROC. EarlyFusion removes the explicit variable axis before temporal modelling while keeping scalar AUROC similar. These results support the central design choice: preserve variable-level states until risk composition, then form a structured contribution from variable-level and organ-level components. This design keeps the component path available without relying on a larger model. The compact parameter count shows that the design does not require a large model.
Organ supervision aligns the organ-level components. The -OrgSupv ablation separates scalar prediction from component supervision. Removing organ supervision leaves scalar AUROC close to the full model (.939→.940), but reduces organ macro-AUROC from .940 to .567. This result should be read as supervised alignment of organ-level components with time-aligned SOFA-derived labels, not as an unsupervised discovery of organ dysfunction. The labels are derived only from measurements available up to each predic- tion timestep and are not used as model inputs. SepsisLens uses this auxiliary objective to align the organ-level components while keeping inference trajectory-only.
Limitations. This study is retrospective. Prospective deployment would require site-specific alert policies, calibration monitoring, and clinician-facing evaluation. The private-hospital cohort has incomplete organ labels, and MIMIC-III appears unusually easy under this event definition, so neither should be treated as standalone evidence for deployment readiness. The structured components are part of the forward computation, but they are supervised risk components, not causal explanations or independently discovered organ states.
Conclusion
SepsisLens formulates early sepsis warning as a structure-preserving sequence modelling problem. It preserves variable-indexed temporal states and forms multi-horizon risk using an explicit variable-level and organ-level component path with a global residual correction. On four ICU cohorts, SepsisLens shows strong discrimination, while MIMIC-IV results show lower alert burden at matched event recall. Structural ablations and input-side masking further support the proposed design. These results support early-warning models that preserve clinical structure during prediction instead of adding it after prediction.
References
Che, Z.; Purushotham, S.; Cho, K.; Sontag, D.; and Liu, Y. 2018. Recurrent Neural Networks for Multivariate Time Series with Missing Values. Scientific Reports, 8(1): 6085.
Choi, E.; Bahadori, M. T.; Sun, J.; Kulas, J.; Schuetz, A.; and Stewart, W. 2016. RETAIN: An Interpretable Predictive Model for Healthcare Using Reverse Time Attention Mechanism. In Advances in Neural Information Processing Systems, volume 29, 3504–3512.
Dao, T.; and Gu, A. 2024. Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality. arXiv:2405.21060.
Futoma, J.; Hariharan, S.; and Heller, K. 2017. Learning to Detect Sepsis with a Multitask Gaussian Process RNN Classifier. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, 1174–1182. PMLR.
Gu, A.; and Dao, T. 2023. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. arXiv:2312.00752.
Jain, S.; and Wallace, B. C. 2019. Attention is not Explanation. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 3543–3556. Association for Computational Linguistics.
Johnson, A. E. W.; Bulgarelli, L.; Shen, L.; Gayles, A.; Shammout, A.; Horng, S.; Pollard, T. J.; Hao, S.; Moody, B.; Gow, B.; Lehman, L.-W. H.; Celi, L. A.; and Mark, R. G. 2023. MIMIC-IV, a Freely Accessible Electronic Health Record Dataset. Scientific Data, 10(1): 1.
Johnson, A. E. W.; Pollard, T. J.; Shen, L.; Lehman, L.-W. H.; Feng, M.; Ghassemi, M.; Moody, B.; Szolovits, P.; Celi, L. A.; and Mark, R. G. 2016. MIMIC-III, a Freely Accessible Critical Care Database. Scientific Data, 3: 160035.
Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; and Dollár, P. 2017. Focal Loss for Dense Object Detection. In Proceedings of the IEEE International Conference on Computer Vision, 2980–2988.
Liu, J.; Cao, M.; and Chen, S. 2025. TimeCHEAT: A Channel Harmony Strategy for Irregularly Sampled Multivariate Time Series Analysis. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, 18861–18869.
Liu, X.; Qiu, X.; Wu, X.; Li, Z.; Guo, C.; Hu, J.; and Yang, B. 2026. Rethinking Irregular Time Series Forecasting: A Simple Yet Effective Baseline. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, 23873–23881.
Pollard, T. J.; Johnson, A. E. W.; Raffa, J. D.; Celi, L. A.; Mark, R. G.; and Badawi, O. 2018. The eICU Collaborative Research Database, a Freely Available Multi-Center Database for Critical Care Research. Scientific Data, 5: 180178.
Rosnati, M.; and Fortuin, V. 2021. MGP-AttTCN: An Interpretable Machine Learning Model for the Prediction of Sepsis. PLOS ONE, 16(5): e0251248.
Rudin, C. 2019. Stop Explaining Black Box Machine Learning Models for High Stakes Decisions and Use Interpretable Models Instead. Nature Machine Intelligence, 1: 206–215.
Shukla, S. N.; and Marlin, B. M. 2021. Multi-Time Attention Networks for Irregularly Sampled Time Series. In International Conference on Learning Representations.
Singer, M.; Deutschman, C. S.; Seymour, C. W.; Shankar-Hari, M.; Annane, D.; Bauer, M.; Bellomo, R.; Bernard, G. R.; Chiche, J.-D.; Coopersmith, C. M.; Hotchkiss, R. S.; Levy, M. M.; Marshall, J. C.; Martin, G. S.; Opal, S. M.; Rubenfeld, G. D.; van der Poll, T.; Vincent, J.-L.; and Angus, D. C. 2016. The Third International Consensus Definitions for Sepsis and Septic Shock (Sepsis-3). JAMA, 315(8): 801–810.
Vincent, J.-L.; Moreno, R.; Takala, J.; Willatts, S.; de Mendonça, A.; Bruining, H.; Reinhart, K.; Suter, P. M.; and Thijs, L. G. 1996. The SOFA (Sepsis-related Organ Failure Assessment) Score to Describe Organ Dysfunction/Failure. Intensive Care Medicine, 22(7): 707–710.
Wong, A.; Otles, E.; Donnelly, J. P.; et al. 2021. External Validation of a Widely Implemented Proprietary Sepsis Prediction Model in Hospitalized Patients. JAMA Internal Medicine, 181(8): 1065–1070.
Xiao, T.; Xu, Z.; He, W.; Xiao, Z.; Zhang, Y.; Liu, Z.; Chen, S.; Thai, M. T.; Bian, J.; Rashidi, P.; and Jiang, Z. 2025. XTSFormer: Cross-Temporal-Scale Transformer for Irregular-Time Event Prediction in Clinical Applications. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, 28502–28510.
Yin, C.; Fu, S.; Yao, B.; Pham, T.-H.; Cao, W.; Wang, D.; Caterino, J.; and Zhang, P. 2025. SepsisCalc: Integrating Clinical Calculators into Early Sepsis Prediction via Dynamic Temporal Graph. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining, 2779–2790. Association for Computing Machinery.
Zhang, W.; Yin, C.; Liu, H.; Zhou, X.; and Xiong, H. 2024. Irregular Multivariate Time Series Forecasting: A Transformable Patching Graph Neural Networks Approach. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, 60179–60196. PMLR.
Zhang, X.; Zeman, M.; Tsiligkaridis, T.; and Zitnik, M. 2022. Graph-Guided Network for Irregularly Sampled Multivariate Time Series. In International Conference on Learning Representations.