A weighted random survival forest
Lev V. Utkin, Andrei V. Konstantinov, Viacheslav S. Chukanov, Mikhail, V. Kots, Mikhail A. Ryabinin, Anna A. Meldo

TL;DR
This paper introduces a weighted random survival forest that enhances hazard function estimation by optimizing tree weights through quadratic programming to maximize Harrell's C-index, leading to improved predictive performance.
Contribution
It proposes a novel weighted approach for random survival forests, optimizing tree weights to improve hazard function estimation and predictive accuracy.
Findings
Outperforms standard random survival forests on real data
Optimizes tree weights via quadratic programming
Achieves higher Harrell's C-index
Abstract
A weighted random survival forest is presented in the paper. It can be regarded as a modification of the random forest improving its performance. The main idea underlying the proposed model is to replace the standard procedure of averaging used for estimation of the random survival forest hazard function by weighted avaraging where the weights are assigned to every tree and can be veiwed as training paremeters which are computed in an optimal way by solving a standard quadratic optimization problem maximizing Harrell's C-index. Numerical examples with real data illustrate the outperformance of the proposed model in comparison with the original random survival forest.
| Mean value | Std | Median | ||||
|---|---|---|---|---|---|---|
| Dataset | RSF | WRSF | RSF | WRSF | RSF | WRSF |
| PBC | ||||||
| GBSG2 | ||||||
| BLCD | ||||||
| CML | ||||||
| LND | ||||||
| HTD | ||||||
| Veteran | ||||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A weighted random survival forest
Lev V. Utkin1, Andrei V. Konstantinov1, Viacheslav S. Chukanov1
Mikhail V. Kots1, Mikhail A. Ryabinin1, Anna A. Meldo1,2
1Peter the Great St.Petersburg Polytechnic University (SPbPU)
2St.Petersburg Clinical Research Center for Special Types of Medical Care (Oncology-oriented)
Abstract
A weighted random survival forest is presented in the paper. It can be regarded as a modification of the random forest improving its performance. The main idea underlying the proposed model is to replace the standard procedure of averaging used for estimation of the random survival forest hazard function by weighted avaraging where the weights are assigned to every tree and can be veiwed as training paremeters which are computed in an optimal way by solving a standard quadratic optimization problem maximizing Harrell’s C-index. Numerical examples with real data illustrate the outperformance of the proposed model in comparison with the original random survival forest.
Keywords: random forest, decision tree, quadratic programming, survival analysis, Harrell’s C-index, cumulative hazard function.
1 Introduction
A lot of computer aided diagnosis (CAD) systems have been developed in order to provide successful detection of a disease and to facilitate making decision to start treatment process at early stage. Most CAD systems aim to detect a disease or its features. However, there are a few systems which take into account survival aspects of a patient especially of a cancer patient. Two reasons of such the situation can be pointed out. First, CAD systems taking into account survival aspects require the corresponding datasets which are mainly lack or of a small size nowadays. Second, CAD systems have to handle data with censored observations. This peculiarity may significantly complicate training process, and it requires special methods for dealing with censored data. A large amount of structured data, which has been recorded about patients, their peculiarities, do not take into account survival aspects. Therefore, it is topical to develop models which could efficiently process the available survival datasets in order to be an element of CAD systems.
A basis for such the models may be survival analysis or time-to-event analysis which can be regarded as a fundamental tool which is used in many applied areas. One of the most important areas is the medical research where survival models are widely used to evaluate the significance of prognostic variables in outcomes such as death or cancer recurrence and subsequently inform patients of their treatment options [34]. The datasets used in the survival analysis or just the survival data differ from many datasets by the fact that time to event of interest for a part of observations or instances is unknown because the event might not have happened during the period of study [49]. If the observed survival time is less than or equal to the true survival time, then we have a special case of censoring data called right-censoring data. Other special cases are left-censoring and interval censoring observations [65]. However, right-censoring is the most common case in many applications [24]. Without loss of generality, we describe the survival models mainly in the medical application terms below, i.e., instances will be called patients.
The survival models can be divided into three parts: parametric, nonparametric and semiparametric. It is assumed in parametric models that the type of the probability distribution of survival times is known, for example, the exponential, Weibull, normal, gamma distributions. As pointed out by Lee and Wang [41], nonparametric or distribution-free models are less efficient than parametric methods when survival times follow a theoretical distribution and more efficient when no suitable theoretical distributions are known. They can be used to analyze survival data before attempting to fit a theoretical distribution. One of the simplest survivor models is the Kaplan-Meier estimator which is a non-parametric model used to compute the survival function of a homogeneous data set. In other words, the model does not take into account the fact that the instances may differ by their features. A few critical features of the Kaplan-Meier model are considered in [41, Chapter 4, Page 76]. Nevertheless, the Kaplan-Meier model provides a simple way to compute the survival function of patients.
A popular regression model for the analysis of survival data is the well-known Cox proportional hazards model, which is a semi-parametric model that calculates the effects of observed covariates on the risk of an event occurring, for example, the death or failure [12]. The Cox model is the most commonly used regression analysis approach for survival data among semi-parametric survival models. The model does not require knowledge of the underlying distribution. It differs significantly from other methods since it is built on the proportional hazards assumption and employs partial likelihood for parameter estimation. The proportional hazards assumption in the Cox model means that different patients have hazard functions that are proportional, i.e., the ratio of the hazard functions for two patients with different prognostic factors or covariates is a constant and does not vary with time. In other words, the ratio of the risk of dying of two patients is the same no matter how long they survive [41, Chapter 12]. The model assumes that a patient’s log-risk of failure is a linear combination of the patient’s covariates. This assumption is referred to as the linear proportional hazards condition. It is interesting to note that the Cox model is semi-parametric in the sense that it can be factored into a parametric part consisting of a regression parameter vector associated with the covariates and a non-parametric part that can be left completely unspecified [15]. Another interpretation of the semi-parametric property of the Cox model is that we do not require to know the underlying distribution of time to event of interest, but the attributes are assumed to have an exponential influence on the outcome [65].
The Cox model is a very powerful method for dealing with survival data. As a result, a lot of approaches dealing with the Cox model and its modifications have been proposed last decades. A clear taxonomy of survival analysis methods and their comprehensive review are presented by Wang et al. [65].
It should be noted that the Cox model may provide unsatisfactory results under conditions of a high dimensionality of survivor data and a small number of observations. These conditions take place in many application problems, for example, when we deal with gene expression data. However, due to the high dimensionality of gene expression data when the number of genes expressed exceeds the number of patients, it is not possible to take an estimation approach based on the standard Cox model. To overcome this problem, Tibshirani [63] proposed one of the interesting modifications of the Cox model based on the Lasso method. Kim et al. [38] considered the Cox regression with the group Lasso penalty which improves the combination of different covariates, for example, clinical and genomic covariates. The adaptive Lasso for the Cox model is proposed by [74]. Some modifications of the Cox model with using Lasso can also be found in [16, 33, 39, 62, 67].
One of the main problems of the Cox model is linear relationship assumption between covariates and the time of event occurrence. Various modifications have been proposed to generalize the Cox model taking into account the corresponding non-linear relationship between covariates and the time of event. The first class of models uses a neural network for modelling the non-linear function. Faraggi and Simon in their pioneering work [17] presented an approach to modelling survival data using the input-output relationship associated with a simple feed-forward neural network as the basis for a non-linear proportional hazards model. The proposed model was a basis for developing more complex generalization using the deep neural networks [34, 44, 49, 53, 71, 75]. The convolutional neural networks (CNN) also have been applied to the survival analysis. In particular, Haarburger et al. [21] used CNN for analysis of lung cancer patients and illustrated that the CNN improves the predictive accuracy of Cox models that otherwise only rely on radiomics features. Some aspects of application of the survival analysis to medical diagnostic problems have been discussed by Afshar at al. [2]. Several models based on neural networks are considered in the review by Wang et al. [65]. A review of deep learning methods for dealing with survival data is presented by Nezhad et al. [49]. The proposed generalizations have many advantages, but there is an important disadvantage. The use of neural networks requires a lot of survival data. This condition is violated in many applications. Therefore, Van Belle et al. [5, 6] proposed to use SVM in order to enhance the model by the small amount of training data. The SVM approach to survival analysis has been studied by several authors [36, 52, 59, 4, 66].
Another approach for dealing with the limited survival data is to use survival trees and the random survival forests (RSFs). As pointed out by Wang et al. [65], the splitting criteria as one of the main concepts of decision trees differ for survival trees. The splitting criteria can be divided into two classes: minimizing within-node homogeneity and maximizing between-node heterogeneity. The first class of approaches minimizes the loss function using the within-node homogeneity criterion. Criteria from the first class measure the within-node homogeneity with a statistic that measures how similar the subjects in each node are and choose splits that minimize the within-node error. In particular, Gordon and Olsen [20] proposed an extension of CART to survival data by applying a distance measure, for example, the Wasserstein metric, between Kaplan-Meier curves and certain point masses. Davis and Anderson [14] proposed another splitting criterion based on the likelihood method under assumption that the survivor function in a node is exponential with a constant hazard. An example of a splitting criterion from the second class is a criterion using the log-rank test statistics presented by Ciampi [11]. Due to many advantages of decision trees as a tool for classification and regression, several tree-based modifications solving the survival analysis problem have been proposed last decades [27, 28, 40, 43, 58, 60, 72, 73]. Survival random forests have been applied to many real application problems, for example, [3, 19, 46]. A detailed review of survival trees as well as RSFs is represented by Bou-Hamad et al. [9]. A new algorithm for rule induction from survival data was proposed by Wrobel et al. [70]. It works according to the separate-and-conquer heuristics with a use of log-rank test for establishing rule body.
Random forests were introduced by Breiman [10] in order to overcome some shortcomings of the decision trees, in particular, their instability to small perturbations in a learning sample. The random forest uses a large number of randomly built patient decision trees in order to combine their predictions. It also reduces the possible correlation between decision trees by selecting different subsamples of the feature space.
It turns out that the random forests became a very powerful, efficient and popular tool for the survival analysis. The random forest can be regarded as a nonparametric machine learning strategy. The popularity of RSFs stems from many useful factors. First of all, Ishwaran and Kogalur [30] pointed out that the random forests require only three tuning parameters to be set (the number of randomly selected predictors, the number of trees grown in the forest, and the splitting rule). Moreover, the random forest is highly data adaptive and virtually model assumption free. Wang and Zhou [64] mention also that random forests have proved to be successful in various scenarios including classification, regression and survival analysis [7]. They can deal with both low and high dimensional data while other popular ensembles often fail when confronted with high dimensional datasets. As a result, a lot of models based on random forest have been developed for dealing with survival data [8, 26, 29, 35, 47, 48, 50, 56, 61, 68, 69]. Most models are very similar and differ in splitting criteria and the ensemble estimation. Splitting criteria totally defines the survival trees in the random forest and has been briefly considered above. Most survival random forests use averaging of the tree cumulative hazard estimates and its modifications.
It should be noted that other ensemble models and algorithms for dealing with survival data have been developed, for example, Hothorn et al. [25] proposed a unified and flexible framework for ensemble survival learning and introduced the corresponding random forest and generic gradient boosting algorithms.
Since the RSF is one of the most efficient models in survival analysis, then we pay attention to this model and propose an approach for its improving. The first idea underlying the improvement is to modify the procedure of averaging used for estimation of the forest survival function on the basis of survival functions of trees. We propose to replace the standard averaging with the weighted sum of the tree survival functions. The corresponding RSF with weights will be called weighted RSF (WRSF). By assigning the weights to every tree survival function, we, in fact, assign these weights to every tree in the random forest because the weights do not depend on the training examples. The second idea is that weights in the sum are regarded as training parameters which can be computed in an optimal way by solving an optimization problem. The third idea is to apply the concordance error rate called C-index [22] for constructing the optimization problem. The C-index estimates how good the model is at ranking survival times. It is one of the popular measures for comparison survival models. It turns out that maximization of the C-index may be a basis for training the tree weights. It should be noted that the use of the C-index in its original form makes the optimization problem computationally hard to be solved. Therefore, the fourth idea is to replace the C-index with its approximate representation which is based on applying the well-known hinge loss function. As a result, we get the standard quadratic optimization problem for computing optimal weights, which can be solved by many available methods.
The weighting scheme in random forests is not new. Some random forest algorithms assign weights to classes [13]. There are algorithms with weights of decision trees [37, 42, 54]. However, to the best of our knowledge, the weighting schemes have not been used in RSFs. Moreover, in contrast to the available weighting algorithms in original random forests, the proposed approach considers weights in the RSF as training parameters.
2 Some elements of survival analysis and a formal problem statement
In survival analysis, a patient is represented by a triplet , where is the vector of the patient parameters (characteristics) or the vector of features; indicates time to event of the patient, it is assumed to be non-negative and continuous. If the event of interest is observed, corresponds to the time between baseline time and the time of event happening, in this case , and we have an uncensored observation. If the instance event is not observed and its time to event is greater than the observation time, corresponds to the time between baseline time and end of the observation, and the event indicator is , and we have a censored observation. Suppose a training set consists of triplets , . The goal of survival analysis is to estimate the time to the event of interest for a new patient with feature vector denoted by by using the training set .
The survival and hazard functions are key concepts in survival analysis for describing the distribution of event times. The survival function denoted by as a function of time is the probability of surviving up to that time, i.e., . The hazard function is the rate of event at time given that no event occurred before time , i.e.,
[TABLE]
where is the density function of the event of interest.
By using the fact that the density function can be expressed through the survival function as
[TABLE]
we can write the following expression for the hazard rate:
[TABLE]
The survival function is determined through the hazard function as
[TABLE]
where is the cumulative hazard function.
We did not write the dependence of the above functions on a feature vector for short.
2.1 The Cox model
According to the Cox proportional hazards model, [24], the hazard function at time given predictor values is defined as
[TABLE]
Here is an arbitrary baseline hazard function; is the covariate effect or the risk function; is an unknown vector of regression coefficients or parameters. It can be seen from the above expression for the hazard function that the reparametrization is used in the Cox model. The function in the model is linear, i.e.,
[TABLE]
In the framework of the Cox model, the survival function is computed as
[TABLE]
Here is the cumulative baseline hazard function; is the baseline survival function.
The partial likelihood in this case is defined as follows:
[TABLE]
Here is the set of patients who are at risk at time . The term “at risk at time ” means patients who die at time or later.
It should be note that the idea underlying the use of neural networks in survival analysis is to replace the linear function with a non-linear function which is realized by means of a neural network [17].
In order to provide personalized treatment recommendations in accordance with the recommender function, we compute the functions and corresponding to different treatment groups. If the obtained function is positive, then treatment is preferable in comparison with treatment . In the case of a negative recommender function, treatment is more effective and leads to a lower risk than treatment (see, for example, [34]).
To compare the survival models, the C-index proposed by Harrell et al. [22] is used. The C-index estimates how good the model is at ranking survival times. It estimates the probability that, in a randomly selected pair of patients, the patient that fails first had a worst predicted outcome. In fact, this is the probability that the event times of a pair of patients are correctly ranking. C-index does not depend on choosing a fixed time for evaluation of the model and takes into account censoring of patients [45].
Let us consider the training set consisting of triplets . We consider possible or admissible pairs for . Then the C-index is calculated as the ration of the number of pairs correctly ordered by the model to the total number of admissible pairs. A pair is not admissible if the events are both right-censored or if the earliest time in the pair is censored. If the C-index is equal to 1, then the corresponding survival model is supposed to be perfect. If the C-index is 0.5, then the model is no better than random guessing.
Let denote predefined time points, for example, , where is distinct event times. If the output of a survival algorithm is the predicted survival function , then the C-index is formally calculated as [65]:
[TABLE]
Here is the number of all comparable or admissible pairs; is the indicator function taking the value if is true, and [math] otherwise; is the estimated survival function.
It should be noted that there are different definitions of the C-index, which depend on the output of a survival algorithm. However, we will use the definition (1) which plays an important role in the proposed improvement of the RSF.
2.2 Random survival forests
It has been mentioned that the RSF is one of the best models for survival analysis due to its properties. This is the main reason for its modifying below in order to improve the survival analysis results and to increase the prediction accuracy.
A general algorithm of constructing RSFs can be represented as follows [31]:
-
Draw bootstrap samples from the original data. Note that each bootstrap sample excludes on average 37% of the data, called out-of-bag data (OOB data).
-
Grow a survival tree for each bootstrap sample. At each node of the tree, randomly select candidate variables. The node is split using the candidate variable that maximizes survival difference between daughter nodes.
-
Grow the tree to full size under the constraint that a terminal node should have no less than unique deaths.
-
Calculate a cumulative hazard function for each tree or a survival function. Average to obtain the ensemble cumulative hazard function or the ensemble survival function.
-
Using out-of-bag data, calculate prediction error for the ensemble cumulative hazard function or the ensemble survival function.
The parameters of the algorithm proposed by Ishwaran et al. [31] and some its steps may vary, but, generally, it can be viewed as a basis for solving the survival analysis problem by means of many its implementations and modifications.
The most important question of the RSFs, which defines their different implementations is the splitting rule. As shown by Ishwaran et al. [31], a good split maximizes survival difference across the two sets of data. We shortly review the main splitting rules used in RSF [31, 65].
Let be the distinct times to event of interest, for example, times to deaths, in the parent node , and let and equal the number of deaths and patients at risk at time in the daughter nodes , i.e.,
[TABLE]
Here is the value of a feature for the -th patient, . Let and . Let and be total numbers of observations in daughter nodes such that , i.e.,
[TABLE]
The log-rank test for a split at the value for predictor is defined as
[TABLE]
The value is the measure of node separation, which should be minimized for better splitting.
An idea underlying another splitting rule called as conservation of events splitting is to suppose that the sum of estimated cumulative hazard functions over the observed time points must equal the total number of deaths. By using the notations introduced for the log-rank test, the measure of conservation of events for the split on at the value can be defined as
[TABLE]
It should be noted that the splitting rule should maximize survival differences due to the split. Therefore, the transformed value as a measure of node separation is used.
We also consider the approximate log-rank splitting. Let and . The log-rank test is
[TABLE]
The next important question is how to compute the ensemble hazard function or the ensemble survival function. First, we consider how to compute the cumulative hazard estimate for the -th terminal node of a tree. Let be the distinct death times in terminal node of the -th tree such that and and equal the number of deaths and patients at risk at time . The cumulative hazard estimate for node is defined as (the Nelson–Aalen estimator):
[TABLE]
If the -th patient with features falls into node , then we can say that . The ensemble cumulative hazard estimate for the -th patient is obtained by averaging cumulative hazard estimates of all trees, i.e.,
[TABLE]
The survival function can be obtained from as follows:
[TABLE]
Another ensemble estimate is considered by Ishwaran et al. [31], where OOB data are used. Let be a set of OBB example indexes for the tree . The OOB prediction for each training example uses only the trees that did not have in their bootstrap sample. If we define the indicator function as , then the OOB ensemble cumulative hazard estimator for the -th training example is defined as
[TABLE]
3 Weights of survival decision trees
One can see from (2) that the ensemble cumulative hazard estimate is obtained under condition that all trees have the same weights . A straightforward way to improve the random forest is to assign weights to decision trees. At that, it is assumed that the sum of weight is , i.e., every vector belongs to the unit simplex of the dimension . As a result, we replace the averaging of the cumulative hazard estimates (2) by weighted averaging for computing the the cumulative hazard function as follows:
[TABLE]
One of the ways for assigning the weights is to suppose that they are training parameters which can be optimized in accordance with a goal. Therefore, we have to define the goal or an objective function for getting optimal weights.
One of the most important measure for comparison different models is the C-index defined in (1). If we assume that the predicted survival function of the random forest depends on the weights, we can maximize the C-index with respect to the weights. Let us write the C-index as a function of the weights
[TABLE]
Here is the ensemble predicted survival function depending on weights of trees. By maximizing the over the non-negative weights , , under constraint , we can get optimal weights.
It is difficult to solve the optimization problem with the indicator function in the objective function (5) because we have a hard combinatorial problem. Moreover, the dependence of the ensemble survivor function on the weights is non-linear because
[TABLE]
Fortunately, we can overcome this difficulty as follows. Note that there holds
[TABLE]
Hence, we get
[TABLE]
Let us denote the set of all possible pairs in (5), satisfying the condition for and the condition for , as . Taking into account (4), we get the following optimization problem:
[TABLE]
subject to
[TABLE]
The constraints for weights produce the unit simplex denoted as whose dimensionality is . By maximizing over , we can get optimal weights.
One of the obvious ways for simplifying the optimization problem is to replace the indicator function with the sigmoid , i.e., the optimization problem becomes to be
[TABLE]
It can be seen from the objective function that the problem can be solved by applying the gradient descent method. However, the main difficulty here is to take into account the linear constraints for weights (7) which can be represented as the unit simplex of weights denoted as whose dimensionality is .
Another way for simplifying the optimization problem is to replace the indicator function with the hinge loss function similarly to the replacement proposed by Van Belle et al. [5]. The hinge loss function is of the form:
[TABLE]
By adding the regularization term, we can write the optimization problem as
[TABLE]
Here is a regularization term, is a hyper-parameter which controls the strength of the regularization. We define the regularization term as
[TABLE]
Let us introduce the variables
[TABLE]
Then the optimization problem is of the form:
[TABLE]
subject to and
[TABLE]
We get a standard quadratic optimization problem with linear constraints and with the vector of variables. It can be solved by many known methods.
It is interesting to note that the above optimization problem is very similar to the primal form of the well-known SVM [57].
A general algorithm for training the WRSF taking into account weighted ensemble estimation can be regarded as an extension of the algorithm given in previous section for the original RSF. Given the training set , , , , we use the cumulative hazard functions of all trees () corresponding to the -th example, , and solve the optimization problem (11)-(12). Taking the optimal weights as the solution of (11)-(12), we use (4) in order to get the ensemble survival function.
It is interesting to note that the above optimization problem is very similar to the primal form of the SVM modification for survival analysis [5, Problem (11)]. Indeed, the objective functions are identical. Constraints in the survival SVM are of the form: . One can see that the idea of the SVM modification for survival analysis is to find a line which separates ranking points . By using the problem (11)-(12), we try to find a line which separates the ranking points , where is the vector of the cumulative hazard function estimates for all trees at time by testing . If the SVM modification for survival analysis deals with pairs of feature vectors, then the proposed WRSF analyses pairs of the decision tree outputs. From this point of view, the proposed procedure for training the weights of trees can be regarded as a second-order SVM or meta-learner for the RSF.
It should be noted that the number of weights is equal to the number of trees in the forest. On the one hand, we would like to improve the classification algorithm by introducing the weights. On the other hand, we get a lot of training parameters which may lead to overfitting by a small amount of training data. In order to overcome this difficulty, we propose to reduce the number of weights by grouping trees into identical subsets and by assigned weights to the subsets. Suppose that we divide all trees into subsets such that every subset consists of trees, . Then we have weights and the optimization problem (11)-(12) can be rewritten as
[TABLE]
subject to and
[TABLE]
Here is the mean cumulative hazard function of the -th subset of trees. The parameters and can be regarded as tuning parameters in place of the parameter .
Another difficulty of solving the optimization problem (11)-(12) is a large number of constraints for because all admissible pairs of training data with indices from the set produce them. It is interesting to point out that the same difficulty has been considered in the SVM modification for survival analysis [6] where a scalable nearest neighbor algorithm was proposed to reduce computational load without considerable loss of performance. According to this algorithm, the number of constraints can be reduced by selecting a set of samples with a survival time nearest to the survival time of sample . However, we use another approach. In order to simplify the optimization problem, we propose to reduce the number of constraints by random selection of constraints from the whole set of constraints which is defined by all pairs of indices in the set . Of course, we may get a non-optimal solution in this case. However, our numerical experiments have shown that this simplification of the optimization problem provides better results than the original RSF.
4 Numerical experiments
Since the WRSF can be viewed as an improvement of the original RSF, then our interest in this study is to compare the weighted RSF and the original RSF.
In order to carry out the comparisons, the proposed weighted RSF is tested on seven real benchmark datasets. A short introduction of the benchmark datasets are given below.
The Primary Biliary Cirrhosis (PBC) Dataset contains observations of 418 patients with primary biliary cirrhosis of the liver from the Mayo Clinic trial [18], 257 of whom have censored data. Every example is characterized by 17 features including age, sex, ascites, hepatom, spiders, edema, bili and chol, etc. The dataset can be obtained via the “randomForestSRC” R package.
The **German Breast Cancer Study Group 2 (GBSG2) Dataset **contains observations of 686 women [55]. Every example is characterized by 10 features, including age of the patients in years, menopausal status, tumor size, tumor grade, number of positive nodes, hormonal therapy, progesterone receptor, estrogen receptor, recurrence free survival time, censoring indicator (0 - censored, 1 - event). The dataset can be obtained via the “TH.data” R package.
The Chronic Myelogenous Leukemia Survival (CML) Dataset is simulated according to structure of the data by the German CML Study Group used in [23]. The dataset consists of 507 observations with 7 feature: a factor with 54 levels indicating the study center; a factor with levels trt1, trt2, trt3 indicating the treatment group; sex (0 = female, 1 = male); age in years; risk group (0 = low, 1 = medium, 2 = high); censoring status (FALSE = censored, TRUE = dead); time survival or censoring time in days. The dataset can be obtained via the “multcomp” R package (cml).
The **Bladder Cancer Dataset (BLCD) [51] **(Chapter 21) contains data on 86 patients after surgery assigned to placebo or chemotherapy (thiopeta). Endpoint is time to recurrence in months. Data on the number of tumors removed at surgery was also collected. The dataset is available at http://www.stat.rice.edu/~sneeley/STAT553/Datasets/survivaldata.txt.
The Lupus Nephritis Dataset (LND) [1] contains data on 87 persons with lupus nephritis. followed for 15+ years after an initial renal biopsy (the starting point of follow-up). This data set only contains time to death/censoring, indicator, duration and log(1+duration), where duration is the duration of untreated disease prior to biopsy. The dataset is available at http://www.stat.rice.edu/~sneeley/STAT553/Datasets/survivaldata.txt.
The **Heart Transplant Dataset (HTD) **contains data on 69 patients receiving heart transplants [32]. This dataset is available at http://lib.stat.cmu.edu/datasets/stanford.
The Veterans’ Administration Lung Cancer Study (Veteran) Dataset [32] contains data on 137 males with advanced inoperable lung cancer. The subjects were randomly assigned to either a standard chemotherapy treatment or a test chemotherapy treatment. Several additional variables were also measured on the subjects. The dataset can be obtained via the “survival” R package.
The WRSF uses a software in Python to implement the procedures for computing optimal weights of trees, the corresponding C-index of the whole random forest, and other procedures required for training and testing the WRSF. The software is available at https://github.com/andruekonst/weighted-random-survival-forest.
To evaluate the C-index, we perform a cross-validation with repetitions, where in each run, we randomly select 75% of data for training and 25% for testing. Different values for the regularization hyper-parameter have been tested, choosing those leading to the best results.
Table 1 summarizes the numerical results for RSF and WRSF by different datasets (column 1). At that, Table 1 shows the mean values of the C-index (columns 2 and 3), the standard deviation (Std) (columns 4 and 5) and the median of the C-index (columns 6 and 7). It can be seen from Table 1 that the WRSF outperforms the RSF for all datasets. It is also interesting to point out that the standard deviation is decreased when we use WRSF.
We have mentioned that in the previous section that the number of trained weights may lead to reduction of the WRSF performance due to overfitting. Therefore, it is interesting to study how the C-index depends on the weight number. We take trees and divide them into , , subsets such that every subset contains , , trees, respectively. Every subset of trees can be viewed as a small RSF and it has its trained weight. The corresponding boxplots of the model performances by , , weights for all datasets are shown in Figs. 1-7. It turns out that the number of weights improves the WRSF performance for all datasets. Moreover, it is clearly seen from the boxplots that the WRSF outperforms the RSF especially by large number of weights.
An interesting question is which values of weights are assigned to trees. In order to answer this question, we provide a typical histogram of the weight values derived for the dataset CML (see Fig. 8). The weights are sorted in the descending order. The largest weight is , the smallest weight is .
Another interesting question is how the model performance depends on the number of trees in the random forest. The dependence of the C-index on the number of trees is illustrated in Fig. 9 where the solid and dotted lines correspond to the RSF and the WRSF, respectively. It can be seen from Fig. 9 that the large number of trees may lead even to the performance deterioration when we use the RSF. Whereas the large number of trees improves the WRSF.
Our next experiment aims to check whether we can apply the constraint reduction procedure in order to simplify calculations. We reduce the number of constraints by random selection of constraints for from the whole set of constraints which is defined by all pairs of indices in the set . We use again the Veteran dataset for experiments. Fig. 10 shows the dependence of the C-index on the number of selected constraints for optimization. We can see from Fig. 10 that the C-index increases with the number of constraints. Moreover, it is important to note that the C-index for RSF is less than the corresponding C-index for WRSF. This implies that the number of constraints may be reduced in many cases.
5 Conclusion
A new survival model based on using the weighted modification of the RSF has been presented in the paper. The main idea underlying this model is to improve the RSF by assigning weights to survival decision trees or to their subsets. The weights are viewed as training parameters. It turns out that this approach provides very improved results especially for some datasets, for example, BLCD, LND, HTD, Veteran. Numerical experiments have illustrated that the proposed model may provide significantly better results in comparison with the original RSF.
The proposed model has several advantages. First, the weights are assigned in accordance with the tree capability to correctly determine the cumulative hazard function. Second, the weights are training parameters which are computed by solving the standard quadratic optimization problem. As a results, the proposed approach is very simple. But the main advantage of the model is that it opens a door for developing a controllable RSF which can solve various machine learning problems in the framework of survival analysis, including, for example, transfer learning. This can be done by changing the loss function which depends on the weights. The consideration of these problems is a direction for further research.
We have studied only the case of linear dependence of the C-index on the weights. However, it is interesting to consider non-linear cases. One of the ways for implementing this case is to use a neural network which is trained to maximize the obtained C-index. The application of the neural network as an additional element of WRSF is also a direction for further research.
Another problem of the WRSF as well as the RSF is that the number of cases when falls into the -th terminal node of a tree may be very small. It makes confidence bounds for the Nelson–Aalen estimator, which estimates the cumulative hazard function, to be very large. The development of robust models taking into account this problem is another direction for further research.
Acknowledgement
This work is supported by the Russian Science Foundation under grant 18-11-00078.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] M. Abrahamowicz, T. Mac Kenzie, and J.M. Esdaile. Time-dependent hazard ratio: modelling and hypothesis testing with application in lupus nephritis. JASA , 91:1432–1439, 1996.
- 2[2] P. Afshar, A. Mohammadi, K.N. Plataniotis, A. Oikonomou, and H. Benali. From hand-crafted to deep learning-based cancer radiomics: Challenges and opportunities. ar Xiv:1808.07954 v 1, Aug 2018.
- 3[3] H. Akai, K. Yasaka, A. Kunimatsu, M. Nojima, T. Kokudo, N. Kokudo, K. Hasegawa, O. Abe, K. Ohtomo, and S. Kiryu. Predicting prognosis of resected hepatocellular carcinoma by radiomics analysis with random survival forest. Diagnostic and Interventional Imaging , 99(10):643–651, 2018.
- 4[4] V. Van Belle, K. Pelckmans, S. Van Huffel, and J.A. Suykens. Support vector methods for survival analysis: a comparison between ranking and regression approaches. Artificial intelligence in medicine , 53(2):107–118, 2011.
- 5[5] V. Van Belle, K. Pelckmans, J.A.K. Suykens, and S. Van Huffel. Support vector machines for survival analysis. In Proceedings of the Third International Conference on Computational Intelligence in Medicine and Healthcare (CIMED 2007) , pages 1–8, 2007.
- 6[6] V. Van Belle, K. Pelckmans, J.A.K. Suykens, and S. Van Huffel. Survival svm: a practical scalable algorithm. In ESANN , pages 89–94, 2008.
- 7[7] G. Biau and E. Scornet. A random forest guided tour. Test , 25(2):197–227, 2016.
- 8[8] I. Bou-Hamad, D. Larocque, and H. Ben-Ameur. Discrete-time survival trees and forests with time-varying covariates: application to bankruptcy data. Statistical Modelling , 11(5):429–446, 2011.
