Schulich School of Engineering
Identifying Patients at Risk of Sudden Cardiac Arrest using Graph Representation Learning on Electronic Health Records
Abstract
dc:description.abstractSudden cardiac arrest (SCA) occurs when the heart suddenly stops pumping blood, often because of an abnormal rhythm. In the intensive care unit (ICU), early risk identification is important because SCA may occur with little warning. Electronic health records (EHRs) contain time-series data, including vital signs and laboratory measurements, that reflect changes in a patient’s condition. However, SCA prediction from EHR data remains challenging because SCA cases are relatively few, and SCA and no-SCA patients may exhibit similar temporal patterns. Temporal deep learning models, such as Long Short-Term Memory (LSTM) networks, can learn from multivariate time-series data. However, they treat each patient visit as an independent sample and may not use similarity between visits. Graph-based methods can model relationships among patients, but many require graph computations during inference, which increases computational cost. In addition, many existing EHR-based graphs are constructed from fixed clinical attributes such as diagnosis codes rather than the temporal dynamics of longitudinal data. To address these limitations, this thesis introduces a framework that incorporates graph regularization into an LSTM model for SCA prediction, evaluated on the MIMIC-III database. A bidirectional Gated Recurrent Unit autoencoder is used to learn visit-level representations from ICU time-series data. These representations are then processed with dimensionality reduction and grouped using K-means clustering. Within each group, a cosine-similarity k-nearest neighbour graph connects similar patient visits. During LSTM training, a graph regularization term is combined with binary cross-entropy loss to encourage similar visits to have closer learned representations. Because the graph is applied only during training, the final model is a standard LSTM with no additional graph operations, keeping prediction computationally efficient. The best model configuration, which used Uniform Manifold Approximation and Projection (UMAP)-reduced embeddings with graph regularization, achieved a test set AUPRC of 0.5968 and an accuracy of 0.7937. Compared with the standalone LSTM baseline, this represents a relative improvement of 4.1% in AUPRC and 10.5% in accuracy. The findings suggest that using inter-visit similarity during training can improve SCA prediction while maintaining computationally efficient inference.
Degree
thesis:*- Name thesis:degree_name
- Master of Science (MSc)
- Discipline thesis:degree_discipline
- Engineering – Electrical & Computer
- Grantor
- Schulich School of Engineering
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Ghaffarpour, Fatemeh
- Advisors dc:contributor.advisor
-
- Far, Behrouz
- Mohammed, Emad A.
- Committee members dc:contributor.committeemember
-
- Kim, Kangsoo
- Saeedi, Sara
Subjects
dc:subject × 6Rights
dc:rights- Statement dc:rights
-
- Unless otherwise indicated, this material is protected by copyright and has been made available with authorization from the copyright owner. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Identifier URI
- https://hdl.handle.net/1880/126081
- Dc Identifier Citation
- Ghaffarpour, F. (2026). Identifying patients at risk of sudden cardiac arrest using graph representation learning on electronic health records (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca.