Gpu powered survival analysis speeds up large patient data studies

survivalGPU: Scalable Survival Analysis for R and Python

Mathematical Software

Summary

Analyzing how long patients survive and what factors influence their survival can take a very long time with large datasets. The authors created survivalGPU, software that uses powerful graphics cards to perform these analyses much faster. Their tests show it produces accurate results while cutting down the time needed by many multiples. This makes it easier to do complex survival studies on huge sets of medical data, including repeated analyses for confidence checks.

What this means in practice

  • For hospital data teams: Accelerate survival analysis on patient records for faster, more detailed risk modeling at large scales.
  • For pharmaceutical data analysts: Perform high-speed survival modeling including bootstrap confidence intervals to support drug safety and effectiveness studies.

Authors

Antoine Poirot-Bourdain, Alexis Van Straaten, Emmanuel Bacry, Anne-Sophie Jannot, Jean Feydy

Abstract

This paper introduces survivalGPU, a high-performance Python and R package designed to accelerate survival analysis computations using graphics processing units (GPUs). While the Cox proportional hazards model remains a cornerstone of survival analysis, it can impose substantial computational burdens when applied to large longitudinal data sets. To address this limitation, survivalGPU implements Cox proportional hazards models and weighted cumulative exposure (WCE) models in Python, using PyTorch and KeOps for efficient back-end computation, with interfaces in both Python and R. Numerical validation shows that survivalGPU reproduces the results of reference implementations within the tolerances expected for the selected floating-point precision, with relative errors below 10 -2 in float32 and below 10 -5 in float64. Benchmark experiments demonstrate substantial speedups. For Cox models, coxphGPU() was 5.6x faster than coxph() from the survival package on 1,000,000 patients, and 14.0x faster based on runtimes extrapolated to 1,000 bootstrap replicates on 100,000 patients. Gains were larger for WCE models: wceGPU() was 920.7x faster than WCE() from the WCE package on 100,000 patients, and 1,321.4x faster based on runtimes extrapolated to 1,000 bootstrap replicates. These results show that survivalGPU makes flexible time-dependent survival modeling and bootstrap-based estimation of confidence intervals feasible for large-scale pharmacoepidemiological applications.