An Unsupervised Multivariate Time Series Kernel Approach for Identifying Patients with Surgical Site Infection from Blood Samples

Karl Øyvind Mikalsen, Cristina Soguero-Ruíz, Filippo Maria Bianchi, Arthur Revhaug, Robert JenssenarXiv 2018

Abstract

Surgical Site Infections (SSIs) represent a major challenge in postoperative care, significantly impacting patient outcomes and healthcare costs. This paper introduces a novel unsupervised machine learning framework designed to identify SSIs using multivariate blood test time series data. By leveraging specialized kernels—specifically the Time Series Cluster Kernel (TCK) and Learned Pattern Similarity (LPS)—the framework naturally accommodates the irregular sampling and missing values inherent in clinical data without the need for biased imputation. Evaluation on a cohort of 1,137 patients demonstrates that this unsupervised approach achieves an F1-score of approximately 0.80, matching the performance of supervised alternatives while eliminating the need for labor-intensive manual data labeling.

Introduction

Surgical Site Infections (SSIs) are among the most common hospital-acquired infections, contributing to increased mortality and prolonged hospital stays. While Electronic Health Records (EHRs) contain longitudinal data such as blood test results (e.g., C-reactive protein, hemoglobin) that could signal infection, two primary obstacles hinder automated detection: the "missing data trap" caused by irregular clinical testing schedules, and the "labeling bottleneck" where training supervised models requires extensive clinician time for manual chart review. This research addresses these challenges by proposing an unsupervised pipeline that learns to distinguish infected from non-infected patients based solely on patterns in multivariate blood work.

Methods

The proposed methodology utilizes a two-step pipeline grounded in kernel methods to measure similarity between complex patient histories.

Data Acquisition and Preprocessing

The study utilized data from 1,137 patients who underwent colorectal cancer surgery at the University Hospital of North Norway (UNN) between 2004 and 2012. The dataset includes 11 types of blood tests monitored over a 20-day postoperative window. After filtering for data sufficiency, the cohort consisted of 232 infected cases and 651 non-infected controls.

The Unsupervised Pipeline

The framework consists of three main stages:

  1. Kernel Computation: Two robust kernels are employed. The Time Series Cluster Kernel (TCK) uses an ensemble of Gaussian Mixture Models to analytically handle missing data. The Learned Pattern Similarity (LPS) kernel uses a tree-based approach to identify local dependencies.
  2. Dimensionality Reduction: Kernel Principal Component Analysis (kPCA) projects the high-dimensional similarity matrices into a lower-dimensional space.
  3. Clustering: Spectral clustering (via k-means) is applied to group patients into "Infected" and "Not Infected" clusters.
The proposed unsupervised pipeline for SSI detection, moving from blood samples to patient clustering.

Results and Discussion

The experimental results highlight the effectiveness of the kernel-based approach in clinical settings.

Performance and Robustness

The TCK and LPS frameworks achieved peak F1-scores of approximately 0.80. Notably, these methods significantly outperformed traditional baselines like the Global Alignment Kernel (GAK) and Linear kernels. The latter methods were hampered by their reliance on standard imputation techniques (e.g., Mean Imputation or Last Observation Carried Forward), which introduced noise and reduced accuracy. TCK demonstrated particularly low variance, suggesting high stability across varying data quality.

Temporal Dynamics

Performance improved as the observation window increased, reaching a "sweet spot" around day 15. This confirms that longitudinal tracking of blood markers provides a more reliable infection signal than isolated snapshots.

F1-score comparison across different kernel methods for both training and test sets over the 20-day postoperative period.

Unsupervised vs. Supervised Learning

A key finding of this study is that the unsupervised clustering performance was nearly identical to that of a supervised k-Nearest Neighbor (kNN) classifier. This indicates that the physiological signal of infection in blood work is sufficiently distinct to be identified without prior labeling, potentially saving thousands of hours of expert manual review.

Conclusion

This work demonstrates that unsupervised kernel methods can effectively navigate the complexities of real-world medical data. By avoiding the pitfalls of data imputation and the costs of manual labeling, the proposed framework offers a scalable path toward automated postoperative monitoring. Future research will explore the integration of multimodal data, such as clinical notes and vitals, and the transition from retrospective analysis to real-time "online" infection prediction.

Summary updated

BibTeX
@misc{mikalsen2018unsupervised,
  author = {Karl Øyvind Mikalsen and Cristina Soguero-Ruíz and Filippo Maria Bianchi and Arthur Revhaug and Robert Jenssen},
  title = {{An Unsupervised Multivariate Time Series Kernel Approach for Identifying Patients with Surgical Site Infection from Blood Samples}},
  year = {2018},
  eprint = {1803.07879},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.07879},
}
Figure