Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2018 Dec 4:9:2232.
doi: 10.3389/fpsyg.2018.02232. eCollection 2018.

Analyzing Multivariate Dynamics Using Cross-Recurrence Quantification Analysis (CRQA), Diagonal-Cross-Recurrence Profiles (DCRP), and Multidimensional Recurrence Quantification Analysis (MdRQA) - A Tutorial in R

Affiliations
Free PMC article

Analyzing Multivariate Dynamics Using Cross-Recurrence Quantification Analysis (CRQA), Diagonal-Cross-Recurrence Profiles (DCRP), and Multidimensional Recurrence Quantification Analysis (MdRQA) - A Tutorial in R

Sebastian Wallot et al. Front Psychol. .
Free PMC article

Abstract

This paper provides a practical, hands-on introduction to cross-recurrence quantification analysis (CRQA), diagonal cross-recurrence profiles (DCRP), and multidimensional recurrence quantification analysis (MdRQA) in R. These methods have enjoyed increasing popularity in the cognitive and social sciences since a recognition that many behavioral and neurophysiological processes are intrinsically time dependent and reliant on environmental and social context has emerged. Recurrence-based methods are particularly suited for time-series that are non-stationary or have complicated dynamics, such as longer recordings of continuous physiological or movement data, but are also useful in the case of time-series of symbolic data, as in the case of text/verbal transcriptions or categorically coded behaviors. In the past, they have been used to assess changes in the dynamics of, or coupling between physiological and behavioral measures, for example in joint action research to determine the co-evolution of the behavior between individuals in dyads or groups, or for assessing the strength of coupling/correlation between two or more time-series. In this paper, we provide readers with a conceptual introduction, followed by a step-by-step explanation on how the analyses are performed in R with a summary of the current best practices of their application.

Keywords: R; RQA; cross-recurrence quantification analysis; diagonal cross-recurrence profile; multidimensional recurrence quantification analysis; tutorial.

PubMed Disclaimer

Figures

FIGURE 1
FIGURE 1
Illustration of recurrence of letters in the sequence “ABCDDABCDD” (A), and cross-recurrence of letters in the sequence “ABCDDABCDD” with “DDEFGABCDD” (B). The black squares in the matrices indicate the recurrence of a letter, and white spaces indicate the absence of recurrence. The distribution of recurrent points on the recurrence plot can be quantified to yield statistics of the repetitive patterns in a sequence.
FIGURE 2
FIGURE 2
Display of the data. 3D-plot (a.k.a. phase-space) of the Lorenz system (A); component time-series for the x, y, and z-axis of the Lorenz system (B–D).
FIGURE 3
FIGURE 3
Phase-space reconstruction and estimation of embedding parameters. Example of phase-space reconstruction via the method of time-delayed embedding using the x-dimension of the Lorenz attractor. To that end, the original series (A) is plotted against itself at a certain delay d (d = 9 in this case; see panel D and the main text). This is done m–1 times, where m–1 is the number of additional surrogate dimensions needed in order to arrive at the correct dimensionality of the source system. Then, the original time-series and its two surrogates are plotted against each other, resulting in a reconstructed phase-space (B), which is topologically isomorphic to the phase-space of the actual source system (see Figure 2A). The delay parameter d can be estimated using the average mutual information (AMI), where the first local minimum of that function provides a good estimate for d (C), and the embedding parameter m can be estimated using the false nearest-neighbor (FNN) function, where the first local minimum (or the point at which the function becomes stable) provides a good estimate for m (D).
FIGURE 4
FIGURE 4
Main steps of selecting and conducting the analyses. Please note that this is only a gross overview over the main steps – for specific problems, best practice, or tuning of parameters, please consult the respective sections on these steps in this article.
FIGURE 5
FIGURE 5
Schematic of embedding two time-series in a single phase-space (A), and charting cross-recurrence between coordinates of the two time-series in a cross-recurrence plot (B). Note that the indices on the x- and y-coordinates in panel B here do not display the values of the associated time-series, but the order in which these values appear in the time-series (i.e., the gray 10 is the 10th coordinate of the gray coordinate-series in the phase-space in panel A).
FIGURE 6
FIGURE 6
Doing recurrence analysis using cross-recurrence: Display of cross-recurrence plots resulting when the same time-series data (lorData$z) is added for both inputs as plotted directly from the output of the crqa()-function (A). However, recurrence plots are conventionally oriented so that time at lag0 runs along the main diagonal from the lower-left to the upper-right. Hence, the resulting cross-recurrence plot need to be rotated by 90° (B).
FIGURE 7
FIGURE 7
Display of cross-recurrence plots and resulting CRQA measures the time-series pairs lorData$x with lorData$y (A), lorData$x with lorData$z (B), and lorData$y with lorData$z (C).
FIGURE 8
FIGURE 8
Illustration of how to compute a diagonal recurrence profile from a cross-recurrence plot. The solid black line on the tilted cross-recurrence plot marks the LoS. The dotted black and red lines show the width of lags ±5 and ±10 around the LoS, respectively. The line graph in the back of the figure illustrates the summation of recurrence points for the lags – the diagonal cross-recurrent profile.
FIGURE 9
FIGURE 9
Recurrence profiles of the pairwise cross-recurrence analyses of the 1-dimensional x-y-z time-series from the Lorenz system. Plot of drcp_xy$profile (negative lags = y lagging behind) (A). Plot of drcp_xz$profile (negative lags = z lagging behind) (B). Plot of drcp_yz$profile (negative lags = z lagging behind) (C).
FIGURE 10
FIGURE 10
Recurrence profiles of the pairwise cross-recurrence analyses of the properly embedded time-series from the Lorenz system. Plot of the diagonal cross-recurrence profile of lorData$x and lorData$y, with the percentage of recurrence points plotted on the y-axis, and the number of lags around the LoS on the x-axis.
FIGURE 11
FIGURE 11
Phase-space reconstruction through 3-D embedding of the individual time-series of the Lorenz-system (A–C) and the phase-space portrait of the actual 3-dimensional Lorenz-system (D).
FIGURE 12
FIGURE 12
Recurrence plot and results of the MdRQA3 analysis for the time-series lorData$x, lorData$y, and lorData$z.
FIGURE 13
FIGURE 13
Recurrence plots and MdRQA2 results for the three dyads lorData$x, lorData$y (A), lorData$x, lorData$z (B) and lorData$y, lorData$z (C) of the group.

Similar articles

Cited by

References

    1. Abarbanel H. (1996). Analysis of Observed Chaotic Data. New York, NY: Springer; 10.1007/978-1-4612-0763-4 - DOI
    1. Abney D. H., Paxton A., Dale R., Kello C. T. (2014). Complexity matching in dyadic conversation. J. Exp. Psychol. Gen. 143 2304–2315. 10.1037/xge0000021 - DOI - PubMed
    1. Abney D. H., Paxton A., Dale R., Kello C. T. (2015). Movement dynamics reflect a functional role for weak coupling and role structure in dyadic problem solving. Cogn. Process. 16 325–332. 10.1007/s10339-015-0648-2 - DOI - PubMed
    1. Abney D. H., Warlaumont A. S., Oller D. K., Wallot S., Kello C. T. (2017). Multiple coordination patterns in infant and adult vocalizations. Infancy 22 514–539. 10.1111/infa.12165 - DOI - PMC - PubMed
    1. Acharya U. R., Chua E. C., Faust O., Lim T. C., Lim L. F. (2011). Automated detection of sleep apnea from electrocardiogram signals using nonlinear parameters. Physiol. Meas. 32 287–303. 10.1088/0967-3334/32/3/002 - DOI - PubMed