Primary User Detection in OFDM Based MIMO Cognitive Radio
Primary User Detection in OFDM Based MIMO Cognitive Radio
k=0
X
l,k
e
j2k(tlT
i
)
T
i
e
j2fi(tlTi)
(1)
where, X
l,k
is PU symbol modulated on k
th
sub-carrier,
generating l
th
PU-OFDM symbol.
A. Single Antenna (SA) Scheme
The received signal on CR is down converted, sampled
at T
d
=
Ts
Q
and passed through Q-point DFT system. We
consider the n
th
CR-OFDM symbol to fall within the span
of PU signals l
th
symbol, such as nT
s
t < (n + 1)T
s
. In
detection of the n
th
OFDM symbol, the contribution of PU
signal in a frequency selective fading channel at the down-
converter output of the receiver is given by
s (t nT
s
) = e
j2fs(tnTs)
L1
m=0
h
m
x(t lTi mTs) (2)
where, h
m
are coefcients of frequency selective fading chan-
nel. Substituting (1) in (2) yields
s (t nT
s
) =
L1
m=0
h
m
K1
k=0
X
l,k
e
j2k(tlT
i
mTs)
T
i
e
j2fi(tlTimTs)
e
j2fs(tnTs)
=
K1
k=0
X
l,k
H
k
e
j2k(tlT
i
)
T
i
e
j2fi(tlTi)
e
j2fs(tnTs)
(3)
where, H
k
=
L1
m=0
h
m
e
j2m(fiTs+k
Ts
T
i
)
. The resulting signal
is then sampled at every T
d
=
Ts
Q
seconds, and the corre-
sponding sampled signal is given as
s
p
=
K1
k=0
X
l,k
H
k
e
j2
pTs
Q
(
k
T
i
+fifs)
e
j2(lfiTi+nTsfs)
, (4)
The discrete time signal {s
p
} is passed through a Q-point
DFT, which provides the signal component on q
th
sub-carrier
as follows
S
q
(n) =
Q1
p=0
s
p
e
j2pq
Q
=
K1
k=0
X
l,k
H
k
e
j2(lfiTi+nfsTs)
e
j
k,q
(Q1)
sin(
k,q
Q)
sin(
k,q
)
0 q Q 1 (5)
where,
k,q
= (
k
Ti
+f
i
f
s
)T
d
q
Q
. Therefore, the received
signal at the CR post DFT operation can be written as,
R
q
(n) = S
q
(n) +W
q
(n) (6)
where, W
q
(n) is DFT of complex noise sequence with vari-
ance
2
w
. The primary objective is to determine the presence
(Hypothesis H
1
) or absence (Hypothesis H
0
) of PU signal.
Under these two hypothesis, received signal is denoted as
R
q
(n) =
_
S
q
(n) +W
q
(n) H
1
W
q
(n) H
0
n = 1, . . . , N (7)
The energy detector forms the decision statistics (E
q
) collect-
ing N samples from the output of DFT block corresponding to
q
th
sub-carrier. The decision statistics (E
q
) will be compared
with threshold calculated for a given probability of false alarm
(P
f
) to detect the presence of PU signal. The decision making
block marks the sub-carrier as unused when the decision statis-
tics is less than threshold value. This procedure is repeated
for all the Q sub-carriers and subsequently, the number of
sub-carriers free for use by CR is determined. Under H
0
, the
normalized decision statistics is given as
E
q
=
2
2
w
N
n=1
|W
q
(n)|
2
=
2
2
w
N
n=1
(|W
qr
(n)|
2
+ |W
qi
(n)|
2
) (8)
where, W
qr
(n) and W
qi
(n) are real and imaginary parts of
W
q
(n) and they are zero mean gaussian random variable with
variance
2
w
/2. Now, we dene Z
qr
(n) =
Wqr(n)
2
w
/2
, and Z
qr
(n)
is zero mean gaussian random noise with unit variance. The
decision statistics is given as
E
q
=
N
i=1
(|Z
qr
(n)|
2
+ |Z
qi
(n)|
2
) (9)
Thus, E
q
under H
0
, can be viewed as the sum of square of the
2N standard Gaussian i.i.d random variable with zero mean
3
and unit variance. Therefore, E
q
follows a central chi-square
distribution with 2N degree of freedom. The probability of
false alarm is given as [6]
P
f
=
(N, /2)
(N)
(10)
where, (., .) is the incomplete gamma function, is the
threshold with which the decision statistics is compared to
detect the presence of PU signal. Under H
1
, the decision
statistics E
q
is given as
E
q
=
2
2
w
N
n=1
|S
q
(n) +W
q
(n)|
2
=
2
2
w
N
n=1
(S
qr
(n) +W
qr
(n))
2
+ (S
qi
(n) +W
qi
(n))
2
=
2
2
w
[R
T
qr
R
qr
+R
T
qi
R
qi
]
=
2
2
w
u
T
u (11)
where, u = [R
T
qr
R
T
ri
]
T
, and R
qr
= [R
qr
(1) . . . R
qr
(N)].
The decision statistics E
q
under H
1
is sum of square of
2N correlated gaussian random variable. The correlation of
Gaussian random sequence R
q
(n) is due to signal component
S
q
(n) obtained considering small segment of oversampled PU
OFDM symbol, assuming T
i
/T
s
> 1. The PDF of decision
statistics can be written as (using (23) in Appendix I)
P
Eq/H1
(E
q
) =
1
2
_
()e
jEq
d (12)
where, () =
N
i=1
(1 j2
i
)
1
=
2N
i=1
(1 j2
i
)
0.5
is characteristic function of decision statistics,
i
are the
eigenvalues of covariance matrix (C
Eq
) of gaussian random
variable constituting decision statistics,
i
are the eigenvalues
of covariance matrix R = [C
Eq
0
N,N
; 0
N,N
C
Eq
]. The
PDF is evaluated numerically once eigenvalues of covariance
matrix are computed. The covariance matrix of decision statis-
tics is given as (using (28) in Appendix II)
C
Eq
=
1
2
w
{C
s
+
2
w
I} (13)
where, (n, m)
th
elements of covariance matrix C
s
is as follows
C
s
n,m
=
_
_
_
_
1
|b|
_
K1
k=0
e
j2(b)Tsfs
sin
2
(
k,q
Q)
sin
2
(
k,q
)
_
|b| 1
0 Otherwise
(14)
where b = n m and =
Ti
Ts
with x being the largest
integer not greater than x. The probability of detection is given
as
P
d
=
_
P
Eq/H1
(E
q
)dE
q
(15)
The threshold is computed from (10) for a given probability
of false alarm.
B. Square Law Combining (SLC) Scheme
In this section, we derive the detection probabilities of
diversity-based energy detectors in a fading channel for MIMO
cognitive radio. In this scheme, multiple antennas are used at
the cognitive radio receiver end for making efcient decision
on the detection of primary user signal. Received signal is
passed through energy detector, output of which is combined
to form the decision statistics. The received signal at the j
th
antenna can be written as
R
j
q
(n) = S
j
q
(n) +W
j
q
(n), j = 1 . . . M (16)
where, M is the number of CR antennas. The normalized
decision statistics for SLC scheme is equal to the sum of the
energy of all the received antennas which can written as
E
q
=
2
2
w
M
j=1
N
n=1
S
j
q
(n) +W
j
q
(n)
2
(17)
Under H
0
,
E
q
=
2
2
w
M
j=1
N
n=1
W
j
q
(n)
2
=
2
2
w
M
j=1
N
n=1
_
_
W
j
qr
(n)
_
2
+
_
W
j
qi
(n)
_
2
_
=
M
j=1
N
n=1
_
_
Z
j
qr
(n)
_
2
+
_
Z
j
qi
(n)
_
2
_
(18)
Thus, E
q
can be viewed as the sum of the squares of the
2MN standard Gaussian i.i.d random variable with zero mean
and unit variance. Therefore, decision statistics E
q
under H
0
follows a central chi-square distribution (
2
) with 2MN degree
of freedom. The probability of false alarm (P
f
) of SLC scheme
is given as [6]
P
f
=
(MN, /2)
(MN)
(19)
Under H
1
, the decision statistics E
q
is given as
E
q
=
2
2
w
N
n=1
S
1
q
(n) +W
1
q
(n)
2
+. . .
+
2
2
w
N
n=1
S
M
q
(n) +W
M
q
(n)
2
(20)
The characteristic function is () =
N
i=1
(1j2
i
)
M
, as-
suming independence and same statistics for MIMO channels,
where
i
are the eigenvalues of covariance matrix (C
Eq
) of
gaussian random variable constituting decision statistics. The
PDF and probability of detection is evaluated numerically once
eigenvalues of covariance matrix and threshold for a given
probability of false alarm is computed.
III. SIMULATION RESULTS
In our simulation, we consider the PU-OFDM system con-
sisting of K = 256 sub-carriers with symbol period T
i
= 26.6
s and carrier frequency f
i
= 3.1 GHz. Subsequently, we
consider CR receiver with Q = 128 sub-carriers of symbol
4
10
4
10
3
10
2
10
1
10
0
10
4
10
3
10
2
10
1
10
0
Probability of False Alarm (P
f
)
P
r
o
b
a
b
i
l
i
t
y
o
f
M
i
s
s
(
P
m
)
SA SNR=0 dB
SA SNR=2 dB
SA SNR=5 dB
SLC SNR=0 dB
SLC SNR=2 dB
SLC SNR=5 dB
Fig. 1. Complementary ROC curves for different diversity schemes based
energy detector (T
i
= 26.6s, Ts = 2.66s, N=10, M = 2).
period T
s
= 2.66 s and carrier frequency f
s
= 3.1 GHz,
and equipped with single antenna and two antennas for SA and
SLC scheme respectively. To show the detection performance
of MIMO cognitive radio, we use complementary receiver
operating characteristic (ROC) function.
Figure 1 shows the complementary ROC curves over
Rayleigh fading channel for different diversity scheme based
on energy detector for different SNR and N = 10. As
expected, the performance of SLC scheme is superior than no
diversity schemes for xed SNR, and N. Figure 2 illustrates
the effect of SNR on ROC curves for SA and SLC scheme
which shows that diversity based energy detector performs
better at low SNR and the difference decreases as SNR
increases for a particular value of P
f
, N and T
i
/T
s
ratio.
The detection probability can also increases by considering
high number of CR-OFDM symbols (N) for forming decision
statistics in both the cases, as shown in Fig. 3. However, con-
sidering high number of N, increases the sensing time, where
sensing time is directly proportional to N. To achieve the
probability of detection 0.9 for P
f
= 0.01, SA scheme requires
close to 40 CR-OFDM symbols at SNR 5 dB and needed
more than 200 CR-OFDM symbols at SNR 2 dB. However,
diversity-based detector requires only 20 CR-OFDM symbols
at SNR of 2 dB and 5 symbols at 5 dB SNR. Thus, diversity-
based detector achieves the same performance with decreased
sensing time. Therefore, a trade-off is necessary between P
d
,
sensing time and number of antenna at a particular value of
P
f
and T
i
/T
s
ratio.
Finally, Fig.4 shows the dependence of P
d
on
Ti
Ts
ratio for
SLC and SA scheme. The CR receiver with
Ti
Ts
= 10, N = 10
considers single PU OFDM signal for decision statistics. Small
Ti
Ts
= 5 ratio implies that CR OFDM symbol takes into account
two PU OFDM signal for xed N = 10. Hence a gain in the
detection performance. However, for
Ti
Ts
= 20, only half of
the PU OFDM symbol is considered.
IV. CONCLUSION
In this work, we considered sub-carrier level spectral sens-
ing in OFDM based CR, where CR receiver is equipped
0 2 4 6 8 10
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
SNR (dB)
P
o
r
b
a
b
i
l
i
t
y
o
f
D
e
t
e
c
t
i
o
n
(
P
d
)
SA
SLC
Fig. 2. Probability of detection versus SNR for different diversity schemes
based energy detector (T
i
= 26.6s, Ts = 2.66s, N=10, M = 2, P
f
=
0.01).
0 20 40 60 80 100
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Number of CR OFDM symbols (N)
P
r
o
b
a
b
i
l
i
t
y
o
f
D
e
t
e
c
t
i
o
n
(
P
d
)
SA SNR=0 dB
SA SNR=2 dB
SA SNR=5 dB
SLC SNR=0 dB
SLC SNR=2 dB
SLC SNR=5 dB
Fig. 3. Probability of detection versus N for different diversity schemes
based energy detector (T
i
= 26.6s, Ts = 2.66s, M = 2, P
f
= 0.01).
0 10 20 30 40 50 60 70 80
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Number of CR OFDM symbols (N)
P
r
o
b
a
b
i
l
i
t
y
o
f
D
e
t
e
c
t
i
o
n
(
P
d
)
SLC T
i
/T
s
= 5
SLC T
i
/T
s
= 10
SLC T
i
/T
s
= 20
SA T
i
/T
s
= 5
SA T
i
/T
s
= 10
SA T
i
/T
s
= 20
Fig. 4. Probability of detection versus N for different
T
i
Ts
ratio (T
i
=
26.6s, M = 2, SNR = 2dB).
5
with multiple antennas. The CR used SLC based energy
detection to detect primary user signal. The SLC based energy
detector provides high detection probabilities even at low to
moderate SNRs. Increasing number of CR-OFDM symbols is
also considered for decision statistics, leading to a increased
performance, but at the expense of increased sensing time.
The investigation also shows the impact of T
i
/T
s
ratio on the
detection performance.
REFERENCES
[1] FCC, Spectrum Policy Task Force Report, ET Docket No. 02-135,
Nov. 2002
[2] J. Mitola et al., Cognitive radio: making software radios more per-
sonal, IEEE Pers. Commun., vol 6, no. 4, pp. 13-18, Aug. 1999.
[3] S. Haykins, Cognitive radio: brain-empowered wireless communica-
tions, IEEE J. Select. Areas Commun, vol. 23, no. 2, pp. 201-220, Feb.
2005.
[4] I. F. Akyildiz et al., Next generation/dynamic spectrum access/cognitive
radio wireless network: a survey, Computer Network, pp. 2127-2159,
2006.
[5] F. F. Digham, M. S. Alouini, and M. K. Simon, On the energy
detection of unknown signals over fading channels, Proc. IEEE Int.
Conf. Communications. (ICC03), vol. 5, pp. 3575-3579, May. 2003.
[6] F. F. Digham, M. S. Alouini, and M. K. Simon, On the energy detection
of unknown signals over fading channels, IEEE Trans. Commun., vol.
55, no. 1, pp. 21-24, Jan. 2007.
[7] H. Tang, Some physical layer issues of wide-band cognitive radio
systems, Proc. IEEE Int. Symp. on new frontiers in Dynamic Spectrum
Access Networks (DySPAN05), pp. 151-159, Nov. 2005.
[8] T. A. Weiss, and F. K. Jondral, Spectrum pooling: an innovative strategy
for the enhancement of spectrum efciency, IEEE Commun. Mag., vol.
42, no. 3, pp. S8-S14, Mar. 2004.
[9] C. H. Hwang, and S. C. Chen, Spectrum Sensing in wideband OFDM
cognitive radios, submitted to IEEE Trans. Signal Processing., Aug.
2007.
[10] W. Huan, W. Yajun and L. Maocang, CFAR performance analysis of
a phase-coded pulse compression systemwith hard limiter, CIE Inter.
Conf. of Radar, vol. 8, pp. 409-412, Oct. 1996.
[11] C. R. N. Athaudage and K. Sathananthan, Probability of error of space-
time coded OFDM systems with frequency offset in frequency-selective
Rayleigh fading channels, The IEEE Inter. Conf. on Communications
(ICC05), vol. 4, pp. 2593-2599, May. 2005.
APPENDIX I
Theorem 1 : Let u = [u
T
r
u
T
i
]
T
be a 2N dimensional real
Gaussian random variable with positive denite covariance
matrix R. Then the characteristic function of y = u
T
u is
given by [10]
() =
2N
i=1
(1 j2
i
)
1
2
(21)
where,
i
are the eigenvalues of R. When R takes the special
form, (i.e) R = diag{R
u
, R
u
}, () can be written as
() =
N
i=1
(1 j2
i
)
1
(22)
where, R
u
= E{u
r
u
T
r
} = E{u
i
u
T
i
},
i
are the eigenvalues of
R
u
. The PDF of y is obtained by Fourier transform of (),
that is
p
y
(y) =
1
2
_
()e
jy
d (23)
APPENDIX II
The received signal on q
th
subcarrier of CR-OFDM system
can be written as (6)
R
q
(n) =
K1
k=0
X
l,k
H
k
e
j2(lfiTi+nfsTs)
e
j
k,q
(Q1)
sin(
k,q
Q)
sin(
k,q
)
+W
q
(n) 0 q Q 1 (24)
The received signal R
q
(n) can be approximated by a Gaussian
random sequence when the number of complex sinusoidal K
is very large due to central limit theorem. The signal and noise
components are assumed to be independent. Let us denote the
event A that the n
th
and m
th
CR OFDM symbols both fall
within the span of the l
th
PU symbol. Clearly, R
q
(n) and
R
q
(m) are zero-mean Gaussian random variable. Conditioned
on the event A, the correlation of R
q
(n) and R
q
(m) is [11]
E{R
q
(n)R
q
(m)/A} =
K1
k=0
E{|H
k
|
2
}E{|X
l,k
|
2
}
e
j2(nm)Tsfs
sin
2
(
k,q
Q)
sin
2
(
k,q
)
+
2
w
(25)
Assuming, E{|X
l,k
|
2
} = 1 and E{|H
k
|
2
} = 1,
E{R
q
(n)R
q
(m)/A} =
K1
k=0
e
j2(nm)Tsfs
sin
2
(
k,q
Q)
sin
2
(
k,q
)
+
2
w
(26)
On the contrary, if OFDM symbols n and m fall within the
span of distinct symbols of PU signal, then
E{R
q
(n)R
q
(m)/A} = 0
with A is the complement of A. Let =
Ti
Ts
with x being
the largest integer not greater than x. The probability Pr{A}
of event A is roughly equal to [9]
Pr{A} =
_ _
1
|nm|
_
, |n m| 1
0 Otherwise
(27)
Thus, the (n, m)
th
element of the covariance matrix of
{R
q
(n)}
N1
n=0
is given by
Pr{A}.E{R
q
(n)R
q
(m)/A} (28)