Next Article in Journal
Wires, Patents and Growth: An Explainable Machine Learning Approach for What Drives Digital Competitiveness in the European Union
Next Article in Special Issue
VulnPattern-TKG: An End-to-End Temporal Knowledge Graph Framework for Forecasting CVE-Derived Vulnerability-Pattern Relation Emergence
Previous Article in Journal
SEMA: Self-Evolving Multi-Agent Auditing for Smart Contracts
Previous Article in Special Issue
Fuzzy MCGDM Approach for Ontology Fuzzification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving Heart-Failure Predictive Tasks with Patient Health Knowledge Graphs and Sequential Graph Neural Networks

Department of Advanced Computing Sciences, Maastricht University, 6229 ER Maastricht, The Netherlands
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(10), 2189; https://doi.org/10.3390/electronics15102189
Submission received: 17 March 2026 / Revised: 6 May 2026 / Accepted: 11 May 2026 / Published: 19 May 2026
(This article belongs to the Special Issue Knowledge Representation and Reasoning in Artificial Intelligence)

Abstract

Patient health knowledge graphs provide a means for high-quality and interoperable clinical data representation, while graph neural networks are a key enabler in order to learn their underlying relationships for downstream prediction tasks. In this work, we propose a sequential graph neural network (SeqGNN) framework that models patient visit trajectories for multiple binary clinical tasks, namely diagnosis, readmission, and mortality prediction. The proposed architecture integrates temporal dynamics with graph-based representations that enhances patient-level embeddings. Focusing on patients at the risk of Heart Failure (HF), our methodology achieves comparatively high accuracy and precision-versus-recall tradeoffs on highly heterogeneous graphs and imbalanced labeled data. We additionally quantify the uncertainty concerning each clinical decision making task and, compared with the state-of-the-art, show that AUROC and AUPRC scores reliably improve for onset diagnosis in particular, as high as 93.1 and 79.1 respectively. Our experiments conducted on real-world data from an intensive care unit demonstrate the potential for sequential representation learning over patient health knowledge graphs that can be provided for high-precision decision-making in clinical settings.

1. Introduction

The proliferation of electronic health records (EHRs) in recent years has resulted in an unprecedented accumulation of clinical data, encompassing patient interactions, events, and interrelated medical information. The growing availability of such datasets enables predictive modeling to support risk mitigation, optimize clinical workflows, and enhance patient care across multiple domains, including diagnosis [1,2], medication management [3], and procedural interventions [4,5]. Despite this potential, the deployment of predictive models in clinical settings remains constrained by the need for high precision and the complete integration of patient histories, among other challenges associated with heterogeneous, multi-source data [6].
Graph representation learning offers a compelling approach for capturing the complex relationships inherent in EHR data [7]. Graph neural networks (GNNs) can model both local and global dependencies among diverse clinical entities, including patient histories, diagnoses, medications, and procedures, through non-linear message-passing operations. These capabilities have been shown to improve predictive performance across tasks ranging from disease onset prediction to drug recommendation. Nonetheless, practical applications are often hampered by data heterogenity, fragmentation, and the sequential nature of patient histories, which, in turn, reduce representation quality [8], highlighting the need for unified frameworks that integrate temporal, multimodal, and graph-structured representations of patient data.
Existing approaches, a summary of which is provided in Table 1, remain particularly fragmented across tasks, input modalities, and time-dependent feature learning. Firstly, most existing approaches are task-specific with limited ability to learn generalizable representations. Secondly, many methods rely predominantly on codified data, with only a subset incorporating numerical features or clinical text, thus resulting in incomplete patient representations and under-utilization of available EHR modalities. Thirdly, while models capture temporal dependencies through sequential signals, they lack the ability to fully model complex interactions among diversified clinical events over time. Moreover, although recent works introduce graph-based components, they often use simplified or partially integrated graph structures without fully leveraging the structure-rich nature of patient health knowledge graphs for joint relational and temporal reasoning. Lastly, minimal attention has been paid to quantifying the uncertainty in model predictions, a key reliability requirement for practical clinical settings.
To address these limitations, in this work, we propose a modular framework that is end-to-end trainable for prediction across multiple tasks using a heterogeneous patient health knowledge graph (PHKG). We focus on patients at the onset of heart failure (HF) and apply our model for three individual tasks, namely HF diagnosis, mortality risk, and readmission rate prediction. These classification tasks are critical for downstream clinical processes; however, they are particularly difficult to predict due to high levels of comorbidity and weak correlations in data. The proposed approach, a Sequential Graph Neural Network (SeqGNN), captures the hidden structures from patient graphs and subsequently models temporal dependencies across visits for multiple downstream tasks via:
  • A multi-type graph encoder generates contextualized embeddings in order to support the integration of numerical, textual, and codified information.
  • A configurable sequential decoder, equipped with a learnable temporal component, in order to capture the longitudinal progression of clinical events across patient visits.
  • A sequence-based predictor that supports (binary or multi-label) classification across different clinical tasks given fully integrated data as patient health knowledge graphs.
  • Uncertainty quantification in order to provide insights into model performance related to HF predictive tasks through ensemble SeqGNN predictors.
Our approach is guided by three key research questions aimed at understanding both the behavior and design of SeqGNN models for clinical prediction tasks. Firstly, we analyze which components of sequential and longitudinal EHR modeling—such as temporal learning, multimodal data integration, and structural representations—most effectively inform model design for individual diagnosis, readmission, and mortality prediction tasks (RQ1). Secondly, we examine what uncertainty quantification and calibration analyses reveal about these models, with a focus on understanding their reliability, stability, and limitations across different clinical settings (RQ2). Thirdly, we investigate to what extent the relationship between prediction confidence and performance in ensemble SeqGNNs can inform model deployment, particularly in practical settings, identifying reliable predictions, limitations, and refinement strategies for future research (RQ3).
More specificaly, we construct a visit-centric PHKG from an electronic health record repository to model heart-failure-related outcomes. Hospital admissions are first filtered to retain only clinically confirmed HF cases using predefined ICD-9 codes. For each qualifying admission, four structured clinical domains are extracted: medications, abnormal laboratory measurements, procedures, and HF-specific diagnoses. Duplicates and incomplete entries are removed to ensure a consistent admission-level representation. Each admission is treated as a distinct visit node connected to its associated clinical concept nodes (medications, labs, procedures, diagnoses), forming heterogeneous, multi-relational subgraphs. Identical clinical concepts across admissions are represented by shared global nodes, enabling parameter sharing and cross-visit generalization when all admission-level subgraphs are merged into a single global PHKG.
To support sequential modeling, visits are grouped by patient identifier and ordered chronologically using admission timestamps, forming variable-length visit sequences per patient. Each visit retains its admission-level label (mortality, readmission, or multi-label HF phenotype). The graph structure models intra-visit clinical relationships, while the ordered visit sequences enable longitudinal learning across time. This design allows a sequential GNN framework to first encode each visit via message passing over the PHKG and subsequently model temporal dependencies across visits.
For node feature generation, concept nodes are enriched using both semantic and numerical representations. Textual descriptions of medications, laboratory findings, and procedures are encoded with a pre-trained sentence transformer, producing dense embeddings attached with concept nodes. For laboratory concepts, raw scalar values are additionally projected into vector space using a small feed-forward network and concatenated with text embeddings, preserving precise quantitative information. Visit nodes receive learnable embeddings and aggregate semantic signals implicitly through message passing rather than explicit feature pooling at construction time. This node-centric enrichment strategy yields a semantically expressive, numerically grounded heterogeneous PHKG suitable for sequential graph neural network modeling of heart failure prediction tasks.
Our evaluation considers three sequential prediction tasks derived from hospital admissions as binary classification problems: in-hospital mortality, readmission within a specified time frame, and heart failure diagnosis prediction. Tasks leverage chronological visit sequences processed by the graph encoder followed by the sequential decoder, enabling the model to integrate relational and temporal information effectively. We evaluate the model on the publically available MIMIC III dataset (accessed 13 March 2026 via: https://physionet.org/content/mimiciii/1.4/) including hospitalizations in an intensive care unit, in terms of the area under receiver operating (AUROC) and precision–versus–recall curves (AUPRC) as compared to the-state-of-the-art methods. In order to measure the applicability of the proposed method in real-world settings, we further conduct uncertainty quantification (UQ) experiments and show that with an increasing number of ensemble SeqGNNs, high-confidence predictions can be made in each task.

2. Patient Health Knowledge Graphs

Clinical information such as patient visits, diagnoses, medications, laboratory measurements, and procedures, are derived from hospital admissions. Each hospital admission is treated as a distinct clinical event and linked to a unique patient identifier, enabling the construction of longitudinal patient trajectories. The dataset is preprocessed to ensure consistency between admission records and encoded clinical entities, and subsequently transformed into a PHKG, where nodes represent clinical concepts and visits, and edges capture their relationships. This representation supports both relational modeling across heterogeneous medical entities and sequential modeling of chronologically ordered patient visits for downstream prediction tasks, as detailed in the following subsections.

2.1. Dataset

We use the MIMIC repository containing tabular data for patients to ultimately generate triples that form a PHKG for training and evaluation purposes. All records for a set of patients are extracted according to predefined criteria. The criteria by which the records are obtained include the intent for hospitalization, table names and concepts, as well as entity types and relations. The intent for hospitalization can be set in order to limit the scope of the task to a particular use case. In this work, records from patients that are hospitalized for heart failure (HF) are separated based on their ICD codes (i.e., International Classification of Diseases). Since many tables already exist as data sources for patients with a particular hospitalization intent, the scope is further narrowed down to main concepts related to any medication prescribed, lab results and measurements taken, hospital procedures performed, and diagnoses made. The relevant data are stored in separate tables and can be processed as such (please refer to Figure 1). Within each table, a subset of columns and relations is selected by examination as explained in subsequent sections. While the dataset is provided in two versions, in this study, the following versions is utilized:
MIMIC III—The first version of the repository that we use contains data associated with 53,423 distinct hospital admissions for adult patients (aged 16 years or above) admitted to critical care units between 2001 and 2012 covering 38,597 distinct adult patients overall. The median age of adult patients is 65.8 years, 55.9% patients are male, and in-hospital mortality is 11.5%. In addition, it contains data for 7870 neonates admitted between 2001 and 2008 (excluded from this study). The median length of an ICU stay is 2.1 days and the median length of a hospital stay is 6.9 days. A mean of 4579 charted observations (‘chartevents’) and 380 laboratory measurements (‘labevents’) are available for each hospital admission.
Figure 1. MIMIC III tables used in this study and connections through a foreign key.
Figure 1. MIMIC III tables used in this study and connections through a foreign key.
Electronics 15 02189 g001
We utilize admission-level information from the admission table, which provides patient identifiers, admission and discharge timestamps, in-hospital mortality indicators, and primary diagnosis descriptions. Clinical events associated with each hospital admission are retrieved from four primary tables: ICD-9 diagnosis codes, ICD-9 procedure codes, medication orders including drug names, National Drug Codes (NDC), and dosage information, and laboratory measurements. For each admission, structured codes are extracted and filtered to remove missing or duplicate entries (medications without NDC codes and laboratory records without measurements). The resulting admission-level representation includes diagnosis codes, procedure codes, medication identifiers, and laboratory-item identifiers, together with numerical laboratory values stored as literals. This preprocessing step yields a consistent, admission-centric dataset that supports both relational graph construction and longitudinal patient-level modeling.
More precisely and as shown in Figure 1, the PATIENTS table provides demographic information (e.g., age, gender, date of death) linked via subject_id, while ADMISSIONS defines hospital visits using hadm_id and includes key outcome variables such as hospital_expire_flag, admission and discharge timestamps, and admission type. Diagnostic and procedural information is recorded in DIAGNOSES_ICD and PROCEDURES_ICD, respectively, using ICD-9 codes associated with each admission. Medication administrations are extracted from PRESCRIPTIONS, which provides drug names and dosage details. The D_ICD_DIAGNOSES table serves as the reference dictionary for ICD-9 diagnosis codes in MIMIC-III. Laboratory measurements are obtained from LABEVENTS, including numeric results, abnormality flags, and timestamps, with metadata definitions available in D_LABITEMS. Together, subject_id and hadm_id form the relational backbone of the database, enabling the construction of admission-centric heterogeneous graphs for mortality prediction, readmission modeling, and heart failure outcome analysis.
Heart failure admissions were identified by scanning diagnosis records for the presence of any of the ICD-9 codes listed in Table 2. These codes collectively capture the full range of heart failure phenotypes, including acute, chronic, systolic, diastolic, and unspecified forms. Every hospital admission containing at least one of these codes was retained for graph construction, ensuring that only clinically confirmed heart failure episodes entered the final dataset. In total, 10,154 unique patients were included with one or more heart-failure diagnosis. We included all visits related to a patient with heart-failure diagnosis for a total 13,608 admissions. These admissions include 1192 unique procedure codes, 15 unique diagnosis codes, 265 unique lab item codes, and 3498 unique medication codes. Further statistics related to the dataset utilized in this study are shown in Table 3.

2.2. Classification Tasks

Labels for downstream prediction tasks are derived directly from structured fields within the MIMIC-III database at the hospital admission level. All tasks are formulated at the visit level and subsequently organized into chronological patient sequences for sequential modeling. For all tasks, admission-level labels are grouped by patient identifier and ordered chronologically using admission timestamps. This results in variable-length visit sequences per patient. During model training, sequences are padded to a uniform length and accompanied by masking vectors to ensure that loss computation and evaluation metrics are applied only to valid visits. The classification sequences and labels for each task are extracted as follows:
Heart Failure Diagnosis—Heart failure diagnosis labels are derived from the DIAGNOSES_ICD table. For each hospital admission, all ICD-9 diagnosis codes are examined, and the presence of any HF-specific codes listed in Table 2 is recorded. Unlike mortality and readmission, HF diagnosis prediction is formulated as a multi-label classification task: each admission may contain multiple HF-related ICD-9 codes simultaneously. A binary indicator vector is constructed per admission, where each dimension corresponds to one HF ICD-9 code, taking value 1 if the code is present and 0 otherwise. This produces a structured multi-label representation aligned with the admission-level graph nodes. For each index admission, subsequent admissions within a 365-day window are examined to determine whether a heart-failure diagnosis code appears. If a predefined heart-failure code is observed during a future admission within the specified window, the index admission is labeled as positive. Patients with fewer than two admissions are excluded because the occurrence of future heart failure cannot be determined. Using the full MIMIC-III dataset, 20,676 heart HF diagnosis records corresponding to 13,608 unique admissions were found. Importantly, during experiments for this task, the labeled data are excluded from the original PHKG using the test set.
In-Hospital Mortality—In-hospital mortality labels are obtained from the admission table using the hospital_expire_flag field. This binary indicator takes value 1 if the patient died during the hospital stay and 0 otherwise. Each hospital admission is therefore assigned a single binary mortality label. For sequential modeling, mortality labels are aligned with their corresponding admission timestamps and ordered chronologically per patient. Because the outcome occurs within the same hospital stay, label construction does not require information from subsequent admissions. Consequently, patients with a single recorded admission can be included in this task.
As shown in Figure 2, mortality rates varied across codes, with the highest rates observed for 4289 (30.8%) and 4281 (21.7%), although these codes occurred in relatively small numbers of admissions (13 and 23, respectively). The most prevalent code, 4280 (congestive heart failure unspecified), appeared in 13,111 admissions and had a mortality rate of 14.4%, reflecting its broad use in clinical coding. Most other HF subtypes showed mortality rates between 8.8% and 13.7%, indicating moderate variation across HF diagnoses. Correlation analysis between the presence of individual HF codes and mortality revealed very weak associations overall, with small positive correlations for 4289 ( r 0.014 ) and 4281 ( r 0.008 ), while most codes showed slightly negative correlations, such as 42,822 ( r 0.048 ) and 42,832 ( r 0.047 ). These results suggest that individual HF ICD-9 codes alone have limited predictive value for in-hospital mortality, although rare or unspecified HF codes appear to be associated with somewhat higher observed mortality rates.
Hospital Readmission—Hospital readmission is defined as a binary outcome indicating whether a patient is readmitted within a predefined temporal window following discharge (e.g., 30 days). For each admission, the discharge timestamp (dischtime) is compared to the admission time (admittime) of the next hospitalization for the same patient. If the time difference falls within the specified threshold, the current admission is labeled as a positive readmission case. The final admission of each patient sequence is excluded from readmission labeling, as no subsequent visit exists for comparison. This procedure yields one binary readmission label per admission. Labels are generated by examining the time difference between consecutive admissions for the same patient. Admissions resulting in in-hospital death are excluded from this task because readmission cannot occur in such cases. Since the label depends on the presence of a subsequent admission, only patients with at least two admissions are retained.
Overall, as shown in Figure 2, readmission rates were relatively low (generally between 2% and 8%), with the highest rates observed for ICD-9 code 42,843 (7.65%) and 42,823 (7.61%), followed by 42,842 (6.70%) and 42,832 (6.05%). These findings suggest that certain HF subtypes are associated with slightly higher short-term readmission risk. The most common code, 4280 (congestive heart failure unspecified), appeared in 13,111 admissions and had a readmission rate of 4.30%, reflecting its broad clinical use. Correlation analysis between the presence of individual HF codes and 30-day readmission showed generally weak associations, with the strongest positive correlations observed for 42,823 ( r 0.05 ), 42,832 ( r 0.028 ), and 42,843 ( r 0.026 ). Several codes showed near-zero or slightly negative correlations (e.g., 42,821, r 0.023 ). Overall, these results suggest that HF ICD-9 codes alone provide limited predictive power for short-term readmission, although certain acute or more specific HF subtypes exhibit slightly stronger associations with readmission risk.

2.3. Patient Health Knowledge Graph Construction

To enable graph neural network modeling of heart failure outcomes, we construct a collection of visit-centric heterogeneous Patient Health Knowledge Graphs (PHKGs) derived exclusively from heart-failure hospitalizations explained above. The objective is to represent each admission as a structured, multi-relational graph that preserves both clinical semantics and relational topology. Let P denote the cohort of patients. For each patient p P , define O p , D p , M p , and R p as the sets of laboratory observations, diagnoses, medications, and procedures, respectively. The complete set of encoded clinical concepts is given by: C p = O p D p M p R p . Visits are chronologically ordered as { v p 1 , , v p T } , where each visit satisfies v p t C p . Without loss of generality, we let T be the maximum number of visits and pad shorter sequences accordingly.
The PHKG is defined as a heterogeneous graph G = ( V , E , R ) with a node set consisting of p P { v p t } union p P C p . Edges connect visit nodes to clinical concept nodes according to relation type r R = { r M , r O , r R , r D } , corresponding to medication, abnormal laboratory observation, procedure, and heart-failure-specific diagnosis, respectively. Formally, the edge set over the patient visits is given as follows: E = { ( v p t , r , c ) c v p t , r R } . Each node u V is initialized with a learnable embedding vector x u R d . For laboratory concepts c O p with numeric measurements, the scalar value is incorporated as a literal attribute of the corresponding node. A categorical node-type indicator distinguishes visit nodes from concept nodes, enabling heterogeneous encoding.
Visit-specific subgraphs are retained only if | M p v p t |   1 , | O p v p t |   1 , and | R p v p t |   1 , ensuring that each admission graph contains sufficient multimodal information. All admission-level subgraphs are subsequently merged into a single global graph PHKG, where identical clinical concepts across visits are represented by shared nodes. This global integration enables parameter sharing and the learning of generalized representations across hospitalizations. By jointly encoding typed predicate relations, numerical laboratory attributes, and semantic embeddings, the PHKG provides a comprehensive and expressive representation for downstream graph neural network tasks.

2.4. Feature Enrichment

To provide rich and semantically meaningful node representations, we enrich both visit nodes and clinical concept nodes with two complementary types of features: high-dimensional semantic embeddings derived from textual descriptions and learned vector representations of numerical measurements.
Textual Attributes—All clinical concepts in medications ( M p ), laboratory observations ( O p ), and procedures ( R p ) with labels (concise natural-language descriptions) are further processed to improve feature representations as follows. Medication descriptions combine drug name, dose, route, and unit (e.g., “aspirin 81 mg oral tablet”). Laboratory observations incorporate the measured value, unit, and reference context (e.g., “potassium 3.2 mEq/L low”). Procedure descriptions use the standardized long-title text from the procedure coding system (e.g., “Coronary artery bypass graft”). Each textual description is encoded using a pre-trained sentence transformer, yielding a fixed d-dimensional embedding vector e c R d for every concept c. These embeddings are attached directly to the corresponding concept nodes in the graph. For each visit v p t , the semantic information is implicitly propagated from its associated concept nodes during message passing, eliminating the need for explicit visit-level aggregation at construction time.
Numerical Attributes—Numerical laboratory measurements (scalar values associated with concepts in O p ) are handled in two steps. First, the raw scalar is converted into a textual description (e.g., “potassium 3.2 mEq/L”) and embedded as described above, ensuring the numerical information contributes to the node’s semantic representation. Second, to preserve precise quantitative signal, the raw scalar value is projected into a d-dimensional vector using a small shared multi-layer perceptron (MLP):
q c = MLP ( scalar ( c ) ) R d ,
where the MLP consists of two linear layers with Rectified Linear Unit (ReLU) activation. The projected vector q c is concatenated with the text-derived embedding e c and attached directly to the laboratory concept node c. This fused representation enables the graph encoder to jointly reason over linguistic clinical context and exact numerical measurements during message passing.
By attaching both text-derived semantic embeddings and MLP-projected numerical vectors directly to the concept nodes, the PHKG nodes become richly annotated with clinically meaningful features. This node-centric enrichment strategy leverages the graph structure to propagate and integrate information across visits and concepts, providing a powerful and homogeneous input to downstream graph neural network tasks, as shown in Figure 3.

3. Methodology

This section presents the proposed sequential heterogeneous graph neural network (termed SeqGNN) for modeling patient trajectories using the PHKG generation process described above for binary classification tasks: (i) in-hospital mortality, (ii) 30-day readmission, and (iii) heart-failure diagnosis. All tasks operate on identical visit-centric representations while respecting the exact chronological order of admissions, thereby capturing both intra-admission relational semantics and inter-admission temporal dynamics. The overall framework consists of two complementary stages, as shown in Figure 4. First, a graph encoder aggregates multi-type relational information from the PHKG to produce visit-level embeddings. Second, a sequential decoder processes the ordered visit embeddings after explicit augmentation with temporal spacing features, generating admission-level predictions. This design ensures that variable time intervals between hospitalizations—clinically meaningful indicators of disease progression or stability—are directly encoded rather than inferred solely from sequence position.

3.1. Heterogeneous Encoder

The graph encoder Encoder ( · ) operates exclusively on visit subgraphs to capture intra-visit relationships between medical concepts. Let V comprise all visit nodes v p t and concept nodes. Each node u V receives an initial feature vector x u R d formed by a learnable identity embedding, textual semantic embeddings e c (from a sentence transformer) for all concept nodes, and—for laboratory nodes—an additional numerical projection q c (two-layer MLP with ReLU) of the raw scalar measurement as before. These features for patient p assemble into the matrix X p with which the encoder then computes visit representations as follows:
H p = Encoder ( X p , G ) ,
where G = ( V , E , R ) as the patient health knowledge graph as before and H p = [ h v p 1 , , h v p T ] , padded to length T with masking vectors. Visit embeddings h v p t R d are extracted from H p for feature enrichment, each representing the patient’s clinical state during admission t.
To capture irregular time intervals between hospital admissions—a clinically critical signal reflecting disease progression, recovery, or acute decompensation—the model incorporates time-delta features. Let Δ t p , t denote the number of days between visits t 1 and t (extracted from admittime timestamps in the MIMIC-III ADMISSIONS table). By convention, Δ t p , 1 = 0 for the first admission of each patient. The normalized temporal feature is given as follows:
Δ t ˜ p , t = log ( Δ t p , t + 1 ) .
The logarithmic transformation compresses the extremely wide dynamic range of real-world inter-admission intervals (from same-day transfers to multi-year gaps) into a numerically stable scalar, preventing large values from dominating gradients while preserving relative ordering. This scalar is expanded into a low-dimensional embedding and concatenated with the visit representation:
h ˜ p , t = [ h v p t g ( Δ t ˜ p , t ) ] ,
where g ( · ) is a learnable two-layer MLP with ReLU activation that projects the normalized interval into the same space as the visit embedding. Concatenation explicitly injects absolute timing information into every decoder step, enabling the model to learn that short Δ t values often correlate with elevated readmission or mortality risk, while long intervals indicate stabilization. This augmentation is applied uniformly before any sequential processing, guaranteeing compatibility with both recurrent and attention-based decoders.
Four representative architectures are utilized for the encoder stage, each producing d-dimensional visit embeddings strictly on the visit subgraphs. A summary of these modules are shown in Table 4. The layer-wise update rules follow standard conventions and each variant is chosen to span distinct aggregation paradigms, allowing for systematic quantification of how different message-passing mechanisms interact with the heterogeneous clinical topology.
Graph Convolutional Network (GCN)—this operator performs symmetric normalized aggregation for visit nodes using the neighbourhood of its given medical concepts through:
h v ( l + 1 ) = σ D ˜ 1 / 2 A ˜ D ˜ 1 / 2 H ( l ) W ( l ) ,
where A ˜ = A + I adds self-loops to adjacency matrix A and D ˜ is the corresponding degree matrix; superscript l denotes layer index; and σ is a non-linear activation function. This formulation implements a localized first-order approximation of spectral convolution. Degree-normalized aggregation stabilizes training on graphs with highly variable node degrees (common in clinical settings where frequently prescribed medications connect to many visits), while self-loops preserve a node’s own identity and mitigate over-smoothing across layers.
Graph Attention Network (GAT)—this module employs multi-head self-attention to incorporate short- and long-term influences while updating nodes. For each attention head k, the output representations at layer l is given by:
h v ( l + 1 ) = σ u N ( v ) α v u k W k h u ( l ) ,
where W are learnable parameters, and N is the set of neighbors, with attention coefficients computed as follows:
α v u k = exp ( LeakyReLU ( a k [ W k h v ( l ) W k h u ( l ) ] ) ) w N ( v ) exp ( LeakyReLU ( a k [ W k h v ( l ) W k h w ( l ) ] ) ) .
The learned attention weights α v u k dynamically assign importance to neighbors (e.g., an abnormal laboratory result receives a higher weight than a routine procedure), while multiple heads capture diverse relational perspectives. The concatenation operation ∥ preserves expressive capacity without forcing early averaging of attention heads.
Relational Graph Convolutional Network (RGCN)—in order to support multiple relation types R common in clinical patient graph, the RGCN applies relation-specific transformations given by:
h v ( l + 1 ) = σ r { r M , r O , r R } u N r ( v ) 1 c v , r W r ( l ) h u ( l ) + W 0 ( l ) h v ( l ) ,
where c v , r normalizes by neighborhood size under relation r and W r ( l ) represents relation-specific weight matrices. This design explicitly differentiates information flow from medications, laboratories, and procedures—crucial in a heterogeneous knowledge graph—while the self-loop term W 0 retains node identity.
Graph Isomorphism Network (GIN)—this module enhances the representation learning using visit nodes through updates given by:
h v ( l + 1 ) = MLP ( l ) ( 1 + ϵ ( l ) ) h v ( l ) + u N ( v ) h u ( l ) ,
followed by batch normalization and a multi-layer perceptron. The injective aggregation ( 1 + ϵ ) h v + h u combined with an MLP makes GIN provably equivariant with respect to symmetric properties, enabling it to distinguish subtle structural differences among clinical admission patterns.

3.2. Sequential Decoder

The augmented visit embeddings are processed by a sequential decoder Decoder ( · ) that models longitudinal dependencies and produces prediction logits for each admission. Given enriched and sequential visit features H ˜ p = [ h ˜ v p 1 , , h ˜ v p T ] for patient p, the decoder computes the patient-level representations (i.e., readouts) as follows:
Z p = Decoder ( H ˜ p ) ,
where admission logits z p , t R d are updated using a sequential decoder of choice. We employ three different architectures as follows, a summary of which is shown in Table 4.
Recurrent Decoders—in order to capture the progression of patient visits, at time step t, the hidden state corresponding to visit-specific representations with feature enhancement is updated as follows:
s t = RNN ( h ˜ p , t , s t 1 ) ,
where s t represents the patient’s latent clinical state after the t-th admission. The hidden state is projected to prediction logits via:
z p , t = W o s t + b o .
Here, W o is a set of learnable weights and b o is the bias term. Long-Short Term Memory (LSTM) maintains a dedicated cell state to retain long-range temporal context across irregular admission gaps, while Gated Recurrent Unit (GRU) offers parameter-efficient gating suitable for shorter patient trajectories; both architectures now directly condition gating on the explicit time-delta embedding, allowing the model to modulate memory retention based on elapsed time since the prior visit.
Transformer Decoder—as an alternative, a Transformer can be considered to model the patient trajectories present across PHKG. After adding positional encodings, the input sequence to the Transformer is defined as Z ( 0 ) = [ h ˜ p , 1 + p 1 , , h ˜ p , T + p T ] , where p t denotes learnable positional encodings. Stacked self-attention layers then compute as follows:
Z ( l ) = MultiHeadAttn ( Z ( l 1 ) ) + Z ( l 1 ) ,
with a multi-head attention network at layer l, followed by feed-forward transformations:
Z ( l ) = FFN ( Z ( l ) ) + Z ( l ) .
Self-attention allows each visit to attend to all previous admissions. The explicit time-delta embeddings supplement the learned positional encodings, supplying absolute interval magnitudes that pure ordinal position cannot convey and enabling the Transformer to discover clinically meaningful temporal patterns (e.g., rapid readmissions) across arbitrary sequence lengths. In Figure 5, the components of the model, including trainable textual and temporal MLP modules along with input and output representations, are viewed.

3.3. Task-Specific Prediction

Combining the encoder and decoder, the prediction for each visit is computed as follows:
y ^ p , t = σ f θ ( { h p , t } t = 1 T ) ,
where σ ( · ) is the sigmoid function and f θ ( ) is the end-to-end trainable model with parameter set θ taken over both the encoder and decoder of choice. This formulation ensures that every prediction is conditioned on the full history of enriched visit embeddings up to time t, with both textual semantic context and explicit temporal spacing fully integrated. All encoder–decoder combinations are trained end-to-end. Model parameters θ (including all GNN weights W ( l ) , decoder weights, embedding matrices, time-projection MLP g , and output projection W o ) are updated via stochastic gradient descent on the task-specific losses defined below. Gradients are computed through the full computational graph—from node feature initialization, through graph message passing, temporal augmentation, sequence processing, and final sigmoid activation—using automatic differentiation.
This unified optimization allows the graph encoder, temporal feature projector, and sequential decoder to co-adapt, jointly learning clinically meaningful representations from raw EHR data. For each task, we optimize the model parameters independently using the following objective functions. The in-hospital mortality task is formulated as binary classification at the visit level. The loss is the average binary cross-entropy over all training visits N = | V train | :
L Mx = 1 N p , t y p , t log y ^ p , t + ( 1 y p , t ) log ( 1 y ^ p , t ) ,
where y p , t { 0 , 1 } is the ground-truth mortality indicator and y ^ p , t = σ ( z p , t ) is the model-predicted probability. The readmission task uses an identical binary cross-entropy formulation:
L Rx = 1 N p , t y p , t log y ^ p , t + ( 1 y p , t ) log ( 1 y ^ p , t ) .
The final admission of each patient is excluded from this loss because no subsequent visit exists for comparison. Lastly, heart-failure diagnosis is treated as a binary classification problem (having one of the HF ICD-9 codes) with a loss that averages over both visits and labels:
L Dx = 1 N C p , t c = 1 C y p , t , c log y ^ p , t , c + ( 1 y p , t , c ) log ( 1 y ^ p , t , c ) .
where C is the number of heart-failure diagnosis codes. This formulation ensures balanced supervision across rare and common codes while enabling multi-task learning when combined with the other objectives. The overall optimization framework is shown in Algorithm 1. In the next section, we carry out experiments in order to demonstrate how graph aggregation and sequential modeling jointly improve performance. We use standard AUROC and AUPRC metrics to evaluate mortality and readmission prediction at patient level as a binary classification task. For diagnosis prediction, multiple diagnosis codes are aggregated into a single binary label indicating the presence or absence of HF, for which a binary F1-score is reported.
Algorithm 1 Sequential Graph Neural Network
Require: 
PHKG G = ( V , E , R ) , patient set P , maximum sequence length T, time-deltas { Δ t p t }
Ensure: 
Visit-level predictions { y ^ p , t }
   
# Step 1: Initialize node features
1:
for each node u V  do
2:
     x u learnable embedding of u
3:
    if u is a concept node then
4:
         x u [ x u e u ]                                                                         ▹ Text Embedding
5:
        if u is a lab observation node then
6:
            x u [ x u q u ]                                                                 ▹ Numerical Projection
7:
        end if
8:
    end if
9:
end for
   
# Step 2: Graph encoding
10:
for each patient p P  do
11:
     H p Encoder ( X p , G )                                                                  ▹ Message Passing
12:
    Extract visit-level embeddings: h v p t
13:
    Augment embeddings: h ˜ v p t = [ h v p t g ( Δ t p t ) ]
14:
end for
    
# Step 3: Sequential decoding
15:
for each patient p P  do
16:
     Z p = Decoder ( H ˜ p )                                                                ▹ Temporal Reasoning
17:
    Extract visit-level logits: z p , t
18:
end for
    
# Step 4: Generate predictions
19:
for each patient p do
20:
     y ^ p , t σ ( z p , t )
21:
    Compute gradients: L D x , L M x , and L R x                 ▹ Representation Learning
22:
    Update model f θ ( . ) : Decoder ( Encoder ( . ) )
23:
end for
    
# Step 5: Return visit-level predictions
24:
return  { y ^ p , t }

4. Experimentation

The dataset used in this study is derived from the MIMIC-III clinical database. Hospital admissions are linked with encoded visit representations and each admission is treated as a visit node, and patient histories are represented as sequences of visits ordered by admission time. To reconstruct longitudinal care trajectories, admissions for each patient are ordered chronologically based on admission time. Since patients exhibit heterogeneous numbers of admissions, visit sequences are padded to a fixed maximum length T = 16 to enable batch processing during model training. Corresponding masking vectors are used to identify valid visits and distinguish them from padded positions. Text attribute embeddings are obtained using the sentence transformer (pretrained) [29].
In our experiments, three clinical tasks are considered in a supervised learning setting with labels extracted as described in Section 2.3. For each task, we first perform a grid search of model configurations on a held-out set of 154 patients to evaluate the impact of architectural choice. The grid spans three embedding dimensions (30, 100, 300), four graph encoders (GCN/GAT/RGCN/GIN subset), three sequence decoders (GRU, LSTM, Transformer), and varying network depths (1, 3, 5, 10 layers for both encoder and decoder), resulting in over 570 configurations, as shown in Figure 6. Each point in the plot corresponds to the maximum mean accuracy (MMA) between AUPRC and AUROC scores per configuration. The best configuration based on the MMA scores is selected for the main results, as shown in Table 5. Average training time is also reported in seconds per epoch.
For the main results, the remaining data are partitioned in 80/20 train–test splits at the patient level, preventing information leakage across patient trajectories, for a total of 8000 training and 2000 test patients (excluding 154 validation patients). All models are trained for 100 epochs using the Adam optimizer (lr = 0.001) and on an NVIDIA A100 GPU system, repeated over five runs with random initialization. We use a feature dimension size of 32 for text and numerical embeddings, and hidden dimensions of 512 and 128 in all encoders and decoders, respectively, with a dropout value of 0.2. The encoder output dimension is set to 256, and, 4 attention heads are used in case of GAT and transformers. All other encoder and decoder parameters are set as default.
State-of-the-art methods for clinical prediction for comparison in this work are selected, which rely on deep sequential models, attention mechanisms, and graph-based learning to capture the temporal and structural complexity of EHRs. As a sequence-based architecture, Dipole [10] employs bidirectional recurrent neural networks to model patient visit sequences, and RETAIN [9] introduces a reverse-time attention mechanism to improve interpretability while predicting clinical outcomes. Among other sequential methods, HiTANet [11] incorporates hierarchical time-aware attention to capture irregular time intervals between visits, while StageNet [13] leverages LSTM-based architectures to explicitly model disease progression stages. Other methods focus on adaptive feature extraction and patient similarity learning, such as AdaCare [12], which dynamically recalibrates clinical features, and GRASP [14], which learns patient representations by exploiting similarities across patient trajectories. Additionally, ManyDG [17] uses variational autoencoders to improve generalization across clinical tasks.
More recent approaches increasingly integrate external knowledge and graph structures; CGL [15] and KGxDP [16] represent codified data as patient knowledge graphs for reasoning and further incorporate clinical notes to enhance diagnosis prediction; however, these do this without an explicit learnable time component or numerical integration. The approaches in TCEM [21] and KCIF [19] adopt temporal heterogeneous graphs to capture interactions among medical entities and numerical values extracted from patient health knowledge graphs; however, these do this without textual side information. Temporal and context-driven predictions using relate-aware transformers and large language models (LLMs) are further explored in HEART [18] and DemGraph [20], respectively; however, these do this without an explicit time-dependence component.
Collectively, these methods demonstrate a variety of design options toward hybrid frameworks that combine knowledge-aware graph learning, multi-type integration, and temporal modeling to better represent the complex, multi-relational structure of healthcare data. The details of which specific components are included among these methods in terms of Learnable Temporal Component (LTC), task coverage (Diagnosis, Readmission, and Mortality), multi-modal input integration (Codified, Numerical, and Textual), Knowledge Graph capability for reasoning (KG), and Uncertainty Quantification (UQ) are shown in Table 6.
The results in Table 7 compare the proposed SeqGNN with the above state-of-the-art baselines across clinical prediction tasks. For mortality prediction (Mx), SeqGNN achieves the highest AUPRC (20.7), outperforming prior baselines in terms of precision–recall performance. In terms of AUROC, it scores lower than the best-performing baseline, ManyDG (66.3), with StageNet (61.5) as the second best. In readmission prediction (Rx), SeqGNN attains the best AUROC (71.5), improving over the previous best model ManyDG (68.6). It achieves comparable AUPRC (68.5), on par with DemGraph (68.7). For the diagnosis prediction task (Dx), SeqGNN achieves the highest AUROC (93.1) and F1-score (79.1), surpassing the previous best model KCIF (AUROC 87.5, F1 Score 75.7). Overall, these results demonstrate that SeqGNN consistently achieves competitive performance and generalization across multiple clinical tasks, with patient knowledge graph integration and trainable temporal components.
To further evaluate the impact of different text embedding methods, we conducted an experiment using the validation set with a lightweight SeqGNN, configured by a single graph encoder layer and a single sequence decoder layer, using a GIN encoder and a Transformer-based decoder, and a reduced embedding dimension of 30. Multiple embedding methods, including the sentence transformer (SenTrans) [30], Long-Document Transformer (longformer) [31], Word2Vec [32], and One–Hot encoding of data, were evaluated under identical training conditions. Performance was assessed using AUROC and F1 for diagnosis prediction, and AUROC and AUPRC for readmission prediction, with the results reported in Table 8 as mean and standard deviation across five runs. These results demonstrate the advantage of using sentence transformer, with statistically significant improvements as measured via the Cohen’s d coefficient.

4.1. Uncertainty Quantification and Model Calibration

To evaluate the reliability of the graph neural network predictions for heart-failure diagnosis codes, we implement an ensemble-based uncertainty quantification framework. Ten independent models ( K = 10 ), each with identical architecture, were trained from different random initializations for 100 epochs each. Predictive probabilities on the held-out test set were collected across all ensemble members, enabling separate quantification of epistemic uncertainty (model disagreement) and aleatoric uncertainty (inherent data stochasticity). The results are detailed in the following subsections.

4.1.1. Ensemble ROC

For each task, the AUROC curves are shown in Figure 7 using the 10-SeqGNN ensemble. It can be observed that for the task of HF diagnosis, the highest AUROC is reached at 0.97 with small cross-model variance. This suggests that the ensemble setting improves model confidence while increasing performance. A similar pattern is observed for 30-day readmission prediction where the SeqGNN members consistently perform determining the outcome given patient representations. In the case of mortality, however, high variance and low rates indicate uncertainty in predictions (close to a random classifier) among ensemble members and suggest the need for further tuning for practical usage.

4.1.2. Model Calibration

To evaluate whether the model reproduces the empirical mortality characteristics across diagnosis codes, a subgroup calibration analysis is performed [33]. First, the observed mortality rate is computed for each diagnosis code using the evaluation dataset. For a given code, the empirical mortality rate is defined as the proportion of admissions associated with that code that resulted in in-hospital death. The trained model is applied to the same evaluation set to obtain predicted mortality probabilities for each admission. For each diagnosis code, all admissions containing that code are grouped together, and the mean predicted probability of mortality across those admissions is calculated. This average predicted probability represents the model’s expected mortality rate for patients associated with that diagnosis code.
The calibration analysis, shown in Figure 8 (left), indicates that the model’s predictions are highly consistent with the observed mortality rates across HF diagnosis codes. For each ICD-9 code, the predicted rate (derived from model accuracy) closely matches the empirically observed mortality rate, with absolute errors close to zero. This implies that, at the diagnosis-code level, the proportion of predicted positive outcomes aligns almost perfectly with the true outcome frequency in the dataset. Furthermore, this pattern holds across common codes (e.g., 4280 with 2618 admissions) as well less frequent codes, suggesting stable calibration even when admission counts vary. Overall, these results indicate that the model’s probability estimates are well calibrated with respect to HF diagnosis groups; however, the model underpredicts for mortality task.
The calibration analysis for the readmission prediction model in Figure 8 (right) shows that for common ICD-9 codes with sufficient samples, the predicted accuracies are generally close to the observed readmission rates, indicating reasonable calibration. However, for rare codes with small counts (e.g., 42,821, 42,841, 4281), the model tends to over- or underpredict, leading to larger deviations from perfect calibration. Overall, the model demonstrates partial calibration, with reliable predictions primarily for the more frequent HF codes, while predictions for infrequent codes are less stable and overconfident.
Post hoc calibration was applied to assess the reliability of the model’s probability outputs, as shown in Table 9. For the diagnosis task, both Temperature Scaling and Platt Scaling yielded modest improvements in calibration, with Platt Scaling achieving the lowest ECE (0.018 versus 0.029 uncalibrated) while maintaining the same high AUPRC of 0.91. For the readmission task, calibration provided marginal benefits, reducing ECE from 0.031 to approximately 0.026–0.027, with no change in AUPRC (0.84). The most substantial improvement was observed for mortality prediction, where both calibration methods dramatically reduced ECE from 0.021 to below 0.001, accompanied by a slight increase in AUPRC from 0.111 to 0.112. Overall, these results demonstrate that post hoc calibration effectively improves probability calibration—particularly for more challenging tasks such as mortality prediction—without compromising discriminative performance learned through the patient knowledge graphs using SeqGNN.

4.1.3. Predictive Variance

Epistemic uncertainty is assessed via predictive variance, defined as the sample variance of output probabilities across the 10 ensemble members for each test instance and diagnosis code. Variance distributions were visualized in Figure 9a, using kernel density estimate with and stratified by ground-truth label (positive vs. negative). Negative instances consistently exhibited low variance (mean ≈ 0.002–0.005), reflecting high ensemble agreement. Positive instances, which are far rarer in the test set, displayed moderately higher variance (mean ≈ 0.004–0.008), indicating greater model uncertainty when confirming specific heart failure phenotypes. The overall low variance magnitudes suggest reasonable model stability given the small cohort size.

4.1.4. Predictive Probability

The spread of predicted probabilities across ensemble runs provides direct insight into model confidence and output stability, as shown in Figure 9b. Probability distributions for negative instances were tightly concentrated near zero (mean ≈ 0.05–0.15), whereas positive instances received substantially higher mean probabilities (typically 0.6–0.8 for prevalent codes such as 4280 and 42821) for diagnosis and readmission tasks. Narrow distributions for the dominant code 4280 (present in all test samples), but wider spreads for rare subtypes, consistent with greater uncertainty on infrequent labels are observed. These patterns indicate that the ensemble produces conservative probability assignments for minority classes, which is clinically desirable but highlights the need for confidence-based filtering to improve.

4.1.5. Predictive Entropy

Aleatoric uncertainty as shown in Figure 9c, is quantified using predictive entropy, computed as the binary cross-entropy of the ensemble mean probability averaged over diagnosis codes for each test sample as follows:
H ( p ¯ ) = p ¯ log p ¯ ( 1 p ¯ ) log ( 1 p ¯ ) ,
where p ¯ is the mean probability across runs. It can be seen that the mean entropy values increases from diagnosis to mortality, consistent with above findings. Entropy thus complements variance by isolating irreducible data-driven uncertainty, offering clinicians a complementary signal for identifying cases that may warrant additional diagnostic review. The overall per-sample entropy values followed a unimodal distribution with mean ≈ 0.35 bits, indicating moderate intrinsic stochasticity in the heart failure cohort.

5. Discussion

In this section, we discuss the key findings of this study and provide answers to the three research questions (RQ) initially posed that examine the role of model design, confidence, and uncertainty in shaping the performance and reliability of SeqGNNs for clinical prediction tasks. Together, these analyses provide insight into not only how these models perform, but also how their behavior can inform model development and deployment in real-world clinical settings.
[RQ1]: Which components of sequential and longitudinal EHR modeling (temporal learning, multimodal fusion, and knowledge graph integration) are most influential for each clinical prediction task, and how effectively does a unified architecture combine these components across diagnosis, readmission, and mortality prediction? By comparing SeqGNN with a broad range of prior models that selectively incorporate temporal dynamics, modality-specific encoders, and knowledge graph structure, we can identify which modeling components are most effective for each clinical task and how well they transfer when unified in a single architecture.
For diagnosis prediction, the results show that strong performance is primarily driven by rich temporal modeling combined with structured knowledge graph integration, as SeqGNN achieves the highest MMA score of 86.1 (with AUROC 93.1 and F1 score 79.1), outperforming prior static, graph-enhanced and transformer-based models, indicating that fine-grained temporal dependency modeling is particularly critical for capturing diagnostic patterns. In this case, the second highest prior is achieved by KCIF, which uses patient graphs with MMA score of 81.6 (see Table 1), a decrease of 4.5 points in MMA, attributed to the lack of textual integration (see Table 6). Among prior models that do include an LTC, namely DIPOL, RETRAIN, and CGL, with MMA scores of 76.2, 77.2, and 79.2 respectively, undesirable decreases in performance for onset diagnosis prediction are observed. Among prior models that do not utilize patient knowledge graphs explicitly, HiTANet achieves the highest MMA score of 77.3, a further reduction of 8.75 points. TCEM, as a prior model that utilizes knowledge graphs representations, without textual or numerical integration, achieves an MMA of 79.9, signifying the added value from both knowledge graph and multi-modal integration. These findings highlight the importance of learnable MLP and integrated components combined with patient knowledge graph representations as proposed by SeqGNN.
For readmission prediction, similar improvements are observed associated with the integration of temporal progression modeling and patient-level structural context, where SeqGNN achieves the best AUROC (71.5) and remains competitive in AUPRC, suggesting the value in capturing longitudinal disease evolution and inter-event relationships. In particular, DemGraph, with a score of 71.3, exhibits a decrease of 2.35 in MMA due to the lack of an LTC. For mortality prediction, on the other hand, the most influential component appears to be multimodal signal integration, indicating that while structured and temporal components improve sensitivity to rare outcomes, mortality prediction remains highly sensitive to class imbalance and may require more specialized discriminative modeling. Overall, these findings show that temporal learning is beneficial, knowledge graphs enhance structured reasoning, and multimodal integration improves sensitivity in rarer outcomes. The proposed SeqGNN demonstrates that combining all components as such yields stronger generalization.
[RQ2]: What further insights do uncertainty and calibration analyses reveal about the reliability, limitations, and predictive behavior of the proposed SeqGNN architecture across clinical tasks? Uncertainty and calibration analyses provide a deeper understanding of model behavior beyond aggregate metrics, revealing where predictions are reliable and where limitations arise. Epistemic uncertainty, measured through ensemble variance, shows that the model is highly stable for negative cases and common diagnostic patterns, but exhibits increased uncertainty for positive and rare phenotypes, indicating that prediction difficulty is concentrated in clinically complex or underrepresented regions. Aleatoric uncertainty, captured via predictive entropy, further highlights that mortality prediction, with an entropic value around 0.5, is inherently more uncertain than diagnosis and readmission (see Figure 9), suggesting fundamental limits in predictability given the available data. Calibration analysis reinforces these findings: while diagnosis and readmission tasks are reasonably well calibrated—especially for frequent ICD-9 codes—mortality predictions show greater miscalibration and benefit significantly from post hoc correction (see Table 9). Overall, these analyses show that SeqGNN models are reliable in routine settings but less so in rare, high-risk scenarios, making uncertainty quantification an essential diagnostic tool for identifying model blind spots and guiding targeted improvements.
[RQ3]: To what extent can the relationship between encoder–decoder configurations, uncertainty, and performance inform future model deployment in decision support systems that rely on patient knowledge graphs and sequential modeling? The above findings highlight promising directions for leveraging confidence-aware modeling towards clinical deployment. Given that low correlations are present between patient records and outcomes based on the tasks studied in this work (see Figure 2), the addition of knowledge graph representation for patient visit trajectories is a recommended choice, as evident in the above analysis (see Table 1). Furthermore, various parameter settings and configurations are evaluated and found to be important in selecting final models (see Figure 6) as measured by the MMA scores on validation data. Such model variations combined with ensemble SeqGNNs strategies can be systematically incorporated into decision-making frameworks, such as deferring low-confidence predictions, prioritizing high-confidence cases, or integrating human-in-the-loop validation for uncertain outcomes. Further research is needed to investigate how confidence–performance relationships behave utilizing these methods in practice as well as under distribution shifts, class imbalance, and external validation cohorts, ensuring robustness in diverse clinical environments. Ultimately, these directions point toward the development of confidence-aware deployment strategies that enhance the safety, interpretability, and trustworthiness of clinical prediction systems.

6. Conclusions

In this work, we presented SeqGNN, a sequential graph neural network framework designed to model temporal patient trajectories within a heterogeneous clinical knowledge graph. By integrating graph-based representation learning with sequential modeling, the proposed approach captures both the structural relationships among clinical entities and the temporal evolution of patient visits. The model was evaluated on three clinically relevant prediction tasks—heart-failure onset diagnosis, 30-day readmission, and in-hospital mortality—using electronic health record data derived from the MIMIC-III database. The experimental results demonstrate that SeqGNN achieves state-of-the-art performance for diagnosis and readmission prediction while also providing considerable improvements in precision–recall performance for mortality prediction compared with several established baselines. In particular, the model achieved the highest AUROC and F1 score for diagnosis prediction, highlighting the benefits of jointly leveraging graph structure and temporal patient information. Future work will focus on incorporating additional clinical modalities such as clinical notes and imaging data and validating the proposed framework on larger and more diverse patient cohorts in a multi-center setting to further assess its robustness and generalizability in real-world clinical settings.

Author Contributions

S.M. prepared and analyzed the data, designed models and experiments, and executed experiments. M.D. supervised the project, managed funding. All authors wrote, edited, read and approved the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Horizon Europe Framework Program (Grant agreement No: 101057062), project AIDAVA (AI powered Data Curation & Publishing Virtual Assistant).

Data Availability Statement

Public datasets are used and referenced in the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Sun, Z.; Yin, H.; Chen, H.; Chen, T.; Cui, L.; Yang, F. Disease Prediction via Graph Neural Networks. IEEE J. Biomed. Health Inform. 2021, 25, 818–826. [Google Scholar] [CrossRef] [PubMed]
  2. Wu, T.; Wang, Y.; Wang, Y.; Zhao, E.; Yuan, Y. Leveraging graph-based hierarchical medical entity embedding for healthcare applications. Sci. Rep. 2021, 11, 5858. [Google Scholar] [CrossRef] [PubMed]
  3. Yang, C.; Xiao, C.; Glass, L.; Sun, J. Change Matters: Medication Change Prediction with Recurrent Residual Networks. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, Montreal, Canada; International Joint Conferences on Artificial Intelligence: Bremen, Germany, 2021; pp. 3728–3734. [Google Scholar] [CrossRef]
  4. Fouladvand, S.; Gomez, F.R.; Nilforoshan, H.; Schwede, M.; Noshad, M.; Jee, O.; You, J.; Sosic, R.; Leskovec, J.; Chen, J. Graph-based clinical recommender: Predicting specialists procedure orders using graph representation learning. J. Biomed. Inform. 2023, 143, 104407. [Google Scholar] [CrossRef] [PubMed]
  5. Mao, C.; Yao, L.; Luo, Y. MedGCN: Medication recommendation and lab test imputation via graph convolutional networks. J. Biomed. Inform. 2022, 127, 104000. [Google Scholar] [CrossRef] [PubMed]
  6. Ferraz, L.; Cotovio, P.G.; Pesquita, C. Can Language Models Align Biomedical Ontologies?: Evaluating Retrieval-Augmented Prompt Strategies in Bio-ML. In Proceedings of the 8th Workshop on Semantic Web Solutions for Large-Scale Biomedical Data Analytics, Portorož, Slovenia, 1 June 2025. [Google Scholar]
  7. Zhang, X.M.; Liang, L.; Liu, L.; Tang, M.J. Graph Neural Networks and Their Current Applications in Bioinformatics. Front. Genet. 2021, 12, 690049. [Google Scholar] [CrossRef] [PubMed]
  8. Mohamed, S.K.; Nounu, A.; Nováček, V. Biological applications of knowledge graph embedding models. Brief. Bioinform. 2021, 22, 1679–1693. [Google Scholar] [CrossRef] [PubMed]
  9. Choi, E.; Bahadori, M.T.; Sun, J.; Kulas, J.; Schuetz, A.; Stewart, W. Retain: An interpretable predictive model for healthcare using reverse time attention mechanism. In Advances in Neural Information Processing Systems 29 (NIPS 2016); Curran Associates, Inc.: Red Hook, NY, USA, 2016; Volume 29. [Google Scholar]
  10. Ma, F.; Chitta, R.; Zhou, J.; You, Q.; Sun, T.; Gao, J. Dipole: Diagnosis Prediction in Healthcare via Attention-based Bidirectional Recurrent Neural Networks. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’17; Association for Computing Machinery: New York, NY, USA, 2017; pp. 1903–1911. [Google Scholar] [CrossRef]
  11. Luo, J.; Ye, M.; Xiao, C.; Ma, F. HiTANet: Hierarchical Time-Aware Attention Networks for Risk Prediction on Electronic Health Records. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD ’20; Association for Computing Machinery: New York, NY, USA, 2020; pp. 647–656. [Google Scholar] [CrossRef]
  12. Ma, L.; Gao, J.; Wang, Y.; Zhang, C.; Wang, J.; Ruan, W.; Tang, W.; Gao, X.; Ma, X. Adacare: Explainable clinical health status representation learning via scale-adaptive feature extraction and recalibration. In Proceedings of the AAAI Conference on Artificial Intelligence; PKP Publishing Services Network: Burnaby, BC, Canada, 2020; Volume 34, pp. 825–832. [Google Scholar]
  13. Gao, J.; Xiao, C.; Wang, Y.; Tang, W.; Glass, L.M.; Sun, J. StageNet: Stage-Aware Neural Networks for Health Risk Prediction. In Proceedings of the Web Conference 2020, WWW ’20; Association for Computing Machinery: New York, NY, USA, 2020; pp. 530–540. [Google Scholar] [CrossRef]
  14. Zhang, C.; Gao, X.; Ma, L.; Wang, Y.; Wang, J.; Tang, W. GRASP: Generic framework for health status representation learning based on incorporating knowledge from similar patients. In Proceedings of the AAAI Conference on Artificial Intelligence; PKP Publishing Services Network: Burnaby, BC, Canada, 2021; Volume 35, pp. 715–723. [Google Scholar]
  15. Lu, C.; Reddy, C.K.; Chakraborty, P.; Kleinberg, S.; Ning, Y. Collaborative Graph Learning with Auxiliary Text for Temporal Event Prediction in Healthcare. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21; Zhou, Z.H., Ed.; International Joint Conferences on Artificial Intelligence Organization: Darmstadt, Germany, 2021; pp. 3529–3535. [Google Scholar] [CrossRef]
  16. Yang, Z.; Lin, Y.; Xu, Y.; Hu, J.; Dong, S. Interpretable Disease Prediction via Path Reasoning over medical knowledge graphs and admission history. Knowl.-Based Syst. 2023, 281, 111082. [Google Scholar] [CrossRef]
  17. Yang, C.; Westover, M.B.; Sun, J. ManyDG: Many-domain Generalization for Healthcare Applications. In Proceedings of the The 11th International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
  18. Huang, T.; Rizvi, S.A.; Thakur, R.K.; Socrates, V.; Gupta, M.; van Dijk, D.; Taylor, R.A.; Ying, R. HEART: Learning better representation of EHR data with a heterogeneous relation-aware transformer. J. Biomed. Inform. 2024, 159, 104741. [Google Scholar] [CrossRef] [PubMed]
  19. Yang, Z.; He, S.; Chen, Z.; Zhang, H.; Wang, R. Knowledge-Enhanced Complementary Information Fusion with Temporal Heterogeneous Graph Learning for Disease Prediction. In Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention; Springer: Berlin/Heidelberg, Germany, 2025; pp. 426–436. [Google Scholar]
  20. Feng, Y.; Chan, T.H.; Yin, G.; Yu, L. Democratizing large language model-based graph data augmentation via latent knowledge graphs. Neural Netw. 2025, 191, 107777. [Google Scholar] [CrossRef] [PubMed]
  21. Li, Q.; Li, Z. Two level time-aware network for clinical event prediction. Eng. Appl. Artif. Intell. 2026, 164, 113259. [Google Scholar] [CrossRef]
  22. Kipf, T.N.; Welling, M. Semi-supervised classification with graph convolutional networks. arXiv 2016, arXiv:1609.02907. [Google Scholar]
  23. Veličković, P.; Cucurull, G.; Casanova, A.; Romero, A.; Liò, P.; Bengio, Y. Graph Attention Networks. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  24. Xu, K.; Hu, W.; Leskovec, J.; Jegelka, S. How Powerful are Graph Neural Networks? In Proceedings of the International Conference on Learning Representations, New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
  25. Schlichtkrull, M.; Kipf, T.N.; Bloem, P.; Van Den Berg, R.; Titov, I.; Welling, M. Modeling relational data with graph convolutional networks. In Proceedings of the European Semantic Web Conference; Springer: Berlin/Heidelberg, Germany, 2018; pp. 593–607. [Google Scholar]
  26. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
  27. Cho, K.; Van Merriënboer, B.; Gulçehre, Ç.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning phrase representations using RNN encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP); Association for Computational Linguistics: Stroudsburg, PA, USA, 2014; pp. 1724–1734. [Google Scholar]
  28. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30. [Google Scholar]
  29. Reimers, N.; Gurevych, I. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing; Association for Computational Linguistics: Hong Kong, China, 2019. [Google Scholar]
  30. Reimers, N.; Gurevych, I. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. arXiv 2019, arXiv:1908.10084. [Google Scholar] [CrossRef]
  31. Beltagy, I.; Peters, M.E.; Cohan, A. Longformer: The Long-Document Transformer. arXiv 2020, arXiv:2004.05150. [Google Scholar] [CrossRef]
  32. Mikolov, T.; Chen, K.; Corrado, G.; Dean, J. Efficient Estimation of Word Representations in Vector Space. arXiv 2013, arXiv:1301.3781. [Google Scholar] [CrossRef]
  33. Kubben, P.; Dumontier, M.; Dekker, A. (Eds.) Fundamentals of Clinical Data Science; Springer International Publishing: Cham, Switzerland, 2018. [Google Scholar] [CrossRef]
Figure 2. (a) Mortality rates and correlations, and (b) readmission rates and correlations, over the patient graphs generated from MIMIC III dataset with heart-failure diagnosis (in terms of ICD-9 codes). Number of associated admissions (n) and rates are displayed as super/sub scripts in each case.
Figure 2. (a) Mortality rates and correlations, and (b) readmission rates and correlations, over the patient graphs generated from MIMIC III dataset with heart-failure diagnosis (in terms of ICD-9 codes). Number of associated admissions (n) and rates are displayed as super/sub scripts in each case.
Electronics 15 02189 g002
Figure 3. Generation of Personal Health Knowledge Graph, visit sequences and labels based on the MIMIC III dataset. The input to sequential GNN is viewed as a sequence of visits for a given patient, each labeled with diagnosis (multi-label), mortality (binary), and readmission (binary) labels. Each visit node is connected to related medication, observable, and procedure entities. Node features include text and numerical attributes.
Figure 3. Generation of Personal Health Knowledge Graph, visit sequences and labels based on the MIMIC III dataset. The input to sequential GNN is viewed as a sequence of visits for a given patient, each labeled with diagnosis (multi-label), mortality (binary), and readmission (binary) labels. Each visit node is connected to related medication, observable, and procedure entities. Node features include text and numerical attributes.
Electronics 15 02189 g003
Figure 4. Sequential Graph Neural Network graph encoders to obtain visit-level representations, masks to ensure inter-visit separability, and decoders to process sequential visits for downstream tasks.
Figure 4. Sequential Graph Neural Network graph encoders to obtain visit-level representations, masks to ensure inter-visit separability, and decoders to process sequential visits for downstream tasks.
Electronics 15 02189 g004
Figure 5. Task-specific trainable architecture of Sequential Graph Neural Network with parameterized literal and temporal blocks in order to produce visit- and patient-level representations for downstream tasks, namely mortality, readmission, and diagnosis prediction.
Figure 5. Task-specific trainable architecture of Sequential Graph Neural Network with parameterized literal and temporal blocks in order to produce visit- and patient-level representations for downstream tasks, namely mortality, readmission, and diagnosis prediction.
Electronics 15 02189 g005
Figure 6. Maximum mean accuracy (MMA) values for each configuration of embedding dimension and network depths. Each point shows the score for one configure per encoder–decoder type pairs and for each task, namely (a) diagnosis, (b) readmission, and (c) mortality prediction. (a) Diagnosis MMA Scores per Encoder-Decoder Configuration. (b) Readmission MMA scores per encoder–decoder configuration. (c) Mortality MMA scores per encoder–decoder configuration.
Figure 6. Maximum mean accuracy (MMA) values for each configuration of embedding dimension and network depths. Each point shows the score for one configure per encoder–decoder type pairs and for each task, namely (a) diagnosis, (b) readmission, and (c) mortality prediction. (a) Diagnosis MMA Scores per Encoder-Decoder Configuration. (b) Readmission MMA scores per encoder–decoder configuration. (c) Mortality MMA scores per encoder–decoder configuration.
Electronics 15 02189 g006
Figure 7. AUROC plots for different binary tasks—mortality, heart failure, and readmission. Shaded regions indicate standard deviation across runs.
Figure 7. AUROC plots for different binary tasks—mortality, heart failure, and readmission. Shaded regions indicate standard deviation across runs.
Electronics 15 02189 g007
Figure 8. Mortality (left) and readmission (right) calibration plots averaged with respect to heart-failure diagnosis (in terms of ICD-9 codes). Number of associated admissions (n) are shown corresponding to the size of each data point.
Figure 8. Mortality (left) and readmission (right) calibration plots averaged with respect to heart-failure diagnosis (in terms of ICD-9 codes). Number of associated admissions (n) are shown corresponding to the size of each data point.
Electronics 15 02189 g008
Figure 9. Uncertainty quantification on the results of an ensemble of SeqGNN’s with 10 members, including (a) predictive variances, (b) probabilities, and (c) predictive entropies (bottom) for heart failure related tasks, namely, mortality, readmission, and diagnosis, as binary classification.
Figure 9. Uncertainty quantification on the results of an ensemble of SeqGNN’s with 10 members, including (a) predictive variances, (b) probabilities, and (c) predictive entropies (bottom) for heart failure related tasks, namely, mortality, readmission, and diagnosis, as binary classification.
Electronics 15 02189 g009
Table 1. Summary of baseline models for clinical tasks-Dx: diagnosis, Rx: readmission, Mx: mortality.
Table 1. Summary of baseline models for clinical tasks-Dx: diagnosis, Rx: readmission, Mx: mortality.
AuthorYearAbbreviationMethodologyTask
Choi et al. [9]2016RETAINReverse AttentionDx, Rx, Mx
Ma et al. [10]2017DipoleBidirectional Recurrent Neural NetworkDx
Luo et al. [11]2020HiTANetHierarchical Time-aware Attention NetworkDx
Ma et al. [12]2020AdaCareSelf-adaptive feature-extraction and recalibrationRx, Mx
Gao et al. [13]2020StageNetLong-short-term memory with stage progressionRx, Mx
Zhange et al. [14]2021GRASPRepresentation learning with patient similaritiesRx, Mx
Lu et al. [15]2021CGLCollaborative graph learning with text and notesDx
Yang et al. [16]2023KGxDPPath reasoning over knowledge graphsDx
Yang et al. [17]2023ManyDGVariational autoencoderRx, Mx
Huang et al. [18]2024HEARTHeterogeneous relation-aware TransformerRx
Yang et al. [19]2025KCIFTemporal Heterogeneous Graph LearningDx
Feng et al. [20]2025DemGraphContext-driven Retrieval with Large Language ModelsRx
Li et al. [21]2026TCEMDisease co-occurrence with temporal GNNDx
Table 2. ICD-9 diagnosis codes used to identify heart failure admissions.
Table 2. ICD-9 diagnosis codes used to identify heart failure admissions.
ICD-9 CodeClinical Phenotype
428.00Congestive heart failure, unspecified
428.10Left heart failure
428.20Systolic heart failure, unspecified
428.21Acute systolic heart failure
428.22Chronic systolic heart failure
428.23Acute on chronic systolic heart failure
428.30Diastolic heart failure, unspecified
428.31Acute diastolic heart failure
428.32Chronic diastolic heart failure
428.33Acute on chronic diastolic heart failure
428.40Combined systolic and diastolic heart failure, unspecified
428.41Acute combined systolic and diastolic heart failure
428.42Chronic combined systolic and diastolic heart failure
428.43Acute on chronic combined systolic and diastolic heart failure
428.90Heart failure, unspecified
Table 3. Dataset statistics for patients with heart failure diagnosis from MIMIC III repository.
Table 3. Dataset statistics for patients with heart failure diagnosis from MIMIC III repository.
DescriptionSymbolOccurrences
HF Patients | P | 10,154
HF Admissions | V P | 13,608
Unique diagnosis codes | D p | 15
Unique observable codes | O p | 265
Unique medication codes | M p | 3498
Unique procedural codes | R p | 1192
Average diagnosis per visit | D p v p t | 1.52
Average observable per visit | O p v p t | 196
Average medication per visit | M p v p t | 43.9
Average procedure per visit | R p v p t | 4.84
Table 4. Summary of encoder and decoder architectures evaluated in this study. Encoders learn topology-aware node representations, whereas decoders map learned embeddings to task-specific outputs.
Table 4. Summary of encoder and decoder architectures evaluated in this study. Encoders learn topology-aware node representations, whereas decoders map learned embeddings to task-specific outputs.
ComponentArchitectural CharacteristicsMethodological Advantages
Encoders
GCN [22]Spectral graph convolution with normalized adjacency-based message passing; stacked layer propagationComputationally efficient; stable optimization; strong performance on homophilic graph structures
GAT [23]Multi-head self-attention applied to graph neighborhoods; adaptive attention coefficientsLearns importance weights for neighboring nodes; improved expressive capacity over static aggregation schemes
GIN [24]MLP-based aggregation with trainable scaling parameter; deep feature transformationHigh theoretical expressive power; strong ability to distinguish complex graph structures
RGCN [25]Relation-specific transformation matrices; multi-relational message passingExplicit modeling of heterogeneous edge types; well-suited for knowledge graphs and predicate-aware learning
Decoders
LSTM [26]Recurrent neural network with gated memory cells designed for sequential data modelingCaptures long-range temporal dependencies in patient visit sequences; effective for modeling longitudinal clinical trajectories
GRU [27]Gated recurrent unit architecture with simplified gating mechanism relative to LSTMComputationally efficient sequential modeling; fewer parameters while retaining strong temporal representation capacity
Transformer [28]Multi-head self-attention layers with feedforward sub-blocksCaptures global feature dependencies; adaptive feature weighting; high representational flexibility
Table 5. Best hyperparameter configurations for each clinical prediction task based on the highest maximum mean accuracy (MMA). The table reports the task, embedding dimension, encoder, encoder layers, decoder, encoder layers, MMA score, and average training time per epoch.
Table 5. Best hyperparameter configurations for each clinical prediction task based on the highest maximum mean accuracy (MMA). The table reports the task, embedding dimension, encoder, encoder layers, decoder, encoder layers, MMA score, and average training time per epoch.
TaskdEncoderLayersDecoderLayersMMATime (s)
Diagnosis300GIN5Transformer50.894.68
Readmission30GIN3Transformer30.661.39
Mortality30GIN1GRU50.500.57
Table 6. Comparison of healthcare prediction models across learnable temporal component (LTC), diagnosis ( D x ), readmission ( R x ), and mortality ( M x ) coverage, context integration (codified, numerical, and textual), knowledge graph support (KG), and uncertainty quantification (UQ). For each model, the presence of a corresponding component is check marked.
Table 6. Comparison of healthcare prediction models across learnable temporal component (LTC), diagnosis ( D x ), readmission ( R x ), and mortality ( M x ) coverage, context integration (codified, numerical, and textual), knowledge graph support (KG), and uncertainty quantification (UQ). For each model, the presence of a corresponding component is check marked.
ModelDxRxMxLTCCodifiedNumericalTextualKGUQ
RETAIN
Dipole
HiTANet
AdaCare
StageNet
GRASP
CGL
KGxDP
ManyDB
HEART
KCIF
DemGraph
TCEM
SeqGNN
Table 7. Comparison of Sequential Graph Neural Network (SeqGNN) against state of the art (SOTA) reported in the literature in terms of area-under-receiver-operator-curve (AUROC), area-under-precision-recall-curve (AUPRC) and F1-score over five independent runs (mean values are shown with standard deviation in parenthesis). Paired t-distribution confidence interval (CI) is calculated in terms of AUPRC or F1, with respect to the proposed method. The best and second best results in each case are boldfaced and underscored, respectively.
Table 7. Comparison of Sequential Graph Neural Network (SeqGNN) against state of the art (SOTA) reported in the literature in terms of area-under-receiver-operator-curve (AUROC), area-under-precision-recall-curve (AUPRC) and F1-score over five independent runs (mean values are shown with standard deviation in parenthesis). Paired t-distribution confidence interval (CI) is calculated in terms of AUPRC or F1, with respect to the proposed method. The best and second best results in each case are boldfaced and underscored, respectively.
TaskModelAUROCAUPRCCI (%95)
Mortality (Mx)RETAIN59.4 (1.50)9.6 (0.60)(10.1, 12.2)
AdaCare58.4 (1.40)11.1 (0.40)(9.65, 10.7)
GRASP59.2 (1.40)9.90 (1.10)(9.54, 12.9)
StageNet61.5 (0.70)12.4 (0.30)(8.14, 9.20)
ManyDG66.3 (0.52)14.1 (0.54)(6.45, 8.23)
SeqGNN (ours)55.1 (0.56)20.7 (0.60)-
Readmission (Rx)HEART67.7 (0.79)64.1 (1.46)(3.73, 8.12)
RETAIN64.1 (0.70)65.1 (0.10)(3.03, 4.24)
AdaCare65.7 (0.30)68.6 (0.60)(1.68, 3.38)
GRASP66.3 (0.60)66.3 (0.40)(0.03, 1.18)
ManyDG68.6 (0.52)67.0 (0.54)(1.35, 3.13)
DemGraph73.9 (0.40)68.7 (0.40)(−1.34, 0.79)
SeqGNN (ours)71.5 (0.30)68.5 (0.60)-
DatasetModelAUROCF1 ScoreCI (%95)
Diagnosis (Dx)DIPOL82.1 (0.29)70.4 (0.21)(8.37, 8.94)
RETAIN83.2 (0.26)71.3 (0.17)(7.74, 8.40)
HiTANet82.8 (0.35)71.9 (0.29)(7.23, 7.67)
KGxDP86.6 (-)74.7 (-)-
CGL85.7 (0.16)72.7 (0.10)(6.28, 6.64)
TCEM86.7 (0.10)73.1 (0.19)(5.91, 6.22)
KCIF87.5 (0.12)75.7 (0.22)(3.36, 3.53)
SeqGNN (ours)93.1 (0.19)79.1 (0.10)-
Table 8. Comparison of textual embedding methods, namely Sentence Transformer (SBERT), Long-document Transformer (LongFormer), Word2Vec, and 1-hot encoding of data, across diagnosis and readmission tasks. The results are reported as mean ± standard deviation. Cohen’s d is computed with respect to sentence transformer.
Table 8. Comparison of textual embedding methods, namely Sentence Transformer (SBERT), Long-document Transformer (LongFormer), Word2Vec, and 1-hot encoding of data, across diagnosis and readmission tasks. The results are reported as mean ± standard deviation. Cohen’s d is computed with respect to sentence transformer.
HF DiagnosisReadmission
ModelAUROCF1Cohen-dAUROCAUPRCCohen-d
SBERT0.94 ± 0.000.67 ± 0.010.79 ± 0.060.89 ± 0.03
LongFormer0.94 ± 0.010.59 ± 0.240.490.78 ± 0.060.86 ± 0.020.10
Word2Vec0.93 ± 0.010.58 ± 0.220.600.74 ± 0.090.87 ± 0.040.64
1-Hot Encoding0.91 ± 0.030.57 ± 0.170.790.72 ± 0.100.84 ± 0.050.83
Table 9. Effect of post hoc calibration methods on model performance across tasks in terms of expected calibration error (ECE) and area-under-precision-recall-curve (AUPRC).
Table 9. Effect of post hoc calibration methods on model performance across tasks in terms of expected calibration error (ECE) and area-under-precision-recall-curve (AUPRC).
DiagnosisReadmissionMortality
MethodECEAUPRCECEAUPRCECEAUPRC
Uncalibrated0.0290.910.0310.840.02100.111
Temperature Scaling0.0270.910.0260.840.00090.112
Platt Scaling0.0180.910.0270.840.00080.112
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mehryar, S.; Dumontier, M. Improving Heart-Failure Predictive Tasks with Patient Health Knowledge Graphs and Sequential Graph Neural Networks. Electronics 2026, 15, 2189. https://doi.org/10.3390/electronics15102189

AMA Style

Mehryar S, Dumontier M. Improving Heart-Failure Predictive Tasks with Patient Health Knowledge Graphs and Sequential Graph Neural Networks. Electronics. 2026; 15(10):2189. https://doi.org/10.3390/electronics15102189

Chicago/Turabian Style

Mehryar, Shervin, and Michel Dumontier. 2026. "Improving Heart-Failure Predictive Tasks with Patient Health Knowledge Graphs and Sequential Graph Neural Networks" Electronics 15, no. 10: 2189. https://doi.org/10.3390/electronics15102189

APA Style

Mehryar, S., & Dumontier, M. (2026). Improving Heart-Failure Predictive Tasks with Patient Health Knowledge Graphs and Sequential Graph Neural Networks. Electronics, 15(10), 2189. https://doi.org/10.3390/electronics15102189

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop