Abstract
Sepsis is a life-threatening condition that seriously endangers millions of people worldwide. With the widespread availability of electronic health records (EHR), predictive models that can effectively process clinical sequential data offer the possibility of early sepsis detection and preventive treatment. However, early prediction is challenging because patient sequential data in EHRs contains complex temporal interactions of multiple clinical events. Capturing these interactions in long event sequences is difficult for traditional Long Short-Term Memory (LSTM) networks. We propose a model that first aggregates heterogeneous clinical events over short periods and then captures temporal interactions of the aggregated representations using an LSTM. Our proposed Heterogeneous Event Aggregation (HEA) module shortens the clinical event sequence and retains temporal interactions of both categorical and numerical features through multi-head aggregation. In the PhysioNet/Computing in Cardiology Challenge 2019, our model achieved a utility score of 0.321 on the full test set.
Introduction
Sepsis is a medical emergency where the body’s response to infection damages its own tissues. Early detection is critical, as every hour of delayed treatment significantly increases mortality rates. While EHRs provide a wealth of data for predictive modeling, two primary challenges persist:
- Sequence Length: ICU patients generate high-frequency data streams (vitals, lab results, medications). Traditional LSTMs struggle to maintain dependencies across these very long sequences.
- Data Heterogeneity: Clinical data is a mix of numerical values (e.g., blood pressure) and categorical events (e.g., drug administration). Standard methods of combining these often lose the subtle interactions between different event types.
Methodology
Our proposed architecture addresses these challenges through a two-stage process:
Heterogeneous Event Aggregation (HEA) Module
Instead of feeding raw data directly into a sequence model, the HEA module aggregates events within short time windows.
- Embedding: Separate embeddings are created for numerical and categorical data. Numerical values are scaled by "value vectors," while categorical data uses a standard lookup table.
- Attentional Multi-head Aggregation: This mechanism uses multiple "heads" to observe the data from different clinical perspectives simultaneously. For instance, one head might focus on vital sign trends while another monitors medication timing. This prevents distinct clinical signals from being blurred into a single, less informative representation.
Sequential Modeling and Classification
The aggregated summaries are passed into a Bidirectional LSTM. Because the HEA module has already compressed the sequence and extracted relevant interactions, the LSTM can more effectively capture long-term trends in the patient's condition. A final dense layer with a sigmoid activation function then outputs the probability of sepsis onset within the next 6 hours.
Experimental Setup
The model was evaluated using the PhysioNet/Computing in Cardiology Challenge 2019 dataset, which includes 40,643 patient records from two separate ICUs. Each record contains 40 variables per hour (37 numerical and 3 categorical). The primary task was to predict sepsis onset 6 hours in advance.
Results and Discussion
Our researchers compared the HEA-LSTM model against several baselines, including Multi-Layer Perceptrons (MLP), Transformers, and vanilla LSTMs. The 16-head HEA-LSTM achieved the highest performance on our local test set, with an Area Under the ROC Curve (AUC) of 0.8410 and a Utility Score of 0.4126.
Ablation studies demonstrated that increasing the number of attention heads from 1 to 16 consistently improved the utility score, confirming that a multi-faceted view of clinical data is vital for accuracy. Furthermore, the HEA approach is computationally efficient; a 16-head model could process over 10 million training samples in approximately 10 minutes per epoch on a standard consumer GPU (GTX 1080).
Conclusion
The HEA-LSTM framework demonstrates that "shortening to strengthen" is a viable strategy for clinical sequence modeling. By aggregating heterogeneous events before sequential processing, we can extend the effective memory of LSTMs and preserve the complex interactions inherent in EHR data. Future work will focus on improving model interpretability for clinical settings and exploring dynamic windowing to better handle varying patient stay lengths.
Summary updated