Abstract
Recurrent temporal dynamics is a phenomenon observed frequently in high-dimensional complex systems and its detection is a challenging task. Recurrence quantification analysis utilizing recurrence plots may extract such dynamics, however it still encounters an unsolved pertinent problem: the optimal selection of distance thresholds for estimating the recurrence structure of dynamical systems. The present work proposes a stochastic Markov model for the recurrent dynamics that allows for the analytical derivation of a criterion for the optimal distance threshold. The goodness of fit is assessed by a utility function which assumes a local maximum for that threshold reflecting the optimal estimate of the system's recurrence structure. We validate our approach by means of the nonlinear Lorenz system and its linearized stochastic surrogates. The final application to neurophysiological time series obtained from anesthetized animals illustrates the method and reveals novel dynamic features of the underlying system. We propose the number of optimal recurrence domains as a statistic for classifying an animals' state of consciousness.
Export citation and abstract BibTeX RIS
Introduction
Complex behavior is ubiquitous in nature, humanities and engineering. Often, complex dynamical systems are recurrent in the sense that certain regions of their available state space are frequently visited in the course of time [1,2]. This important property facilitates forecasting, modeling and control of dynamical systems. To visualize recurrent behavior, Eckmann et al. [3] suggested the recurrence plot (RP) technique that inspired the growing research field of recurrence quantification analyses (RQA). RP and RQA have found several applications in the physical sciences [4,5], medicine [6,7], social sciences [8,9] and engineering [10,11] (for further surveys, see [2,12]).
For a d-dimensional time series , with N number of time steps, the RP is a graphical representation of the recurrence matrix
The parameter ε is the distance threshold of two sampling points , and Θ denotes the Heaviside step function. Proper selection of the threshold ε is of crucial importance to gain instructive RPs that reveal the underlying recurrence structure of the dynamics [2,12].
To solve the threshold selection problem, several heuristics have been suggested [2,12–14]. However, a proper optimization method should take the system's specific recurrence structure into account by explicitly modeling the alternating sequence of recurrence domains and transients. One viable way to do so, models the percolation transition toward the giant cluster in a recurrence network [15]. Another possibility is the detection of recurrence domains though recurrence grammars [13,14]. A recurrence grammar is comprised of rules for the RP elements when i > j and , applied recursively to the sequence of time indices . This map yields a symbolic dynamics which is a coarse-graining of the system's trajectory ; it transforms the recurrence structure into an alternating sequence of recurrence domains and transients. In this letter, we present a model for the system's recurrence structure in terms of a Markov chain obtained from its symbolic dynamics . Under the assumption that the optimal Markov chain describes transitions between several metastable states and a transient regime [14], we formulate three plausible criteria for the shape of the stochastic transition matrix leading to a novel utility function. Thus, its maximization over a range of distance thresholds ε yields an optimal estimate of the system's recurrence structure.
Method
For easy comparison with our previously presented maximum entropy criterion [13,16], we consider the Lorenz system [17] as a well-known example for a system with a distinguished recurrence structure. Intuitively, the system exhibits two recurrence domains, namely the attractor's "wings" centered around its unstable foci and separated by several non-recurrent regimes, henceforth referred to as "transients". Therefore, in an optimal encoding the symbolic sequence obtained from a recurrence grammar would look like
after applying the rewriting grammar [13,14,16]. I.e. we expect a number of 0's for some transient regime, followed by a relatively large number of 1's for the first wing, followed by a smaller number of 0's characterizing the transition to the second wing, which is hence reflected by a relatively large number of 2's, and so on. This symbolic dynamics is essentially a Markov chain with a rather simple transition graph depicted in fig. 1.
Figure 1 points out three important properties of the expected optimal encoding: i) The two recurrence domains (states 1 and 2) and the transient state 0 are modeled as metastable states with relatively large dwells, i.e. they exhibit mainly self-transitions. Hence the transition probabilities p00, p11, and p22 will be large compared to other transitions. ii) The transient state 0 acts as a "hub". Without further knowledge about the system's dynamics, it is reasonable to assume that the transition probabilities p10, p20 from the hub and p01, p02 into the hub are uniformly distributed according to a maximum entropy principle [13]. iii) There a no direct transitions between metastable recurrence domains 1 and 2. This model can be easily generalized to a higher number of recurrent states.
For a chosen threshold ε, the recurrence grammar yields a segmentation of the time series into symbols. Therefore, the appropriate model is an n-state Markov chain with number of recurrence domains (NRD) equal to . The transition matrix for an optimal recurrence grammar partition for n > 1 would be
For the system exhibits only the transient state 0 and we set . The matrix P reflects the three optimization criteria formulated above as follows: i) The trace dominates all other transition probabilities. ii) The transition probabilities from the "hub" and into the "hub" for i, j > 0 are uniformly distributed. iii) As P is a stochastic matrix the column sums are and , the latter term excluding direct transitions between metastable states.
The three optimization criteria eventually lead to the desired utility function: i) Maximization of the recurrent self-transitions is achieved by maximizing the trace of the transition matrix . ii) The maximum entropy principle is satisfied by renormalization of transition probabilities of the first row and of the first column of P after neglecting p00, i.e., for the first row and for the first column. Then,
For the optimal Markov matrix, eq. (3), (for we trivially define , as there are no transitions). iii) Simultaneously maximizing the trace and the entropies of the first row and column of P also suppresses transitions between any two recurrence domains due to the normalization condition for stochastic matrices with . Finally, in the limit , the optimal transition matrix in eq. (3) turns into the unit matrix I with . Consequently, the utility function
with allows us to define the optimization criterion
The parameter is the optimal threshold for which the recurrence structure detected from the time series most resembles the Markov chain model. In addition, one may call the degree of resemblance of the time series' recurrence structure with the Markov chain model. The number of recurrence domains (NRD), , characterizes the "complexity" of the metastable transition model.
For illustration, consider two interesting limiting cases. As long as the threshold ε remains smaller than the smallest distance between two sampling points, all points are isolated and hence encoded as transients 0, such that and . Moreover, for thresholds ε larger than the largest distance between two samples, all points are merged into one single recurrence domain 1. However, the transient state 0 must always be present for reasons of consistency but is not realized in this case, such that P becomes the 2-dimensional unit matrix. This leads to .
Application
Optimal recurrence grammar encoding permits the detection of temporal segments in neurophysiological time series that best fit to recurrence domains [16]. The NRD serves as a measure of complexity in further evaluation. Recent studies [18,19] have provided evidence that the complexity of electroencephalographic data measured under general anaesthesia reflects the level of consciousness of subjects. In order to evaluate the optimal recurrence grammar encoding in this context, we investigate spatially distributed local field potentials (LFP) measured in ferret visual cortex under anaesthesia (cf. [20] for all details). Briefly, we performed electrophysiological recordings in primary visual cortex in one adolescent female ferret in a dark room while the animal was head-fixed, first while awake and later when anesthetized. Electrophysiology was conducted with acute invasive insertion of 32-channel probes ( with contact spacing along the z-axis and the reference electrode located on the same shank 0.5 mm above the top recording site). Unfiltered signals were amplified, then digitized at a rate of 20 kHz and finally downsampled to a rate of 100 Hz. For anesthetized recordings, general anesthesia was maintained with isoflurane (0.5%, 0.75% or 1.0%) and continuous infusion of xylazine. At least 15 minutes elapsed after changing anesthetic concentration prior to starting a new recording, exceeding the duration required in our setup for the LFP to stabilize at the new anesthetic concentration. All three levels of anesthesia used in this study corresponded to a lack of behavioral responses. We have extracted a large set of trials, each lasting 10 s, for each condition. According to previous studies, anaesthesia strongly affects neural activity in the α-frequency band from 8 Hz to 12 Hz [20,21]. Consequently, we bandpass-filtered the data in the α-band and extracted instantaneous power by a Gabor filter at each electrode. This yields a 32-dimensional signal that serves as the input signal of our recurrence analysis. In addition, to test for linearity we have phase-randomized all time series in order to generate surrogate data which we analyzed identically to the original data.
Results
In order to validate the new optimization procedure, we consider again the standard Lorenz system with the same numerical settings as in [13]. For each ε, we compute the recurrence plot, its symbolic sequence and the corresponding transition probabilities between symbols (see external Supplementary Material1 , sect. 2). The results are presented in fig. 2. The upper panel of fig. 2(a) displays the time series of the model coordinates x1, x2 (blue and green, respectively) and x3 (red) of the Lorenz trajectory . The Markov utility function, eq. (5), in fig. 2(b) assumes its maximum at (compare with in [13]). Using this threshold for the optimal recurrence grammar encoding of the trajectory yields the color-coded symbolic dynamics depicted in the bottom panel of fig. 2(a). We observe a 5-state Markov chain with 4 recurrence domains. The segmentation into the two Lorenz wings as recurrence domains is clearly visible validating the optimal estimation of the system's recurrence structure.
Download figure:
Standard imageNonlinear dynamical systems exhibit nontrivial temporal recurrence structures. To further evaluate the proposed method we compare the recurrence structure of the Lorenz system with recurrence structures in linear systems. To this end, we create two kinds of linear stochastic surrogates through shuffling and phase randomization. Both preserve the statistical distribution of the data but destroy any nonlinear dependences of the original time series, although only the latter retains the signal's linear autocorrelation structure [22].
Figure 2(c), (d) shows the Lorenz surrogate data. Obviously, the maximum of the utility function for the phase-randomized surrogates (fig. 2(d), solid line) is substantially suppressed compared to that of the original time series. The optimal recurrence grammar for these surrogates yields a Markov chain with 6 recurrence domains (as compared to 4 in the original data), as seen in fig. 2(c). These correspond to smooth peaks of the time series that are spuriously detected as saddle nodes [14]. For comparison, fig. 2(d) also gives the utility function for time-shuffled surrogates (dotted line in panel (d)) mimicking white noise (compare with the external Supplementary Material, sect. 1). The function approaches as its maximum that corresponds to a single recurrence domain. This result illustrates that a system without any essential recurrence structure is described by a regular sequence of only one recurrence domain, as in the case of white noise (see external Supplementary Material, sect. 1).
Next, fig. 3(a) shows the instantaneous α-power of the original single trial LFP from an animal anesthetized with 0.5% isoflurane in 32 channels distributed over space together with the optimal recurrence sequence. We observe a sequence of spatially distributed activity states in the 32-dimensional data (top panel) and the gained optimal sequence of symbolic states (bottom panel) that shows good accordance to the experimental data (see similar representations in the external Supplementary Material, sect. 4). Hence, the spatiotemporal sequences are identified well using the optimal recurrence grammar encoding. We determined the distribution of NRD over all trials for each concentration of anesthetic (illustrated in the external Supplementary Material, sects. 2 and 4). These distributions are bimodal and thus not normal. Hence, fig. 3(b) displays medians for both the original and surrogate time series. Firstly, we observe a strong dependence of NRD on the concentration of anesthetic which is significant for almost every pairwise comparison using a Kolmogorov-Smirnov test between all concentrations in the original data set, except for the difference between 0.75% and 1.0% . Moreover, results from original and phase-randomized data are groupwise significantly different (Kruskall-Wallis test, p < 0.05) demonstrating that the optimal recurrence grammar encoding clearly distinguishes nonlinear from linear dynamics. The awake state (0%) exhibits fewer recurrence domains than the anesthetized states with isoflurane concentrations larger than 0.5%. This reflects less different recurrent states in the brain, repetitions of fewer states and perhaps a higher degree of transient dynamics in the awake state compared to the anesthetized states. After the increase of NRD from 0% to 0.5% reflecting less regular signals, the significant decrease of NRD from 0.5% to 0.75% and 1.0% indicates a progression towards higher regularity, i.e., ordering under deeper anaesthesia. The change of regularity may result from changes of intrinsic noise levels in neural populations. In fact, increased concentrations of anaesthetic agents diminish the activity input from sub-cortical to cortical structures leading to more regular neural activity [23]. This final decrease of regularity is in line with the well-established classification of EEG during anaesthesia: EEG becomes more synchronous with deeper anaesthesia before reaching levels associated with burst suppression. Our result in the α-frequency range shows a maximum in NRD indicating a new non-homogeneous relation between anaesthetic concentration and regularity.
Download figure:
Standard imageDiscussion
The present work proposes a novel optimal estimate of recurrence structures that allows for the characterization of nonlinear temporal structures in multivariate time series by the number of recurrence domains. In contrast to previously suggested heuristics for the optimization of recurrence thresholds [2,12–14], our approach explicitly models the system's recurrence structure as transitions in a Markov chain between metastable states and transient regimes. We obtain a small number of recurrence domains with relatively large dwells that can be related to transitive subnetworks in a recurrence network close to the percolation transition [15]. The proposed method also shows similarities with other methods for finding a system's generating partition through partitioning homoclinic connections [24], as metastable states could be segmented along heteroclinic connections. We leave this interesting issue for future research.
Acknowledgments
This research has been supported by the European Union's Seventh Framework Programme (FP7/2007-2013) ERC grant agreement No. 257253 awarded to AH and by a Heisenberg fellowship (GR 3711/1-2) of the German Research Foundation (DFG) awarded to PbG. The research reported in this publication was partially supported by the National Institute of Mental Health of the National Institutes of Health under Award No. R01MH101547. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.
Footnotes
- 1
We provide external Supplementary Material at https://www.researchgate.net/publication/301525222_GrabenEA_EPLsupp.