Combining Representation Learning with Tensor Factorization for Risk Factor Analysis - an application to Epilepsy and Alzheimer's disease

Xiaoqian Jiang, Samden D. Lhatoo, Guo-Qiang Zhang, Luyao Chen, Yejin KimarXiv 2019 · DOI

Abstract

Existing studies consider Alzheimer's disease (AD) a comorbidity of epilepsy, but also recognize epilepsy to occur more frequently in patients with AD than those without. The goal of this paper is to understand the relationship between epilepsy and AD by studying causal relations among subgroups of epilepsy patients. We develop an approach combining representation learning with tensor factorization to provide an in-depth analysis of the risk factors among epilepsy patients for AD. An epilepsy-AD cohort of ~600,000 patients were extracted from Cerner Health Facts data (50M patients). Our experimental results not only suggested a causal relationship between epilepsy and later onset of AD ( p = 1.92e-51), but also identified five epilepsy subgroups with distinct phenotypic patterns leading to AD. While such findings are preliminary, the proposed method combining representation learning with tensor factorization seems to be an effective approach for risk factor analysis.

Introduction

The clinical relationship between epilepsy and Alzheimer’s Disease (AD) is complex and bidirectional. While epilepsy is often viewed as a comorbidity of AD, it is also recognized that epilepsy occurs more frequently in AD patients. Determining whether epilepsy serves as a causal risk factor for AD requires sophisticated analysis of longitudinal Electronic Health Record (EHR) data. However, EHR data is notoriously sparse and noisy, making it difficult for traditional models to capture both the co-occurrence of medical events within a single visit and the transitions between conditions over time. This study addresses these challenges by developing a framework for "fine-grained" computational phenotyping to identify patient subgroups at high risk for AD.

Methodology

The proposed framework integrates representation learning with tensor factorization to map patient trajectories.

Trajectory Modeling

Patient histories are modeled as sequences of medical encounters. Within each encounter, medical entities (diagnoses and medications) are captured. The model focuses on the transitions between these entities across consecutive visits.

Modeling patient trajectories as transitions between medical entities over time.
  1. Representation Learning: Dense vector embeddings for medical entities are created using a skip-gram approach. This captures the contextual relationship between diagnoses and treatments within the same encounter.
  2. Tensor Factorization: Patient trajectories are structured as a 3-order tensor (Patient $\times$ From-Entity $\times$ To-Entity). Using CANDECOMP/PARAFAC (CP) decomposition, this sparse tensor is broken down into interpretable "phenotypes."

Joint Optimization and Supervision

A key innovation is the use of a joint objective function that combines unsupervised tensor factorization with supervised learning. This ensures that the discovered phenotypes are not just patterns, but are specifically discriminative for predicting AD onset.

Tensor factorization framework for supervised phenotype discovery.

To maintain interpretability for clinicians, $l_1$ norm regularizers are applied to encourage sparsity, ensuring each phenotype is defined by a small set of highly relevant medical codes.

Experimental Setup

The study utilized the Cerner Health Facts database, containing longitudinal records for approximately 50 million patients from 2000 to 2014.

  • Causal Analysis Cohort: A large cohort of ~600,000 patients was used to establish the statistical link between epilepsy and AD.
  • Phenotyping Subset: The model was trained on a subset of 1,241 "cases" (epilepsy patients who developed AD) and 5,276 "controls" (epilepsy patients who did not). Propensity Score Matching (PSM) was used to control for age, gender, and other confounding risk factors.

Results and Discussion

The analysis confirmed a highly significant causal relationship between epilepsy and later AD onset ($p = 1.92 \times 10^{-51}$). The hybrid model achieved an AUC of 0.6925, outperforming baseline models that relied solely on tensor factorization or co-occurrence data.

Phenotype Discovery

The model identified 30 phenotypes, 21 of which were statistically significant. Six phenotypes were associated with a higher risk of AD ("AD likely"), while 15 were associated with a lower risk.

  • Hypokalemia as a Risk Factor: Phenotype 7 identified Potassium Chloride as a central "hub," suggesting that low potassium levels or the conditions requiring its treatment may be linked to seizures that precede AD.
  • Injury and Severity: Phenotypes involving joint and back disorders—likely proxies for falls during seizures—were strongly associated with AD risk, suggesting that physical trauma from severe epilepsy is a clinical marker for neurodegeneration.
  • Early-Stage Indicators: Some AD-likely phenotypes included pneumonia and mental disorders, which may represent early, undiagnosed stages of AD manifesting alongside epilepsy.

Conclusion

This research demonstrates that combining representation learning with tensor factorization is an effective approach for risk factor analysis in complex diseases. While the current model is limited to pairwise transitions and data within the Cerner network, it provides a foundation for future work. Future studies will explore higher-order transitions and the reverse causal direction (AD leading to epilepsy) to further clarify this neurological relationship.

Summary updated

BibTeX
@misc{jiang2019combining,
  author = {Xiaoqian Jiang and Samden D. Lhatoo and Guo-Qiang Zhang and Luyao Chen and Yejin Kim},
  title = {{Combining Representation Learning with Tensor Factorization for Risk Factor Analysis - an application to Epilepsy and Alzheimer's disease}},
  year = {2019},
  eprint = {1905.05830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.05830},
}
Figure