 Research
 Open access
 Published:
An interframe dynamic doublethreshold energy detection for spectrum sensing in cognitive radios
EURASIP Journal on Wireless Communications and Networking volume 2017, Article number: 118 (2017)
Abstract
This paper proposes an interframe dynamic double threshold (IFDDT) spectrum sensing algorithm in order to improve the sensing performance based on energy detection (ED) in cognitive radios (CRs). Based on both the activity model of the primary user (PU) and the sensing mechanism of the secondary user (SU), the proposed algorithm exploits the relationship between two adjacent sensing frames and designs dynamic double thresholds for each sensing frame to enhance spectrum sensing performance when the received energy cannot give a reliable local decision. The detection probability and false alarm probability of the proposed sensing scheme are analyzed, and an algorithm for searching the optimal dynamic double thresholds is derived with very low complexity according to the NeymanPearson (NP) test criterion. Theoretical analysis and simulation results show that the proposed algorithm outperforms the ED algorithm.
1 Introduction
Nowadays, wireless communications have been experiencing an increasing tension of the frequency resource which, however, is far from fully utilized under the static spectrum assignment policy [1]. Cognitive radio (CR) technology provides a promising solution to the conflict by allowing the second user (SU) to opportunistically access the licensed spectrum band when it is temporarily not occupied by the primary user (PU) [2].
Spectrum sensing is a critical aspect of CR systems that aims to identify the working state of the PU (i.e., ON or OFF, indicating whether the licensed spectrum is occupied or not, respectively) before allowing the SU temporarily access the channel without causing harmful interference to the PU. Typically, the SU operates spectrum sensing frame by frame, and each frame is divided into two parts: the sensing duration and the data duration [3–5]. The SU detects whether the licensed spectrum is accessed within the sensing duration, and then transmits data within the data duration if the sensing result is OFF (which identifies that the PU’s state is OFF); otherwise, the SU keeps silent.
The accuracy of spectrum sensing is measured by two probabilities: the false alarm probability (denoted as P _{ f }) and the detection probability (denoted as P _{ d }). The false alarm probability is defined as the probability that the PU’s state is identified as ON when its real state is OFF, while the detection probability is defined as the probability that the PU’s state is identified as ON when its real state is also ON. Clearly, a low false alarm probability improves the efficiency of the unused spectrum, whereas a high detection probability reduces the resulting interference in the licensed users [4, 6].
A number of spectrum sensing methods have been proposed for CR systems, such as energy detection (ED), cyclostationarity feature detection, secondorder statistics detection, matchedfiltering detection, compressive sensing detection [7, 8], and multiple antenna detection [9]. The energy detection has been preferred due to its feasible applicability and low implementation complexity. The cyclostationarity feature detection differentiates noise from PU signals by exploiting the cyclostationarity features of the received signals. However, it has high computational complexity and requires the knowledge of the cyclic frequencies which is difficult to be obtained. The secondorder statisticsbased detection is subject to the modulations of primary signals. The matchedfiltering detection is the optimum method only when perfect information about the waveforms of the PU is given. The compressive sensing detection makes use of the sparse structure of primary signals. The multiple antenna detection effectively overcomes the noise uncertainty and improves the detection performance based on the spatial correlation in the multiantenna receiver. Nevertheless, it requires the SU equipped with multiantenna receivers.
In order to avoid error detection caused by dramatic energy decrease, the average signal power of several past sensing frames is used in [10] for the ED schemes. However, conventional EDbased spectrum sensing schemes usually employ only a single fixed threshold. When the received energy of the SU nears the threshold, the decision for the PU’s state is subject to a high probability of misjudgment, thus yielding a loss in sensing performance. In order to alleviate this problem, the doublethreshold energy detection method is discussed in [11]. This method can decrease the interference of the SU to the PU. However, how to set the two thresholds and deal with the received energy falling between the two thresholds are not discussed. Doublethreshold energy detection method is also discussed in cooperative spectrum sensing environment [12]. In this method, each SU sends its observed energy to the fusion center (FC) when the energy falls between the two thresholds; otherwise, the SU sends its decision results. The final decision is made based on the soft combination of the received energy and hard combination of the received decision results in the FC. Therefore, the performance improvements of cooperative spectrum sensing schemes are obtained at the cost of extra control messages and increased computation complexities [13].
An alternative way of improving the ED schemes is to take into account the PU’s activity model during the sensing process. A model of twostate Markov chain is used as an adequate mean accurately describing spectrum occupancy in the time domain in [14–17]. On the one hand, the durations of the PU’s states (ON and OFF) are respectively exponentially distributed [18, 19]. On the other hand, the frame length of the SU is much shorter than both the average durations of the PU’s ON and OFF states [20, 21], which implies that the PU’s activities over successive sensing frames are not independent, especially between adjacent frames. Furthermore, the PU stays at the same state with a high probability during the whole sensing frame [22]. These properties can be exploited to improve the sensing performance of the ED schemes.
In [22], the received energy sequence over successive sensing frames is modeled as a continuous hidden Markov chain, and the final decision is made according to the combined observations from all previous sensing frames. However, this scheme needs to perform simultaneously spectrum sensing and data transmission and hence suffers from implementation difficulties due to selfinterference [23]. In [24] and [25], the PU activity is modeled as a Markov chain, and the final decision is also based on history observations but using different combining rules from that of [22]. However, in the schemes in [24] and [25], each sensing frame is further divided into many short slots for either dynamic spectrum sensing or data transmission. This frequent sensingtransmitting alternating strategy may cause synchronization difficulty on the receiving terminal.
In this paper, using a twostate Markov chain model of the PU’s activity, an interframe dynamic double threshold (IFDDT) ED scheme is proposed. Firstly, the relationship between two adjacent sensing frames is analyzed, and the IFDDT scheme for each sensing frame is designed based on dynamic double thresholds. Then, according to the NeymanPearson (NP) test criterion, an optimization problem is formulated to acquire the optimal dynamic double thresholds which maximize the detection probability while maintaining a maximum tolerable false alarm probability. Finally, the optimization problem is transformed into an easily solvable problem and an algorithm for searching the optimal dynamic double thresholds are derived with very low complexity. Theoretical analysis and computer simulations show that the proposed IFDDT scheme can achieve performance improvement due to dynamic double thresholds even when the received energy cannot give a reliable local decision. Compared to reference [11], theoretical analysis and the implementation method are provided for the proposed doublethreshold energy detection scheme.
The remainder of this paper is organized as follows. In Section 2, the system model is presented. In Section 3, the IFDDT scheme is proposed, and the optimal dynamic double thresholds are derived. Section 4 evaluates the proposed scheme for spectrum sensing through simulations. Finally, Section 5 concludes the paper.
2 System model
We consider a CR system with one PU, one SU, and a single channel licensed to the PU. The PU operates between ON and OFF states alternately, while the SU executes spectrum sensing to the licensed channel and opportunistically transmits data in a framewise manner. In the sequel, the PU’s ON and OFF states are represented by integers “1” and “0,” respectively. The system model is presented in Fig. 1, which shows the PU’s activity model and the SU’s sensing mechanism.
2.1 The PU’s activity model and the SU’s sensing mechanism
Let T _{1} and T _{0} denote the durations that the PU stays respectively in ON and OFF states as shown in Fig. 1. It is well accepted that the durations are exponentially distributed with expectations \(\overline {T}_{1}~=~\alpha \) and \(\overline {T}_{0}~=~\beta \) [25]. The PU’s average activity period is defined as \(\overline {T}_{PU}~=~\overline {T}_{1}~+~\overline {T}_{0}\), and the PU’s traffic load is defined as \(\eta _{\text {PU}}~=~{\overline {T}_{1}}/{\overline {T}_{\text {PU}}}\).
We assume that the SU allocates each frame k with a dynamic length T F _{ k }, consisting of fixed sensing duration τ and varying data transmission duration T F _{ k }−τ for k=1,2,…. Furthermore, we assume that the lengths satisfy the conditions that \(\tau \ll {TF}_{k},{TF}_{k}\ll \overline {T}_{1}\), and \({TF}_{k}\ll \overline {T}_{0}\).
Let z _{ k }∈{0,1} denote the real state of the PU within the sensing duration of any specific frame k at the SU. On the above assumptions, it is clear that there is a high probability that z _{ k } remains unchanged within a whole frame and that z _{ k } is closely related to the past state z _{ k−1} with respect to the preceding frame k − 1 for k > 1 [18, 20, 26].
The PU’s activity can be modeled as a twostate discretetime Markov chain with the stationary distribution
and the transition matrix
where \(p_{ij,k~~1} \triangleq P\{z_{k}=jz_{k1}=i\}\) denotes the state transition probability over two adjacent frames k − 1 and k for i,j∈{0,1}; it is easy to identify that p _{ i0,k − 1} + p _{ i1,k − 1} = 1 for i = 0,1.
Although the frame length T F _{ k } varies with k, it holds that (α + β)T F _{ k − 1}≪1 on the above assumptions. It follows in general that p _{00,k − 1} > p _{01,k − 1} and p _{11,k − 1} > p _{10,k − 1}. This states an inertia property of the PU activity that z _{ k } is more likely to remain the same as z _{ k − 1} between any two adjacent frames k − 1 and k. In the CR system model, the SU is assumed to have full knowledge of parameters α and β [20, 22, 25].
2.2 Statistics for ED
We consider the additive white Gaussian noise (AWGN) for the licensed channel. Let N denote the number of signal samples of the SU. For the frame k, the n _{th} baseband signal sample is expressed as
where n = 1,2,…,N; w _{ k }(n) denotes the independent and identically distributed (i.i.d.) AWGN samples with zeromean and normalized unit variance; and s _{ k }(n) denotes the PU’s signal samples with constant transmit power. Hence, the average received signaltonoise ratio (SNR) per sample at the SU is expressed as \(\gamma ~=~\mathbb {E}\left (s_{k}(n)^{2}\right)\).
As the test statistic of spectrum sensing, the received energy in frame k is given by
Then, the test statistic U _{ k } follows the chisquare distribution with N degrees of freedom. By the central limit theorem, if the sample length N is large enough (N≫1), U _{ k } approximately follows the Gaussian distributions
where \(\mathbb {N}(\mu,\sigma ^{2})\) is the notation of the Gaussian distribution with mean μ and variance σ ^{2}.
2.3 The conventional ED rule
In most conventional ED schemes, the PU’s real states are assumed independent during different frames. Let d _{ k } denote the sensing result of the PU’s real state z _{ k } in frame k. The decision rule is expressed as a simple comparison between the received energy U _{ K } and a threshold λ _{ E D,k } as follows
The false alarm probability \(P_{f,k}^{ED}\) and the detection probability \(P_{d,k}^{ED}\) are obtained as [19]
where γ is the average received SNR and
In conventional ED schemes, it is usual to preset a fixed threshold λ _{ E D,k } = λ _{ ED } for all k. Thus, the probability measures \(P_{f,k}^{ED}\) and \(P_{d,k}^{ED}\) are independent of k. It has been shown that the single fixed threshold scheme yields a high probability of erroneous decision when the received energy U _{ k } nears the threshold λ _{ E D,k } [11].
3 The IFDDT scheme
In this section, we propose an IFDDT spectrum sensing scheme by exploiting the inertia property of the PU’s activity described in Section 2.1. Following the presentation of the decision rule, we formulate an optimization problem to acquire the optimal dynamic double thresholds. Furthermore, we finally transform the optimization problem into an easily solvable problem and derive the optimal dynamic double thresholds with very low complexity.
3.1 The decision rule using IFDDT
To improve the probability of correct decision in the ED schemes, we consider double dynamic thresholds, by which we may elaborate the received energies into three decision ranges in order to exploit the inertia property of the PU’s activity. The decision rule using IFDDT is expressed as follows
where λ _{1,k } and λ _{0,k } represent the double dynamic thresholds for frame k at the SU, and λ _{0,k }≤λ _{1,k }.
For k = 1, the two thresholds should be identically initialized as λ _{0,1} = λ _{1,1}. For k > 1, if the received energy U _{ k } lies in the open range (λ _{0,k },λ _{1,k }), the sensing result d _{ k } for frame k retains the same as the sensing result d _{ k − 1} for the preceding frame k − 1.
It is easy to show that the Markov chain for the PU’s activity is reversible according to the steadystate distribution in Eq. (1), the transition matrix in Eq. (2), and hence the detailed balance equation [24, 27]
Define the reverse transition probability as
where i,j∈{0,1}. Then, \(p_{ij,k}^{*}=p_{ij,k~~1}\) is derived.
According to the decision rule using IFDDT in Eq. (9), the probabilities P _{ f,k } and P _{ d,k } are obtained as follows (see Appendix 1)
where
For ease of understanding the IFDDT scheme, Fig. 2 shows the definitions for multiple events and associated probabilistic measures on the reversible Markov chain.
3.2 Derivation of thresholds
To derive the double thresholds, there exists two hypothesis testing criterions: the NeymanPearson (NP) test [8] and the Bayesian test [28]. We consider only the NP test criterion, which aims at maximizing P _{ d,k } with the constraint P _{ f,k } ≤ P _{ f,target}, or alternatively minimizing P _{ f,k } with the constraint P _{ d,k }≥P _{ d,t a r g e t }, where P _{ f,target} and P _{ d,target} represent the tolerable maximum false alarm probability and minimum detection probability, respectively.
For any sensing frame k > 1, the probabilities P _{0,k } and P _{1,k } are considered constant since \(p_{ij,k}^{*}\) are determined by Eq. (2), and P _{ f,k − 1} and P _{ d,k − 1} are obtained at frame k − 1. Thus, by Eqs. (11) and (12), it is clear that P _{ f,k } and P _{ d,k } are strictly decreasing with λ _{0,k } and λ _{1,k }, respectively. According to the NP test criterion, the search for the optimal thresholds \(\lambda _{0,k}^{*}\) and \(\lambda _{1,k}^{*}\) with respect to each frame k is formulated as the optimization problem below
where P _{ d,k } and P _{ f,k } are written as bivariate functions of thresholds.
Theorem 1
P _{ d,k } reaches the maximum value \(P_{d,k}^{*}\) only when P _{ f,k }=P _{ f,t a r g e t }, i.e., the optimization problem in Eq. (15) can be rewritten as (proved in Appendix 2)
Based on the second constraint in Eq. (16), we define the Lagrange function
where c is the Lagrange multiplier.
Taking the firstorder partial derivative of Eq. (17) with respect to λ _{0,k } and λ _{1,k }, respectively
then
Eliminating c in Eq. (19) by simple manipulations, we get
where
Then, recalling the second constraint in Eq. (16), we obtain
So we convert the optimization problem in Eq. (16) into a nonlinear programming problem consisting of Eqs. (20) and (22).
Clearly, the existence of the solution to the optimization problem depends upon the system parameters, including the sample length N, the average SNR value γ, the frame lengths T F _{ k }, the expectation of ON and OFF state period \(\overline {T}_{1}\), \(\overline {T}_{0}\), and the target false alarm probability P _{ f,target}. On the other hand, the solution to the nonlinear programming problem cannot be expressed in a closed form. Therefore, in order to facilitate a heuristic approach for the solution, we derive the range for the above nonlinear programming problem firstly.
Notice that the function \(\mathbb {Q}(x)\) is a strictly decreasing function. Under the initial constraint that λ _{1,k } ≥ λ _{0,k }≥0 and the basic probability property that 0<P _{0,k },1 − P _{0,k }<1, we can derive a necessary condition on the threshold λ _{0,k } below
Thus, the range of λ _{0,k } is \(\left [\lambda _{0,k}^{*},\lambda ^{*}\right ]\),it is given by
With incorporating the range of λ _{0,k }, we obtain a necessary condition on the threshold λ _{1,k } as follows
and the range \(\left [\lambda ^{*},\lambda _{1,k}^{*}\right ]\) of λ _{1,k } is given by
In practice, it is easy to show that λ ^{∗}>a since P _{ f,target} < 0.5 and \(\mathbb {Q}^{1}(P_{f,\text {target}})>0\). By analysing Eq. (20) and Eq. (24), we can obtain the relationship of \(\lambda _{1,k}^{*}\), \(\lambda _{0,k}^{*}\), and a as follows:
Combined with the range of λ _{0,k } and λ _{1,k } in three cases in Eqs.(28), (20), and (21) can be further demonstrated in the twodimension Cartesian coordinate system as showed in Fig. 3. When \(\frac {P_{f,\text {target}}}{P_{0,k}}\geq \mathbb {Q}\left ( \sqrt {\frac {N}{2}} \right)\), Eqs. (20) and (21) are demonstrated in Fig. 3a; when \({\mathbb {Q}\left ( \frac {1}{2} \sqrt {\frac {N}{2}}\right)} \leq \frac {P_{f,\text {target}}}{P_{0,k}} < \mathbb {Q}\left ( \sqrt {\frac {N}{ 2}} \right)\), Eqs. (20) and (21) are demonstrated in Fig. 3b; and when \( \frac {P_{f,\text {target}}}{ P_{0,k}}<{\mathbb {Q}\left ( \frac {1}{2} \sqrt {\frac {N}{2}}\right)}\), Eqs. (20) and (21) are demonstrated in Fig. 3c.
3.3 Solution analysis
Based on Eqs. (20) and (21), λ _{1,k } can respectively be seen as the functions of λ _{0,k } within the range obtained above. First, g _{1}(λ _{0,k }) and g _{2}(λ _{0,k }) are defined respectively as
And g(λ _{0,k }) is further defined as
Obviously, the zero point of g(λ _{0,k }) is the solution of λ _{0,k } to the nonlinear programming problem in Eqs. (20) and (21) meanwhile.
The firstorder differential function of g(λ _{0,k }) is then deduced as
where \(\lambda _{1,k} = \sqrt {2N}\mathbb {Q}^{1}\left (\frac {P_{f,\text {target}}\mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)P_{0,k}} {1P_{0,k}} \right)+N\).
Together with Eq. (28), the negativity of g ^{′}(λ _{0,k }) in the range of three cases in Eq. (28) is proved as follows.

(1)
\( \frac {P_{f,\text {target}}}{P_{0,k}}<{ \mathbb {Q}\left ( \frac {1}{2} \sqrt {\frac {N}{2}} \right)}\). It can be easily obtained that \( \frac {\lambda _{0,k}a}{\lambda _{1,k}a}>0\), and thus, we can get g ^{′}(λ _{0,k })<0.

(2)
\( \frac {P_{f,\text {target}}}{P_{0,k}} \geq { \mathbb {Q}\left ( \frac {1}{2} \sqrt {\frac {N}{2}} \right)}\).

λ _{0,k }∈(a,λ ^{∗}). Similar to (1), it can be obtained that g ^{′}(λ _{0,k }) < 0.

\(\lambda _{0,k}\in (\lambda _{0,k}^{*},a)\), Eq. (20) can be transformed into
$$\begin{array}{@{}rcl@{}} &&\left[1\frac{1}{2}er~f~c\left(\frac{N\lambda_{0,k}}{2\sqrt {N}} \right) \right]P_{0,k}\\&&\quad+\frac{1}{2}er~f~c\left(\frac{\lambda_{1,k}N}{2\sqrt {N}} \right)(1P_{0,k})=P_{f,\text{target}} \end{array} $$(33)where \(er~f~c(x)~=~2\mathbb {Q}(\sqrt {2}x)\).

With λ _{0,k } < a, it can be deduced that
and
Notice that in Eq. (35), P _{0,k } > P _{ f,target} since P _{ d,k − 1} >P _{ f,target} must hold to ensure a valid detection and P _{ f,k − 1} = P _{ f,target} in Eq. (13). With γ≪1 and N≫1, the approximation \(er~f~c(x)\approx \frac {1}{\sqrt {\pi }x}e^{x^{2}}\) can be taken in Eq. (33), and thus, we can get
By taking Eq. (36) into Eq. (32), it can be proved that g ^{′}(λ _{0,k }) < 0 when \(\lambda _{0,k}\in \left (\lambda _{0,k}^{*},a \right)\) ; the nonlinear programming problem is then transformed into a problem of searching for the zero point of a strictly decreasing function, which can be easily solved by the dichotomy or Newton’s method. It should be noticed that no zero point exists when \(g\left (\lambda _{0,k}^{*} \right)~<~0 \) since g(λ ^{∗}) < 0.
4 Simulation results
In this section, numerical results are presented to evaluate the effectiveness of the IFDDT sensing scheme. The proposed algorithm is tested under various average activity periods and traffic loads of the PU.
4.1 Simulation setup
Firstly, the thresholds of the IFDDT scheme are simulated. Secondly, the actual false alarm of the new algorithm is provided to examine the correctness of the thresholds. Thirdly, the performance of the IFDDT algorithm is quantified in different average PU active periods and PU traffic loads, respectively. Finally, the total error probability of the IFDDT scheme is provided to verify the detection performance.
In the simulations, the sample length N is set to be 1000, the sensing frame length T F _{ k } is set to be 10 ms according to the IEEE 802.22 standard, and a Markov chain with 10^{6} frames is randomly generated to model the PU state varying in each simulation. The detection performance of the proposed IFDDT scheme is compared with that of the ED scheme and the doublethreshold (DT) energy scheme in [11].
4.2 Numerical results
Figure 4 verifies the double thresholds of the IFDDT algorithm changing with the frame index k. Figure 4a, b is plotted at low and high SNR, respectively. In both of the subfigures, \(\overline {T}_{0}~=~\overline {T}_{1}~=~200\) ms is set. In addition, the gray areas in the subfigures denote that the real state of the PU is ON; otherwise, it is OFF. When the received energy locates between the double thresholds and correctly detected under the IFDDT scheme, the corresponding point is marked with a circle.
From Fig. 4a, b, we can see that the double thresholds quickly converge to stable values and actually keep invariant. It means that the calculation for the thresholds of the subsequent sensing frames can be saved as long as the system parameters remain unchanged. Furthermore, the marked points show that in lots of frames where the received energy cannot give a reliable local decision, the conventional ED algorithm seem powerless but our algorithm tends to make the right judgment. It is also indicated that the gap between the double thresholds is smaller when the SNR is high.
Figure 5 tests the actual false alarm probability of the ED scheme, IFDDT scheme, and DT scheme versus SNR when P _{ f,target} = 0.01,0.05,0.1, respectively. Other simulation settings are \(\overline {T}_{0}~=~\overline {T}_{1}~=~200\) ms. As shown in the figure, the actual false alarm probability of the DT scheme is slightly higher than the target false alarm probability, but the actual false alarm probability of the IFDDT scheme and ED scheme is always equal to the target false alarm probability. In other words, the dynamic double thresholds derived from Eq. (15) ensure that the constraint on false alarm probability is met.
Figure 6 shows the detection probability versus SNR with different PU active periods. The average PU active parameters are set to be \(\overline {T}_{0}~=~\overline {T}_{1}~=~100, 200, 500\) ms, respectively. As shown in Fig. 6, the IFDDT algorithm shows superior performance to the conventional ED and DT scheme even when the average period of the PU is short. For example, at the SNR of −10 dB, the detection probability of the IFDDT algorithm reaches 0.92 when \(\overline {T}_{0}~=~\overline {T}_{1}~=~100\) ms, comparing with \(P_{d}^{ED}~=~0.81\) for the ED scheme and \(P_{d}^{DT}~=~0.84\) for the DT scheme. This improvement benefits from the dynamic doublethreshold strategy, with which the detector tends to make the correct judgment when the received energy is not reliable enough. What is more, when the PU actives with longer period and thus becomes more inertial, the IFDDT algorithm gains higher detection probability which depicts that the PU active period has much impact on the performance of the new sensing scheme. In addition, it is clearly shown that the simulation results well coincide with the theoretical analysis in all cases.
Figure 7 tests the performance of the IFDDT scheme when the PU’s traffic load varies. And as expected, the new scheme gains obvious performance improvement compared with the convention ED and DT schemes. It is also verified that when the PU’s average activity period is fixed, the detection probability of the proposed algorithm does not vary much with the PU’s traffic load. For example, at the SNR of −12 dB, the detection probability is 0.78, which is slightly higher by 0.03 and 0.06, respectively, than that in the other cases. The difference is even slighter in higher SNR region.
It is important to investigate the detector’s capability on timely and correctly identifying the spectrum hole when the spectrum is not occupied by the PU and vacating the spectrum when the PU starts to occupy the authorized spectrum. Therefore, to compare the performance in terms of both the detection probability and the false alarm probability, we define an erroneous decision probability P _{ e } as follows:
Figure 8 shows P _{ e } among IFDDT scheme, ED scheme, and DT scheme versus SNR. The simulation environment is the same as that in Fig. 6. The figure shows that IFDDT scheme provide the lowest P _{ e } among these schemes. In addition, the P _{ e } of the IFDDT scheme decreases as the average period of the PU becomes longer. This is due to the fact that when the average period increases, the PU’s state between contiguous frames tends to be more inertial, and then, the decision rule in Eq. (9) is more reliable; therefore, the decision based on the energy falling between the two thresholds is more reasonable. Furthermore, the performance of ED and DT schemes are much worse than those of the IFDDT scheme.

1.
IFDDT sensing scheme outperforms the conventional ED scheme and DT scheme

2.
The proposed method is more robust to the PU’s activity period and traffic load.
5 Conclusions
In this paper, the PU’s activity model and the SU’s sensing mechanism are utilized and an interframebased dynamic doublethreshold spectrum sensing scheme, which exploits the relationship of two adjacent sensing frames, is proposed to enhance energy detection performance. When the received energy cannot give a reliable local decision to distinguish the ON and OFF states of the PU, the detector retains the previous sensing result. The detection probability and false alarm probability of the proposed sensing scheme are analyzed, and the optimal double thresholds are derived with very low complexity according to the NeymanPearson (NP) test criterion. This sensing scheme is simple but shown to outperform the ED algorithm from both theoretical analysis and simulation results.
In this paper, our algorithm is based on energy detection. However, it can be extended to other traditional spectrum sensing method, such as coherent detection and feature detection, where the PU’s activity model and the SU’s sensing mechanism have not been exploited. The same way can be followed to obtain the corresponding dynamic double thresholds and the detection probability together with the false alarm probability.
6 Appendix 1: Derivation of Eqs. (12) and (13)
According to the definition for P _{ f,k } and the decision rule given by Eq. (9),
where
Similarly, the detection probability P _{ d,k } can be derived as
and
7 Appendix 2: Proof of Theorem 1
Consider first k>1. In Eqs. (10) and (11), P _{0,k } and P _{1,k } can be viewed as constants in the open range (0,1). Thus, the probabilities P _{ f,k } and P _{ d,k } are both strictly decreasing functions of λ _{0,k } and λ _{1,k }, respectively.
Assume that \(\left (\lambda ^{\prime }_{0,k},\lambda ^{\prime }_{1,k}\right)\) is the optimal solution to Eq. (16) such that \(\lambda ^{\prime }_{0,k} < \lambda ^{\prime }_{1,k}\), \( P_{f,k}\left (\lambda ^{\prime }_{0,k},\lambda ^{\prime }_{1,k}\right)<P_{f,\text {target}} \), and \( P_{d,k}\left (\lambda ^{\prime }_{0,k},\lambda ^{\prime }_{1,k}\right)= P_{d,k}^{*} \), where \(P_{d,k}^{*} \) is the maximum value for P _{ d,k }. Then, there must exist a smaller value \(\lambda ^{*}_{0,k}<\lambda ^{\prime }_{0,k}\) such that
which contradicts the assumption of the maximum value \(P_{d,k}^{*}\).
On the other hand, if \(\lambda ^{\prime }_{0,k}< \lambda ^{\prime }_{1,k}\), we may also reduce \(\lambda ^{\prime }_{1,k}\) to \(\lambda ^{*}_{1,k} \in [ \lambda ^{\prime }_{0,k},\lambda ^{\prime }_{1,k})\) with \(\lambda ^{\prime }_{0,k}\) given, such that \(P_{f,k}\left (\lambda ^{\prime }_{0,k},\lambda ^{*}_{1,k}\right)=P_{f,\text {target}}\), followed by \(P_{d,k}\left (\lambda ^{*}_{1,k},\lambda ^{\prime }_{0,k}\right)>P_{d,k}^{*}\).
In the special case k = 1, the probabilities P _{ f,1} and P _{ d,1} become strictly decreasing functions of λ _{1} as described underneath Eq. (9). Similarly, it can be proved that P _{ d,1} reaches \(P_{d,1}^{*}\) only when P _{ f,1} = P _{ f,target} using a proper threshold \(\lambda _{1}^{*}\).
Therefore, it is concluded that P _{ d,k } reaches the maximum value \(P_{d,k}^{*}\) only when P _{ f,k } = P _{ f,target} with pair thresholds \(\left (\lambda ^{*}_{0,k},\lambda ^{*}_{1,k} \right)\) for all k > 1.
8 Appendix 3: Proof of Eq. (23)
The proof is composed of two steps:
Firstly, \(\frac {P_{f,\text {target}}}{P_{0,k}} \geq \mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)\) can be derived from Eq. (20). From \(\frac {\lambda _{0,k}N}{\sqrt {2N}}=\sqrt {\frac {N}{2}}+\frac {\lambda _{0,k}}{\sqrt {2N}}\geq \sqrt {\frac {N}{2}}\) and the monotonic decreasing property of \(\mathbb {Q}\) function, we obtain \(\mathbb {Q}\left (\sqrt {\frac {N}{2}}\right) \geq \mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)\).
Therefore \(\min \left [\frac {P_{f,\text {target}}}{P_{0,k}},\mathbb {Q}\left (\sqrt {\frac {N}{2}}\right)\right ]\geq \mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right) \).
Secondly, from λ _{0,k }≤λ _{1,k }, we have \(\frac {\lambda _{0,k}N}{\sqrt {2N}} \leq \frac {\lambda _{1,k}N}{\sqrt {2N}}\), then \(\mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right) \geq \mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)\).
On the one hand, \(\mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)P_{0,k}+\mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)(1P_{0,k}) = \mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)\). On the other hand, \(\mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)P_{0,k}+\mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)(1P_{0,k}) \geq \mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right)P_{0,k}+\mathbb {Q}\left (\frac {\lambda _{1,k}N}{\sqrt {2N}}\right)(1P_{0,k})=P_{f,\text {target}}\). Therefore, \(\mathbb {Q}\left (\frac {\lambda _{0,k}N}{\sqrt {2N}}\right) \geq P_{f,\text {target}}\).
References
G Staple, K Werbach, The end of spectrum scarcity. IEEE Spectrum. 41(3), 48–52 (2004).
JI Mitola, GQ Maguire, Cognitive radio: making software radios more personal. IEEE Pers Commun. 6(4), 13–18 (1999).
Y Pei, AT Hoang, YC Liang, in Proc. IEEE Int. Symp. Personal, Indoor and Mobile Radio Commun. (PIMRC 2007). Sensingthroughput tradeoff in cognitive radio networks: how frequently should spectrum sensing be carried out?, (2007), pp. 1–5.
S Stotas, A Nallanathan, 2012, On the throughput and spectrum sensing enhancement of opportunistic spectrum access cognitive radio networks. Wireless Commun. IEEE Trans. 11(1), 97–107.
J Zhang, et al, Sensingenergy efficiency tradeoff for cognitive radio networks. Iet Commun. 8(18), 3414–3423 (2014).
IEEE Standard for Information Technology Telecommunications and information exchange between systems Wireless Regional Area Networks (WRAN) Specific requirements, Part 22: Cognitive Wireless RAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications: Policies and Procedures for Operation in the TV Bands. IEEE std. 802.22a2014.
T Yücek, H Arslan, A survey of spectrum sensing algorithms for cognitive radio applications. IEEE Commun. Surv. Tutorials. 11(1), 116–130 (2009).
Axell, Erik, et al, Spectrum sensing for cognitive radio:stateoftheart and recent advances. IEEE Signal Process. Mag. 29(3), 101–116 (2012).
A Taherpour, M NasiriKenari, S Gazor, Multiple antenna spectrum sensing in cognitive radios. IEEE Trans. Wireless Commun. 9(2), 814–823 (2010).
M LópezBenítez, F Casadevall, Improved energy detection spectrum sensing for cognitive radio. Iet Commun. 6(8), 785–796 (2012).
J Wu, T Luo, G Yue, in Proc. IEEE 1st Int. Conf. Information Science and Engineering. An energy detection algorithm based on doublethreshold in cognitive radio systems, (2009), pp. 493–496.
SQ Liu, BJ Hu, XY Wang, Hierarchical cooperative spectrum sensing based on double thresholds energy detection. IEEE Communications Letters. 16(7), 1096–1099 (2012).
H RifàPous, MJ Blasco, C Garrigues, Review of robust cooperative spectrum sensing techniques for cognitive radio networks. Wireless Personal Commun. 67(2), 175–198 (2012).
Y Saleem, MH Rehmani, Primary radio user activity models for cognitive radio networks: a survey. J. Netw. Comput. Appl. 43(1), 1–16 (2014).
SA Bayhan, Z Fatih, A Markovian approach for bestfit channel selection in cognitive radio networks. Ad Hoc Netw. 12(1), 165–177 (2014).
DJ Lee, WY Yeo, Channel availability analysis of spectrum handoff in cognitive radio networks. IEEE Commun. Lett. 19(3), 435–438 (2015).
M LópezBenítez, F Casadevall, Empirical timedimension model of spectrum use based on a discretetime Markov chain with deterministic and stochastic duty cycle models. Veh. Technol. IEEE Trans. 60(6), 2519–2533 (2011).
S Geirhofer, L Tong, BM Sadler, Cognitive medium access: constraining interference based on experimental models. Selected Areas Commun. IEEE J. 26(1), 95–105 (2008).
MH Rehmani, et al, SURF: A distributed channel selection strategy for data dissemination in multihop cognitive radio networks. Comput. Commun. 36(10), 1172–1185 (2013).
N Moayeri, H Guo, in Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum. How often and how long should a cognitive radio sense the spectrum, (2010), pp. 1–10.
Xing, Xiaoshuang, et al, Optimal spectrum sensing interval in cognitive radio networks. IEEE Trans. Parallel Distributed Syst. 25(9), 2408–2417 (2014).
K Haghighi, EG Strm, E Agrell, On optimum causal cognitive spectrum reutilization strategy. IEEE J. Selected Areas Commun. 30(10), 1911–1921 (2012).
J Heo, et al, Simultaneous sensing and transmission in cognitive radio. IEEE Trans. Wireless Commun. 13(4), 1948–1959 (2014).
KW Choi, E Hossain, Opportunistic access to spectrum holes between packet bursts: a learningbased approach. IEEE Trans. Wireless Commun. 10(8), 2497–2509 (2011).
K Haghighi, EG Strom, E Agrell, Sensing or transmission: causal cognitive radio strategies with censorship. IEEE Trans. Wireless Commun. 13(6), 3031–3041 (2014).
Xu, You, et al, Joint sensing period and transmission time optimization for energyconstrained cognitive radios. EURASIP J. Wireless Commun. Netw. 2010(1), 1–16 (2009).
PJ Green, Reversible jump Markov chain Monte Carlo computation and Bayesian model determination. Biometrika. 82(4), 711–732 (1995).
Y Zeng, et al, A review on spectrum sensing for cognitive radio: challenges and solutions. EURASIP J. Adv. Signal Process. 2010(1), 1–15 (2010).
Acknowledgements
The authors would gratefully acknowledge the grants from the National Natural Science Foundation of China (61571250), the Natural Science Foundation of Ningbo City of China (2015 A610121), and the Natural Science Foundation of Fujian Province of China (2014J01243) and the K. C. Wong Magna Fund in Ningbo University.
Authors’ contributions
PL, YH, and CF conceived and designed the study. CF and PL performed the simulation experiments. CF and PL wrote the paper. YH, YL, MJ, and GW reviewed and edited the manuscript. All authors read and approved the final manuscript.
Competing interests
The authors declare that they have no competing interests.
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License(http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Fu, C., Li, Y., He, Y. et al. An interframe dynamic doublethreshold energy detection for spectrum sensing in cognitive radios. J Wireless Com Network 2017, 118 (2017). https://doi.org/10.1186/s1363801708970
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1363801708970