[Paper Review] SurvSHAP(t): Time-dependent explanations of machine learning survival models
This paper introduces SurvSHAP(t), the first model-agnostic, time-dependent explanation method for machine learning survival models using Shapley values. It provides local, time-varying attributions of features to survival function predictions, outperforming SurvLIME in detecting time-dependent effects and offering more accurate local feature importance rankings.
Machine and deep learning survival models demonstrate similar or even improved time-to-event prediction capabilities compared to classical statistical learning methods yet are too complex to be interpreted by humans. Several model-agnostic explanations are available to overcome this issue; however, none directly explain the survival function prediction. In this paper, we introduce SurvSHAP(t), the first time-dependent explanation that allows for interpreting survival black-box models. It is based on SHapley Additive exPlanations with solid theoretical foundations and a broad adoption among machine learning practitioners. The proposed methods aim to enhance precision diagnostics and support domain experts in making decisions. Experiments on synthetic and medical data confirm that SurvSHAP(t) can detect variables with a time-dependent effect, and its aggregation is a better determinant of the importance of variables for a prediction than SurvLIME. SurvSHAP(t) is model-agnostic and can be applied to all models with functional output. We provide an accessible implementation of time-dependent explanations in Python at http://github.com/MI2DataLab/survshap.
Motivation & Objective
- Address the lack of time-dependent explanation methods for complex survival models, particularly those that are black-box and not interpretable by default.
- Overcome the limitations of existing methods like SurvLIME, which assume time-invariant feature effects and cannot capture dynamic variable influences over time.
- Provide a theoretically grounded, model-agnostic explanation framework for survival models with functional outputs, ensuring local accuracy in explaining survival function predictions.
- Enable domain experts, especially in healthcare, to interpret and validate predictions from advanced models like Random Survival Forests and deep learning survival models.
- Facilitate trust and adoption of machine learning in survival analysis by offering intuitive, time-resolved visualizations of feature contributions.
Proposed method
- Extends SHapley Additive exPlanations (SHAP) to survival models by adapting Shapley values to explain functional outputs—specifically, survival functions over time.
- Computes time-dependent Shapley values for each feature such that their sum at each time point equals the model's predicted survival function value.
- Employs a Monte Carlo approximation to estimate Shapley values efficiently, accounting for all possible feature coalitions while preserving local accuracy.
- Applies the method to any survival model with functional output, including Random Survival Forests and deep learning models, without requiring model-specific modifications.
- Aggregates time-dependent attributions into global importance scores by integrating over the time range, enabling comparison of feature impacts across the entire survival curve.
- Uses the scikit-survival Python package as a base for implementation, ensuring compatibility with existing survival modeling workflows.
Experimental results
Research questions
- RQ1Can a model-agnostic explanation method provide time-dependent attributions for survival model predictions, capturing how feature effects evolve over time?
- RQ2Does SurvSHAP(t) outperform SurvLIME in detecting features with time-varying effects on survival outcomes?
- RQ3Can SurvSHAP(t) accurately reproduce the survival function prediction through the sum of feature contributions at each time point?
- RQ4How does the aggregation of time-dependent Shapley values compare to SurvLIME’s coefficient-based importance in identifying key predictors?
- RQ5To what extent can SurvSHAP(t) be applied to complex models like Random Survival Forests and deep learning survival models without requiring architectural changes?
Key findings
- SurvSHAP(t) successfully captures time-dependent effects of features on survival predictions, which SurvLIME fails to detect due to its assumption of time-invariant effects.
- The aggregation of SurvSHAP(t) values over time provides a more accurate and reliable measure of local feature importance than SurvLIME’s coefficient-based approach.
- SurvSHAP(t) satisfies the local accuracy property, ensuring that the sum of feature attributions at each time point exactly equals the model’s survival function prediction.
- Experiments on synthetic and real medical data confirm that SurvSHAP(t) can correctly identify features whose influence on survival changes over time.
- The method is applicable to any survival model with functional output, including Random Survival Forests and deep learning models, demonstrating broad model-agnostic utility.
- An open-source Python implementation is provided, enabling immediate integration into existing survival modeling pipelines using the scikit-survival library.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.