Skip to main content
Sensors (Basel, Switzerland) logoLink to Sensors (Basel, Switzerland)
letter
. 2020 Jun 27;20(13):3614. doi: 10.3390/s20133614

Three-Event Energy Detection with Adaptive Threshold for Spectrum Sensing in Cognitive Radio Systems

Alexandru Martian 1,*, Mahmood Jalal Ahmad Al Sammarraie 1, Călin Vlădeanu 1, Dimitrie C Popescu 2
PMCID: PMC7374382  PMID: 32605003

Abstract

Implementation of dynamic spectrum access (DSA) in cognitive radio (CR) systems requires the unlicensed secondary users (SU) to implement spectrum sensing to monitor the activity of the licensed primary users (PU). Energy detection (ED) is one of the most widely used methods for spectrum sensing in CR systems, and in this paper we present a novel ED algorithm with an adaptive sensing threshold. The three-event ED (3EED) algorithm for spectrum sensing is considered for which an accurate approximation of the optimal decision threshold that minimizes the decision error probability (DEP) is found using Newton’s method with forced convergence in one iteration. The proposed algorithm is analyzed and illustrated with numerical results obtained from simulations that closely match the theoretical results and show that it outperforms the conventional ED (CED) algorithm for spectrum sensing.

Keywords: energy detection, spectrum sensing, cognitive radio, dynamic spectrum access, adaptive decision threshold

1. Introduction

The expansion of wireless communication systems in all sectors of modern society over the past decade has prompted an increased demand in spectrum resources. In this context, the traditional static allocation of the radio frequencies leads to inefficient use of the spectrum [1,2], and cognitive radio (CR) systems have emerged as a meaningful alternative for improving the efficiency of spectrum usage through dynamic spectrum access (DSA) [3]. DSA allows the access of secondary users (SU) to licensed frequency bands when these are not actively used by licensed primary users (PU), and relies on spectrum sensing, which is performed by the SU to detect the presence of active PU.

Among the methods used for spectrum sensing, energy detection (ED) [4,5,6,7,8] is the most commonly used one, due to its simplicity as well as its almost universal applicability. Alternative spectrum sensing approaches use eigenvalue-based algorithms [9], covariance-based detection methods [10,11], cyclostationary feature detection [12,13], or compressive sensing [14,15]. A thorough and very recent survey on most known spectrum sensing methods can be found in [16].

An important drawback of the ED method is implied by its sensitivity to noise uncertainty [17], which has led to improved ED algorithms that outperform the classical energy detection (CED) method [4]. These include the modified ED method for spectrum sensing in [18], which uses the average value of the ED test statistic over multiple sensing events, as well as the three-event ED (3EED) algorithm in [19], which decides that a PU is active if the ED test statistic exceeds the sensing threshold in three consecutive sensing events that include the current sensing event along with the sensing events immediately before and after it. To improve the performance of ED in the presence of Laplacian noise, [20] proposes a spectrum sensing algorithm in which the square of the received signal amplitude in the ED test statistic is replaced by an exponent that ranges between 0 and 2. Furthermore, adaptive ED approaches have been established for dynamic scenarios, which adjust the duration of the sensing window based on the PU on/off activity [21] or change the sensing threshold in response to changes in the noise characteristics [22,23].

In this paper, we present a new adaptive ED algorithm for spectrum sensing, which is based on the 3EED algorithm [19], but in which the sensing threshold is adapted similar to [22], to optimize the decision error probability (DEP), which is a weighted sum of the probabilities of missed detection and false alarm [22,23]. We note that obtaining an accurate analytical expression for the optimal threshold is elusive as the expressions involved in finding the sensing threshold do not have closed-form expressions and require approximations. In order to underline the novelty of the current work, we will enumerate its contributions as compared to the previous similar and related works. In [22], the authors proposed a threshold adaptation method by minimizing the DEP under the Gaussian approximation, but for the simple CED algorithm. Hence, an exact expression of the threshold could be obtained directly as a solution of the optimization equation, using the properties of the Q-function. However, for more efficient algorithms than CED, regularly having more complex expressions for DEP, the optimization equation is not analytically solvable. Therefore, in this paper, we aim at extending the method from [22] to a more complex and efficient ED algorithm, such as 3EED [19]. Under the Gaussian approximation, the DEP for any ED algorithm can be written as an expression based on several Q-function terms. First, we have to prove that DEP is a convex function in the threshold value and then, we propose the use of a numerical method, such as Newton’s method, to iteratively determine the root of the analytically unsolvable optimization equation. However, the main drawback of iterative methods is the increased operating time, which is a critical issue for the spectrum sensing algorithms. In order to overcome this problem, we propose in this paper a transformation of the optimization function, such that the Newton’s method for the transformed function converges faster. By analyzing the monotonicity of the optimization function, we determine a transform that linearizes the function around the root. Thus, we manage to reduce the number of iterations to the minimum possible, i.e., one iteration. As a prior validation step for the current research, in [24], we tested only empirically the performance of the adaptive threshold 3EED algorithm, where we derived the threshold value by using a brute-force search. Finally, in the current paper, we derive an analytical approximate expression of the adaptive threshold for 3EED by using a fast convergence numerical method. Moreover, we consider that this method can be generalized for most if not all ED-based spectrum sensing algorithms.

The rest of the paper is structured as follows: in Section 2, we briefly present the CED and 3EED algorithms for spectrum sensing, followed by a discussion on optimizing the sensing threshold in Section 3. The proposed 3EED algorithm with an adaptive threshold is formally stated in Section 4. In Section 5, we illustrate the performance of the proposed algorithm with numerical results obtained from simulation and compare it to that of the adaptive CED in [22], and we conclude the paper with final remarks in Section 6.

2. Spectrum Sensing by Three-Event Energy Detection (3EED)

Let y(n) be the signal at the SU receiver, which consists of an active PU signal with average power σs2 corrupted by additive white Gaussian noise (AWGN) variable with variance σn2 when the channel is busy, or just of the AWGN when the channel is idle (PU is not active). We denote by Ei the value of the received signal energy estimated during the i-th sensing slot that consists of N samples, λ the ED sensing threshold, and qi the binary decision variable {0,1} for the i-th spectrum sensing slot. With these notations, in CED correct detection of the PU signal (active/inactive) implies setting qi=1, that is, the channel is “busy”, if Ei>λ when y(n) is implied by an active PU signal corrupted by noise, and qi=0, that is, the channel is “idle”, if Eiλ when y(n) corresponds to a noise only term. We note that, when the number of samples N is sufficiently large, the tail region of the probability density function of the received signal energy Ei for values above the sensing threshold is approximated by a normal distribution [25] such that the standard Q-function [26] can be used to approximate the probabilities of detection and false alarm for CED as [18]

PfaCEDλ,σn2=Prob[Ei>λ|channel is idle]=QλNσn2σn22N (1)

and

PdCEDλ,σs2,σn2=Prob[Ei>λ|channel is busy]=QλNσs2σn2σs2+σn22N. (2)

As the name suggests, the 3EED algorithm [19] relies on ED in up to three consecutive sensing slots to decide if the signal y(n) at the SU receiver is implied by an active PU signal or not. Specifically, similar to CED, if the energy in the current spectrum sensing slot i exceeds the sensing threshold, Ei>λ, then the 3EED algorithm decides that a PU is active and sets qi=1. However, if Eiλ, the algorithm checks the energy level estimated in the previous slot, Ei1, to decide that a PU signal is active and set qi=1 if Ei1>λ, or to move on to the next time slot i+1 to estimate Ei+1 and make the final decision that PU signal is active setting qi=1 if Ei+1>λ, or inactive setting qi=0 if Ei+1λ. Thus, if the PU signal is identified as active in any of the three consecutive sensing slots, i, i1, and i+1, the algorithm returns qi=1 corresponding to a “busy” channel, while if the PU signal is determined to be inactive in all three consecutive time slots the algorithm returns qi=0 corresponding to an “idle” channel. The formal statement of the 3EED algorithm is given in Algorithm 1.

Algorithm 1 The 3EED Algorithm for Spectrum Sensing
Input: sensing threshold λ
Output: output result
  • 1:

    for each spectrum sensing slot i do

  • 2:

        Estimate received signal energy Ei and save its value

  • 3:

        if Ei>λ then

  • 4:

            Set qi=1⟶ PU active/Channel “busy”

  • 5:

        else

  • 6:

            Read Ei1 (saved in slot i-1)

  • 7:

            if Ei1>λ then

  • 8:

               Set qi=1⟶ PU active/Channel “busy”

  • 9:

            else

  • 10:

               Estimate Ei+1

  • 11:

               if Ei+1>λ then

  • 12:

                   Set qi=1⟶ PU active/Channel “busy”

  • 13:

               else

  • 14:

                   Set qi=0⟶ PU not active/Channel “idle”

  • 15:

    returnqi

The probabilities of false alarm and detection for the 3EED algorithm for spectrum sensing are expressed in terms of the probabilities of false alarm and detection for the CED algorithm, PfaCED and PdCED, respectively as [19]:

Pfa3EED=PfaCED+1PfaCED·TB1TBPfaCED+1TBPdCED·1+TB1TB1PfaCED+1TB1PdCED (3)

and

Pd3EED=PdCED+1PdCED·1BPfaCED+B1BPdCED·1+1B1PfaCED+B1B1PdCED, (4)

where T represents the total duration of the transmission cycle that consists of B consecutive slots during which the channel is busy followed by a number of TB slots in which the channel is idle. We note that the ratio α=B/T represents the spectrum utilization ratio of the PU (that is the fraction of time the channel is actively used by the PU).

The decision threshold λ is determined based on a desired performance level that is specified in terms of a target probability of false alarm value, Pfa, as it is usually the case with constant false alarm rate (CFAR) detectors [19],

λ=Q11+Pfa132N+Nσn2. (5)

We note that the threshold must be adapted when changes in the noise variance occur, in order to keep the probability of false alarm at the desired value. We also note that, by considering only the probability of false alarm in setting the sensing threshold, the SU is favored, since by setting the value of Pfa low the SU has more chances of utilizing the spectrum. However, in the case of a mis-detection, when the PU is active but the channel is incorrectly detected as “idle”, the SU transmission will interfere with the active PU signal and will negatively affect the PU performance. Thus, in order for spectrum sensing to be beneficial to both PU and SU, threshold setting should consider both the probability of false alarm and the probability of mis-detection.

3. Optimizing the 3EED Sensing Threshold to Minimize the Decision Error Probability

To optimize the decision threshold of the 3EED algorithm for spectrum sensing we use the DEP as the performance metric, which is formally defined as [22]:

Peλ,α,σs2,σn2=1αPfa3EED+α1Pd3EED. (6)

Analyzing expression (6) we note that the DEP is a function of the sensing threshold λ, the PU spectrum utilization ratio α, the average power of the PU signal σs2, and the noise variance σn2. Furthermore, both terms in the DEP expression (6) are related to decision errors in the spectrum sensing process:

  • The first term in (6) is implied by the probability of false alarm and corresponds to the case when a given sensing slot is found busy without an active PU transmission in this slot. False alarms occur only when the channel is idle and the term is weighted by the 1α factor corresponding to the fraction of time when the PU is not active.

  • The second term in (6) corresponds to the probability of mis-detection and is associated with the case when a given sensing slot is found idle while an active PU transmission is actually in progress in this slot. Mis-detections occur when the channel is busy and the term is weighted by the α factor corresponding to the fraction of time when the PU is active.

Thus, the DEP provides a trade-off between the false alarm and mis-detection performance, and allows optimization of the decision threshold for the 3EED algorithm by setting it to minimize the DEP (6), that is

λopt=argminλPeλ,α,σs2,σn2. (7)

Introducing (3) and (4) in (6), we rewrite the expression of DEP as

Peλ,α,σs2,σn2=1α1+PfaCEDλ,σn213+α1PdCEDλ,σs2,σn23, (8)

For the sake of simplicity, let us introduce two variables denoted as a(λ,σn2) and b(λ,σs2,σn2), which are the arguments of the Q-function in (1) and (2), respectively, and expressed as

a(λ,σn2)=λ2Nσn2N2 (9)

and

b(λ,σs2,σn2)=λ2Nσs2+σn2N2. (10)

Using the expressions (9) and (10), we can rewrite the DEP function from (8) as following:

Peλ,α,σs2,σn2=1α1+Qa13+α1Qb3, (11)

We note that finding an accurate closed-form expression for λopt is elusive as the expression of the DEP metric to be optimized has already been approximated when expressions of Pfa3EED and Pd3EED in terms of the Q-functions have been used to obtain (11), and resorting to further approximations of the Q-function in terms of simpler elementary functions will affect the accuracy of the optimal threshold value obtained. Thus, we focus on numerical optimization of the DEP metric (11), which takes advantage of its convexity properties.

Specifically, we notice that the DEP function has four variables, i.e., λ, α, σs2, and σn2. However, the optimization aims only at the threshold variable, λ. Therefore, the other three variables are assumed to be constant for this optimization. In order to perform the threshold optimization, the DEP function from (6) and (11) has to be a convex function in λ. Therefore, we provide the next theorem.

Theorem 1.

The DEP function given by (11) is a convex function in λ.

Proof. 

Let us introduce the following notations for the functional terms from (11):

T1a=1+Qa13T2b=1Qb3 (12)

Analyzing the second derivative of both functions from (12) with respect to a and b, respectively, one can notice that both have a unique and identical inflection point (i.e., the solution of T1a=0 and T2b=0). The value of this common inflection point is the solution of the following transcendental equation for x=a or x=b:

2Qx=xQx1 (13)

An approximate value for the solution of the Equation (13) can be obtained using numerical methods or graphically, i.e., x0=0.76527. Considering this approximate value of x0 and using the relations in (9) and (10), we can determine the values of the inflection point values of λinflec(1) and λinflec(2) for the functions T1a and T2b, respectively, from (12):

λinflec(1)=2Nσn2x0+N2λinflec(2)=2Nσs2+σn2x0+N2 (14)

In order to evaluate the convexity of the functions from (12), we have to estimate the values in the inflection points, given by (14), of the first derivative of these functions with respect to λ, respectively, denoted as T1λ=λinflec(1) and T2λ=λinflec(2). Analyzing these first derivative functions, we noticed that T1λinflec(1)<0 and T2λinflec(2)>0. Therefore, it results that T1λ is convex in λ for λλinflec(1) and T2λ is convex in λ for λλinflec(2).

Also, we note that the DEP expression from (11), with the notations from (12), is a linear combination of the two convex functions T1λ and T2λ for the intersection set λinflec(1)λλinflec(2):

Peλ,α,σs2,σn2=1αT1λ,α,σn2+αT2λ,α,σs2,σn2, (15)

We also know that the spectrum utilization ratio of the PU is a positive number, i.e., α0,1 and therefore, both coefficients of the linear expression from (15) are positive numbers.

Finally, Theorem 2.10 from page 52 in [27] states that a linear combination of two convex functions on a set, with non-negative coefficients, is also a convex function. Hence, we can conclude that the DEP expression from (11) is a convex function in λ on the set λinflec(1)λλinflec(2). □

Now, because the DEP function is convex as stated by Theorem 1, we can determine the optimum threshold from (7) by solving the following equation to find the critical points of the DEP (6):

Peλ,α,σs2,σn2λ=0 (16)

Next, using the DEP expression from (11) we obtain

Peλ=31αQ(a)12dQ(a)daaλ3αQ(b)12dQ(b)dbbλ (17)

where a(λ,σn2) and b(λ,σs2,σn2) were previously introduced in (9) and (10).

Using the expression of the first derivative of the Q-function

dQ(x)dx=12πex2/2 (18)

the threshold optimization Equation (16) becomes

Q(a)1Q(b)1=A(α,γ)e(b2a2)/4 (19)

where γ=σs2/σn2 is the signal-to-noise ratio (SNR) and

A(α,γ)=α1α·11+γ. (20)

We note that Equation (19) is transcendental, which makes it difficult to find a closed-form solution for the optimal threshold λopt, and the alternative is to obtain a numerical solution for it as discussed in the following section.

4. Numerical Approach to Finding the Optimal 3EED Sensing Threshold

The numerical approach used to find λopt, the optimal threshold for the 3EED spectrum sensing, is based on the application of Newton’s iterative method [28] for Equation (19) rewritten as

Q(a)1Q(b)1A(α,γ)e(b2a2)/4f(λ)=0. (21)

As the rate of convergence for Newton’s method is quadratic, with proper initialization, a solution to (21) that approximates well the optimal sensing threshold λopt can be found in only a few iterations of the type [28]

λn+1=λnfλnfλn. (22)

Furthermore, the proposed approach uses the Q-function approximation [29]

Q(x)1e1.4xex2/21.1352πx,x0 (23)

to rewrite the Q(a) and Q(b) terms in (21).

We have to note that the initialization of Newton’s iterative method, used to solve the optimization equation from (21), and its convergence are strongly related to the convexity of the DEP function. According to the DEP function’s convexity demonstrated in Theorem 1, we know that the best initialization values of λ should be the values of the inflection points, i.e., either λinflec(1) or λinflec(2) given in (14). However, for the analytical derivation of the optimum value of λ, the use of λinflec(1) or λinflec(2) in the expressions of the optimization function from (21) and its derivative function would have complex expressions. Instead, we prefer to use the values of λ for which the argument variables a and b in the optimization Equation (21) take null values, i.e., a=0 or b=0. Hence, all terms multiplied by a or b will be eliminated from the final expressions. The λ values that are the solutions for the equations a(λ,σn2)=0 and b(λ,σs2,σn2)=0, denoted as λa,0 and λb,0, respectively, result from (9) and (10) as

λa,0=Nσn2 (24)

and

λb,0=Nσn21+γ (25)

It is important to note that the difference between the values of λa,0 and λb,0 and the values of λinflec(1) and λinflec(2) is almost neglectable. Using the expressions from (14), (24) and (25), it can be easily demonstrated that the relative difference between these values is given by:

λinflec(2)λb,0λinflec(2)=λinflec(1)λa,0λinflec(1)=x0x0+N2 (26)

Considering that x0=0.76527 and N takes values of the order of tens of thousands samples, then it results in a value for the relative difference in (26) that is less than 1%.

Hence, considering all the above, we will use the values of λa,0 and λb,0 as initial values for Newton’s method.

Since (23) is valid only for positive arguments of the Q-function and the arguments a(λ,σn2) and b(λ,σs2,σn2) in (21) can take both positive and negative values, as can be observed from (9) and (10), the approximation is applied in conjunction with the symmetry property of the Q-function, Q(x)=1Q(x). Specifically, the following three distinct cases will be analyzed separately to provide a numerical solution for Equation (21): (i)b<a0, (ii)a>0,b0, and (iii)a>b0.

We have to note that the domain of λ values is separated into these three sub-domains ((i), (ii), and (iii)), where the value of λa,0 delimits cases (i) and (ii) and λb,0 delimits cases (ii) and (iii). Therefore, λa,0 will be used as the initial value for the iterative method in case (i) and λb,0 will be used as the initial value for the iterative method in case (iii). Instead, for case (ii), we can use either λa,0 or λb,0 as the initial value, because the minimum DEP can be reached from either side of the interval with a similar accuracy.

4.1. Case (i)b<a0

Using the symmetry property of the Q-function, Equation (21) can be rewritten as:

f(λ)=Q(a)Q(b)A(α,γ)e(b2a2)/4=0, (27)

which, upon using the approximation (23) becomes:

1e1.4aab1e1.4bA(α,γ)e3b2a2/4fi(λ)=0 (28)

Denoting the function in the left-hand side of (28) by fi(λ), and initializing Newton’s iteration with the value λa,0 from (24) we obtain

fiλa,0=1.4bλa,0e1.4bλa,01A(α,γ)e0.75b2λa,0 (29)
fiλa,0=0.982Nσn2bλa,0e1.4bλa,011.42Nσn21+γ·1e1.4bλa,0+1.4bλa,0e1.4bλa,0e1.4bλa,012+3A(α,γ)2e3b2λa,0/4bλa,012Nσn21+γ (30)

The derivative fiλa,0 is given by the expression (30), which, together with (29), can be used to start Newton’s iterations (22) to obtain a numerical solution for the optimal sensing threshold λopt(i).

4.2. Case (ii)a>0,b0

Following a similar approach as in the previous case but in which the symmetry property of the Q-function is used only for the Q(b) term, Equation (21) is rewritten in this case as:

f(λ)=1Q(a)Q(b)A(α,γ)e(b2a2)/4=0, (31)

for which approximation (23) implies that

be1.4b1·1.1352π1e1.4aea2/2aA(α,γ)e(3b2a2)/4fii(λ)=0 (32)

Denoting the function in the left-hand side of (32) by fii(λ), and initializing Newton’s iteration with the value λb,0 from (25) we obtain

fiiλb,0=1.1352π1.41e1.4a(λb,0)e0.5a2(λb,0)1.4a(λb,0)A(α,γ)e0.25a2(λb,0) (33)

The derivative fiiλb,0 is given by expression (34), which, together with (33), can now be used to start Newton’s iterations (22) to obtain a numerical solution for the optimal sensing threshold λopt(ii).

fiiλb,0=122Nσn21+γ·1.1352π1e1.4aλb,0ea2λb,02aλb,0+1a2λb,01e1.4aλb,0ea2λb,021.42Nσn2a2λb,0e1.4aλb,0ea2λb,022Nσn2aλb,0A(α,γ)aλb,022Nσn2ea2λb,04 (34)

In case (ii), we have used λb,0 as the initial value, but we can obtain similar expressions for fiiλ and fiiλ with λa,0 as the initial value, as in (33) and (34), respectively, with similar performance results for Newton’s method.

4.3. Case (iii)a>b0

In this case, the approximation from (23) can be used directly in (21) to rewrite it as expression (35). Denoting the function in the left-hand side of (35) by fiii(λ) and initializing it in this case with the same value λb,0 in (25) we obtain the expressions for fiii(λb,0) and fiii(λb,0) as shown in (36) and (37), respectively, which can be used to start Newton’s iterations (22) to obtain a numerical solution for the optimal sensing threshold λopt(iii).

1.1352π1e1.4aea2/2a·b1.1352πb1e1.4beb2/2A(α,γ)e(b2a2)/4fiiiλ=0 (35)
fiiiλb,0=11.1352π1.4·1.1352π1e1.4aλb,0ea2λb,0/2aλb,0A(α,γ)ea2λb,0/4 (36)
fiiiλb,0=ea2λb,0/21.1352π1.42Nσn2aλb,0·1e1.4aλb,0a2λb,0+1aλb,01.4e1.4aλb,01.9621.1352π1.422Nσn21+γ·1.1352π1e1.4aλb,0ea2λb,0/2aλb,0A(α,γ)aλb,0ea2λb,0/422Nσn2 (37)

4.4. One-Step Numerical Solution and the 3EED Algorithm with Adaptive Threshold

The rate of convergence for Newton’s iterations and the number of steps n needed to find a numerical solution λopt(j) to the optimal sensing threshold for each of the three cases outlined in the previous sections depend on the monotonicity of the corresponding fj(λ) function,

λopt(j)λn+1=λnfj(λn)fj(λn),j{i,ii,iii}, (38)

as well as on the initialization

λ0(j)=λa,0for casej=iλb,0for casesj=ii,iii (39)

In order to improve convergence and minimize the overhead associated with finding the optimal sensing threshold, we propose to use the alternative function

Fj(λ)=ln1+|fj(λ)| (40)

having the derivative expressed as

Fj(λ)=fj(λ)·fj(λ)|fj(λ)|+fj2(λ), (41)

which yields a good approximation for the optimal sensing threshold in only one iteration

λopt(j)λ1=λ0(j)Fj(λ0(j))Fj(λ0(j)),j{i,ii,iii}. (42)

This approach was prompted by empirical observations that are discussed in Section 5.1 and takes advantage of the monotonicity of fj(λ), which, along with proper choice of the initial value λ0(j), amount essentially to a linearization of the function that yields the optimal threshold around its root.

Noting that the functions fj(λ), j{i,ii,iii}, that approximate f(λ) in (21) are all monotonically decreasing, and that they overlap at the edges of the definition intervals for a and b, that is

fiλa,0=fiiλa,0,andfiiλb,0=fiiiλb,0, (43)

the proposed approach identifies first which approximation case j is applicable ({i,ii,oriii}), and determines the one-step numerical solution for the optimal sensing threshold λopt using (42). Once the sensing threshold is found, the 3EED Algorithm 1 is applied with the value λopt to make a decision on the PU activity and channel availability. The approach is formally stated as Algorithm 2.

Algorithm 2 The 3EED algorithm with adaptive threshold
Input: N, α, σn2, σs2
Output: output result
  • 1:

    Use (24) and (25) to obtain λa,0 and λb,0.

  • 2:

    Use (32) and (33) to obtain fiiλa,0 and fiiλb,0

  • 3:

    iffiiλa,0<0 and fiiλb,0<0 then

  • 4:

        j=i in (42) and λopt=λopt(i)

  • 5:

    else iffiiλa,0>0 and fiiλb,0<0 then

  • 6:

        j=ii in (42) and λopt=λopt(ii)

  • 7:

    else iffiiλa,0>0 and fiiλb,0>0 then

  • 8:

        j=iii in (42) and λopt=λopt(iii)

  • 9:

    Apply Algorithm 1 with sensing threshold λopt

  • 10:

    returnqi output by Algorithm 1

5. Simulations and Numerical Results

In this section, we present numerical results obtained from simulations that support the proposed approach for one-step threshold calculation and illustrate the performance of the 3EED algorithm with an adaptive threshold. The algorithm is also compared to the adaptive CED algorithm in [22] as well as with the “Brute-force” adaptive 3EED algorithm [24] in which an exhaustive search is implemented in Matlab to obtain the value of λopt instead of the proposed one-step approach.

The parameter values used in the simulations are: the number of samples in a sensing slot N=65,537, the SNR γ is between 25 dB and 15 dB, and T=500 slots. The signal transmitted by the PU is implemented using binary phase shift keying (BPSK) modulation, and 2500 sensing slots were considered in each transmission sequence in all simulations.

5.1. Sensing Threshold Calculation

Figure 1 shows the values of the optimal sensing threshold λopt that minimizes the DEP, as a function of α, the spectrum utilization ratio, for SNR values of 25 and 20 dB, corresponding to the proposed approach discussed in Section 4, the “Brute-force” approach in [24], and the adaptive CED approach in [22]. From this figure we note that the values of the sensing threshold obtained using the proposed approach closely match those obtained using the “brute-force” approach [24] for values of α between 0.2 and 0.7, in particular for α around 0.5, and support the application of the numerical approach presented in Section 4 for threshold calculation with minimal overhead. We also note that, according to studies performed on GSM channels [30] or in the industrial, scientific and medical (ISM) bands [31], this is the range of values for the spectrum utilization ratio α that is of practical interest for SU access to licensed spectrum.

Figure 1.

Figure 1

Optimum threshold as a function of α. (a) SNR γ=25 dB, (b) SNR γ=20 dB.

5.2. Decision Error Probability

Figure 2 shows the values of the DEP Pe as a function of the SNR γ for different values of the spectrum utilization ratio α, for the proposed 3EED algorithm with an adaptive threshold as well as for the adaptive CED algorithm in [22]. Based on the plots shown in Figure 2 we first note that the values of the DEP obtained through Monte Carlo simulations closely match the analytical values of the DEP implied by (6) for the proposed 3EED algorithm with an adaptive threshold or by the corresponding DEP expression in [22], for all SNR and α values. We also note that the proposed 3EED algorithm with an adaptive threshold outperforms the adaptive CED algorithm in cases of practical interest corresponding to spectrum utilization ratios above 0.2 and below 0.7, with maximum gain of the proposed algorithm in terms of the DEP of about 1 dB achieved for α around 0.5. Furthermore, for both the proposed 3EED algorithm with an adaptive threshold and the adaptive CED algorithm, the value of the DEP becomes less sensitive to changes in the spectrum utilization ratio α as the SNR values increase.

Figure 2.

Figure 2

Decision error probability (DEP) for adaptive algorithms as a function of signal-to-noise ratio (SNR). (a) α=0.1,0.5, and 0.9; (b) α=0.2,0.3, and 0.4; (c) α=0.6,0.7, and 0.8.

Figure 3 shows the dependence of the DEP on the spectrum utilization ratio α for two different SNR values γ=23 dB and 20 dB. As it can be observed, the DEP decreases with increasing SNR for both the proposed 3EED algorithm with an adaptive threshold and the adaptive CED algorithm. Furthermore, the proposed algorithm outperforms the adaptive CED one for all values of the spectrum utilization ratio α. We note that, for each value of α, the corresponding DEP values are minimum since the optimal sensing threshold is used for that α, as discussed in Section 3.

Figure 3.

Figure 3

DEP as a function of the spectrum utilization ratio α. (a) SNR γ=23 dB; (b) SNR γ=20 dB.

6. Conclusions

A new ED algorithm for spectrum sensing in CR systems is presented in the paper. The proposed algorithm employs an adaptive sensing threshold that is optimized to minimize the DEP and has minimal overhead, since the value of the optimal threshold is found through a one-step iterative method.

Numerical results obtained from simulations are presented to illustrate the performance of the proposed algorithm and to compare it to the adaptive CED algorithm. The results show that the proposed algorithm outperforms the CED algorithm for spectrum sensing, resulting in lower values for the DEP for all values of the spectral utilization ratio that are of practical interest for CR systems providing SU access to licensed spectrum.

We intend to implement and validate the proposed algorithm using SDR platforms from the USRP family. In this context, we will also focus on the optimization of the expressions used in the algorithm to estimate the decision threshold for minimizing the computational complexity and the sensing time.

Acknowledgments

The authors would like to acknowledge the editor and the anonymous reviewers for their comments and suggestions that have improved the presentation of this work.

Author Contributions

Conceptualization, A.M. and C.V.; methodology, A.M.; software, M.J.A.A.S., C.V. and A.M.; validation, M.J.A.A.S., A.M., and D.C.P.; formal analysis, C.V. and A.M.; investigation, M.J.A.A.S., A.M. and C.V.; data curation, A.M. and M.J.A.A.S.; writing—original draft preparation, C.V. and A.M.; visualization, M.J.A.A.S. and D.C.P.; supervision, A.M. and C.V.; project administration, A.M. and C.V.; funding acquisition, A.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by a grant from the Romanian Ministry of Research and Innovation, CNCS - UEFISCDI, project number PN-III-P1-1.1-PD-2016-1696, within PNCDI III.

Conflicts of Interest

The authors declare no conflict of interest.

References

  • 1.Höyhtyä M., Mämmelä A., Eskola M., Matinmikko M., Kalliovaara J., Ojaniemi J., Suutala J., Ekman R., Bacchus R., Roberson D. Spectrum Occupancy Measurements: A Survey and Use of Interference Maps. IEEE Commun. Surv. Tutor. 2016;18:2386–2414. doi: 10.1109/COMST.2016.2559525. [DOI] [Google Scholar]
  • 2.Marţian A., Crăciunescu R., Vulpe A., Suciu G., Fratu O. Access to RF White Spaces in Romania: Present and Future. Wirel. Pers. Commun. 2016;86:693–702. doi: 10.1007/s11277-015-2638-1. [DOI] [Google Scholar]
  • 3.Zhao Q., Sadler B.M. A Survey of Dynamic Spectrum Access. IEEE Signal Process. Mag. 2007;24:79–89. doi: 10.1109/MSP.2007.361604. [DOI] [Google Scholar]
  • 4.Urkowitz H. Energy Detection of Unknown Deterministic Signals. Proc. IEEE. 1967;55:523–531. doi: 10.1109/PROC.1967.5573. [DOI] [Google Scholar]
  • 5.Digham F.F., Alouini M.S., Simon M.K. On the Energy Detection of Unknown Signals Over Fading Channels. IEEE Trans. Commun. 2007;55:21–24. doi: 10.1109/TCOMM.2006.887483. [DOI] [Google Scholar]
  • 6.Cao K., Qian P., An J., Wang L. Accurate and Practical Energy Detection over α − μ Fading Channels. Sensors. 2020;20:754. doi: 10.3390/s20030754. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Wasilewska M., Bogucka H. Machine Learning for LTE Energy Detection Performance Improvement. Sensors. 2019;19:4348. doi: 10.3390/s19194348. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Huang H., Zhu J., Mu J. A Novel Sensing Strategy Based on Energy Detector for Spectrum Sensing. Appl. Sci. 2019;9:4634. doi: 10.3390/app9214634. [DOI] [Google Scholar]
  • 9.Zeng Y., Liang Y.C. Eigenvalue-Based Spectrum Sensing Algorithms for Cognitive Radio. IEEE Trans. Commun. 2009;57:1784–1793. doi: 10.1109/TCOMM.2009.06.070402. [DOI] [Google Scholar]
  • 10.Bishnu A., Bhatia V. Grassmann Manifold-Based Spectrum Sensing for TV White Spaces. IEEE Trans. Cogn. Commun. Netw. 2018;4:462–472. doi: 10.1109/TCCN.2018.2816642. [DOI] [Google Scholar]
  • 11.Jin M., Guo Q., Xi J., Li Y., Yu Y., Huang D. Spectrum Sensing Using Weighted Covariance Matrix in Rayleigh Fading Channels. IEEE Trans. Veh. Technol. 2015;64:5137–5148. doi: 10.1109/TVT.2014.2379924. [DOI] [Google Scholar]
  • 12.Jerjawi W.A., Eldemerdash Y.A., Dobre O.A. Second-Order Cyclostationarity-Based Detection of LTE SC-FDMA Signals for Cognitive Radio Systems. IEEE Trans. Instrum. Meas. 2015;64:823–833. doi: 10.1109/TIM.2014.2357592. [DOI] [Google Scholar]
  • 13.Al-Habashna A., Dobre O.A., Venkatesan R., Popescu D.C. Second-Order Cyclostationarity of Mobile WiMAX and LTE OFDM Signals and Application to Spectrum Awareness in Cognitive Radio Systems. IEEE J. Sel. Top. Signal Process. 2012;6:26–42. doi: 10.1109/JSTSP.2011.2174773. [DOI] [Google Scholar]
  • 14.Sharma S.K., Lagunas E., Chatzinotas S., Ottersten B. Application of Compressive Sensing in Cognitive Radio Communications: A Survey. IEEE Commun. Surv. Tutor. 2016;18:1838–1860. doi: 10.1109/COMST.2016.2524443. [DOI] [Google Scholar]
  • 15.Arjoune Y., Kaabouch N. Wideband Spectrum Sensing: A Bayesian Compressive Sensing Approach. Sensors. 2018;18:1839. doi: 10.3390/s18061839. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Arjoune Y., Kaabouch N. A Comprehensive Survey on Spectrum Sensing in Cognitive Radio Networks: Recent Advances, New Challenges, and Future Research Directions. Sensors. 2019;19:126. doi: 10.3390/s19010126. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Tandra R., Sahai A. SNR Walls for Signal Detection. IEEE J. Sel. Top. Signal Process. 2008;2:4–17. doi: 10.1109/JSTSP.2007.914879. [DOI] [Google Scholar]
  • 18.López-Benítez M., Casadevall F. Improved Energy Detection Spectrum Sensing for Cognitive Radio. IET Commun. 2012;6:785–796. doi: 10.1049/iet-com.2010.0571. [DOI] [Google Scholar]
  • 19.Vlădeanu C., Năstase C., Marţian A. Energy Detection Algorithm for Spectrum Sensing Using Three Consecutive Sensing Events. IEEE Wirel. Commun. Lett. 2016;5:284–287. doi: 10.1109/LWC.2016.2543723. [DOI] [Google Scholar]
  • 20.Ye Y., Li Y., Lu G., Zhou F. Improved Energy Detection With Laplacian Noise in Cognitive Radio. IEEE Syst. J. 2019;13:18–29. doi: 10.1109/JSYST.2017.2759222. [DOI] [Google Scholar]
  • 21.Treeumnuk D., Popescu D.C. Enhanced Spectrum Utilization in Dynamic Cognitive Radios with Adaptive Sensing. IET Signal Process. 2014;8:339–346. doi: 10.1049/iet-spr.2013.0105. [DOI] [Google Scholar]
  • 22.Wang N., Gao Y., Zhang X. Adaptive Spectrum Sensing Algorithm Under Different Primary User Utilizations. IEEE Commun. Lett. 2013;17:1838–1841. doi: 10.1109/LCOMM.2013.081313.131468. [DOI] [Google Scholar]
  • 23.Joshi D.R., Popescu D.C., Dobre O.A. Gradient-Based Threshold Adaptation for Energy Detector in Cognitive Radio Systems. IEEE Commun. Lett. 2011;15:19–21. doi: 10.1109/LCOMM.2010.11.100654. [DOI] [Google Scholar]
  • 24.Sammarraie M.J.A.A., Marţian A., Vlădeanu C. A Modified 3EED Spectrum Sensing Algorithm Using an Adaptive Decision Threshold; Proceedings of the 2018 International Symposium on Electronics and Telecommunications (ISETC); Timisoara, Romania. 8–9 November 2018; [DOI] [Google Scholar]
  • 25.Liang Y.C., Zeng Y., Peh E.C., Hoang A.T. Sensing-Throughput Tradeoff for Cognitive Radio Networks. IEEE Trans. Wirel. Commun. 2008;7:1326–1337. doi: 10.1109/TWC.2008.060869. [DOI] [Google Scholar]
  • 26.Yates R.D., Goodman D.J. Probability and Stochastic Processes. A Friendly Introduction for Electrical and Computer Engineers. 1st ed. John Wiley and Sons, Inc.; New York, NY, USA: 1999. [Google Scholar]
  • 27.Antoniou A., Lu W.S. Practical Optimization: Algorithms and Engineering Applications. 1st ed. Springer Science and Business Media; New York, NY, USA: 2007. [Google Scholar]
  • 28.Epperson J.F. An Introduction to Numerical Methods and Analysis. 2nd ed. John Wiley and Sons, Inc.; New York, NY, USA: 2013. [Google Scholar]
  • 29.Karagiannidis G.K., Lioumpas A.S. An Improved Approximation for the Gaussian Q-Function. IEEE Commun. Lett. 2007;11:644–646. doi: 10.1109/LCOMM.2007.070470. [DOI] [Google Scholar]
  • 30.Luís M., Oliveira R., Dinis R., Bernardo L. RF-Spectrum Opportunities for Cognitive Radio Networks Operating Over GSM Channels. IEEE Trans. Cogn. Commun. Netw. 2017;3:731–739. doi: 10.1109/TCCN.2017.2771558. [DOI] [Google Scholar]
  • 31.Lehtomaki J.J., Vuohtoniemi R., Umebayashi K. On the Measurement of Duty Cycle and Channel Occupancy Rate. IEEE J. Sel. Areas Commun. 2013;31:2555–2565. doi: 10.1109/JSAC.2013.131114. [DOI] [Google Scholar]

Articles from Sensors (Basel, Switzerland) are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES