Recurrence Quantification Analysis (RQA)

Simulation
Introduced by
Marwan, Romano, Thiel & Kurths
Year
2007
Type
Nonlinear time-series characterization
Family
Nonlinear dynamics

What does it do?

Recurrence Quantification Analysis (RQA) is a nonlinear method for characterising the dynamics of a time series by quantifying the small-scale structure of its recurrence plot.

Its comprehensive modern treatment is given by Marwan, Romano, Thiel, and Kurths (2007), who define scalar measures such as recurrence rate, determinism, laminarity, and Shannon entropy. These measures are used to describe periodicity, irregularity, and transitions in dynamical systems.

The intuition behind the method

Imagine recording the position of a system at regular intervals and asking how often it returns to roughly the same state. A recurrence plot marks every such return as a dot in a grid that compares each time point with every other one. Long diagonal lines indicate that a trajectory follows a repeating, rule-governed path, while scattered isolated dots indicate uncorrelated or noise-like behaviour. RQA counts and measures these patterns, turning a visual fingerprint of the dynamics into numbers, without assuming that the signal is linear or stationary.

History

Recurrence plots were introduced by Eckmann, Kamphorst, and Ruelle as a way to visualise recurrences in phase space. Quantitative recurrence measures, including recurrence rate and determinism, were later defined by Zbilut and Webber. The systematic treatment by Marwan, Romano, Thiel, and Kurths (2007) extended the measure set and is the reference most widely cited for the method.

When to use it

Choose RQA when a time series may be nonlinear, non-stationary, or generated by dynamics that are not known in advance, and when linear spectral or autocorrelation methods are unlikely to capture the structure of interest. It is suited to records of moderate length from sources such as physiological, geophysical, financial, or engineering systems. The method assumes that the data arise from a deterministic or stochastic dynamical system and that the embedding parameters (m, τ, ε) can be estimated from the data. Avoid RQA for very short records, where the diagonal and vertical line statistics become unstable, and when no reasonable threshold ε can be justified; in such cases, sample entropy, detrended fluctuation analysis, or other nonlinear measures may be more suitable alternatives.

Limitations and considerations

  • Results depend on the embedding dimension m, the time delay τ, and the threshold ε, and poor choices distort all derived measures.
  • The computation requires an N×N matrix, so memory and time scale as O(N²), which limits use on very long series unless windowing is applied.
  • No universal criterion exists for selecting ε. Some practitioners use a recurrence rate of about 10% as a heuristic, but this may not transfer across systems, so the choice should be justified for the data at hand.
  • Assessing the statistical significance of RQA measures requires surrogate data. Generate surrogate series that preserve the linear properties of the original (for example, amplitude-adjusted Fourier surrogates), compute the RQA measures for each surrogate, and compare the observed values with the resulting distribution.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Works with noisy and non-stationary time series of moderate length, for which Fourier or linear autoregressive methods are often inadequate.
  • A single analysis produces several interpretable scalar indices (RR, DET, LAM, ENTR) that describe different aspects of the recurrence structure.
  • Makes no assumption of stationarity or linearity, so it can be applied to empirical records from complex systems.
  • The recurrence plot gives a visual check on the quantitative measures, showing where diagonal and vertical structures occur in time.

Applications

  • Cardiorespiratory physiology: detecting transitions between cardiac rhythms and quantifying heart rate variability in short ECG segments.
  • Neuroscience: characterising EEG and MEG dynamics during cognitive tasks and during epileptic seizures, and studying anaesthesia depth.
  • Climate and geophysics: identifying regime shifts, periodicities, and synchronisation in palaeoclimate proxies and seismic signals.
  • Biomechanics and motor control: quantifying the stability and variability of human movement, gait, and postural sway.
  • Finance and economics: examining market phase transitions, volatility clustering, and nonlinear dependencies in return series.

How it works

How it works

1

The scalar time series s(t) is first embedded into an m-dimensional phase space using delay-coordinate embedding. Each point x_i is formed by stacking m samples separated by a time delay τ, which is chosen with mutual information or autocorrelation criteria. This reconstruction recovers a geometric picture of the system's state space from the observed one-dimensional signal, and it prepares the data for pairwise distance comparisons.

Formula
\mathbf{x}_i = (s_i,\, s_{i+\tau},\, \ldots,\, s_{i+(m-1)\tau}), \quad i = 1, \ldots, N-(m-1)\tau
2

A symmetric N×N recurrence matrix R is computed, where entry R(i,j) equals 1 if the embedded points x_i and x_j lie within the threshold distance ε of each other, and 0 otherwise. The Heaviside function Θ applies this cut-off. Displayed as a black-and-white image, the recurrence plot shows diagonal lines (associated with determinism), vertical lines (associated with laminarity), and overall dot density (the recurrence rate).

Formula
R_{i,j}^{\varepsilon} = \Theta\!\left(\varepsilon - \|\mathbf{x}_i - \mathbf{x}_j\|\right), \quad i,j = 1,\ldots,N
3

Diagonal-line statistics are extracted from the recurrence matrix. Before these statistics are computed, the main diagonal (the line of identity) is excluded, and for autocorrelated data a Theiler window around it is also excluded; otherwise DET and LAM are inflated. Recurrence rate (RR) is the fraction of all point pairs that are recurrent. Determinism (DET) is the proportion of recurrent points that form diagonal lines of at least the minimum length l_min, which reflects predictable, rule-governed trajectories. P(l) denotes the histogram of diagonal line lengths.

Formula
\mathrm{RR} = \frac{1}{N^2}\sum_{i,j=1}^{N} R_{i,j}^{\varepsilon}, \quad \mathrm{DET} = \frac{\sum_{l=l_{\min}}^{N} l\, P(l)}{\sum_{l=1}^{N} l\, P(l)}
4

ENTR is the Shannon entropy of the diagonal-line length distribution and reflects the spread of line lengths, with higher values indicating a wider spread. LAM is the fraction of recurrent points that form vertical structures, which relates to laminar or trapped states. Using these measures to identify chaotic transients or distinct regimes requires validation on the specific data.

Formula
\mathrm{ENTR} = -\sum_{l=l_{\min}}^{N} p(l)\ln p(l), \quad \mathrm{LAM} = \frac{\sum_{v=v_{\min}}^{N} v\, P(v)}{\sum_{v=1}^{N} v\, P(v)}

Common pitfalls

  • Choosing ε too large inflates the recurrence rate, which can hide the true dynamics and produce spuriously high DET values.
  • Computing RQA measures without first checking the embedding parameters (for example with false nearest neighbours and mutual information) can yield an unreliable phase-space reconstruction.
  • Applying RQA to very short time series without acknowledging edge effects produces highly variable recurrence statistics.
  • Interpreting RQA measures without surrogate-data testing risks attributing structure to random fluctuations, particularly when the input contains coloured noise.

Frequently asked questions

How do I choose the threshold epsilon for the recurrence matrix?

No universal rule exists. Choose ε by a sensitivity analysis across a range of values, report the recurrence rate (RR) obtained, and avoid treating any fixed RR percentage as a universal target. ε can also be set as a fixed fraction of the attractor diameter or from a fixed nearest-neighbour fraction. Check that the resulting plot is neither too sparse nor too dense for the structure you want to examine, and interpret results only after this check.

What is the minimum time series length required for reliable RQA?

No strict universal minimum exists. As the series becomes shorter, the diagonal and vertical line statistics become more variable. Report the series length used and estimate uncertainty with bootstrap confidence intervals or surrogate testing, and interpret measures from short series with particular caution.

How does RQA differ from sample entropy?

Both methods quantify regularity in time series without assuming linearity, but they differ in structure. Sample entropy counts template matches within a fixed tolerance and length and returns a single scalar that reflects predictability. RQA constructs a full recurrence matrix and extracts several measures (RR, DET, LAM, ENTR), each describing a different aspect of the dynamics, which gives a more detailed, multi-faceted characterisation.

Related methods

Sources

  1. Marwan, N., Romano, M. C., Thiel, M., & Kurths, J. (2007). Recurrence plots for the analysis of complex systems. Physics Reports, 438(5–6), 237–329.

    Open DOI reference