Next Article in Journal
Pre-Configured Error Pattern Ordered Statistics Decoding for CRC-Polar Codes
Previous Article in Journal
Features of Self-Organization during the Process of Mindfulness-Based Stress Reduction: A Single Case Study
Previous Article in Special Issue
An Approach to Canonical Correlation Analysis Based on Rényi’s Pseudodistances
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Distance-Metric Learning for Personalized Survival Analysis

1
Institute of Medical Informatics, Biometrics and Epidemiology, University Hospital Essen, 45130 Essen, Germany
2
Nisso Chemical Europe GmbH, 40212 Düsseldorf, Germany
*
Author to whom correspondence should be addressed.
Entropy 2023, 25(10), 1404; https://doi.org/10.3390/e25101404
Submission received: 13 August 2023 / Revised: 21 September 2023 / Accepted: 26 September 2023 / Published: 30 September 2023

Abstract

:
Personalized time-to-event or survival prediction with right-censored outcomes is a pervasive challenge in healthcare research. Although various supervised machine learning methods, such as random survival forests or neural networks, have been adapted to handle such outcomes effectively, they do not provide explanations for their predictions, lacking interpretability. In this paper, an alternative method for survival prediction by weighted nearest neighbors is proposed. Fitting this model to data entails optimizing the weights by learning a metric. An individual prediction of this method can be explained by providing the user with the most influential data points for this prediction, i.e., the closest data points and their weights. The strengths and weaknesses in terms of predictive performance are highlighted on simulated data and an application of the method on two different real-world datasets of breast cancer patients shows its competitiveness with established methods.

1. Introduction

One important task in medical research and patient care is accurately predicting clinical outcomes for individual patients. Traditionally, (semi-)parametric approaches have been used, assuming a specific functional relationship, often linear, between the patient’s clinical characteristics and the outcome. However, there is a growing trend towards utilizing supervised machine learning models for this task due to their flexibility and ability to overcome these limitations. Although the focus of this paper is on prediction, machine learning models may not only offer more accurate outcome predictions but also support causal inference. For instance, they can be used to estimate the average treatment effect in the presence of confounding, using targeted maximum likelihood estimation [1]. Another application is the estimation of heterogeneous treatment effects, where the focus is on exploring how the effect of a treatment is influenced by the patient’s clinical characteristics [2,3].
The application of machine learning methods in medical sciences for classification or regression tasks is relatively straightforward. However, when it comes to time-to-event outcomes, which are of central importance in studying chronic diseases that progress over time (such as cancer or cardiovascular diseases), the challenges are more pronounced. This is because standard metrics used for training models, such as log-binomial loss or mean squared error, are not directly applicable due to the presence of (right) censored observations. Right censoring occurs when the true event time is not known for certain individuals, but only a lower bound of it. It can occur due to the loss of follow-up or if the event is not observed until the end of the study period. Despite these challenges, researchers have successfully adapted various machine learning methods [4], such as support vector machines [5], regression trees [6], forests [7], and more recently, deep neural networks [8,9], to handle time-to-event data. Although random survival forests and neural networks, in particular, provide accurate prediction, these models lack interpretability; that is, they do not provide explicit explanations for their predictions. Therefore, they are also referred to as “black box” models [10]. Furthermore, models such as random survival forest still have difficulties in modeling non-proportional hazards.
Instance-based algorithms are a class of machine learning algorithms that provide explicit explanations for individual predictions [11] (Chapter 8). In instance-based learning, the prediction for a new instance (i.e., a data point) is made by comparing it to the instances used for training and calculating weights. These weights are determined using a kernel function and depend on the metric in the covariate space. Training instances that are close to the new instance are assigned higher weights, while those that are far away receive lower weights. The prediction for the new instance is then obtained by taking the weighted average of the outcomes of the training instances. To ensure precise predictions, it is essential to optimize the distance measure and ensure that instances close to each other have similar outcomes. While there are numerous metric learning methods available for classification [12,13] and regression tasks [14], the same is not true for time-to-event outcomes. Existing approaches to time-to-event analysis rely on a weighted Kaplan–Meier estimate for survival prediction, but they have shown mixed results in terms of predictive performance and were not competitive with the random survival forest. Some of these approaches utilize a pre-defined metric [15,16] for calculating the weights, while others discretize the time and learn the metric through maximum likelihood estimation [17].
In this paper, we propose an algorithm that predicts the survival probability based on weighted instances by estimating parameters for the piece-wise exponential distribution. Due to the use of the piece-wise exponential distribution, we are able to model non-proportional hazards. The log-likelihood for continuous distributions is utilized as the loss function to optimize the metric on the covariate space. To minimize the required number of intervals, for an accurate fit of the survival curve’s shape, we employ a global transformation of time. Furthermore, we conduct a comparative analysis of the algorithm’s performance on simulated and real-world data against two widely used approaches: the de facto standard, the Cox proportional hazards model, and the easily applicable and widely adopted random survival forest.
The structure of the remaining paper is as follows: In Section 2.1, we formally introduce the problem and provide a clear definition. We briefly sketch the well-established Cox proportional hazards and random survival forest approaches in Section 2.2. In Section 2.3 and Section 2.4, we present our approach, the kernel survival prediction with piecewise exponential distributions. Moving on to the experimental setup, in Section 3.1, we outline the conducted experiments and describe the performance measures utilized. We also discuss the distributions used for simulating data in Section 3.2. In Section 4, we present the results obtained from the conducted experiments. Finally, in the concluding Section 5, we summarize our findings and provide an outlook for future research directions.

2. Materials and Methods

2.1. Problem Setting

By capital letters X , Y , C , we denote the random variables for the covariates, the time until an event, and the time until censoring respectively. Of those, only realizations of X are observed. Instead of Y and C, the time T = min ( Y , C ) until event or censoring, whichever occurs first, and Δ = 1 ( Y C ) , an indicator which is 1 if an event occurred before censoring and 0 otherwise, are observed. Our aim is to estimate the conditional survival probability
S ( t | x ) : = P ( Y > t | X = x ) ,
given i.i.d. realizations D = ( x 1 , t 1 , δ 1 ) , , ( x n , t n , δ n ) R m × R > 0 × { 0 , 1 } of X , T and Δ . Equivalently, we can estimate the hazard rate λ ( t | x ) or the cumulative hazard Λ ( t | x ) , which are given by
λ ( t | x ) : = lim ϵ 0 S ( t | x ) S ( t + ϵ | x ) ϵ S ( t | x ) , and Λ ( t | x ) : = 0 t λ ( t | x ) d t .
The survival function can be retrieved from the cumulative hazard through S ( t | x ) = exp ( Λ ( t | x ) ) . The hazard rate at time t can be interpreted as the risk of an event in the next instant, given no event occurred until t. Oftentimes it is more convenient to model the hazard λ instead of modelling S directly. Throughout, we assume that C and Y are independent given X. Thus [18], the likelihood of an observation ( x , t , δ ) satisfies
f ( T = t , Δ = δ | X = x ) λ ( t | x ) δ exp ( Λ ( t | x ) ) .

2.2. Survival Prediction Based on Proportional Hazards

In this subsection, we quickly review the Cox regression and the idea behind the splitting rule for trees used to build the random survival forest. For the conventional Cox regression model, one assumes that the hazard rate λ ( t | x ) can be factorized in one term only depending on t, the so-called baseline hazard λ 0 , and one term only depending on x, i.e.,
λ ( t | x ) = λ 0 ( t ) exp ( h ( x ) ) .
Furthermore, one assumes that h is linear in x, i.e., h ( x ) = h β ( x ) = i = 1 m β i x i for some coefficients β i R . Under this assumption, we have
λ ( t | x 1 ) λ ( t | x 2 ) = exp ( h ( x 1 ) ) exp ( h ( x 2 ) ) ,
i.e., the hazard rates of x 1 and x 2 are proportional to each other independent of time t. One can show that the likelihood can be maximized with respect to β independently of λ ( t ) , by maximizing the partial likelihood
L C = i | δ i = 1 exp ( h β ( x i ) ) j | t j t i exp ( h β ( x j ) ) .
To obtain survival predictions from the Cox regression model, it is then necessary to calculate the cumulative baseline hazard λ ( t ) using the Breslow estimator. Instead of using a linear h it is also possible to use more complex structures like deep neural networks [8].
The partial likelihood L C can also be used to derive a splitting criterion for random survival trees. To this end, each split gives rise to a binary covariate indicating which child node an observation is assigned to. Calculating the minimal partial likelihood L C with respect to that covariate is a measure of the predictive quality of the split and, hence, can be used to pick the best split. This is, in fact, the basic idea of the splitting rule used for the most common random survival forests [7,19]. To estimate the cumulative hazard or survival probability within each leaf, one can utilize either the Nelson–Aalen estimate or the Kaplan–Meier estimate for the instances contained in the leaf.
One can expect that for both methods, the Cox regression model and the random survival forest, predictive performance decreases with increasing non-proportionality of the hazards.

2.3. Survival Prediction with Kernels

Predicting the survival probabilities for a patient with covariates x, based on the training data ( x i , t i , δ i ) i = 1 , , n , involves two steps. Firstly, we assign weights w i to each instance in the training set, quantifying the similarity between x and x i . Secondly, we utilize the weighted training data to estimate the parameters of a survival distribution for x.
The notion of similarity in the covariate space is formalized through a kernel function, denoted as k : R m × R m R . A kernel function is a symmetric function which satisfies that the matrix k ( x ˜ i , x ˜ j ) i , j = 1 , , l is positive semi-definite for any choice of l N and x ˜ 1 , , x ˜ l R m . Although a variety of different kernel functions exists [20], we have for simplicity chosen to focus on the radial basis function. Consequently, the weights w i in our case are calculated as
w i = exp ( d 2 ( x , x i ) ) ,
where d : R m × R m R 0 is a (pseudo)metric. For our algorithm, fitting entails learning d. We confine ourselves to the subset of metrics where the distance is induced by an inner product, meaning that we have
d 2 ( x , x i ) = ( x x i ) A ( x x i ) ,
for a positive semi-definite, symmetric matrix A. Using the Cholesky decomposition, we have A = U U for an upper triangular matrix U. Hence, we can simply learn U instead of A and the expression for the weights w i simplifies to w i ( U , x ) = exp ( U x U x i 2 ) , where · denotes the Euclidean norm. This first step is common in instance-based learning and used for regression tasks [14] as well as for survival prediction [15,17].
What mainly distinguishes our approach from existing methods, in regard to learning a metric for survival prediction, is the second step, i.e., the actual prediction of the survival probabilities using ( w i ( U , x ) , t i , δ i ) i = 1 , , n , and the weighted outcomes of the given training data D . While in existing approaches the survival predictions are derived from the weighted outcomes using the non-parametric weighted Kaplan–Meier estimate, we use the weighted outcomes to estimate the parameters of a piece-wise exponential distribution. To this end, it is necessary to split the time into k N disjoint intervals, i.e., R > 0 = ( τ 0 , τ 1 ] ( τ 1 , τ 2 ] ( τ k 1 , τ k ) , with τ 0 = 0 , τ k = and k being a chosen number. Denote by δ i j : = δ i 1 ( t i ( τ j 1 , τ j ] ) if for the i-th training instance the event occurred in the j-th interval, by r j ( t ) : = | ( 0 , t ] ( τ j 1 , τ j ] | the time at risk in interval j for an observed time t and, furthermore, by j ( t ) the index of the interval containing t. The hazard rate in the j-th interval, as the maximum likelihood estimate of the weighted outcomes under the piece-wise exponential distribution, is then given by
λ j ( x ) = i = 1 n w i ( U , x ) δ i j i = 1 n w i ( U , x ) r j ( t i ) .
Its derivation can be found in Appendix A. Using (1), we obtain
Λ ( t | x ) = j = 1 k λ j ( x ) r j ( t ) and S ( t | x ) = exp ( j = 1 k λ j ( x ) r j ( t ) ) ,
for the cumulative hazard and the survival probability. While within the intervals the hazard rates, and therefore the hazard ratios, are constant, they will in general differ across intervals, i.e., λ j ( x ) / λ j ( x ˜ ) λ l ( x ) / λ l ( x ˜ ) , for j l .
Let us now finally describe how to obtain the metric-inducing transformation U. We obtain the log-likelihood for an observation ( x , t , δ ) under the model by plugging the above equation in (2). Hence, we obtain
log ( f ( T = t , Δ = δ | x ) ) = δ log i = 1 n w i ( U , x ) δ i j ( t ) i = 1 n w i ( U , x ) r j ( t ) ( t i ) j = 1 k i = 1 n w i ( U , x ) δ i j i = 1 n w i ( U , x ) r j ( t i ) r j ( t ) ,
where we adopted the convention 0 log 0 = 0 . However, instead of obtaining U by maximization of the log-likelihood on the training data, we add a regularization term η U 2 , with η > 0 being another hyperparameter, and, as in Weinberger and Tesauro [14], set w i ( U , x i ) = 0 , both to prevent overfitting. More specifically, by setting w i ( U , x i ) = 0 we make sure that, for learning U, the i-th instance is not used to predict its own outcome. Adding the term η U 2 results in a smaller U, which decreases the variance of the weights. Other regularization schemes, such as the more general elastic net regularization, could also be used [21]. All in all, U is then given by
U = argmin U ˜ η U ˜ 2 + 1 n l = 1 n δ l log i = 1 n w i ( U ˜ , x l ) δ i j ( t l ) i = 1 n w i ( U ˜ , x l ) r j ( t l ) ( t i ) j = 1 k i = 1 n w i ( U ˜ , x l ) δ i j i = 1 n w i ( U ˜ , x l ) r j ( t i ) r j ( t l )
We note that the computational complexity of the loss grows quadratically with the number of training samples, which might make our approach unpractical for large datasets and may require adaptations. Additionally, it is important to acknowledge the non-convex nature of the loss function, which may necessitate multiple random initializations of the matrix U when utilizing a gradient-based optimizer.
Furthermore, let us consider the available hyperparameters. In this paper, we solely focus on the Gaussian radial basis function as the kernel function, but other options exist. Moreover, the number and location of time intervals for the piece-wise exponential distribution have to be picked. Through our experiments, we will demonstrate that typically only a few (≤5) intervals are needed for the algorithm to perform well when using the time transformation introduced in the next subsection. Lastly, the regularization parameter, denoted by η , has to be selected.

2.4. Transformation of Time

The shape of the survival curve might be very different from an exponential distribution, and thus to appropriately model the survival we would need a high number of time intervals. To avoid this issue, we use a time transformation introduced in LeBlanc and Crowley [22]. This transformation, denoted as φ : t t ˜ , is designed such that the transformed times for observations with events correspond to the Nelson–Aalen estimates of the cumulative hazard. For censored observations, the transformed times are linearly interpolated. This approach ensures that the survival prediction of the (unweighted) exponential model on the transformed times coincides with those of the Nelson–Aalen model.
By using this transformation, the need for a high number of time intervals is reduced, as the different time intervals are only required to model non-proportional hazards.

3. Experiments on Simulated and Real-World Data

3.1. Description of Data and Evaluation Criteria

We conducted a performance evaluation of the kernel prediction method by comparing it against two established approaches in survival analysis on simulated and real-world datasets: Cox regression, which serves as the de facto standard, and survival forest, which is widely used and easily applicable.
For the simulated data, we varied several parameters, such as the training data sizes, the degree of interaction, the nonlinear rescaling of covariates, the non-proportionality of hazards, and the proportion of censoring to evaluate the effect on the predictive performance. Training and evaluation data were drawn from the same distributions. For each setting, we ran 100 simulations.
In addition to the simulated data, we also evaluated the performance of our method on two publicly available datasets: the METABRIC dataset [8,23] (1904 observations, 9 covariates, 42% censoring) and the Rotterdam/GBSG dataset [8,24,25] (2232 observations, 7 covariates, 43% censoring). Both datasets contain clinical attributes and information on survival of breast cancer patients. To obtain an unbiased assessment, we partitioned each dataset into randomly selected separate training and test sets. To investigate the influence of training data size on performance, we varied the size of the training set, including proportions of 30%, 50%, and 70% of the total data. We considered 100 different splits for each training data size to account for random variation and obtain reliable performance estimates. Unlike the random survival forest, the Cox regression and the introduced kernel prediction are not invariant under monotone transformations of the numerical covariates. Hence, to illustrate the importance of the choice of the appropriate scale on real-world data, we performed an additional analysis on the Rotterdam/GBSG dataset where we replaced the two covariates indicating levels of progesterone and estrogen, given in fmol/mg, by their logarithm, as this is a more natural scale for concentrations.
Antolini’s concordance index [26] and the integrated Brier score [27] were employed as performance measures. The concordance index was utilized to evaluate the discriminative performance. To calculate Antolini’s concordance index, one examines all pairs within the test set that can be ordered, meaning we can determine which event occurs first. This is the case if an event took place at the earlier event time, i.e., this set consists of all pairs i , j = 1 , , n which satisfy the conditions t i < t j and δ i = 1. The concordance index is the proportion of those pairs which are ordered correctly by the model in the sense that S ^ ( t i | x i ) < S ^ ( t i | x j ) . Hence, the concordance index is an estimate for
P ( S ( T i | X i ) < S ( T i | X j ) | T i < T j and Δ i = 1 ) ,
for a randomly chosen pair i , j of subjects. The higher the concordance index the better. A concordance index of 0.5 indicates that the predictions are not informative in terms of discrimination. The integrated Brier score on the other hand primarily assesses calibration. The Brier score at a specific time point is calculated as the weighted mean of squared differences between the predicted survival probability and the corresponding state (1 for alive, 0 for deceased) of an instance at that time. The inverse probability of censoring weighting is employed as a weighting scheme, ensuring that the Brier score for time t provides an unbiased estimate of
E ( 1 ( Y > t ) S ( t | X ) ) 2 .
To obtain the integrated Brier score, a single performance index for the whole follow-up, the Brier score is integrated numerically up to a specified time, which we chose to be the 95% quantile of the event times. As the final evaluation measure for a model M, we do not use the integrated Brier score B I ( M ) directly, but the improvement with respect to the Kaplan–Meier estimator, R 2 : = 1 B I ( M ) / B I ( K M ) , as suggested in Graf et al. [27] to measure the explained residual variation. While these two criteria are the most common to evaluate model performance [4], further model measures and diagnostics, such as graphical analysis of calibration [28], exist.
The experiments were carried out in Python 9.3.16. The considered hyperparameters for the methods were optimized using grid search and 10-fold cross-validation on the training data. The implementation in [19] of the random survival forest was used. The number of features used per split and the minimal number of observations per node were optimized. The classical Cox regression, with the linear dependency of the log hazard on the covariates, was carried out with [29]. For the kernel prediction, we only determined the regularization parameter η by cross-validation, the number of time intervals was set to four for all experiments. The quantiles of the observed event times were chosen as splitting times to ensure a sufficient number of events in each time interval. Optimization of the log-likelihood was carried out with LBFGS [30] implemented in PyTorch 1.12.1 [31] on the standardized predictors with the identity matrix as the initial value. More details on the considered hyperparameters can be found in Appendix B.

3.2. Description of Simulation Settings

We conducted four series of simulations. In the first, series A, we varied the degree of interactions in a controlled way, in the second, series B, we varied the degree of non-proportionality of hazards, in the third, series C, we varied a monotonic transform on the covariates, and in the fourth, series D, we studied the behavior under ties. In all those series of simulations, the covariates X were drawn from an m dimensional standard normal distribution. The parameter μ , specifying the location (series A, C and D) or log-scale (series B) of the survival distribution, depended in all simulations on the covariates X via μ ( X ) = α q X M X E X [ X M X ] + α X b . The matrix M Sym m ( R ) and the vector b R m were randomly chosen at each run of the simulation with b i , M i j N ( 0 , 1 ) for i = 1 , , m , j i , and M i i = 0 . Thus, X M X specifies the dependency of μ on interaction terms of the covariates, while X b specifies the linear dependency. Noting that Var X ( μ X ) = α q 2 2 Tr ( M 2 ) + α b b , we chose the parameters α q and α in a controlled way, such that (i) Var X ( μ ( X ) ) = 1 and (ii) a specified percentage of the variance of μ stemmed from the interaction terms X M X .
Simulation series A generated survival data by assuming a fixed shape of the survival curve, with the survival time Y following a lognormal distribution with log ( Y ) N ( μ , 1 ) . The parameters α q , α were varied, such that either 0, 25, 50, 75, or 100% of the variance of μ stemmed from the interaction terms.
Simulation series B examined the performance of the models when one covariate breaks the proportional hazards assumption by influencing the shape of the survival curve. In this simulation, the event times were drawn from a Weibull distribution, i.e., Y Wei ( Scale , Shape ) . To break the proportional hazards assumption, an additional binary covariate X m + 1 with P ( X m + 1 = 1 ) = P ( X m + 1 = 0 ) = 0.5 specifying the shape of the curve was introduced. Specifically, we have
Y Wei ( exp ( μ ( X ) ) , θ 0 ) , for X m + 1 = 0 , Wei ( exp ( μ ( X ) + α 1 ) , θ 1 ) , for X m + 1 = 1 .
The parameters α 1 , θ 0 , and θ 1 were varied such that (i) the hazard ratio between the survival curves Wei ( 1 , θ 1 ) and Wei ( exp ( α 1 ) , θ 1 ) was approximately 1 and (ii) the integrated squared difference between the two curves varied from 0 to 0.3 in approximately equidistant steps. In simulation series B, α q and α were chosen, such that 50% of the variance of μ was explained by the interaction terms. The exact values of α 1 , θ 0 , and θ 1 and a plot of the survival curves for μ = 0 can be found in Appendix C.
For simulation series C and D, we used the same survival distribution as in A and again fixed α q , α , such that 50% of the variance of μ came from the interaction terms. However, for the simulations of series C, we did not use the realizations of X for fitting the prediction models but their values under the pointwise transformation x sgn ( x ) | x | p with p { 0.5 , 0.75 , 1 , 1.25 , 1.5 , 1.75 , 2 } . For series D of simulations, we discretized the observed times of the training set by mapping them to the median of those quantiles of the event times that contained them. The different observed times in the training data varied from 15 over 30 and 60 up to 120.
For all four series of simulations, censoring times were generated from a Weibull distribution with a shape parameter of 1.2. The scale of this distribution was varied, such that either 0%, approximately 25%, or 50% of observations were censored. To reduce variance and to allow for a better understanding of performance loss due to the censoring of training data, the predictions of the models were evaluated against the uncensored test data. In all simulations, we set m = 6 and drew, for each run, 400 samples for the training set and 4000 samples for the test set. We also conducted a sensitivity analysis to see if our results depended on the size of the training data and conducted the same series of analyses with a training set of 200 samples.

4. Results

4.1. Results of Simulation

The results of simulation A are shown in Figure 1a. We see that the concordance and the R 2 decrease for all models as the level of interaction increases. The decrease in performance is almost parallel for the random survival forest and the kernel prediction, with the kernel prediction being better. If there is no interaction at all, the Cox model performs slightly superior than the other models as its assumptions are approximately met. However, the performance declines rapidly with increasing levels of interactions, eventually becoming uninformative. While the performance of the Cox model could be improved by adding interaction terms, the simulation highlights an advantage of machine learning models as they do not require the specification of a certain functional form between covariates and outcomes. Moreover, as the censoring rate increases, the relative performance of the kernel prediction compared to the random survival forest increases slightly.
The results of simulation B are displayed in Figure 1b. For this simulation, the result strongly depends on the level of censoring, as the censoring influences the hazard ratio as well as the log-rank score [32]. Regarding concordance, we see that, except for the Cox proportional hazards model, the performance increases with the non-proportionality of hazards regardless of censoring. For the Cox model, the concordance decreases drastically when there is no censoring, but remains relatively constant when the censoring is 25 or 50%. The R 2 decreases for all models when censoring is absent or low. However, the kernel prediction shows by far the lowest decrease. When there is 50% censoring, only the Cox model shows a decrease in performance, while the performance of the other methods remains relatively constant.
The results of simulation C can be found in Figure 1c. The performance of the random forest is the same for all transformations, as for the algorithm only the ordering of the covariates is important. The kernel prediction, on the other hand, shows a very high dependence on the nonlinear scaling in terms of both, concordance and R 2 . Depending on the transformation, its performance varies from being the best algorithm to a performance similar to the Cox model, below the random survival forest. The performance of the Cox model depends on the nonlinear scaling as well, although it is less sensitive than the kernel prediction. Also in this series of simulations, the relative performance of the kernel prediction compared to the random survival forest seems to increase with increasing censoring rate.
Lastly, the results of simulation D can be found in Figure 1d. Performance, in terms of concordance index and R 2 , remains quite stable for kernel prediction and random survival forest. For the Cox regression model, we see that while the concordance index remains stable, the R 2 decreases when we only have a few different observed times, i.e., when the number of ties is high. The decrease is more pronounced when censoring is absent or small.
The results of sensitivity analysis for a smaller training set of size n = 200 showed the same patterns and can be found in Appendix D.
Overall we see similar trends in the performances of kernel prediction and random survival forest when the level of interaction increases. The kernel prediction handles non-proportional hazards better, while it is, unlike the random survival forest, very sensitive to nonlinear scaling of the covariates. If the scaling is suitable though, it consistently outperforms the random survival forest. Of the examined algorithms, the Cox model depends on most assumptions and its performance decreases fast in all considered scenarios when those assumptions are not met.

4.2. Results on Real-World Data

The box plots of the performance on real-world data are shown in Figure 2. In the case of the Rotterdam/GBSG dataset, kernel prediction and random survival forest show similar performance in terms of concordance across all training and test sizes. However, when it comes to R 2 , random survival forest outperforms the other methods, while the Cox regression model performs the worst. It is worth noting that as the training size increases, the performance of kernel prediction catches up with the random survival forest. One reason for the comparable poor performance of the Cox regression model and the kernel prediction is the inappropriate scaling of the numerical variables indicating the concentration of progesterone and estrogen. For the rescaled data, we see that just like for simulated data and the METABRIC dataset, kernel prediction outperforms the random survival forest in terms of concordance. The R 2 is slightly better for the random survival forest for smaller training sizes, but almost identical when we use 70% of the data for training. Also, the Cox regression model performs substantially better after rescaling of the covariates. An example of how similar patients can be used to explain individual predictions on the Rotterdam/GBSG dataset is in Appendix F.
The results for the METABRIC dataset are shown in Figure 2b. We see that when using a small training set, kernel prediction demonstrates superior performance in terms of concordance while the R 2 is similar for all methods. As the training size increases, the performances of kernel prediction and random survival forest become similar in terms of concordance but kernel prediction becomes superior in terms of R 2 . We assume that part of the superior performance for the METABRIC dataset is due to the better ability of the kernel prediction to handle non-proportional hazards. Figure 3 illustrates this assumption by presenting the Kaplan–Meier estimates for two distinct subgroups within the dataset: the patients who received chemotherapy (n = 396) and those who did not (n = 1508). The Kaplan–Meier curves intersect with each other, indicating a violation of the proportional hazards assumption. Additionally, we depict the mean survival probability for each subgroup estimated by kernel prediction and random survival forest, which ideally should coincide with the Kaplan–Meier curves. The estimate of the Cox proportional hazard model, where it is not possible for the curves of the different treatment groups to intersect, can be found in Appendix E. It can be seen that both algorithms, the kernel prediction and the random survival forest, estimate the average survival probabilities of the patients without chemotherapy, the larger subgroup, well. For the treated patients, however, we see that the random survival forest produces highly biased survival estimates, which strongly overestimate the survival probabilities throughout the entire 30-year follow-up period. The kernel prediction, on the other hand, is quite accurate up to year 15, particularly when there is still a considerable number of patients at risk. For the remaining years, from year 15 to 30, it looks like a smoothed version of the Kaplan–Meier estimate, as it replaces the step-wise drops with a continuous decrease.

5. Discussion

In this paper, we introduced a kernel learning approach for survival analysis that is easy to implement and provides direct interpretability of individual predictions through nearest neighbors. Our method proved to be competitive with other easily applicable techniques, such as random survival forest, on simulated and real-world data. However, there are still some limitations, open problems, and avenues for future research.
One drawback of our proposed kernel prediction compared to the random survival forest is that the latter can deal with missing values more effectively, e.g., via surrogate splits. Another limitation is the sensitivity of the proposed algorithm to the nonlinear scaling of covariates. It would be worth exploring the possibilities of learning a suitable scaling in a data-driven fashion to improve the predictive performance of the kernel prediction. When scaling of covariates is appropriate, kernel prediction performs better than random survival forest in our simulations and on the used real-world data.
Although the paper already demonstrates competitiveness in terms of predictive accuracy when considering only a single hyperparameter, namely the regularization, there are further hyperparameters that can be considered, such as the number and position of the time intervals. While for the experiments in this article, we did not vary the number of intervals, and used the quantiles to position them; this choice was made ad hoc and might not be ideal, in particular when event times are clustered. An investigation on how to best pick the intervals would also greatly benefit other methods using a piece-wise approach, such as neural networks [9]. In addition, the impact of the choice of the kernel function and the norm used in it can be explored. We solely focused on the Gaussian radial basis function; however, many other different possibilities exist. Apart from choosing one kernel, one might also consider employing algorithms for multiple kernel learning to best combine different kernels [33].
As already mentioned, the computational complexity of the presented algorithm scales quadratically in the number of observations, which limits the application to small- to medium-sized datasets. One ad hoc solution is to only use a subset of neighbors, e.g., the closest 1000 for each neighbor, for the calculation and optimization of the kernel, as suggested in [14]. Another possibility is to leverage kernel approximation methods, such as random features [34] or sparse grids for kernel learning [35]. These approaches could help reduce computational complexity while maintaining acceptable predictive performance.
Looking beyond the specific application of survival prediction, our kernel learning approach has a broader use. By deriving a meaningful metric between patients based on the learned kernel, our method enables clinicians to query for similar patients or facilitate subgroup discovery through metric-based clustering. This broader context opens up new avenues for utilizing our method in personalized medicine and healthcare applications.

Author Contributions

Conceptualization, W.G. and A.S.; methodology, W.G.; software, W.G.; validation, W.G.; formal analysis, W.G.; investigation, W.G.; data curation, W.G.; writing—original draft preparation, W.G.; writing—review and editing, W.G., B.K., C.J., E.-M.H. and A.S.; visualization, W.G.; supervision, B.K. and A.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by a PhD grant from the DFG Research Training Group 2535 Knowledge- and data-based personalization of medicine at the point of care (WisPerMed), University of Duisburg-Essen, Germany. We acknowledge support by the Open Access Publication Fund of the University of Duisburg-Essen.

Data Availability Statement

Publicly available datasets were analyzed in this study. This data can be found here: https://github.com/jaredleekatzman/DeepSurv/tree/master/experiments/data. The python code to generate the simulated data is available upon request.

Acknowledgments

The authors thank Louise Bloch for the very helpful feedback on the manuscript.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Given the weighted outcomes ( w 1 , t 1 , δ 1 ) , , ( w n , t n , δ n ) , the log-likelihood of a single observation ( w i , t i , δ i ) , assuming a piece-wise constant hazard rate λ ( t ) = l = 1 k λ l 1 ( t ( τ l 1 , τ l ] ) is, using (2), given by
log f ( T = t i , Δ = δ i | λ l = 1 , , k ) = log λ j ( t i ) δ i exp 0 t i l = 1 k λ l 1 ( t ( τ l 1 , τ l ] ) d t + Const . = δ i log λ j ( t i ) l = 1 k λ l r l ( t i ) + Const . = l = 1 k δ i l log λ l λ l r l ( t i ) + Const . ,
where the constant only depends on the censoring distribution. Hence, for the full-weighted log-likelihood, we obtain
log f ( ( w i , T = t i , Δ = δ i ) i = 1 , , n | λ l = 1 , , k ) = i = 1 n w i l = 1 k δ i l log λ l λ l r l ( t i ) + Const .
For j = 1 , , l , the maximum likelihood estimate satisfies
0 = λ j log f ( ( w i , T = t i , Δ = δ i ) i = 1 , , n | λ l = 1 , , k ) = i = 1 n w i l = 1 k δ i l 1 λ l 1 ( l = j ) 1 ( l = j ) r l ( t i ) = i = 1 n w i δ i j 1 λ j r j ( t i ) λ j = i = 1 n w i δ i j i = 1 n w i r j ( t i ) .

Appendix B

Table A1. Hyperparameters considered in cross-validation for random survival forest. The number of trees was set to 500.
Table A1. Hyperparameters considered in cross-validation for random survival forest. The number of trees was set to 500.
DataNumber of Covariates Considered for SplitsMinimum Samples per Leaf
Simulation A, C2, 4, 65, 10, 20, 40
Simulation B2, 4, 75, 10, 20, 40
METABRIC3, 4, 95, 10, 20, 40
Rotterdam/GBSG2, 3, 75, 10, 20, 40
For the kernel prediction, we first considered a preliminary η ˜ via cross-validation from { 10 2 , 10 3 , 10 4 } . The final regularization parameter η was then selected via cross-validation from { η 2 3 , η 2 2 , , η 2 3 } . We considered fewer hyperparameter combinations for the kernel prediction than for the random survival forest.

Appendix C

Table A2. Parameters of simulation B.
Table A2. Parameters of simulation B.
Degree of Non-Proportionality θ 0 θ 1 α 1
01.221.220
10.791.900.24
20.642.350.33
30.572.700.39
40.503.000.43
Figure A1. Survival probabilities in simulation B for μ = 0 depending on X m + 1 for the selected degrees of non-proportionality. If the degree of non-proportionality is 0, X m + 1 does not have an effect on the shape of the curve.
Figure A1. Survival probabilities in simulation B for μ = 0 depending on X m + 1 for the selected degrees of non-proportionality. If the degree of non-proportionality is 0, X m + 1 does not have an effect on the shape of the curve.
Entropy 25 01404 g0a1

Appendix D

Figure A2. Mean concordance index and mean R 2 with respect to the integrated Brier score (IBS) of the Cox proportional hazards model (Cox), kernel prediction (kp), and random survival forest (rsf) under different settings and with a training size of n = 200 . (a) Simulation A: By degrees of interaction. (b) Simulation B: By non-proportionality of hazards. (c) Simulation C: By exponent of covariate transformation. (d) Simulation D: By different numbers of observed times.
Figure A2. Mean concordance index and mean R 2 with respect to the integrated Brier score (IBS) of the Cox proportional hazards model (Cox), kernel prediction (kp), and random survival forest (rsf) under different settings and with a training size of n = 200 . (a) Simulation A: By degrees of interaction. (b) Simulation B: By non-proportionality of hazards. (c) Simulation C: By exponent of covariate transformation. (d) Simulation D: By different numbers of observed times.
Entropy 25 01404 g0a2

Appendix E

Figure A3. Survival probabilities of patients from the METABRIC dataset, stratified by treatment with chemotherapy, estimated with the Kaplan–Meier method (KM) and by the Cox proportional hazards model (Cox).
Figure A3. Survival probabilities of patients from the METABRIC dataset, stratified by treatment with chemotherapy, estimated with the Kaplan–Meier method (KM) and by the Cox proportional hazards model (Cox).
Entropy 25 01404 g0a3

Appendix F

Figure A4. Example of an explanation of a kernel prediction via nearest neighbors on the Rotterdam/GBSG dataset. The table shows the clinical characteristics of the patient for whom we predict recurrence-free survival (first-line, blue background) and of the most important patients used for prediction, ranked by the assigned weights (right column). Attributes that cause dissimilarity according to the learned metric are marked in red. The left side shows the weighted Kaplan–Meier curve (solid line) and the smooth kernel prediction (dashed line).
Figure A4. Example of an explanation of a kernel prediction via nearest neighbors on the Rotterdam/GBSG dataset. The table shows the clinical characteristics of the patient for whom we predict recurrence-free survival (first-line, blue background) and of the most important patients used for prediction, ranked by the assigned weights (right column). Attributes that cause dissimilarity according to the learned metric are marked in red. The left side shows the weighted Kaplan–Meier curve (solid line) and the smooth kernel prediction (dashed line).
Entropy 25 01404 g0a4

References

  1. Smith, M.J.; Phillips, R.V.; Luque-Fernandez, M.A.; Maringe, C. Application of targeted maximum likelihood estimation in public health and epidemiological studies: A systematic review. Ann. Epidemiol. 2023, 86, 34–48.e28. [Google Scholar] [CrossRef]
  2. Wager, S.; Athey, S. Estimation and Inference of Heterogeneous Treatment Effects using Random Forests. J. Am. Stat. Assoc. 2018, 113, 1228–1242. [Google Scholar] [CrossRef]
  3. Hu, L.; Ji, J.; Li, F. Estimating heterogeneous survival treatment effect in observational data using machine learning. Stat. Med. 2021, 40, 4691–4713. [Google Scholar] [CrossRef]
  4. Wang, P.; Li, Y.; Reddy, C.K. Machine Learning for Survival Analysis: A Survey. ACM Comput. Surv. 2019, 51, 1–36. [Google Scholar] [CrossRef]
  5. Pölsterl, S.; Navab, N.; Katouzian, A. Fast Training of Support Vector Machines for Survival Analysis. In Proceedings of the Machine Learning and Knowledge Discovery in Databases; Appice, A., Rodrigues, P.P., Santos Costa, V., Gama, J., Jorge, A., Soares, C., Eds.; Springer International Publishing: Cham, Switzerland, 2015; pp. 243–259. [Google Scholar] [CrossRef]
  6. Segal, M.R. Regression Trees for Censored Data. Biometrics 1988, 44, 35–47. [Google Scholar] [CrossRef]
  7. Ishwaran, H.; Kogalur, U.B.; Blackstone, E.H.; Lauer, M.S. Random survival forests. Ann. Appl. Stat. 2008, 2, 841–860. [Google Scholar] [CrossRef]
  8. Katzman, J.L.; Shaham, U.; Cloninger, A.; Bates, J.; Jiang, T.; Kluger, Y. DeepSurv: Personalized treatment recommender system using a Cox proportional hazards deep neural network. BMC Med. Res. Methodol. 2018, 18, 24. [Google Scholar] [CrossRef]
  9. Kvamme, H.; Borgan, Ø. Continuous and discrete-time survival prediction with neural networks. Lifetime Data Anal. 2021, 27, 710–736. [Google Scholar] [CrossRef]
  10. Miotto, R.; Wang, F.; Wang, S.; Jiang, X.; Dudley, J.T. Deep learning for healthcare: Review, opportunities and challenges. Briefings Bioinform. 2017, 19, 1236–1246. [Google Scholar] [CrossRef]
  11. Mitchell, T.M. Machine Learning, 1st ed.; Series in Computer Science; McGraw-Hill: Chicago, IL, USA, 1997. [Google Scholar]
  12. Weinberger, K.Q.; Saul, L.K. Distance Metric Learning for Large Margin Nearest Neighbor Classification. J. Mach. Learn. Res. 2009, 10, 207–244. [Google Scholar]
  13. Li, D.; Tian, Y. Survey and experimental study on metric learning methods. Neural Netw. 2018, 105, 447–462. [Google Scholar] [CrossRef]
  14. Weinberger, K.Q.; Tesauro, G. Metric Learning for Kernel Regression. In Proceedings of the Eleventh International Conference on Artificial Intelligence and Statistics, San Juan, PR, USA, 21–24 March 2007; Proceedings of Machine Learning Research. Meila, M., Shen, X., Eds.; PMLR: San Juan, PR, USA, 2007; Volume 2, pp. 612–619. [Google Scholar]
  15. Chen, G.H. Nearest Neighbor and Kernel Survival Analysis: Nonasymptotic Error Bounds and Strong Consistency Rates. In Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, USA, 9–15 June 2019; Proceedings of Machine Learning Research (PMLR). Chaudhuri, K., Salakhutdinov, R., Eds.; PMLR: Long Beach, CA, USA, 2019; Volume 97, pp. 1001–1010. [Google Scholar]
  16. Lowsky, D.; Ding, Y.; Lee, D.; McCulloch, C.; Ross, L.; Thistlethwaite, J.; Zenios, S. A K-nearest neighbors survival probability prediction method. Stat. Med. 2013, 32, 2062–2069. [Google Scholar] [CrossRef]
  17. Chen, G.H. Deep Kernel Survival Analysis and Subject-Specific Survival Time Prediction Intervals. In Proceedings of the 5th Machine Learning for Healthcare Conference, Virtual, 7–8 August 2020; Proceedings of Machine Learning Research (PMLR). Doshi-Velez, F., Fackler, J., Jung, K., Kale, D., Ranganath, R., Wallace, B., Wiens, J., Eds.; PMLR: Virtual, 2020; Volume 126, pp. 537–565. [Google Scholar]
  18. Klein, J.P.; Moeschberger, M.L. Survival Analysis, 2nd ed.; Statistics for Biology and Health; Springer: New York, NY, USA, 2003. [Google Scholar]
  19. Pölsterl, S. scikit-survival: A Library for Time-to-Event Analysis Built on Top of scikit-learn. J. Mach. Learn. Res. 2020, 21, 8747–8752. [Google Scholar]
  20. Rasmussen, C.; Williams, C. Covariance functions. In Gaussian Processes for Machine Learning; The MIT Press: Cambridge, MA, USA, 2005. [Google Scholar] [CrossRef]
  21. Zou, H.; Hastie, T. Regularization and Variable Selection Via the Elastic Net. J. R. Stat. Soc. Ser. B Stat. Methodol. 2005, 67, 301–320. [Google Scholar] [CrossRef]
  22. LeBlanc, M.; Crowley, J. Relative Risk Trees for Censored Survival Data. Biometrics 1992, 48, 411–425. [Google Scholar] [CrossRef]
  23. Curtis, C.; Shah, S.P.; Chin, S.F.; Turashvili, G.; Rueda, O.M.; Dunning, M.J.; Speed, D.; Lynch, A.G.; Samarajiwa, S.; Yuan, Y.; et al. The genomic and transcriptomic architecture of 2000 breast tumours reveals novel subgroups. Nature 2012, 486, 346–352. [Google Scholar] [CrossRef] [PubMed]
  24. Foekens, J.A.; Peters, H.A.; Look, M.P.; Portengen, H.; Schmitt, M.; Kramer, M.D.; Brünner, N.; Jänicke, F.; Meijer-van Gelder, M.E.; Henzen-Logmans, S.C.; et al. The urokinase system of plasminogen activation and prognosis in 2780 breast cancer patients. Cancer Res. 2000, 60, 636–643. [Google Scholar]
  25. Schumacher, M.; Bastert, G.; Bojar, H.; Hübner, K.; Olschewski, M.; Sauerbrei, W.; Schmoor, C.; Beyerle, C.; Neumann, R.L.; Rauschecker, H.F. Randomized 2 × 2 trial evaluating hormonal treatment and the duration of chemotherapy in node-positive breast cancer patients. German Breast Cancer Study Group. J. Clin. Oncol. 1994, 12, 2086–2093. [Google Scholar] [CrossRef] [PubMed]
  26. Antolini, L.; Boracchi, P.; Biganzoli, E. A time-dependent discrimination index for survival data. Stat. Med. 2005, 24, 3927–3944. [Google Scholar] [CrossRef] [PubMed]
  27. Graf, E.; Schmoor, C.; Sauerbrei, W.; Schumacher, M. Assessment and comparison of prognostic classification schemes for survival data. Stat. Med. 1999, 18, 2529–2545. [Google Scholar] [CrossRef]
  28. Austin, P.C.; Harrell, F.E.; van Klaveren, D. Graphical calibration curves and the integrated calibration index (ICI) for survival models. Stat. Med. 2020, 39, 2714–2742. [Google Scholar] [CrossRef]
  29. Davidson-Pilon, C. Lifelines v0.27.7, Survival Analysis in Python. 2023. Available online: https://zenodo.org/record/7883870 (accessed on 17 May 2023).
  30. Liu, D.C.; Nocedal, J. On the limited memory BFGS method for large scale optimization. Math. Program. 1989, 45, 503–528. [Google Scholar] [CrossRef]
  31. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An Imperative Style, High-Performance Deep Learning Library. In Advances in Neural Information Processing Systems 32; Wallach, H., Larochelle, H., Beygelzimer, A., d’Alché-Buc, F., Fox, E., Garnett, R., Eds.; Curran Associates, Inc.: New York, NY, USA, 2019; pp. 8024–8035. [Google Scholar]
  32. Schemper, M.; Wakounig, S.; Heinze, G. The estimation of average hazard ratios by weighted Cox regression. Stat. Med. 2009, 28, 2473–2489. [Google Scholar] [CrossRef] [PubMed]
  33. Gönen, M.; Alpaydin, E. Multiple Kernel Learning Algorithms. J. Mach. Learn. Res. 2011, 12, 2211–2268. [Google Scholar]
  34. Liu, F.; Huang, X.; Chen, Y.; Suykens, J.A.K. Random Features for Kernel Approximation: A Survey on Algorithms, Theory, and Beyond. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 44, 7128–7148. [Google Scholar] [CrossRef] [PubMed]
  35. Yadav, M.; Sheldon, D.R.; Musco, C. Kernel Interpolation with Sparse Grids. In Proceedings of the Advances in Neural Information Processing Systems, New Orleans, LA, USA, 28 November–9 December 2022; Koyejo, S., Mohamed, S., Agarwal, A., Belgrave, D., Cho, K., Oh, A., Eds.; Curran Associates, Inc.: New York, NY, USA, 2022; Volume 35, pp. 22883–22894. [Google Scholar]
Figure 1. Mean concordance index and mean R 2 with respect to the integrated Brier score (IBS) of Cox proportional hazards model (Cox), kernel prediction (kp), and random survival forest (rsf) over 100 runs under different settings with a training size of n = 400 . (a) Simulation A: By degrees of interaction. (b) Simulation B: By non-proportionality of hazards. (c) Simulation C: By exponent of covariate transformation. (d) Simulation D: By different numbers of observed times.
Figure 1. Mean concordance index and mean R 2 with respect to the integrated Brier score (IBS) of Cox proportional hazards model (Cox), kernel prediction (kp), and random survival forest (rsf) over 100 runs under different settings with a training size of n = 400 . (a) Simulation A: By degrees of interaction. (b) Simulation B: By non-proportionality of hazards. (c) Simulation C: By exponent of covariate transformation. (d) Simulation D: By different numbers of observed times.
Entropy 25 01404 g001
Figure 2. Box plot of concordance index and R 2 with respect to the integrated Brier score (IBS) from 100 different train/test splits for the Cox proportional hazards model (Cox), kernel prediction (kp), and random survival forest (rsf). For Rotterdam/GBSG additionally with log-transform (lt) of two covariates. (a) Performance on Rotterdam/GBSG. (b) Performance on METABRIC.
Figure 2. Box plot of concordance index and R 2 with respect to the integrated Brier score (IBS) from 100 different train/test splits for the Cox proportional hazards model (Cox), kernel prediction (kp), and random survival forest (rsf). For Rotterdam/GBSG additionally with log-transform (lt) of two covariates. (a) Performance on Rotterdam/GBSG. (b) Performance on METABRIC.
Entropy 25 01404 g002
Figure 3. Survival probabilities of patients from the METABRIC dataset stratified by treatment with chemotherapy estimated with the Kaplan–Meier method (KM), kernel prediction (KP), and random survival forest (RSF).
Figure 3. Survival probabilities of patients from the METABRIC dataset stratified by treatment with chemotherapy estimated with the Kaplan–Meier method (KM), kernel prediction (KP), and random survival forest (RSF).
Entropy 25 01404 g003
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Galetzka, W.; Kowall, B.; Jusi, C.; Huessler, E.-M.; Stang, A. Distance-Metric Learning for Personalized Survival Analysis. Entropy 2023, 25, 1404. https://doi.org/10.3390/e25101404

AMA Style

Galetzka W, Kowall B, Jusi C, Huessler E-M, Stang A. Distance-Metric Learning for Personalized Survival Analysis. Entropy. 2023; 25(10):1404. https://doi.org/10.3390/e25101404

Chicago/Turabian Style

Galetzka, Wolfgang, Bernd Kowall, Cynthia Jusi, Eva-Maria Huessler, and Andreas Stang. 2023. "Distance-Metric Learning for Personalized Survival Analysis" Entropy 25, no. 10: 1404. https://doi.org/10.3390/e25101404

APA Style

Galetzka, W., Kowall, B., Jusi, C., Huessler, E. -M., & Stang, A. (2023). Distance-Metric Learning for Personalized Survival Analysis. Entropy, 25(10), 1404. https://doi.org/10.3390/e25101404

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop