1 Introduction

Stochastic resonance was originally proposed by Benzi and his coworkers in 1981 to interpret the periodic recurrences of the earth’s ice ages [1], which has attracted lots of attention now and got its potential application in a wide range, for instance, in paleoclimatology [2], electronic circuits [3], lasers [4], chemical systems [5], biological systems [6] and so on. Consequently, great efforts have been devoted to it and many results have been reported [719]. To quantify the onset of stochastic resonance, several approaches (or indicators) have been suggested, such as signal-to-noise ratio (SNR), Fokker–Planck description, linear-response theory and residence-time distributions. Among these approaches, undoubtedly, SNR is the most popular one, which indicates the ratio of the \(\delta \) peak height in the power spectrum to the noise background. The expression of SNR was firstly derived by McNamara et al. [8] in the adiabatic limit through considering a master equation of two-state model. And it was extensively adopted by many authors in their papers and reviews [14, 17, 18]. However, in order to obtain the representation of SNR and model the nonadiabatic regime of a given dynamical system, it is essential to calculate the corresponding Fokker–Planck equation and probability density. Hence, Fokker–Planck equation plays a prominent role in the description of stochastic resonance, and has been repeatedly invoked and investigated [17, 18]. Moreover, another elaborate criterion of the stochastic resonance phenomenon is the linear-response theory, which was proposed by Dykman et al. [1113] to investigate an overdamped bistable system under a weak periodic force and an external noise. In particular, this method is also applied within the framework of nonstationary stochastic processes. Recently, a new and feasible tool, that is, statistical complexity measures for quantifying stochastic resonance was proposed by Rosso et al. [15, 16] when they studied a Brownian particle in a sinusoidally modulated bistable potential.

Statistical complexity measure is a functional to characterize the probability distribution associated with the time series generated by a dynamical system. Therefore, it not only verifies the randomness but also describes the correlation structures of a given system. In recent years, a vast majority of research on the measures of complexity have been extensively done [2026]. López-Ruiz et al. first proposed a definition of statistical complexity measure based on a probabilistic description of physical systems, and discovered accessible states and probability distribution of the dynamical evolution of a given system by this scheme [20]. Then, Martin et al. studied the concept of disequilibrium as an essential ingredient of statistical complexity measures, and replaced the Euclidean distance by the Wootter’ distance and the Jensen–Shannon divergence, respectively. Meanwhile, they applied the “cured” complexity measures to the logistic map and clearly exhibited its advantages [21, 22]. In 2007, Rosso et al. introduced a representation space called the Complexity- Entropy causality plane, and showed that it was a useful method for dealing with the subtle difference between noise and chaos [23]. Subsequently, Zunino et al. revealed the existence of a time delay by using the permutation entropy and the permutation statistical complexity in the standard well-known Mackey-Glass system, and demonstrated that the permutation approach was helpful for unveiling the presence of a time delay in time delay identification scenarios [26].

With the previous descriptions and studies [15, 16], it was shown that, in the case of Gaussian white noise, the entropy displayed a minimum and the complexity measure exhibited a maximum for an optimal level of noise, which were regarded as the feature of resonant-like behavior. It is also found that statistical complexity measures had great potential for the precise detection of subtle signatures under analysis. However, to our knowledge, the effect of colored noise on stochastic resonance by means of complexity measures has not been reported yet. Motivated by the above discussions, in this paper, we focus on the statistical complexity measures which are used to detect the constructive role of colored noise in a bistable system assisted by a periodic signal.

This paper is organized as follows. In Sect. 2, Langevin equation under additive colored noise is introduced, and the SNR is calculated. And then, in Sect. 3, the definition of the statistical complexity measures are described in detail. Later, the phenomenon of stochastic resonance together with statistical complexity measures is investigated in Sect. 4. Finally, the conclusions are proposed in Sect. 5.

2 Model and SNR

A Langevin equation with additive colored noise in the presence of a periodic signal is governed by

$$\begin{aligned} \dot{x}=-U^{\prime }_0 \left( x \right) +Acos\!\left( {\omega t} \right) +\xi \left( t \right) , \end{aligned}$$
(1)

where the symmetric double-well potential \(U_0 \left( x\right) =-{x^{2}}/2+{x^{4}}/4\) has two stable states \(x_{s1} =1,\,x_{s2} =-1\) and an unstable state \(x_{un} =0;\,A\) and \(\omega \) represent the amplitude and the frequency of the periodic signal, respectively; \(\xi \left( t \right) \) is the Ornstein-Uhlenbek noise with intensity \(Q\) and correlation time \(\tau \), satisfied statistical properties

$$\begin{aligned} <\!\xi \left( t \right) \!>&= 0, \nonumber \\ <\!\xi \left( t \right) \xi \left( s \right) \!>&= \frac{Q}{\tau }\exp \left( {-\frac{\left| {t-s} \right| }{\tau }} \right) \!. \end{aligned}$$
(2)

Due to the non-Markovian nature of nonlinear system subjected to Gaussian colored noise, it is very hard to obtain approximate Fokker–Planck equation. So many approximate methods have been proposed, for example, decoupling ansatz [27, 28], unified colored noise approximation (UCNA) [2931], etc. Set \(\tilde{U}(x)\) to be the generalized potential, and it can be given as

$$\begin{aligned} \tilde{U}(x)&= \frac{\tau }{2}x^{6}+\left( {\frac{1}{4}-\tau } \right) x^{4}-\tau A\cos (\omega t)x^{3}\nonumber \\&\quad +\,\frac{\tau -1}{2}x^{2}+(\tau -1)A\cos (\omega t)x \nonumber \\&\quad +\,\frac{D}{2}\ln D-D\ln \left[ {1-\tau \left( {1-3x^{2}} \right) } \right] . \end{aligned}$$
(3)

According to Ref. [32], the transition rates \(W_\pm \) can be derived by using steepest descent method, which has the following form

$$\begin{aligned} W_\pm&= \frac{\left[ {\left| {U_0 ^{\prime \prime }(x_{un} )U_0 ^{\prime \prime }(x_{s-} )} \right| } \right] ^{\frac{1}{2}}}{2\pi }\exp \nonumber \\&\quad \times \left\{ {-\frac{1}{Q}\left[ {\tilde{U}(x_{un} )-\tilde{U}(x_{s-} )} \right] } \right\} . \end{aligned}$$
(4)

Therefore, the SNR can be determined from (4) as

$$\begin{aligned} S\!N\!R=\frac{\pi \alpha _1^2 A^{2}}{4\alpha _0 }\left[ {1-\frac{\alpha _1^2 A^{2}}{2(\alpha _0^2 +\omega ^{2})}} \right] ^{-1}, \end{aligned}$$
(5)

with \(\beta =A\cos (\omega t),\;\frac{1}{2}\alpha _0 =\left. {W_\pm } \right| _{\beta =0} ,\;\frac{1}{2}\alpha _1 =-\left. {\frac{dW_\pm }{d\beta }} \right| _{\beta =0} \). By virtue of this expression, the stochastic resonance phenomenon of the Eq. (1) has been widely studied by amounts of researchers over the past decades, and many perfect results were reported in their papers. In the present paper, we intend to use a new tool, statistical complexity measures, again to quantify the stochastic resonance of this system.

3 Statistical complexity measures

An information measure can be regarded as a quantity describing a given probability distribution. Shannon’s logarithmic information measure is defined by the form \(S[P]=-\sum _{j=1}^N {p_j \ln (p_j )} \), which denotes the uncertainty of the physical process with the probability distribution \(P\!=\!\left\{ {p_j, j\!=\!1,\ldots ,N} \right\} \). Obviously, in the case of \(S[P]=0\), the underlying system characterized by the probability distribution \(P\) reaches an extreme circumstance of “perfect order”. Otherwise, the given process has a maximum “randomness” if \(S[P]=\ln N\). Based on the given probability distribution \(P\) and the corresponding information measure \(S[P]\), the definition of “disorder” \(\mathcal{H }\), i.e., the normalized Shannon entropy is given as

$$\begin{aligned} \mathcal{H }[P]=S[P]/S_{\max } , \end{aligned}$$
(6)

where \(S_{\max } =S[P_e ]=\ln N\) and \(P_e =\left\{ {1/N,\ldots ,1/N} \right\} \) is the uniform distribution. Then \(0\le \mathcal{H }[P]\le 1\).

It follows that statistical complexity measure cannot be defined in terms of just “disorder” or “information”. It seems more reasonable to propose a measure of “statistical complexity” by adopting some kind of distance \(\mathcal{D }\) to the uniform distribution \(P_e \) [2022, 24]. For this purpose, one can define the “disequilibrium” as

$$\begin{aligned} \mathcal{Q }[P]=Q_0 \cdot \mathcal{D }[P,P_e ], \end{aligned}$$
(7)

where \(Q_0 \) is a normalization constant and \(0\le \mathcal{Q }\le 1\). It reflects the “architecture” of the system. Here, the distance \(\mathcal{D }\) is interpreted and calculated as the Jensen–Shannon divergence \(\mathcal{J }_S \), which satisfied

$$\begin{aligned} \mathcal{J }_S [P_1 ,P_2 ]=\left\{ {S[(P_1 +P_2 )/2]-S[P_1 ]/2-S[P_2 ]/2} \right\} . \end{aligned}$$
(8)

Thus the disequilibrium can be further expressed as

$$\begin{aligned} \mathcal{Q }_J [P]=Q_0 \cdot \mathcal{J }_S [P,P_e ]. \end{aligned}$$
(9)

Here the index \(J\) stands for the Jensen–Shannon divergence of the distance, and the constant \(Q_0 \) is equal to the reciprocal of \(\mathcal{J }_S [P,P_e ]\) when the value of \(\mathcal{J }_S [P,P_e ]\) is maximal, namely,

$$\begin{aligned} Q_0 =-2\left\{ {\left( {\frac{N+1}{N}} \right) \ln (N+1)-2\ln (2N)+\ln N} \right\} ^{-1}. \end{aligned}$$

Therefore, the following functional form for the statistical complexity measure is adopted:

$$\begin{aligned} \mathcal{C }[P]=\mathcal{Q }_J [P]\cdot \mathcal{H }[P]. \end{aligned}$$
(10)

This quantity reflects on not only the interplay between the amount of information stored in the system but also its disequilibrium [20].

From the expression of statistical complexity, it reads immediately that one can calculate the value of statistical complexity iff \(\mathcal{H }\) and \(\mathcal{Q }_J \) were determined. However, it is not an easy job to find an appropriate probability distribution \(P\) from the time series \(\left\{ {x_s ,s=1,\ldots ,M} \right\} \) of a given system. Several approaches have been suggested as the candidates, among which the Bandt and Pompe (BP) methodology [33] was the widely used one. (See Appendix)

4 Stochastic resonance

In this section, we apply the statistical complexity measures as the new measurement to investigate the phenomenon of stochastic resonance of system (1), which is further verified by virtue of the SNR. The Fourth-order Runge-Kutta algorithm is adopted here to solve system (1) numerically. And the Bandt–Pompe method is also employed to calculate the probability distribution from the time series of the consecutive residence time intervals. In addition, the embedding dimension is determined as \(D=6\) and the total length is fixed as \(M=60,000\) of the analyzed time series.

4.1 Stochastic resonance

In this subsection, the stochastic resonance of system (1) is detected with the help of the statistical complexity measures when choosing the parameters as \(A=0.10\), \(\omega =0.05\), \(\tau =0.01\). The result of the SNR is also performed for the purpose of checking the validity of this method.

The dependence of the statistical complexity measures and the SNR on the noise intensity is illustrated in Fig. 1. First of all, it is seen from Fig. 1a that the curve of the statistical complexity is non-monotonous. With the increment of \(Q\), the curve of the complexity increases at first, and then reaches a maximum on a certain noise intensity. Later, this curve presents decreasing when continually increasing the value of \(Q\). By virtue of the definition of the statistical complexity, one can see that the degree of the intricate patterns of the bistable system becomes stronger gradually with the increment of the noise intensity, and reaches a maximum level. Subsequently, it will get weaker when \(Q\) further increases. Figure 1a shows that the statistical complexity has a maximum on a certain value of the noise intensity which is the symbol of resonant-like behavior. Second, in Fig. 1b, the trend of the normalized Shannon entropy is opposite to the statistical complexity’s. The curve of the entropy continuously decreases to a minimum first but gradually increases later. Based on the definition of the normalized Shannon entropy, it is easy to know that, with the increment of the noise intensity, the motion of the bistable system reaches some degree of order, and then this state is destroyed. These phenomena also show that the stochastic resonance occurs. Furthermore, in order to indicate the statistical complexity measures better, the curve of the SNR is given in Fig. 1c. There is a maximum of the SNR curve of the system which is also identified as characteristic of the stochastic resonance phenomenon. By comparing these figures, it is easily found that the results described by the statistical complexity measures are consistent with that quantified by the SNR. Meanwhile, it is also shown in Fig. 1a and b that the curves of the statistical complexity and the normalized Shannon entropy have some smaller peaks, which indicates that some subtle stochastic resonances exist. Therefore, it follows that the statistical complexity measures could be used to characterize some subtle signatures of noise-induced phenomena.

Fig. 1
figure 1

a Complexity, b Entropy and c SNR as a function of the colored noise intensity \(Q\) with \(A=0.10\), \(\omega =0.05\), \(\tau =0.01\)

4.2 Effects of parameters

Further studies are carried out here to study the effects of the correlation time of the noise, the frequency and the amplitude of the periodic signal on the stochastic resonance of the system by means of the statistical complexity measures. Similarly, these results are compared with the SNR.

The effect of the correlation time \(\tau \) of the colored noise on stochastic resonance has been shown in Fig. 2. With the different values of \(\tau \), we present the statistical complexity measures as a function of the noise intensity \(Q\) in Fig. 2a and b. One can see that each curve has an optimum level of noise intensity where the statistical complexity of the system has a maximum and the normalized Shannon entropy has a minimum, which is identified as characters of the occurrence of the stochastic resonance. Furthermore, in Fig. 2a, it is also found that the maximum of the curves of the statistical complexity continuously decreases while increasing the value of \(\tau \). And the position of the peak shifts to the right side of the coordinate. Conversely, the peak value of the normalized Shannon entropy gradually increases as increasing the correlation time in Fig. 2b. The peak position also appears the significant deviation towards the right side. It is easy to obtain the conclusion that the phenomenon of stochastic resonance decreases by means of the statistical complexity measures with increasing the correlation time of the noise. To verify the correctness of this result, the curve of the SNR versus the noise intensity \(Q\) with varied values of \(\tau \) is plotted in Fig. 2c. There exists a single peak in each curve and the stochastic resonance appears. It can also be seen that the SNR decreases with the increment of the correlation time. That is, the stochastic resonance phenomenon is weakened. Therefore, we can show that there is unanimous agreement by comparing the above-mentioned conclusions.

Fig. 2
figure 2

a Complexity, b Entropy and c SNR as a function of the noise intensity \(Q\) for different values of the correlation time \(\tau .A=0.10,\,\omega =0.05\)

In Fig. 3, the curves of the statistical complexity measures and the SNR, which are considered as a function of the noise intensity \(Q\), are described with varied values of the periodic signal frequency \(\omega \). On the one hand, one can see from Fig. 3a and b that each curve of the statistical complexity exhibits a maximum on a certain noise intensity and the normalized Shannon entropy has a minimum on the same noise intensity, which illustrates that the stochastic resonance phenomenon appears. When increasing the value of \(\omega \), the peak value of the statistical complexity continuously decreases first but vanishes later, whereas the minimum of the normalized Shannon entropy increases and then disappears. Moreover, it is also seen that the location of the peaks of the statistical complexity measures shifts to the right side of the axis. These phenomena indicate that the stochastic resonance is suppressed with increasing the signal frequency \(\omega \). On the other hand, the curve of the SNR appears a maximum for different \(\omega \) in Fig. 3c which indicates that the stochastic resonance exists. So, we also find that the phenomenon of the stochastic resonance is weakened with the increment of the frequency. According to these three figures, we can also show that the conclusions obtained by the statistical complexity measures are in consonance with that by the SNR.

Fig. 3
figure 3

a Complexity, b Entropy and c SNR as a function of the noise intensity \(Q\) for different values of the periodic signal frequency \(\omega \). \(A=0.10,\,\tau =0.01\)

The results of the statistical complexity measures and the SNR are given in Fig. 4 for different values of the periodic signal amplitude \(A\). Obviously, the curves of the statistical complexity measures are non-monotonic and the stochastic resonance appears. When increasing the value of the amplitude, the peak of the statistical complexity increases in Fig. 4a while that of the normalized Shannon entropy decreases in Fig. 4b. It means that the signal amplitude can promote the stochastic resonance phenomenon. In addition, one can also see that the stochastic resonance exists and is strengthened with the increment of the amplitude of the signal in Fig. 4c. But above all, there is also a consistency between the conclusions of the statistical complexity measures and that by the SNR. In particular, there are two peaks of the curves of the statistical complexity measures in the case of \(A=0.15\), which implies that the phenomenon of double stochastic resonance happens. But the curve of the SNR still remains one peak for this case. After comparing these two outcomes, we can obtain that the statistical complexity measures are more suitable for detecting the stochastic resonance.

Fig. 4
figure 4

a Complexity, b Entropy and c SNR as a function of the noise intensity \(Q\) for different values of the periodic signal amplitude \(A\). \(\omega =0.05\), \(\tau =0.01\)

4.3 Robustness

We discuss the effects of the embedding dimension and the total length of the time series on the robustness of the results in this subsection.

First of all, we study the effect of embedding dimension \(D\) on the statistical complexity measures in Fig. 5. It is clear that the values of the complexity measure and the normalized Shannon entropy vary with the embedding dimension \(D\). But, the shape of these curves changes slightly in this case. Namely, the result of the occurrence of the stochastic resonance is also found in the case of \(D=4\) and \(D=5\). In addition, in Fig. 6, the curves of the statistical complexity measures versus the noise intensity \(Q\) are given with different values of the total length \(M\) of the time series. Similarly to the previous analysis, there doesn’t exist drastically change on the shape of the curves and the curves still have two peaks. It is also shown that the stochastic resonance phenomenon occurs with reducing the value of \(M\). As summary, these conclusions are consistent with the results on Ref. [15], and demonstrate that the results are robust with respect to the value of \(D\) and \(M\). This implies that the probability distribution of “ordinal patterns” generated by Bandt–Pompe method is stationary and feasible under the condition of \(M\gg D!\).

Fig. 5
figure 5

a Complexity and b Entropy as a function of the noise intensity \(Q\) for different values of the embedding dimension \(D\). \(A=0.10\), \(\omega =0.05\), \(\tau =0.01\)

Fig. 6
figure 6

a Complexity and b Entropy as a function of the noise intensity \(Q\) for different values of the total length \(M\) of consecutive residence times. \(A=0.20\), \(\omega =0.05\), \(\tau =0.01\)

5 Conclusion

In this paper, the statistical complexity measures have been dedicated to investigate the phenomenon of stochastic resonance in a bistable system driven by an additive colored noise and a periodic signal. First of all, the generalized potential is derived by applying the method of UCNA, and then the expression of the SNR of the system is obtained by means of the two-state approach. What’s more, we introduce the definition of the statistical complexity measures, namely, the statistical complexity and the normalized Shannon entropy. Through Fourth-order Runge-Kutta algorithm and BP method, the curves of the statistical complexity measures as a function of the noise intensity are discussed. We can see that the curves of the statistical complexity and the normalized Shannon entropy are non-monotonic, which illustrates the occurrence of the stochastic resonance of the system. In order to check the validity of this method, we also give the result of the SNR and find that there is a consensus between these two conclusions. Meanwhile, we also show that the statistical complexity measures are applied to detect the existence of some subtle behaviors of noise-induced phenomena. Furthermore, the statistical complexity measures are used to discuss the effects of the correlation time of the colored noise, the frequency and the amplitude of the periodic signal on stochastic resonance. It can be found that the stochastic resonance is suppressed with the increment of the correlation time and the frequency, but is promoted as increasing the amplitude. These conclusions are also verified by the SNR. In addition, the robustness of the results are shown when the embedding dimension and the total length of time series of successive residence time are reduced, which also demonstrates that the probability distribution of “ordinal patterns” obtained by BP algorithm is stationary.