Saved in:
Bibliographic Details
Main Authors: Adhikari, Nimish, Gerlovin, Hanna, Ostrouchov, George, Ehrbar, Rachel, Dufour, Alyssa B., Ferolito, Brian R., Demissie, Serkalem, Costa, Lauren, Ho, Yuk-Lam, Tarko, Laura, Begoli, Edmon, Cho, Kelly, Gagnon, David R.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.00962
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915368014970880
author Adhikari, Nimish
Gerlovin, Hanna
Ostrouchov, George
Ehrbar, Rachel
Dufour, Alyssa B.
Ferolito, Brian R.
Demissie, Serkalem
Costa, Lauren
Ho, Yuk-Lam
Tarko, Laura
Begoli, Edmon
Cho, Kelly
Gagnon, David R.
author_facet Adhikari, Nimish
Gerlovin, Hanna
Ostrouchov, George
Ehrbar, Rachel
Dufour, Alyssa B.
Ferolito, Brian R.
Demissie, Serkalem
Costa, Lauren
Ho, Yuk-Lam
Tarko, Laura
Begoli, Edmon
Cho, Kelly
Gagnon, David R.
contents Background and Objective: Variables collected over time, or longitudinally, such as biologic measurements in electronic health records data, are not simple to summarize with a single time-point, and thus can be more holistically conceptualized as trajectories over time. Cluster analysis with longitudinal data further allows for clinical representation of groups of subjects with similar trajectories and identification of unique characteristics, or phenotypes, that can be investigated as risk factors or disease outcomes. Some of the challenges in estimating these clustered trajectories lie in the handling of observations at inconsistent time intervals and the usability of algorithms across programming languages. Methods: We propose longitudinal trajectory clustering using a k-means algorithm with thin-plate regression splines, implemented across multiple platforms, the R package clustra and corresponding \SAS macros. The \SAS macros accommodate flexible clustering approaches, and also include visualization of the clusters, and silhouette plots for diagnostic evaluation of the appropriate cluster number. The R package, designed in parallel, has similar functionality, with additional multi-core processing and Rand-index-based diagnostics. Results: The package and macros achieve comparable results when applied to an example of simulated blood pressure measurements based on real data from Veterans Affairs Healthcare recipients who were initiated on anti-hypertensive medication. Conclusion: The R package clustra and the SAS macros integrate a K-means clustering algorithm for longitudinal trajectories that operates with large electronic health record data. The implementations provide comparable results in both platforms, satisfying the needs of investigators familiar with, or constrained by access to, one or the other platform.
format Preprint
id arxiv_https___arxiv_org_abs_2507_00962
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle clustra: A multi-platform k-means clustering algorithm for analysis of longitudinal trajectories in large electronic health records data
Adhikari, Nimish
Gerlovin, Hanna
Ostrouchov, George
Ehrbar, Rachel
Dufour, Alyssa B.
Ferolito, Brian R.
Demissie, Serkalem
Costa, Lauren
Ho, Yuk-Lam
Tarko, Laura
Begoli, Edmon
Cho, Kelly
Gagnon, David R.
Computation
Applications
Background and Objective: Variables collected over time, or longitudinally, such as biologic measurements in electronic health records data, are not simple to summarize with a single time-point, and thus can be more holistically conceptualized as trajectories over time. Cluster analysis with longitudinal data further allows for clinical representation of groups of subjects with similar trajectories and identification of unique characteristics, or phenotypes, that can be investigated as risk factors or disease outcomes. Some of the challenges in estimating these clustered trajectories lie in the handling of observations at inconsistent time intervals and the usability of algorithms across programming languages. Methods: We propose longitudinal trajectory clustering using a k-means algorithm with thin-plate regression splines, implemented across multiple platforms, the R package clustra and corresponding \SAS macros. The \SAS macros accommodate flexible clustering approaches, and also include visualization of the clusters, and silhouette plots for diagnostic evaluation of the appropriate cluster number. The R package, designed in parallel, has similar functionality, with additional multi-core processing and Rand-index-based diagnostics. Results: The package and macros achieve comparable results when applied to an example of simulated blood pressure measurements based on real data from Veterans Affairs Healthcare recipients who were initiated on anti-hypertensive medication. Conclusion: The R package clustra and the SAS macros integrate a K-means clustering algorithm for longitudinal trajectories that operates with large electronic health record data. The implementations provide comparable results in both platforms, satisfying the needs of investigators familiar with, or constrained by access to, one or the other platform.
title clustra: A multi-platform k-means clustering algorithm for analysis of longitudinal trajectories in large electronic health records data
topic Computation
Applications
url https://arxiv.org/abs/2507.00962