Early Detection of Multidrug Resistance Using Multivariate Time Series Analysis and Interpretable Patient-Similarity Representations
Preprint
Abstract
Background and Objectives: Multidrug Resistance (MDR) is a critical global health issue, causing increased hospital stays, healthcare costs, and mortality. This study proposes an interpretable Machine Learning (ML) framework for MDR prediction, aiming for both accurate inference and enhanced explainability. Methods: Patients are modeled as Multivariate Time Series (MTS), capturing clinical progression and patient-to-patient interactions. Similarity among patients is quantified using MTS-based methods: descriptive statistics, Dynamic Time Warping, and Time Cluster Kernel. These similarity measures serve as inputs for MDR classification via Logistic Regression, Random Forest, and Support Vector Machines, with dimensionality reduction and kernel transformations improving model performance. For explainability, patient similarity networks are constructed from these metrics. Spectral clustering and t-SNE are applied to identify MDR-related subgroups and visualize high-risk clusters, enabling insight into clinically relevant patterns. Results: The framework was validated on ICU Electronic Health Records from the University Hospital of Fuenlabrada, achieving an AUC of 81%. It outperforms baseline ML and deep learning models by leveraging graph-based patient similarity. The approach identifies key risk factors -- prolonged antibiotic use, invasive procedures, co-infections, and extended ICU stays -- and reveals clinically meaningful clusters. Code and results are available at \https://github.com/oscarescuderoarnanz/DM4MTS. Conclusions: Patient similarity representations combined with graph-based analysis provide accurate MDR prediction and interpretable insights. This method supports early detection, risk factor identification, and patient stratification, highlighting the potential of explainable ML in critical care.Keywords
All Related Versions
This publication has 50 references indexed in Scilit:
- Multivariate temporal data analysis ‐ a reviewWIREs Data Mining and Knowledge Discovery, 2021
- Special issue on feature engineering editorialMachine Learning, 2021
- A Kernel to Exploit Informative Missingness in Multivariate Time Series from EHRs2020
- Antimicrobial resistance and antibiotic stewardship programs in the ICU: insistence and persistence in the fight against resistance. A position statement from ESICM/ESCMID/WAAAR round table on multi-drug resistanceIntensive Care Medicine, 2017
- Generalizing DTW to the multi-dimensional case requires an adaptive approachData Mining and Knowledge Discovery, 2016
- Support Vector Machine2016
- The latest research progress on spectral clusteringNeural Computing and Applications, 2013
- A tutorial on spectral clusteringStatistics and Computing, 2007
- Dynamic Time Warping2007
- Extremely randomized treesMachine Learning, 2006