Wang Haijun,Su Xin,Wang Jing
(Wireless and Mobile Communication Technology R&D Center, Tsinghua University, Beijing 100084, P. R. China)
W ith the rapid development of wireless communications,spectrum resources become increasingly scarce.On the other hand,a statistics shows that the utilization of spectrum resources is at a very low level in terms of time and space.This paradox can be largely attributed to current fixed spectrum allocation policy.Cognitive Radio(CR)is a novel wireless communication technology that can intelligently be aware of and adapt to its surrounding environment.By detecting and utilizing spectrum resources,CRcan solve current unreasonable spectrum allocation problem quite well[1].
Recently,the Federal Communications Commission(FCC)passed the proposal on spectrum reuse,allowing unlicensed operation in the bands of licensed users,such as TV broadcast bands[2].ln order to ensure the licensed user's use of specific band,the cognitive user has to accurately detect whether current band is used by a licensed user.As a result,spectrum sensing makes a critical part of CR technology.
Among existing spectrum sensing techniques in CR,energy sensing has been widely applied.lts algorithm is simple and it does not require transcendental knowledge of the licensed user's signals,so it is quite suitable for cognitive radio systems with low receiving Signal-to-Noise Ratio(SNR)of cognitive users.Due to special environments of wireless communications,such interference factors as multi-path and shadow effect are present during signal propagation.Some cognitive users may be found with quite low spectrum detection probabilities at some special geographical locations,which leads to increasing interference onto the licensed users.To solve this problem,energy sensing-based cooperative detection techniques should be used.Currently,cooperative detection techniques have become key technologies in CR,attracting wide attention.
A cognitive user is supposed to detect N consecutive sampling points in the band of a licensed user each time:
where niis the noise of the sampling point i(Here it is assumed that the noises of N sampling points are independent and identically-distributed cumulative Gaussian white noise and ni:N(0,σ2);xiis licensed user signal at sampling point i;yiis signal i detected by the cognitive user;and h is channel gain.As energy sensing requires very short detection time,h is supposed to keep unchanged during detection.Binary hypothesis is adopted here:H0means there is not any licensed user signal,and the band is idle;while H1indicates the licensed user is using the band.
The objective of energy sensing is to decide whether H0or H1is true by sensing the energy of signal yi.The output of energy detector is as follows:
According to the central limit theorem,when N is large enough(often no less than 10),T values approximate Gaussian distribution.Due to its simple mathematical expressions,Gaussian distribution is often used in energy sensing:
Abstract:Cognitive radio has become an effective theory to solve the inefficiency of the spectrum usage.One of the main requirements of cognitive radio systems is the ability to reliably detect the spectrum hole.Previous works on the problem of detection for cognitive radio have suggested the necessity of user cooperation to enable the detection at the low signal-to-noise ratios experienced in practical situations.This paper introduces energy sensing and the cooperative sensing techniques:AND model,OR model,counting model,double threshold model,likelihood ratio model,linear cooperation model and DWCS model.lt is proved that significant cooperative gain can be achieved by the proposed models in reducing interference and improving spectrum usage.
ln energy sensing,a thresholdηis predefined.lf T≥η,H1is true,which means the licensed user is using current band.On the contrary,if T<η,H0is true,indicating the current band is idle.Because T values approximate Gaussian distribution,the detection probability Pdand false alarm probability Pfcan be calculated with the following formulas:
cumulative distribution function of Gaussian distribution.
lf the detection probability Pdof the system is given,the thresholdηcan be calculated with Formula(5)and the false alarm probability Pfcan be optimized.Similarly,if the false alarm probability Pfis given,the thresholdη can be obtained with Formula(6)and the detection probability Pdcan be optimized.
Due to the presence of such interference factors as multi-path and shadow effect in wireless channels,energy sensing conducted by a single cognitive user may perform quite poor in some cases.Figure 1 illustrates how Cognitive User 1 wrongly finds that the current band is idle due to shadow effect and uses the band,thus bringing interference on licensed receiving user.To solve such a problem,cooperative detection techniques should be used.For example,in Figure 1,with cooperative detection by Cognitive Users 1 and 2,the usage of current band can be accurately detected despite shadow effect.
The cooperative detection algorithms in CRmainly fall into two categories:hard decision based and soft decision based.
ln the hard decision based cooperative detection algorithms,each cognitive user first decides its detection result as either 0 or 1;and then sends its decision to the processing center for cooperative detection.The common algorithms using hard decision include AND,OR,and counting algorithms.
2.1.1 ANDAlgorithm
ANDalgorithm[3]is quite simple.First,all cognitive users detect the signals of a band and judge if the band is idle;then,their decisions are sent to the processing center;finally,upon receiving all decisions from the cognitive users in a given range,the processing center adopts AND algorithm to decide if the band is being used by a licensed user.That is to say,only when all users detect the signals of the licensed user,the band is regarded occupied.Supposing there are K cognitive users participating in cooperative detection,the detection probability Pdand false alarm probability Pfcalculated with AND algorithm are as follows:
From the above formulas,it can be seen that AND algorithm reduces both Pdand Pfof the system,which means more interference and higher spectrum utilization than traditional
non-cooperative algorithms.Here,it is assumed that the interference boundary tolerated by a licensed user is 1-Pdand a simple analysis on the optimization of Pfis made.
Supposing the detection probability required by the system is Pd,the average detection probability of K cooperative cognitive users is:
The decision threshold can be obtained from Formula(9)and Formula(5):
So the false alarm probability of the entire system(i.e.Pf)is:
Formula(8)shows that the bigger the number of the cognitive users who participate in spectrum sensing,the smaller the Pfis.According to Formula(9)and the characteristics of exponential functions,the bigger the number of the cooperative cognitive users,the larger the average detection probabilityis.From Formula(10)and the characteristics of Q(x)function,it can be concluded that the larger the average detection probability,the smaller the decision thresholdηi,which leads to a larger Pfof the cognitive user i().
▲Figure 1. Impact of shadow effect on cognitive users.
As a result,the increase in number of cognitive users worsens Pf.There should be an optimalnumber of cooperative users K,under which not only the required detection probability of the system(i.e.Pd)can be met,but also the minimum Pfcan be produced.At present,this optimal number is usually obtained by means of searching with computers.
The above analysis assumes the average detection probability of K cooperative cognitive users(i.e.Pd,i).ln reality,cognitive users often have different detection probabilities because their channel conditions vary.This makes it more difficult to determine the optimal number of cooperative cognitive users.
2.1.2 ORAlgorithm
ORalgorithm is basically similar to AND algorithm except that with ORalgorithm,the system determines that one band is being used by a licensed user so long as a cognitive user detects the signals of the licensed user.The detection probability Pdand false alarm probability Pfcalculated with ORalgorithm are as follows:
Formulas(12)and(13)suggest that ORalgorithm increases both Pdand Pfof the system.Like AND algorithm,there exists an optimal number of cooperative users when Pdis given.ln fact,with OR algorithm,the Pfwill be increased whenever a new cooperative user joins.Moreover,the increase of the cooperative cognitive users will decrease the detection probability of each user(Pd,i),the false alarm probability of each user(Pf,i)and the false alarm probability of the system(Pf).
2.1.3 Counting Algorithm
Counting algorithm[4]is an improvement of AND algorithm and ORalgorithm.With this algorithm,when the processing center receives the decisions of cognitive users of a given range,it counts the number of cognitive users that have detected the signals of a licensed user and the system decides that a band is being used only when a certain number limit is reached.ln some sense,AND algorithm and ORalgorithm can be regarded as two special cases of counting algorithm.ln AND algorithm,the number limit is K(i.e.all cognitive users);while in ORalgorithm,the number limit is 1.
ln counting algorithm,the decision rule for each cognitive user is as follows:
And the discrete distribution of Riis:
At the processing center,the decision rule is:
Let's simply analyze the detection probability Pdand false alarm probability Pfof the system.Suppose the cognitive users are independent of each other.According to the central limit theorem,basically approximates Gaussian distribution and its mean and variance can be computed as follows:
Hence,Pdand Pfof the system are:
When the system detection probability Pdis given,the thresholdβ and corresponding Pfcan be obtained on the precondition that the detection probability and false alarm probability of each cognitive user are known.ln fact,it is quite complicated to optimize the values of M,V,Pdand Pfin Formulas(17),(18),(19)and(20)at the same time,that is,to get the minimum Pfby optimizing the parameter of each cognitive user with Pdbeing given.Currently,the optimal values are often obtained by means of computer simulations.
ln case of good channel conditions,the hard decisions of cognitive users are often highly reliable.However,when the detected signal energy approximates the threshold,errors are likely to occur in the hard decisions.ln this case,soft decision approach can be introduced.ln soft decision based cooperative detection algorithms,each cognitive user first makes soft decision,whose result may be a likelihood ratio or an energy value;and then the decision is sent to the processing center.Common soft decision based cooperative detection algorithms include double threshold energy detection,likelihood ratio detection and linear cooperation[5-6].ln addition,this paper proposes a CR system based on Distributed Wireless Communications System(DWCS).
2.2.1 Double Threshold Energy Detection
The double threshold energy detection algorithm[7]takes advantage of both hard decision and soft decision approaches.As shown in Figure 2,two energy thresholds(η1andη2,which are different for each user)are involved in this algorithm.Each user makes decisions
▲Figure 2. Double threshold energy detection.
based on the following rule:
Each cognitive user sends its decision Rito the processing center.Upon receiving the decisions from cognitive users,the center first classifies the decisions of all users.ln case the decision is 0 or 1,a hard decision based algorithm(AND,ORor counting)will be used.Here,an example for ORalgorithm is used to make comparisons.lf the result is an energy value Ti,soft decision will be made at the processing center based on the following rule:
Suppose the first M users provide soft decisions and the threshold for soft
Gaussian distribution,the distribution of S can be computed with the probability density function.
As a result,the finaldecision rule is:
ln double threshold energy detection algorithm,hard decision is used by the cognitive users with good channel conditions,while soft decision is used by the users with poor channel condition.The simulation results in Figure 3 show that this algorithm can significantly improve the spectrum detection performance compared with conventional ORalgorithm.
2.2.2 Likelihood Ratio Detection
The likelihood ratio algorithm uses likelihood ratios as the basis for detection,which is purely a soft decision algorithm.Theory study and simulations demonstrate that likelihood ratio detection is currently the best detection method,but it involves a very complicated algorithm.During likelihood ratio detection,each cognitive user detects the signals of current band,converts the energy value of detected signal into a likelihood ratio and sends it to the processing center.The processing center,based on the likelihood ratio of each user,uses certain algorithm to decide if the current band is idle.For user i,the energy value(Ti)of the signal it detects can be converted into a likelihood ratio with the following formula:
▲Figure 3. Double threshold energy detection algorithm vs. OR algorithm.
As Tiapproximates Gaussian distribution,the following formulas can be deducted from Formulas(3)and(4):At the processing center,joint
detection can be made by multiplying likelihood ratios of all users:
ldeally,the thresholdηis 1.But in actual application,the thresholdηhas to be determined with several measurements or by means of simulations.ln some special cases,the likelihood ratios of some users may be too large or too small,thus affecting the performance of joint detection.To solve this problem,Reference[8]suggests an improvlikelihoodorithm:
2.2.3 Linear Cooperation
The linear cooperation model is also a soft decision algorithm.Compared with likelihood ratio algorithm,it can considerably decrease the complexity with little performance loss.As a result,it has gradually become one of hot topics in cooperative detection techniques for CRnetworks.ln the following,several linear cooperation algorithms for energy detection are discussed.
ln linear cooperation model,each cognitive user first detects the energy value(i.e.Ti)of the signal on current band,and directly sends Tito the processing center.Upon receiving signal energy values from all users,the processing center weights the received values:
whereω1,ω2…ωkare weighting coefficients.Similarly,the weighted energy values S approximate Gaussian distribution.
Therefore,after the mean and variance of S are calculated and an overall decision thresholdη is set,the detection probability Pdand false alarm probability of Cognitive User i.Pfcan be worked out with Gaussian function.
The key of linear cooperation algorithm lies in the settings of weighting coefficients(i.e.ω1,ω2…ωk).At present,the most commonly-used methods for calculating weighting coefficients are as follows:
(1)Mean Weighting
The coefficient of weighted mean is:ωi=1/K,i=1,2…K.The weighted mean method is similar to counting algorithm.
The difference between them is that in counting algorithm,the processing center only gets binary decision information(i.e.0 or 1),while in weighted mean method,the center gets detection information of all cognitive users.Obviously,the later is better than counting algorithm.
(2)SNRWeighting
Considering the differences among cognitive users'channel conditions,the weighted mean method is not a reasonable weighting method.ln weighted SNRmethod,the users with good channel conditions,i.e.the users with high SNRof their received signals,obtain high weighted coefficients.The coefficient of weighted SNRis calculated as follows:
(3)Optimal Weighting
The way to calculate the optimal weighting coefficient is very complicated.So far,there is no clear analytic solution for it.Reference[9]presents a method of computing the optimal weighting coefficient by means of gradual searching and simulations show that the optimal linear cooperation algorithm works almost the same as likelihood ratio algorithm.Reference[10]discusses an optimal linear cooperation algorithm based on linear-quadratic fusion strategy.
When the received SNRof the cognitive user is quite low,the weighted SNRmethod is almost as good as the optimal linear cooperation algorithm.ln actual systems,the cognitive user is usually far away from the licensed user and the received SNRis often very low.
Therefore,weighted SNRmethod is often used.
2.2.4 DWCSAlgorithm
DWCSwas first proposed by the Wireless and Mobile Communication Technology R&D Center of Tsinghua University[11].lt is designed to solve a series of cellular communication problems with a distributed network architecture.The DWCSis introduced in CRsystems for the following two reasons:
(1)ln cooperative CRsystems with centers,a control channel from the cognitive user to the processing center is required no matter if hard decision or soft decision approach is adopted.ln case of hard decision,only the binary codes"0"and"1"are transmitted,so the requirement for the control channel is very low;in case of soft decision,high requirements are imposed on the control channel because soft information has to be transmitted on it.
(2)ln CRsystems,the received SNRs of the signals to be detected by the cognitive users are often low,so the terminals(i.e.cognitive user receivers)must be highly sensitive,which leads to high costs of terminals.Application of DWCSarchitecture can better solve the above two problems.
The distributed CRsystem has the following three main features:
(1)lt is configured with lots of distributed antennas,which are connected to the processing center via optical fiber cables.
(2)The detection of current spectrum is done by distributed antennas.The antennas send the detection results to the processing center,and the center adopts either hard or soft decision approach.Often,the soft decision approach is preferred.
(3)Once the processing center finds current spectrum is idle,it notifies all cognitive users within the antenna range of the availability of the band via these distributed antennas.
ln addition to solving the problems of control channel and terminal users,the distributed CRsystem can use any of the above cooperation methods for spectrum sensing,so it has great potential advantages.Because the optical fiber-based channel is much better than the old wireless channel from the cognitive user to the processing center,more gains are obtained with the distributed CRsystem in terms of detection performance.ln actual applications,the distributed CRsystem can be used for indoor coverage,Local Area Network(LAN)and burst communications.The research on such subjects of distributed CRsystem as cooperative cognition,data convergence and resource allocation has already been in progress and deepened.
ln recent years,CRdraws widespread attention as a new technology for solving spectrum resource scarcity.The spectrum sensing is a quite important part in CR.This paper discusses energy sensing,the common spectrum sensing algorithm in CR,as well as some cooperative detection algorithms such as AND,OR,counting,double threshold energy detection,likelihood ratio detection,linear cooperation,and DWCS.These cooperative spectrum sensing techniques can significantly improve the system's spectrum detection performance,reduce interference and increase spectrum utilization.As a result,they are widely applied in CRsystems.However,few issues are subject to further study,including their optimization algorithm and how to decrease the complexity of these algorithms.