Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

1 Introduction

Recurrence plots (RPs) are a signal analysis method that was initially introduced to visualize characteristics of a trajectory in a phase space [2]. Later, to go beyond the visual impression, different measures of quantification of RPs were introduced, see [3, 4]. These techniques have been applied in a variety of different disciplines, such as finance, economy, earth sciences, biology, neuroscience, physiology, engineering, physics and chemistry. In the last decade an impressive increase of the application of methods based on RPs can be observed, see the bibliography collected on the website [5]. Some of the pitfalls which can occur during the application of RPs are highlighted in [6].

Given a finite-interval continuous-time real-valued signal \(x(t)\), with \(t \in [0,1)\) say, its corresponding recurrence plot is constructed with the time-delay embedding method (cf. [7]) in three steps:

  1. (1)

    An embedding dimension \(M\) and a time-delay \(\tau \in (0,1)\) are chosen, and an associated \(M\)-dimensional vector trajectory \(X(t)\) is constructed as:

    $$\begin{aligned} X(t) = \left( \begin{array}{c} x(t) \\ x(t+\tau ) \\ \vdots \\ x(t+(M-1)\tau ) \end{array} \right) , t \in [0,1). \end{aligned}$$
    (1)

    Here, for technical convenience (to avoid having to take finite interval effects explicitly into account), the signal \(x(t)\) is periodically extended from the interval \([0,1)\) to all of \({\mathbb R}\).

  2. (2)

    The unthresholded recurrence plot (URP) is defined as (the graph of) the intra-trajectory distance function \(\text{ URP }_{X}(u,v)\), given by

    $$\begin{aligned} \text{ URP }_{X}(u,v) = \Vert X(u)-X(v) \Vert , \quad u, v \in [0,1), \end{aligned}$$
    (2)

    in which \(\Vert \cdot \Vert \) denotes the Euclidean norm.

  3. (3)

    For a given positive threshold \(\varepsilon \), the binary (thresholded) recurrence plot is defined as

    $$\begin{aligned} \text{ RP }^{\varepsilon }_{X}(u,v) = \left\{ \begin{array}{lcl} 1 &{} &{} \text{ if } \text{ URP }_{X}(u,v) \le \varepsilon , \\ 0 &{} &{} \text{ if } \text{ URP }_{X}(u,v) > \varepsilon . \end{array} \right. \end{aligned}$$
    (3)

In this paper we study the information content of URPs of complex-valued signals. They are defined in a similar manner, with the Euclidean norm \(\Vert \cdot \Vert \) in step (2) generalized to trajectories that are now in \({\mathbb C}^M\). This theoretical study on URPs of complex-valued signals is new and may serve as a starting point for applications of URPs and RPs on complex-valued signals which are constructed from real world data. Furthermore, the special properties of complex signal representation are used to employ URPs in alternative ways on signals with a narrow band power spectrum. The information content of URPs and RPs of real-valued signals has been studied in [1, 813], respectively.

In Sect. 2, we study the information content of URPs of zero mean continuous-time complex-valued signals on \([0,1)\) which admit a Fourier series representation. We build upon our recent work of [1] where real-valued signals were analyzed. As in that case, we show that for any complex-valued signal its power spectrum is entirely determined by its URP, regardless of the choice of \(M\) and \(\tau \). It is easily seen that a URP does not carry information on the mean of a signal (hence the zero mean assumption), nor on a unimodular scaling factor, nor on complex conjugation. We provide sufficient conditions on \(M\) and \(\tau \) which guarantee that a zero mean complex-valued signal \(w(t)\) can be uniquely recovered from its URP, up to conjugacy and a unimodular factor. They extend the necessary and sufficient conditions for real-valued signals given in [1]. In general, when these conditions are not satisfied, it depends on \(M\), \(\tau \), and the frequency content of the actual signal \(w(t)\) itself, which information can be recovered from its URP. These results have implications for real-valued signals too, because recurrence plots of complex-valued signals relate to joint recurrence plots for two real-valued signals; see [14].

In Sect. 3, we address another application of complex-valued signal representations by studying signals with a narrow band power spectrum. Then, in Sect. 4, the information content and the structure of URPs for narrow band signals are illustrated by two examples. First, we investigate four different settings for \(M\) and \(\tau \), which cause complex signals with magnitudes having different morphology to exhibit identical URPs. Second, an application with real measurement data from EEG analysis involving an alpha rhythm is presented, to illustrate the use of URPs on complex-valued narrow band signals in alternative ways. We compare the frequency content on horizontal (or vertical) and on diagonal lines in a URP, and we illustrate how this information can be used to approximate the envelope of the underlying signal.

Section 5 concludes the paper. All the proofs are collected in the Appendix.

2 Unique Reconstruction of a Complex-Valued Signal from Its Unthresholded Recurrence Plot

Fig. 1
figure 1

a Real-valued signals \(x(t)\) and \(y(t)\) with joint recurrences. b Joint recurrence plot of \(x(t)\) and \(y(t)\) (top) recurrence plot of the complex-valued signal \(w(t) = x(t) + i y(t)\) (bottom)

In this section we extend the results of [1] for real-valued signals, to the class of complex-valued signals \(w(t) = x(t) + i y(t)\). Here, \(x(t)\) and \(y(t)\) denote the real and the imaginary part of \(w(t)\), respectively. For a given embedding dimension and time-delay the corresponding trajectories relate similarly as \(W(t) = X(t) + i Y(t)\). For all time instances \(u\) and \(v\) it holds that \(W(u) \approx W(v)\), i.e., a near recurrence occurs, if and only if both \(X(u) \approx X(v)\) and \(Y(u) \approx Y(v)\). Therefore, recurrence plots of complex-valued signals are closely related to joint recurrence plots (JRPs), see [14]. To be precise, a binary (thresholded) joint recurrence plot is defined as the product of the RPs of the signals \(x(t)\) and \(y(t)\), which may be constructed for different embedding dimensions, different time-delays and different thresholds:

$$ \text{ JRP }^{\varepsilon _X,\varepsilon _Y}_{X,Y}(u,v) := \text{ RP }^{\varepsilon _X}_{X}(u,v)\text{ RP }^{\varepsilon _Y}_{Y}(u,v). $$

Note that \(\text{ URP }_W(u,v)^2 = \Vert W(u)-W(v)\Vert ^2 = \Vert X(u)-X(v)\Vert ^2 + \Vert Y(u)-Y(v)\Vert ^2\). Therefore \(\text{ RP }^{\varepsilon }_W(u,v) = 1\) if and only if \((\Vert X(u)-X(v)\Vert ^2 + \Vert Y(u)-Y(v)\Vert ^2)/\varepsilon ^2 \le 1\), while \(\text{ JRP }^{\varepsilon _X,\varepsilon _Y}_{X,Y}(u,v) = 1\) if and only if \(\max \{\Vert X(u)-X(v)\Vert /\varepsilon _X, \Vert Y(u)-Y(v)\Vert /\varepsilon _Y\} \le 1\). This makes clear that the RP of a complex-valued signal employs the \(2\)-norm, while the JRP of two real-valued signals employs a mixture of the \(2\)-norm and the maximum-norm. However, topologically these norms are equivalent (i.e., they define the same families of open sets), so that small distances for one norm correspond to small distances for the other norm. An example of a joint recurrence plot of two real-valued signals and the recurrence plot of the corresponding complex-valued signal for equal embedding dimensions \(M = 2\), equal time delays \(\tau = 0.2\) and equal thresholds \(\varepsilon = 0.1\), is displayed in Fig. 1b. The signal values giving rise to the joint recurrence in \(\text{ JRP }_{X,Y}(u,v)\) and the recurrence in \(\text{ RP }_{X+iY}(u,v)\), are indicated by squares and circles in Fig. 1a. The corresponding time instants are \(u = 0.3\), \(u+\tau =0.5\), \(v = 0.6\) and \(v+\tau =0.8\). This demonstrates that a recurrence plot of a complex-valued signal contains joint information on two real-valued signals. We shall investigate to which extent a recurrence plot of a complex-valued signal also contains individual information about the two real-valued signals.

As a URP does not contain information on the mean of a signal, without loss of generality we focus attention on the class of complex-valued zero mean signals \(w(t)\). We restrict to signals on \([0,1)\) which admit a Fourier series representation which converges pointwise almost everywhere and has finite energy:

$$\begin{aligned} w(t) = \sum _{k \in {\mathbb Z}} w_k e^{2\pi k t i}, \quad \text{ with } w_0 = 0, \text{ and } \, \sum _{k \in {\mathbb Z}} |w_k|^2 < \infty . \end{aligned}$$
(4)

Then for such a signal \(w(t)\), for a given embedding dimension \(M\) and time-delay \(\tau \), the trajectory \(W(t)\) is:

$$\begin{aligned} W(t) = \sum _{k \in {\mathbb Z}} w_k e^{2\pi k t i} T_k, \end{aligned}$$
(5)

in which (for all \(k \in {\mathbb Z}\))

$$\begin{aligned} T_k = \left( \begin{array}{c} 1 \\ z^k \\ \vdots \\ z^{(M-1)k} \end{array} \right) , \quad \text{ with } z = e^{2\pi \tau i}. \end{aligned}$$
(6)

When considering the inner product \(\langle W(u), W(v) \rangle \) (with linearity in the first argument) as a two-variable function of \(u, v \in [0,1)\), it is obtained that

$$\begin{aligned} \langle W(u), W(v) \rangle = \sum _{p \in {\mathbb Z}} \sum _{q \in {\mathbb Z}} w_p \overline{w_q} e^{2\pi (p u - q v) i} \langle T_p, T_q \rangle . \end{aligned}$$
(7)

This constitutes a \(2\)-dimensional Fourier series representation of \(\langle W(u), W(v) \rangle \), with 2D-Fourier coefficients \(w_p \overline{w_{-q}} \langle T_p, T_{-q} \rangle \). Note that \(\langle T_p, T_q \rangle = \langle T_{p+r}, T_{q+r} \rangle \) for all integers \(p, q, r\). An explicit expression for the inner product \(\langle T_p, T_q \rangle \) is provided by [1, Lemma 3.1]. It holds that \(\langle T_p, T_q \rangle \ne 0\) if and only if \([(p-q)\tau \in {\mathbb Z}] \vee [(p-q)M\tau \notin {\mathbb Z}]\). Also, \(\langle T_0, T_0 \rangle = M\).

The 2D-Fourier coefficients of \(\langle W(u), W(v) \rangle \) enable the computation of the 2D-Fourier coefficients of \(\text{ URP }_W(u,v)^2\), which are given by the following proposition.

Proposition 1

Let \(w(t) = \sum _{k \in {\mathbb Z}} w_k e^{2\pi k t i}\) be a complex-valued zero mean signal from our class. Let \(W(t)\) be its trajectory for the embedding dimension \(M\) and time-delay \(\tau \). Then a 2D-Fourier representation of its squared URP is given by

$$\begin{aligned} \text{ URP }_{W}(u,v)^2 = \sum _{p \in {\mathbb Z}} \sum _{q \in {\mathbb Z}} \fancyscript{W}_{p,q} e^{2 \pi (p u + q v) i}, \end{aligned}$$
(8)

in which the 2D-Fourier coefficients are given by

$$\begin{aligned}&\fancyscript{W}_{0,0} = 2 M \sum _{k \in {\mathbb Z}} |w_k|^2 \end{aligned}$$
(9)
$$\begin{aligned}&\fancyscript{W}_{p,0} = \langle T_p, T_0 \rangle \sum _{k \in {\mathbb Z}} w_{k+p} \overline{w_k} \quad (p \ne 0) \end{aligned}$$
(10)
$$\begin{aligned}&\fancyscript{W}_{0,q} = \langle T_q, T_0 \rangle \sum _{k \in {\mathbb Z}} w_{k+q} \overline{w_k} \quad (q \ne 0) \end{aligned}$$
(11)
$$\begin{aligned}&\fancyscript{W}_{p,q} = - \langle T_{p+q}, T_0 \rangle \left( w_p \overline{w_{-q}} + \overline{w_{-p}} w_q \right) \quad (p, q \ne 0). \end{aligned}$$
(12)

Note that \(\fancyscript{W}_{p,q} = \fancyscript{W}_{q,p}\) and \(\fancyscript{W}_{-p,-q} = \overline{\fancyscript{W}_{p,q}}\) for all integers \(p\) and \(q\). By choosing \(q = -p \ne 0\), it follows that \(\fancyscript{W}_{p,-p} = - M (|w_p|^2 + |w_{-p}|^2)\). Therefore, when the URPs (for the same time-delay embedding) of two signals with Fourier coefficients \(\{w_k\}_{k \in {\mathbb Z}}\) and \(\{v_k\}_{k \in {\mathbb Z}}\) happen to coincide, it holds that \(|w_p|^2 + |w_{-p}|^2 = |v_p|^2 + |v_{-p}|^2\) for all \(p \in {\mathbb Z}^+\). Observe that \(|w_p|^2 + |w_{-p}|^2\) denotes contribution of the frequency \(p\) to the power of \(w(t)\). Because the 2D-Fourier coefficients of a URP characterize it uniquely, this proves the following result.

Corollary 1

Let \(w(t) = \sum _{k \in {\mathbb Z}} w_k e^{2\pi k t i}\) and \(v(t) = \sum _{k \in {\mathbb Z}} v_k e^{2\pi k t i}\) be two complex-valued zero mean signals from our class. Let \(W(t)\) and \(V(t)\) be their trajectories, respectively, for the same time-delay embedding. If their URPs coincide, then also the power spectra of the signals \(w(t)\) and \(v(t)\) coincide. i.e., for all \(k \in {\mathbb Z}\) it holds that \(|w_k|^2 + |w_{-k}|^2 = |v_k|^2 + |v_{-k}|^2\).

Sufficient conditions for the reconstruction of a complex-valued signal \(w(t)\) from its URP can also be given, in terms of the following associated graph \(G_W\).

Definition 1

Let \(w(t) = \sum _{k \in {\mathbb Z}} w_k e^{2\pi k t i}\) be a complex-valued zero mean signal from our class. Let \(W(t)\) be its trajectory for the embedding dimension \(M\) and time-delay \(\tau \). Then define the associated graph \(G_W\) as the simple undirected graph for which:

  1. (1)

    the nodes are labeled by positive indices from the set

    $$ K_W = \{k \in {\mathbb Z}^+ \,| \, w_k \ne 0 \vee w_{-k} \ne 0\}, $$
  2. (2)

    two distinct nodes labeled \(p, q \in K_W\) are adjacent if and only if both \(\langle T_p, T_q \rangle \ne 0\) and \(\langle T_p, T_{-q} \rangle \ne 0\).

The following theorem contains the main reconstruction result of this section. Note that we will call a graph complete if all nodes are connected to all nodes, including self-loops.

Theorem 1

Let \(w(t) = \sum _{k \in {\mathbb Z}} w_k e^{2\pi k t i}\) and \(v(t) = \sum _{k \in {\mathbb Z}} v_k e^{2\pi k t i}\) be two complex-valued zero mean signals from our class. Let \(W(t)\) and \(V(t)\) be their trajectories, respectively, for the same time-delay embedding. If the unthresholded recurrence plots \(\text{ URP }_W\) and \(\text{ URP }_V\) coincide and the associated graph \(G_W\) is complete, then the signal \(v(t)\) is determined by \(w(t)\) up to conjugacy and a unimodular factor, i.e., there exists a unimodular constant \(\alpha \) such that \(v(t) = \alpha w(t)\) or \(v(t) = \alpha \overline{w(t)}\).

Recall that the graph \(G_W\) has positively labeled nodes \(k \in K_W\) which in fact correspond to the pairs of indices \((k,-k)\). Also, adjacency requires both \(\langle T_p, T_q \rangle \) and \(\langle T_p, T_{-q} \rangle \) to be nonzero. These are more restrictive conditions than what we have used for real-valued signals in [1], where we were able to give necessary and sufficient conditions for the unique reconstruction of a signal from its URP (up to a sign). It is still an open question to find necessary and sufficient conditions for the reconstruction of complex-valued signals.

In the case of a complete graph \(G_W\), Theorem 1 implies that the magnitudes \(|v(t)|\) and \(|w(t)|\) coincide. This means that a URP with a complete graph uniquely determines the magnitude of the underlying complex-valued signal. On the other hand, if the graph \(G_{W}\) is not complete then signals with magnitudes of different morphology can exhibit identical URPs. The first example of Sect. 4 demonstrates this.

3 Unthresholded Recurrence Plots for Narrow Band Signals

Motivated by practical applications, we now focus on real-valued signals with a narrow band power spectrum. A narrow band signal can be considered as an amplitude modulated sinusoid. Due to the special properties of an associated complex signal representation, the well-known ‘analytic signal’, the results of the previous section can be used to employ unthresholded recurrence plots an alternative way.

Definition 2

For a given real-valued zero mean signal \(x(t) = \sum _{k \in {\mathbb Z}} x_k e^{2\pi k t i}\), the complex-valued analytic signal \(z(t)\) is defined as follows:

$$\begin{aligned} z(t) = 2 \sum _{k > 0} x_k e^{2\pi k t i}. \end{aligned}$$
(13)

Consequently: \(x(t) = Re \left( z(t) \right) \).

The trajectory \(Z(t)\) of the analytic signal \(z(t)\) associated with \(x(t)\) is given by:

$$\begin{aligned} Z(t) = 2 \sum _{k > 0} x_k e^{2\pi k t i} T_k. \end{aligned}$$
(14)

Proposition 2

Let \(z(t) = 2 \sum _{k > 0} x_k e^{2\pi k t i}\) be an analytic signal. Suppose that the squared unthresholded recurrence plot \(\text{ URP }_Z(u,v)^2 = \Vert Z(u)-Z(v) \Vert ^2\) can be expressed as a 2D-Fourier series:

$$ \text{ URP }_Z(u,v)^2 = \sum _{p \in {\mathbb Z}} \sum _{q \in {\mathbb Z}} \fancyscript{Z}_{p,q} e^{2 \pi (p u + q v) i}. $$

Then the 2D-Fourier coefficients \(\fancyscript{Z}_{p,q}\) can be expressed through the coefficients \(x_k\) of the real-valued signal \(x(t)\) as:

$$\begin{aligned} \fancyscript{Z}_{m,n} = \left\{ \begin{array}{ccl} -4 \langle T_{m + n}, T_0 \rangle x_{m} \overline{x_{-n}} &{} &{} \text{ for } m > 0, n < 0, \\ -4 \langle T_{m + n}, T_0 \rangle \overline{x_{-m}} x_{n} &{} &{} \text{ for } m < 0, n > 0, \\ 0 &{} &{} { otherwise}. \\ \end{array} \right. \end{aligned}$$
(15)

An analytic signal is a special case of zero mean complex-valued signal

\(w(t) = \sum _{k \in {\mathbb Z}} w_k e^{2\pi k t i}\), with \(w_k = 0\) for \(k \le 0\), i.e.: \(w(t) = \sum _{k > 0} w_k e^{2\pi k t i}\). For the class of analytic signals, Corollary 1 therefore reduces to the following result.

Corollary 2

Let \(w(t) = \sum _{k > 0} w_k e^{2\pi k t i}\) and \(v(t) = \sum _{k > 0} v_k e^{2\pi k t i}\) be two zero mean analytic signals from our class. Let \(W(t)\) and \(V(t)\) be their trajectories, respectively, for the same time-delay embedding. If their URPs coincide, then also the power spectra of the signals \(w(t)\) and \(v(t)\) coincide: for all \(k > 0\) it holds that \(|w_k| = |v_k|\).

Because the complex conjugate of a nontrivial analytic signal is not itself an analytic signal, Theorem 1 reduces to the following result.

Theorem 2

Let \(w(t) = \sum _{k > 0} w_k e^{2\pi k t i}\) and \(v(t) = \sum _{k > 0} v_k e^{2\pi k t i}\) be two zero mean analytic signals from our class. Let \(W(t)\) and \(V(t)\) be their trajectories, respectively, for the same time-delay embedding. If the unthresholded recurrence plots \(\text{ URP }_W\) and \(\text{ URP }_V\) coincide and the associated graph \(G_W\) is complete, then the signal \(v(t)\) is determined by \(w(t)\) up to a unimodular factor, i.e., there exists a unimodular constant \(\alpha \) such that \(v(t) = \alpha w(t)\).

We now turn to narrow band analytic signals \(z(t)\) which can be regarded as a amplitude modulated carrier signals:

$$\begin{aligned} z(t) = e^{2 \pi c t i} \left( 2 x_c + w(t) \right) , \end{aligned}$$
(16)

where \(c \in {\mathbb Z}^+\) denotes the index of the corresponding Fourier coefficient \(x_c\) and also the carrier frequency (which is integer because we consider periodic signals with period \(1\)). The complex-valued signal \(w(t)= \sum _{k \in {\mathbb Z}} w_k e^{2\pi k t i}\) is referred as the modulating signal, which has:

$$\begin{aligned} w_k = \left\{ \begin{array}{lcl} \displaystyle 2 x_{c+k} &{} \quad &{} \text{ for } k > -c \wedge k \ne 0, \\ \displaystyle 0 &{} \quad &{} \text{ for } k \le -c \text{ or } k = 0. \\ \end{array} \right. \end{aligned}$$
(17)

A geometric interpretation of Eq. (16) is given in Fig. 2. There, the narrow band signal \(z(t)\) is represented as a rotating vector \(\overrightarrow{{ OQ}} = \overrightarrow{{ OP}} + \overrightarrow{{ PQ}}\). The vector \(\overrightarrow{{ OP}}\) represents the constant signal \(2 x_c\) and the vector \(\overrightarrow{{ PQ}}\) represents the modulating signal \(w(t)\), both rotating at a constant angular velocity \(2 \pi c\).

Fig. 2
figure 2

Geometric interpretation of a narrow band signal \(z(t)\) or its trajectory \(Z(t)\) as a rotating resultant \(\overrightarrow{OQ}\) of a constant vector \(\overrightarrow{OP}\) and a modulating vector \(\overrightarrow{PQ}\), all rotating at angular velocity \(2 \pi c\)

The following proposition interrelates the trajectories, the URPs, and the graphs of the analytic signal \(z(t)\) and the modulating signal \(w(t)\).

Proposition 3

Let \(c \in {\mathbb Z}^{+}\) be a carrier frequency and \(x(t)\) a zero-mean periodic signal from our class. Then:

  1. (1)

    The trajectory \(Z(t)\) of the analytic signal \(z(t)\) can be expressed trough the trajectory \(W(t)\) of the modulating signal \(w(t)\) as:

    $$\begin{aligned} Z(t) = e^{2 \pi c t i} \text{ diag } \left( T_c \right) \left( 2 x_c T_0 + W(t) \right) . \end{aligned}$$
    (18)

    in which \(\text{ diag }(T_c)\) denotes the diagonal matrix having the entries of the vector \(T_c\) along its main diagonal.

  2. (2)

    Let \(\text{ URP }_Z\) and \(\text{ URP }_W\) be the unthresholded recurrence plots of the analytic signal \(z(t)\) and the modulating signal \(w(t)\), respectively. If \(c(u-v) \in \mathbb Z\) then:

    $$\begin{aligned} \left| Z(u) - Z(v) \right|&= \left| W(u) - W(v) \right| , \end{aligned}$$
    (19)
    $$\begin{aligned} \text{ URP }_Z(u,v)&= \text{ URP }_W(u,v), \end{aligned}$$
    (20)

    in which \(| \cdot |\) denotes the entry-wise absolute value.

  3. (3)

    The 2D-Fourier coefficients \(\fancyscript{W}_{p,q}\) of \(\text{ URP }_W(u,v)^2\) can be expressed through the 2D-Fourier coefficients \(\fancyscript{Z}_{p,q}\) of \(\text{ URP }_Z(u,v)^2\) as:

    $$\begin{aligned} \fancyscript{W}_{p,q} = \fancyscript{Z}_{p+c,q-c} + \fancyscript{Z}_{q+c,p-c}. \end{aligned}$$
    (21)
  4. (4)

    The nodes of the graph \(G_W\) can be obtained from the nodes of the graph \(G_Z\) as:

    $$\begin{aligned} K_W = \{k \in {\mathbb Z}^+ \,| \, x_{c+k} \ne 0 \vee x_{c-k} \ne 0\}. \end{aligned}$$
    (22)

Figure 2 also provides a geometric interpretation of part (1) of this proposition. Now, the trajectory \(Z(t)\) is represented as a rotating vector \(\overrightarrow{OQ} = \overrightarrow{OP} + \overrightarrow{PQ}\), rotating at a constant angular velocity \(2 \pi c\). The vectors \(\overrightarrow{OP}\) and \(\overrightarrow{PQ}\) now represent the constant vector \(\text{ diag }\left( T_c \right) (2 x_c T_0) = 2 x_c T_c\) and the modulating trajectory \(\text{ diag }\left( T_c \right) W(t)\), respectively.

In order to go beyond the visual impression yielded by RPs, several measures which quantify structures in RPs, have been proposed in [3] and are known as recurrence quantification analysis (RQA). These measures are based on horizontal (or vertical) and on diagonal lines of an RP. An important difference between the unthresholded recurrence plots \(\text{ URP }_X^2\) and \(\text{ URP }_Z^2\) for narrow band signals lies in the frequency content of their restrictions to these lines.

Since we consider complex-valued periodic signals with period \(T = 1\) it holds that \(f_k = \frac{k}{T} = k\). Therefore, for convenience we shall call the indices \(k\) also frequencies.

Proposition 4

Let \(x(t)\) be a zero-mean real periodic signal with period \(1\), which has a finite Fourier series with the frequency range \(\{c - d, \ldots , c + d\}\). Then:

  1. (1)

    The restrictions of \(\text{ URP }_X(u,v)^2\) to horizontal, vertical and diagonal lines, have the frequency ranges:

    $$ \begin{array}{lll} v &{} \text{ is } \text{ constant }: &{} \{0,\ldots ,2 d\} \cup \{c - d ,\ldots ,c + d \} \cup \{2 c - 2 d,\ldots ,2 c + 2 d\}; \\ u &{} \text{ is } \text{ constant }: &{} \{0,\ldots ,2 d\} \cup \{c - d ,\ldots ,c + d \} \cup \{2 c - 2 d,\ldots ,2 c + 2 d\}; \\ u-v &{} \text{ is } \text{ constant }: &{} \{0,\ldots ,2 d\} \cup \{2 c - 2 d,\ldots ,2 c + 2 d\}. \end{array} $$
  2. (2)

    The restrictions of \(\text{ URP }_Z(u,v)^2\) to horizontal, vertical and diagonal lines, have the frequency ranges:

    $$ \begin{array}{lll} v &{} \text{ is } \text{ constant }: &{} \{0,\ldots ,2 d\} \cup \{c - d ,\ldots ,c + d\}; \\ u &{} \text{ is } \text{ constant }: &{} \{0,\ldots ,2 d\} \cup \{c - d ,\ldots ,c + d\}; \\ u-v &{} \text{ is } \text{ constant }: &{} \{0,\ldots ,2 d\}. \end{array} $$
  3. (3)

    The frequency ranges \(\{0,\ldots ,2 d\}\), \(\{c - d ,\ldots ,c + d\}\) and \(\{2 c - 2 d,\ldots ,2 c + 2 d\}\) are mutually disjoint if and only if \(c > 3 d\).

Note that, contrary to \(\text{ URP }_X(u,v)^2\), the restrictions of \(\text{ URP }_Z(u,v)^2\) to horizontal, vertical and diagonal lines, have no frequencies in the range \(\{2 c - 2 d,\ldots ,2 c + 2 d\}\). Also note that the frequency range of the restriction of \(\text{ URP }_Z(u,v)^2\) to diagonal lines only depends on the bandwidth \(2d\) of the signal \(x(t)\). These properties appear as elongated contours along the diagonal lines in \(\text{ URP }_Z\).

To illustrate this result, we here present an example. We consider a real signal \(x(t)=\sum _{k=-22}^{-18} x_k e^{2\pi k t i} + \sum _{k=18}^{22} x_k e^{2\pi k t i}\), involving just five different frequencies, for which the Fourier coefficients are given by:

$$ \begin{array}{lll} x_{18} &{}= \overline{x_{-18}} &{}= 3 e^{-5i}, \\ x_{9} &{}= \overline{x_{-9}} &{}= 4 e^{3i}, \\ x_{10} &{}= \overline{x_{-10}} &{}= 6 e^{4i}, \\ x_{11} &{}= \overline{x_{-11}} &{}= 5 e^{-2i}, \\ x_{22} &{}= \overline{x_{-22}} &{}= 2 e^{-6i}. \end{array} $$

The signal \(x(t)\) and its analytic signal \(z(t)\) have the frequency range \(\{c - d,\ldots ,c + d\}\) for the settings \(c = 20\) and \(d = 2\). The signal \(x(t)\) and its envelope \(\pm \left| z(t) \right| \) are displayed in Fig. 3a. The magnitude spectrum of \(x(t)\) is displayed in Fig. 3b. The unthresholded recurrence plots \(\text{ URP }_{X}\) and \(\text{ URP }_{Z}\) are computed for the settings \(M = 4\) and \(\tau = \frac{1}{3}\) and are displayed in Fig. 3c and d, respectively. The magnitude spectra of \(\text{ URP }_X(u,v)^2\) and \(\text{ URP }_Z(u,v)^2\) on the horizontal lines \((u, v) = (t, 0.625)\), the vertical lines \((u, v) = (0.625, t)\) and on the diagonal lines \((u, v) = (t + 0.125, t)\), with \(t \in [0,1)\), are displayed in Fig. 4a and b, respectively. These figures demonstrate that different parts of the spectrum can be investigated in isolation, by studying appropriately selected lines in the URPs of either \(x(t)\) or \(z(t)\).

Fig. 3
figure 3

a Signal \(x(t)\) and its envelope \(\pm \left| z(t) \right| \), b magnitude spectrum of \(x(t)\), c URP of the real signal \(x(t)\), d URP of the analytic signal \(z(t)\)

Fig. 4
figure 4

Magnitude spectra along selected lines [a \(u = 0.625\) or \(v=0.625\), b \(u-v=0.125\)] in the squared URPs of the signal \(x(t)\) (top) and its analytic signal \(z(t)\) (bottom)

4 Examples, Including an Application in EEG Analysis

To illustrate the main results and techniques of the previous sections, we here present two more examples.

In the first example we investigate four different settings for \(M\) and \(\tau \), which may cause complex-valued signals with morphologically different magnitudes still to exhibit identical URPs. This example serves to demonstrate the limitations that apply to the interpretation of a URP, emanating from the choice of embedding dimension and time-delay.

In the second example we consider an application in EEG analysis, which concerns a digitally sampled measurement signal featuring a so-called alpha rhythm. The measured alpha rhythm is band-pass filtered to obtain the so-called alpha band signal. We investigate the unthresholded recurrence plots of the associated analytic signal and the modulating signal for a given choice of the carrier frequency.

Fig. 5
figure 5

Graphs, magnitudes and URPs for different settings of embedding dimension \(M\) and time-delay \(\tau \), for four different pairs of signals \(v(t)\) and \(w(t)\) specified in the text

Example 1

Different complex-valued signals exhibiting identical URPs. For four different settings of \(M\) and \(\tau \) we give pairs of complex-valued signals \(v(t)=\sum _{k=-2}^2 v_k e^{2\pi k t i}\), \(w(t)=\sum _{k=-2}^2 w_k e^{2\pi k t i}\) with morphologically different magnitudes but identical URPs. In accordance with Corollary 1 it holds that \(|v_{-k}|^2 +|v_{k}|^2 = |w_{-k}|^2 +|w_{k}|^2\), for \(k \in {1,2}\).

The associated graphs \(G_V\) and \(G_W\) in all cases have exactly \(2\) nodes, labeled \(1\) and \(2\). Adjacency of those nodes depends on the values of \(M\) and \(\tau \). Recall that two distinct nodes \(p, q \in K_W\) are adjacent if and only if both \(\langle T_p, T_q \rangle \ne 0\) and \(\langle T_p, T_{-q} \rangle \ne 0\).

  1. (i)

    \(M = 4\) and \(\tau = \frac{1}{6}\), see Fig. 5a.

    $$ \begin{array}{lllll} v_{-2} = 6, &{} v_{-1} = 1, &{} v_{1} = -3, &{} v_{2} = -2 i, \\ w_{-2} = 6 i, &{} w_{-1} = -1, &{} w_{1} = 3, &{} w_{2} = 2. \end{array} $$

    The graph is not complete, since the nodes \(1\) and \(2\) are not adjacent.

  2. (ii)

    \(M = 4\) and \(\tau = \frac{1}{8}\), see Fig. 5b.

    $$ \begin{array}{lllll} v_{-2} = 0, &{} v_{-1} = 3, &{} v_{1} = -4, &{} v_{2} = 5 i, \\ w_{-2} = 3, &{} w_{-1} = 0, &{} w_{1} = 5 i, &{} w_{2} = 4 . \end{array} $$

    The graph is not complete, since the nodes \(1\) and \(2\) both have no self-loops.

  3. (iii)

    \(M = 6\) and \(\tau = \frac{1}{8}\), see Fig. 5c.

    $$ \begin{array}{lllll} v_{-2} = 0, &{} v_{-1} = 1, &{} v_{1} = 1, &{} v_{2} = 2 + 2 i, \\ w_{-2} = -2 i, &{} w_{-1} = 1, &{} w_{1} = 1, &{} w_{2} = 2. \end{array} $$

    The graph is not complete, since the node \(2\) has no self-loop.

  4. (iv)

    \(M = 6\) and \(\tau = \frac{1}{4}\), see Fig. 5d.

    $$ \begin{array}{lllll} v_{-2} = 1, &{} v_{-1} = 0, &{} v_{1} = 2 + 2 i, &{} v_{2} = 1, \\ w_{-2} = 1, &{} w_{-1} = -2 i, &{} w_{1} = 2, &{} w_{2} = 1. \end{array} $$

The graph is not complete, since the node \(1\) has no self-loop.

This example demonstrates that for certain ‘unfortunate’ choices of \(M\) and \(\tau \) the magnitude of the underlying complex-valued signal cannot be uniquely retrieved from the URP. In such cases, in view of Theorem 1, the graphs associated with the URPs are incomplete.

Example 2

EEG analysis featuring an alpha rhythm. In EEG analysis an EEG signal is decomposed into five band signals corresponding to the delta (0.1–4 Hz), theta (4–8 Hz), alpha (8–12 Hz), beta (12–30 Hz), and gamma (30–100 Hz) frequency bands, see [15]. These basic EEG frequency bands are understood to reflect different functional processes in the brain.

From a digitally sampled EEG measurement signal we consider an excerpt of \(N = 500\) samples, exhibiting an alpha rhythm, with a duration of \(T = 2\) s. Alpha rhythms are characterized by a clear peak in their magnitude spectrum for a frequency in the alpha band (8–12 Hz), see Fig. 6a. The alpha band signal \(x(t)\), see Fig. 6b, is obtained from the alpha rhythm by selecting the coefficients with frequencies \(f_k = \frac{k}{T}\) in the alpha frequency band, i.e. \(k \in \left\{ 16,\ldots ,24\right\} \). For the setting \(c = 20\) (i.e. \(f_c = \frac{c}{T}\) = 10 Hz), the modulating signal \(w(t)\) is constructed from the analytic signal \(z(t)\) using Eq. (16). The URPs of the signal \(z(t)\) and the signal \(w(t)\), for the settings \(M = 3\) and \(\tau = \frac{1}{50} T = 0.04\) s, are both displayed in Fig. 7. Note that \(\tau \) is an integer multiple of the sampling time \(\varDelta t := \frac{T}{N} = 0.004\) s.

The graph \(G_Z\) has 9 nodes: \(k \in K_Z = \left\{ 16,\ldots ,24\right\} \). The graph \(G_W\) has 4 nodes: \(k \in K_W = \left\{ 1,\ldots , 4\right\} \) which are obtained from \(K_Z\) by using part (4) of Proposition 3. Since \(M\) and the denominator of \(\frac{\tau }{T}\) are co-prime, it follows from Part (2) of [1, Corollary 3.5] that the graphs \(G_Z\) and \(G_W\) are complete. Consequently, the signal \(z(t)\) is determined up to a unimodular factor by \(\text{ URP }_Z\), and the signal \(w(t)\) is determined up to conjugacy and a unimodular factor by \(\text{ URP }_W\).

According to part (1) of Proposition 3 it holds that \(\text{ URP }_Z(u,v)\) an \(\text{ URP }_W(u,v)\) coincide on the diagonal lines \(10(u-v) \in \mathbb Z\), but they are different between these lines. Some of these diagonal lines are indicated by dashed black lines in the upper triangular part of \(\text{ URP }_W\), see in Fig. 7. In view of part (2) of Proposition 4 it holds that the signals \(z(t)\) and \(w(t)\) have frequency ranges \(\{\frac{k}{T} \, | \ |k| \in \{c-d,\ldots , c+d\}\}\) and \(\{\frac{k}{T} \, | \ |k| \in \{1,\ldots , d\}\}\), respectively, for the settings \(c = 20\) and \(d = 4\). Therefore the restrictions of \(\text{ URP }_W(u,v)^2\) to horizontal, vertical and diagonal lines, all have the frequency range \(\{\frac{k}{T} \, | \ |k| \in \{0,\ldots , 2 d\}\} = \{\frac{k}{2} \, | \ |k| \in \{0,\ldots , 8\}\}\). The restriction of \(\text{ URP }_Z(u,v)^2\) diagonal lines has the latter frequency range too, whereas the restrictions to horizontal and vertical lines also have higher frequencies in the range \(\{\frac{k}{T} \, | \ |k| \in \{c-d,\ldots , c+d\}\} = \{\frac{k}{2} \, | \ |k| \in \{16,\ldots , 24\}\}\).

Fig. 6
figure 6

a Measured alpha rhythm signal (top), b selected alpha band signal (top), and their corresponding magnitude spectra (bottom)

Fig. 7
figure 7

URPs of the analytical signal \(z(t)\) and the modulating signal \(w(t)\)

In EEG amplitude modulation analysis, the envelopes of EEG band signals are studied, see e.g. [1620]. In this example, the envelope \(\pm |z(t)|\) of the alpha band signal \(x(t)\) is displayed in Fig. 6b. The horizontal and vertical lines in \(\text{ URP }_Z\) provide information about the magnitude \(|z(t)|\). To illustrate this, we approximate \(|z(t)|\) by \(\sqrt{\frac{|z(t-\tau )|^2 + |z(t)|^2 + |z(t+\tau )|^2}{3}} = \frac{\Vert Z(t-\frac{1}{2}(M-1)\tau )\Vert }{\sqrt{M}}\). The norm \(\Vert Z(t-\frac{1}{2}(M-1)\tau )\Vert \) in the latter term can be computed by using an identity provided by [1, Proposition 5.1]:

$$\begin{aligned} T^2\Vert Z(t)\Vert ^2 = T \int \limits _0^T \text{ URP }_{Z}(u,t)^2 du - \frac{1}{2} \int \limits _0^T \int \limits _0^T \text{ URP }_{Z}(u,v)^2 du \, dv. \end{aligned}$$
(23)

The integrand in the single integral term is a restriction of \(\text{ URP }_{Z}\) to the horizontal line corresponding to a given time instance \(t\). The double integral has a constant value which is independent of \(t\). The approximation \(\frac{\Vert Z(t-\frac{1}{2}(M-1)\tau )\Vert }{\sqrt{M}}\) (dashed graph) and the approximation error \(\frac{\Vert Z(t-\frac{1}{2}(M-1)\tau )\Vert }{\sqrt{M}} - |z(t)|\) (solid graph) are displayed in Fig. 8. This example shows how the frequency range of the complex-valued modulating signal \(w(t)\) can be determined from the frequency range of the restrictions of \(\text{ URP }_Z^2\) to diagonal lines. It also demonstrates how the envelope of the real-valued narrow band signal \(x(t)\) is related to the information content of the horizontal and vertical lines in \(\text{ URP }_{Z}\). As a new alternative method for EEG amplitude modulation analysis one could study \(\text{ URP }_W\) instead.

Fig. 8
figure 8

Approximation for the envelope \(|z(t)|\) (dashed) constructed from horizontal lines in \(\text{ URP }_{Z}\), and the corresponding approximation error (solid)

5 Conclusions and Discussion

When considering URPs as a tool to extract information from complex-valued signals, we have argued in this paper that it is important to first establish which information can or cannot be recovered from URPs.

In Sect. 2 we extended our work [1], concerning URPs of real-valued signals, to complex-valued signals. There we focused on computing the Fourier coefficients \(w_k\) of \(w(t)\) from the 2D-Fourier coefficients \(\fancyscript{W}_{p,q}\) of \(\text{ URP }_W\). We showed that a signal \(w(t)\), with a complete associated graph \(G_{W}\), can be uniquely recovered from its URP up to conjugacy and a unimodular factor, see Theorem 1. If the graph \(G_{W}\) is not complete then signals with morphologically different magnitudes can exhibit identical URPs. The first example of Sect. 4 demonstrates this. We also related recurrence plots of complex-valued signals to joint recurrence plots which allows studying the relationship between two real-valued signals, see [14]. It is found that recurrence plots of complex-valued signals can be used to locate joint recurrences in a pairs of real-valued signals.

In Sect. 3, we used the special properties of complex signal representation to study signals with a narrow band power spectrum. For a given choice of the carrier frequency, a corresponding modulating signal can be computed from the analytic signal. Modulating signals provide an alternative way to employ URPs for studying narrow band signals. The trajectories, URPs and the graphs of the analytic signal and the modulating signal are related in Proposition 3. The frequency ranges of restrictions of a URP on horizontal, vertical and diagonal lines are investigated to explain the elongated contours along the diagonal lines in the URP of the analytic signal. It is shown how the frequency range of restrictions on horizontal and vertical lines differs from that on diagonal lines. It is found how the frequency ranges of these restrictions for a real-valued signal differ from those of the corresponding analytic signal. We also illustrated how the information content on horizontal and vertical lines in a URP can be used to approximate the envelope of the underlying narrow band signal. These results are demonstrated by the second example of Sect. 4.

A couple of research questions still remain open. (1) One important question concerns redundancy in the URP, being a 2-dimensional representation of a 1-dimensional signal, which is currently under investigation. The question arises to which extent a selected part of a URP may still contain all the information contained in the entire URP. This is of importance for relating subpatterns in a unthresholded recurrence plot \(\text{ URP }_W\) to localized (morphological) properties of the underlying complex-valued signal \(w(t)\). (2) To quantify patterns that occur in RPs, several measures have been proposed in the literature, see e.g. [3], that are used in recurrence quantification analysis (RQA). An important question concerns the generalization of these measures to RPs of complex-valued signals.