Published: 30 September 2018

An algorithm based on the convergent cross mapping method for the detection of causality in uni-directionally connected chaotic systems

Kazimieras Pukenas1
1Lithuanian Sports University, Kaunas, Lithuania
Views 921
Reads 537
Downloads 1749

Abstract

In this paper, we present some improvements to the convergent cross mapping (CCM) algorithm for detecting causality in uni-directionally connected chaotic systems. The basic concept of the CCM algorithm is that the causal influence of system X on system Y appears as mapping of the neighbouring states in the reconstructed d-dimensional manifold, My, to the neighbouring states in the reconstructed d-dimensional manifold, Mx, and this effect is evaluated using the correlation coefficient between the estimated and observed values of Mx. We proposed a composite indicator of causality as the ratio between the correlation coefficient and the Shannon entropy of the distribution of the residuals between the estimated and observed values of Mx. Application of the proposed approach to four master-slave Rössler and Lorenz systems and real-world data showed that the new algorithm allowed a slight increase in capability to reveal the presence and direction of couplings.

1. Introduction

Quantification of the causal effects between simultaneously observed systems from the analysis of time series recordings is essential in many scientific fields, including economics, climatology, ecosystems, electrical activity of the brain, or cardiorespiratory relations. Estimating the interdependence between the observed variables provides valuable knowledge regarding the processes that generate time series [1]. The Granger causality method [2] is the most well-known and principal method for identifying directional interactions between variables from their time series, and many modifications and extensions of the Granger causality test has been developed. The Granger test focuses on determining whether one time series is useful in forecasting another. If useful, the first system causally affects the second system. The conventional Granger’s causality test is based on autoregressive models and is particularly useful in stochastic linearly interconnected systems [3]. However, its appropriateness of direct application to nonlinear systems depends on the specific problem to be analyzed [4-6]. Therefore, new approaches have been proposed, including nonlinear extensions of Granger’s causality [4], transfer entropy [7], conditional mutual information [8] and measures evaluating distances of conditioned neighbors in reconstructed state spaces [9-13], to name a few. In 2012, Sugihara et al. [5] introduced another method based on state space reconstruction. The method was called convergent cross-mapping (CCM) and involves evaluating distances between conditioned neighbours in reconstructed state spaces and tests for causation between the driver (“master”) system X and the driven (“slave”) system Y, by measuring the extent to which the historical states of reconstructed state space, MY, can reliably estimate states of reconstructed state space, MX. Similarity between points, Xn, and estimates, X^n, is evaluated by assessing their correlation. To infer the direction of coupling, the opposite direction must also be assessed. Then, the direction of coupling is inferred based on asymmetries emerging from the calculations of the two possible causal directions.

In this paper, we propose a simple improvement to the CCM method by introducing a composite parameter for inferring the direction of causation composed of two components: (1) the correlation coefficient between the cross-mapped and observed values of the reconstructed state space, and (2) Shannon entropy of the distribution of the residuals between the cross-mapped and observed values of the reconstructed state space.

2. Convergent cross mapping

CCM [5, 14] is a method for detecting causality between two systems represented by time series. CCM is based on Takens’ embedding theorem, exploiting the geometry of attractors of coupled dynamical systems and constructs a map between mutual neighborhoods in state spaces of the coupled dynamical systems under study.

Let X=xtt=1L, and Y=ytt=1L be two time series of finite length LN. To establish cross mapping from X to Y, first we reconstruct the attractor manifold MX as a set of E-dimensional vectors [15] xt=xt, xt-τ, xt-2τ, , xt-E-1τT for t=1+E-1τ to t=L, i.e., MX=xtt=1+E-1τL, where E is the embedding dimension, τ is the time delay, and T denotes the transpose of a real matrix. We find the E+1 nearest neighbors of xt in MX and denote their time indices (from the closest to the farthest) by t1, , tE+1. These indices will be used in the construction of the cross mapping of y^t for yt, t=1+E-1τ, ,L by:

1
y^t|MX=i=1E+1wiyti,

where wi=uij=1E+1uj, ui=exp-dxt, xtidxt, xt1 and dA, B is the Euclidean distance between vectors A and B. The cross mapping from Y to X is defined analogously. The skill of cross-map estimates is indicated by the correlation coefficient ρ between ytt=1+E-1τL and y^t|MXt=1+E-1τL (or between xtt=1+E-1τL and x^t|MYt=1+E-1τL, respectively). Sugihara et al. [5] declare in the supplement: “If X and Y are dynamically coupled, the nearest neighbors of MX should identify the time indices of corresponding nearest neighbors on MY. As L increases, the attractor manifold fills in and the distances among the E+1 nearest neighbors shrinks. Consequently, y^t|MX should converge to yt and x^t|MY should converge to xt. In this way, we use convergence of the nearest neighbors to test whether there is a correspondence between states on MX and states on MY. Cross-mapping that converges in only one direction is the criterion for unidirectional causality. One of the fundamental concepts of CCM is that when causation is unilateral, XY (X drives Y), then it is possible to estimate X from Y, but not Y from X. It follows that a high value of the correlation coefficient between xtt=1+E-1τL and x^t|MYt=1+E-1τL comparing to the value of the correlation coefficient between ytt=1+E-1τL and y^t|MXt=1+E-1τL indicates that system X drives system Y. This runs counter to Granger’s intuitive scheme. For more details on the CCM method see [5, 14, 16, 17].

3. Description of the algorithm

The simulation results obtained from the CCM method applied to uni-directionally coupled non-identical oscillators (X drives Y) shows that probability distribution of the residuals taken as the Euclidean distance RMX,MX^|MY between manifold MX=xtt=1+E-1τL and manifold MX^|MY=x^tt=1+E-1τL obtained by cross mapping using a manifold MY, and the Euclidean distance RMY,MY^|MX between manifold MY=ytt=1+E-1τL and manifold MY^|MX=y^tt=1+E-1τL obtained by cross mapping using a manifold MX, differs. More specifically, the probability distribution of RMX,MX^|MY has a taller, narrower shape (Fig. 1). It is therefore reasonable to combine the Shannon entropy of the probability distributions of RMX,MX^|MY or RMY,MY^|MX, and the corresponding correlation coefficient to enhance the inference of the direction of instantaneous causality. Furthermore, we compute the relationship between vectors of the manifold MX and its cross-mapped estimate MX^|MY and between vectors of the manifold MY and its cross-mapped estimate MY^|MX, by determining the 2D correlation coefficient, and introduce interdependence measures CMEX|Y and CMEY|X as:

2
CMEX|Y=ρMXEnRX,
3
CMEY|X=ρMYEnRY,

where ρMX is the 2D correlation coefficient between vectors of the manifold MX and its cross-mapped estimate MX^|MY, ρMY is the 2D correlation coefficient between vectors of the manifold MY and its cross-mapped estimate MY^|MX, EnRX is the Shannon entropy of the probability distribution of RMX,MX^|MY, and EnRY is the Shannon entropy of the probability distribution of RMY,MY^|MX.

Fig. 1Example of the probability distribution of the Euclidean distances RMX,MX^|MY and RMY,MY^|MX

Example of the probability distribution of  the Euclidean distances RMX,MX^|MY and RMY,MY^|MX

4. Results

To demonstrate the effectiveness of the cross-mapping evaluated by the proposed interdependence measures (CME), we compared it with the cross-mapping evaluated using the correlation coefficient (CM) on four test examples of uni-directionally connected chaotic Rössler and Lorenz-type systems that were coupled with variable coupling strengths. In the examples used in this paper, the possibility of correlation instead of causation was excluded, and therefore the aspect of convergence was not used. The first and second datasets originated from the coupling of two Rössler systems [17], which were coupled via a one-way driving relationship between variables x1 of the driving system and variable y1 of the responsive system:

4
x˙1=-ω1ix2-x3,x˙2=ω1ix1+0.15x2,x˙3=0.2+x3x1-10,y˙1=-ω2iy2-y3+cx1-y1,y˙2=ω2iy1+0.15y2,y˙3=0.2+y3y1-10,

where ω11= 1.015, ω21= 0.985 and ω12= 1.075, ω22= 1.0. The coupling strength c was chosen from 0 to 0:25 with the step 0:01. The data were generated by Runge-Kutta integration with a step size of 0.1. The first 2000 data points were discarded. The total number of obtained data was 14000 and this resulted in around 60 samples per one average orbit around the attractor. The causal relationship between the two systems was calculated using 7000 time-delayed vectors of x1 and y1 with a time delay equal to 3 and embedding dimension of 7. Eight nearest neighbours were used. All data processing and analyses were performed using Matlab software (MathWorks, Natick, MA) by adopting the ideas from reference [18], among others. Consequently, we denoted the direction from X to Y as X|Y and the direction from Y to X as Y|X. Taking, for example, the measure CM: if X drives Y, the measure CMX|Y is expected to be higher than CMY|X. As we can see from Fig. 2, both CME and CM measures show that X drives Y until the onset of synchronization. The effect of the entropy contribution in the Y|X direction is little, but is considerable in the X|Y direction, especially at moderate and high coupling strengths. As a result, the gap between CMEX|Y and CMEY|X becomes larger, compared to the gap between CMX|Y and CMY|X, i.e. the direction of causation can be determined more reliable. Furthermore, in the case of the coupled Rössler systems with ω1= 1.075, ω2= 1.0, the independent-samples t-test showed that this difference between gaps across all coupling strengths is near to statistical significance (p= 0.0866).

Fig. 2Measures CME and CM computed for two uni-directionally coupled Rössler systems: a) ω1= 1.015, ω2=0 .985, b) ω1= 1.075, ω2= 1.0

Measures CME and CM computed for two uni-directionally coupled Rössler systems:  a) ω1= 1.015, ω2=0 .985, b) ω1= 1.075, ω2= 1.0

a)

Measures CME and CM computed for two uni-directionally coupled Rössler systems:  a) ω1= 1.015, ω2=0 .985, b) ω1= 1.075, ω2= 1.0

b)

The third and fourth datasets originated from the coupling of two Lorenz systems [17], which are coupled via one-way driving relationship between variables x1 of the driving system and variable y1 of the responsive system:

5
x˙1=10-x1+x2,x˙2=ω1ix1-x2-x1x3,x˙3=x1x2-8/3x3,y˙1=10-y1+y2+cx1-y1,y˙2=ω2iy1-y2-y1y3,y˙3=y1y2-8/3y3,

where ω11= 28,5, ω21= 27.5 and ω12= 39, ω22= 35. The coupling strength c was chosen from 0 to 11.6 with a step size 0:4. The data were generated using the Matlab solver of ordinary differential equations ode45. The first 2000 data points were discarded. The total number of obtained data was 14000 and the causal relationship between the two systems was calculated using 7000 time-delayed vectors of x1 and y1, with a time delay equal to 3 and embedding dimension of 7. As we can see from Fig. 3, the results are similar to the coupled Rössler systems, although the effect of entropy is greater.

Fig. 3Measures CME and CM computed for two uni-directionally coupled Lorenz systems: a) ω1= 28.5, ω2= 27.5, b) ω1= 39, ω2= 35

Measures CME and CM computed for two uni-directionally coupled Lorenz systems:  a) ω1= 28.5, ω2= 27.5, b) ω1= 39, ω2= 35

a)

Measures CME and CM computed for two uni-directionally coupled Lorenz systems:  a) ω1= 28.5, ω2= 27.5, b) ω1= 39, ω2= 35

b)

To demonstrate the performance of the proposed algorithm on real-world data, we applied the algorithm for the quantification of coupling between respiration and heart rate variability (HRV) because is well known that HRV is strongly related to respiration. For this purpose, we used data from the Fantasia database (https://physionet.org/physiobank/database/fantasia/). The data that are free of artifacts were acquired from 12 young subjects. The R-peaks of the electrocardiogram (ECG) signal were detected by means of a threshold method and the RR time series were obtained. In this study, we removed the mean of every RR time series either as of every respiration signal so that they oscillate around zero. The independent-samples t-test showed a statistically significant (p= 0.0097) difference between CMX|Y and CMY|X and much more statistically significant (p= 0.000454) difference between CMEX|Y and CMEY|X.

5. Conclusions

A simulation involving examples of uni-directionally connected chaotic of Rössler and Lorenz-type systems and real-world time series shows that the proposed substitutions in the CCM method reinforce the asymmetries between the calculations of the two possible causal directions and thus improve determination of the presence and direction of coupling, and also detection of the onset of full synchronization in uni-directionally connected chaotic systems.

References

  • Papana A, Kyrtsou C., Kugiumtzis D., Diks C. Simulation study of direct causality measures in multivariate time series. Entropy, Vol. 15, 2013, p. 2635-2661.
  • Granger C. W. J. Investigating causal relations by econometric models and cross-spectral methods. Econometrica, Vol. 37, 1969, p. 424-438.
  • Krakovska A., Hanzely F. Testing for causality in reconstructed state spaces by an optimized mixed prediction method. Physical Review E, Vol. 94, 2016, p. 052203.
  • Chen Y., Rangarajan G., Feng J., Ding M. Analyzing multiple nonlinear time series with extended Granger causality. Physics Letters A, Vol. 324, 2004, p. 26-35.
  • Sugihara G., May R., Ye H., Hsieh C.-H., Deyle E., Fogarty M., Munch S. Detecting causality in complex ecosystems. Science, Vol. 338, 2012, p. 496-500.
  • Lusch B., Maia P. D., Kutz J. N. Inferring connectivity in networked dynamical systems: challenges using Granger causality. Physical. Review E, Vol. 94, 2016, p. 032220.
  • Schreiber T. Measuring information transfer. Physical Review Letters, Vol. 85, 2000, p. 461-464.
  • Paluš M., Vejmelka M. Directionality of coupling from bivariate time series: how to avoid false causalities and missed connections. Physical Review E, Vol. 75, 2007, p. 056211.
  • Arnhold J., Grassberger P., Lehnertz K., Elger C. E. A robust method for detecting interdependences: application to intracranially recorded EEG. Physica D, Vol. 134, Issue 4, 1999, p. 419-430.
  • Quiroga R. Q., Kraskov A., Kreuz T., Grassberger P. Performance of different synchronization measures in real data: a case study on electroencephalographic signals. Physical Review E, Vol. 65, 2002, p. 041903.
  • Andrzejak Kraskov R. G. A., Stögbauer H., Mormann F., Kreuz T. Bivariate surrogate techniques: Necessity, strengths, and caveats. Physical Review E, Vol. 68, 2003, p. 066202.
  • Smirnov D. A., Andrzejak R. G. Detection of weak directional coupling: phase-dynamics approach versus state-space approach. Physical Review E, Vol. 71, 2005, p. 036207.
  • Chicharro D., Andrzejak R. G. Reliable detection of directional couplings using rank statistics. Physical Review E, Vol. 80, 2009, p. 026217.
  • Coufal D., Jakubík J., Jajcay N., Hlinka J., Krakovská A., Paluš M. Detection of coupling delay: a problem not yet solved. Chaos, Vol. 27, 2017, p. 083109.
  • Kantz H., Schreiber T. Nonlinear Time Series Analysis. Cambridge University Press, Cambridge, 2004.
  • Ye H., Deyle E. R., Gilarranz L. J., Sugihara G. Distinguishing time-delayed causal interactions using convergent cross mapping. Scientific Reports, Vol. 5, 2015, p. 14750.
  • Krakovská A., Jakubík J., Budáčová H., Holecyová M. Causality Studied in Reconstructed State Space. Examples of uni-directionally connected chaotic systems. 2016, https://arxiv.org/abs/1511.00505.
  • Jakubik J. Convergent Cross Mapping. Version 1.3, http://www.mathworks.com/matlabcentral/ fileexchange/52964-convergent-cross-mapping.

Cited by

Medical Image Understanding and Analysis
Suhita Karmakar | Dipayan Dewan | Lidia Ghosh | Abir Chowdhury | Amit Konar | Atulya K. Nagar
(2021)

About this article

Received
13 April 2018
Accepted
29 May 2018
Published
30 September 2018
Keywords
causality
synchronization
unidirectional coupling
cross-mapping
phase space reconstruction
Shannon entropy