Discovery and inference beyond linearity by integrating Bayesian regression, tree ensembles and Shapley values
Giorgio Spadaccini, Marjolein Fokkema, Mark A. van de Wiel
TL;DR
Addressing the need for uncertainty-aware, hypothesis-free discovery of nonlinear and interactive factors in healthcare, the paper targets reliable inference for local feature effects in ML. It introduces RuleSHAP, which fuses Bayesian sparse regression with a rule-based generator and Shapley attribution, and derives an efficient formula for marginal Shapley values $\phi_j(x^*)$ with posterior uncertainty. The empirical evaluation shows RuleSHAP reconstructs linear effects, detects beyond-linear interactions, and provides calibrated local inference, outperforming RuleFit, HorseRule, and RF in local inference across simulations and HELIUS data. Applied to the HELIUS cohort, RuleSHAP uncovers nonlinear interactions among age, ethnicity, sex, BMI and glucose affecting high cholesterol and systolic BP, demonstrating practical epidemiological utility.
Abstract
Machine Learning (ML) is gaining popularity for hypothesis-free discovery of risk and protective factors in healthcare studies. ML is strong at discovering nonlinearities and interactions, but this power is compromised by a lack of reliable inference. Although Shapley values provide local measures of features' effects, valid uncertainty quantification for these effects is typically lacking, thus precluding statistical inference. We propose RuleSHAP, a framework that addresses this limitation by combining a dedicated Bayesian sparse regression model with a new tree-based rule generator and Shapley value attribution. RuleSHAP provides detection of nonlinear and interaction effects with uncertainty quantification at the individual level. We derive an efficient formula for computing marginal Shapley values within this framework. We demonstrate the validity of our framework on simulated data. Finally, we apply RuleSHAP to data from an epidemiological cohort to detect and infer several effects for high cholesterol and blood pressure, such as nonlinear interaction effects between features like age, sex, ethnicity, BMI and glucose level.
