Literature DB >> 35148844

Deriving waveform parameters from calcium transients in human iPSC-derived cardiomyocytes to predict cardiac activity with machine learning.

Hongbin Yang1, Will Stebbeds2, Jo Francis2, Amy Pointon3, Olga Obrezanova4, Kylie A Beattie5, Peter Clements5, James S Harvey5, Graham F Smith4, Andreas Bender6.   

Abstract

Human induced pluripotent stem cell-derived cardiomyocytes have been established to detect dynamic calcium transients by fast kinetic fluorescence assays that provide insights into specific aspects of clinical cardiac activity. However, the precise derivation and use of waveform parameters to predict cardiac activity merit deeper investigation. In this study, we derived, evaluated, and applied 38 waveform parameters in a novel Python framework, including (among others) peak frequency, peak amplitude, peak widths, and a novel parameter, shoulder-tail ratio. We then trained a random forest model to predict cardiac activity based on the 25 parameters selected by correlation analysis. The area under the curve (AUC) obtained for leave-one-compound-out cross-validation was 0.86, thereby replicating the predictions of conventional methods and outperforming fingerprint-based methods by a large margin. This work demonstrates that machine learning is able to automate the assessment of cardiovascular liability from waveform data, reducing any risk of user-to-user variability and bias.
Copyright © 2022 The Author(s). Published by Elsevier Inc. All rights reserved.

Entities:  

Keywords:  calcium transients; cardiac activity; cardiomyocytes; cardiotoxicity; cardiovascular liability; hiPSC-CMs; machine learning; random forest; waveform parameters

Mesh:

Substances:

Year:  2022        PMID: 35148844      PMCID: PMC9039838          DOI: 10.1016/j.stemcr.2022.01.009

Source DB:  PubMed          Journal:  Stem Cell Reports        ISSN: 2213-6711            Impact factor:   7.294


Introduction

Cardiovascular toxicity often results in delays in drug discovery and development and additional clinical monitoring (Cook et al., 2014). For the past 25 years, the focus of cardiotoxicity assessments has centered around human ether-a-go-go-related gene (hERG)-mediated QT prolongation as a predictor of pro-arrhythmia risk (Wiśniowska et al., 2014). However, cardiovascular toxicity can also be the result of changes in hemodynamics (i.e., heart rate, blood pressure, and cardiac contractility) and/or changes in cardiovascular pathology. These elements are undetected via the assessment of pro-arrhythmia (Mellor et al., 2011). For example, doxorubicin induces cardiotoxicity via a diverse range of mechanisms, including oxidative stress and intracellular calcium dysregulation (Octavia et al., 2012), which would not be identified in in vitro ion-channel assays. As a consequence, several in vitro approaches have been developed recently to assess the potential of new chemical entities (NCEs) to induce structural and functional changes in cardiomyocytes. Human induced pluripotent stem cell-derived cardiomyocytes (hiPSC-CMs) have in particular been widely used in recent years, as they present an opportunity to consistently generate normal patient- and disease-specific cell lines (Gintant et al., 2016; Hoekstra et al., 2012). hiPSC-CMs have offered the opportunity to assess cardiac activity in human cells at a scale and cost amenable to early drug discovery, as they require less time and effort than primary cell preparation (Bedut et al., 2016; Pointon et al., 2015; Spencer et al., 2014). With respect to readouts, for example, the assessment of calcium transients in hiPSC-CMs detected by fast kinetic fluorescence imaging has provided a higher-throughput assessment of cardiac contractility (Sirenko et al., 2013). In addition, hiPSC-CMs express key ion channels, receptors, enzymes, and kinases of human cardiomyocytes, and have relative calcium transients similar to those from mice and rabbits (Magdy et al., 2018), which are all beneficial factors with respect to the in vivo relevance of this model system. Thus, detecting calcium transients in hiPSC-CMs makes it possible to estimate cardiac activity in a high-throughput manner and still with practical relevance to the in vivo situation in humans. The question that then remains is how to analyze the data generated in an informative and unbiased manner, and that is what the current work aims to answer. In-house scripts or commercial software are normally used to derive parameters from calcium transients (Juhola et al., 2015). More recently, an open-source R package, SVMCaT, was developed that can process calcium transients and derive peak-level and cell-level parameters, which were further used for abnormality assessment with expert labels and machine learning techniques (Hwang et al., 2020). CalTrack, a MATLAB-based algorithm, was developed to measure calcium transients from image stack to waveform parameters (Psaras et al., 2021). It has been reported that the commonly used parameters, such as peak frequency/beat rate, peak amplitude, and peak width, are in many cases suitable for detecting some compounds that have a risk of cardiotoxicity (Sirenko et al., 2013). In addition, CTD90, defined as calcium transient duration at 90% of decay following the peak amplitude (Ahola et al., 2018), was reported to have a high correlation with early afterdepolarization (EAD) (Kopljar et al., 2018), and the ratio of peak decay time to peak rise time (D/R ratio) has been shown to correlate with the concentration-dependent effects of cardiotoxic compounds (Watanabe et al., 2017). However, the number of parameters used in previous studies is still limited, and the potential of using machine learning models to predict cardiac activity of compounds for early drug discovery automatically, based on the hiPSC-CMs data described above, has been little explored. The current study hence hypothesized that a set of novel parameters derived from the calcium transients in hiPSC-CMs would provide improved and automated insight into the potential cardiac effect of a compound. In this study, we developed a Python toolkit, CardioWave, to derive 38 parameters from calcium transient waveforms of 63 unique compounds, using data provided by AstraZeneca (AZ) and GlaxoSmithKline (GSK). In addition to conventional parameters such as peak frequency and amplitude-related parameters, we defined and calculated for all compounds several novel parameters, such as shoulder-tail ratio (shoulder/tail) and the presence of multiple peaks. We also demonstrated that these parameters can be used in combination with machine learning models to flag potential cardiac activity later in the clinic with a performance comparable to alternative approaches, but while automating the process and removing individual bias from it. The Python toolkit can also be used to analyze other kinds of waveform data, such as contractility, and to generate models for endpoints other than the ones employed.

Results

Derivation of waveform parameters

The derivation of waveform parameters had two principal parts (for implementation details see also the experimental procedures). First, peak detection was implemented to separate the waveforms into individual wave cycles, from which single wave-cycle parameters, such as duration and amplitude, were calculated. Subsequently, statistical parameters, such as mean, standard deviation, and maximum, were used to describe the whole waveform. The following paragraphs give the details on how the parameters were derived from each wave cycle. For each cycle of a waveform, parameters can be derived according to the key time points, including the rising point (the first point of a cycle), peak point (maximum of a cycle), tail starting point (the first point lower to 10% of maximum during decay), and valley point (the lowest point in a cycle). As shown in Figure 1A, by calculating the duration between the key time points, several time-related parameters, including rise time, decay time, peak to end, and tail duration, as well as the whole wavelength, peak space, can be derived. These parameters were commonly used in previous studies on calcium transient analysis (Yang et al., 2016; Yu et al., 2012). We also calculated peak widths at different prominences, including 10% (PW10), 25% (PW25), 50% (PW50), 80% (PW80), and 90% (PW90). These parameters depict the shape of the peaks and are commonly used in other waveform studies such as electrocardiogram (ECG) analysis (Lu et al., 2008). In addition to frequency-related parameters, amplitude-related parameters were also derived from each cycle, including amplitude, intensity, and valley (Figure 1B). With the parameters above, indirect parameters were calculated, including the ratio between rise time and decay time (rise/decay) and the ratio between tail duration and peak space (tail proportion).
Figure 1

Frequency-, amplitude-, and shoulder-related parameters derived from each cycle in a waveform

(A) The definitions of rise time, peak to end, decay time, tail duration, and peak space. PW10 is the peak width at 10% of prominence from top to bottom (analogous to other peak-width measures).

(B) Definitions of amplitude, intensity, and valley. Amplitude equals the difference between intensity and valley.

(C) An example showing the shoulder/tail.

(D) The estimated density of amplitude of the waveform in (C).

(E) Synthetic waveform data with the same peak space but different shoulder and tail durations. It can be seen that the parameter added here is able to distinguish numerically between the different shapes shown.

Frequency-, amplitude-, and shoulder-related parameters derived from each cycle in a waveform (A) The definitions of rise time, peak to end, decay time, tail duration, and peak space. PW10 is the peak width at 10% of prominence from top to bottom (analogous to other peak-width measures). (B) Definitions of amplitude, intensity, and valley. Amplitude equals the difference between intensity and valley. (C) An example showing the shoulder/tail. (D) The estimated density of amplitude of the waveform in (C). (E) Synthetic waveform data with the same peak space but different shoulder and tail durations. It can be seen that the parameter added here is able to distinguish numerically between the different shapes shown. Univariate kernel density estimation, which was performed to derive shoulder-related parameters (Racine, 2008), was implemented by statsmodels, a Python module that provides classes and functions for the estimation of many different statistical models (Seabold and Perktold, 2010). The biweight kernel was used and the bandwidth was set to 0.2 times the peak amplitude. In the density distribution, the peak with a prominence (x axis) between 0.15 and 0.8 times the maximum was regarded as the shoulder, and that with a prominence higher than 0.8 times the maximum was regarded as the tail (Figures 1C and 1D). Then, shoulder position (ratio to the prominence of the peak) and the shoulder/tail were recorded as the parameters of this cycle. To avoid extremely high values when tail density was close to 0, the maximum shoulder/tail was set to 2.5. To illustrate why we expected the above types of parameters to provide additional insight, Figure 1E shows three artificial peaks, which have the same peak amplitude and peak space but different shapes. Peak widths at different prominences were considered as a way to represent the shape and, in this example, these three peaks have similar peak widths at the top (10% prominence or PW10). The third peak, which has a shoulder at the middle, has a smaller PW25 but a similar PW80 compared with the other two. The first peak, which does not have a shoulder nor a long tail, has a higher PW90 compared with the other two. In our parameter derivation, we explicitly calculated the ratio between shoulder and tail based on density estimation. In the first waveform example, there is no obvious shoulder, and the tail is also small, so the shoulder/tail will be a small number (here 0.01). For the second example, where there is no shoulder but an obvious tail, the ratio will be close to 0 (here 0.004). In the last case, an obvious but small shoulder can be found (quantified numerically with a value of 0.32). With this parameter, we can characterize quantitatively the shapes of the peaks provided, without visual (manual) analysis. A total of 38 parameters were derived from each waveform. These parameters were classified into four types: value, ratio, deviation, and binary (Table S1, which also includes the functions and parameters for analysis). Binary parameters were used only for checking the normality of waveforms and were not used in further analysis. For further details about the implementation of each parameter, see the document of the toolkit as well as the source code used, which accompanies this article.

Dataset, quality control, and normalization

Waveform data from two sources, namely AZ and GSK, were provided in slightly different formats, which required normalization steps to be performed before data merging. The dataset provided by AZ contained 39 compounds, tested 30 min after compound addition, with three parallel biological replicates and two technical replicates each (i.e., six replicates in total). In addition to the tested compounds, vehicle controls (0.1% DMSO) and positive controls, 10 μM verapamil, which will inhibit close to 100% of cardiomyocyte calcium transients (Harmer et al., 2012), were also included in this part of the data. For each sample from AZ, there is a corresponding baseline waveform, detected just before compound addition. The dataset provided by GSK contained 36 compounds and vehicle controls (0.1% DMSO), but no positive controls. For each compound at a certain concentration, there were two samples provided, generated 1 and 72 h after compound addition, respectively. The samples from GSK were not replicated and baseline waveforms were not available. After quality control and normalization (described in the experimental procedures), there were 2,130 compound-treated samples left from the original total of 2,680 samples. There were 69 zero-frequency samples removed, of which 28 were due to the low quality of baseline measurements. These included the waveforms with only one peak, which means the peak space is larger than the entire testing time (for which the parameters derived would be imprecise, as the peak is incomplete). In the remaining non-baseline dataset, 288 were observations following 72-h exposure, 288 were observations following 1-h exposure, and 1,554 were observations following 30-min exposure (Table S2). Compounds were ascribed a ground truth label of cardiac active or cardiac inactive, based on whether cardiac findings were mentioned in the FDA label of the compound (either a boxed warning, a warning and precaution, or an adverse reaction). Table S3 lists all the compounds with their cardiac activities, sources, and concentrations.

Plausibility analysis of derived parameters

To ensure the calculated parameters were plausible, the amplitude and peak frequency were compared with those calculated by ScreenWorks (Molecular Devices) for all compounds (version 3.2.0.14). The results (Figure 2) show that if we disregard the multi-peak waveforms and “zero parameters,” the peak frequency and average peak amplitude calculated by this toolkit and ScreenWorks were very similar, with Pearson correlation coefficients of 0.851 and 0.946, respectively. The ratio of points that are within 10% of the difference is 0.922 and 0.541 for peak frequency and peak amplitude. Where there were discrepancies, the presence of multi-peaks was one of the major reasons leading to the inconsistency. ScreenWorks tended to regard a double peak as two peaks, so that the peak frequency would be higher than the value derived with the toolkit described here (Figure 2A).
Figure 2

Comparison of the peak frequency and amplitude calculated in this study with those calculated by ScreenWorks

The “r” is the Pearson correlation coefficient of the samples excluding those with multi-peaks (black circles) removing zero points. “Within 10%” is the ratio of points where parameters derived by our toolkit are within 10% of the parameters derived from ScreenWorks.

Comparison of the peak frequency and amplitude calculated in this study with those calculated by ScreenWorks The “r” is the Pearson correlation coefficient of the samples excluding those with multi-peaks (black circles) removing zero points. “Within 10%” is the ratio of points where parameters derived by our toolkit are within 10% of the parameters derived from ScreenWorks. The plausibility of using our additional novel parameters on real-world data was assessed next. The average intensity and standard deviation of peak space (σ(peak space)) are helpful to understand the shape of the waveforms as follows. Figure 3A shows samples of which the average intensity is lower than 100. It can be seen that their shapes are quite different in terms of regularity, and samples with a lower average amplitude tend to have high standard deviations. The two parameters can also help to quickly recognize abnormal waveforms based on their distribution. When σ(peak space) is very low, there is an obvious periodic variation in the waveform (Figure 3A, example 1), indicating a weak but regular calcium transient in cardiomyocytes. But for points like Figure 3A, example 2, the deviation is high, which means the signals are more likely noise from the detection platform. Figure 3A, example 3, is a waveform of which the calcium transients are not too weak but very irregular. Such waveforms have multi-peaks and will have a large deviation in the distance between two major peaks. They are not common over the whole dataset (only three samples), since most waveforms with high intensity have a low deviation of peak space.
Figure 3

Parameter visualization and correlation to cardiac activity

(A) An illustration of how the deviation of peak space and average intensity is able to distinguish between more regular and less regular waveforms. The four examples are for visualization purposes only.

(B) The absolute point-biserial correlation coefficient |rpb| between parameters of waveforms at different concentrations and the cardiac activities of the compounds.

Parameter visualization and correlation to cardiac activity (A) An illustration of how the deviation of peak space and average intensity is able to distinguish between more regular and less regular waveforms. The four examples are for visualization purposes only. (B) The absolute point-biserial correlation coefficient |rpb| between parameters of waveforms at different concentrations and the cardiac activities of the compounds. We next analyzed the occurrence of multi-peaks. We found that multi-peaks are relatively common in our dataset: among the 116 vehicle controls there were 11 (9.4%) samples containing multi-peaks. The ratio was similar to the baseline waveforms (before adding compounds) and these wells had been removed during the quality control procedure. The analysis of the occurrence of multi-peaks of each compound showed that 20/63 compounds have at least one sample with multi-peaks. Figure S1 shows the 10 compounds with the highest multi-peak occurrence ratio. Ivabradine has shown a higher number of multi-peaks compared with the background of vehicle controls (p = 0.013), indicating that this compound may affect the cardiomyocytes via a specific mechanism that is different from that of other compounds. In the following analysis, ivabradine was removed because parameters such as frequency and decay time would have been imprecise and far different from the others in our dataset. Another novel parameter developed in this study is the shoulder-tail ratio, namely shoulder/tail. Figure S2 plots all the compounds with their shoulder/tail and their concentrations. From this plot, most samples have a low shoulder-tail ratio, and for the samples with this parameter higher than 0.5, corresponding to 18 compounds, all are cardiac active except buspirone, which has a high shoulder-tail ratio at the concentration of 50 μM. The high precision of this parameter with cardiac activity illustrates the utility of one of our new waveform parameters for the prediction of cardiac activity.

Correlation between waveform-derived parameters and cardiac activity

We next evaluated the ability of individual waveform-derived parameters to anticipate cardiac activity across the full concentration range using correlation as a metric. The point-biserial correlation coefficients between the parameters and the ground truth labels are shown in Figure 3B (with numerical values being provided in Table S4). It can be seen that the correlation becomes higher when the concentration increases in terms of the sum of correlation coefficients, and the correlation is close to 0 when concentration is low (for more details see Figure S3). In particular, for the upper part of the plot, a good concentration-response relationship between parameters and cardiac activity label can be observed. This is generally the desired behavior, since gradual concentration-response curves provide significant benefits for later decision-making (such as deriving cutoff points and the like). As an exception, parameters such as PW10 and PW25 have relatively high correlation at low concentrations, indicating that these parameters might be sensitive to cardiac activity even in low concentrations. The parameters with the highest correlation with the cardiac activity label are root-mean-square of signals (RMS), average amplitude, average intensity, maximum amplitude, shoulder/tail, and PW10, of which the correlation coefficients are more than 0.4. Peak frequency was supposed to be one of the most important features in signaling analysis as it is related to the beat rate of the cardiomyocytes and is commonly used in relevant studies. However, in terms of the correlation shown in Figure 3B, the peak frequency-related parameters, including peak space, rise time, decay time, and peak to tail, which ranked 18, 20, 28, and 26 out of the 35 parameters, respectively, have far lower correlations than the amplitude-related parameters. Interestingly, standard deviation values such as σ(intensity) and σ(peak space) have a high correlation with cardiac activity, indicating also that the stability of the resulting waveform is related to cardiac activity. Some parameters may be redundant, as their definitions are similar. To select the most information-rich parameters for subsequent modeling, we next calculated the correlation between the derived waveform parameters. The resulting heatmap (Figure S4) shows that these parameters are generally independent of each other, as their correlation coefficients are low. However, there are some parameter pairs that are highly correlated with each other, such as the amplitude-related parameters, maximum amplitude, intensity, and (average) amplitude. This is not unexpected, as these parameters were similarly defined and their values were almost identical for most waveforms, which also explains the similar patterns in the correlation heatmap (Figure 3B). Based on the intercorrelation, some redundant parameters were removed, including maximum amplitude, intensity, peak count, and inner peak space. In a final step, 25 parameters were selected based on their average correlation coefficients to the ground truth after removing the redundant parameters (see Table S1 for details of the parameters selected).

Distribution of the parameters between active and inactive compounds

We next tried to understand the distribution of the parameters and hence performed principal-component analysis (PCA) to compare visually the parameter distribution between cardiac- active and inactive compounds (Figure 4). This analysis shows that cardiac-inactive compounds tend to be clustered together, and they are overlapping with active compounds at lower concentrations (Figure S6). In Figure 4B, we can also discover some false positives (cardiac-inactive compounds predicted to be active). For example, buspirone is a representative false-positive compound. In addition, the active samples have different paths outward from the “inactive cluster” with increasing concentration tested, which implies that cardiac activity may have different modes of action (MOAs) in terms of the change of waveform.
Figure 4

Principal-component analysis of the parameters

(A and B) Data points are sized by concentration. (A) shows the center of origin in (B) at increased resolution. The numbers on the axes of (B) are the percentage of variance explained by the first (x axis) and the second (y axis) principal components.

Principal-component analysis of the parameters (A and B) Data points are sized by concentration. (A) shows the center of origin in (B) at increased resolution. The numbers on the axes of (B) are the percentage of variance explained by the first (x axis) and the second (y axis) principal components. The individual distributions of the 25 parameters selected from the previous section are shown in Figure S5. The overlap between active compounds and inactive compounds is small, and most samples are close to vehicle controls, which correspond to the inactive cluster of the PCA plot (Figure 4). In terms of the overlap area between positive control and vehicle control, the distribution of the parameters is consistent with the correlation analysis, and hence it can be concluded that the 25 parameters are potentially good features to describe calcium transients and to predict cardiac activities of these compounds at this stage of the analysis.

Replicate analysis and impact of concentration

To further understand the impact of concentration on the data generated, as well as data consistency, the distribution of Euclidean distances between non-replicates was plotted, i.e., two compounds or the same compound but at different concentrations and between replicates (Figures S7A and S7B). The results show that for inactive compounds, their distances between non-replicates and between replicates were similar, ranging from 0 to 50, indicating that in the readouts used there was not more signal to distinguish compounds than there was to distinguish replicates. This is understandable, as they are inactive compounds, which are not meant to produce a signal with respect to the endpoints considered here. However, the distances of active compounds ranged from 0 to 150, indicating a higher variety of parameter values of active hiPSC-CMs. The non-replicate distances were generally higher than replicate distances for active compounds, implying that compounds had concentration-response behaviors as well as potentially different modes of action leading to different directions of waveform change, which is mentioned above. We also separated the replicate pairs into biological and technical replicates, and it shows that their distributions were almost the same as the mix of all replicates (Figures S7C and S7D). This means that biological replicates were as consistent as technical replicates in the readout analyzed here, allowing us to pool both types of replicates in the analysis.

Utilization of waveform-derived parameters for cardiac activity prediction

We next aimed to use the parameters derived from waveform data to predict cardiac activities of compounds, to gauge whether an automated analysis pipeline is feasible for automatic (and unbiased) data analysis. To this end, we obtained 303 samples across the 63 compounds by selecting 100 μM as the standard concentration, given that this concentration had the best correlation to cardiac activity in a previous analysis (Figure 3). It should be noted that for many compounds we do not have such high-concentration data available, and in those cases, the highest tested concentration has been used (Table S3). This step represented a limitation of the data available in the current study. We employed leave-one-compound-out cross-validation (LOCO-CV) to evaluate the random forest model built with the waveform-derived parameters. LOCO-CV was used due to the small sample size, and it should be seen more as an estimator of model consistency than a true estimate of its ability to predict the output variable for novel compounds (Hawkins, 2004). Considering the different sample sizes for different compounds, we evaluated model performance in both a compound-wise and a sample-wise manner. The precision and recall of the calcium transient-based model was 0.86, and the overall accuracy was 0.81 (Table S5). We can see the very low performance of the fingerprint-based model, as the accuracy was only 0.71, and the area under the curve (AUC) of this model was only 0.60, far lower than the calcium transient-based model, of which the AUC was 0.86 (Figure 5). By comparing the performance of the calcium transient-based and the fingerprint-based models, we can conclude that the parameters derived by calcium transients are a rather predictive feature set for cardiac activity of compounds based on the dataset used here. We also investigated the improvement from the added number of parameters derived using our approach against that of using standard features alone, namely, number of peaks and average peak amplitude, derived from the waveforms. It can be seen that our model with more parameters outperformed the simple model in all the metrics used (average accuracy of 0.81 versus 0.76, AUC of 0.86 versus 0.81, and F1 score of 0.86 versus 0.83). Hence, we can conclude that comprehensive features derived from the waveform perform best for detection of cardiac activity on the dataset used here, followed by simple waveform parameters, and that fingerprint-based models perform worst, in line with the hypothesis of this study.
Figure 5

Receiver operating characteristic (ROC) curve of leave-one-compound-out random forest models

The final model was built with 38 waveform parameters, while the simple model used only two: number of peaks and average peak amplitude. All three models were evaluated compound-wise.

Receiver operating characteristic (ROC) curve of leave-one-compound-out random forest models The final model was built with 38 waveform parameters, while the simple model used only two: number of peaks and average peak amplitude. All three models were evaluated compound-wise. The receiver operating characteristic (ROC) curve (Figure 5) of calcium transient-based models is sharp at the beginning, while the slope reduces dramatically when the true positive rate is around 0.65, indicating that in our dataset, more than half of the active compounds are readily predicted with few false positives, but it becomes more difficult to identify the other compounds. This can also be found in the predicted probabilities (means of replicates) of the individual compounds, shown in Figure 6, and indicates that subsets of compounds exist where our readouts more readily identify cardiac activity. This is likely related to a relatively consistent mode (or modes) of action of the compounds in the subset, which is more visible in the calcium transient readout employed here. The cardiac-active compounds correctly identified include not only known ion-channel blockers associated with QT prolongation and torsades de pointes (TdP) risk, such as sunitinib, but also compounds with inotropic effects, such as digoxin, a Na+/K+ ATPase inhibitor, indicating that calcium transients of hiPSC-CMs are indeed a surrogate for prediction of cardiac activity with different mechanisms.
Figure 6

Predicted class probabilities of cardiac activity of compounds (as established via a leave-one-compound-out validation)

Multiple predictions for the same compound correspond to different replicates, where the gray points are short-term (30–60 min) samples and black points are long-term (72 h) samples. The colored points in the lines are the average probability of the compound being active. Orange means the compound is labeled by the FDA as cardiac active, while blue is cardiac inactive. Probability lower than 50% means the compound is predicted to be cardiac inactive by the machine learning model.

Predicted class probabilities of cardiac activity of compounds (as established via a leave-one-compound-out validation) Multiple predictions for the same compound correspond to different replicates, where the gray points are short-term (30–60 min) samples and black points are long-term (72 h) samples. The colored points in the lines are the average probability of the compound being active. Orange means the compound is labeled by the FDA as cardiac active, while blue is cardiac inactive. Probability lower than 50% means the compound is predicted to be cardiac inactive by the machine learning model. On the other hand, some other modes of action also escaped the calcium transient readouts employed here, such as those of milrinone, atenolol, and captopril. The absence of response in the in vitro hiPSC-CMs assay for the endpoints served in vivo is related to the context of the assay platform and will be described in more detail in the discussion. Likewise, false-negative (cardiac-active compounds predicted to be inactive) predictions of cardiac activity were also influenced by the duration exposure of the test compound within the in vitro hiPSC-CMs and the subsequent effects on the calcium transients. One such example is doxorubicin, a compound where the mechanisms of toxicity are complicated and remain incompletely understood. The results for doxorubicin indicated that over a short exposure period (30 min), only one sample (of six) had an obvious increase in amplitude; none of the other samples showed expected changes such as peak frequency, and this compound was predicted to be cardiac inactive. Over a longer exposure period (3 days), however, an obvious decrease in amplitude was observed, with beat stop occurring at the highest concentration, and therefore it was predicted to be cardiac active with a probability close to 1 (Figure 6). Although overall doxorubicin was predicted as a false negative under the averaging approach, which was biased by having more acute data available in the model, the waveforms did show changes in some cases, indicating also that the precise setup of the model, and drawing conclusions from changes in waveforms, requires careful adjustment to be useful in practice. In contrast, sildenafil was predicted with different output labels between long-term and short-term samples (Figure 6). However, because multiple short-term samples were predicted to be cardiac active and only one long-term sample was predicted to be inactive, it was finally falsely predicted as active. This also indicates that the utilization of short-term versus long-term time points deserves further fine-tuning in the future with respect to their predictive values. To illustrate the predictivity of the machine learning models, we also compared the performance of the conventional methods used by GSK and AZ, which are based on concentration response of peak amplitude and peak count. When comparing these two methods, we removed inconsistent annotations from both sources (namely, captopril, sildenafil, and doxorubicin). These compounds were also removed from the machine learning model used for comparison. The overall accuracy of the predictions using conventional curve fitting was 0.81, slightly lower than the machine learning model (0.85). Compared with the conventional method, the machine learning model had a higher sensitivity (0.9 versus 0.76), but the precision was lower (0.88 versus 0.97, Table S5). Hence, we can conclude that the parameters and models derived in this work slightly outperform conventional methods for waveform classification (at a different precision/recall trade-off), while being able to automate unbiased compound labeling from the input data.

Discussion

Using in vitro assays in combination with in silico models to replace the conventional animal-based assessment of in vivo cardiac activity is becoming increasingly important, given numerous ethical, scientific, business, and legislative incentives (Burden et al., 2015). Many studies have shown the usefulness of calcium transients in hiPSC-CMs as a high-throughput technique to detect the potential risk of cardiovascular toxicity by assessment of drug-induced long QT and TdP risk or cardiomyocyte contraction (Kopljar et al., 2018; Lu et al., 2019; Pointon et al., 2015). In this work, a Python toolkit was developed to derive parameters from hiPSC-CM calcium transient data for a set of exemplar compounds, which was followed by a statistical analysis to evaluate their relationship to the reported cardiac activity of compounds. Finally, in vitro calcium transient data and machine learning models were used in combination to evaluate the potential cardiac activities of the compounds and to assess the ability to automatically flag cardiac-active compounds. We first established the plausibility of the model by comparing the parameters derived using this toolkit and ScreenWorks and found that our toolkit is accurate in the derivation of parameters from the waveforms. Some mismatches mainly occurred in waveforms with multiple peaks. We also showed the plausibility by interpreting some parameters such as average intensity, the standard deviation of peak space, and the maximum of multi-peaks, which can be used to understand the shape of the waveforms. Using correlation analysis, we next identified which parameters would be important for the prediction of clinical cardiac activity. The finding that amplitude-related parameters have the highest correlation is consistent with the common knowledge that changes in the intracellular concentration of calcium ions affect the contractile force, which is an important component in the pathogenesis of heart failure as well as rhythm changes (Thandroyen et al., 1991). Some parameters, including PW10 and the novel parameter shoulder/tail, have a higher correlation than PW90, which was highlighted by a previous study (Kopljar et al., 2018). However, a low correlation may not necessarily indicate irrelevance. For example, peak frequency has a correlation coefficient of only 0.1–0.2 with cardiac activity in different concentrations, which is lower than most of the other parameters, but we can still see a difference between positive controls and vehicle controls in terms of the distributions of this parameter. Our results demonstrate that the prediction model using the derived parameters as features can predict the cardiac activities of compounds by using combinations of features better than using structural features (fingerprints) alone. Furthermore, it does so in an unbiased way, independent of manual curve fitting, making the data analysis workflow amenable to automation. The false predictions, on the other hand, give us hints for understanding the difference between calcium transient change and reported clinical activity. For example, although buspirone had a ground truth classification of inactive according to the FDA label, the model predicted it as being cardiac active. Observing the calcium transients, there is a noticeable change at high concentrations, and calcium transients cease at 50 μM (beat stop). We would therefore infer that the model has functioned as expected, with buspirone having an unexpected effect in this cellular model, at these concentrations, that is not reflected clinically. Of course, the importance of pharmacokinetics (PK) is paramount when translating in vitro readouts to in vivo effects. In this regard, the selected standard concentration, 100 μM (or the highest achieved concentration below this), is far higher than the clinical Cmax. This may lead, on the one hand, to false-positive predictions (e.g., for cimetidine and erlotinib in Figure 6). On the other hand, the main objective of this work is not the prediction of in vivo effects at therapeutic concentrations. It is rather the evaluation of additional waveform parameters in a calcium transient readout, which has already been established for preclinical cardiac safety assessment, to determine both the utility of the parameters themselves and the ability to automate the parameter analysis workflow in an unbiased manner. The evaluation of molecules with the desired primary pharmacology can in this setup occur at higher throughput and before the PK properties of each molecule are established. This allows the opportunity to rank compounds based on changes in calcium transients and to support, e.g., design-make-test-analyze (DMTA) cycles in earlier stages of drug discovery in order to minimize the risk of later undesired cardiac activity. Some of the false-negative predictions are not unexpected, because of the technical limitations of the in vitro hiPSC-CM assay regarding its capacity to reflect complex in vivo pharmacological mechanisms of cardiac-active compounds. One such consideration is that indirect modulators are not readily identified by the in vitro hiPSC-CM assay. For example, captopril is an angiotensin-converting enzyme (ACE) inhibitor that is primarily used to treat hypertension and congestive heart failure. Its cardiac activity stems from an effect on the renin-angiotensin system (RAS), rather than a direct effect on cardiomyocytes, and hence this effect is also not visible in the in vitro hiPSC-CM assay data used for our model, and more than half of the captopril waveform samples were predicted to be cardiac inactive (Figure 6). Similarly, amphotericin B leads to arrhythmias through electrolyte abnormalities, which are not reflected in calcium transients (Nix, 2014). Another consideration is that underlying in vivo physiological processes cannot be replicated in the in vitro hiPSC-CM assay. For example, atenolol, an antagonist of beta-adrenergic receptors, was not predicted to be cardiac active by our model. Atenolol has different effects in terms of calcium transients in different cell cultures, which would not be identified appropriately by the in vitro hiPSC-CMs assay employed here, a result that is also consistent with previous studies (Kopljar et al., 2018), where calcium transients were not significantly changed. However, a reduction of amplitude can be found in intrinsic cardiac adrenergic cells (Huang et al., 2005) and cardiac microtissues containing cardiomyocytes, cardiac microvascular endothelial cells, and cardiac fibroblast (Ravenscroft et al., 2016). This may indicate that baseline β-adrenergic stimulation (i.e., endogenous catecholamines) is required to detect the cardiac activity of atenolol or other beta-blockers, and hence co-culture systems containing cardiac endothelial cells might be more promising biological systems to use in this case, as they are able to synthesize and release catecholamines, such as adrenaline (Sorriento et al., 2012). A similar explanation may explain the results for milrinone, which induced no increase in the average amplitude of the calcium transients, given that enhancement in the baseline β-adrenergic stimulation is required for this compound to induce a positive inotropic action in vitro (Raffaeli et al., 1989). There are several limitations in this study to be improved in the future. Some hyperparameters (thresholds) were introduced when deriving the parameters and they were empirically assigned based on our knowledge and the data we have. This work was performed on different batches of commercial hiPSC-CMs with basal peak frequencies equivalent to ∼1 Hz. For use with cellular sources with significantly higher or lower beating frequencies, further parameter optimization is likely required to fine-tune the analysis to the cellular system. As for the modeling, the training data have heterogeneous concentration settings, and as an approximation only one concentration was used instead of the entire concentration-response curve. In addition, exposure values were not taken into consideration in this study, which limits the application in the late stages of drug discovery (which, however, as described above, is not its primary purpose). Despite the good performance of the machine learning models in predicting the cardiac activities of the compounds, further validation of expanded chemical space and biological mechanisms is required to fully evaluate the potential of this approach. In summary, we developed and evaluated a freely available Python toolkit to derive waveform parameters from the calcium transients of hiPSC-CMs. With a dataset of 63 compounds and their clinical cardiac activities based on FDA labels, we demonstrated the correlation between the derived parameters and the cardiac activity, and their predictive values. It is hoped that a combination of calcium transient detection in hiPSC-CMs, signaling analysis algorithms, and machine learning approaches will further enable the development of promising high-throughput platforms for the assessment of clinical cardiac activity in an unbiased, automated, and efficient manner.

Experimental procedures

Calcium transient waveform data

A detailed description of the experimental procedure to generate calcium transient waveform data has been given previously (Pointon et al., 2015). In brief, the hiPSC-CMs, cell culture thawing medium, and maintenance medium were purchased from Cellular Dynamics International (Madison, WI, USA). The hiPSC-CMs were cultured for 10 days (iCell maintenance media was refreshed every 48 h) prior to staning with the FLIPR Calcium 5 Assay Kit, a fluorescent dye, combined with the FLIPR Tetra system was used to monitor changes in intracellular calcium ions (Sirenko et al., 2013). Cells were immediately transferred to a FLIPR Tetra and maintained at 37°C after the dyes were loaded. The fluorescence was evaluated at 480 nm excitation and 530 nm emission. The raw data provided by AZ were the readout of the calcium flux, with 800 reads covering 100 s in duration, as well as 350 reads of baseline before compound addition. Each sample from GSK contained 600 reads covering 65.5 s in total, without baseline readout. Hence, the sampling interval for both data traces was about 100 ms, leading to each curve being approximated by about 10 data points at a beat frequency of 1 Hz. While this relatively low sampling frequency might not capture finer details of the waveforms, we still found it to be appropriate data to be used for the current purpose, given that it represents a standard readout used in the industry for the given objective and, hence, data available in a real-world situation. For each compound (across datasets) at least eight concentrations were tested, ranging from 0.32 nM to 300 μM. To avoid noise signals during detection, the raw data in all cases were smoothed via a 5-point quadratic polynomial Savitzky-Golay filter (Savitzky and Golay, 1964). To assist with the assessment of calcium transient waveform data from different wells and even from different plates over time, the data were scaled by subtracting the minimum relative fluorescence unit (RFU) count from each well from every point in that well.

Peak and subpeak detection

Peak detection was implemented by attempting to get the cycle number of each signal and to derive parameters from each cycle. SciPy (Virtanen et al., 2020) was used to identify the peaks of a waveform with their prominences. Peaks of which the prominence is lower than 20% or 10% of the maximum amplitude (MA) of the waveform would be regarded as false peaks. For the boundary of the waveform (the first and the last peaks), the prominences lie on the inner side of the peak, i.e., the leftmost peak bases only on the right side of the peak to measure the prominence. Two approaches were used to identify multi-peaks: prominence based and tail based. In the prominence-based approach, if the prominence of a peak is lower than a threshold, and signal or amplitude is close to the last real peak within 10% of the MA, the peak will be regarded as a double peak or a subpeak. The threshold was determined empirically to be 50% of the maximum prominence (MP) when MA was lower than 250, and 70% of MP when MA was higher than 250. In some situations, the prominence-based approach cannot identify multi-peaks well. Based on our finding that cycles end with a long tail but the subpeaks do not, we recognized the subpeaks by comparing their tail with the maximum tail length in the waveform. After peak and subpeak detection, the signals of the whole waveform would be separated into several groups in terms of different cycles separated by peak points. Each group starts with a peak point (or the first point of the waveform) and ends by the last point before the next peak point (or the last point of the waveform), so each signal belongs to exactly one group. A cycle starts from a peak point and ends by the peak point of the next group. Normally the first and the last group would not be used to derive parameters because they are not a full cycle.

Quality control and normalization

Quality control was conducted based on peak frequency, average peak amplitude, and multi-peaks of the samples. First, if the peak frequency was zero, the sample would be removed from the dataset. Second, for the dataset from AZ, which has corresponding baseline waveforms (calcium transients before compound adding) available, samples were also removed in any of the following situations: (1) presence of a multiple peak, i.e., multi-peak is higher than 1, in the baseline waveform (indicating that the hiPSC-CMs are abnormal); (2) MA of the baseline waveform is lower than 100 (which would mean that the cells may have stopped beating); (3) there is a cycle where the key time points cannot be identified by our algorithm; or (4) peak frequency is outside ±20% of the median frequency of all DMSO samples within the same plate (which would indicate abnormal behavior of the sample). Then, for any plate from both datasets, if the vehicle controls present >20% robust coefficient of variation (RCV), the whole plate will be excluded. In this study, RCV was calculated based on the median absolute deviation. Batch normalization was performed as follows. We first averaged the parameters of the vehicle control replicates in each plate to obtain the reference parameters, which were then subtracted from the values of treated samples in the same plate. Due to the different scales of value-type parameters, we then divided the subtracted parameters by the median value of the parameters of the vehicle control replicates to obtain the final normalized parameters (indicating a relative change of treated over control), while for deviation and ratio types, we only subtracted the vehicle control parameters without dividing.

Concentration selection

For each compound (and in both datasets provided), data for eight concentrations were available; however, those concentrations were not identical (see Table S3). We set a standard concentration set (0.01, 0.03, 0.1, 0.3, 1, 3, 10, 30, and 100 μM), and we matched concentrations used in experiments to the nearest concentration on this standard concentration set on a logarithmic scale. The sample with the lowest absolute difference on this scale was chosen; in case this was true for multiple samples, the higher absolute concentration was mapped to the respective standard concentration.

Correlation analysis and feature selection

The point-biserial correlation coefficient was used to evaluate the correlation between the parameters at different concentrations and the presence of the cardiac activity label as implemented in Python scripts (scipy.stats.pointbiserialr). To understand the correlation among the waveform parameters themselves, the Pearson correlation was used as implemented in Python (numpy.corrcoef). Subsequently, hierarchical clustering (scipy.cluster.hierarchy) was applied to visualize the relationship between the parameters. Similarly defined parameters were removed to avoid redundancy and overfitting. Finally, we selected the 25 parameters with the highest overall point-biserial correlation coefficients at all concentrations for subsequent analysis. The names and definitions of the parameters selected in this way are listed in Table S1.

Data analysis and machine learning models

PCA was performed using scikit-learn (v.0.21.2) and all the samples were projected into a 2D plot (Pedregosa et al., 2011). The sklearn.decomposition.PCA package centers the input data for each feature before implementing the single-value decomposition. To evaluate the utility of the derived parameters for evaluating cardiac risk also in combination, we next trained random forest models on the derived parameters as implemented in scikit-learn. The number of trees was set to 100. Gini impurity was used as the criterion to measure the quality of a split. The other hyperparameters were set as default in scikit-learn. The baseline model was built by random forest with molecular fingerprints. Extended connectivity fingerprints (ECFP) were calculated via RDKit (Bento et al., 2020). A radius of 2 was used, which is equivalent to ECFP4, and the fingerprints were folded into 2,048 bits, implemented by GetMorganFingerprintAsBitVect. Model metrics, including sensitivity, precision, F1 score, and area under the receiver operating characteristic curve, were first calculated in a sample-wise manner, where each sample was regarded as one item in either the training set or the test set (leading to compounds with more replicates having a higher weight in the metrics). Furthermore, model metrics were also calculated in a compound-wise manner, where predictions of samples of the same compound would first be aggregated by averaging the probabilities of being cardiac active, so each compound would have an equal weight during the evaluation.

Data and code availability

The toolkit CardioWave is available as open source at https://github.com/zealseeker/CardioWave.

Author contributions

Y.H. developed the software, designed and conducted the experiments, and wrote the first version of the manuscript. S.W., P.A. and J.F. provided expert opinions on processing the calcium transient data and reviewed and revised the manuscript. O.O. joined the design of machine learning models and reviewed the manuscript. B.K., C.P., H.J., and S.G. reviewed and revised the manuscript. B.A. supervised the entire work and wrote the manuscript.

Conflict of interests

S.W., F.J., B.K., C.P., and H.J. are employees of GlaxoSmithKline. P.A., O.O., and S.G. are employees of AstraZeneca.
  30 in total

1.  Endothelial cells are able to synthesize and release catecholamines both in vitro and in vivo.

Authors:  Daniela Sorriento; Gaetano Santulli; Carmine Del Giudice; Antonio Anastasio; Bruno Trimarco; Guido Iaccarino
Journal:  Hypertension       Date:  2012-06-04       Impact factor: 10.190

2.  Usefulness of cardiotoxicity assessment using calcium transient in human induced pluripotent stem cell-derived cardiomyocytes.

Authors:  Hitoshi Watanabe; Yayoi Honda; Jiro Deguchi; Toru Yamada; Kiyoko Bando
Journal:  J Toxicol Sci       Date:  2017       Impact factor: 2.196

3.  Milrinone enhances cytosolic calcium transient and contraction in rat cardiac myocytes during beta-adrenergic stimulation.

Authors:  S Raffaeli; C Ferroni; H A Spurgeon; M C Capogrossi
Journal:  Int J Cardiol       Date:  1989       Impact factor: 4.164

4.  Assessment of beating parameters in human induced pluripotent stem cells enables quantitative in vitro screening for cardiotoxicity.

Authors:  Oksana Sirenko; Evan F Cromwell; Carole Crittenden; Jessica A Wignall; Fred A Wright; Ivan Rusyn
Journal:  Toxicol Appl Pharmacol       Date:  2013-10-01       Impact factor: 4.219

5.  Intracellular calcium transients and arrhythmia in isolated heart cells.

Authors:  F T Thandroyen; A C Morris; H K Hagler; B Ziman; L Pai; J T Willerson; L M Buja
Journal:  Circ Res       Date:  1991-09       Impact factor: 17.367

6.  Testing Chemical Safety: What Is Needed to Ensure the Widespread Application of Non-animal Approaches?

Authors:  Natalie Burden; Fiona Sewell; Kathryn Chapman
Journal:  PLoS Biol       Date:  2015-05-27       Impact factor: 8.029

7.  An open source chemical structure curation pipeline using RDKit.

Authors:  A Patrícia Bento; Anne Hersey; Eloy Félix; Greg Landrum; Anna Gaulton; Francis Atkinson; Louisa J Bellis; Marleen De Veij; Andrew R Leach
Journal:  J Cheminform       Date:  2020-09-01       Impact factor: 5.514

8.  Predicting drug-induced changes in QT interval and arrhythmias: QT-shortening drugs point to gaps in the ICHS7B Guidelines.

Authors:  H R Lu; E Vlaminckx; A N Hermans; J Rohrbacher; K Van Ammel; R Towart; M Pugsley; D J Gallacher
Journal:  Br J Pharmacol       Date:  2008-05-19       Impact factor: 8.739

9.  Cardiac Non-myocyte Cells Show Enhanced Pharmacological Function Suggestive of Contractile Maturity in Stem Cell Derived Cardiomyocyte Microtissues.

Authors:  Stephanie M Ravenscroft; Amy Pointon; Awel W Williams; Michael J Cross; James E Sidaway
Journal:  Toxicol Sci       Date:  2016-04-28       Impact factor: 4.849

Review 10.  SciPy 1.0: fundamental algorithms for scientific computing in Python.

Authors:  Pauli Virtanen; Ralf Gommers; Travis E Oliphant; Matt Haberland; Tyler Reddy; David Cournapeau; Evgeni Burovski; Pearu Peterson; Warren Weckesser; Jonathan Bright; Stéfan J van der Walt; Matthew Brett; Joshua Wilson; K Jarrod Millman; Nikolay Mayorov; Andrew R J Nelson; Eric Jones; Robert Kern; Eric Larson; C J Carey; İlhan Polat; Yu Feng; Eric W Moore; Jake VanderPlas; Denis Laxalde; Josef Perktold; Robert Cimrman; Ian Henriksen; E A Quintero; Charles R Harris; Anne M Archibald; Antônio H Ribeiro; Fabian Pedregosa; Paul van Mulbregt
Journal:  Nat Methods       Date:  2020-02-03       Impact factor: 28.547

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.