RecSBART: Bayesian Machine Learning for Recurrent Events
- RecSBART is a Bayesian nonparametric method that models recurrent event data by combining subject-specific frailty with soft Bayesian additive regression trees.
- It decomposes event intensity into a time-constant baseline, a random frailty term, and a smooth regression component capturing nonlinear covariate and time interactions.
- Simulation and empirical studies demonstrate RecSBART’s competitive accuracy and reduced overfitting compared to traditional proportional intensity models and RecForest.
RecSBART is a Bayesian nonparametric method for recurrent event data in which each subject may experience multiple events over time, such as repeated hospitalizations. It models the subject-specific recurrence process under a non-homogeneous Poisson process (NHPP) framework whose conditional intensity is decomposed into a time-constant baseline intensity, a subject-specific frailty random effect, and a soft Bayesian additive regression tree (SBART) component that captures nonlinear covariate effects together with covariate-by-time interactions. The method was introduced as “Bayesian machine learning approach for recurrent events studies using Soft Bayesian Additive Regression Trees (SBART)” (Chen et al., 10 Jun 2026).
1. Problem setting and modeling objective
RecSBART is formulated for recurrent event studies in which, for subject , denotes the number of recurrent events in , observed up to a terminal time . The observed data are
where are recurrence times and are fixed covariates. The motivating problem is that recurrent event studies often exhibit nonlinear, interactive, and time-varying covariate effects together with subject-level heterogeneity. Standard proportional intensity models are described as restrictive because they assume that the ratio of intensities between subjects does not depend on time, whereas marginal approaches typically do not model subject-specific trajectories or latent heterogeneity.
Within this setting, RecSBART is designed to combine frailty modeling with SBART’s flexible function estimation. This places it between classical semiparametric proportional intensity frailty models and purely marginal tree-based approaches such as RecForest. A central distinction is that RecSBART targets subject-specific recurrence processes rather than only marginal cumulative intensity (Chen et al., 10 Jun 2026).
2. Intensity decomposition and recurrent-event formulation
RecSBART assumes that, conditional on frailty and covariates , the recurrent event process follows an NHPP,
The conditional intensity is defined as
0
where 1 is a baseline intensity, 2 is a subject-specific frailty, 3 is the standard normal CDF, and 4 is an unknown nonparametric function. The factor 5 guarantees positivity and boundedness of the regression component. For computation, the paper notes that 6 can be reduced to a time-constant baseline 7, yielding the working model
8
The three components have distinct roles. The baseline 9 captures overall event frequency common to all subjects. The frailty 0 is a multiplicative random effect that accounts for unobserved heterogeneity and within-subject dependence. The SBART term 1 provides a smooth, flexible representation of nonlinear covariate effects, interactions among covariates, and covariate-time interactions. This structure departs from proportional intensity frailty models, in which covariate effects are typically log-linear and time-invariant (Chen et al., 10 Jun 2026).
3. Frailty prior and the SBART component
The frailties are assumed i.i.d. Gamma with mean 1,
2
with density
3
so that
4
Fixing the mean at 1 serves identifiability. The model parameters are
5
where 6 are the SBART tree parameters, and the prior factorizes as
7
The paper specifies 8, 9, the SBART tree prior 0, and the leaf-parameter prior 1. The default SBART regularization settings are 2, 3, and 4, with split bandwidths satisfying
5
shared across branches within a tree.
RecSBART inherits SBART’s modification of standard BART. Standard BART expresses a regression function as
6
with each tree contributing a piecewise constant function,
7
where 8 is an indicator selecting a terminal node. SBART replaces hard splits with soft probabilistic splits, so the tree contribution becomes a smooth weighted sum. The weights are products of soft decision probabilities along the path to each leaf:
9
where 0 is the set of ancestor nodes of leaf 1, 2 indicates whether the path goes right at node 3, 4 is the split point, and 5 controls smoothness. The soft-splitting function is the inverse-logit CDF,
6
As 7, SBART approaches ordinary BART. In RecSBART, this machinery is used to model the latent function 8, thereby producing a smooth estimator for the intensity component 9.
4. Likelihood, data augmentation, and posterior computation
Given the NHPP intensity, the likelihood is
0
The main computational difficulty is the integral
1
which must be repeatedly evaluated within MCMC. The paper’s principal computational device is a two-layer data augmentation scheme that converts the problem into a tractable binary-regression-like representation (Chen et al., 10 Jun 2026).
The first augmentation introduces latent thinned event times
2
generated from an NHPP with intensity
3
These latent points are independent of the observed event times. Conditional on them, the complete-data likelihood becomes
4
This step removes the difficult integral.
The second augmentation applies Albert–Chib latent Gaussian variables,
5
leading to the augmented likelihood
6
with truncation rules 7 for thinned times and 8 for observed event times. This makes the SBART update resemble standard Gaussian regression.
Posterior computation proceeds by MCMC. Several full conditionals are conjugate:
9
and
0
The frailty precision 1 has a nonstandard conditional posterior and is updated via slice sampling. Given 2, the SBART component is updated by standard tree-ensemble MCMC moves on tree structure and leaf parameters. The full algorithm iterates through latent thinned times, truncated Gaussian variables, 3, 4, 5, and 6, after which posterior inference can be drawn for cumulative intensity, frailties, covariate effects, time-varying effects, and uncertainty intervals.
5. Simulation study and comparative performance
The simulation study compares RecSBART with the semiparametric Bayesian proportional intensity frailty model of Sinha (1993) and with RecForest. The design uses 7 subjects, 8 covariates independently distributed as 9, 20 replicated datasets per scenario, 50 trees for tree-ensemble methods, and 2500 burn-in plus 2500 sampling iterations for Bayesian methods. The covariate signal is
0
Three scenarios are examined. Simulation A is a homogeneous Poisson process with model misspecification,
1
Simulation B is a non-homogeneous Poisson process with model misspecification,
2
Simulation C is an NHPP correctly specified relative to the RecSBART framework,
3
Performance is assessed by the average mean squared error (AMSE) of the estimated cumulative intensity 4,
5
with
6
where 7. RecSBART attains the smallest AMSE in all three scenarios: 8 in Simulation A, 9 in Simulation B, and 0 in Simulation C. The corresponding values are 1, 2, and 3 for RecForest, and 4, 5, and 6 for the proportional-intensity model (Chen et al., 10 Jun 2026).
The paper also evaluates Martingale residuals,
7
reporting that RecSBART and RecForest both produce residuals more concentrated around zero than the proportional intensity model, with RecSBART competitive or slightly better in some settings. For frailty estimation, the AMSE is 8 for RecSBART versus 9 for the proportional intensity model. Taken together, these results indicate accuracy under correct specification and robustness under misspecification. A plausible implication is that the combination of subject-specific frailty with flexible SBART regression stabilizes estimation even when the assumed frailty distribution or intensity form is imperfect.
6. Colorectal-cancer hospitalization study and Bayesian marginal effects
The empirical application analyzes recurrent hospitalizations among 403 colorectal cancer patients with 458 total recurrent hospitalizations. The covariates are gender (0, 1 female, 2 male), chemotherapy status (3, 4 placebo, 5 treatment), Dukes’ stage (6, continuous), and Charlson’s index (7, continuous). RecSBART and RecForest are each fit with 50 trees, and the Bayesian methods use 2500 burn-in plus 2500 retained iterations; for RecSBART, the prior 8 is used (Chen et al., 10 Jun 2026).
Goodness of fit is evaluated through Martingale residuals. The mean squared Martingale residuals on the full dataset are 9 for RecSBART, 00 for RecForest, and 01 for the proportional intensity model. In 5-fold subject-level cross-validation, the relative gap is 02 for RecForest and 03 for RecSBART. The paper interprets these results as indicating less overfitting for RecSBART.
The estimated cumulative intensity curves show that males have higher recurrence risk than females at the same Dukes’ stage, that higher Dukes’ stage is associated with higher risk, that placebo recipients tend to have higher rehospitalization risk than treated patients, and that these effects interact in nontrivial ways. This directly supports the methodological premise that the effect of one covariate may depend on the values of others.
To summarize fitted effects, the paper introduces Bayesian Marginal Effects (BME), adapted from local marginal analysis. For a subset 04,
05
This quantity measures the average change in predicted cumulative intensity when selected covariates are changed while averaging over the observed distribution of the remaining covariates. The BME analysis suggests that the effect of gender increases over time, the effect of chemotherapy also changes over time, Dukes’ stage has a strong positive effect on cumulative intensity, and interactions are especially important among gender, chemotherapy, and Dukes’ stage. More specifically, at higher Dukes’ stage the gender-by-chemotherapy interaction is weaker, at lower Dukes’ stage the interaction is stronger, and among women the effect of Dukes’ stage varies more with chemotherapy status than among men.
The paper also examines BMEs on the log cumulative intensity as a diagnostic for proportionality. Because proportional intensity would imply time-constant BME on the log scale, the observed time variation is interpreted as evidence that a proportional intensity model is likely inappropriate.
7. Position relative to related approaches
RecSBART is distinguished along several axes. Relative to proportional intensity frailty models, it does not require linear covariate effects or proportionality over time. Relative to marginal recurrent-event methods, it provides subject-specific inference through frailties. Relative to RecForest, it models individual recurrence trajectories and latent heterogeneity rather than only marginal cumulative intensity. Relative to standard BART, it uses SBART’s soft splitting to obtain smoother estimation of continuous time-varying effects. Relative to survival-tree methods for first events, it is built directly for recurrent event processes rather than only first-event survival (Chen et al., 10 Jun 2026).
A common misconception would be to treat RecSBART as merely a recurrent-event version of a generic tree ensemble. The formulation in fact embeds the tree ensemble inside a frailty-based NHPP intensity model, so its target of inference is not only prediction of event counts but also the subject-specific stochastic intensity. Another misconception would be to view the method as enforcing proportionality through its multiplicative decomposition; the BME analysis on the log cumulative intensity is presented precisely to diagnose departures from proportional intensity.
In substantive terms, RecSBART is positioned for recurrent-event settings in which nonlinear covariate effects, interactions, time variation, and latent heterogeneity are all plausible. This suggests that its principal contribution lies not in replacing frailty models with tree ensembles, but in integrating the two within a coherent Bayesian framework for recurrent event analysis.