Saturday, October 3, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Technology and Engineering

Survivex brings GPU-accelerated survival analysis to Python

October 3, 2026
in Technology and Engineering
Denise Maddox
By Denise Maddox Scienmag Editorial Profile - Mechanical Engineering
Reading Time: 4 mins read
0
Survivex brings GPU-accelerated survival analysis to Python

Survivex brings GPU-accelerated survival analysis to Python

Survivex brings GPU-accelerated survival analysis to Python

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Survival analysis, the branch of statistics devoted to modeling the time until an event occurs, has long been a stronghold of the R programming language. Now a new open-source library called Survivex aims to change that. Developed by Tanin Zeraati and Patricia Lasserre and described in the journal SoftwareX, Survivex consolidates classical statistical estimators, semi-parametric regression, machine learning methods, and GPU acceleration into a single Python package, addressing a fragmentation problem that has forced data scientists to juggle multiple incompatible tools or switch to R entirely for advanced analyses.

The defining feature of survival data is censoring: for many subjects, the event of interest—death, machine failure, rearrest, or customer churn—is only partially observed because a study ends before the event happens. Statistical methods must therefore extract information from incomplete observations, a challenge that has produced a rich family of techniques over decades. Clinical researchers use these methods to evaluate treatment efficacy, reliability engineers to predict component failure, and social scientists to study recidivism, unemployment duration, and other time-to-event phenomena. In every case, the mathematics must account for the fact that some event times are simply unknown.

R has historically dominated this field, with the survival package offering comprehensive functionality refined over many years. Python, despite becoming the dominant language for data science and machine learning, has lacked an equivalent. Existing libraries each cover only a slice of the landscape: lifelines implements classical models such as Kaplan–Meier estimation and Cox regression on CPU but offers no tree-based machine learning or recurrent-event models; scikit-survival targets machine-learning estimators like random survival forests but omits frailty and multi-state models; and deep-learning packages such as pycox provide neural-network survival models without the classical estimators. No single Python package previously spanned all of these families under one interface.

Survivex closes that gap with a modular design organized by model family, comprising a models module, a datasets module for loading and validation, and a core module with shared data structures. All models follow scikit-learn conventions, exposing a fit method for parameter estimation and trailing-underscore attributes for fitted values, which makes the library immediately familiar to the large community of Python machine-learning practitioners. The package handles both wide-format data, where each subject occupies a single row, and long-format data, which supports time-varying covariates, recurrent events, and multi-state models, with converters and validators to catch common data quality issues before fitting.

The methodological coverage spans eight categories. Non-parametric estimators include the Kaplan–Meier survival curve with Greenwood’s variance estimator, the Nelson–Aalen cumulative hazard estimator, and the log-rank test for comparing groups. Semi-parametric regression centers on Cox proportional hazards with both Breslow and Efron tie handling, solved by Newton–Raphson iterations using analytically derived gradients and Hessians, plus stratified and ridge-penalized variants. Parametric accelerated failure time models cover Weibull, Log-Normal, Log-Logistic, and Exponential distributions. Competing risks are handled through the Aalen–Johansen estimator and the Fine–Gray subdistribution hazard model, while multi-state models support illness-death and progressive disease configurations.

Recurrent-event analysis, historically unavailable in Python, receives three approaches: the Andersen–Gill model treating repeated events as exchangeable, and two Prentice–Williams–Peterson variants stratified by event number on either total time or gap time, all with robust sandwich variance estimates for within-subject correlation. Frailty models capture unobserved heterogeneity in clustered data using gamma or log-normal random effects fitted by an expectation-maximization algorithm. Machine learning methods include random survival forests built on log-rank splitting statistics and gradient boosting that optimizes the Cox partial likelihood, both providing feature importance scores.

Correctness is the library’s central claim, and the developers back it with unusually rigorous validation. Every estimator was checked against established reference implementations—R’s survival, penalized, frailtyEM, and mstate packages, plus Python’s lifelines—using standard benchmark datasets including the gbsg2 breast cancer cohort, the Rossi recidivism data, and bladder cancer and kidney infection datasets. Cox models reproduce R’s coefficients to machine precision, around ten to the minus fifteen, under all tested variants. Frailty estimates agree to within roughly ten to the minus four, a residual bounded by the iterative convergence of the EM algorithm rather than exact algebra. All comparisons are seeded, scripted, and run in double precision, with a continuous-integration pipeline testing across Python versions and nightly gold-standard comparisons against R.

Performance results are equally striking. On CPU, Survivex runs two to eighteen times faster than lifelines on standard benchmarks, with non-parametric estimators and Weibull models gaining the most. The real headline, however, is GPU acceleration through PyTorch. Because the Cox-family solvers rely on linear algebra, GPU speedup grows with problem dimension: on synthetic data, Cox regression reaches a 35.6-fold speedup at one hundred covariates, and recurrent-event models gain thirteen to sixteen times. A crucial design decision is the use of closed-form analytical derivatives rather than automatic differentiation, which the authors show is sixteen to fifty-one times slower for the same fit, while still yielding the standard errors and confidence intervals that survival analysis demands.

The most dramatic demonstration comes from a real-world genomics benchmark. The authors pooled eight TCGA PanCancer Atlas cohorts—4,112 patients and 1,382 events—into a ridge-penalized stratified Cox model and swept the covariate count up to 5,000 genes. With GPU acceleration, Survivex was twelve to 308 times faster than lifelines, the margin widening with dimension: at 5,000 covariates, the fit took 43 seconds versus 3.7 hours. CPU and GPU coefficients agreed to machine precision at every dimension, and peak GPU memory stayed below 2 gigabytes thanks to a sufficient-statistics identity that avoids materializing enormous per-sample tensors. The authors caution that these results establish numerical correctness and speed, not clinical readiness; deployment in healthcare or other sensitive settings would still require domain-specific validation and governance review. Released under the Apache License 2.0 with a zero-install Binder environment for browser-based experimentation, Survivex positions itself as validated analytical infrastructure for the era of large-scale electronic health records and high-dimensional genomics.

Subject of Research: A GPU-accelerated Python library for survival analysis of time-to-event data

Article Title: Survivex: A GPU-accelerated survival analysis library for Python

Article References: Zeraati, T., & Lasserre, P. (2026). Survivex: A GPU-accelerated survival analysis library for Python. SoftwareX, 36, Article 103081. https://doi.org/10.1016/j.softx.2026.103081

Image Credits: AI Generated

DOI: 10.1016/j.softx.2026.103081

Keywords: survival analysis, Python, GPU acceleration, PyTorch, Cox regression, Kaplan-Meier, recurrent events, frailty models, competing risks, machine learning, biostatistics, open-source software

Cite Scienmag News

Denise Maddox. (October 3, 2026). Survivex brings GPU-accelerated survival analysis to Python. Scienmag. https://scienmag.com/survivex-brings-gpu-accelerated-survival-analysis-to-python/

Denise Maddox. "Survivex brings GPU-accelerated survival analysis to Python." Scienmag, 3 October 2026, https://scienmag.com/survivex-brings-gpu-accelerated-survival-analysis-to-python/. Accessed 3 October 2026.

Denise Maddox. "Survivex brings GPU-accelerated survival analysis to Python." Scienmag. October 3, 2026. https://scienmag.com/survivex-brings-gpu-accelerated-survival-analysis-to-python/

Tags: biostatisticscompeting risksCox regressionfrailty modelsGPU accelerationGPU-accelerated survival analysishandling censoring in survival analysisintegrating statistical estimators and machine learning in PythonKaplan-MeierMachine learningmachine learning for survival dataopen-source softwareopen-source survival analysis toolkitovercoming R dominance in survival analysisPythonPyTorchrecurrent eventsreliability engineering survival methodssemi-parametric regression in Pythonsocial science time-to-event analysissurvival analysissurvival analysis for clinical researchsurvival analysis Python librarytime-to-event data modeling
Share26Tweet16
Previous Post

Winning Microbe: Sinorhizobium fredii Outperforms Rivals in Cowpea Nodulation Trial

Next Post

AI Urban Design Advice Avoids Harm but Struggles With Ethics of Participation

Related Posts

Tiny Carbide Particles Give Copper a Strength Boost Without Sacrificing Conductivity
Technology and Engineering

Tiny Carbide Particles Give Copper a Strength Boost Without Sacrificing Conductivity

October 3, 2026
Fuzzy AI Network Fuses Medical Data to Diagnose Heart Disease
Technology and Engineering

Fuzzy AI Network Fuses Medical Data to Diagnose Heart Disease

October 3, 2026
Folic Acid-Derived Carbon Sheets Supercharge ReS2 Electrodes for Supercapacitors
Technology and Engineering

Folic Acid-Derived Carbon Sheets Supercharge ReS2 Electrodes for Supercapacitors

October 3, 2026
KL Divergence and Tolerance Time Sharpen Detection of Shifting Data Streams
Technology and Engineering

KL Divergence and Tolerance Time Sharpen Detection of Shifting Data Streams

October 3, 2026
AI Ordering System Helps Small Businesses Weather Supply Chain Shocks, But Not Always
Technology and Engineering

AI Ordering System Helps Small Businesses Weather Supply Chain Shocks, But Not Always

October 3, 2026
Topological Insulator Meets MXene in a Two-Dimensional Powerhouse for Clean Energy
Technology and Engineering

Topological Insulator Meets MXene in a Two-Dimensional Powerhouse for Clean Energy

October 3, 2026
Next Post
AI Urban Design Advice Avoids Harm but Struggles With Ethics of Participation

AI Urban Design Advice Avoids Harm but Struggles With Ethics of Participation

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27656 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • Pig Genes and Gut Microbes Team Up to Shape the Flavor of Your Pork
  • AI Urban Design Advice Avoids Harm but Struggles With Ethics of Participation
  • Survivex brings GPU-accelerated survival analysis to Python
  • Winning Microbe: Sinorhizobium fredii Outperforms Rivals in Cowpea Nodulation Trial

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,151 other subscribers

© 2025 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2025 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading