Scalable nonlinear Cox modeling via random Fourier features with analytic uncertainty.

IF 3.7 3区 医学 Q1 HEALTH CARE SCIENCES & SERVICES
Fahrettin Kaya
{"title":"Scalable nonlinear Cox modeling via random Fourier features with analytic uncertainty.","authors":"Fahrettin Kaya","doi":"10.1186/s12874-026-02925-x","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>The Cox proportional hazards model often fails to capture complex biomedical risk structures, such as U-shaped biomarker associations, due to its assumption of linearity between the log-hazard and covariates. While existing kernel-based generalizations offer the necessary flexibility, their [Formula: see text] computational complexity limits applicability in large-scale cohort studies. Furthermore, most non-linear machine learning methods lack closed-form analytical measures of uncertainty for individual predictions..</p><p><strong>Methods: </strong>A novel Random Fourier Features-based Cox regression approach (RFF-Cox) is presented to model non-linear risk relationships within a scalable framework. By mapping stationary kernels into a finite-dimensional explicit feature space, the method reduces computational complexity to [Formula: see text]. Model parameters are estimated via the Newton-Raphson algorithm on a ridge-regularized partial likelihood, while the bandwidth parameter ([Formula: see text]) is automatically optimized using a marginal likelihood criterion based on the Laplace approximation. Uncertainty quantification is performed via the Fisher information matrix, with a multivariate Delta method propagating variance from both parameter estimation and baseline hazard estimation. A Taylor-expansion-based inference framework enables covariate-level hazard ratio estimation, Wald-type significance testing, and formal interaction detection. Performance was evaluated using controlled simulations and four real-world datasets with sample sizes ranging from 500 to 9,105.</p><p><strong>Results: </strong>In simulation scenarios, RFF-Cox degenerated to classical Cox estimates under linearity (RMSE: 0.111 vs. 0.110) while demonstrating a marked accuracy advantage under non-linearity (RMSE: 0.137 vs. 0.314), including the recovery of U-shaped risk functions. The true SBP × Smoking interaction was detected (estimate -1.093, p < 0.001). Analytical 95% CI coverage reached 95.9% in the linear scenario and 81.9% in the non-linear scenario. In real-world applications, the model exhibited discriminatory power competitive with Random Survival Forests and XGBoost with favorable computational efficiency. IPCW-weighted calibration analyses on the METABRIC dataset yielded low Integrated Calibration Error (ICI < 0.05) across most time horizons, though calibration slope deviations were noted at longer follow-up periods. Moreover, uncertainty in individual predictions, quantified via analytical confidence intervals, varied meaningfully across risk groups.</p><p><strong>Conclusions: </strong>RFF-Cox provides a practical survival analysis framework that degenerates to the classical Cox model under linearity while offering non-linear modelling capabilities, computational efficiency, and formal inference tools - including covariate-level interpretation and interaction detection - that are not readily available in tree-based or deep learning survival methods.</p>","PeriodicalId":9114,"journal":{"name":"BMC Medical Research Methodology","volume":" ","pages":""},"PeriodicalIF":3.7000,"publicationDate":"2026-06-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13543420/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"BMC Medical Research Methodology","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1186/s12874-026-02925-x","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"HEALTH CARE SCIENCES & SERVICES","Score":null,"Total":0}
引用次数: 0

Abstract

Background: The Cox proportional hazards model often fails to capture complex biomedical risk structures, such as U-shaped biomarker associations, due to its assumption of linearity between the log-hazard and covariates. While existing kernel-based generalizations offer the necessary flexibility, their [Formula: see text] computational complexity limits applicability in large-scale cohort studies. Furthermore, most non-linear machine learning methods lack closed-form analytical measures of uncertainty for individual predictions..

Methods: A novel Random Fourier Features-based Cox regression approach (RFF-Cox) is presented to model non-linear risk relationships within a scalable framework. By mapping stationary kernels into a finite-dimensional explicit feature space, the method reduces computational complexity to [Formula: see text]. Model parameters are estimated via the Newton-Raphson algorithm on a ridge-regularized partial likelihood, while the bandwidth parameter ([Formula: see text]) is automatically optimized using a marginal likelihood criterion based on the Laplace approximation. Uncertainty quantification is performed via the Fisher information matrix, with a multivariate Delta method propagating variance from both parameter estimation and baseline hazard estimation. A Taylor-expansion-based inference framework enables covariate-level hazard ratio estimation, Wald-type significance testing, and formal interaction detection. Performance was evaluated using controlled simulations and four real-world datasets with sample sizes ranging from 500 to 9,105.

Results: In simulation scenarios, RFF-Cox degenerated to classical Cox estimates under linearity (RMSE: 0.111 vs. 0.110) while demonstrating a marked accuracy advantage under non-linearity (RMSE: 0.137 vs. 0.314), including the recovery of U-shaped risk functions. The true SBP × Smoking interaction was detected (estimate -1.093, p < 0.001). Analytical 95% CI coverage reached 95.9% in the linear scenario and 81.9% in the non-linear scenario. In real-world applications, the model exhibited discriminatory power competitive with Random Survival Forests and XGBoost with favorable computational efficiency. IPCW-weighted calibration analyses on the METABRIC dataset yielded low Integrated Calibration Error (ICI < 0.05) across most time horizons, though calibration slope deviations were noted at longer follow-up periods. Moreover, uncertainty in individual predictions, quantified via analytical confidence intervals, varied meaningfully across risk groups.

Conclusions: RFF-Cox provides a practical survival analysis framework that degenerates to the classical Cox model under linearity while offering non-linear modelling capabilities, computational efficiency, and formal inference tools - including covariate-level interpretation and interaction detection - that are not readily available in tree-based or deep learning survival methods.

基于分析不确定性的随机傅立叶特征的可扩展非线性Cox建模。
背景:Cox比例风险模型通常无法捕捉复杂的生物医学风险结构,如u型生物标志物关联,因为它假设对数风险和协变量之间存在线性关系。虽然现有的基于核的泛化提供了必要的灵活性,但它们的计算复杂性限制了在大规模队列研究中的适用性。此外,大多数非线性机器学习方法缺乏对单个预测的不确定性的封闭形式分析度量。方法:提出了一种新颖的基于随机傅立叶特征的Cox回归方法(RFF-Cox),用于在可扩展框架内建模非线性风险关系。通过将平稳核映射到有限维显式特征空间,该方法将计算复杂度降低到[公式:见文本]。模型参数通过脊化部分似然的Newton-Raphson算法估计,而带宽参数(公式:见文本)使用基于拉普拉斯近似的边际似然准则自动优化。通过Fisher信息矩阵进行不确定性量化,并使用多元Delta方法传播参数估计和基线风险估计的方差。基于泰勒展开的推理框架支持协变量水平的风险比估计、wald型显著性检验和正式交互检测。性能评估使用控制模拟和四个真实世界的数据集,样本量从500到9,105不等。结果:在模拟场景中,RFF-Cox在线性(RMSE: 0.111 vs. 0.110)下退化为经典Cox估计,而在非线性(RMSE: 0.137 vs. 0.314)下显示出显著的准确性优势,包括恢复u形风险函数。检测到真实的收缩压与吸烟的相互作用(估计为-1.093,p < 0.001)。分析95% CI覆盖率在线性情景下达到95.9%,在非线性情景下达到81.9%。在实际应用中,该模型表现出与随机生存森林和XGBoost竞争的判别能力,具有良好的计算效率。对METABRIC数据集的ipcw加权校准分析在大多数时间范围内获得了较低的综合校准误差(ICI < 0.05),尽管在较长的随访期间注意到校准斜率偏差。此外,通过分析置信区间量化的个体预测的不确定性在不同风险组之间存在显著差异。结论:RFF-Cox提供了一个实用的生存分析框架,该框架在线性下退化为经典Cox模型,同时提供非线性建模能力、计算效率和正式推理工具(包括协变量水平解释和相互作用检测),这些在基于树的或深度学习的生存方法中是不容易获得的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
BMC Medical Research Methodology
BMC Medical Research Methodology 医学-卫生保健
CiteScore
6.50
自引率
2.50%
发文量
298
审稿时长
3-8 weeks
期刊介绍: BMC Medical Research Methodology is an open access journal publishing original peer-reviewed research articles in methodological approaches to healthcare research. Articles on the methodology of epidemiological research, clinical trials and meta-analysis/systematic review are particularly encouraged, as are empirical studies of the associations between choice of methodology and study outcomes. BMC Medical Research Methodology does not aim to publish articles describing scientific methods or techniques: these should be directed to the BMC journal covering the relevant biomedical subject area.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书