Skip to main content
QUICK REVIEW

[Paper Review] ggRandomForests: Exploring Random Forest Survival

John Ehrlinger|arXiv (Cornell University)|Dec 28, 2016
Genetics and Plant BreedingAgricultural and Biological Sciences24 references28 citations
TL;DR

This paper introduces the ggRandomForests R package to enhance interpretability of random survival forests (RSF) built with randomForestSRC. It enables visual exploration of variable importance, minimal depth, dependence plots, and conditional interactions using ggplot2, demonstrating improved understanding of survival prediction in time-to-event data through interactive, customizable visualizations on the PBC liver disease dataset.

ABSTRACT

Random forest (Leo Breiman 2001a) (RF) is a non-parametric statistical method requiring no distributional assumptions on covariate relation to the response. RF is a robust, nonlinear technique that optimizes predictive accuracy by fitting an ensemble of trees to stabilize model estimates. Random survival forests (RSF) (Ishwaran and Kogalur 2007; Ishwaran et al. 2008) are an extension of Breimans RF techniques allowing efficient nonparametric analysis of time to event data. The randomForestSRC package (Ishwaran and Kogalur 2014) is a unified treatment of Breimans random forest for survival, regression and classification problems. Predictive accuracy makes RF an attractive alternative to parametric models, though complexity and interpretability of the forest hinder wider application of the method. We introduce the ggRandomForests package, tools for visually understand random forest models grown in R (R Core Team 2014) with the randomForestSRC package. The ggRandomForests package is structured to extract intermediate data objects from randomForestSRC objects and generate figures using the ggplot2 (Wickham 2009) graphics package. This document is structured as a tutorial for building random forest for survival with the randomForestSRC package and using the ggRandomForests package for investigating how the forest is constructed. We analyse the Primary Biliary Cirrhosis of the liver data from a clinical trial at the Mayo Clinic (Fleming and Harrington 1991). Our aim is to demonstrate the strength of using Random Forest methods for both prediction and information retrieval, specifically in time to event data settings.

Motivation & Objective

  • To address the challenge of interpretability in complex random survival forest models for time-to-event data.
  • To develop a modular, extensible R package (ggRandomForests) that separates data extraction from visualization for greater user control.
  • To enable researchers to explore variable importance, minimal depth, and dependence structures in survival forests using standardized, customizable ggplot2-based figures.
  • To demonstrate the utility of these tools on the primary biliary cirrhosis (PBC) dataset, showing non-linear and non-proportional hazards effects.
  • To provide a tutorial framework for integrating ggRandomForests with randomForestSRC for both predictive modeling and interpretative analysis.

Proposed method

  • The ggRandomForests package extracts intermediate data objects from randomForestSRC forest objects for downstream visualization.
  • It uses the ggplot2 graphics system to generate self-contained, modifiable ggplot2 objects for each visualization type.
  • Variable importance (VIMP) and minimal depth are computed and visualized to rank predictors based on their contribution to survival prediction.
  • Variable dependence and partial dependence plots are generated to visualize the marginal and adjusted relationships between covariates and survival outcomes.
  • Conditional dependence plots (coplots) are used to explore variable interactions by conditioning on levels of other covariates.
  • The package supports custom modifications via standard ggplot2 functions, such as labeling, color schemes, and smoothing parameters.

Experimental results

Research questions

  • RQ1How can random survival forests be made more interpretable through visual analytics in survival modeling?
  • RQ2To what extent do VIMP and minimal depth identify the same important predictors in survival data?
  • RQ3What non-linear and non-proportional relationships between covariates and survival outcomes can be revealed through dependence plots?
  • RQ4How do variable interactions influence survival predictions, and can they be visualized effectively using conditional dependence plots?
  • RQ5Can the ggRandomForests package provide a flexible, extensible workflow for both model interpretation and custom visualization in R?

Key findings

  • Variable dependence plots revealed that serum bilirubin (bili) is strongly associated with increased mortality risk, especially at 3-year follow-up, indicating non-proportional hazards.
  • Partial dependence plots showed that survival decreases with increasing bilirubin, copper, prothrombin, and age, while increasing albumin is associated with better survival.
  • The loess-smoothed curves in dependence plots indicated non-linear relationships, particularly for bilirubin and prothrombin, which were not easily captured by parametric models.
  • Minimal depth analysis identified bilirubin and albumin as top predictors, consistent with clinical expectations and VIMP rankings.
  • Conditional dependence plots revealed that the effect of bilirubin on survival risk is amplified in patients with higher edema status, indicating significant interaction effects.
  • The package successfully enabled panel visualization of multiple continuous variables in a single figure, improving comparative interpretation of covariate effects.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.