Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
=
= =
K
k
n k n x k f n x
0
,... 1 , 0 ), ( ) ( ) (
~
+et
=
= =
K
k
n k n s k f n s
0
,... 1 , 0 ), ( ) ( ) (
~
=
= =
K
k
n k n k f n
0
,... 1 , 0 ), ( ) ( ) (
~
Then
) (
~
) (
~
:
0
n n x H =
) (
~
) (
~
) (
~
:
1
n n s n x H + =
-ote that here the noise samples
( ) n %
are correlated. 3f the sampling rate
s
f
is larger than
the signal $and#idth W ! #e can do#n;sample the signal. +et 1 M $e the do#n;sampling
factor. 3f the signal to $e detected has a narro#er $and#idth thanW ! it is $etter to choose
1 M > . <or notation simplicit%! #e still use
( ) x n %
to denote the recei"ed signal samples after
do#n;sampling! that is!
( ) ( ). x n x Mn = % %
Choose a smoothing factor L and define
1 ,..., 1 , 0 , ] ) 1 (
~
... ) 1 (
~
) (
~
[ ) ( = + =
s
T
N n L n x n x n x n %
A suggested "alue for L is around 10. Define a
( 1 ( 1) ) L K L M + +
matri& as
(0) ... ... ( ) 0 ... 0
0 ... (0) ... ( ) ... 0
... ...
0 ... ... ... (0) ... ( )
f f K
f f K
f f K
=
H
+et
H
HH G = . Decompose the matri& into
2
& G = ! #here & is a L L 7ermitian matri&.
The matri& G is not related to signal and noise and can $e computed offline. 3f analog filter
or $oth analog filter and digital filter are used! the matri& G should $e re"ised to include the
I
2
R Strictly Confidential 7 of &'
5
10
15
20
25
Algorithm Design Document
Document no.: CRAW_???_001 draft v0.1
effects of all the filters. 3n general! Gcan $e o$tained to $e the co"ariance matri& of the
recei"ed signal! #hen the input signal is #hite noise onl% 4this can $e done in la$orator%
offline5. The matri& J and N are computed onl% once and onl% N is used in detection.
Denote the statistical co"ariance matri& of the recei"ed signal as
) ) ( ) ( E(
H
x
n n % % R =
Then
G R R
2
+ =
s x
#here
s
R
is the statistical co"ariance matri& of the signal 4including fading! multipath and
filtering5 and
2
+ =
s x
3f there is no signal! then 0
~
=
s
R . 7ence the off;diagonal elements of
x
R
~
are all Keros. 3f
signal presents!
s
R
~
is almost surel% not a diagonal matri&. 7ence! some of the off;diagonal
elements of
x
R
~
should not $e Keros. Denote the elements of the matri& $%
nm
r
.
+et
= =
=
L
n
nm
L
m
r
L
1 1
1
1
T
!
=
=
L
n
nn
r
L
1
2
1
T
Then if there is no signal!
2 1
T T = . 3f there is signal!
2 1
T T > . We o$tain a detection method
as follo#s.
Algorithm /8 he covariance a5solute value 9CA#: 1etection
Step /. )ample and filter the recei"ed signal as descri$ed a$o"e.
Step &0 Choose a smoothing factor L and compute the threshold
is chosen to meet
the re*uirement for the pro$a$ilit% of false alarm.
I
2
R Strictly Confidential /' of &'
5
10
15
20
25
30
Algorithm Design Document
Document no.: CRAW_???_001 draft v0.1
Step ,0 Compute the auto;correlations of the recei"ed signal
=
= =
1
0
*
1 ,..., 1 , 0 ), (
~
) (
~
1
) (
s
N
m s
L l l m x m x
N
l
!
and form the sample co"ariance matri& as
*
* *
(0) (1) ... ( 1)
(1) (0) ... ( 2)
( )
( 1) ( 2) ... (0)
s
L
L
N
L L
=
R
M M M M
-ote that the sample co"ariance matri& is 7ermitian and ToeplitK.
Step .. Transform the sample co"ariance matri& to o$tain
1 1
) ( ) (
~
= & R & R
s s
N N
Step 20 Compute
= =
=
L
n
s nm
L
m
s
N r
L
N
1 1
1
) (
1
) ( T
=
=
L
n
s nn s
N r
L
N
1
2
) (
1
) ( T
#here
) (
s nm
N r
are the elements of the sample co"ariance matri&.
Step 30 Determine the presence of the signal $ased on
) ( T
1 s
N
!
) ( T
2 s
N
and the threshold: if
1 2
T ( ) /T ( )
s s
N N >
! signal e&istsL other#ise! signal not e&ists
<igure 1. <lo#;chart of the co"ariance a$solute "alue 4CA:5 detection
.0 Implementation of the CA# algorithm
I
2
R Strictly Confidential // of &'
Compute the
sample
co"ariance
matri& using
the collected
samples
Decision: if !
signal e&istsL
/ther#ise! signal not
e&ists.
Choose a
smoothing
factor and
the
threshold
Compute the a$solute
"alue sum of the
sample co"ariance
matri& and its diagonal
matri& to o$tain and
)ample
and filter
the
recei"ed
signal
Transform
the sample
co"ariance
matri&
5
10
15
20
25
Algorithm Design Document
Document no.: CRAW_???_001 draft v0.1
/: he choice of channel selection filter
To ha"e a good adacent channel signal reection! the channel selection filter should
ha"e stop;$and attenuation as high as possi$le! prefera$l% higher than G0d9. <or the
current de"ice! 3< center fre*uenc% is E.E.7K and sampling rate is HM.E.7K. The filter
#ith $and#idth G.7K is chosen to ha"e D1C taps. The coefficients of the filter are
included in the appendi& 1.
<or AT)C DT: signal detection! a narro# $and filter centered at fre*uenc% 0.GM0G .7K
#ith $and#idth 100 I7K is used. The filter also has D1C taps. The coefficients 4after
truncation to 10 $its5 of the filter are also attached in appendi& 1.
&: Computation of the pre;whitening matri< =
Due to possi$l% un6no#n colored noise! the pre;#hitening matri& = used in Step . can
$e computed $ased on the auto;correlations of the output signal #hen the de"ice is
terminated. +et the auto;correlations at terminating case $e
1
*
0
1
( ) ( ) ( ), 0,1,..., 1
s
N
T
m s
l x m x m l l L
N
=
= =
% %
We form the co"ariance matri& as
*
* *
(0) (1) ... ( 1)
(1) (0) ... ( 2)
( 1) ( 2) ... (0)
T T T
T T T
T
T T T
L
L
L L
=
R
M M M M
Decompose the matri& into
2
T
= R & ! #here & is a L L 7ermitian matri&. That is! #e
get the pre;#hitening matri& = as the s*uare root of
T
R
. The matri& = can $e
computed offline once for all and stored.
,: hreshol1 setting
The threshold is set $ased on the re*uired pro$a$ilit% of false alarm at terminating
case. +et
fa
P
$e the re*uired pro$a$ilit% of false alarm. At terminating case! the CA:
method is used for I tests. To guarantee high relia$ilit%! the num$er of tests I should
$e large. +et the ratio
) ( T
1 s
N
=
) ( T
2 s
N
of test
i
$e
( ) i
. Reorder
( ) i
into
1
( ) i
#ith
descending order. Then the threshold is chosen as
I
2
R Strictly Confidential /& of &'
5
10
15
20
25
Algorithm Design Document
Document no.: CRAW_???_001 draft v0.1
1
( )
fa
IP =
20 Spectrum 5ase1 h>5ri1 1etection
)ometimes the recei"ed signal ma% not onl% contain the desired signal and #hite noise!
$ut also some spurious signal and interference. The spurious signal ma% $e generated $%
Analog;to;Digital Con"erters 4ADC5 due to its non;linearit%. 3f the sensing antenna is near
some electronic de"ices! the spurious signal generated $% the de"ices can $e strong in
the recei"ed signal. We need signal processing techni*ues to handle the
spurious=interference.
There are t#o h%pothesises:
0
H
: signal not e&istsL and
1
H : signal e&ists. 3f there is
possi$le spurious signal! the recei"ed signal samples under the t#o h%pothesises are
therefore respecti"el% as follo#s:
0
1
: ( ) ( ) ( )
K
i
i
H x n n n
=
= +
1
1
: ( ) ( ) ( ) ( )
K
i
i
H x n s n n n
=
= + +
!
#here
) (n s
is the transmitted signal passed through a #ireless channel 4including fading
and multipath effect5!
( )
i
n
is a possi$le spurious signal and
) (n
is the #hite noise
samples. -ote that
) (n s
can $e the superposition of multiple signals. The spurious signal
( )
i
n
is normall% an e&tremel% narro#$and signal. .an% detection algorithms cannot
differentiate the transmitted signal
) (n s
and spurious signal
( )
i
n
. Therefore! these
algorithms #ill produce false alarm #hen spurious signal presents! that is! e"en if
interested signal does not presents! the algorithms #ill #rongl% report Asignal presentB due
to the interference of the spurious signals. To sol"e this pro$lem! #e propose a detection
algorithm $ased on po#er spectrum densit% or <<T of the recei"ed signal to identif%
interested signals from spurious and noise.
+et N $e the num$er of recei"ed signal samples. The signal samples are di"ided into
$loc6s of length M ! #here M is the <<T siKe. +et
( ) ( ), 0,1,..., / 1; 0,1,..., 1
m
x n x mM n m N M n M = + = =
I
2
R Strictly Confidential /, of &'
5
10
15
20
25
30
Algorithm Design Document
Document no.: CRAW_???_001 draft v0.1
+et
( )
m
X k
$e the <<T of
( )
m
x n
! 0,1,..., 1 k M = . The ,)D of the recei"ed signal is defined
as
/ 1
2
0
( ) ( ) , 0,1,..., 1
N M
x m
m
n X n n M
=
= =
=
= =
<or #hite noise signal! the ,)D or the AA. should $e a constant for 0,1,..., 1 n M = . <or
a spurious signal! the ,)D or the AA. should $e constrained in J su$carriers onl%! #here
J is a parameter related to the <<T siKe M ! the channel $and#idth considered! and the
pro$a$ilit% of false alarm. <or interested signal! its ,)D or the AA. should $e spread into
more than J su$carriers.
Algorithm2: Spectrum based hybrid detection (SHD)
Step /. )ample and filter the recei"ed signal as descri$ed a$o"e.
Step &0 Di"ide the recei"ed signal samples into $loc6s of length M and compute the <<T
of each $loc6.
Step ,0 Compute the ,)D or the AA. as descri$ed a$o"e. ,re;#hiten the ,)D or the
AA. as follo#s
( ) ( ) / ( )
x x
n n n = W !
( ) ( ) / ( )
x x
n n n = W
#here
( ) n W
is the ,)D or the AA. for noise onl%.
Step .. Compute the mean "alue of the pre;#hitened ,)D or AA.! and define it as
mean
.
<ind all indices
n
such that
1
( )
x mean
n > or
1
( )
x mean
n >
#here
1
( )
x
n is a local pea6! i.e.!
( 1) ( )
x x
n n < and
( 1) ( )
x x
n n + < .
Step 30 <or e"er% local pea6 in Step 2! chec6 the "alues of the pre;#hitened ,)D or AA.
for the surrounding L points. 3f the standard de"iation 4)TD5 of the L points is smaller
than a threshold
2
=
= =
=
= =
is chosen as
1 1
( )
fa
IP =
The threshold
2
fa
P $e the re*uired pro$a$ilit% of false alarm.
The threshold
2
fa
P .
40 Appen1i< /8 1igital filters
The coefficients of the filter #ith $and#idth G.7K are as follo#s 4centered at fre*uenc%
E.E .7K! after truncation to 10 $its5:
1 1 0 ;1 ;0 ;0 ;1 0 0 D 0 0 ;1 ;1 0 0 0
;1 ;0 ;0 0 1 1 0 0 0 1 0 0 0 ;1 ;1 0 0
0 ;0 ;D ;0 0 1 1 0 ;1 0 D H D 1 ;1 ;1 1
1 ;1 ;H ;E ;H ;1 1 1 ;1 ;0 1 E C E 1 ;1 0
D D ;1 ;C ;M ;G ;1 1 ;1 ;E ;H 0 M 11 C 1 ;1
I
2
R Strictly Confidential /3 of &'
5
10
15
20
25
Algorithm Design Document
Document no.: CRAW_???_001 draft v0.1
D C G ;0 ;11 ;1D ;1 ;1 0 ;G ;11 ;1 D 1H 1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0G1 DM0 HGH H10 HH0 DHD 00H DM ;1D1 ;01E ;H0E ;HCE
;H1C ;HD1 ;DDG ;1M1 ;0D 1HM D0D H1M H1E HM0 HDG D0C 1C1 G ;1GC ;D1M
;HDD ;HMD ;HMD ;HD1 ;D1C ;1GD 11 11H DDE HHE E00 HMD H0G D0G 1H1 ;0M
;000 ;DE0 ;HEG ;E0E ;HM0 ;H1M ;0MD ;1D0 HG 01M DGH HGE E0M HM0 H10 010
11E ;GH ;0DE ;DC1 ;HCH ;E11 ;H1G ;H01 ;0GG ;M1 11 0E1 DM0 H10 E11 H10
DM0 0E1 11 ;M1 ;0GG ;H01 ;H1G ;E11 ;HCH ;DC1 ;0DE ;GH 11E 010 H10 HM0
E0M HGE DGH 01M HG ;1D0 ;0MD ;H1M ;HM0 ;E0E ;HEG ;DE0 ;000 ;0M 1H1 D0G
H0G HMD E00 HHE DDE 11H 11 ;1GD ;D1C ;HD1 ;HMD ;HMD ;HDD ;D1M ;1GC G
1C1 D0C HDG HM0 H1E H1M D0D 1HM ;0D ;1M1 ;DDG ;HD1 ;H1C ;HCE ;H0E ;01E
;1D1 DM 00H DHD HH0 H10 HGH DM0 0G1 11D ;EE ;01G ;DHM ;HDM ;HCE ;HE0
;DCH ;0E0 ;MG C0 00G DEH HD1 HGC HDM DEC 0D0 C1 ;1H ;0DG ;DEC ;HDE
I
2
R Strictly Confidential /4 of &'
5
10
15
20
25
30
Algorithm Design Document
Document no.: CRAW_???_001 draft v0.1
;HE1 ;H0E ;DH0 ;01D ;G1 M1 0HH DEM HD0 HH1 H10 D00 1ME HE ;110 ;0E1
;DG0 ;H0H ;HDG ;DMH ;D0H ;1CC ;0M 100 0EC DEM H1C H0D DCC 01E 1EM 1H
;1D0 ;0G1 ;DEC ;H01 ;H0M ;DG0 ;0GC ;1H1 1 1H0 0GH DEH DMM DME DH0 0H1
10H ;1H ;1E0 ;0GG ;DHM ;D11 ;DCM ;D0H ;00M ;10C 0C 1EC 0GC
60 Appen1i< &8 *atla5 co1es
The .atla$ code for the CA: algorithm is included in the follo#ing as an illustration to
the method.
OO .atla$ codes for the CA: algorithm
-)P0000L OO the num$er of s%m$ols generated
threPL OO input the threshold here
hfPL OO input filter here
+P10L OO the smooth factor
-TPD1CL OO the num$er of filter taps
OO The pre;#hitening matri& generation $ased on filter
R-1PKeros4+!-TQ+;15L
for nP1:+
R-14n!n:nQ-T;15PhfL
end
OO The pre;#hitening matri&
R-PR-1RR-1SL
RR-Ps*rtm4R-5L
RR-Pin"4RR-5L
OO 3nput the signal samples here
&1PL
OO <ilter the signal
&0PKeros4-)!15L
for nP1:-)
I
2
R Strictly Confidential /6 of &'
5
10
15
20
25
30
Algorithm Design Document
Document no.: CRAW_???_001 draft v0.1
for 6P1:-T
if 4nQ1;65T0
&04n5P&04n5Qhf465R&14nQ1;65L
end
end
end
OO Compute the auto;correlation matri&
RPKeros4+!+5L
rtPKeros4+!15L
for nP1:-)
rtPrtQ&4n5SR&4n:;1:n;+Q15L
end
for nP1:+
for mPn:+
R4n!m5Prt4m;nQ15SL
R4m!n5Prt4m;nQ15L
end
end
RPR=-)L
OO Compute T1 and T0
T1Psum4sum4a$s4R555=+L
T0Psum4a$s4diag4R555=+L
OO Detection of signal
,dP0L OO if ,dP0! no signalL if ,dP1! signal presents
if T1TthreRT0L
,dP1L
end
I
2
R Strictly Confidential /7 of &'
5
10
15
20
25
30
Algorithm Design Document
Document no.: CRAW_???_001 draft v0.1
End of Document
I
2
R Strictly Confidential &' of &'