- Research
- Open Access
- Published:

# Transfer Entropy Estimation and Directional Coupling Change Detection in Biomedical Time Series

*BioMedical Engineering OnLine*
**volumeÂ 11**, ArticleÂ number:Â 19 (2012)

## Abstract

### Background

The detection of change in magnitude of directional coupling between two non-linear time series is a common subject of interest in the biomedical domain, including studies involving the respiratory chemoreflex system. Although transfer entropy is a useful tool in this avenue, no study to date has investigated how different transfer entropy estimation methods perform in typical biomedical applications featuring small sample size and presence of outliers.

### Methods

With respect to detection of increased coupling strength, we compared three transfer entropy estimation techniques using both simulated time series and respiratory recordings from lambs. The following estimation methods were analyzed: fixed-binning with ranking, kernel density estimation (KDE), and the Darbellay-Vajda (D-V) adaptive partitioning algorithm extended to three dimensions. In the simulated experiment, sample size was varied from 50 to 200, while coupling strength was increased. In order to introduce outliers, the heavy-tailed Laplace distribution was utilized. In the lamb experiment, the objective was to detect increased respiratory-related chemosensitivity to *O*
_{2} and *CO*
_{2} induced by a drug, domperidone. Specifically, the separate influence of end-tidal *PO*
_{2} and *PCO*
_{2} on minute ventilation \left({\stackrel{\xcb\u2122}{V}}_{E}\right) before and after administration of domperidone was analyzed.

### Results

In the simulation, KDE detected increased coupling strength at the lowest SNR among the three methods. In the lamb experiment, D-V partitioning resulted in the statistically strongest increase in transfer entropy post-domperidone for P{O}_{2}\xe2\u2020\u2019{\stackrel{\xcb\u2122}{V}}_{E}. In addition, D-V partitioning was the only method that could detect an increase in transfer entropy for PC{O}_{2}\xe2\u2020\u2019{\stackrel{\xcb\u2122}{V}}_{E}, in agreement with experimental findings.

### Conclusions

Transfer entropy is capable of detecting directional coupling changes in non-linear biomedical time series analysis featuring a small number of observations and presence of outliers. The results of this study suggest that fixed-binning, even with ranking, is too primitive, and although there is no clear winner between KDE and D-V partitioning, the reader should note that KDE requires more computational time and extensive parameter selection than D-V partitioning. We hope this study provides a guideline for selection of an appropriate transfer entropy estimation method.

## Introduction

In multi-variable time series analysis, a common subject of interest is the coupling among the variables. One promising measure of the coupling strength between two time series is transfer entropy [1, 2], which quantifies the amount of information transfer from one variable to the other. Importantly, transfer entropy is non-parametric and can capture non-linear coupling effects. This property can be useful in analyzing complex systems where interactions among sub-systems are expected to be non-linear and where minimal a priori knowledge is available. Furthermore, transfer entropy is an asymmetric measure that conveys directional information. Unlike mutual information, which can only quantify the amount of shared information between two variables, transfer entropy can elucidate directional relationships between variables. In fact, it has been shown that transfer entropy is a non-linear extension of Granger causality [3].

Given all these advantages, transfer entropy has been gaining popularity as a powerful analytic tool for characterizing complex physiologic networks. For instance, this new method has been suggested [4] and successfully applied to electroencephalograms and magnetoencephalograms to help elucidate complex neural phenomena such as consciousness under anesthesia [5], sensory functional integration [6], auditory neural assembly [7], attention related processing [8], and sensor-motor connectivity [9]. In the area of cardiovascular physiology, Katura and colleagues [10] have utilized the technique of transfer entropy to elucidate (or reject) causal relationships that explain sources of variability in the regulation of cerebral hemodynamics. In addition, a number of studies have employed variations of transfer entropy, such as cross-conditional entropy and conditional mutual information, to investigate relationships between cardiovascular variables as indicator of baroreflex function [11â€“14]. Conditional mutual information has been shown to be equivalent to transfer entropy [15].

In practice, one major challenge with transfer entropy estimation using biomedical signals is the estimation of Probability Density Functions (PDFs) from finite data with outliers. This estimation challenge is well discussed in [2, 16]. Small sample size can stem not only from experimental and/or technical constraints but also from the need for stationarity; a non-stationary time series may have to be broken into quasi-stationary segments before analysis. This sample size issue can be a major hindrance for biomedical studies where data collection is often costly. Also, outliers frequently originate from either noise sources or underlying physiology.

Therefore, our objective in this study was to investigate several transfer entropy estimation methodologies in the context of biomedical signals with small sample size and with outliers. This study can be viewed as an extension of the study on mutual information estimation (two dimensions) by Khan and colleagues [17] to transfer entropy estimation (three dimensions). Furthermore, unlike most other transfer entropy applications, we focused on the ability to detect increases in coupling strength, rather than on detection of the existence of a significant coupling or on identification of time lags at which significant couplings exist. This is a common research topic of interest when one wishes to study how a given coupling varies in magnitude under different conditions while the existence of the coupling is known a priori (our application to respiratory physiology in this study is one example). To the best of our knowledge, no study has attempted to investigate the sensitivity of various transfer entropy estimation methods to changes in coupling strength in the biomedical domain.

Specifically, we studied three non-parametric techniques in this endeavor: fixed-bins, Kernel Density Estimation (KDE), and adaptive partitioning. The fixed-bin approach, in which a given time series is quantized by dividing the dynamic range into equally-spaced bins, is the simplest method that boasts the least computational complexity at the cost of inefficient bin allocation [16]. KDE has been shown to perform well in mutual information estimation using short time series [17] and hence was included in our study. For adaptive partitioning, we introduce a novel method that applies the Darbellay-Vajda (D-V) partitioning algorithm [18] to transfer entropy estimation. The D-V partitioning algorithm is equivalent to the adaptive partitioning introduced by Fraser and Swinney [2, 19] and has been shown to be effective in mutual information estimation [20].

The comparison among the three transfer entropy estimation techniques was accomplished via both simulated and real-life signals. In both experiments, we analyzed the sensitivity of the techniques to increased non-linear coupling strength, under small sample size and presence of outliers. The purpose of the simulated experiment was to perform a rigorous comparison in a controlled setting. In order to address any coupling characteristics that were not represented by the simulated data, we also applied the transfer entropy estimation methods to measurements of spontaneous breathing respiratory flow, end-tidal carbon dioxide pressure (*PCO*
_{2}) and end tidal oxygen pressure (*PO*
_{2}), collected from lambs [21]. The objective of the lamb experiment was to detect changes in chemosensitivity, which is of major clinical interest. The method of transfer entropy provides a natural framework for quantification of directional influence that breath-by-breath changes in blood gases have on ventilation (via peripheral chemoreceptors located in the aortic arch and carotid bodies), while taking into account the delayed nature of the response (due to lung-to-chemoreceptors transport time, typically on the order of 2-4 breaths) and possible non-linearities [22]. Ventilatory control instabilities are important in a variety of pathological conditions, including Cheyne-Stokes breathing in congestive heart failure [23, 24] and obstructive sleep apnea [25â€“27]. Although the specific mechanisms underlying each condition may vary, increases in the ventilatory sensitivity to hypoxia/hypercapnia (controller gain) have been shown to play a critical role in the pathogenesis of unstable breathing. An elevated hypoxic ventilatory response at high altitude is associated with the presence of unstable breathing [28]. Moreover, heightened dynamic hypercapnic responses delineate heart failure patients with periodic breathing (in the form of Cheyne-Stokes respiration) from those patients that exhibit stable breathing [29â€“31]. Additionally, in heart failure patients, elevated hypoxic and/or hypercapnic sensitivity [32] and the consequent presence of Cheyne-Stokes respiration itself [33] are important predictors of mortality.

## Methods

### Transfer Entropy Construction

Given two concurrently sampled time series *X* = {*x*
_{1}, *x*
_{2}, . . ., *x*
_{
N
}} and *Y* = {*y*
_{1}, *y*
_{2}, . . ., *y*
_{
N
}}, the transfer entropy from *X* to *Y*, termed *T*
_{
Xâ†’Y
}, can be derived from conditional entropies as follows:

where *i* indicates a given point in time, *Ï„* and *t* are the time lags in *X* and *Y*, respectively, and *k* and *l* are the block lengths of past values in *X* and *Y*, respectively (see Appendix I for a complete derivation). The past values on which the conditional probabilities in (2) are conditioned are {x}_{i-\mathrm{\xcf\u201e}}^{\left(k\right)}=\left\{{x}_{i-\mathrm{\xcf\u201e}-k+1},\phantom{\rule{2.77695pt}{0ex}}{x}_{i-\mathrm{\xcf\u201e}-k+2},\phantom{\rule{2.77695pt}{0ex}}\xe2\u20ac\xa6,\phantom{\rule{2.77695pt}{0ex}}{x}_{i-\mathrm{\xcf\u201e}}\right\} and {y}_{i-t}^{\left(l\right)}=\left\{{y}_{i-t-l+1},\phantom{\rule{2.77695pt}{0ex}}{y}_{i-t-l+2},\phantom{\rule{2.77695pt}{0ex}}\xe2\u20ac\xa6,\phantom{\rule{2.77695pt}{0ex}}{y}_{i-t}\right\}. In words, (1) implies that transfer entropy measures the reduction in uncertainty in *y*
_{
i
}given {x}_{i-\mathrm{\xcf\u201e}}^{\left(k\right)} and {y}_{i-t}^{\left(l\right)} in comparison with given only {y}_{i-t}^{\left(l\right)}. Note that *T*
_{
X
}â†’_{
Y
}cannot be negative because H\left({y}_{i}|{y}_{i-t}^{\left(l\right)}\right)\xe2\u2030\yen H\left({y}_{i}|{y}_{i-t}^{\left(l\right)},{x}_{i-\mathrm{\xcf\u201e}}^{\left(k\right)}\right) in (1); conditioning on another variable, {x}_{i-\mathrm{\xcf\u201e}}^{\left(k\right)}, cannot increase the uncertainty in *y*
_{
i
}. (Note that if base 2 logarithm is used, the unit of transfer entropy is bits, which has the interpretation of the amount of reduction in the average length of the optimal code needed to encode the target variable.)

Equation (2) is the most general definition of transfer entropy and provides maximum flexibility. However, the usual parameter choices in practice are *k* = 1 and *l* = 1 for computational reasons when sample size is small. In addition, here we set *t* = 1 under the assumption that the maximum auto-transfer of information occurs from the data point immediately before the target value in *Y*. For example, Francis et al. only considered lags of one breath in ventilation and *CO*
_{2} for the same reason [30]. These choices of *k* = *l* = *t* = 1 are especially appropriate in biomedical experiments where time series length is usually short and the absolute values of auto-correlation functions tend to decrease monotonically as time lag increases. Also, the original definition in [1] implicitly assumed *t* = 1 by using a Markov chain; our choice can be seen as a first-order Markov process. Hence, we restrict the focus of this paper to these usual parameter choices by simplifying (2) to

Note that (3) and (4) explicitly show transfer entropy as a function of *Ï„*.

In practice, the foremost challenge in transfer entropy computation is estimating the joint probabilities in (4). The ensuing section describes the three different PDF estimation methodologies to be investigated in this study.

### Probability Density Function Estimation Methodologies

#### Fixed Bins

The simplest estimation approach to obtain the PDFs in (4) is to allocate data points to fixed, equally-spaced bins. In order to enhance robustness against outliers and sparse regions in the underlying distribution, we combined fixed binning with ordinal sampling (ranking). In ordinal sampling, the time series values in *X* and *Y* are substituted with their ranks in sorted *X* and *Y* , similar to most non-parametric statistical tests. The ranks are integers ranging from 1 (smallest value) to *N* (largest value). Let the transformed time series of *X* and *Y* be *U* = {*u*
_{1}, *u*
_{2}, . . ., *u*
_{
N
}} and *V* = {*v*
_{1}, *v*
_{2}, . . .,*v*
_{
N
}}, respectively (*U* and *V* contain integers that represent ranks).

Then, (4) can be rewritten in terms of *U* and *V* as follows:

Using the same number of bins, *Q*, in each dimension for simplicity, the fixed-bin technique estimates (5) as follows:

where *a*, *b*, and *c* index bins along *v*
_{
i
}, *v*
_{
i-1}, and *u*
_{
i-Ï„
}, respectively, and *P* is the total number of triplets of *v*
_{
i
}, *v*
_{
i-1}, and *u*
_{
i-Ï„
}. Furthermore, *m*
_{
a,b,c
}, *m*
_{
a,b
}, and *m*
_{
b,c
}represent the number of data points in the intersection of the one-dimensional bins denoted by the subscript, whereas *m*
_{
b
}is the number of data points in the *b* th bin along the *v*
_{
i-1}dimension.

#### Kernel Density Estimation

In KDE, the PDF is estimated by summing individual distributions centered at each data point. The shape of the individual distributions is dictated by a chosen kernel, the magnitude of which decreases as the distance from the center of the distribution increases. Since distance is a crucial measure in KDE, ordinal sampling is not employed. In the three-dimensional space of *y*
_{
i
}, *y*
_{
i-1}, and *x*
_{
i-Ï„
}, the joint probability at an arbitrary point, \left({\mathrm{\xe1\xbb\xb9}}_{i},{\mathrm{\xe1\xbb\xb9}}_{i-1},{\stackrel{\xcc\u0192}{x}}_{i-\mathrm{\xcf\u201e}}\right), can be estimated by normalizing the following:

where *j* indexes the *P* data points and *h*
_{(Â·)} is the bandwidth for the dimension specified in the subscript. We utilized a scaled version of the rule of thumb specified in [34] to select the bandwidth:

where *Î±* is a multiplier for scaling and \widehat{\mathrm{\xcf\u0192}} is the sample standard deviation in the given dimension. In terms of *K*, several possible kernels exist but we employed the widely used Gaussian kernel in this study, which is defined as follows:

The rest of the probabilities in (4) can be computed by marginalizing p\left({\mathrm{\xe1\xbb\xb9}}_{i},\phantom{\rule{2.77695pt}{0ex}}{\mathrm{\xe1\xbb\xb9}}_{i-1},\phantom{\rule{2.77695pt}{0ex}}{\stackrel{\xcc\u0192}{x}}_{i-\mathrm{\xcf\u201e}}\right).

#### Adaptive Partitioning using the Darbellay-Vajda Algorithm

We introduce an extension of the D-V algorithm to three-dimensional space for transfer entropy estimation. After ordinal sampling, the D-V algorithm recursively partitions the three-dimensional space defined by *v*
_{
i
}, *v*
_{
i-1}, and *u*
_{
i-Ï„
}into cubes of varying sizes. Initially, the entire space is sliced into 8 equal cubes, where the boundaries are at the mid-points in the three dimensions. Using the 8 cubes, the following *Ï‡*^{2} statistic is computed to test the null hypothesis that data points are evenly distributed across the 8 cubes:

where *M*
_{1}, *M*
_{2}, . . ., *M*
_{8} are the numbers of data points contained in the 8 cubes and *Î¼*
_{
M
}is the total number of data points divided by 8 (number of cubes). If {s}_{{\mathrm{\xcf\u2021}}^{2}}>{\mathrm{\xcf\u2021}}_{95\%}^{2} (7) (at a 5% significance level and 7 degrees of freedom), then the null hypothesis is rejected and each of the 8 cubes is further partitioned into 8 smaller cubes in the same manner, and the recursion continues. If the null hypothesis is not rejected, the partitions in the current iteration are discarded and the current 8 cubes under scrutiny as a whole are taken as one partition. Cubes that contain no data point do not contribute to the transfer entropy estimation.

Appendix II shows a two-dimensional analogy of a partitioned space. It was generated based on 1,000 data points randomly sampled from a bivariate Gaussian distribution with covariance *Ïƒ*
_{
xy
}= 0.9 and unit variance, {\mathrm{\xcf\u0192}}_{x}^{2}=1 and {\mathrm{\xcf\u0192}}_{y}^{2}=1. Note that many squares with smaller sizes are allocated to densely populated parts of the space, whereas fewer partitions are created in sparse areas.

The result of the partitioning process is a finite number of cubes, *L*, each of which contains nonzero data points. By approximating each probability in (5) by counting, *T*
_{
Uâ†’V
}(*Ï„*) can now be estimated using the *L* partitions as follows:

where *P* is the total number of data triplets (*v*
_{
i
}, *v*
_{
i-1}, and *u*
_{
i-Ï„
}), *n*
_{
k
}is the number of data points in the *k* th partition, and {n}_{k}^{{v}_{i-1}}, {n}_{k}^{{v}_{i},{v}_{i-1}}, and {n}_{k}^{{u}_{i-\mathrm{\xcf\u201e}},{v}_{i-1}} are the numbers of data points in the entire data that are greater than or equal to lower bounds and less than upper bounds of the *k* th partition with respect to the dimensions in the superscript. For example, if the *k* th partition's lower and upper limits in *v*
_{
i-1}are 5 and 10, then {n}_{k}^{{v}_{i-1}} is the total number of data points such that 5 â‰¤ *v*
_{
i-1}< 10, regardless of their *v*
_{
i
}and *u*
_{
i-Ï„
}coordinates.

Our transfer entropy estimation method with D-V partitioning has been implemented in MATLAB, and we made the code and an example data set (from the simulated experiment described in the next section) publicly available at PhysioNet [35] (http://physionet.org).

### Experiments

#### Simulation

The source time series, *X* = {*x*
_{1}, *x*
_{2}, . . ., *x*
_{
N+2}} and the corresponding sink time series, *Y* = {*y*
_{1}, *y*
_{2}, . . ., *y*
_{
N+2}}, were generated as follows:

where the signal (*s*
_{
x,i
}and *s*
_{
y,i
}) and noise components (*Î½*
_{
x,i
}and *Î½*
_{
y,i
}) are

where ~ denotes sampling from a distribution, *a* is a coupling constant, and and represent the Gaussian (mean, variance) and Laplace (mean, scale) distributions, respectively. The Laplace distribution is an example of a heavy-tailed statistic and thus can better model the type of noise often encountered in physiological signals compared with Gaussian noise (e.g., occasional sighs and apneas in a ventilation time series or muscle artifacts in electrocardiography (ECG) recordings [36]). Equation (12) imposed a nonlinear relationship between *X* and *Y* (via the squaring) at a time lag of two. Sample size, *N*, was varied from 50 to 200 at a step of 50, representing the focus of this experiment on small sample size. Note that the lengths of *X* and *Y* were *N* + 2 due to the lag of 2; *x*
_{
N+1}, *x*
_{
N+2}, *y*
_{1}, and *y*
_{2} were discarded during transfer entropy estimation.

The coupling strength between *X* and *Y* was varied by increasing the signal-to-noise ratio (SNR) in both time series from 10 to 20 dB in steps of 1 dB. This increase in SNR was induced by increasing the coupling constant *a*. In order to maintain the same SNR in both *X* and *Y* , the noise power in *X* was gradually reduced by decreasing *b*
_{
x
}while holding the signal power constant, whereas the signal power in *Y* was gradually increased by increasing *a* accordingly while holding the noise power (i.e., *b*
_{
y
}) constant.

As the first step, we analyzed transfer entropy vs. time lag (*Ï„*, from 0 to 5 in steps of 1) with SNR = 20 dB and *N* = 200 using all three estimation methods. This analysis served not only as a comparison among the methods but also as a parameter selection step for the fixed-bin (*Q* was varied from 4 to 10 in steps of 2) and KDE (*Î±* was varied from 0.5 to 1.5 in steps of 0.25) methods.

With the selected values for the parameters *Q* and *Î±*, *X* and *Y* were randomly generated 100 times at each SNR level and the corresponding transfer entropies were computed using all three methods. Subsequently, one-sided Wilcoxon rank sum tests were conducted to judge whether there was a significant increase in transfer entropy at each step of increase in SNR with *p* < 0.05 considered to be statistically significant.

#### An Application to Respiratory Physiology

Using the three transfer entropy estimation methods, we quantified the impact of the administration of domperidone, a dopamine *D*
_{2}-receptor antagonist that increases carotid body sensitivity to *O*
_{2} and *CO*
_{2} [21]. We performed our analysis on recordings from 14 newborn lambs obtained at Monash University, Australia [21]. All surgical and experimental procedures conformed to the guidelines of the National Health and Medical Research Council of Australia and had the approval of the Standing Committee in Ethics in Animal Experimentation of Monash University.

Measurements of spontaneous breathing respiratory flow, end-tidal *PCO*
_{2} and end-tidal *PO*
_{2} were obtained for a period of approximately 10 minutes before and following the intravenous administration of domperidone. Minute ventilation \left({\stackrel{\xcb\u2122}{V}}_{E}\right) was calculated for each breath as *V*
_{
T
}/*T*
_{
tot
}, where *V*
_{
T
}is tidal volume and *T*
_{
tot
} is breath duration (see Figure 1 for example waveforms and derived time series). Breath-to-breath time series data of {\stackrel{\xcb\u2122}{V}}_{E}, end-tidal *PCO*
_{2} and end-tidal *PO*
_{2} were further band-pass filtered to remove any oscillations slower than (i.e., more breaths/cycle than) 20 breaths/cycle or faster than (i.e., fewer breaths/cycle than) 5 breaths/cycle (using a 7th-order Butterworth digital filter with band-pass frequency of 0.05-0.2 cycles/breath). The frequencies included in the resulting band-passed time series are consistent with the range of oscillations often observed during periodic breathing [21, 25]. All extracted time series included at least ~ 200 data points. In a few cases where longer observations were available, the time series were divided into non-overlapping windows of size ~ 200 data points and the window with the largest variance was selected for further analysis. Our rationale behind this choice of data segment selection was to characterize the system at its most variable (or unstable) state during spontaneous breathing (see [37] for more information).

The three transfer entropy estimation methods were applied to the {\stackrel{\xcb\u2122}{V}}_{E}, *PO*
_{2}, and *PCO*
_{2} time series from each lamb. Specifically, the following two directional information flows were investigated before and after the administration of domperidone: P{O}_{2}\xe2\u2020\u2019{\stackrel{\xcb\u2122}{V}}_{E} and PC{O}_{2}\xe2\u2020\u2019{\stackrel{\xcb\u2122}{V}}_{E}. Unlike the simulation experiment, the time lag *Ï„* at which a significant coupling exists was unknown a priori. Hence, *Ï„* was varied between one and five breaths and the results for the time lag at which the value of transfer entropy was the largest and statistically significant were reported. Significant information flows were determined by Monte Carlo surrogates, i.e., temporally shuffled time series. In this experiment, transfer entropies were computed for 100 surrogates of the source time series (*PO*
_{2} or *PCO*
_{2}), and the transfer entropy from the original source time series was deemed to be significant if it was greater than the 95th percentile of the surrogate results (as described in [38]). If no *Ï„* value resulted in a significant information flow, that particular time series pair was removed from further analysis. There was difficulty in selecting optimal *Q* and *Î±* values for the fixed-bin and KDE methods, respectively, due to the lack of a priori knowledge regarding coupling time lag. Therefore, arbitrary, but reasonable, choices of *Q* = 5 and *Î±* = 1 were made. Finally, increases in coupling strength caused by domperidone were tested using the Wilcoxon signed rank sum test.

## Results

### Simulated Experiment

Figure 2 shows how the three transfer entropy estimation methods performed when *Ï„* was varied from 0 to 5 with *N* = 200 and SNR = 20 dB in the simulated experiment. Panels A and B illustrate transfer entropy estimation for different values of *Q* and *Î±* for the fixed-bin and KDE methods, respectively. Since one expects to see near zero transfer entropies at *Ï„* values other than 2, *Q* = 4 and *Î±* = 1.5 were selected for the rest of the experiment. Panel C of Figure 2 compares the three methods using the selected parameter values. All three methods allowed one to visually distinguish *Ï„* = 2 from other time lags. KDE was better at estimating low transfer entropies at *Ï„ â‰ * 2 at the cost of a reduced transfer entropy at *Ï„* = 2. Fixed-binning and D-V partitioning performed comparably, although D-V partitioning yielded lower transfer entropies at *Ï„ â‰ * 2.

The main results of the simulated experiment are shown in Figure 3 which illustrates the estimated transfer entropies from the 100 trials as a function of SNR. Following from Figure 2, *Q* = 4 and *Î±* = 1.5 for the fixed-bin and KDE methods, respectively. Overall, the fixed-bin method estimated higher transfer entropies at all lags than the other two methods, which was improved as *N* increased. KDE showed the smallest dynamic range in transfer entropy as SNR increased but was also associated with the smallest estimation variance at any given SNR. In fact, estimation variance with KDE was similar across different sample sizes, whereas the other two methods resulted in improved estimation variance as *N* increased.

Table 1 tabulates the one-sided rank sum test results of Figure 3 for detection of statistically significant increases in coupling strength. The two compared SNR levels are shown and statistically significant increases in transfer entropy were found to be sustained at and beyond the indicated SNR levels. In Table 1 all methods show the trend of detecting increased coupling at a lower SNR as *N* increases. Overall, KDE outperformed the other two methods in sensitivity to increasing coupling strength; for *N* â‰¥ 100, KDE was able to distinguish 11 dB (*a* = 1.059) and 12 dB (*a* = 1.122). Although D-V partitioning was able to detect increases in transfer entropy at a lower SNR than the fixed-bin method when *N* = 50, the fixed-bin method slightly outperformed D-V partitioning at other *N* values.

### Respiratory Physiology Experiment

Figure 4 illustrates how the estimated transfer entropy values changed for PC{O}_{2}\xe2\u2020\u2019{\stackrel{\xcb\u2122}{V}}_{E} and P{O}_{2}\xe2\u2020\u2019{\stackrel{\xcb\u2122}{V}}_{E} (first and second row, respectively), before ("Control") and after ("Domperidone") the administration of domperidone. The first, second, and third columns correspond to the fixed-bin, KDE, and D-V partitioning methods, respectively. Each closed circle represents one lamb, and the pre- and post-domperidone transfer entropies from the same lamb are connected with a straight line. Hence, we expect to see as many lines with a positive slope as possible. The number of subjects (*N*) varied among the different estimation methods as well as between pre- and post- domperidone since some cases did not pass the surrogate significance test. The group statistics are shown by the box plots.

Figure 4 shows that all three techniques were able to detect a statistically significant increase in transfer entropy for P{O}_{2}\xe2\u2020\u2019{\stackrel{\xcb\u2122}{V}}_{E} (interpreted as increased chemosensitivity) post-domperidone. However, the D-V partitioning technique indicated the statistically strongest increase in transfer entropy following domperidone administration (*p* < 0.01). Moreover, only D-V partitioning detected a significant increase in the PC{O}_{2}\xe2\u2020\u2019{\stackrel{\xcb\u2122}{V}}_{E} chemosensitivity post-domperidone (*p* < 0.05).

There are three other notable findings in Figure 4. First, fixed-binning led to higher transfer entropy values for both control and domperidone cases than the other two techniques. Second, unlike the simulation results, KDE did not show smaller estimation variance than the other two methods. Third, domperidone administration increased the range in transfer entropy in most panels in Figure 4.

## Discussion

In this paper, D-V partitioning was extended to three dimensions and, along with ranking, was used in the framework of transfer entropy estimation. Also, a comparison among three transfer entropy estimation techniques (namely traditional fixed-binning with ranking, state-of-the-art KDE, and adaptive partitioning) was conducted via a simulated experiment and an application to respiratory physiology. The focus of both studies was to investigate the methods' ability to detect increases in directional coupling strength under small sample size and outliers which are commonly encountered in biomedical studies. Although KDE detected increases in coupling strength at the lowest SNR level across different sample sizes in the simulation, D-V partitioning outperformed the other two methods in detecting increased chemosensitivity caused by domperidone in the lamb experiment. The respiratory chemoreflex system was a suitable example of non-linearity and non-stationarity. Several authors have reported evidence for non-linearity in the respiratory chemoreflex system [22, 39]. Non-stationarity may also arise as a result of fluctuations in other variables/parameters such as cardiac output, respiratory rate, sleep-state, arousal-related changes in respiratory mechanics and the chemical control system, behavioral factors, or interventions. The application to respiratory physiology in this article demonstrated that the adaptive-partitioning-based transfer entropy estimation technique was more sensitive to increases in coupling strength for both the *PCO*
_{2} and *PO*
_{2} chemosensitivity than the other two methods. These results, which are based on non-invasive measurements of spontaneous breathing ventilatory variables, are in agreement with the experimental findings of Edwards and colleagues [21] based on the traditional hypercapnic and hypoxic responses (i.e., ratio of change in ventilation in response to an incremental increase in *PCO*
_{2} or decrease in *PO*
_{2} in the inspired air). Therefore, transfer entropy has the potential to be a useful surrogate marker of chemosensitivity, and may provide physiologists and physicians with a non-invasive tool to track patient response to pharmacological interventions (e.g., Acetazolamide).

Strictly speaking, transfer entropy measures the coupling strength of a causal link between two time series at a specific time lag and thus makes it difficult to attribute any observed change in transfer entropy to changes in chemosensitivity. For example, Porta et al. have also shown that cross-conditional entropy can be high with a relatively low level of baroreflex sensitivity [11]. Thus, any interchangeability in the current study between transfer entropy and chemosensitivity requires further investigation, since it is possible to increase transfer entropy by, for example, improving the SNR in the data acquisition system under the same level of chemosensitivity or changing the operating point of the feedback system in the direction of an improved SNR. The simulation corroborated the lamb experiment by enabling a controlled comparative analysis. For example, unlike the lamb experiment, the simulated experiment allowed us to control the amount of noise and forced the signals to be stationary throughout. Furthermore, the square function and Laplace noise simulated a non-linear coupling relationship and real-life noise, respectively, that are easy to interpret and control.

Both fixed-binning and D-V partitioning incorporated ordinal sampling, or ranking, which should have at least partially dealt with outliers and multi-modal PDFs. The only difference between the two methods is in how the three-dimensional space is partitioned, and here the efficient bin allocation of the D-V partitioning algorithm becomes a substantial advantage. Under non-uniform distributions that exhibit multiple peaks or varying concentrations of data points, fixed-binning is destined to function inefficiently by allocating fixed-size bins from the minimum to maximum observed values. On the other hand, the D-V partitioning adaptively adjusts bin size according to how evenly data are distributed in a given sub-region of the data space. The expected effectiveness of adaptive partitioning increases with greater deviation from a uniform distribution, and this advantage could partially explain the improved performance of the D-V partitioning method in the lamb experiment in comparison with the simulation.

Moreover, there are minimal adjustable parameters in the D-V partitioning algorithm (one can choose to change the significance level of the *Ï‡*^{2} test), whereas the fixed-bin and KDE methods require one to choose the number of bins and the bandwidth of the kernel a priori. In fact, KDE allows one more degree of freedom: selection of the kernel function, which was not analyzed in this study. Parameter selection can be challenging especially with real-life data where the true coupling characteristics (e.g., strength, direction, time lag, etc.) are often unknown. With the D-V partitioning technique, one can bypass the often arbitrary step of model parameter selection, and this can be a substantial advantage in practice.

The block lengths *k* and *l* as well as the time lag *t* were fixed at 1 in the current study similar to previous studies quoting computational reasons, despite the known limitation that transfer entropy is expected to be underestimated [1, 38]. In cases where data size is sufficiently large and computational tractability is not a concern, one can attempt to optimize *k*, *l*, and *t*. For instance, Faes et al. discussed a greedy approach for conditional entropy that selects an optimal conditional pattern consisting of past data from two or more related signals [12]. Porta et al. studied the effects of conditional pattern length on cross-conditional entropy [40]. With respect to computational time, the three different methods are ranked in the following ascending order: fixed-bin, D-V partitioning, and KDE. Although KDE performed very well in the simulated experiment, the necessity to compute the distance between a given point and every point in the data set along each dimension makes it computationally intensive. However, it is worthwhile noting that computational time is not a major limiting factor in most research studies that only require retrospective analysis.

In a number of biomedical studies, small sample size and presence of outliers are often closely associated with physiological dynamics. A common focus of many research studies is to investigate how physiological systems behave under different conditions or respond to external interventions, naturally formulating a non-stationary problem. One way to analyze a non-stationary time series is to segment them into quasi-stationary intervals. This limits the number of data points in each segment and leads to the small sample size problem. This can be a major challenge to many parameter estimation algorithms in presence of noise, because they often require sufficiently long observations. In addition, physiological systems tend to exhibit non-linear behaviors which may cause the state of the system to abruptly change from its steady-state baseline, producing outliers. These outliers, originating from underlying physiological phenomena rather than noise, convey meaningful value and hence should not be removed for mere computational convenience. We remind the reader that our simulated experiment explicitly investigated the issues of small sample size and of outliers.

## Conclusions

In this article, we have shown that transfer entropy can detect changes in directional coupling between two biomedical time series. We have extended D-V partitioning to transfer entropy estimation and compared the performance of three transfer entropy estimation methods in detection of increased coupling strength: fixed-binning with ranking, KDE, and D-V partitioning with ranking. Based on the results of this study, fixed-binning, even with ranking, failed to clearly outperform the other two methods, while the comparison between KDE and D-V partitioning was inconclusive. However, D-V partitioning may be the most attractive option after taking into account computational time and the difficulty associated with parameter selection. We hope that this study provides a helpful guideline in selecting an appropriate transfer entropy estimation method.

## Appendix I

Given two concurrently sampled time series *X* = {*x*
_{1}, *x*
_{2}, . . ., *x*
_{
N
}} and *Y* = {*y*
_{1}, *y*
_{2}, . . ., *y*
_{
N
}}, the conditional entropy *H*(*x*
_{
i
}| *y*
_{
i
}) is defined as:

Note that *H*(*x*
_{
i
}| *y*
_{
i
}) â‰¥ 0. Then, the transfer entropy from *X* to *Y*, termed *T*
_{
Xâ†’Y
}, can be derived from conditional entropies as follows:

But since p\left({y}_{i},\phantom{\rule{2.77695pt}{0ex}}{y}_{i-t}^{\left(l\right)}\right)={\xe2\u02c6\u2018}_{{x}_{i-\mathrm{\xcf\u201e}}^{\left(k\right)}}p\left({y}_{i},\phantom{\rule{2.77695pt}{0ex}}{y}_{i-t}^{\left(l\right)},\phantom{\rule{2.77695pt}{0ex}}{x}_{i-\mathrm{\xcf\u201e}}^{\left(k\right)}\right), the two arguments in the separate summations can be combined. Thus,

## Appendix II

Figure 5 shows a two-dimensional visualization of D-V partitioning. The space contains 1,000 data points sampled from a bivariate Gaussian distribution with *Ïƒ*
_{
xy
} = 0.9, {\mathrm{\xcf\u0192}}_{x}^{2}=1, and {\mathrm{\xcf\u0192}}_{y}^{2}=1. This figure shows the transformed data space after ordinal sampling. The proposed transfer entopy estimation with the D-V partitioning algorithm extends this kind of partitioning to three dimensions.

## References

Schreiber T:

**Measuring information transfer.***Physical Review Letters*2000,**85**(2):461â€“464. 10.1103/PhysRevLett.85.461Hlavackova-Schindler K, Palus M, Vejmelka M, Bhattacharya J:

**Causality detection based on information-theoretic approaches in time series analysis.***Physics Reports*2007,**441:**1â€“46. 10.1016/j.physrep.2006.12.004Barnett L, Barrett AB, Seth AK:

**Granger causality and transfer entropy are equivalent for Gaussian variables.***Physical Review Letters*2009,**103**(23):238701.Rubinov M, Sporns O:

**Complex network measures of brain connectivity: uses and interpretations.***NeuroImage*2010,**52**(3):1059â€“1069. [http://www.ncbi.nlm.nih.gov/pubmed/19819337] 10.1016/j.neuroimage.2009.10.003Alkire MT, Hudetz AG, Tononi G:

**Consciousness and anesthesia.***Science*2008,**322:**876â€“880. [http://dx.doi.org/10.1126/science.1149213] 10.1126/science.1149213Vakorin VA, Kovacevic N, McIntosh AR:

**Exploring transient transfer entropy based on a group-wise ICA decomposition of EEG data.***NeuroImage*2010,**49**(2):1593â€“1600. [http://www.ncbi.nlm.nih.gov/pubmed/19698792] 10.1016/j.neuroimage.2009.08.027Gourevitch B, Eggermont JJ:

**Evaluating information transfer between auditory cortical neurons.***Journal of Neurophysiology*2007,**97**(3):2533â€“2543. [http://www.ncbi.nlm.nih.gov/pubmed/17202243] 10.1152/jn.01106.2006Hinrichs H, Noesselt T, Heinze HJ:

**Directed information flow: a model free measure to analyze causal interactions in event related EEG-MEG-experiments.***Human Brain Mapping*2008,**29**(2):193â€“206. [http://www.ncbi.nlm.nih.gov/pubmed/17390316] 10.1002/hbm.20382Vicente R, Wibral M, Lindner M, Pipa G:

**Transfer entropy--a model-free measure of effective connectivity for the neurosciences.***Journal of Computational Neuroscience*2011,**30:**45â€“67. [http://www.ncbi.nlm.nih.gov/pubmed/20706781] 10.1007/s10827-010-0262-3Katura T, Tanaka N, Obata A, Sato H, Maki A:

**Quantitative evaluation of interrelations between spontaneous low-frequency oscillations in cerebral hemodynamics and systemic cardiovascular dynamics.***NeuroImage*2006,**31**(4):1592â€“1600. [http://www.ncbi.nlm.nih.gov/pubmed/16549367] 10.1016/j.neuroimage.2006.02.010Porta A, Catai AM, Takahashi ACM, Magagnin V, Bassani T, Tobaldini E, van de Borne P, Montano N:

**Causal relationships between heart period and systolic arterial pressure during graded head-up tilt.***American Journal of Physiology - Regulatory, Integrative and Comparative Physiology*2011,**300:**R378-R386. 10.1152/ajpregu.00553.2010Faes L, Nollo G, Porta A:

**Information-based detection of nonlinear Granger causality in multivariate processes via a nonuniform embedding technique.***Physical Review E*2011,**83:**051112.Vejmelka M, Palus M:

**Inferring the directionality of coupling with conditional mutual information.***Physical Review E*2008,**77:**026214.Palus M, Stefanovska A:

**Direction of coupling from phases of interacting oscillators: an information-theoretic approach.***Physical Review E*2003,**67:**055201.Palus M, Vejmelka M:

**Directionality of coupling from bivariate time series: how to avoid false causalities and missed connections.***Physical Review E*2007,**75:**056211.Kaiser A, Schreiber T:

**Information transfer in continuous processes.***Physica D*2002,**166:**43â€“62. 10.1016/S0167-2789(02)00432-3Khan S, Bandyopadhyay S, Ganguly AR, Saigal S, Erickson DJ, Protopopescu V, Ostrouchov G:

**Relative performance of mutual information estimation methods for quantifying the dependence among short and noisy data.***Physical Review E*2007,**76:**026209.Darbellay AG, Vajda I:

**Estimation of the information by an adaptive partitioning of the observation space.***IEEE Transactions on Information Theory*1999,**45**(4):1315â€“1321. 10.1109/18.761290Fraser AM, Swinney HL:

**Independent coordinates for strange attractors from mutual information.***Physical Review A*1986,**33**(2):1134â€“1140. 10.1103/PhysRevA.33.1134Hudson JE:

**Signal processing using mutual information.***IEEE Signal Processing Magazine*2006,**23**(6):50â€“53.Edwards B, Sands S, Skuza E, Stockx E, Brodecky V, Wilkinson M, Berger P:

**Increased peripheral chemosensitivity via dopaminergic manipulation promotes respiratory instability in lambs.***Respiratory physiology & neurobiology*2008,**164**(3):419â€“428. 10.1016/j.resp.2008.09.003Bruce EN:

**Temporal variations in the pattern of breathing.***J Appl Physiol*1996,**80**(4):1079â€“1087.Xie A, Skatrud JB, Puleo DS, Rahko PS, Dempsey JA:

**Apnea-hypopnea threshold for CO2 in patients with congestive heart failure.***Am J Respir Crit Care Med*2002,**165**(9):1245â€“1250. 10.1164/rccm.200110-022OCBradley TD, Floras JS:

**Sleep apnea and heart failure: Part I: obstructive sleep apnea.***Circulation*2003,**107**(12):1671â€“1678. [http://dx.doi.org/10.1161/01.CIR.0000061757.12581.15] 10.1161/01.CIR.0000061757.12581.15Khoo MC, Kronauer RE, Strohl KP, Slutsky AS:

**Factors inducing periodic breathing in humans: a general model.***J Appl Physiol*1982,**53**(3):644â€“659.Younes M, Ostrowski M, Atkar R, Laprairie J, Siemens A, Hanly P:

**Mechanisms of breathing instability in patients with obstructive sleep apnea.***J Appl Physiol*2007,**103**(6):1929â€“1941. [http://dx.doi.org/10.1152/japplphysiol.00561.2007] 10.1152/japplphysiol.00561.2007Wellman A, Malhotra A, Jordan AS, Stevenson KE, Gautam S, White DP:

**Effect of oxygen in obstructive sleep apnea: role of loop gain.***Respir Physiol Neurobiol*2008,**162**(2):144â€“151. [http://dx.doi.org/10.1016/j.resp.2008.05.019] 10.1016/j.resp.2008.05.019Lahiri S, Maret K, Sherpa MG:

**Dependence of high altitude sleep apnea on ventilatory sensitivity to hypoxia.***Respir Physiol*1983,**52**(3):281â€“301. 10.1016/0034-5687(83)90086-5Solin P, Roebuck T, Johns DP, Walters EH, Naughton MT:

**Peripheral and central ventilatory responses in central sleep apnea with and without congestive heart failure.***Am J Respir Crit Care Med*2000,**162**(6):2194â€“2200.Francis DP, Willson K, Davies LC, Coats AJ, Piepoli M:

**Quantitative general theory for periodic breathing in chronic heart failure and its clinical implications.***Circulation*2000,**102**(18):2214â€“2221. 10.1161/01.CIR.102.18.2214Topor ZL, Johannson L, Kasprzyk J, Remmers JE:

**Dynamic ventilatory response to CO(2) in congestive heart failure patients with and without central sleep apnea.***J Appl Physiol*2001,**91:**408â€“416.Ponikowski P, Chua TP, Anker SD, Francis DP, Doehner W, Banasiak W, Poole-Wilson PA, Piepoli MF, Coats AJ:

**Peripheral chemoreceptor hypersensitivity: an ominous sign in patients with chronic heart failure.***Circulation*2001,**104**(5):544â€“549. 10.1161/hc3101.093699Lanfranchi PA, Braghiroli A, Bosimini E, Mazzuero G, Colombo R, Donner CF, Giannuzzi P:

**Prognostic value of nocturnal Cheyne-Stokes respiration in chronic heart failure.***Circulation*1999,**99**(11):1435â€“1440. 10.1161/01.CIR.99.11.1435Silverman BW

*Circulation*,*Volume 26 of*Monographs on Statistics and Applied Probability. Chapman and HallGoldberger AL, Amaral LA, Glass L, Hausdorff JM, Ivanov PC, Mark RG, Mietus JE, Moody GB, Peng CK, Stanley HE:

**PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals.***Circulation*2000,**101**(23):E215-E220. 10.1161/01.CIR.101.23.e215Martinez J, Olmos S:

**A robust T wave alternans detector based on the GLRT for Laplacian noise distribution.***Computers in Cardiology*2002,**2002:**677â€“680.Nemati S, Edwards BA, Sands SA, Berger PJ, Wellman A, Verghese GC, Malhotra A, Butler JP:

**Model-based characterization of ventilatory stability using spontaneous breathing.***Journal of Applied Physiology*2011,**111:**55â€“67. [http://jap.physiology.org/content/111/1/55.abstract] 10.1152/japplphysiol.01358.2010Ruddell BL, Kumar P:

**Ecohydrologic process networks: 1. identification.***Water Resources Research*2009,**45:**W03419.Fiamma MN, Straus C, Thibault S, Wysocki M, Baconnier P, Similowski T:

**Effects of hypercapnia and hypocapnia on ventilatory variability and the chaotic dynamics of ventilatory flow in humans.***Am J Physiol Regul Integr Comp Physiol*2007,**292**(5):R1985-R1993. 10.1152/ajpregu.00792.2006Porta A, Baselli G, Lombardi F, Montano N, Malliani A, Cerutti S:

**Conditional entropy approach for the evaluation of the coupling strength.***Biological Cybernetics*1999,**81:**119â€“129. 10.1007/s004220050549

## Acknowledgements

This research work was funded by the National Institutes of Health (NIH) (through grant numbers R01-EB001659, R01-HL73146, HL085188-01A2, HL090897-01A2, K24 HL093218-01A1, cooperative agreement U01-EB-008577, and training grant T32-HL07901) and American Heart Association (AHA) (grant 0840159N). Dr. Lee holds a Postdoctoral Fellowship funded by the Natural Sciences and Engineering Research Council of Canada (NSERC). Dr. Edwards is the recipient of the Thoracic Society of Australia and New Zealand/Allen and Hanburys Respiratory Research Fellowship. The content of this document is solely the responsibility of the authors and does not necessarily represent the official views of the NIH, AHA, or NSERC. The authors would also like to thank Professor George Verghese for his helpful comments.

## Author information

### Authors and Affiliations

### Corresponding author

## Additional information

### Competing interests

The authors declare that they have no competing interests.

### Authors' contributions

JL and SN conceived of the study, developed and implemented the D-V partitioning transfer entropy estimation algorithm, conducted the experiments, and wrote the entire manuscript. IS conceived of the study, contributed to the algorithm development, and wrote parts of the manuscript. BE supplied the lamb data and rigorously revised the manuscript. JB and AM thoroughly revised the manuscript.

## Authorsâ€™ original submitted files for images

Below are the links to the authorsâ€™ original submitted files for images.

## Rights and permissions

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

## About this article

### Cite this article

Lee, J., Nemati, S., Silva, I. *et al.* Transfer Entropy Estimation and Directional Coupling Change Detection in Biomedical Time Series.
*BioMed Eng OnLine* **11**, 19 (2012). https://doi.org/10.1186/1475-925X-11-19

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/1475-925X-11-19

### Keywords

- Coupling Strength
- Domperidone
- Kernel Density Estimation
- Conditional Entropy
- Transfer Entropy