Skip to main content
Bioinformatics logoLink to Bioinformatics
. 2019 Mar 8;35(19):3743–3751. doi: 10.1093/bioinformatics/btz158

Dr.VAE: improving drug response prediction via modeling of drug perturbation effects

Ladislav Rampášek 1,2,3,, Daniel Hidru 1,2,3, Petr Smirnov 3,4,5, Benjamin Haibe-Kains 1,3,4,5, Anna Goldenberg 1,2,3
Editor: Russell Schwartz
PMCID: PMC6761940  PMID: 30850846

Abstract

Motivation

Individualized drug response prediction is a fundamental part of personalized medicine for cancer. Great effort has been made to discover biomarkers or to develop machine learning methods for accurate drug response prediction in cancers. Incorporating prior knowledge of biological systems into these methods is a promising avenue to improve prediction performance. High-throughput cell line assays of drug-induced transcriptomic perturbation effects are a prior knowledge that has not been fully incorporated into a drug response prediction model yet.

Results

We introduce a unified probabilistic approach, Drug Response Variational Autoencoder (Dr.VAE), that simultaneously models both drug response in terms of viability and transcriptomic perturbations. Dr.VAE is a deep generative model based on variational autoencoders. Our experimental results showed Dr.VAE to do as well or outperform standard classification methods for 23 out of 26 tested Food and Drug Administration-approved drugs. In a series of ablation experiments we showed that the observed improvement of Dr.VAE can be credited to the incorporation of drug-induced perturbation effects with joint modeling of treatment sensitivity.

Availability and implementation

Processed data and software implementation using PyTorch (Paszke et al., 2017) are available at: https://github.com/rampasek/DrVAE.

Supplementary information

Supplementary data are available at Bioinformatics online.

1 Introduction

Personalized drug response prediction promises to improve the therapy response rate in life-threatening diseases, such as cancer. There are two main impediments that make the task of drug response prediction highly challenging. First, the space of all possible treatments and their combinations for a given condition is prohibitively large to be explored exhaustively in clinical settings, drastically limiting the sample size for many therapies and tissues of interest. Second, cancer heterogeneity among patients is very high, reducing the statistical power of biomarker detection. These two conditions make it hard to characterize the genotype-to-phenotype landscape comprehensively making it difficult to accurately stratify drug treatment options for a particular cancer patient. To fulfill the promise of precision medicine, we need predictive models that can take advantage of heterogeneous, sparsely sampled data and data generated from pre-clinical model systems, such as cancer cell lines, to improve our prediction ability.

In the last decade there have been several public releases of large-scale drug screens in cancer cell lines. The greatest advantage of cell lines is their potential for high-throughput experiments as it is possible to screen cell lines against thousands of chemical compounds, both clinically-approved and experimental. This screening task was undertaken by several large consortia and pharmaceutical companies resulting in large, valuable public data resources (Barretina et al., 2012; Garnett et al., 2012; Haverty et al., 2016; Rees et al., 2016; Reinhold et al., 2012; Yang et al., 2013). The availability of these large cancer cell line datasets spurred the development of predictive models (Azuaje, 2017; Azuaje et al., 2017; Lee et al., 2018; Papillon-Cavanagh et al., 2013; Safikhani et al., 2017; Tan et al., 2018; Wang et al., 2017; Zhang et al., 2015, 2018) and computational challenge-based competitions (Costello et al., 2014; Menden et al., 2018).

Papillon-Cavanagh et al. (2013) compared five feature selection approaches combined with linear regression modeling using the Genomics of Drug Sensitivity (Garnett et al., 2012) dataset as training set and the Cancer Cell Line Encyclopedia (Barretina et al., 2012) as independent validation set. They identified univariate and elastic net as the most robust approaches to develop predictors of drug response. They further improved their initial results by developing the minimum Redundancy, Maximum Relevance Ensemble feature selection (De Jay et al., 2013). Jang et al. (2014), in a large methods evaluation effort, compared seven standard machine learning approaches, such as (sparse) linear models, random forest and support vector machines, for drug response prediction in the same Genomics of Drug Sensitivity and Cancer Cell Line Encyclopedia datasets. Their study identified ridge and elastic net regressions as the best performers. They and several other studies (Costello et al., 2014; Stetson et al., 2014), evaluated leveraging multi-omic data to enhance response predictors, generally demonstrating potential for performance improvement, but identifying gene expression as the single most informative data modality. Further, significant research has been done to explore ways to increase predictive power by additionally incorporating chemical features of drug compounds (Menden et al., 2013; Wang et al., 2017; Zhang et al., 2015, 2018), or prior knowledge such as drug targets or biological networks (Azuaje et al., 2017; Lee et al., 2018).

Particularly influential has been the NCI-DREAM drug prediction challenge, presented in Costello et al. (2014). This challenge had 44 competing methodological submissions, categorized into six major methodological types. Their post-competition analysis revealed two particular trends among the most successful methods, the ability to model non-linear relationships between data and outcomes, and incorporating prior knowledge such as biological pathways. The winner of this challenge incorporated these approaches together with multi-drug learning by developing Bayesian multitask multiple kernel learning method (Costello et al., 2014).

Complementary to large-scale cell line viability screens, the National Institutes of Health Library of Integrated Network-based Cellular Signatures (NIH LINCS) Connectivity Map (CMap) (Subramanian et al., 2017) project measured the transcriptional perturbations induced by over 20 000 chemical compounds by profiling 1000 landmark genes in a set of 77 human cell lines before and after short-term drug treatment. These case-control matched experiments show how the expression of these genes changed in response to drug treatment at various concentration levels, typically after 6 or 24 h treatment duration. The set of drug-induced up- and down-regulation signatures is referred to as a drug perturbation signature (Smirnov et al., 2015; Subramanian et al., 2017). Combining response and perturbation data is expected to ultimately yield a better and more biologically relevant model of drug response (Niepel et al., 2017; Subramanian et al., 2017).

Previous work by Niepel et al. (2017) studied transcriptomic perturbations of six breast cancer cell lines, from an initial CMap release, in combination with phenotypic drug response measurements to determine whether cell lines that have similar phenotypic drug response also share common patterns in drug-induced gene expression perturbation. Their analysis concluded that this is the case for some drugs (inhibitors of cell-cycle kinases), but for other drugs the molecular response was cell-type specific, and for some drug-cell line combinations a significant transcription perturbation had no measurable impact on cell growth. These results motivated us to develop a unified method that could identify more complex associations of molecular perturbations and phenotypic responses that are potentially unique to a cell line subgroup.

The drug response prediction problem suffers from a high feature-to-sample ratio, where only a limited number of samples are available compared to the large number of measured molecular features (e.g. gene expression levels for thousands of genes). One way to alleviate this hindrance is to find a reduced representation of the original data that captures the essential information needed for the prediction task. Here, we take the approach of semi-supervised generative modeling based on variational autoencoders (VAE) (Kingma and Welling, 2014) that present a way to model complex conditional distributions. Way and Greene (2018) have shown that VAE can extract biologically meaningful representation of cancer transcriptomic profiles, while Dincer et al. (2018) combined a pre-trained VAE and a separately trained linear model in a drug response prediction method named DeepProfile. Contrary to Dincer et al. (2018) we aim to jointly learn a latent embedding that improves our ability to predict drug response (phenotypic outcome), while leveraging the originally unsupervised (unknown phenotypic outcome) drug perturbation experiments to aid in the learning of such embedding.

We introduce Drug Response Variational Autoencoder (Dr.VAE), a deep generative model to predict drug response from transcriptomic perturbation signatures. Dr.VAE is a probabilistic graphical model where each conditional distribution is computed by a deep neural network. The model jointly learns a drug response predictor and a generative model of drug perturbation effects in a low-dimensional latent representation of gene expression. This latent space is defined by an encoder and decoder, both parametrized by a neural network, that, respectively, translate to and from this latent space. The entire model, together with neural networks for approximate inference, is optimized jointly end-to-end to maximize evidence (marginal likelihood) of the observed training data. An overview of Dr.VAE is illustrated in Figure 1.

Fig. 1.

Fig. 1.

An overview of Dr.VAE prediction process. In training, Dr.VAE learns a drug response classifier jointly with a latent representation of pre-treatment gene expression and its drug-induced change. To make a prediction, we first embed the pre-treatment gene expression x1, and then, from this latent representation z1 we predict latent representation of post-treatment state z2. Based on both z1 and z2, a logistic regression classifier predicts the probability of positive response. Additionally, we can decode the predicted post-treatment latent representation z2 to the gene expression data space, but this is not required for drug response classification

In our results, Dr.VAE significantly outperformed classification models typically used in the field in more than half of the tested drugs and performed on par for most of the other drugs. We show that the achieved improvement of Dr.VAE in drug response prediction is indeed due to the joint modeling of drug response and drug-induced perturbation effects. This result is further confirmed by observing that even unsupervised generative modeling of gene expression and drug-induced perturbations yields a low-dimensional representation that is better suited for subsequent training of standard classification models than the original data representation or representation obtained by principal component analysis (PCA).

2 Materials and methods

2.1 Pharmacogenomics high-throughput cell line datasets

We harness two principally different types of pharmacogenomics datasets, both retrieved via PharmacoGx R package (Smirnov et al., 2015) and PharmacoDB (Smirnov et al., 2018). First is a database of sensitivity of cancer cell lines to drug treatment, the Cancer Therapeutic Response Portal (CTRPv2) (Rees et al., 2016), that provides relative viability of cell lines at various drug concentration levels for combination of up to 860 cell lines and 481 drug compounds. Sensitivity of the cell lines to a drug treatment is quantified by the area above the dose-response curve (AAC), which was recomputed by PharmacoGx from raw CTRPv2 experimental results. We further binarized the continuous AAC by the waterfall method (Barretina et al., 2012; Haibe-Kains et al., 2013), turning the sensitivity prediction task into a discrete classification task.

Secondly, we utilized the NIH LINCS Consortium CMap project. The recently extended CMap, termed CMap-L1000v1 (Subramanian et al., 2017), screened perturbation effects of 19 811 drug compounds on gene expression of L1000 landmark genes in up to 77 cell lines. Experiments in CMap-L1000v1 do not measure the drug treatment sensitivity, however some of the cell lines were independently tested in CTRPv2 as well. We cross-referenced these cell lines and assigned the corresponding label to their perturbation measurements.

From the CMap-L1000v1 dataset, we used the level 3 data, i.e. the quantile normalized gene expression of 978 landmark genes measured on Luminex based L1000 platform shown to be consistent with gene expression measured by RNAseq (Safikhani et al., 2016; Subramanian et al., 2017). From the available set of experimental conditions, we selected perturbation experiments with duration of 6 h conducted at the most common concentration level for each particular drug. That is, a concentration level that most cell lines were measured at for that drug. In case a cell line was not tested at the chosen concentration, we used the closest tested concentration. Next, we matched controls (DMSO vehicle) experiments to the drug perturbation experiments by the batch ID and bead ID, to minimize batch effects between the cases and controls. Further, we filtered the selected case-control pairs by correlation (>0.75 Pearson ρ) to filter out possibly mislabeled experiments or outliers.

CTRPv2 and CMap-L1000v1 datasets had 973 common genes. We standardized the expression values to zero mean and unit variance within each gene. For further homogenization, including batch effect removal and differences between two incorporated data sources, we also removed the first principal component (explaining 12.8% of variation) from the pooled dataset.

We selected 26 drugs tested in both CTRPv2 and CMap-L1000v1 datasets based on two simple criteria: (i) for each selected drug at least eight distinct cell lines were tested in CMap-L1000v1 perturbation experiments; and (ii) at least 20% of screened cell lines in CTRPv2 were sensitive to the drug after binarization of dose-response AAC. The dataset summary is detailed in Supplementary Table S6.

2.2 Dr.VAE

We present Dr.VAE, a new machine learning model based on a semi-supervised generative model. Dr.VAE learns a latent embedding of the gene expression. The latent embedding takes advantage of both cell line viability experiments that measure drug response outcome directly and, at the same time, the drug-induced transcription change, which in our case is modeled as a linear function in this latent space. This is achieved via joint training of the model on (i) ‘perturbation pairs’ [x1,x2] of pre-treatment (control) and post-treatment gene expression (outcome label y is only observed for some pairs) and (ii) ‘singletons’ of pre-treatment gene expression with no known post-treatment expression. Most of the outcome y labeled data are in the latter category. We model the drug perturbation effects with a single step latent time series model, similar to Deep Kalman Filter (Krishnan et al., 2017) and structured graphical models with amortized inference (Johnson et al., 2016). The graphical representation of Dr.VAE model is shown in Figure 2.

Fig. 2.

Fig. 2.

Dr.VAE model and its derivatives. (a) Factorization of the generative distribution p (solid edges) and of the approximate posterior q (dashed edges). In case the post-treatment gene expression x2 is not observed, we use the expected posterior Eqϕ(z1|x1)[pθ(z2|z1)] for z2 instead. (b, c) Hyperparameters of the generative and inference model, respectively. Node labels show dimensionality of the corresponding random variables, while edge labels show architecture of the encoders/decoders between the respective random variables. Note, that the ‘data decoder’ pθ(xk|zk) is shared for both k{1,2} and so is the ‘data encoder’ qϕ(zk|xk). (d) Detailed depiction of data-to-latent-space encoder qϕ(zk|xk) and of the reparameterization trick. (e) Factorization of SSVAE model (Kingma et al., 2014), we set the hyperparameters of generative and inference distributions equivalently to the analogous distributions in Dr.VAE as shown in (b, c, d). (f) Factorization of PertVAE model, we set the hyperparameters of generative and inference distributions equivalently to the analogous distributions in Dr.VAE (b, c, d)

Formally, Drug Response VAE models a joint distribution p(x1,x2,z1,z2,z3,y) of pre-treatment and post-treatment gene expression x1,x2, their latent embedding z1,z2, response class y, and class-independent latent representation of the pre-treatment expression z3. Factorization of this joint probability distribution is depicted in Figure 2a (solid edges) and is as follows:

p(x1,x2,z1,z2,z3,y)= (1)
p(x1|z1)·p(x2|z2)·p(z2|z1)·p(z1|z3,y)·p(z3)·p(y)

Individual conditional generative distributions p(·) of Dr.VAE take the form of diagonal multivariate Gaussian distributions, while p(y) is a uniform categorical prior over the binary response y and prior p(z3) is a unit Gaussian N(0,I). The conditional distributions are parametrized by neural networks with a set of parameters θ, analogously to a VAE (Kingma and Welling, 2014; Rezende et al., 2014). We want to model all gene expression measurements in a single latent space, thus the pre- and post-treatment gene expression have to be embedded into a common latent space. This is achieved by sharing the ‘data decoder’ pθ(xk|zk) for both k{1,2}. Additionally, we constrain the mean function of the perturbation pθ(z2|z1) to be a linear function z1+Wz1+b. Here, the W and b are initialized close to zero, such that pθ(z2|z1) starts as an identity function in the beginning of optimization process.

In order to train and use our model, we need to be able to perform efficient inference of the hidden variables from the observed variables. We turn to stochastic variational inference and introduce an approximation q to the true posterior. We assume this approximate posterior q to factorize as shown in Figure 2a (dashed edges). Akin to generative distributions p introduced above, the variational distributions are diagonal multivariate Gaussian distributions, with exception of qϕ(y|z1,z2), parametrized by neural networks with a set of parameters ϕ. The ‘data encoder’ qϕ(zk|xk), detailed in Figure 2d, is shared between pre- and post-treatment for the same reason the data decoder is shared. The classification posterior qϕ(y|z1,z2) is a categorical distribution parametrized by a linear function with soft-max activation over two output units. In our implementation, we use the latent embedding of pre-treatment state and the predicted perturbation difference [z1,z2z1] instead of [z1,z2] as the classifier input. We found that this slightly improves the performance.

Ideally we would want to fit the θ and ϕ parameters to maximize the evidence (marginal likelihood) of the observed data, which is a difficult task and subject to active research in the area of stochastic inference. However, following Kingma et al. (2014); Kingma and Welling (2014) and Louizos et al. (2015) we can derive a lower bound on the evidence of each set of observed variables. We have four different sets of observed variables that correspond to four different types of data we want to fit Dr.VAE to. Therefore there are four different evidence lower bounds for us to optimize:

labeledperturbationpairsLP:LLP(x1,x2,y;θ,ϕ) (2)
unlabeledperturbationpairsUP:LUP(x1,x2;θ,ϕ) (3)
labeledpretreatmentsingletonsLS:LLS(x1,y;θ,ϕ) (4)
unlabeledpretreatmentsingletonsUS:LUS(x1;θ,ϕ). (5)

The sum of these four specific evidence lower bounds, ELBODrVAE, is the evidence lower bound we need to maximize. Moreover, we need to explicitly introduce cross-entropy loss of the predictive posterior logqϕ(y|z1,z2) so that it is trained on labeled data as well. Analogous to semi-supervised variational autoencoder (SSVAE) (Kingma et al., 2014), this explicit loss is required since in the labeled data the random variable y is observed and therefore the lower bounds LLP and LLS are conditioned on y and do not contribute to fitting of qϕ(y|z1,z2). Using the reparameterization trick (Kingma and Welling, 2014) it is possible to backpropagate through the final objective and jointly optimize parameters of all pθ and qϕ distributions by gradient decent. In our implementation, we compute the parameter updates by Adam (Kingma and Ba, 2015) for both θ and ϕ parameters. Derivation of the final objective function is presented in Supplementary Material.

Detailed Dr.VAE architecture is shown in Figure 2b–d. Throughout the model, we used ELU activation function (Clevert et al., 2015) as the non-linearity of our choice.

2.3 Perturbation variational autoencoder

We specifically denote the part of Dr.VAE that models drug-induced gene expression perturbations as the Perturbation Variational Autoencoder (PertVAE). PertVAE is an unsupervised model, depicted in Figure 2f, which we use to study the contribution of drug effect modeling on learned latent gene expression representation. We parameterize the PertVAE the same way as analogous parts in Dr.VAE. Detailed derivation of PertVAE is presented in Supplementary Material.

3 Results

We evaluated our drug response prediction method, Dr.VAE, on 26 Food and Drug Administration-approved drug compounds selected from the intersection of two independent in vitro drug screening studies: (i) the CTRPv2 (Rees et al., 2016) where viability of up to 855 cell lines was measured in response to drug treatment, and (ii) drug-induced transcriptomic perturbations, assayed by NIH LINCS Consortium CMap project (CMap-L1000v1) (Subramanian et al., 2017), in up to 60 different cell lines for the selected set of drugs.

We compared Dr.VAE to ridge logistic regression (RidgeLR), random forest (RForest) with 100 trees, and support vector machine with a radial basis function kernel (SVMrbf) applied directly to gene expression and also transformed through dimensionality reduction. We used the implementation of these methods as available in the scikit-learn library (Pedregosa et al., 2011). For each drug, the best regularization parameter of RidgeLR was found in cross-validation. To assess the impact of drug-induced perturbations on the drug response prediction task we also compared Dr.VAE to SSVAE (Kingma et al., 2014) where the focus is on classification using solely pre-treatment gene expression. SSVAE does not include any information of drug-induced transcriptomic perturbations. All evaluated models were fit independently to each of the 26 drugs, reusing the same deep learning architecture. We assessed the performance of the classifiers using the area under the ROC curve (AUROC) and the precision recall curve (AUPR) (presented in Supplementary Material).

We generated 100 train-validation-test data splits by performing repeated 5-fold cross-validation 20-times. The perturbation data from CMap-L1000v1 were split based on cell line identifiers so that all measurements pertaining to one cell line were assigned to one fold. The CTRPv2 sensitivity data were split such that the ratio of responders/non-responders was approximately equal in each fold, except cell lines that are in the intersection of CTRPv2 and CMap-L1000v1, which were assigned to their corresponding CMap-L1000v1 folds. The CMap-L1000v1 folds were pooled into training and validation splits only, as for some drugs the availability of perturbation experiments was limited to only as few as eight cell lines. Therefore test splits consisted exclusively of data from CTRPv2 that had no known post-treatment gene expression. This way Dr.VAE is most fairly evaluated against methods that cannot model perturbation effects, which is the typical scenario when response prediction has to be made solely based on pre-treatment features. During training of Dr.VAE and SSVAE models, a validation fold was used for early stopping and selection of classification loss weight. All compared methods were trained and evaluated on the same 100 train-validation-test data splits.

3.1 Drug response prediction from expression of L1000 genes

We jointly trained Dr.VAE on both CTRPv2 cell line sensitivity dataset and CMap-L1000v1 6 h-long perturbations and compared the performance to three established baseline classification models. Each model was trained on the expression of 973 genes that form the intersection of genes measured by the L1000 platform in CMap and RNAseq in CTRPv2. For a fair comparison, the baseline classifiers were trained on the very same data splits as Dr.VAE, consisting of CTRPv2 and CMap pre-treatment (control) experiments. Following the random variable notation from our Dr.VAE model, Figures 1 and 2, these data correspond to x1.

Dr.VAE outperforms all three baseline classifiers for at least 14 out of 26 (53.8%) tested drugs, and performs with no statistically significant difference on nine drugs. On only 3 out of 26 (11.5%) drugs the baseline models performed better than Dr.VAE, Figures 3 and 4. The presented comparisons are based on one-sided Wilcoxon Signed-Rank Test (P-value <0.05) over 100 data splits. Detailed performance of all models applied to each individual drug is presented in Supplementary Table S1, the corresponding P-values are shown in Supplementary Table S2. Results in terms of the AUPR follow a similar pattern (Supplementary Material).

Fig. 3.

Fig. 3.

Summarized classification results. (a) AUROC of Dr.VAE and baseline methods. Shown is average over 26 drugs, each evaluated in 100 train-validation-test splits. (b) Dr.VAE is comparable or better than any other baseline for >80% of the drugs (P-value <0.05 Wilcoxon test)

Fig. 4.

Fig. 4.

All to all comparison of tested methods. For each method, there is a row showing the count of 26 drugs for which this method significantly outperforms the other methods corresponding to individual columns. The comparison is based on test AUROC performance in 100 train-validation-test splits. Statistical significance of observed differences in test performance for any two methods was tested by one-sided Wilcoxon Signed-Rank Test (P-value <0.05). The heatmap color is normalized within each column, emphasizing methods that are the best contenders compared to the method corresponding to that column

For bortezomib, niclosamide, paclitaxel, decitabine and clofarabine, cancer drugs with no established univariate biomarkers of response, Dr.VAE improved response prediction over every standard classification method by at least 1% and up to 4.4% of AUROC, while AUPR improved by at least 0.7% and up to 4.8%. We have observed the best improvement over RidgeLR for mitomycin and sirolimus with 5.7 and 3.9% AUROC improvement, respectively. Sirolimus inhibits the activation of a key regulatory kinase, the mammalian Target Of Rapamycin (mTOR). As showed in Niepel et al. (2017), perturbation effects induced by PI3K/Akt/mTOR kinases are typically cell-type specific, which possibly hampers response prediction for these drugs. In this case, Dr.VAE was able to better stratify the response classes, improving the response prediction, particularly over RidgeLR and SVMrbf. Mitomycin, an antibiotic that causes cross-linking of DNA and inhibition of DNA synthesis, is used as a chemotherapy drug in the treatment of various malignant neoplasms. Prediction of sensitivity to mitomycin treatment appears to benefit from employing non-linear prediction models such as RForest and SVMrbf. Dr.VAE can model non-linear relationships and performs on par with the RForest and SVMrbf, considerably outperforming RidgeLR.

Contrarily, in the case of fluvastatin and bosutinib, Dr.VAE trails RidgeLR by 1.5 and 0.9% in test AUROC, repsectively. Fluvastatin belongs to a class of drugs called statins. Statin inhibitors are used to control hypercholesterolemia but have been indicated to have a potential as anticancer agents as well. Sensitivity to statins is highly dependent on strength of a feedback mechanism, the activation of which has been reported to peak at time points >8 h post-treatment (Clendening et al., 2010). Modeling of 6 h-long perturbations is insufficient in this case and as such Dr.VAE did not improve sensitivity prediction. Reduced performance of Dr.VAE in the case of bosutinib is likely due to modeling of perturbations at only the most common drug concentration level. Bosutinib is a tyrosine kinase inhibitor, used in chronic myelogenous leukemia therapy, primarily targeting Bcr-Abl kinase. Niepel et al. (2017) observed that such inhibitors of extracellular matrix receptors and receptor tyrosine kinases, exhibited considerably more variance in perturbation signatures with changing drug dose than other drugs. Since we selected perturbation experiments at only one drug concentration level, that with largest number of experiments, it is possible that modeling perturbation effects at only this one concentration level is not sufficiently informing the treatment sensitivity prediction.

3.2 Perturbation experiments improve drug response prediction

We investigated the contribution of drug perturbation experiments to response classification via two ablation studies. First, we compared Dr.VAE to semi-supervised VAE (Kingma et al., 2014). SSVAE was fit to the pre-treatment gene expression in cell lines from CMap-L1000v1 and CTRPv2 without observing post-treatment gene expression and without modeling the drug effects. Since SSVAE is conceptually a subset of Dr.VAE’s architecture, we used the same hyperparameters for the corresponding encoders/decoders as in Dr.VAE, Figure 2e. SSVAE outperforms baseline methods according to AUROC but is not as good as Dr.VAE. Dr.VAE achieves significantly better test AUROC than SSVAE on 9 out of 26 (34.6%) drugs (P-value <0.05) with no statistically significant difference on 16 drugs (61.5%) and only for one drug (vincristine) SSVAE outperforms Dr.VAE, Figure 3.

To evaluate the contribution of the perturbation function to the classification performance, we modified each trained Dr.VAE instance by replacing the learned drug perturbation function with an identity function (denoted as ‘Dr.VAE w/I’) without retraining the rest of the model. The modified ‘Dr.VAE w/I’ achieves AUROC close to Dr.VAE, however slightly worse in absolute value over the 26 drugs. For 16 drugs Dr.VAE has significantly better performance than Dr.VAE w/I and for 10 drugs there was no significant difference, showing that while functions more complex than identity may be able to learn from the perturbation data, more drug perturbation data are required to substantially improve response prediction for many drugs.

Our results show that Dr.VAE improves drug response classification performance thanks to modeling of drug perturbation pairs. As our second set of experiments show, the learned perturbation function contributes to better classification. However, most of the observed improvement appears to stem from more informative latent gene expression representation, that, compared to SSVAE, is learned by joint modeling of drug perturbations as well as sensitivity response. The superior performance of Dr.VAE w/I compared to SSVAE is a testament to that effect.

3.3 The importance of dimensionality reduction

Dr.VAE and SSVAE learn a lower dimensional latent representation of the data and the classifier jointly. To understand the importance of the joint optimization, we also explored a learning paradigm where we first optimize the latent representation in an unsupervised fashion and only then train a classifier using the already learned embedding. To this end we performed two sets of experiments. First, we evaluated dimensionality reduction by PCA. PCA projects the data into a space given by orthogonal vectors called principal components that are selected in the order of largest possible variance they account for in the data. We chose to represent the CTRPv2 and CMap-L1000v1 pre-treatment gene expression of L1000 genes in terms of their first 100 principal components that we estimated on each training data fold. Second, we trained just the perturbation part of Dr.VAE, which we denote as PertVAE, to assess dimensionality reduction using a deep generative model. PertVAE is an unsupervised model that does not model drug response outcomes. Instead it learns to model drug perturbation effects from the perturbation pairs, Figure 2f. We then used the mean of the 100-dimensional latent embedding z1 of the pre-treatment gene expression as the reduced representation for subsequent fitting of standard classifiers.

Both PCA and PertVAE were fit on each training data fold and the learned projections then applied to test data fold. We used the same 100 train-validation-test splits as in the previous experiments, thus the classification test results can be mutually compared by Wilcoxon Signed-Rank Test with the above mentioned Dr.VAE and multiple baseline results, Figures 3b and 4. In terms of mean AUROC, Figure 3a, and mean AUPR, Supplementary Figure S1, all three standard classifiers perform better when fit on the PertVAE embedding z1 than when fit on the PCA projection onto the first 100 principal components. In the case of both of these reduced representations, notable is the improvement of the RidgeLR classifier that performs better than when trained directly on expression of the L1000 genes. These two methods, together with SVMrbf trained on the PertVAE z1 embedding, achieve the most competitive results, nearly equal to SSVAE. However, our Dr.VAE model that combines PertVAE and a drug response classifier in an end-to-end fashion delivers the best overall classification performance, accomplishing statistically better or equivalent AUROC for at least 21 out of 26 drugs (80.8%) than any other evaluated method.

3.4 Modeling of drug perturbation effects

We have shown that Dr.VAE can distill useful information from drug perturbation experiments to improve cell line response classification. We seek to investigate how well Dr.VAE model can predict the actual post-treatment gene expression levels. In the following set of experiments we assessed how well Dr.VAE can predict the post-treatment expression in the latent space, corresponding to random variable z2, as well as in the gene space, which corresponds to x2. Particularly, we computed the expected root mean square error (RMSE) of Dr.VAE predictions over z2 and x2 when computed from pre-treatment x1 compared to the expected embedding z2 computed from post-treatment x2 and the true observed x2, respectively. Furthermore, we compared how the RMSE of Dr.VAE predictions improved over the ‘Dr.VAE w/I’ baseline model where we replaced the learned perturbation function by an identity function (as introduced previously). On training data, Dr.VAE predicted the mean of z2 with RMSE 10.5% lower compared to Dr.VAE w/I, yet on validation data it was 9.6% worse on average across all 26 drugs. This result shows that Dr.VAE, while being primarily optimized for drug response classification, learns to partially model drug perturbation effects, but on average, suffers from data limitations and overfitting.

To elucidate the connection between Dr.VAE performance and limitations of available perturbation experiments, we computed the correlation of Dr.VAE z2 prediction improvement over Dr.VAE w/I across the set of 26 drugs with three data statistics: (i) effect-to-replicate variance ratio (ERVR) in CMap-L1000v1 perturbation experiments, (ii) number of unique cell lines tested for a given drug in CMap-L1000v1 and (iii) the product of the previous two. The computed Pearson correlations are shown in Table 1. The ability of Dr.VAE to generalize from the training to validation set correlates with both the strength of the perturbation signal in the data (quantified as ERVR) and the dataset size, yet the strongest is correlation with the product of these two variables, ρ=0.814 (P-value 4.35×107). The computation of ERVR measure is described in Supplementary Material.

Table 1.

The ability of Dr.VAE to model post-treatment gene expression correlates with signal/noise ratio and quantity of perturbation experiments

Δ RMSE evaluated on dataset property correlated to ρ P-value
z2 Effect/rep. variance ratio (ERVR) 0.66 2.4×104
x2 ERVR 0.72 4.0×105
z2 Num. unique CLs in CMap (NCL) 0.71 4.2×105
x2 NCL 0.52 6.4×103
z2 ERVR * NCL 0.81 4.4×107
x2 ERVR * NCL 0.73 2.6×105
x2 Dr.VAE-SSVAE [AUROC] 0.29 0.15
x2 Dr.VAE-SSVAE [AUPR] 0.20 0.33

Note: We computed Δ RMSE improvement of Dr.VAE in post-treatment expression prediction over Dr.VAE w/I, averaged over validation data splits, and correlated it to overall CMap-L1000v1 dataset statistics. The Pearson correlation was computed for prediction Δ improvement of both post-treatment gene expression x2 and its latent representation z2. Additionally we include correlation with difference in Dr.VAE and SSVAE classification performance.

For prediction of post-treatment gene expression x2 we observed an analogous conclusion to prediction of its latent representation z2. The detailed results are shown in Supplementary Table S7. We conclude that there are presently data limitations (number and noise/signal resolution of drug perturbation experiments) for generalizable post-treatment gene expression prediction yet, as shown above, we can still distill information that improves drug response classification.

Lastly, we investigated whether there is a correlation between classification performance improvement of Dr.VAE over SSVAE, which does not model perturbation effects, and the ability of Dr.VAE to generalize post-treatment gene expression prediction to validation set. We found weak correlation between the classification improvement in terms of both AUROC (Pearson ρ=0.293; P-value 0.147), and AUPR (Pearson ρ=0.199; P-value 0.329). These results suggest that Dr.VAE tends to improve over SSVAE for the drugs Dr.VAE manages to model the transcriptomic perturbations induced by the drug compound.

4 Discussion

We developed Dr.VAE, the first unified machine learning method for drug response prediction that enables semi-supervised learning and successfully leverages prior information in the form of drug-induced transcriptomic perturbations. Our approach follows several previously identified trends for improved drug response prediction (Costello et al., 2014), as we can model non-linearities in the data and incorporate prior knowledge.

Typical discriminative feedforward neural networks do not fare well in drug response prediction, most likely because of the data limitation (number of features versus number of samples). We showed that joint generative modeling of drug response and perturbation effects alleviates this to a significant extent, possibly acting as an effective regularization and robust feature extraction that does not overfit the way discriminative neural networks do.

We tested 26 Food and Drug Administration-approved drug compounds for which both perturbation and drug response experimental data were available. Our experiments showed that for those drugs that have sufficient data to capture the variation and effect on gene expression, incorporating those effects yields a significant improvement over logistic regression, random forest and support vector machines. Dr.VAE significantly outperformed these models in more than half of the tested drugs and performed on par in other cases. Through a series of experiments, we showed that the observed improvement of Dr.VAE in drug response prediction can be credited to its joint modeling of both response and drug-induced perturbation effects.

Our study has several potential limitations. First, we considered only the gene expression modality, as it has been consistently shown to provide the most predictive power in multiple previous studies on drug response (Costello et al., 2014; Jang et al., 2014). There is accumulating evidence, however, that multi-omic predictors that additionally integrate methylation, copy number variation, mutational status or proteomic data can achieve improved prediction performance. It is relatively straightforward to extend Dr.VAE, thanks to the stochastic variational inference approach we adopted. Categorical or Poisson likelihood functions can be used to model discrete (mutational status) or count (CNVs) data types, respectively, in addition to the Gaussian likelihood we used to model continuous gene expression. We caution however, that inclusion of additional features accentuates the already unfavorable ratio of the number of features to the number of available training examples, which could prove, and indeed has been, problematic for any method, including ours.

Second, we modeled CMap-L1000v1 perturbations after 6 h of treatment duration at the most common concentration level for each drug. That allowed us to pool the largest possible number of experiments tested under consistent experimental settings. It can be argued that 6 h is too short for many feedback regulatory mechanisms to manifest themselves and as such these experiments alone do not provide complete picture of the transcriptomic response. Notably, drug-cell line viability assays are typically done with longer treatment duration, such as 72 h. This is the case for a statin inhibitor fluvastatin, as we observed in out experiments. Thus we also trained our Dr.VAE with 24 h perturbation experiments, however, potentially because of the limited number of such experiments, this did not improve our prediction performance. A potential future improvement to our method could be an extension which leverages all available perturbation experiments of various durations and drug concentrations.

Every conditional distribution that Dr.VAE is composed of is parameterized by a neural network. The ability to adjust hyperparameters to match complexity of the data makes Dr.VAE a very flexible model. Since we opted for simplicity, most of our neural networks have one hidden layer, while the classification posterior and perturbation function are linear. As more data become available we will be able to take full advantage of the new methodological developments in the generative deep learning field, further improving the performance of Dr.VAE and other drug response prediction models. However so far our attempts to use deeper networks or utilize normalizing flows to approximate posteriors by more complex distributions (Kingma et al., 2016; Rezende and Mohamed, 2015) have not significantly improved the performance to justify the added complexity.

5 Conclusion

In conclusion, we have demonstrated deep generative modeling to be a promising methodological approach for method development in the field of drug response prediction. In particular, this approach has two major benefits. First, the flexibility of this paradigm allowed us to integrate transcriptional perturbation effects into the drug response prediction framework in a unique way. Second, all conditional distributions that form our Dr.VAE model, as well as variational posteriors used for approximate inference in Dr.VAE, are parametrized by neural networks that can model complex non-linear relationships. We have shown that both aspects compounded in our Dr.VAE, which outperformed the most used methods in the field for the majority of the evaluated drug compounds.

Funding

This work was supported by Canadian Cancer Society Research Institute Innovation Grant [703471]; the Natural Science and Engineering Research Council of Canada and the Canadian Institute for Health Research collaborative Health Research Project. The authors thank University of Toronto, SickKids Foundation, Cancer Research Society and the Gattuso Slaight Personalized Cancer Medicine Fund at Princess Margaret Cancer Centre for their generous funding.

Conflict of Interest: none declared.

Supplementary Material

btz158_Supplementary_Material

References

  1. Azuaje F. (2017) Computational models for predicting drug responses in cancer research. Brief. Bioinform., 18, 820–829. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Azuaje F. et al. (2017) Dr.Paso: drug response prediction and analysis system for oncology research. doi: 10.1101/237727. [Google Scholar]
  3. Barretina J. et al. (2012) The cancer cell line encyclopedia enables predictive modelling of anticancer drug sensitivity. Nature, 483, 603–607. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Clendening J.W. et al. (2010) Exploiting the mevalonate pathway to distinguish statin-sensitive multiple myeloma. Blood, 115, 4787–4797. [DOI] [PubMed] [Google Scholar]
  5. Clevert D.-A. et al. (2015) Fast and accurate deep network learning by exponential linear units (ELUs). In: International Conference on Learning Representations (ICLR) 2016, May 2016, https://iclr.cc/archive/www/doku.php%3Fid=iclr2016:main.html (accepted paper No. 62). [Google Scholar]
  6. Costello J.C. et al. (2014) A community effort to assess and improve drug sensitivity prediction algorithms. Nat. Biotechnol., 32, 1202–1212. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. De Jay N. et al. (2013) mRMRe: an R package for parallelized mRMR ensemble feature selection. Bioinformatics, 29, 2365–2368. [DOI] [PubMed] [Google Scholar]
  8. Dincer A.B. et al. (2018) DeepProfile: deep learning of patient molecular profiles for precision medicine in acute myeloid leukemia. doi: 10.1101/278739. [Google Scholar]
  9. Garnett M.J. et al. (2012) Systematic identification of genomic markers of drug sensitivity in cancer cells. Nature, 483, 570–575. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Haibe-Kains B. et al. (2013) Inconsistency in large pharmacogenomic studies. Nature, 504, 389.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Haverty P.M. et al. (2016) Reproducible pharmacogenomic profiling of cancer cell line panels. Nature, 533, 333.. [DOI] [PubMed] [Google Scholar]
  12. Jang I.S. et al. (2014) Systematic assessment of analytical methods for drug sensitivity prediction from cancer cell line data. Pac. Symp. Biocomput., 19, 63–74. [PMC free article] [PubMed] [Google Scholar]
  13. Johnson M. et al. (2016) Composing graphical models with neural networks for structured representations and fast inference. In: Advances in Neural Information Processing Systems pp. 2946–2954.
  14. Kingma D., Ba J. (2015) Adam: a method for stochastic optimization. International Conference on Learning Representations (ICLR) 2015, May 2015, https://iclr.cc/archive/www/doku.php%3Fid=iclr2015:main.html. [Google Scholar]
  15. Kingma D.P., Welling M. (2014) Auto-encoding variational bayes. In: International Conference on Learning Representations (ICLR) 2014, April 2014, https://sites.google.com/site/representationlearning2014/program-details/conference-program. [Google Scholar]
  16. Kingma D.P. et al. (2014) Semi-supervised learning with deep generative models. In: Advances in Neural Information Processing Systems pp. 3581–3589.
  17. Kingma D.P. et al. (2016) Improving variational inference with inverse autoregressive flow. In: Advances in Neural Information Processing Systems (NIPS 2016), https://papers.nips.cc/paper/6581-improved-variational-inference-with-inverse-autoregressive-flow. [Google Scholar]
  18. Krishnan R.G. et al. (2017) Structured inference networks for nonlinear state space models. In: Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, pp. 2101–2109, AAAI Press.
  19. Lee S.-I. et al. (2018) A machine learning approach to integrate big data for precision medicine in acute myeloid leukemia. Nat. Commun., 9, 42. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Louizos C. et al. (2015) The variational fair autoencoder. In: International Conference on Learning Representations (ICLR) 2016, May 2016, https://iclr.cc/archive/www/doku.php%3Fid=iclr2016:main.html (accepted paper No. 2). [Google Scholar]
  21. Menden M.P. et al. (2013) Machine learning prediction of cancer cell sensitivity to drugs based on genomic and chemical properties. PLoS One, 8, e61318.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Menden M.P. et al. (2018) A cancer pharmacogenomic screen powering crowd-sourced advancement of drug combination prediction. doi: 10.1101/200451. [Google Scholar]
  23. Niepel M. et al. (2017) Common and cell-type specific responses to anti-cancer drugs revealed by high throughput transcript profiling. Nat. Commun., 8, 1186.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Papillon-Cavanagh S. et al. (2013) Comparison and validation of genomic predictors for anticancer drug sensitivity. J. Am. Med. Inform. Assoc., 20, 597–602. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Paszke A. et al. (2017) Automatic differentiation in Pytorch. In: Neural Information Processing System (NIPS) 2017 Autodiff Workshop, Long Beach, California, https://openreview.net/forum?id=BJJsrmfCZ&noteId=BJJsrmfCZ.
  26. Pedregosa F. et al. (2011) Scikit-learn: machine learning in Python. J. Mach. Learn. Res., 12, 2825–2830. [Google Scholar]
  27. Rees M.G. et al. (2016) Correlating chemical sensitivity and basal gene expression reveals mechanism of action. Nat. Chem. Biol., 12, 109. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Reinhold W.C. et al. (2012) CellMiner: a web-based suite of genomic and pharmacologic tools to explore transcript and drug patterns in the NCI-60 cell line set. Cancer Res., 72, 3499–3511. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Rezende D.J., Mohamed S. (2015) Variational inference with normalizing flows. In: International Conference on Machine Learning (ICML) 2015, http://proceedings.mlr.press/v37/rezende15.html. [Google Scholar]
  30. Rezende D.J. et al. (2014) Stochastic backpropagation and approximate inference in deep generative models. In: International Conference on Machine Learning (ICML) 2014, http://proceedings.mlr.press/v32/rezende14.html. [Google Scholar]
  31. Safikhani Z. et al. (2016) Revisiting inconsistency in large pharmacogenomic studies. F1000Res., 5, 2333. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Safikhani Z. et al. (2017) Gene isoforms as expression-based biomarkers predictive of drug response in vitro. Nat. Commun., 8, 1126.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Smirnov P. et al. (2015) PharmacoGx: an R package for analysis of large pharmacogenomic datasets. Bioinformatics, 32, 1244–1246. [DOI] [PubMed] [Google Scholar]
  34. Smirnov P. et al. (2018) PharmacoDB: an integrative database for mining in vitro anticancer drug screening studies. Nucleic Acids Res., 46, D994–D1002. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Stetson L.C. et al. (2014) Computational identification of multi-omic correlates of anticancer therapeutic response. BMC Genomics, 15, S2.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Subramanian A. et al. (2017) A next generation connectivity map: l 1000 platform and the first 1, 000, 000 profiles. Cell, 171, 1437–1452. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Tan M. et al. (2018) Drug response prediction by ensemble learning and drug-induced gene expression signatures. Genomics. 10.1016/j.ygeno.2018.07.002. [DOI] [PubMed] [Google Scholar]
  38. Wang L. et al. (2017) Improved anticancer drug response prediction in cell lines using matrix factorization with similarity regularization. BMC Cancer, 17, 513.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Way G.P., Greene C.S. (2018) Extracting a biologically relevant latent space from cancer transcriptomes with variational autoencoders. Pac. Symp. Biocomput., 23, 80. [PMC free article] [PubMed] [Google Scholar]
  40. Yang W. et al. (2013) Genomics of drug sensitivity in cancer (GDSC): a resource for therapeutic biomarker discovery in cancer cells. Nucleic Acids Res., 41, D955–D961. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Zhang F. et al. (2018) A novel heterogeneous network-based method for drug response prediction in cancer cell lines. Sci. Rep., 8, 3355.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Zhang N. et al. (2015) Predicting anticancer drug responses using a dual-layer integrated cell line-drug network model. PLoS Comput. Biol., 11, e1004498. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

btz158_Supplementary_Material

Articles from Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES