English

A variational Bayes latent class approach for EHR-based patient phenotyping in R

Computation 2025-12-17 v1 Machine Learning

Abstract

The VBphenoR package for R provides a closed-form variational Bayes approach to patient phenotyping using Electronic Health Records (EHR) data. We implement a variational Bayes Gaussian Mixture Model (GMM) algorithm using closed-form coordinate ascent variational inference (CAVI) to determine the patient phenotype latent class. We then implement a variational Bayes logistic regression, where we determine the probability of the phenotype in the supplied EHR cohort, the shift in biomarkers for patients with the phenotype of interest versus a healthy population and evaluate predictive performance of binary indicator clinical codes and medication codes. The logistic model likelihood applies the latent class from the GMM step to inform the conditional.

Keywords

Cite

@article{arxiv.2512.14272,
  title  = {A variational Bayes latent class approach for EHR-based patient phenotyping in R},
  author = {Brian Buckley and Adrian O'Hagan and Marie Galligan},
  journal= {arXiv preprint arXiv:2512.14272},
  year   = {2025}
}

Comments

19 pages, 6 figures, to be submitted to The Journal of Statistical Software