This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Ordinal Synchronization: Using ordinal patterns to capture interdependencies between time series

I. Echegoyen V. Vera-Ávila R. Sevilla-Escoboza J.H. Martínez J.M. Buldú Laboratory of Biological Networks, Centre for Biomedical Technology. Universidad Politécnica de Madrid, Spain Complex Systems Group & G.I.S.C., Universidad Rey Juan Carlos, Móstoles, Spain Centro Universitario de Los Lagos, Universidad de Guadalajara, Lagos de Moreno, Mexico INSERM-UM1127, Sorbonne Université, ICM-Hôpital Pitié Salpêtrière, Paris, France
Abstract

We introduce Ordinal Synchronization (OSOS) as a new measure to quantify synchronization between dynamical systems. OSOS is calculated from the extraction of the ordinal patterns related to two time series, their transformation into DD-dimensional ordinal vectors and the adequate quantification of their alignment. OSOS provides a fast and robust-to noise tool to assess synchronization without any implicit assumption about the distribution of data sets nor their dynamical properties, capturing in-phase and anti-phase synchronization. Furthermore, varying the length of the ordinal vectors required to compute OSOS it is possible to detect synchronization at different time scales. We test the performance of OSOS with data sets coming from unidirectionally coupled electronic Lorenz oscillators and brain imaging datasets obtained from magnetoencephalographic recordings, comparing the performance of OSOS with other classical metrics that quantify synchronization between dynamical systems.

keywords:
Synchronization , ordinal patterns , in-phase synchronization , anti-phase synchronization , nonlinear electronic circuits , brain imaging data sets.
journal: Chaos, Solitons & Fractalst1t1footnotetext: I. Echegoyen would like to thank the Foundation Tatiana Pérez de Guzmán el Bueno for financially supporting this research. R.S.E. acknowledges support from Consejo Nacional de Ciencia y Tecnología call SEP-CONACYT/CB-2016-01, grant number 285909. J.M.B. is supported by Spanish Ministry of Economy and Competitiveness under Projects FIS2013-41057-P and FIS2017-84151-P. J.H.M. acknowledges M. Chavez for his valuable comments.

Since the seminal work of Huygens about the coordinated motion of two pendulum clocks (refereed to as “an odd kind of sympathy”) [1], the study of synchronization in real systems has been one of the major research lines in nonlinear dynamics. From fireflies to neurons, synchronization has been reported in a diversity of social (e.g., human movement or clapping) [2, 3], biological (e.g., brain regions or cardiac tissue) [4, 5] and technological systems (e.g., wireless communications or power grids) [6, 7], being in many cases a fundamental process for the functioning of the underlying system. However, despite being an ubiquitous phenomenon, the detection and quantification of synchronization can be a difficult task. The main reasons are the diversity of kinds of synchronization [8], the complexity of interaction between dynamical systems [9], the existence of unavoidable external perturbations [10] or the inability of observing all variables of a real system [11], just to name a few.

As a consequence, there is not a unique way of quantifying the amount of synchronization in real time series and a series of metrics have been proposed with this purpose. As a rough approximation, these metrics can be classified into three main groups: (i) linear, (ii) nonlinear and (iii) spectral metrics. While linear metrics, such as the Pearson correlation coefficient, are the most straightforward to be calculated and less time consuming, they suppose the existence of a linear correlation between time series, an assumption that is not fulfilled in the majority of real cases. On the other hand, nonlinear metrics asume a certain nonlinear coupling function fnf_{n} between a variable XX and a variable YY, such as X=fn(Y)X=f_{n}(Y). However the estimation of the nonlinear function renders impossible in the majority of cases and certain assumptions have to be assumed for quantifying synchronization. Measures such as the mutual information or the phase locking value are examples of nonlinear metrics, the former assuming a certain statistical interdependency between signals and the latter considering only a phase relation. Finally, spectral metrics, such as the coherence or the imaginary part of coherence, translate the problem to the spectral domain, analyzing the relation between the spectra obtained from the original time series assuming linear/nonlinear relations (see [12] for a thorough review about metrics quantifying synchronization in real data sets).

In the current paper we are concerned about using ordinal patterns, a symbolic representation of temporal data sets, to define a new metric that is able to reveal the synchronization between time series. Bahraminasab et. al. [13] used a symbolic dynamics approach to design a directionality index parameter. Transforming the increment between successive points within a times series into ordinal patterns, authors calculated the mutual information between a process X1X_{1} at time tt and a process X2X_{2} at time t+τt+\tau and next obtained the directionality index as defined in [14]. Applying this methodology to respiratory and cardiac recordings it is possible to quantify how respiratory oscillations have more influence on cardiac dynamics than vice-versa [13]. More recently, Li et al. used a similar indicator to evaluate the directionality of the coupling in time series consisting of spikes [15]. Using the Izhikevich neuron model [16], authors showed how that methodology was robust for weak coupling strengths, in the presence of noise or even with multiple pathways of coupling between neurons. More recently, Rosário et. al. [17] used the ordinal patterns observed in EEG datasets, also known as “motifs” [18], to construct time varying networks and analysed their evolution along time and the properties of the averaged functional network. Specifically, the amount of synchronization between a pair of recorded electrodes of an EEG was obtained by evaluating the number of ordinal patterns co-ocurring at the same time but also at a given lag λ=1\lambda=1 time steps. Using both positive and negative values of λ\lambda authors were able to quantify the direction of the interaction between the two time series, i.e., the causality, to further construct temporal time networks. Next, they showed how the resulting time varying functional networks were able to identify those brain regions related to information processing and found differences between healthy individuals and patients suffering from chronic pain [17].

In this paper, we also propose the use of symbolic dynamics to evaluate the level of synchronization between time series. However, our methodology consists in a measure of synchronization that does not take into account the existence of a delay time between time series, despite further adaptation to this case is also possible (see Section Conclusions). As in the case of [13, 18, 17], we take advantage of the transformation of a time series into a concatenated series of DD-dimensional ordinal patterns [19] that allow us to quantify the amount of synchronization between two (or more) symbols sequences. The main advantage of our methodology is that it takes into account both the in-phase and anti-phase synchronization of two dynamical systems, the latter being disregarded in the aforementioned proposals based on ordinal patterns.

We have calculated the OSOS of two kind of data sets: (i) unidirectionally coupled Lorenz electronic systems and (ii) magnetoencephalographic (MEG) recordings measuring the activity of 241241 sensors placed at the scalp of an individual during resting state. Next, we compared the amount of synchronization computed by OS with respect to those obtained from classical metrics like phase locking value (PLV), mutual information (MI), spectral coherence (SC) and Pearson correlation (r).

1 Materials and Methods

1.1 Defining Ordinal Synchronization

To compute the (OS) between two time series XX and YY, we first extract their DD-dimensional ordinal patterns [19]. In this way, we choose a length D and divide both time series of length M into L=M/DL=M/D equal segments. Next, we obtain the order of the values included inside each segment, also called the ordinal patterns: l

Xt={x1,x2,,xD}\displaystyle X_{t}=\{x_{1},x_{2},\ldots,x_{D}\} Vt={v1,v2,,vD}\displaystyle\mapsto V_{t}=\{v_{1},v_{2},...,v_{D}\} (1)
Yt={y1,y2,,yD}\displaystyle Y_{t}=\{y_{1},y_{2},\ldots,y_{D}\} Wt={w1,w2,,wD}\displaystyle\mapsto W_{t}=\{w_{1},w_{2},...,w_{D}\} (2)

where VtV_{t} and WtW_{t} are the ordinal vectors inside the segment given by {t,t+1,,t+D1}\{t,t+1,...,t+D-1\}, elements refer to the ordinal position of the values in XtX_{t} and YtY_{t}, respectively. Note that the elements in VtV_{t} and WtW_{t} are natural numbers ranging from 0 to D1D-1. The higher the value in the time series, the higher the corresponding element in the ordinal vector. Following the example depicted in Fig. 1, where D=4D=4, we obtain:

Xt={1.22,0.44,0.91,0.63}\displaystyle X_{t}=\{-1.22,0.44,0.91,0.63\} Vt={0,1,3,2}\displaystyle\mapsto V_{t}=\{0,1,3,2\} (3)
Yt={1.34,0.12,0.78,0.57}\displaystyle Y_{t}=\{1.34,0.12,0.78,0.57\} Wt={3,0,2,1}\displaystyle\mapsto W_{t}=\{3,0,2,1\} (4)

Then, we take the euclidean norm of each ordinal vector.

Vt=v12+v22++vD2=02+12++(D1)2\displaystyle||V_{t}||=\sqrt{v_{1}^{2}+v_{2}^{2}+\ldots+v_{D}^{2}}=\sqrt{0^{2}+1^{2}+\ldots+{(D-1)}^{2}} (5)

and we call VtN=Vt/VtV^{N}_{t}=V_{t}/||V_{t}|| and WtN=Wt/WtW^{N}_{t}=W_{t}/||W_{t}|| the normalized vectors. Note that this step only depends on the length D.

Refer to caption
Figure 1: Qualitative example of ordinal vectors extraction from two time series. Here D=4D=4 is the length of the ordinal patterns. From each time series, an ordinal vector containing the desired number of samples is obtained by ranking its DD values at time tt, inside the vector.

Now, we define the raw value of the instantaneous ordinal synchronization at time tt (IOStrawIOS^{raw}_{t}) as the dot product between both ordinal ordinal vectors IOStraw=i=1Dvi,t·wi,tIOS^{raw}_{t}=\sum_{i=1}^{D}v_{i,t}\textperiodcentered w_{i,t} (i.e., VtNWtNV^{N}_{t}\cdot W^{N}_{t}). For a more intuitive interpretation, we linearly rescale the value of IOStrawIOS^{raw}_{t} to be bounded between 1-1 and 11:

IOSt=2·(IOStrawmin1min0.5)IOS_{t}=2\textperiodcentered\left(\frac{IOS^{raw}_{t}-min}{1-min}-0.5\right) (6)

where minmin is the minimum possible value of the scalar product between two ordinal vectors. Note that, since the elements of the ordinal vectors are always positive and have only one component equal to zero, the lowest possible scalar product between VtV_{t} and WtW_{t} is obtained when the order of the elements of vector VtV_{t} is inverted in WtW_{t}. In our example:

min=0(4)+1(3)+2(2)+3(1)+4(0)02+12+22+32+42min=\frac{0(4)+1(3)+2(2)+3(1)+4(0)}{0^{2}+1^{2}+2^{2}+3^{2}+4^{2}} (7)

In general, for any vector of length D:

min=0(D1)+1(D2)++(D2)1+(D1)002+12++(D1)min=\frac{0(D-1)+1(D-2)+\ldots+(D-2)1+(D-1)0}{0^{2}+1^{2}+\ldots+{(D-1)}} (8)

Following the normalization in 6), we ensure that two ordinal vectors that follow opposite evolutions will unambiguously lead to a value of IOSt=1IOS_{t}=-1, and two vectors whose elements have the same order will have an IOSt=1IOS_{t}=1. Being L=M/DL=M/D the total number of ordinal vectors in time series of MM points, the final value of the ordinal synchronization OS{X,Y}OS\{X,Y\} for a given pair of time series XX and YY is obtained averaging the instantaneous values of IOStIOS_{t} along the whole time series:

OS{X,Y}=IOStOS\{X,Y\}=\langle IOS_{t}\rangle (9)

Since we consider the IOStIOS_{t} of consecutive (i.e., non-overlapping) time windows, the value of tt in Eq. 9 is given by the expression t=1+iDt=1+iD, with ii being a natural number bounded by 0iL10\leq i\leq L-1. Note that it is also possible to define a sliding OSOS just by increasing tt in one unit for every IOStIOS_{t} instead of considering consecutive windows.

1.2 Experimental results: Electronic Lorenz Systems

We analyzed the transition to the synchronized regime of two coupled Lorenz oscillators [20]. We implemented an electronic version of the Lorenz system, whose equations are detailed in Appendix B. Two Lorenz circuits are coupled unidirectionally in a master-slave configuration (see Fig. 2) with a coupling strength κ\kappa that can be modified. Our experiments include two conditions: in the first one, κ\kappa is modified in the absence of external noise; in the second one, κ\kappa varies in presence of Gaussian noise with band selection. The (AI0-AI3) input ports of a data acquisition (DAQ) card are used for sampling the xx and zz variables of each circuit, while the output ports AO0 and AO1 generate two different noise signals (ξ1\xi_{1}, ξ2\xi_{2}) that perturb the dynamics of the Lorenz circuits through variable xx of each circuit. In this way, an external source of noise can be introduced to check the robustness of the experiments. The circuit responsible of the coupling strength κ\kappa is controlled by a digital potentiometer XDCP, which is adjusted by digital pulses from ports P00 and P01. Noisy signals were designed in LabVIEW, using a Gaussian White Noise library [21] that generates two different Gaussian-distributed pseudorandom sequences bounded between [-1 1]. All the experimental process is controlled by a virtual interface in LabVIEW 2016 (PC).

Refer to caption
Figure 2: Schematic representation of Lorenz systems in a master-slave configuration. Signals are measured through a DAQ card (Ports AI0-AI3) and stored in a PC. Digital output (P00-P01) ports and XDCP control the value of coupling strength κ\kappa. Analog output ports (AO0-AO1) introduce the external noise signals ξ1\xi_{1} and ξ2\xi_{2} perturbing the x1x_{1} master (M) and x2x_{2} slave (S) variables, respectively.

The experiment works in the following way: First, κ\kappa is set to zero and digital pulses (P00 and P01) are sent to the digital potentiometer until the highest value of κ\kappa is reached. Second, variables xx and zz of the circuits are acquired by the analog ports (AI0-AI3) in order to compute the synchronization metrics. Initially, we have obtained all results for ξ1=ξ2=0\xi_{1}=\xi_{2}=0, i.e., in the absence of external noise, and then, after a moderate amount of noise is introduced, all synchronization metrics are calculated again (See Appendix C). Every signal, with or without noise, has a length of 30000 samples.

1.3 Applications to magnetoencephalographic recordings

We have checked the performance of the OSOS in the context of neuroscientific datasets. Specifically, we quantified the level of synchronization between pairs of channels of MEG recordings. Data sets have been obtained from the Human Connectome Project (for details, see [22] and https://www.humanconnectome.org). The experimental data sets consist of 3030 MEG recordings of an individual during resting state for a period of approximately 22 minutes each. During the scan, the subject were supine and maintained fixation on a projected red crosshair on a dark background. Brain activity was scanned with 241 magnetometers on a whole head MAGNES 36003600 (4D Neuroimaging, San Diego, CA, USA) system housed in a magnetically shielded room. The root-mean-squared noise of the magnetometers is about 55 fT/sqrt (HzHz) on average in the white-noise range (above 2 HzHz). Data was recorded at sampling rate of fs508.63f_{s}\approx 508.63 HzHz. Five current coils attached to the subject, in combination with structural-imaging data and head-surface tracings, were used to localize the brain in geometric relation to the magnetometers and to monitor and partially correct for head movement during the MEG acquisition. Artifacts, bad channels, and bad segments were identified and removed from the MEG recordings, which were processed with a pipeline based on independent component analysis to identify and clean environmental and subject’s artifacts [22].

2 Results

2.1 Nonlinear electronic circuits

In order to assess the validity of OSOS, we have explored its performance for different values of DD, from 3 to the full length of the time series under evaluation. Since it is the first time OSOS is used, we have compared it to classical measures of correlation, namely Pearson correlation coefficient (rr), spectral coherence (SCSC), phase locking value (PLVPLV) and mutual information (MIMI). We have used two kinds of data sets to validate OSOS, on the one hand, experimental time series from nonlinear electronic circuits, and on the other hand, MEG recordings.

First, we take advantage of the ability of controlling the coupling strength between electronic circuits and investigate how OSOS changes as two dynamical systems smoothly vary their level of synchronization from being unsynchronized to completely synchronized. Specifically, two electronic Lorenz systems are unidirectionally coupled with a parameter κ\kappa controlling their coupling strength (see Appendix B for details). Initially, we do not perturb the oscillators with external noise (see Appendix C for the case of including external noisy signals). However, we can not avoid the intrinsic noise of the electronic circuits together with the tolerance of the electronic components (between 5 % and 10 %). Figure 3 shows how the value of OSOS changes as the coupling strength κ\kappa is increased from zero. Since the value of OSOS depends on the length of the ordinal vectors, we show the results for three different values: D=3D=3 (Fig. 3A), D=500D=500 (Fig. 3B) and D=1000D=1000 (Fig. 3C). Note that, by increasing the length of the vectors, we are obtaining the amount of synchronization at different time scales. Together with OSOS, we plot the values of the rest of synchronization metrics in (A), (B) and (C), which remain unaltered in the three plots (since they do not depend on DD).

Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 3: Synchronization against coupling strength κ\kappa as measured with PLVPLV (red stars), SCSC (yellow crosses), MIMI (light blue circles), rr (purple squares). OSOS (triangles) is plotted for D=3D=3 (A) (black downward-pointing), D=500D=500 (B) (turquoise right-pointing) and D=1000D=1000 (C) (green upward-pointing). For comparison purposes, plot (D) shows OSOS against κ\kappa for different vector lengths, D=3D=3, D=500D=500 and D=1000D=1000.

In all cases, we observe that OSOS increases for low to moderate values of κ\kappa and remains at a high value once a certain threshold is reached. This behaviour is similar to the rest of the synchronization metrics. However, both MIMI and SCSC seem to saturate at values of κ\kappa higher than rr, PLVPLV and OSOS, which seem to reach a plateau around κ=40\kappa=40. Figure 3D shows the comparison of OSOS for the three different values of DD. Here, we can also observe how at D=3D=3, OSOS has a different qualitative behaviour from D=500D=500 and D=1000D=1000, since it stays around 0.9 and does not reach 1 as in the windows of longer lengths. The reason is the existence of intrinsic noise of the electronic circuits, that affects much more the alignment of the ordinal vectors of shorter lengths than those with higher dimensions.

Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 4: Panel (A) shows the average correlation (ρ\rho) between each synchronization measure and OS depending on the vector length DD. Panels (B)-(D) show the correlation between OSOS and all other synchronization measures varying the coupling strength (from 0 to 100), for D=3D=3 (B), D=500D=500 (C) and D=1000D=1000 (D).Following the same notation as in Fig. 3, synchronization measures are (MI; blue), (r; purple), (SC; yellow) and (PLV; red). The red line corresponds to y=xy=x.

Figure 4 shows the average correlation (ρ\rho) between each D-dependent OSOS and the rest of synchronization metrics with zero noise. Note that correlations are higher than 0.920.92 in all cases, although it seems to be certain vector lengths that maximize these correlations. Also note that correlations with PLVPLV and rr are the highest and, in all cases, very close to 1. At the same time, MIMI and SCSC show lower correlations that, in turn, seem to be more dependent on the value of the vector length DD (see Fig. 4A).

We can investigate how OSOS is related to the rest of the synchronization metrics in more detail by setting the length of the ordinal vectors to a given value (33, 500500 or 10001000 in this case) and observe the influence of the level of synchronization (Fig. 4B, C and D). For any of the three selected lengths, OSOS shows a linear relation with PLVPLV and rr, especially at values of OSOS higher than 0.50.5. However, the relation with SCSC and MIMI seems to be nonlinear in all cases. Interestingly, for low levels of synchronization, OSOS increases much faster than these two latter metrics. While SCSC saturates around 0.80.8, MIMI finally increases faster than OSOS only for high values of synchronization, eventually reaching the value of OSOS around 1. Also note how, in the case of D=3D=3 (Fig. 4B), the intrinsic noise of the electronic circuits prevents OSOS to reach the value of one. This behaviour can be observed even clearer in the case of adding more noise into the system, as shown in Appendix C.

2.2 MEG signals

The second application is the evaluation of the level of synchronization between the 241 sensors measuring the activity of an individual during resting state. Concretely, we have 30 recordings of 2 minutes each. In this case, we can not control the amount of coupling between sensors but, alternatively, we have a diversity of levels of synchronizations between all possible pairs of sensors. Figure 5 shows how the correlations between OSOS and the rest of the metrics change depending on DD. As we can observe, correlations are high in all cases except for SC, but this one saturates around the same DD as the other synchronizations does.

As in the case of the electronic Lorenz oscillators, tuning the value of DD allows to obtain values of OSOS closer, or more correlated, to other metrics. In fact, two different regions are clearly observed: (i) for values of D20D\leq 20 the correlation of OSOS with PLV, r, and MI increases with DD, while (ii) for D>20D>20 correlation saturates around the highest value, being rr the metric with the highest correlation. Interestingly, the behaviour of the SC goes in the opposite direction, decreasing for higher values of DD.

Refer to caption
Figure 5: Correlation ρ\rho between different synchronization metrics and OSOS as a function of the length DD of the ordinal vectors. As in previous figures: PLV (red), SC (yellow), MI (blue), rr (purple).

In order to gain insights about how the behaviour of OSOS depends on the level of synchronization and the length DD, we plot three different cases in Figure 6. In (A), we show the time series of two highly-correlated sensors, with their corresponding OSOS value depending on DD (Fig. 6D). Plot (B) and (C) show the cases of two uncorrelated and negatively correlated sensors, respectively, with their values of OSOS (Fig. 6E and F). Note that for the positive (negative) case, correlations tend to stabilize as DD grows, indicating the existence of a certain temporal scale at which synchronization is increased (reduced). Also note that, when time series are not correlated, this pattern is not that clear, and OSOS values remain low for any value of DD.

Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 6: Example of the MEG time series and their corresponding OSOS vs DD for three different situations: two sensors with high correlation (A and D), no correlation (B and E) and anti-correlated (C and F). Upper panel shows part of the raw signals recorded at the sensors while bottom panel shows OSOS depending on the length DD.

We had analyzed the relation of OSOS with the rest of the metrics according to the level of synchronization. Figure 7 shows a panel of plots capturing the correlations between OSOS and all other synchronization metrics for the MEG signals. Left plots show the case of D=3D=3, middle plots show D=500D=500 and right plots show D=1000D=1000. Different conclusions can be drawn depending on the synchronization metric OSOS is compared to. In the case of MIMI (first row), the existence of a nonlinear correlation between both metrics arises. However, this correlation decreases with the length of the ordinal vectors, becoming rather noisy for D=3D=3. This behaviour is induced by the intrinsic noise of the MEG signals that, as in the case of electronic circuits, affects the value of OSOS when short lengths of the ordinal vectors are considered. Also note that MIMI is not able to distinguish positive from negative correlations between time series, a fact that makes OSOS an interesting metric when both kind of synchronizations are expected. In our case, for example, despite the highest values of OSOS are close to 11, the lowest ones arrive to 0.35-0.35, indicating the existence of anti-correlated dynamics between certain pairs of sensors. A similar behaviour is reported in the case of the comparison with PLVPLV (second row). Again, a nonlinear relation exists between both metrics, which is rather noisy at low values of the ordinal vector lengths (D=3D=3). PLVPLV has also the same limitations as MIMI, since it does not differentiate between positive and negative correlations. Interestingly, the relation with SCSC is different from the two previous metrics (third row). Despite a nonlinear correlation between OSOS and SCSC seems to be present in the plots, this correlation is deteriorated with the increase of DD.

Finally, OSOS shows a clear linear correlation with rr (bottom row), which, as in the case of MIMI and PLVPLV becomes noisy for low values of DD. Note that, the loss of correlation for low values of DD is indicating that, at short time scales, OSOS is capturing a different pattern of synchronization than at large scales. This is an interesting feature of OSOS which suggests that, when using it as a metric to evaluate synchronization between signals, it is appealing to carry out an analysis depending on the vector length in order to reveal the existence of different levels of synchronization at different time scales.

Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 7: Correlation between OSOS and other synchronization metrics in MEG data sets: MIMI (upper row), PLVPLV (second row), SCSC (third row) and rr (bottom row). Each column corresponds to an OSOS obtained with different lengths DD of the ordinal vectors: D=3D=3 (left column), D=500D=500 (middle column) and D=1000D=1000 (right column).

3 Conclusions

We have introduced the Ordinal Synchronization (OSOS), a new metric to evaluate the level of synchronization between time series by means of a projection into ordinal patterns. We have checked the performance of OS with two kinds of experimental data sets obtained from: (i) unidirectionally coupled nonlinear electronic circuits and (ii) 30 magnetoencephalographic recordings containing the signals of 241 channels. There are several advantages of using OSOS. First, it is able to capture in-phase and anti-phase synchronization. Second, tuning the length of the ordinal vectors DD, it is possible to evaluate the level of synchronization at different time scales. Third, it is not necessary to assume any a priori property of the time series, such as stationarity or linear coupling. Fourth, the calculation of OSOS is extremely fast, especially when compared with other metrics such as MIMI. On the other hand, we have also seen that one of the elements affecting the value of OSOS is the existence of noise, which reduces its value if the dimension of the ordinal vectors is low. However, depending on the application, this fact can also be considered as an indicator of the existence of noise.

A comparison with other classical metrics to evaluate synchronization has been carried out showing some similarities and differences. In general, OSOS shows high correlation with rr and PLVPLV, something that can be explained by the way OSOS is constructed. Ordinal patterns filter part of the information contained in the amplitude of the signal, maintaining just the ranking in the time series. This is something between considering just the phase (PLVPLV) or just the amplitude (rr), since differences in amplitude are not related to changes in the OSOS parameter as long as the ranking is not modified.

In view of all, we believe that the use of OSOS can be interesting (but not restricted to) for evaluating the amount of synchronization in neuroscientific data sets, where in-phase and anti-phase synchronization are know to co-exist, together with coordinations at different time scales.

Appendix A: Coordination metrics

A.1. Pearson’s Correlation Coefficient

The Pearson’s correlation coefficient rr consists of a covariance scaled by variances, thus capturing linear relationships among variables. From the equations of the variance (of XX and YY) and covariance (of XYXY), we obtain Pearson Correlation Coefficient as:

SY\displaystyle S_{Y} =(YiY¯)2n1=yi2n1\displaystyle=\sqrt{\frac{\sum{(Y_{i}-\bar{Y})^{2}}}{n-1}}=\sqrt{\frac{\sum{y_{i}^{2}}}{n-1}} (10)
SX\displaystyle S_{X} =(XiX¯)2n1=xi2n1\displaystyle=\sqrt{\frac{\sum{(X_{i}-\bar{X})^{2}}}{n-1}}=\sqrt{\frac{\sum{x_{i}^{2}}}{n-1}} (11)
SXY\displaystyle S_{XY} =E[(XE[X])(YE[Y])]\displaystyle=E[(X-E[X])(Y-E[Y])] (12)
r\displaystyle r =SXYSXSY\displaystyle=\frac{S_{XY}}{S_{X}{}S_{Y}} (13)

Pearson’s correlation is a measure of linear dependence between any pair of variables and it has the advantage of not requiring the knowledge of how variables are distributed. However, it should be applied only when variables are linearly related to each other.

A.2. Coherence

Coherence (magnitude squared coherence or coherence spectrum) measures the linear correlation among the two spectra[12]. To calculate the coherence spectrum, data must be in the frequency domain. In order to do so, time series are usually divided into S sections of equal size. The Fast Fourier Transform algorithm is then computed over the sections to get the estimate of each section’s spectrum (periodogram). Then, the spectra of the sections is averaged to get the estimation of the whole data’s spectrum (Welch’s method). Finally, Coherence is a normalization of this estimate by the individual autospectral density functions [12]:

SC=|Spxy2||Spxx||Spyy|SC=\frac{|\langle Sp_{xy}^{2}\rangle|}{|\langle Sp_{xx}\rangle||\langle Sp_{yy}\rangle|} (14)

where SpxySp_{xy} is the Cross Power Spectral Density (CPSD) of both signals, SpxxSp_{xx} and SpyySp_{yy} are the Power Spectral Density (PSD) of the segmented signals XX and YY taken individually, and \langle\cdot\rangle is the average over the S segments. In the case of the data sets obtained with the nonlinear electronic Lorenz systems, frequencies higher than fcut=7.5Kf_{cut}=7.5K Hz have been disregarded for the computation of SCSC, since the power spectra of the electronic circuits are completely flat above this frequency. One of the drawbacks of Coherence is that it doesn’t discern the effects of amplitude and phase in the relationships measured between two signals, which makes its interpretation unclear [23, 4].

A.3. Phase Locking Value

Phase Locking Value was first introduced by Lachaux et al. [23] as a new method to measure synchrony among neural populations. It has, at least, two major advantages over the classical coherence measure: it doesn’t require data to be stationary, a condition that can rarely be validated; and has a relatively easy interpretation (in terms of phase coupling). However, the methods used to extract instantaneous phase, a step needed to calculate PLVPLV rely on stationarity, so indirectly PLVPLV can be affected by this condition [24]. To obtain the PLVPLV, the signal has to be decomposed to it’s instantaneous phases and amplitudes. To achieve this, there are several methods, such as Morlet wavelet convolution or Hilbert transform [12, 24]. In this work we will utilize the latter. Finally, PLVPLV is obtained averaging over time tt:

PLV=1N|n=1Nexp(iθ(t,n))|PLV=\frac{1}{N}\lvert\sum_{n=1}^{N}{\exp{(i\theta(t,n))}}\rvert (15)

where θ(t,n)\theta(t,n) is the (instantaneous) phase difference ϕxϕy\phi_{x}-\phi_{y}, the phases to be compared from the signals XX and YY. Comparisons are carried out pairwise (bivariate).

A.4. Mutual Information

Mutual Information is a measure of shared information between any components of a system, between systems, or any other parameter whose value’s probability can be estimated. It is based on Shannon’s notion of entropy, which, in a general sense, tries to quantify the amount of information contained in a random variable by means of its estimated probability distribution. Mutual information measures the amount of information shared between two random variables by means of its joint distribution, or conversely, the amount of information we can obtain from one random variable observing another. This is analogue to measuring the dependence between two random variables [25]. Let X and Y be two random variables with {x1,x2,xn}\{{x_{1},x_{2},...x_{n}}\} and {y1,y2,yn}\{{y_{1},y_{2},...y_{n}}\}, nn possible values with probabilities p(x)p(x) and p(y)p(y). The MIMI of X relative to Y can be written as:

MI(XY)=xX,yYp(xy)log2p(xy)p(x)p(y)MI({X}\cap{Y})=\sum_{{x}\in{X},\\ {y}\in{Y}}{p({x}\cap{y})}{}{\log_{2}}{}{\frac{p({x}\cap{y})}{p(x)p(y)}} (16)
MI(XY)=H(X)H(X|Y)MI({X}\cap{Y})=H(X)-H(X|{Y}) (17)

where p(xy)p({x}\cap{y}) is the probability that XX has a value of xx while YY has a value of yy, H(X)H(X) is the entropy of XX and H(X|Y)H({X}|{Y}) is the conditional entropy of XX and YY. One of the major advantages of MIMI is that it captures linear and non-linear relationships among variables. One disadvantage is that it does not explicitly tell the shape of that distribution [24]. To get the mutual information between two random variables, we first need to estimate their probability density distribution [25, 24, 26]. Equation 16 compares joint probabilities against marginal ones. When two values are independent, the product of their marginal probabilities should equal their joint probability. When not, we can state that there is a relationship among them (not necessarily linear), because the probability of finding those values together is greater than the probability of finding them by chance. Thus, somehow, those time series are coupled, although we don’t know the way it occurs.

Appendix B: Electronic version of the Lorenz system

The equations of the master and slave electronic Lorenz systems are:

Vx˙1=1R1C(R1R2Vy1R4R3Vx1+R4R3Vξ1)\displaystyle V\dot{x}_{1}=\frac{1}{R_{1}C}\left(\frac{R_{1}}{R_{2}}V_{y_{1}}-\frac{R_{4}}{R_{3}}V_{x_{1}}+\frac{R_{4}}{R_{3}}V_{\xi_{1}}\right) (18)
Vy˙1=1R5C(R5R6Vx1R5R7Vx1Vz1)\displaystyle V\dot{y}_{1}=\frac{1}{R_{5}C}\left(\frac{R_{5}}{R_{6}}V_{x_{1}}-\frac{R_{5}}{R_{7}}V_{x_{1}}V_{z_{1}}\right) (19)
Vz˙1=1R8C(R8R9Vx1Vy1R11R10Vz1)\displaystyle V\dot{z}_{1}=\frac{1}{R_{8}C}\left(\frac{R_{8}}{R_{9}}V_{x_{1}}V_{y_{1}}-\frac{R_{11}}{R_{10}}V_{z_{1}}\right) (20)
Vx˙2=1R12C(R12R13Vy2R15R14Vx2+R12R29Vξ2+R12R30Vsinx)\displaystyle V\dot{x}_{2}=\frac{1}{R_{12}C}\left(\frac{R_{12}}{R_{13}}V_{y_{2}}-\frac{R_{15}}{R_{14}}V_{x_{2}}+\frac{R_{12}}{R_{29}}V_{\xi_{2}}+\frac{R_{12}}{R_{30}}V_{sinx}\right) (21)
Vy˙2=1R16C(R17R16Vx2R17R20Vx2Vz2)\displaystyle V\dot{y}_{2}=\frac{1}{R_{16}C}\left(\frac{R_{17}}{R_{16}}V_{x_{2}}-\frac{R_{17}}{R_{20}}V_{x_{2}}V_{z_{2}}\right) (22)
Vz˙2=1R19C(R19R20Vx2Vy2R22R21Vz2)\displaystyle V\dot{z}_{2}=\frac{1}{R_{19}C}\left(\frac{R_{19}}{R_{20}}V_{x_{2}}V_{y_{2}}-\frac{R_{22}}{R_{21}}V_{z_{2}}\right) (23)

where Vx1,2V_{x_{1,2}}, Vy1,2V_{y_{1,2}} and Vz1,2V_{z_{1,2}} are the voltage variables of the master (sub-index 1) and slave (sub-index 2) Lorenz systems, Vin=Vx1Vx2V_{in}=V_{x_{1}}-V_{x_{2}} is the coupling signal injected into the slave system in a diffusive way, κ=RdpC5R30\kappa=\frac{R_{dp}}{C_{5}R_{30}} is the coupling strength and 0Rdp10\leq R_{dp}\leq 1 is the percentage of coupling controlled by the digital potentiometer. In the experiments where external noise is considered (see Appendix C), the amplitude of Vξ1V_{\xi_{1}} and Vξ2V_{\xi_{2}} are set to 0.50.5 V and zero otherwise.

Table 1 contains the parameters of the resistances and capacitances used in the experiments.

R1,R12=100KΩR_{1},R_{12}=100K\Omega R2,R13=100KΩR_{2},R_{13}=100K\Omega R3,R14=10KΩR_{3},R_{14}=10K\Omega
R4,R15=10KΩR_{4},R_{15}=10K\Omega R5,R16=1MΩR_{5},R_{16}=1M\Omega R6,R17=35.7KΩR_{6},R_{17}=35.7K\Omega
R7,R18=20KΩR_{7},R_{18}=20K\Omega R8,R19=375KΩR_{8},R_{19}=375K\Omega R9,R20=20KΩR_{9},R_{20}=20K\Omega
R10,R21=10KΩR_{10},R_{21}=10K\Omega R11,R22=10KΩR_{11},R_{22}=10K\Omega R23=10KΩR_{23}=10K\Omega
R24=10KΩR_{24}=10K\Omega R25=10KΩR_{25}=10K\Omega R26=10KΩR_{26}=10K\Omega
R27=10KΩR_{27}=10K\Omega[0-1] R28=100KΩR_{28}=100K\Omega R29=100KΩR_{29}=100K\Omega
R30=100KΩR_{30}=100K\Omega C16=1nFC_{1-6}=1nF V+=15V,V=15VV+=15V,V-=-15V
Table 1: Parameters of the electronic components used for the construction of the Lorenz oscillators and the coupled circuit.

Appendix C: Robustness of OSOS in the presence of external noise

Figures 8-9 are equivalent to Figs. 3-4 but in the presence of external noise. In this case, we have introduced two noises ξ1\xi_{1} and ξ2\xi_{2} perturbing the x1x_{1} and x2x_{2} variables of the master and slave Lorenz systems as explained in Appendix B. Comparing Fig. 8 and Fig. 3 we can observe that all synchronization metrics have reduced their values in the presence of external noise, however, the behaviour remains qualitatively similar to the one reported in Fig. 3. Again, the case D=3D=3 is the one suffering the most from the presence of noisy signals (Fig. 8D). When comparing OSOS with the rest of synchronization metrics (Fig. 9), we can also observe a reduction of the correlations respect to the case without external noise. Again, rr and PLVPLV are the metrics showing higher correlation with OSOS, having a linear correlation for D=500D=500 and D=1000D=1000. This correlation is impaired for D=3D=3, since it corresponds to the ordinal vector length that is more affected by noise. On the other hand, the nonlinear correlations with MIMI and SCSC remain quite similar as in the case of the absence of external noise.

Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 8: Synchronization against coupling strength κ\kappa, as measured with mutual information MIMI (light blue), spectral coherence SCSC (yellow), phase locking value PLVPLV (red) Pearson correlation rr (purple) and ordinal synchronization OSOS (black) for D=3D=3 (A), D=500D=500 (B) and D=1000D=1000 (C). For comparison purposes, plot DD shows OSOS against coupling strength for the different vector lengths, D=3D=3 (black), D=500D=500 (turquoise) and D=1000D=1000 (green).
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Figure 9: Panel A shows the average correlation between each synchronization measure and OS depending on the vector length (DD) used to compute OS. Panels B-D show the correlation between OS and all other synchronization measures varying the coupling strength (from 0 to 100), for D=3D=3 (B), D=500D=500 (C) and D=1000D=1000 (D). Synchronization measures are Mutual information (MI; blue), Pearson correlation coefficient (r; purple), spectral coherence (SC; yellow) and phase locking value (PLV; red). The red line corresponds to y=xy=x.

References

References

  • Huygens [1893] C. Huygens, in oeuvres completes de christian huygens, edited by M. Nijhoff (Societe Hollandaise des Sciences, The Hague, The Netherlands). 5 (1893) 246.
  • Néda et al. [2000] Z. Néda, E. Ravasz, Y. Brechet, T. Vicsek, A.-L. Barabási, Self-organizing processes: The sound of many hands clapping, Nature 403 (2000) 849–850.
  • Schmidt et al. [1990] R. Schmidt, C. Carello, M. T. Turvey, Phase transitions and critical fluctuations in the visual coordination of rhythmic movements between people, J. Exp. Psychol. Hum. Percept. Perform. 16(2) (1990) 227–247.
  • Varela et al. [2001] F. Varela, J. Lachaux, E. Rodriguez, J. Martinerie, The brainweb: phase synchronization and large-scale integration, Nat. Rev. Neurosci. 2 (2001) 229–239.
  • Agladze et al. [2017] N. Agladze, O. Halaidych, V. Tsvelaya, T. Bruegmann, C. Kilgus, P. Sasse, K. Agladze, Synchronization of excitable cardiac cultures of different origin, Biomater. Sci. 5 (2017) 1777.
  • Romer [2001] K. Romer, Time synchronization in ad hoc networks, in: Proceedings of ACM Symposium on Mobile Ad Hoc Networking and Computing (MobiHoc) (2001) 173–182.
  • Wang et al. [2016] B. Wang, H. Suzuki, K. Aihara, Enhancing synchronization stability in a multi-area power grid, Sci. Rep. 6 (2016) 26596.
  • Arenas et al. [2008] A. Arenas, A. Díaz-Guilera, J. Kurths, Y. Moreno, C. Zhou, Synchronization in complex networks, Phys. Rep. 469 (2008) 93–153.
  • Boccaletti et al. [2006] S. Boccaletti, V. Latora, Y. Moreno, M. Chavez, D. U. Hwang, Complex networks: Structure and dynamics, Phys. Rep. 424 (2006) 175–308.
  • Mones et al. [2014] E. Mones, N. Araújo, T. Vicsek, H. Herrmann, Shock waves on complex networks, Sci. Rep. 4 (2014) 4949.
  • Rech and Perret [1990] C. Rech, R. Perret, Adding dynamics to the Human Connectome Project with MEG, Int. J. Syst. Sci. 21 (1990) 1881.
  • Pereda et al. [2005] E. Pereda, R. Q. Quiroga, J. Bhattacharya, Nonlinear multivariate analysis of neurophysiological signals, Progress in Neurobiology 77 (2005) 1–37.
  • Bahraminasab et al. [2008] A. Bahraminasab, F. Ghasemi, A. Stefanovska, P. McClintock, H. Kantz, Direction of coupling from phases of interacting oscillators: A permutation information approach, Phys. Rev. Lett. 100 (2008) 084101.
  • Paluš and Stefanovska [2003] M. Paluš, A. Stefanovska, Direction of coupling from phases of interacting oscillators: An information-theoretic approach, Phys. Rev. E 67 (2003) 055201.
  • Li et al. [2011] Z. Li, G. Ouyang, D. Li, X. Li, Characterization of the causality between spike trains with permutation conditional mutual information, Phys. Rev. E 84 (2011) 021929.
  • Izhikevich [2003] E. Izhikevich, Simple model of spiking neurons, IEEE Trans. Neural Netw. 14 (2003) 1569.
  • Rosário et al. [2015] R. Rosário, P. Cardoso, M. Muñoz, P. Montoya, J. Miranda, Motif-synchronization: A new method for analysis of dynamic brain networks with eeg, Physica A 439 (2015) 7–19.
  • Olofsen et al. [2008] E. Olofsen, J. Sleigh, A. Dahan, Permutation entropy of the electroencephalogram: a measure of anaesthetic drug effect, Br. J. Anaesth. 101 (2008) 810–821.
  • Bandt and Pompe [2002] C. Bandt, B. Pompe, Permutation entropy: a natural complexity measure for time series., Phys. Rev. Lett. 88 (2002) 174102.
  • Lorenz [1963] E. Lorenz, Deterministic nonperiodic flow, J. Atmos. Sci. 20 (1963) 130–141.
  • http://zone.ni.com/reference/ [2018] http://zone.ni.com/reference/, National instruments, Noise (2018).
  • Larson-Prior et al. [2013] L. Larson-Prior, R. Oostenveld, S. Della Penna, G. Michalareas, F. Prior, A. Babajani-Feremi, J.-M. Schoffelen, L. Marzetti, F. de Pasquale, F. Di Pompeo, J. Stout, M. Woolrich, Q. Luo, R. Bucholz, P. Fries, V. Pizzella, G. Romani, M. Corbetta, A. Snyder, Adding dynamics to the Human Connectome Project with MEG, NeuroImage 80 (2013) 190–201.
  • Lachaux et al. [1999] J. P. Lachaux, E. Rodriguez, J. Martinerie, F. J. Varela, Measuring Phase Synchrony in Brain Signals, Human Brain Mapping 8 (1999) 194–208.
  • Cohen [2014] M. X. Cohen, Analyzing Neural Time Series Data: Theory and Practice, MIT Press, Cambridge, Massachusetts, 2014.
  • Veyrat-Charvillon and Standaert [2009] N. Veyrat-Charvillon, F.-X. Standaert, Mutual Information Analysis: How, When and Why?, Cryptographic Hardware and Embedded Systems-CHES 2009. Lecture Notes in Computer Science (LNCS) 5747 (2009) 429–443.
  • Gierlichs et al. [2008] B. Gierlichs, L. Batina, P. Tuyls, B. Preneel, Mutual Information Analysis A Generic Side-Channel Distinguisher, Cryptographic Hardware and Embedded Systems-CHES 2008. Lecture Notes in Computer Science 5154 (2008) 426–442.