Beruflich Dokumente
Kultur Dokumente
Project Introduction:
Analysis of Spectrum Sensing
For Cognitive Radio
Literature Review:
Literature Review:
Problem Statement:
Basic motivation factor is that the previous research work does not provide
any comparison between time domain and frequency domain energy
detectors.
In this research the Pf and Pd are obtained through closed form expressions.
The results are analyzed for a variable sensing threshold. The analysis is
performed for AWGN and fading channels.
Problem Statement:
The aim of this thesis is to thoroughly study the time domain and
frequency domain ED for AWGN channel. To find the Pf and Pd not only
for frequency domain but for time domain as well. The analysis is
carried out for both approximate and exact calculations.
The results are analyzed for different parameters like SNR, noise
variance, sample size, threshold etc.
Introduction To Cognitive
Spectrum Sensing
What Is Spectrum Sensing?
Spectrum sensing is the basic and essential mechanisms of
Cognitive Radio (CR) to find the unused spectrum.
From the date of publishing paper by Mitola on CR [1], 30 special issue scientific
journals and more than 60 dedicated conferences and workshops custom to CR
[2]. This is still a very fresh and interesting research topic, therefore many
technical research questions still need to be answered.
In the 1999 paper that first invented the term cognitive radio, Mitola defines a
cognitive radio as [1]: A radio that employs model based reasoning to achieve a
specified level of competence in radio-related domains.
Six years after Mitola's first article on CR, Simon Haykin in his invited paper to
IEEE Journal on Selected Areas in Communications, summarized the idea of CR
as [11]:
Secondary User
2.Cooperative Detection
In cooperative detection method, multiple nodes cooperate with each
other to detect the PU signal. This method is efficient for low signal
to noise ratio (SNR) because the diversity increase due to multiple
users. It can also resolve the hidden node problem [2].
3. Non-Cooperative Detection
In this method the CR can determine the presence or absence of a signal
independently. The detection is based on two hypothesis; Ho and H1.
Ho indicates the presence of noise and H1 shows that a signal is
transmitted [1].
Non-cooperative detection
The non-cooperative detection uses the following 3 methods.
b. Cyclostationary Detection
This detection method is applied when the modulated signals have
cyclostationary characteristics i.e. the mean and autocorrelation are
periodic. This sensing method can distinguish the noise from the
modulated signal. It works well over low SNR regime. The
disadvantage of this method is, it requires complex calculations and is
difficult to implement [1, 4].
c. Energy Detection
Energy detection (ED) method identifies the presence or absence of a signal
based on energy estimation. It is not efficient at low SNR, but ED is the simplest
method to implement. ED requires noise power information but can detect
unknown independent and identically distributed (i.i.d) signals. The ED can be
implemented in time domain (TD) and frequency domain (FD). The time domain
ED uses a band pass filter (BPF), a magnitude squared, an integrator and
decision block as shown in figure below.
Energy detection uses a squaring device followed by an Integrator, the output of
which gives the decision variable. This variable is then compared with a threshold
and if it is above the threshold, then the result of the detector is that a primary
user is present.
Energy detection is very practical since it requires no information about the
signal needed to detect.
In the time and frequency domain, the ED uses hypothesis test to detect
the absence or presence of a signal. The null hypothesis Ho indicates
that no signal is present only noise is there whereas; H1 indicates the
presence of a PU. The test statistic is compared with a pre-defined
threshold to decide the presence or absence of a PU. The performance is
measured by Probability of false alarm (Pf), Probability of detection (Pd)
or Probability of missed detection (Pm). These probabilities are specified
as;
Pf = Prob [Decision = H1|Ho] .. (1.1)
Pm= Prob [Decision = Ho|H1].. (1.2)
Pd= Prob [Decision = H1|H1] .. (1.3)
The goal of a spectrum sensor should be to attain a high Pd and low Pf.
The Pf and Pd given by IEEE 902.22 WRAN standard are 0.1 and 0.9
respectively [4].
Energy Detection in AWGN Channels
Energy detection is the most popular signal detection method due to its
simple circuit in practical implementation. The principle of energy
detector is finding the energy of the received signal and compares that
with the threshold [2].In the literature, we come across various
algorithms indicating that energy detection can be implemented both in
time and also frequency domain using Fast Fourier Transform (FFT).
where X denotes the received signal vector and p() denotes the
probability density function (PDF).
The LRT, which is proven to be NP optimal [15], requires the exact
distributions of primary signal and noise and channel gains which
makes it practically intractable.
Let N denote the number of users sensing the PU. Each CR user makes its own
decision regarding whether the primary user present or not, and forwards the
binary decision (1 or 0) to fusion center (FC) for data fusion.
The PU is located far away from all CRs. All the CR users receive the primary
signal with same local mean signal power, i.e. all CRs form a cluster with distance
between any two CRs negligible compared to the distance from the PU to a CR.
For simplicity we have assumed that the noise, fading statistics and average SNR
are the same for each CR user.
We consider that the channels between CRs and FC are ideal channels
(noiseless).
Assuming independent decisions, the fusion problem where k out of N CR users
are needed for decision can be described by binomial distribution based on
Bernoulli trials where each trial represents the decision process of each CR user.
With a hard decision counting rule, the fusion center implements an nout-of-M
rule that decides on the signal present hypothesis whenever at least k out of the N
CR user decisions indicateH1 .
Assuming uncorrelated decisions, the probability of detection at the fusion center
[27] is given by following equation:
where P (d,i) is the probability of detection for each individual CR user as defined
by (12) and (16).
Simulation
MATLAB Code:
clear all;
close all;
clc
N=2*u;%samples
C=2;%constant losses
PdAnd=0;
%----------Pfa------------%
Pf=0.01:0.01:1;
Pfa=Pf.^2;
%---------signal-----%
t=1:N;
s1 = cos(pi*t);
s1power=var(s1);
Snrdb=-15:1:15;
Snrdb=15;
Snreal=power(10,Snrdb/10);%Linear Snr
while Snrdb<15
for i=1:length(Pfa)
lamda(i)=gaminv(1-Pfa(i),u)*2; %threshold
lamdadB=10*log10(lamda);
Simulation (Cont.)
Simulation (Cont.)
Results
Results
Conclusions
We have studied the main concept of
Cognitive Radio,
Spectrum Sensing,
Cognitive Spectrum Sensing techniques,
spectrum sensing in Time and Frequency Domain,
Probability of detection,
Probability of False Alarm,
Probability of missed alarm,
Approximate and Exact calculations of energy
detection in time and frequency domains.
Cooperative Spectrum Sensing in AWGN channel.
Region of Convergence (ROC) of Cooperative
Spectrum Sensing with AND rule.