Abstract
Clinical measurements that can be represented as time series constitute an important fraction of the electronic health records and are often both uncertain and incomplete. Recurrent neural networks are a special class of neural networks that are particularly suitable to process time series data but, in their original formulation, cannot explicitly deal with missing data. In this paper, we explore imputation strategies for handling missing values in classifiers based on recurrent neural network (RNN) and apply a recently proposed recurrent architecture, the Gated Recurrent Unit with Decay, specifically designed to handle missing data. We focus on the problem of detecting surgical site infection in patients by analyzing time series of their blood sample measurements and we compare the results obtained with different RNN-based classifiers.
Introduction
Surgical Site Infections (SSIs) represent a significant challenge in postoperative care, accounting for nearly 30% of hospital-acquired infections. These infections lead to prolonged hospital stays, increased healthcare costs, and higher patient morbidity. While longitudinal blood measurements (e.g., CRP, leukocytes) are critical indicators of infection, clinical datasets are frequently characterized by "missingness." Tests are not performed daily, or samples may be lost, creating gaps in the time series.
Standard Recurrent Neural Networks (RNNs) are designed for continuous sequences and cannot natively process missing values. Traditional approaches involve manual imputation—filling gaps with zeros, means, or last-observed values. However, these methods can introduce bias and, more importantly, discard the informative nature of the missingness itself; in clinical practice, the decision not to perform a test is often a signal of a patient's stable condition.
Methodology
This study evaluates three RNN architectures for SSI classification:
- Elman RNN (ERNN): A basic recurrent network.
- Gated Recurrent Unit (GRU): An advanced RNN using gating mechanisms to manage long-term dependencies.
- Gated Recurrent Unit with Decay (GRUD): A specialized architecture designed to learn directly from missing data patterns.
The GRUD Innovation
GRUD addresses missingness through two primary mechanisms:
- Masking and Time Intervals: The model receives an explicit "mask" indicating which features are missing at each time step, along with the time elapsed since the last valid observation.
- Decay Mechanism: GRUD assumes that the relevance of a past measurement diminishes over time. It employs a decay factor to transition missing values toward the empirical mean and to decay the hidden state, effectively "forgetting" stale information.
For baseline models (ERNN and standard GRU), three imputation strategies were tested: Mean Substitution, Zero Imputation, and Last Value Carried Forward (LVCF).
Data and Preprocessing
The models were trained and validated on a real-world dataset from the University Hospital of North Norway (UNN) (2004–2012).
- Cohort: 883 gastrointestinal surgery patients (232 infected, 651 controls).
- Features: 10 blood indicators (e.g., CRP, hemoglobin, creatinine) tracked over a 20-day postoperative window.
- Preprocessing: Data was discretized into daily intervals.
Results
Performance was measured using the Area Under the ROC Curve (AUC) and F1-score, the latter being particularly important due to the class imbalance.
| Model | AUC (Test) | F1-score (Test) |
|---|---|---|
| GRUD | 0.91 ± 0.02 | 0.70 ± 0.05 |
| GRU (Mean Imputation) | 0.90 ± 0.01 | 0.70 ± 0.06 |
| ERNN (Zero Imputation) | 0.86 ± 0.01 | 0.63 ± 0.04 |
| ERNN (Mean Imputation) | 0.76 ± 0.02 | 0.33 ± 0.16 |
While GRUD and GRU with mean imputation showed comparable AUC, GRUD offers a significant practical advantage by eliminating the need for a separate, heuristic-based imputation step, enabling a more robust end-to-end learning process.
Discussion and Key Insights
- Informative Missingness: The success of GRUD highlights that missing data patterns in clinical settings are non-random and carry predictive value.
- Model Robustness: Standard GRUs proved more resilient to imputation noise than simpler ERNNs, which showed extreme sensitivity to the choice of imputation method (e.g., F1-score jumping from 0.33 to 0.63 when switching from mean to zero imputation).
- Latent Space Quality: Principal Component Analysis (PCA) of the models' internal hidden states revealed that GRUD develops much clearer separation between infected and non-infected patient clusters compared to the highly overlapped states of the ERNN.
Conclusion
The Gated Recurrent Unit with Decay (GRUD) effectively addresses the challenge of missing clinical data by incorporating missingness patterns directly into the network architecture. By achieving an AUC of 0.91 in SSI detection, it demonstrates superior performance and robustness over traditional RNNs. Future work should focus on increasing dataset size and improving model interpretability to facilitate clinical adoption, helping practitioners understand which specific markers drive the infection alerts.
Summary updated