1. Technical Field
The present invention relates to cognitive radio and, more particularly, to systems and methods for determining whether a given spectrum band is unoccupied based on a block of received samples.
2. Description of the Related Art
Cognitive radio (CR) that supports secondary (unlicensed) users to access licensed spectrum bands not being currently occupied can dramatically improve spectrum utilization. Since the licensed (primary) users are prior to the secondary users (SUs) in utilizing the spectrum, the secondary and opportunistic access to licensed spectrum bands is only allowed to have negligible probability of deteriorating the quality of service of the primary users (PUs). Spectrum sensing performed by the secondary users to detect the unoccupied spectrum bands, is an important step in meeting this requirement.
Several spectrum sensing schemes, such as matched-filter detection, energy detection, and cyclostationary detection, have been proposed and investigated. Among these sensing schemes, energy detection does not rely on any deterministic knowledge about the primary signals and has low complexity. However, energy detection entails considerable amount of sensing time at the low detection signal-to-noise ratio (SNR) level, e.g., the sensing time is inversely proportional to SNR2. To overcome this shortcoming, another sensing scheme, the sequential probability ratio test (SPRT), has been proposed for CR.
The SPRT has been widely used in many scientific and engineering fields since it was introduced in the 1940s. For given detection error probabilities, the SPRT requires a small average sample number for testing simple hypotheses. However, the SPRT-based sensing schemes proposed to date have several potential drawbacks: First, SPRT needs deterministic information or the statistical distribution of certain parameters of the primary signals. Acquiring such deterministic information or statistical distributions is practically difficult. Secondly, when the primary signals are taken from a finite alphabet, the test statistic of the SPRT based sensing scheme involves a special function, which incurs high implementation complexity. Thirdly, SPRT adopts the Wald's choice on the thresholds. However, the Wald's choice, which works well for the non-truncated SPRT, increases error probabilities when applied for the truncated SPRT.
A method for determining whether a given electromagnetic frequency is in use includes applying a transformation to an amplitude of received samples, adjusting the transformed samples by a constant based on a minimum detection signal-to-noise ratio, combining the adjusted samples to produce a test statistic; and using a processor to make a determination regarding if the frequency is in use based on the test statistic exceeded or falling below a threshold, the test statistic being based on Ξq=Σi=1q×L(|ri|2−Δ), where q is the block index, r1 is the ith received sample, and Δ is the constant.
A system for determining whether a given electromagnetic frequency is in use, includes a transformation module configured to transform an amplitude of received samples, an adjustment module configured to adjust the transformed samples by a constant based on a minimum detection signal-to-noise ratio and to combine the adjusted samples to produce a test statistic, and a test module configured for making a determination using a processor as to whether the frequency is in use based on the test statistic exceeding or falling below a threshold, the test statistic being based on Ξq=Σi=1q×L(|ri|2−Δ), where q is the block index, ri is the ith received sample, and Δ is the constant.
These and other features and advantages will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.
The disclosure will provide details in the following description of preferred embodiments with reference to the following figures wherein:
Cognitive radio (CR) supports secondary and opportunistic access to licensed spectrum to improve spectrum utilization. The present principles are directed to a truncated, sequential sensing scheme having a simple test statistic. The present principles deliver a considerable reduction in average sensing time needed to determine whether a given band is unoccupied, while maintaining detection performance that is comparable to prior art techniques. Referring to
Embodiments described herein may be entirely hardware, entirely software or including both hardware and software elements. In a preferred embodiment, the present invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
Embodiments may include a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. A computer-usable or computer readable medium may include any apparatus that stores, communicates, propagates, or transports the program for use by or in connection with the instruction execution system, apparatus, or device. The medium can be magnetic, optical, electronic, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. The medium may include a computer-readable medium such as a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk, etc.
The application makes use of the following notation. Upper boldface and low boldface letters are used to denote matrices and vectors, respectively; IM denotes an M×M identity matrix; E[•] denotes the expectation operator, (•)T denotes the transpose operation; Npq denote a set of consecutive integers from p to q, Npq:={p, p+1, . . . , q}, where p is a non-negative integer and q is a positive integer or infinity; I{x≧0} denotes an indicator function defined as I{x≧0}=1 if x≧0 and I{x≧0}=0 if x<0.
Consider a narrow-band CR communication system having a single secondary user (SU). The SU shares the same spectrum with a single primary user (PU) and needs to detect the presence/absence of the PU to determine whether it is permissible to use the spectrum. This is shown as block 108 in
H
0
:r
i
=w
i
, i=1, 2, . . . , ad infinitum (1)
H
1
:r
i
=s
i
+w
i
, i=1, 2, . . . , ad infinitum (2)
where r is the signal received by the SU at time instant i, wi is additive white Gaussian noise, si is the transmitted signal of the PU, and H0 and H1 denote the null and alternative hypotheses, respectively. It may be further assumed that
1) wis are modeled as independent and identically distributed (i.i.d.) complex Gaussian random variables (RVs) with means zero and variances σw2, i.e., wi˜CN (0,σw2);
2) the primary signal samples si are i.i.d.;
3) wi and si are statistically independent; and
4) the perfect knowledge on the noise variance σw2 is available at the SU.
The same assumptions have been made in energy detection. In practice, the noise variance σw2 can be known a priori by an appropriate measurement. In energy detection, the energy of the received signal samples is first computed and then is compared to a predetermined threshold. The test procedure of energy detection is given as
where r:=[r1, r2, . . . , rM], T(r) denotes the test statistic, M represents the number of samples available for making a decision, and κ denotes a threshold for energy detection.
One principal advantage for energy detection is that, in its sensing process, energy detection requires no deterministic knowledge of the primary signals and thus is known as a form of non-coherent detection. On the other hand, one major drawback of energy detection is that, at the low detection SNR level, it requires a large sensing period. For energy detection, the number of sensing samples increases on the order of SNR−2 as SNR decreases.
To solve this problem, a simple sequential detection scheme may be used, having the following statistic,
where Δ is a predetermined constant. Calculation of the test statistic is shown as block 112 in
Reject H0:
if ΛN≧b and N≦M−1 or if ΛM≧γ; (4)
Accept H0:
if ΛN≦a and N≦M−1 or if ΛM<γ; (5)
Continue Sensing:
if ΛN∈(a,b) and N≦M−1 (6)
where a, b, and γ are three predetermined thresholds with a<0, b>0, and a<γ<b, and M is the truncated size of the test. Since each term in the cumulative sum ΛN is a shifted squared random variable (RV), the test procedure (4)-(6) is termed the sequential shift chi-square test (SSCT). In statistical terms, the SSCT is a truncated sequential test. Referring now to
It is evident from (4)-(6) that the test statistic depends only on the amplitudes of the received samples and the constant Δ. As will be shown below, the choice of the constant Δ depends on the minimum detection SNR instead of the exact operating SNR value, which is typically difficult to obtain in practice. To distinguish these two different SNRs, we denote the operating SNR as SNRo.
Normalizing ΛN by ρw2/2, equation (3) can be rewritten as
where
N=ξN−
For notional convenience,
Reject H0:
if ξN≧bN and N≦M−1 or if ξM≧
Accept Ho:
if ξN≧aN and N≦M−1 or if ξM≧
Continue Sensing:
if ξN∈(aN,bN) and N≦M−1 (11)
where
It should be noted that the SSCT is not merely an SPRT. In the non-truncated SPRT case, the Wald's choice on thresholds which yield a test satisfying specified false-alarm and misdetection probabilities is not applicable. Alternatively, the thresholds a, b, and γ, and a truncated size M are selected beforehand, either purposefully or randomly, and corresponding PFA,M and PMD,M are then computed. This procedure is indicated as block 102 in
If the resulting PFA,M and PMD,M do not meet design specifications, the thresholds and truncated size are subsequently adjusted. Such process continues until desirable error probability performance is obtained. In the above process, it is important to efficiently and accurately evaluate false-alarm and misdetection probabilities for prescribed thresholds a, b, and γ, and a truncated size M, as is discussed below.
An exact formulation for false-alarm probability can be derived according to the present principles, and an iterative method is shown to compute misdetection probabilities. In describing these probabilities, the following definitions become useful:
f
χ
(k)(ξ)=∫χ
with the initial condition fχ
I(0):=1, and I(n):=∫Ω
where ξn:=[ξ1, ξ2, . . . , ξn] with 0≦ξ1≦ξ2 . . . ≦ξn and Ω(n)={(ξ1, ξ2, . . . , ξn):0≦ξ1≦ . . . ≦ξn, ai<ξi<bi, i∈N1n}. In particular, when n=1, I(1)=∫a
where s denotes the integer such that bs<c≦bs+1, Q denotes the integer such that aQ<b1≦aQ+, and N≧2. Let Ai be an (N−n)×(N−n−i) matrix defined as Ai=[IN−i−n|0i×(N−i−n)]T with i∈N1N. Furthermore: ψn,cN−i=ψn,cN·Ai, i∈N1N, and an
A third useful integral is defined as:
J
c,d
(N)(θ):=∫Y
where θ>0, N≧1, and
Y
c,d
(N):={(ξ1, . . . , ξN):0≦ξ1≦ . . . ≦ξN, ai<ξi<bi, i∈N1N−1; c<ξN<d}
and θ is a positive real number.
Using these integrals, it is possible to formulate a false-alarm probability, shown as block 104 in
The false-alarm probability PFA,M represents the likelihood that the SU will conclude that there is a PU on the channel, despite no such PU actually being present. PFA,M with truncated size M can be written as PFA,M=ΣN=1MPH
P
v|H
(v1, . . . , vN)=2−Ne−Σ
where v:=(v1, . . . , vN). Due to ξN=Σi=1Nvi, the following transformation between ξi and vi: v1=ξ1 arises: v2=ξ2−ξ1, . . . , vn=ξN−ξN−1.
By applying this function and equation (16), one arrives at
where ξ:=(ξ1, ξ2, . . . , ξN). According to equations (15), (17), and the definition of Yb
Taking the above into account, the false-alarm probability, PFA,M, is given by PFA,M=ΣN=1MPH
where pN=2−(N−1)e−b
A formulation for the misdetection probability, PMD,M, is now presented, shown as block 106 in
where I0(•) is the zeroth-order modified Bessel function of the first kind.
To compute the misdetection probability, one must first obtain p(vi|H1), as acquiring perfect knowledge of each λi is typically infeasible except for constant-modulus primary signals. Alternatively, one can obtain p(vi|H1) by applying the Bayesian approach to average over all the possible λi. This approach requires knowledge of the exact statistical distribution of the amplitude square of the primary signals, |si|2. Obtaining such knowledge requires cooperation between the primary and second users. Like energy detection, the SSCT can obviate such a requirement due to the following properties:
(1) For a sufficiently large N, the statistical distribution of ΛN depends on the mean of λi, i=1, . . . , N, irrespective of a specific choice of λ1, . . . , λN. Define ρN:=bN for N∈N1M−1 and ρM:=
(2) Let ε be an arbitrary positive number. If for each N there exists a positive integer lN∈N1N such that
where lN depends on the values of N and ε, and {tilde over (P)}MD,M denotes the miss-detection probability obtained by assuming constant modulus signals (i.e., when all λi are equal).
With these properties, it is reasonable to assume that all λi are equal to λ by allowing negligible errors when M is not sufficiently large.
In this case, one can employ an efficient computational method to recursively compute PMD,M. Defining ui=vi−
Recall that M is the maximum number of samples to observe. Denote
Using (21), one can recursively compute Gk(tk) as
G
k(tk)=∫−∞ā−t
for k=1, . . . , M with the following initial condition:
G
0(t0)=0 if t0≧
Employing the above recursive process, one can obtain GM(0), which is equal to the misdetection probability, PMD,M.
Another important quantity in the SSCT is the average sample number (ASN). The number of samples needed to yield a decision is an RV, denoted by Ns. The ASN can be written as
E(Ns)=EH
where EH
where PH
P
H
(Ns=N)(a)=PH
P
H
(Ns=M)(b)=PH
where the two terms on the right-hand side of the equality 26 are the probabilities of the events that, under Hi, the test statistic does not cross either of two boundaries at or before samples N−1 and N for N∈N1M−1, respectively, and the term on the right-hand side of equality 27 denotes the probability that under Hi (the condition where a PU is using the channel), the test statistic does not cross either boundary at or before samples N−1.
These probabilities can be expressed for each of the hypotheses as
P
H
(Ns=N)=2−(N−1)Ja
P
H
(Ns=M)=2−(M−1)Ja
P
H
(Ns=N)(c)=PH
P
H
(Ns=M)(d)=1−PH
where the two terms on the right-hand side of equation 28 are the probabilities of the events that, under H1, the test statistic crosses either of the two boundaries at or before samples N and N−1, respectively, and the second term on the right-hand side of equation 29 is the probability that the test statistic crosses either of the two boundaries at or before sample M.
According to equation (23), Gk (tk) also depends on
P
H
((ξ1, . . . , ξN)∉Ya
where GN(t,ā) and GN(t,
As can be seen from the above, the SSCT scheme provides advantages over the prior art in that: 1) the test statistic is simple; 2) it does not need deterministic knowledge about the primary signals; 3) it can substantially reduce sensing time while maintaining a comparable detection performance as compared with energy detection; 4) and it offers desirable flexibility in striking the trade-off between detection performance and sensing time when SNRa mismatches with SNRm.
Referring now to
where Δ is a constant and N represents the number of samples collected so far. The test statistic is then evaluated at block 208 to determine whether it exceeds the upper-boundary b or falls below the lower-boundary a, such that a determination is made regarding whether the spectrum is occupied. If a threshold is exceeded, the procedure ends with the information that the SU may or may not use the spectrum. Otherwise, the number of samples received is determined at block 210. If no decision has been made when that number reaches a maximum number of samples (described above as the quantity M), then the sensing stops and makes a decision by comparing the final test statistic ΛM with γ.
Referring now to
The present principles involve the use of several thresholds. If the test statistic is below a threshold “a”, then the present principles arrive at a determination that the spectrum is unoccupied. If the test statistic is above a second threshold “b”, the present principles determine that the spectrum is occupied. A third threshold “γ” may be used to provide a determination for a final test statistic. A fourth threshold, “M,” is selected as the maximum allowable sensing time.
The thresholds “a,” “b,” and “γ” can be determined based on system design specifications. The values of these thresholds determine the probabilities for false-alarm and for misdetection. Referring now to
The thresholds may be adjusted on a trial-and-error basis. After a set of thresholds has been generated and the false-alarm and misdetection probabilities have been calculated, if the misdetection probability is larger than design specifications, the value of threshold a may be decreased, and vice versa. If the false alarm probability is larger than the design specifications, the value of threshold b may be increased. The difference between the two thresholds (b−a) is also considered.
In the above described sensing scheme, the test statistics ΛN is compared with two predetermined thresholds a and b every received signal sample. This may be difficult or even infeasible in practice especially when the SNR is low and/or the sampling rate is high. To overcome this shortcoming, we propose an extension of the SSCT, simply called the block-wise SSCT (B-SSCT).
In the B-SSCT, the received signal samples are first parsed into a block of length L and threshold comparisons are performed at the end of each block, as showed in
Ξq=Σi=1q×L(|ri|2−Δ) (32)
where Δ is a predetermined constant. Similar to ones described for equations (4)-(6) above, the test procedure is described as follows:
Reject H0:
if Ξq≧bB and q≦Q−1 or if ΞQ≧cB; (33)
Accept H0:
if Ξq<aB and q≦Q−1 or if ΞQ<cB; (34)
Continue Sensing:
if Ξq∈(aB,bB) and q<Q. (35)
where aB, bB and cB are three predetermined thresholds with aB<0, bB>0, and aB<cB<bB, and Q is the truncated block number of the test. It is clear from (32) that the truncate sample number of the B-SSCT is Q×L, and the threshold comparison is only performed every L samples.
The false-alarm probability denoted by PFA and the miss-detection probability denoted by PMD can be evaluated by using a similar procedure described above for SSCT. In the following, we briefly describe the procedure to evaluate false-alarm and miss-detection probabilities, which illustrates the differences between the evaluation procedure for the B-SSCT and the one described above for SSCT. Since evaluating PFA and PMD follows the same procedure, we only show how to compute PMD in detail.
Defining us=τl=1L(|r(s−1)L+l|2−Δ), we can rewrite (32) as
Based on the central limit theorem (CLT), the distributions of us under hypotheses H0 and H1 can be approximated as
Hence, we can write the PDFs of us under H0 can be written as
and the PDF of us under H1 can be written as
To compute PMD, we make corresponding changes on upper- and lower-limits and replace PH
The thresholds aB, bB and cB may be adjusted on a trial-and-error basis, as described above.
The ASN of the B-SSCT can be evaluated by using the similar approaches described above for SSCT.
Having described preferred embodiments of a system and method (which are intended to be illustrative and not limiting), it is noted that modifications and variations can be made by persons skilled in the art in light of the above teachings. It is therefore to be understood that changes may be made in the particular embodiments disclosed which are within the scope of the invention as outlined by the appended claims. Having thus described aspects of the invention, with the details and particularity required by the patent laws, what is claimed and desired protected by Letters Patent is set forth in the appended claims.
This application is a continuation-in-part of parent application Ser. No. 12/718,422, entitled, “SEQUENTIAL SENSING SCHEME FOR COGNITIVE RADIO”, filed Mar. 5, 2010, from which priority is claimed. The parent application is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 12718422 | Mar 2010 | US |
Child | 12818813 | US |