betaFeedback

WorksPubMed

A high performance Cox proportional hazards model for large scale survival analysis.

Abstract

The Cox proportional hazards model remains the preeminent methodological framework for survival analysis. However, evaluating the partial likelihood function and resolving tied event times on massive big health data presents a severe computational bottleneck. These algorithmic inefficiencies often prohibit the analysis of massive cohorts and restrict the deployment of dynamic, real-time predictive models on low power edge devices. To overcome these computational limitations, we developed c-cox, a high performance, open source implementation written natively in C. The architecture leverages OpenMP for the multi-threaded parallelization of complex risk set evaluations and integrates the GNU Scientific Library to ensure highly efficient, numerically stable matrix operations during Newton-Raphson optimization. The package provides a comprehensive statistical framework supporting standard and time-varying multivariable covariates, robust variance estimation for clustered data, and cumulative incidence functions . Rigorous empirical validations were conducted utilizing clinical datasets, specifically the United Kingdom Biobank (UK Biobank) and China Health and Retirement Longitudinal Study (CHARLS) cohorts, alongside massive synthetic stress tests comprising up to one million observations. Across all computational experiments, c-cox maintained a good agreement with industry standard Python (lifelines) and R (survival) packages, generating close regression coefficients, hazard ratios, and robust standard errors. Crucially, c-cox achieved exponential reductions in runtime by processing a one million row cohort in a mere 2.54 s, compared to 7.80 s in R and over 268 min in Python. The c-cox framework consistently delivers uncompromising statistical reliability while affording orders of magnitude improvements in computational speed. Its self-contained, dependency free architecture guarantees reproducible numerics for stringent regulatory audit trails. Ultimately, this profound efficiency leap democratizes large scale survival analysis and enables decentralized, privacy preserving execution directly on severely resource-constrained embedded systems.

Paper details

pubmed:42945579
First available
Oct 27, 2026
Read at
PubMed
  • Liu, Haipeng
  • Lai, Timmy Kit Hoi
  • Jiang, Jialiang
  • Lam, K F
  • Au, Anselm
  • Wong, Wing Tak
  • Liu, Tong
  • Lee, Sharen
  • Cheng, Shuk Han
  • Yu, Peter K N
  • Dong, Haoyu
  • Yang, Xiaolei
  • Watabe, Hiroshi
  • Amabi Perez Aranda, Angelina
  • Shahmohammadi Beni, Mehrdad
  • Tse, Gary