Modeling and Simulation/Clinical Pharmacology, Genentech, South San Francisco, CA.
Biomedical Computation, Schools of Engineering and Medicine, Stanford University, Stanford, CA.
JCO Clin Cancer Inform. 2021 Mar;5:364-378. doi: 10.1200/CCI.20.00172.
The application of Cox proportional hazards (CoxPH) models to survival data and the derivation of hazard ratio (HR) are well established. Although nonlinear, tree-based machine learning (ML) models have been developed and applied to the survival analysis, no methodology exists for computing HRs associated with explanatory variables from such models. We describe a novel way to compute HRs from tree-based ML models using the SHapley Additive exPlanation values, which is a locally accurate and consistent methodology to quantify explanatory variables' contribution to predictions.
We used three sets of publicly available survival data consisting of patients with colon, breast, or pan cancer and compared the performance of CoxPH with the state-of-the-art ML model, XGBoost. To compute the HR for explanatory variables from the XGBoost model, the SHapley Additive exPlanation values were exponentiated and the ratio of the means over the two subgroups was calculated. The CI was computed via bootstrapping the training data and generating the ML model 1,000 times. Across the three data sets, we systematically compared HRs for all explanatory variables. Open-source libraries in Python and R were used in the analyses.
For the colon and breast cancer data sets, the performance of CoxPH and XGBoost was comparable, and we showed good consistency in the computed HRs. In the pan-cancer data set, we showed agreement in most variables but also an opposite finding in two of the explanatory variables between the CoxPH and XGBoost result. Subsequent Kaplan-Meier plots supported the finding of the XGBoost model.
Enabling the derivation of HR from ML models can help to improve the identification of risk factors from complex survival data sets and to enhance the prediction of clinical trial outcomes.
Cox 比例风险(CoxPH)模型在生存数据分析中的应用和风险比(HR)的推导已经得到了很好的建立。尽管非线性,基于树的机器学习(ML)模型已经被开发并应用于生存分析,但对于从这些模型中计算与解释变量相关的 HR 还没有方法。我们描述了一种使用 SHapley Additive exPlanation 值从基于树的 ML 模型计算 HR 的新方法,这是一种用于量化解释变量对预测贡献的局部准确且一致的方法。
我们使用了三组公开的生存数据,包括结肠癌、乳腺癌或胰腺癌患者,并比较了 CoxPH 与最先进的 ML 模型 XGBoost 的性能。为了从 XGBoost 模型计算解释变量的 HR,我们将 SHapley Additive exPlanation 值指数化,并计算了两个亚组之间的均值比。通过对训练数据进行 bootstrap 并生成 1000 次 ML 模型,计算了 CI。在三个数据集上,我们系统地比较了所有解释变量的 HR。分析中使用了 Python 和 R 的开源库。
对于结肠癌和乳腺癌数据集,CoxPH 和 XGBoost 的性能相当,我们计算的 HR 具有很好的一致性。在泛癌数据集上,我们在大多数变量上达成了一致,但在 CoxPH 和 XGBoost 结果之间,有两个解释变量的结果却相反。随后的 Kaplan-Meier 图支持了 XGBoost 模型的发现。
能够从 ML 模型中推导出 HR,可以帮助从复杂的生存数据集识别风险因素,并增强临床试验结果的预测。