 Research
 Open Access
 Published:
Elaborate analysis and design of filterbankbased sensing for wideband cognitive radios
EURASIP Journal on Advances in Signal Processing volume 2014, Article number: 82 (2014)
Abstract
The successful operation of a cognitive radio system strongly depends on its ability to sense the radio environment. With the use of spectrum sensing algorithms, the cognitive radio is required to detect coexisting licensed primary transmissions and to protect them from interference. This paper focuses on filterbankbased sensing and provides a solid theoretical background for the design of these detectors. Optimum detectors based on the NeymanPearson theorem are developed for uniform discrete Fourier transform (DFT) and modified DFT filter banks with rootNyquist filters. The proposed sensing framework does not require frequency alignment between the filter bank of the sensor and the primary signal. Each wideband primary channel is spanned and monitored by several sensor subchannels that analyse it in narrowband signals. Filterbankbased sensing is proved to be robust and efficient under coloured noise. Moreover, the performance of the weighted energy detector as a sensing technique is evaluated. Finally, based on the Locally Most Powerful and the Generalized Likelihood Ratio test, realworld sensing algorithms that do not require a priori knowledge are proposed and tested.
1 Introduction
Spectrum sensing has been brought into the center of research activities due to its application in the context of cognitive radio (CR) [1]. Cognitive radio and dynamic spectrum access have been identified as the means to maximize spectrum exploitation and efficiency. The cognitive radios share the available spectrum with a licensed primary system (PS) and have the responsibility not to adversely affect the PS user operation by causing interference. Spectrum sensing is used to identify and consequently avoid coexisting primary signals. Several spectrum sensing techniques have been derived and studied [2, 3]. These algorithms present pros and cons concerning the need for a priori knowledge of PS signals features, the computational complexity, the robustness in channel variations and coloured noise etc.
In [4], the introduction of filterbankbased sensing was made and further analysis was provided in [5]. The main advantage of this technique lies in the fact that since the CR networks will use multicarrier modulations for transmission, the analysis filters that are intended for receiver operation, e.g. in OFDMOQAM [6, 7], in discrete wavelet multiTone [8] and in filtered multiTone [9], could also be used for sensing without extra computational workload. In [10], filterbankbased physical layer design for CR systems was introduced, where simultaneous spectrum sensing and transmission may be possible using the filter bank. In [4] and [5], FahrangBoroujeny examined the filter bank operation as an estimator of the power Spectral density (PSD) incorporating a spectrum analyser in the receiver structure. A comparison in the performance of the estimation with the nonparametric multitaper method [11] was also made. It was confirmed that the use of a filter bank can similarly achieve remarkable spectral analysis with the use of a larger set of samples but much less computational complexity.
However, in [4, 5], no detectors were presented that could be practically used to identify primary emissions in a given band of interest. Since then, several studies were made regarding filterbankbased sensing. Most studies consider simplified models for the operation of the filter bank and do not attain optimality [12, 13]. In [14], filter bank sensing is performed using dataaided feature detection achieving results in extremely low signaltonoise ratio (SNR); however, the algorithm required knowledge for specific features of the PS signal. Some studies focus on the reduction of the computational workload [15–17], while others propose new filters suitable for sensing [18, 19]. In addition, special issues have been addressed that concern the application of filter banks in spectrum sensing [20, 21]. Moreover, in [22, 23], efficient implementations of filter bank sensors are presented.
This study is motivated by the absence of strong theoretical description for filterbankbased sensors. A variety of detectors are presented for uniform and modified discrete Fourier transform (uniform DFTMDFT) filter banks and especially rootNyquist filters. As in [14], filter banks are implemented using the polyphase structure in order to perform simultaneous parallel sensing on all subchannels; however, the proposed algorithms are not based on specific signal feature extraction. Optimality based on the NeymanPearson theorem [24] is achieved. Moreover, the designed sensors are based on the approach that there is no ‘11’ matching of the receiver filters and the PS signal bandwidth. This is a common flaw among the majority of filterbankbased sensing studies. Primary signals are in their vast majority wideband, while the CR filter bank has the objective to divide the monitored spectrum into narrowband channels. Therefore, in a common configuration, a primary channel is spanned and analysed by a number of CR filters. The use of multiple CR filters on a single PS transmission also eliminates the need for frequency alignment between the primary signal and the CR detector. An additional advantage is that the filter bank can partially exploit the radio channel frequency selectivity without the need for complicated equalization procedures on the primary signal. In [25] and [26], multiple CR subchannels are also used to span the primary signal. In the first study, a technique for SNR estimation of the PS signal is proposed using simple approximations, while in [26] the authors introduce a weighted energy detector scheme that is able to efficiently scan Bluetooth channels.
In Section 2, the used system model is presented. In Section 3, the NeymanPearson optimal detectors for uniform DFT banks are extracted, while in Section 4, the optimal detectors in the output of an OFDMOQAM receiver (using an MDFT bank) are studied. In Section 5, the weighted energy detector for uniform DFT banks is analysed, and in Section 6, the extension of the filter bank sensing application in coloured noise is presented. It is noted that coloured noise has been identified [5] as a significant challenge for spectrum sensing applications. Finally in Section 7, practical implementations of the detectors  the Locally Most Powerful (LMP) test and the Generalized Likelihood Ratio Test (GLRT)  are proposed. Simulation results are presented in Section 8.
2 System model
A CR system is assumed that digitizes a large portion of spectrum containing K channels of the PS. The wideband received signal is analysed by a bank of M>K filters that span the whole digitized bandwidth. Consequently, each PS channel is analysed by ⌈L=M / K⌉ filters. A graphical representation of a 32channel filter bank that spans the bandwidth that contains four PS channels is presented in Figure 1. In the specific example, the output from eight subchannels can be used to extract the decision on whether a PS channel is occupied or not.
Given the fact that the wideband CR receiver should optimize the use of the limited computational resources, the analysis focuses on uniform DFT [27] filter banks with downsampling at the Nyquist rate. The wellknown computationally efficient polyphase structure can be assumed. The type1 polyphase representation of an finite impulse response (FIR) filter is the following [28]:
where the subscript indicates the i th polyphase filter path, while the superscript defines the type of polyphase representation. Analysis is also expanded in filter banks used by OFDMOQAM systems. The specific filters present similarities with the cosinemodulated filter banks and their digitally equivalent representation is the MDFT [29] filter banks [29]. Ideally, a digital implementation of an OFDMOQAM system will use MDFT filter banks with perfect reconstruction (PR) properties. In many cases, the PR property is sacrificed for better timefrequency localization; however, these filters can also be expressed with the MDFT structure and it is highly desired to approximate the behaviour of MDFTPR. Two equivalent structures of an OFDMOQAM receiver are presented in Figure 2 (where normalization and phase correction coefficients are arbitrarily set since they do not affect the results of the specific study). The two filter structures are equivalent for D filter coefficients where \alpha =\u230a\frac{D1}{M/2}\u230b=2{\alpha}^{\prime}, i.e., α is even. Nevertheless, the selection of odd α does not affect the MDFTfilter bankbased spectrum sensing results.
Moreover, the assumed prototype filter is real and symmetric ensuring linear phase response. Deeper analysis is performed for filter banks using a rootNyquist prototype filter [30]. The rootNyquist filters are typically used for pulse shaping in radio communication systems due to the InterSymbol Interference (ISI)free transmission properties. It is noted that the necessary and sufficient condition for MDFTPR filters suitable for OFDMOQAM also leads to rootNyquist filters [29].
The n th time sample of the received signal from the output of the A/D converter is represented by r_{ n }, while {y}_{n}^{\left(i\right)} represents the output of the i th filter. It is assumed that the filter impulse response is normalized so that the mean input and output signal powers remain constant, if the incoming signal is contained in the specific filter passband. Thus, {h}_{u}={p}_{u}/\sqrt{\sum _{u=\infty}^{\infty}{\left{p}_{u}\right}^{2}}, where p_{ u } is the FIR filter prototype. Using a noncasual filter representation, the Nyquist ISIfree condition is expressed by
The presented theoretical analysis assumes that the transmitted PS signal s_{ n } is circular white Gaussian random variable with mean power at the receiver (over a flat channel) {\sigma}_{s}^{2}. This assumption is accurate for orthogonal frequency division multiplexing (OFDM) signals, but it is questionable for single carrier signals. However, since the signal passes through a cascade of filters and transceiver impairments, each signal sample is the result of linear combinations and shifts that includes a large number of random variables. Thus, a generalized version of the Central Limit Theorem can be invoked to justify the Gaussian assumption for the PS signal. The incoming signal at the CR receiver for given PS transmissions under frequency selective channels is provided by
where the superscripts indicate the transmitted signal at the k th primary channel, and the ζ_{ k } coefficient is equal to 0 if the k th channel is free, or 1 if the k th channel is occupied. Filter {c}_{u}^{\left(k\right)} represents the radio channel impulse response for the k th PS channel. The formulated detection problem concerns the use of the available information from multiple filter bank outputs in the decision of whether a primary channel is occupied or not. Therefore, the binary decision problem for the k th primary channel is expressed as
The observation vector that contains the information used for the decision is a set of N samples (depending on the sensing duration) for each of the L filters that span the primary channel under investigation. The following vectors are defined:
with
where {h}_{u}^{\left(l\right)} is the impulse response for the l th subchannel of the filter bank. In (6), it is assumed that the signal is maximally decimated at the output. Without loss of generality, L is assumed even for presentation purposes. No additional information on primary signal features and specifications is assumed. The next step is the definition of the detectors.
3 NeymanPearson optimal detectors for maximally decimated signals
The energy detector is the simplest and most common spectrum sensing technique with low complexity and minimum knowledge regarding the primary system. The energy detector can be seen as a special case of filterbankbased sensing with M=1 and K=1. It is proved that for zeromean white Gaussian input, the energy detector is optimal according to the NeymanPearson theorem [24] for known PS signal power {\sigma}_{s}^{2} and additive white Gaussian noise (AWGN) with {\sigma}_{w}^{2}.
The metric T follows a scaled χ^{2} distribution as the sum of squares of white Gaussian zeromean random variables [31] with 2N degrees of freedom. It is proved that T follows the distributions below:
In this paper, the energy detector is used as a reference for the evaluation of the extracted algorithms.
When referring to maximally decimated signals, it is considered that the rate of the signals at the filter output is reduced to the minimum as it is defined by the Nyquist sampling theorem. This means that the specific detector operates at the output of a uniform DFT filter bank (or the output of one of the parallel banks in an OFDMOQAM system before the realimaginary separation  Figure 2b). The sensing mechanism can be considered as a vector detection problem with vector observations from L different sensors. Assuming that the k_{0}th primary channel is observed, the output from the filter paths with indexes k_{0}L+l, l=0,…,L1 is collected.
The first step is to define a single observation vector with the use of a reordering technique for the selected vectors. For reasons that will be cleared out at the next steps, the following reordering is selected:

The observation vectors are divided in two groups:

Group 0 contains the even subchannels.

Group 1 contains the odd subchannels.


Spatial reordering (or row rollout [24]) is performed (choosing first the group 0 vector). Therefore,
\begin{array}{l}\mathbf{y}={\left[\begin{array}{ccc}{\left({\mathbf{y}}^{\left(0\right)}\right)}^{\text{H}}& & {\left({\mathbf{y}}^{\left(1\right)}\right)}^{\text{H}}\end{array}\right]}^{\text{H}}\\ \phantom{\rule{0.5em}{0ex}}={\left[\begin{array}{ccccccccc}{\mathbf{y}}_{0}^{\text{H}}& {\mathbf{y}}_{2}^{\text{H}}& \dots & {\mathbf{y}}_{L2}^{\text{H}}& & {\mathbf{y}}_{1}^{\text{H}}& {\mathbf{y}}_{3}^{\text{H}}& \dots & {\mathbf{y}}_{L1}^{\text{H}}\end{array}\right]}^{\text{H}}\end{array}(9)where y_{ l } is given in (5). For simplicity reasons, the common term k_{0}L of the vector subscripts was omitted. Subvectors y_{ i } represent the observation vector per filter path, i.e. per subchannel.
The signal PSD under {\mathcal{\mathscr{H}}}_{1} after filtering and before decimation is given by
where C^{(k)}(f) is the radio channel transfer function for the PS signal that occupies the k th subchannel and {S}_{\mathit{\text{ss}}}^{\left(k\right)}\left(\phantom{\rule{0.3em}{0ex}}f\right),\phantom{\rule{0.3em}{0ex}}{S}_{\mathit{\text{rr}}}\left(\phantom{\rule{0.3em}{0ex}}f\right) the respective PSDs for s_{ n } and r_{ n } respectively. As in [4], it is considered that the receiver filters are adequately narrowband. This assumption is valid for OFDMOQAM systems since by design the filters should divide the whole bandwidth in subchannels where the radio channel frequency response can be considered approximately flat (since otherwise computationally cumbersome equalization methods would be required). Therefore, the following approximation can be considered:
where the PSDs for the white Gaussian signal and noise were used. The c_{ i } coefficient is a measure of the radio channel effect for the specific subchannel obtained by the radio channel Fourier transform. Although this study assumes flat radio channel per filter subchannel, this requirement is not very strict. During simulation and detector evaluation, the radio channel models did not provide strictly flat radio channels per filter. Nevertheless, under realistic channel conditions, no significant fluctuations from the assumed optimum performance under the flat channel assumption was observed. Moreover, a better approximation of the c_{ i } coefficients can be made with the use of a mean value of the frequency selective channel transfer function for each subchannel filter. More specifically,
where BW is the total bandwidth. From (11), it is concluded that with the use of the narrowband filter, the input signal for each subchannel can be considered an AWGN random variable with {\mathbf{r}}_{i}\sim \mathcal{N}\left(0,\left({\left{c}_{i}\right}^{2}{\sigma}_{s}^{2}+{\sigma}_{w}^{2}\right){\mathbf{I}}_{N}\right), despite the radio channel effects. Under {\mathcal{\mathscr{H}}}_{0}, the input signal is also AWGN with {\mathbf{r}}_{i}\sim \mathcal{N}\left(0,{\sigma}_{w}^{2}{\mathbf{I}}_{N}\right). In Figure 3, two examples of Rayleigh channels with exponential power delay profiles (PDP) are presented. The first example (maximum delay spread 12 samples and exponent λ=1) presents a quite accurate flat narrowband channel approximation. In the second case (maximum delay spread 24 samples with exponent 0.5), frequency selectivity is apparent in the passband. However, the flat approximation is used in both cases with higher expected deviation from the ideal for the second example.
Generally, for large M and adequately small number of filter coefficients, the filter transition bandwidth is not quite sharp. However, it can be assumed that the subchannels of the filter bank provide sufficient attenuation at the passband so that the following approximation stands:
In (13) it is claimed that the outputs from two filter paths that are not directly adjacent are uncorrelated and under the Gaussian assumption independent. According to the NeymanPearson theorem, the detector that optimizes the probability of detection P_{D} for given probability of false alarm P_{FA} is provided by the likelihood ratio:
where f is the probability density function (PDF) for the random variable (operand ‘ /’ indicates a conditional probability). Threshold θ is selected in order to achieve the desired P_{FA}. In order to define the threshold, the distributions of the vector random variables, as well as the distributions of the final detection metric must be defined. Based on the initial assumptions, y is a multidimensional Gaussian variable. The first task is to determine its covariance matrix. Similarly to the energy detector, the SNR, or equivalently the signal and noise powers, should be known. More specifically, the investigated detector should be aware of the SNR per subchannel that is given by {\gamma}_{i}=\frac{{\left{c}_{i}\right}^{2}{\sigma}_{s}^{2}}{{\sigma}_{w}^{2}}. Initially, this information is assumed known. In a realworld design of the detector, an estimation procedure is performed before or during the detection (Section 7).
3.1 Distribution under {\mathcal{\mathscr{H}}}_{\mathbf{0}}
The determination of the covariance matrix for the specified block vector with spatial reordering is made using the following relationship:
where,
Initially, in order to quantify the effect of the filter bank on the variables, the input signal variance for all subchannels is assumed to be σ^{2}=1. The covariance of the maximally decimated signal for each subchannel separately is given by [4]
For a rootNyquist filter and according to (2), the result is equal to unity for n=0 and zero otherwise. Therefore, the output samples of each subchannel are uncorrelated despite the filter bank.
Based on the aforementioned assumption (13), the output vectors from not directadjacent filter paths are uncorrelated and therefore,
It remains to calculate the crosscorrelation {\left[\mathbf{R}\right]}_{m,n}={\rho}_{{y}_{i}{y}_{i+l}}\left(mn\right)(m,n=1\dots N) between the output samples of adjacent filters (l=1,1).
The elements of R are calculated with the following formula:
where mk=ε. For zeromean white Gaussian input with σ^{2}=1, the following result is extracted:
which can be proved to be equal to the following:
The matrix R is real. It is noted that filters are expressed with a noncasual representation in order to exploit symmetries in a simple way. As a next step, the following \frac{\mathit{\text{LN}}}{2}\times \frac{\mathit{\text{LN}}}{2} low triangular block matrix is defined:
Based on the definition of (23) and using (18), (19) and (22), the produced result is given by
The definition of the L N×L N matrix leads directly to the extraction of the covariance matrix for variable y given that the primary channel is free \left({\mathcal{\mathscr{H}}}_{0}\right). It is straightforward to claim that
The fact that C is expressed as a 2×2 block matrix with identity matrices in the block diagonal justifies the selection of the specific reordering since the computations are now quite simplified. More specifically, the inverse of C is given by ([32])
An important feature is that the determinant of C can be easily calculated using \left\mathbf{C}\right=\left{\mathbf{I}}_{\mathit{\text{LN}}/2}\mathbf{P}{\mathbf{P}}^{\text{T}}\right[33], since the matrix is real and symmetric. In addition, the conditional probabilities between groups 0 (even filter paths) and 1 (odd filter paths) are extracted:
3.2 Distribution under {\mathcal{\mathscr{H}}}_{\mathbf{1}}
According to the initial assumptions, the primary signal s_{ n } follows the normal distribution with mean power {\sigma}_{s}^{2}. Initially, a noiseless channel is assumed. Due to the radio channel and based on the approximation in (11), the input signal power per subchannel is given by the multiplication of the mean signal power with a radio channel coefficient, i.e. the assumed input per subchannel is given by {r}_{n}^{\left(i\right)}={c}_{i}{s}_{n} and the mean input signal power per subchannel is \text{E}\phantom{\rule{0.3em}{0ex}}\left({\left{r}_{n}^{\left(i\right)}\right}^{2}\right)=\text{E}\phantom{\rule{0.3em}{0ex}}\left({\left{c}_{i}{s}_{n}\right}^{2}\right)={\left{c}_{i}\right}^{2}{\sigma}_{s}^{2}. The calculation of the covariance matrix of the observation vector is made using the procedure of the previous paragraph with the introduction of the radio channel coefficient effects. Since the result presented in (18) has been computed for standard zeromean Gaussian input (σ^{2}=1), the autocovariance matrix for the output of the i th filter path, when the input is given by {r}_{n}^{\left(i\right)}={c}_{i}{s}_{n}, is provided by
The crosscovariance submatrix between filter outputs of nondirectly adjacent paths is once again zero. For directly adjacent filter paths, computation is performed as in (20) with the inclusion of the channel coefficients.
In order to avoid complex coefficients, since there is no simple method to estimate their phase, the following rationale is considered: A complex zeromean Gaussian variable can also be seen as a pair of two random variables: (a) the Rayleigh amplitude \left{s}_{n}\right\sim \text{Rayleigh}\left({\sigma}_{s}^{2}\right) and (b) the uniform in [0,2π) phase {\phi}_{{s}_{n}}\sim \mathcal{U}\left(0,2\pi \right). After the application of the channel coefficient on the signal, the considered input of the i th filter is given by
However, the radiochannelinduced phase shifts due to the uniform phase distribution and periodicity will not cause any variation in the signal phase distribution and therefore:
From (31) and (30) it is extracted that
Using (32) and (29) similarly to (21), it is concluded that
The diagonal matrix Σ is defined:
where the diagonal elements contain the channel coefficients according to the adopted reordering. Based on the definition of Σ, it is concluded that under {\mathcal{\mathscr{H}}}_{1} with no noise, the received signal covariance matrix is given by
Let us now assume that AWGN with mean power {\sigma}_{w}^{2} is also present during reception. In this case, the input for the i th subchannel assuming that the primary signal s_{ n } follows the zeromean Gaussian distribution with mean power {\sigma}_{s}^{2} is given by
where w_{ n } is the noise component with {w}_{n}\sim \mathcal{N}\left(0,{\sigma}_{w}^{2}\right). It was proved for a noiseless signal in (32) that {c}_{i}{s}_{n}\sim \mathcal{N}\left(\mathbf{0},{\left{c}_{i}\right}^{2}{\sigma}_{s}^{2}\right). The input signal for the i th subchannel {r}_{n}^{\left(i\right)} is given by the sum of two zeromean Gaussian variables with variances {\left{c}_{i}\right}^{2}{\sigma}_{s}^{2} and {\sigma}_{w}^{2}. Based on the properties of the Gaussian distribution [24] and given that signal and noise are independent and uncorrelated random variables, {r}_{n}^{\left(i\right)} will also follow the zeromean Gaussian distribution and its variance will be provided by the sum of the variances of the two random variables (signal and noise). Therefore,
If z_{ n } is a zeromean Gaussian variable with σ^{2}=1, then the variable \left(\sqrt{{\left{c}_{i}\right}^{2}{\sigma}_{s}^{2}+{\sigma}_{w}^{2}}\right){z}_{n} follows the same distribution with {r}_{n}^{\left(i\right)} and it can be used for the calculation of the autocovariance and crosscovariance matrices. Similarly to (28) and (29), it is proved that
and for l=±1,
which concludes that \text{E}\phantom{\rule{0.3em}{0ex}}\left({\mathbf{y}}_{i}{\mathbf{y}}_{i+l}^{\text{H}}\right)=\left(\sqrt{{\left{c}_{i}\right}^{2}{\sigma}_{s}^{2}+{\sigma}_{w}^{2}}\right)\left(\sqrt{{\left{c}_{i+l}\right}^{2}{\sigma}_{s}^{2}+{\sigma}_{w}^{2}}\right)\mathbf{R}. The combination of the results from (38) and (39) are now used to extract the correlation matrix for vector y defined in (9). It is proved that
where Σ_{ y } is the diagonal matrix containing the factors \left(\sqrt{{\left{c}_{i}\right}^{2}{\sigma}_{s}^{2}+{\sigma}_{w}^{2}}\right).
Thus, based on the Gaussian distribution properties, since the observation vector under {\mathcal{\mathscr{H}}}_{1} is a linear transformation of the zeromean Gaussian input and its covariance matrix is given by (40), it follows the distribution of (42):
If the known (or estimated) quantity is the SNR γ_{ i }, the channel coefficients can be calculated from {\left{c}_{i}\right}^{2}={{\gamma}_{i}}^{{\sigma}_{w}^{2}}\phantom{\rule{0.3em}{0ex}}/{}_{{\sigma}_{s}^{2}}.
3.3 The detector metric
In order to define the detector, starting from (14), the loglikelihood relationship is formed:
Therefore, the metric that will be used for the decision is provided by
3.4 Metric distribution under {\mathcal{\mathscr{H}}}_{\mathbf{0}}
Initially, the eigenvalue decomposition of matrix C=U Λ U^{H} is performed and since C is hermitian U U^{H}=U^{H}U=I. With the use of the eigenvalues and eigenvectors, an interim variable can be defined:
It is simple to prove that this variable decorrelates the samples of vector y and that \mathbf{z}\sim \mathcal{N}\left(\mathbf{0},{\mathbf{I}}_{\mathit{\text{LN}}}\right). Thus, the metric can be written as
In order to calculate the eigenvalues of the matrix that appears at the quadratic form of the metric, the definition of the characteristic polynomial is used:
The determinant of Λ can be omitted. In order to move forward, the approach described below is followed:

The inverse of C^{1} is also an hermitian matrix.

Thus, the matrix \mathbf{V}={\sigma}_{w}^{2}{{\mathit{\Sigma}}_{y}}^{1}{\mathbf{C}}^{1}{{\mathit{\Sigma}}_{y}}^{1}+\left(\chi 1\right){\mathbf{C}}^{1} can be seen as the sum of two covariance matrices of multidimensional Gaussian variables. It is known from probability theory [34] that if two random variables are independent, the covariance matrix of their sum is equal to the sum of the covariance matrices. Let us assume a random variable that follows the distribution \mathcal{N}(0,{\sigma}_{w}^{2}{{\mathit{\Sigma}}_{y}}^{2}) and a second random variable that follows the distribution \mathcal{N}(0,(\chi 1\left)\mathbf{I}\right). In addition, the two variables are considered independent. It is assumed that the variables are added and applied to the selected filter bank. Then, the covariance matrix of their sum at the output of the bank will be provided by matrix V.

However, for independent Gaussian variables a different approach can be used that produces equivalent results. The sum of two independent zeromean Gaussian random variables is also a zeromean Gaussian random variable. The variance of the sum is equal with the sum of variances [34]. Therefore, instead of considering the sum of two independent random variables applied to the filter bank, it is equivalent to assume a single random variable that follows the distribution \mathcal{N}(0,{\sigma}_{w}^{2}{{\mathit{\Sigma}}_{y}}^{2}+(\chi 1\left)\mathbf{I}\right).

Based on the second approach, the covariance matrix at the output of the filter will be given by
\mathbf{W}={\left({\sigma}_{w}^{2}{{\mathit{\Sigma}}_{y}}^{2}+\left(\chi 1\right)\mathbf{I}\right)}^{\frac{1}{2}}{\mathbf{C}}^{1}{\left({\sigma}_{w}^{2}{{\mathit{\Sigma}}_{y}}^{2}+\left(\chi 1\right)\mathbf{I}\right)}^{\frac{1}{2}}(48) 
The extraction of the covariance matrix in this case is performed using the same procedure that was followed in (39), (40) and (41).

Since the two procedures are equivalent for Gaussian random variables, it is expected that the equivalence will also stand between the covariance matrices V and W and therefore they can be used interchangeably. The followed approach is valid, since the eigenvalues extracted by V are applied on the Gaussian random variable \mathbf{z}\sim \mathcal{N}\left(\mathbf{0},{\mathbf{I}}_{\mathit{\text{LN}}}\right). In addition, the validity of the procedure was verified with extended tests.

Thus, instead of calculating the determinant of V, we proceed using matrix W. From (48) and given the fact that the determinant of C is nonzero (since C is invertible), it is extracted that
\text{det}\left(\underset{w}{\overset{2}{\sigma}}{{\mathit{\Sigma}}_{y}}^{2}+\left(\chi 1\right)\mathbf{I}\right)=0\Rightarrow {\chi}_{i}=1\frac{\underset{w}{\overset{2}{\sigma}}}{\underset{s}{\overset{2}{\sigma}}{\left{c}_{i}\right}^{2}+\underset{w}{\overset{2}{\sigma}}}(49) 
With the use of V W equivalence, the metric matrix is considered to have L discrete eigenvalues with N degrees of multiplicity each. The eigenvector matrix does not play any role in the procedure and it does not need to be calculated. Since U is unitary, the random variable \stackrel{~}{\mathbf{z}}={\mathbf{U}}^{\text{H}}\mathbf{z} will follow the same distribution as z. Therefore, the metric under {\mathcal{\mathscr{H}}}_{0} is given by
T\left(\mathbf{y}/{\mathcal{\mathscr{H}}}_{0}\right)=\sum _{l=0}^{L1}\sum _{n=0}^{N1}\frac{{\sigma}_{s}^{2}{\left{c}_{l}\right}^{2}}{{\sigma}_{s}^{2}{\left{c}_{l}\right}^{2}+{\sigma}_{w}^{2}}{\left{\stackrel{~}{z}}_{n+\mathit{\text{lN}}}\right}^{2}(50) 
In order to verify the validity of the predescribed equivalence, extended tests were performed for various filters and radio channels. The eigenvalues of matrix V were numerically extracted and used directly for metric calculation. It was observed that in all cases, the eigenvalues of V and W were very similar. However, the most important observation was that they produced, as expected, identical distributions when applied to z for metric calculation. Therefore, the equivalence was also verified via simulations.
In (50), each {\stackrel{~}{z}}_{i} element follows the standard complex Gaussian distribution (unit variance). Consequently,
The chisquare distribution can be considered a special case of Gamma distribution. In fact, if a random variable ω follows the {\chi}_{2}^{2} distribution, for a positive constant β, the variable β ω follows the gamma distribution with parameters (1,2β) [35]. Therefore,
where denotes the gamma distribution. In order to calculate the metric distribution, the characteristic function for is used. Moreover, since the addends in (50) are independent, the characteristic function of the total metric will be given by the product of the functions of the individual variables. Thus,
The PDF is given by the inverse Fourier of the characteristic function at point t.
The calculation of the analytical solution is not a straightforward task because of the fact that each eigenvalue is repeated N times. An analytical solution can be achieved using the distribution provided in [36] where the positive definite matrix of [36] is the identity matrix. The metric distribution is given by
where coefficients d_{ k } are calculated iteratively using
and the λ_{ i }s are the L discrete eigenvalues, thus,
According to the NeymanPearson theorem, the threshold is calculated from the probability of false alarm P_{FA} under {\mathcal{\mathscr{H}}}_{0} through the complimentary cumulative distribution function (CDF). The following relationship is used [36]:
Threshold θ is calculated for a given P_{FA} with numerical inversion of the function.
The main problem regarding the use of (55), (56) and (58) in a sensing algorithm is the infinite sum. In a practical implementation, the truncation of the infinite sum is unavoidable. In order to calculate the number of needed addends (or equivalently d_{ k } coefficients) that will provide a sufficient approximation of the distribution, the following simulation procedure was followed. A large set of 50,000 channels with exponential PDP was produced. The exponential PDP is given by
During the simulation, the used PDP parameters were λ=0.7, C_{max}=48. The c_{ i } coefficients were calculated using (12) and the eigenvalues {\lambda}_{i}^{\text{udft}/{\mathcal{\mathscr{H}}}_{0}} were determined using (57). It was concluded that the number of the necessary d_{ k } coefficients depends on the spread of the extracted eigenvalues. This means that if the standard deviation of the L eigenvalues is small, then the approximation converges fast to the distribution of (55); otherwise, a very large number of d_{ k } coefficients should be calculated. In order to extract an empirical rule for the number of needed coefficients, the ratio of the maximum eigenvalue {\lambda}_{max}^{\text{udft}/{\mathcal{\mathscr{H}}}_{0}} over the minimum eigenvalue {\lambda}_{min}^{\text{udft}/{\mathcal{\mathscr{H}}}_{0}} was used as a measure of the eigenvalue spread. For each channel, the values in (55) and (56) were calculated iteratively as k was continuously increasing. In each step, numerical integration of the estimated PDF was performed. When the integration result becomes larger than 0.9999, it is assumed that the approximation has converged to the desired distribution.In Figure 4, the simulation results are presented. It can be seen that in the vast majority of cases, less than 1,000 coefficients are needed for successful convergence. The prediction bounds of the linear fit (using the minimum mean square error (MMSE) technique) for 99.99% confidence level are also provided in Figure 4. It was estimated that based on the simulation, the upper prediction bound is described by the following straight line:
Therefore, if the number of coefficients is estimated using (60), then there will be 99.99% probability that the approximated distribution has successfully converged. It is noted that with the use of the described procedure, a very accurate estimate of the P_{FA} from (58) is achieved with absolute error less than 10^{5} for P_{FA}>0.25.
In order to avoid the need for an approximation of an infinite sum, a method of numerical integration of the characteristic function can be used. During this study, a simple fast Fourier transform (FFT)based algorithm that performs the integration was developed. Let us assume that the energy of the characteristic function is concentrated in the space τ∈[ δ δ ]. Then, it is proved that (54) can be accurately approximated by
The FFTlength N^{′} can be found as an integer with N^{′}Δ τ=τ_{max} with τ_{max} a value where the PDF is expected to be practically zero and \mathrm{\Delta \tau}=\frac{1}{2\delta}. Therefore, fast Fourier transforms can be used to approximate with high accuracy the distribution under investigation. The complimentary CDF can be approximated with the trapezoidal numerical integration technique. Thus, for a threshold {\theta}^{\prime}=\frac{\pi {k}_{0}}{\delta}, the P_{FA} is given by
Given the fact that based on the aforementioned analysis, the selected threshold θ^{′} is also discrete, an approximation of the P_{FA} for any threshold can be calculated using linear interpolation.
3.5 Metric distribution under {\mathcal{\mathscr{H}}}_{\mathbf{1}}
Under {\mathcal{\mathscr{H}}}_{1}, the interim variable can be defined as
In this case, the determinant that provides the eigenvalues is given by
which leads to {\chi}_{i}=\frac{{\sigma}_{s}^{2}{\left{c}_{i}\right}^{2}}{{\sigma}_{w}^{2}}.
The calculation of the metric distribution under {\mathcal{\mathscr{H}}}_{1} can be made with the same techniques as before:

Using the analytical solution (55) and (56), where the used eigenvalues are {\lambda}_{i}^{\text{udft}/{\mathcal{\mathscr{H}}}_{1}}=\frac{{\sigma}_{s}^{2}{\left{c}_{i}\right}^{2}}{{\sigma}_{w}^{2}}

With FFTbased approximation of the PDF from the characteristic function given by
{\phi}_{T\left(\mathbf{y}/{\mathcal{\mathscr{H}}}_{1}\right)}\left(\tau \right)=\prod _{n=0}^{L1}{\left(1j\frac{{\sigma}_{s}^{2}{\left{c}_{i}\right}^{2}}{{\sigma}_{w}^{2}}\tau \right)}^{N}(65)
After the extraction of the metric distribution under {\mathcal{\mathscr{H}}}_{1} and for a given threshold, the probability of correct detection P_{D} can be calculated. Using the analytical solution, the following formula is derived [36]:
When the truncation of the infinite sum is done using the ratio of the maximum over the minimum eigenvalue and the empirical formula of (60), then the approximation of the P_{D} value is extremely accurate (absolute error less than 10^{4}).
4 Detector at the OFDMOQAM receiver output
The candidacy of OFDMOQAM as a modulation technique for CR system leads inevitably to the need for a detector design for such systems. As mentioned in Section 2, the OFDMOQAM systems can be assumed to use an MDFT filter bank structured as the block diagrams in Figure 2. The two structures are equivalent and can be used to implement the filtering unit of an OFDMOQAM demodulator. In order to design the detector, the samples after the real/imaginary separation blocks are collected. At this point, the signal has practically returned to the Nyquist sampling rate. The second structure is selected, which contains two similar parallel uniform DFT banks with maximally decimated output in order to simplify the mathematical formulation of the problem. The two banks are operating with relevant time offset of M/2 symbols. The signal that is led to the detector can be defined as
The superscript indicates whether the specific signal is extracted by the first upper bank (A) or the second lower bank (B). Initially, an examination is performed to verify that there is no correlation between the real and imaginary part of the signal. The real/imaginary separation blocks can be expressed as simple linear relationships:
First, the autocorrelation matrix for each subchannel is calculated. It is noted that the presented analysis is provided for the even channels, but the exact same results are extracted for the odd subchannels with permutation of the ℜ(∙) and I(∙) operators:
Assuming a circular white Gaussian input, the following result is extracted from (18) and (19):
The investigation of the correlation of the imaginary parts in (69) leads to
In (71), all the terms containing E(x_{ n }x_{n+ε}) and E((x_{ n }x_{n+ε})^{∗}) were omitted since in complex circular normal variables, these terms are zeroed, if the imaginary and real parts have the same variances. The same result is extracted for the remaining term of (69). The combined result is given by
Similarly to the previous analysis, the correlation of the output from nondirectly adjacent filter paths is considered zero. The next step is to calculate the crosscorrelation between outputs of directly adjacent filters. Assuming that filter path i is even, then i+1 is odd. The exact same procedure can be used for an odd i th filter. Thus,
where once more, all the terms that did not contain products between conjugates were ignored. The first finding concerns the first four terms. Since the output from each separate filter bank is the same with the output of a uniform DFT filter bank at Nyquist rate, then the crosscorrelation matrix between the outputs of adjacent paths coming from the same filter bank has already been calculated in (22) for white Gaussian input with unitary variance (\mathcal{N}\left(0,1\right)). Given that the only difference between filter banks (A) and (B) is a delay offset of the input and that filter paths {\mathbf{y}}_{i}^{\text{(A)}}, {\mathbf{y}}_{i}^{\text{(B)}} monitor the same spectral band (with the same radio channel coefficient c_{ i }), the output crosscorrelations for adjacent subchannels for the two filter banks are equal. Therefore,
where σ_{x,i}=σ_{ s }c_{ i }. Therefore, the sum of the first four terms in (73) is zero. Regarding the following four terms, it can be proved after some mathematical manipulation that
This result is achieved using the symmetry of the prototype FIR filter. Matrix T is defined in order to store the outcome for σ_{x,i}=1, σ_{x,i+l}=1. With unification of the sign manipulation factors, the matrix elements are given by
Based on (75) and given the fact that T is purely imaginary, it is also concluded that
Combining (76) and (??) in (73), the result is given by
Thus, if the MDFT filter bank output after the operators ℜ(∙) and I(∙) is used, then all the signal vectors that participate in the detection procedure are uncorrelated. The observation vector is defined as
where due to the independence of signals, reordering is not needed. The covariance matrix of y^{oqam} is the following L N×L N matrix:
The form of this matrix leads to the pleasant conclusion that the weighted energy detector (with proper scaling for each filter path) is the NeymanPearson optimum detector. The metric of the detector is given by
The metric distribution can be extracted by

With the use of the analytical method of (55), (56) and (58) using as eigenvalues the detector weights, i.e.
\begin{array}{cc}{\lambda}_{i}^{\text{oqam}/{\mathcal{\mathscr{H}}}_{0}}& =\frac{{\sigma}_{s}^{2}{\left{c}_{i}\right}^{2}}{\left({\sigma}_{w}^{2}+{\sigma}_{s}^{2}{\left{c}_{i}\right}^{2}\right)}\\ {\lambda}_{i}^{\text{oqam}/{\mathcal{\mathscr{H}}}_{1}}& =\frac{{\sigma}_{s}^{2}{\left{c}_{i}\right}^{2}}{{\sigma}_{w}^{2}}\end{array}(82) 
Or using the FFTbased numerical integration with {\phi}_{T({\mathbf{y}}_{\text{oqam}}/{H}_{m})}\left(\omega \right)=\prod _{i=0}^{L1}{\left(1j{\lambda}_{i}^{\text{oqam}/{\mathcal{\mathscr{H}}}_{m}}\omega \right)}^{N} for the outcomes m=0,1.
In Figure 5, the histogram of the simulated OFDMOQAM detector metric is compared with the theoretically calculated distribution. Both methods of distribution calculation return practically identical results. A very similar figure can be extracted for the NeymanPearson detector for uniform DFT filter banks, since both optimal detectors have identical metric distributions. The results of the two optimum NeymanPearson detectors for the uniform DFT and the MDFT filter bank present similar performance since in both cases the maximum possible amount of information is used. The MDFT filter bank uses double computational workload for filtering. However, in most cases for relatively large sample sets and L>3, the matrix multiplications for the computation of the uniform DFT metric lead to heavier computational burden. Therefore, in general, the OFDMOQAM optimum detection is favourable.
5 Energy detection in the uniform DFT filter bank
The optimum detector for an MDFT filter bank in Section 4 is proven to be a weighted (per subchannel) energy detector. Although the performance is identical, the uniform DFT optimum detector is much more complicated since it involves multiplications with the matrix C^{1}. In this section, the use of the weighted energy detector in a uniform DFT is investigated. It can be proved that the weighted energy detector is optimal if R=0; however, this is not possible in a DFT filter bank with a rootNyquist prototype filter.
The weighted energy detector as a filter bankbased algorithm was presented in [26], where it was assumed that the subchannel filter outputs are uncorrelated and that the metric performance is determined using Gaussian distributions. It is also claimed that the weighted energy detector operation with optimal weights is similar to the maximum ratio combining (MRC) for independent variables; however, the optimal weights are not determined. The MRC consideration is proved to be the correct and optimum approach for the OFDMOQAM detector in Section 4, where filter outputs are uncorrelated. In this section, an extension and generalization of the weighted energy detector is performed. The subchannel filter outputs are considered correlated, a fact that is inevitable for uniform DFT filter banks. Moreover, accurate and analytic distributions for the metric under {\mathcal{\mathscr{H}}}_{0} and {\mathcal{\mathscr{H}}}_{1} are extracted based on probability theory.
The metric of the weighted energy detector is given by
For zeromean complex Gaussian input, additive white noise and rootNyquist prototype filter, the output for each subchannel is proved to follow the distributions below:
Since independence between samples from the adjacent filters y_{i+1} and y_{i1} is not possible, the performance of the detector will be inferior to the detector in Section 3. The hysteresis of the detector depends on the transition bandwidth and the rolloff of the prototype filter.
Therefore, T_{ed}(y) is a sum of weighted, correlated gamma variables. In order to extract the metric distribution, it is necessary to calculate the correlation coefficient for the energy between the outputs of two adjacent filter paths. According to [37] (Jensen approximation), it is claimed that for a stream of N pairs of samples of Gaussian variables z_{ k }=(z_{k 1},z_{k 2}) with (μ=0,σ=1) that are mutually correlated (but each one has uncorrelated time samples), then the correlation of the energies {u}_{1}=\sum _{k=0}^{N1}\left{z}_{k1}^{2}\right,{u}_{2}=\sum _{k=0}^{N1}\left{z}_{k2}^{2}\right can be calculated by
where the q_{ n }s are the normal correlations for variables (z_{k 1},z_{k 2}). Jensen’s result is valid for real random variables with standard normal distribution. However, it can easily be proved through the correlation coefficient that the same formula is valid for 2Nlength real normal variables with μ=0,σ^{2}=1/2. Since a Ncomplex normal vector is equivalent with a 2Nreal vector, the Jensen’s corollary can be used for the current analysis.
Normal correlations are the means to quantify the linear relationship between two multivariate random variables. The normal correlations can be calculated if the joint covariance matrix of the two random variables is known. Specifically, for known covariance matrix,
the normal correlation squares are given as the eigenvalues of the matrix:
where w_{x,y} are the respective eigenvectors. The problem is to calculate the correlation coefficient between the energies of N output samples from adjacent filter banks. The covariance matrix y_{ i },y_{i+1} is given by (Section 3):
Given that R is hermitian, it can be proved from (86) that the vector q y_{ i }y_{i+1}2 is also the vector of eigenvalues of matrix R^{2}. The correlation coefficient can be extracted as the sum of the squares of normal correlations. Since the matrix trace (Tr) is equal to the sum of the eigenvalues, it is proved that
The correlation coefficient is equal to the mean of the R^{2} eigenvalues, i.e. {p}_{{\mathbf{y}}_{i}{\mathbf{y}}_{i+1}}{=}^{\text{Tr}\left[{\mathbf{R}}^{2}\right]}\phantom{\rule{0.3em}{0ex}}\phantom{\rule{0.3em}{0ex}}\phantom{\rule{0.3em}{0ex}}/{}_{N}
Another important note is that since the correlation coefficient does not depend on the radio channel coefficients, it is the same for every pair of adjacent subchannel outputs. It is also noted that for nondirectly adjacent subchannels, the correlation coefficient is assumed to be zero. Once again, the analysis in [36] can be followed in order to extract the metric distribution. According to [36], if {\left\{{u}_{i}\right\}}_{i=1}^{L1} is a set of Lcorrelated gamma variables with equal degrees of freedom and known correlation coefficients, then the PDF can be expressed analytically. Unlike the results in Sections 3 and 4 where an identity correlation matrix is considered, in this case, the positive definite matrix C_{ed} that expresses the correlations is given by [36]
The tridiagonal matrix is an L×L matrix. As a next step, the diagonal matrix D_{ed} is defined according to the rule:
The distributions are calculated by (55), (56), (58) and (66) using the eigenvalues {\lambda}_{i}^{\text{ed}/{\mathcal{\mathscr{H}}}_{0}} and {\lambda}_{i}^{\text{ed}/{\mathcal{\mathscr{H}}}_{1}} that are calculated from the matrix: A_{ed}=D_{ed}C_{ed}. Since A_{ed} is tridiagonal, the eigenvalues can be calculated iteratively [38]. A distribution fit example for the weighted energy detector metric is presented in Figure 6.
In [26], it is mentioned that for uncorrelated, independent subchannel filter outputs, the weighted energy detector can be seen as an approximation of the matched filtering. This is accurate for the OFDMOQAM NeymanPearson (NP) detector where subchannel independence is proved. More specifically, if the ‘approximately flat radio channel per subchannel’ assumption is valid and the radio channel can be adequately described by the c_{ i } parameters, then the matched filter approximation is exceptional. As the channel frequency selectivity increases, the deviation from the matched filter performance also increases. However, in the common case of correlated filter outputs, the deviation from the matched filter performance is significant. Since the weighted energy detector metric ignores the correlation of the output samples, it fails to perfectly align the decision metrics in order to maximize probability of detection. This is achieved by the NP optimal detector of Section 3. In terms of diversity, the weighted energy detector is transformed into an nonoptimal MRC that ignores the existed correlation among the diversity branches. Despite the fact that the weighted energy detector is outperformed by the NP detector, the selection of weights that depends on the SNR per subchannel provides significant advantages over the conventional energy detector. The integration of the radio channel effects in the detector with the use of the c_{ i } parameters is essential, despite the fact that it is based on the ‘approximately flat radio channel’ approximation. Thus, the performance degradation of the weighted energy detector from the NP optimal detector is much smaller than the achieved improvement from the performance of the conventional energy detector, as presented in Figure 7.
6 Coloured noise
An important weakness of many detectors is that they are not robust in the existence of coloured noise. Coloured noise may be the result of interference caused by remote PSs or CRs, it may be caused by various electronic noise sources or it may appear due to filter leakage and spurious emissions of users operating in adjacent spectrum bands [5]. In this section, additive coloured Gaussian noise is assumed. In AWGN models, the noise samples are uncorrelated. Coloured noise can be on the other hand modelled as the result of filtering AWGN samples. When the noise reaches the receiver, it is subjected also to filtering from the filter bank. Similarly to the assumption regarding the primary signal, the noise variance is considered approximately constant for the bandpass zone of each filter path. Therefore, the coloured noise modelling can be performed with the following relationships: