Authors
Imad El Badisy
Published in
Bioinformatics advances. Volume 6. Issue 1. Pages vbag218. Epub Aug 06, 2026.
Abstract
Biomedical phenotyping workflows often cluster high-dimensional molecular or clinical covariates and then test survival differences post hoc. This can miss structure that is expressed primarily through the timing of risk, because two patients may have similar scalar risk at one horizon but different predicted survival trajectories. Many survival learners can output patient-specific curves on a common time scale. Clustering these curves gives a survival-native post-prediction representation for exploratory phenotyping. Existing work on survival-curve clustering mainly targets predefined Kaplan-Meier curves or general functional data, whereas a practical tool for individual-level predicted survival curves remains less developed.
We introduce unsurv, an R package that clusters individualized survival curves on a common time grid using validity-preserving preprocessing, time-weighted integral distances, and partitioning around medoids (PAM). The output includes observed medoid prototype curves, a nearest-medoid rule for assigning new patients, model-selection summaries, resampling-based stability using the Adjusted Rand Index (ARI), and a new unsurv_compare() function for comparing partitions against baselines. The package is model-agnostic and can be paired with any survival learner that returns . We illustrate the workflow on a synthetic example and on the METABRIC breast cancer cohort using survdnn-predicted survival curves, including baseline comparisons and an out-of-sample validation check showing that the curve-based cluster ordering generalizes to held-out patients.
The unsurv package is available on CRAN and its full source code and documentation are provided at https://github.com/ielbadisy/unsurv under the MIT License.
PMID:
42667032
Bibliographic data and abstract were imported from PubMed on 29 Aug 2026.
Read full publication at:
Please sign in
to see all details.
Advertisement
Stats
- Recommendations n/a n/a positive of 0 vote(s)
- Views 13
- Comments 0