CliqueFluxNet: Unveiling EHR Insights with Stochastic Edge Fluxing and Maximal Clique Utilisation using Graph Neural Networks

Soheila Molaei, Nima Ghanbari Bousejin, Ghadeer O. Ghosheh, Anshul Thakur, Vinod Kumar Chauhan, Tingting Zhu, David A. Clifton

Abstract

Electronic Health Records (EHRs) play a crucial role in shaping predictive healthcare models, yet they encounter challenges such as significant data gaps and class imbalances. Traditional Graph Neural Networks (GNNs) approaches have limitations in fully leveraging neighbourhood data or demanding intensive computational regularisation. To address this challenge, we introduce CliqueFluxNet, a novel framework that innovatively constructs a patient similarity graph to maximise cliques, thereby highlighting strong inter-patient connections. At the heart of CliqueFluxNet lies its stochastic edge fluxing strategy — a dynamic process involving random edge addition and removal during training. This strategy aims to enhance the model's generalizability and mitigate overfitting. Our empirical analysis, conducted on MIMIC-III and eICU datasets, demonstrates significant progress in representation learning, particularly in scenarios with limited data availability. Qualitative assessments further underscore CliqueFluxNet’s effectiveness in extracting meaningful EHR representations, solidifying its potential for advancing GNN applications in healthcare analytics.

Introduction

Electronic Health Records (EHRs) are a cornerstone of modern predictive healthcare, offering a wealth of longitudinal patient data. However, translating this data into actionable clinical insights is fraught with challenges. EHR datasets are notoriously "messy," characterized by high levels of missingness—often exceeding 80% in benchmarks like MIMIC-III—and severe class imbalances, where critical outcomes such as mortality are rare. Furthermore, traditional machine learning approaches often flatten the rich, hierarchical structure of EHR data (encompassing visits, diagnoses, and medications) into simple tables, thereby losing the relational context between similar patients.

While Graph Neural Networks (GNNs) have emerged as a powerful tool for modeling relational data, their application to EHRs has been limited. Existing GNN-based methods often rely on rigid, predefined medical ontologies that may not be available or struggle to generalize when data is sparse. To overcome these hurdles, we present CliqueFluxNet, a framework that leverages patient similarity and structural graph properties to improve predictive performance and robustness.

The CliqueFluxNet Framework

CliqueFluxNet moves away from fixed medical hierarchies, instead learning directly from patient similarities through a three-stage process.

Overview of the CliqueFluxNet framework, illustrating graph construction, maximal clique weighting, and stochastic edge fluxing.

1. Graph Construction via Cosine Similarity

The process begins by constructing a patient similarity graph. Unlike methods that require external ontologies, CliqueFluxNet treats patients as nodes and establishes connections (edges) based on the cosine similarity of their feature vectors. An edge is formed if the similarity exceeds a threshold of 0.85, creating a data-driven representation of patient relationships.

2. Maximal Clique Utilisation

To identify particularly strong clinical patterns, the framework utilizes the Bron–Kerbosch algorithm to find "maximal cliques"—subsets of the graph where every patient is connected to every other patient. These cliques represent groups of highly similar patients, akin to clinical "phenotypes." Edges are weighted based on the size of the clique they belong to, directing the model's attention toward these tightly-knit clusters and away from potentially noisy, isolated similarities.

3. Stochastic Edge Fluxing

The core regularization innovation in CliqueFluxNet is "stochastic edge fluxing." During the training phase, the model dynamically adds or removes edges in the graph. This structural randomness prevents the model from overfitting to specific connections and encourages the learning of robust, generalized patient representations. This strategy effectively accounts for "unobserved similarities" that might be missing from the sparse EHR data.

The final architecture employs a two-layered mean-pooling GNN encoder to aggregate these weighted features into 16-dimensional embeddings for classification.

Experimental Evaluation

The effectiveness of CliqueFluxNet was evaluated using two prominent, publicly available EHR datasets:

  • MIMIC-III: Containing data from approximately 50,000 ICU encounters at Beth Israel Deaconess Medical Center.
  • eICU: A multi-center dataset covering roughly 41,000 encounters across 208 hospitals in the United States.

The model was tested on two critical clinical tasks: mortality prediction (on both datasets) and readmission prediction (on eICU). Given the class imbalance, the Area Under the Precision-Recall Curve (AUPRC) served as the primary performance metric.

Results and Discussion

CliqueFluxNet demonstrated superior performance compared to state-of-the-art baselines like VGNN and GCT. In standard settings with 70% training data, the model achieved an AUPRC of 0.5972 for mortality prediction in the MIMIC-III dataset.

A key strength of CliqueFluxNet is its robustness in data-scarce scenarios. When the training data was reduced to just 20%, CliqueFluxNet maintained an AUPRC of 0.5723 on the MIMIC mortality task, significantly outperforming the best baseline (VGNN), which dropped to 0.5472. This stability suggests that the combination of maximal clique weighting and stochastic edge fluxing allows the model to extract meaningful patterns even from limited information.

Qualitative analysis using t-SNE visualizations further confirmed the model's efficacy. CliqueFluxNet successfully produced distinct clusters of patients with similar outcomes, providing a clearer separation than raw data or simpler modeling approaches.

Conclusion

CliqueFluxNet introduces a novel approach to EHR analysis by combining data-driven graph construction with structural regularization. By prioritizing maximal cliques and employing stochastic edge fluxing, the framework achieves high predictive accuracy and remarkable robustness against data scarcity. While current work focuses on static snapshots of patient encounters, future developments will aim to incorporate temporal dynamics and expand the model's application to a broader range of clinical outcomes.

Summary updated

Abstract

<title>Abstract</title> Electronic Health Records (EHRs) play a crucial role in shaping predictive healthcare models, yet they encounter challenges such as significant data gaps and class imbalances. Traditional Graph Neural Networks (GNNs) approaches have limitations in fully leveraging neighbourhood data or demanding intensive computational regularisation. To address this challenge, we introduce CliqueFluxNet, a novel framework that innovatively constructs a patient similarity graph to maximise cliques, thereby highlighting strong inter-patient connections. At the heart of CliqueFluxNet lies its stochastic edge fluxing strategy — a dynamic process involving random edge addition and removal during training. This strategy aims to enhance the model's generalizability and mitigate overfitting. Our empirical analysis, conducted on MIMIC-III and eICU datasets, demonstrates significant progress in representation learning, particularly in scenarios with limited data availability. Qualitative assessments further underscore CliqueFluxNet’s effectiveness in extracting meaningful EHR representations, solidifying its potential for advancing GNN applications in healthcare analytics.
BibTeX
@article{molaei2024cliquefluxnet,
  author = {Soheila Molaei and Nima Ghanbari Bousejin and Ghadeer O. Ghosheh and Anshul Thakur and Vinod Kumar Chauhan and Tingting Zhu and David A. Clifton},
  title = {{CliqueFluxNet: Unveiling EHR Insights with Stochastic Edge Fluxing and Maximal Clique Utilisation using Graph Neural Networks}},
  journal = {J. Heal. Informatics Res.},
  year = {2024},
  doi = {10.1007/s41666-024-00169-2},
}
Figure