Keywords

1 Introduction

Dynamic spectrum access alleviates the problem of spectrum scarcity by introducing new wireless networks. CRN provides a promising solution for increasing the spectrum efficiency. Cognitive radio is a smart system that senses the electromagnetic spectrum for unused channels and then adapts them for communication without interfering with the licensed users. The channel is scanned continuously to identify the presence or absence of the signal using spectrum sensing algorithms. Wideband spectrum sensing needs efficient techniques to reduce the processing time. The wideband signal is filtered using several narrow band filters, and then the detection is performed. These signals need multi-channel ADCs sampling at a rate greater than Nyquist rate. Meanwhile, the traditional reconstruction techniques cannot provide necessary statistic using limited measurements. Therefore, a technique is required for sampling the signals at a rate lower than Nyquist frequency. CS accomplishes this task. CS theory refers to perform channel estimation using sparse samples compared to the conventional techniques [1]. A PU localization technique is developed using CS in order to improve the accuracy of sensing [2].

In [3], the signals are compressed using orthonormal basis functions and recovered using a \(l^{p}\) basis pursuit (BP) algorithm. However, the BP and orthogonal matching pursuit (OMP) algorithms use the preliminary information of the sparse nature for solving the problem. A tree-based OMP is proposed in [4] by exploiting the tree-like structure as additional information for reconstructing the signals. The advantage of the tree-like structure is that more elements are considered at a time thereby requiring less computation time than BS and OMP. In contrast with time domain CS, the multi-band detection technique is modeled in frequency domain [5]. Further, CS was applied to recognize the type of digital modulations in communication. The spectrum and moments of higher order are used as a measure to directly identify the different modulated signals without reconstructing the signals. The incoming radar pulses have been recovered using a photon-based CS system in [6].

This paper models a generalized framework for compressed spectrum sensing of a wideband signal and recovery using \(l_{1}\)-minimization algorithm. The wideband signal is first compressed using an orthogonal function in time domain for deriving the energy coefficients. Each narrow band signal is then detected using energy detection technique and recovered linearly. The rest of the paper is organized as follows. Section 2 introduces the compressed spectrum sensing model and Sect. 2 describes \(l_{1}\)-minimization algorithm. The results are discussed in Sect. 3 and finally, Sect. 4 summarizes the conclusions.

2 Compressed Spectrum Sensing Model

Consider a wideband signal x having L non-overlapping channels. The channel occupancy is not balanced at any particular location and time. The number of samples can be decimated using compression scheme.

2.1 Compression

Let x be a discrete time signal of size \(N \times 1\). The sparse matrix y of size \(K \times 1\) can be obtained as [7]

$$\begin{aligned} y = Ax \end{aligned}$$
(1)

where A is an orthogonal matrix of size \(K \times N\), in which N and K denote the total number of samples and number of observations. The condition for compression is \(K\ll N\). Hence, y is called as a measurement vector that results in reduced sampling rate. Before applying this signal to sensing, the compressed signal needs to be filtered using a set of narrow band filters.

2.2 Energy Detection Technique

In general, spectrum sensing model can be formulated as a binary hypothesis problem having true and null hypothesis [8].

$$\begin{aligned} H_{0}: s(n) = w(n) \end{aligned}$$
(2)
$$\begin{aligned} H_{1}: s(n) = y(n) + w(n) \end{aligned}$$
(3)

where s(n) is the received narrow band signal of each channel to the secondary user, y(n) is the compressed signal, and w(n) is the Gaussian noise having zero mean and variance (\(\sigma ^{2}_{\omega }\)). The energy detector test statistic is given as [9]

$$\begin{aligned} E(s) = \frac{1}{N}\overset{{N}}{\underset{{n=1}}{\sum }}{|s(n)|^{{2}}} \end{aligned}$$
(4)

The average energy E(s) is compared with detection threshold T to evaluate the probability of detection. The performance factors that decide the ability of any sensing technique are probability of detection (\(p_{d}\)) (probability of successful detection under \(H_{1}\)), probability of false alarm (\(p_{fa}\)) (probability of incorrectly detecting under \(H_{0}\)), and signal-to-noise (SNR) wall of detection [10] (the minimum SNR value below which the detection is not possible). The detection threshold [8] is evaluated as

$$\begin{aligned} T =Q^{{-1}}\left( \frac{P_{fa}(n)}{\sqrt{N}}\right) + 1 \end{aligned}$$
(5)

where Q(x) is a complementary error function.

2.3 \(l_{1}\)-minimization algorithm

In recent papers, convex optimization methods are used for reconstructing the signals from insufficient data. Compressed sensing depends on least squares method referred as \(l_{p}\)-norm. In statistics, \(l_{p}\)-norm of x is computed as

$$\begin{aligned} \Vert x \Vert = \root p \of {\sum _{i}|x_{i}|^{p}} \quad p\in \mathbb {R} \nonumber \end{aligned}$$

The mathematical properties of different norms \((p\geqslant 1)\) vary dramatically. Compressed sensing scheme finds the sparsest solution for indeterminated systems. The vector with few nonzero entries is called as the sparsest solution. This problem is usually solved using linear programming or optimization methods [11].

The minimum energy \(x_{0}\) can be evaluated using measurement vector y in Eq. (1) as

$$\begin{aligned} x_{0} = A^{'}y \end{aligned}$$
(6)

The linear program used for recovery of the original signal is primary dual algorithm [12], stated as

$$\begin{aligned} min x_{0} \quad subject to \quad Ax=b,\quad f_{i}(x_{0})\le 0 \end{aligned}$$
(7)

where (search vector) \(x\in \mathbb {R}^{N}\), \(b\in \mathbb {R}^{K}\), and \(f_{i}\) is a linear function of \(x_{0}\):

$$\begin{aligned} f_{i}(x_{0}) = <c_{i} x_{0}> + d_{i} \quad c_{i}\in \mathbb {R}^{N}\quad d_{i}\in \mathbb {R} \end{aligned}$$
(8)

where \(c_{i}\) and \(d_{i}\) are constants. The optimized solution is picked, if Karush–Kuhn–Tucker (KKT) conditions are satisfied [12]. These are first-order conditions that can be used for linear as well as nonlinear programming. The Newton’s iterative method arrives at an interior point (\(x_{0},v,\lambda \)) provided \(f_{i}(x_{0}) < 0, \lambda > 0\). The parameters v and \(\lambda \) are duals to \(x_{0}\). The complementary slackness condition used in our problem is

$$\begin{aligned} \lambda _{i}^{*}f_{i}(x_{0}) = -\frac{1}{\tau } \end{aligned}$$
(9)

The parameter \(\tau \) is responsible for the iterations in the Newton’s method. The increase of \(\tau \) progresses the interior point toward the solution on the boundary. The proposed problem quantifies the residuals namely primal, dual, and central as the modified KKT conditions.

$$\begin{aligned}&\qquad \,\,\quad rprimal = Ax_{0} - b \nonumber \\&\ rcentral = \begin{bmatrix} -\lambda _{1}&f_{1} \\ -\lambda _{2}&f_{2} \end{bmatrix} -\frac{1}{\tau }\\&\quad rdual = \begin{bmatrix} \lambda _{1} -\lambda _{2} + A^{'}v \\ 1-\lambda _{1} -\lambda _{2} \end{bmatrix}\nonumber \end{aligned}$$
(10)
figure a

The feasible step size s specifies the next move direction \((0< s< 1)\) to derive the minimum energy coefficients of the signal. The complete process of recovering the signal is given in Algorithm 1. This algorithm can be employed for face recognition due to the sparse nature of human features [13].

3 Simulation Results

The wideband PU signal used in simulations is QPSK signal with five channels. The SNR assumption is 0 to \(-14\) dB. The number of samples (N) is 512. The compression rate (K / N) varied from 10 to \(100\%\). The SNR wall is evaluated at \(p_{d} = 0.9\) and \(p_{fa}\) = 0.1 respectively. The detection performance of each narrow band-compressed signal is analyzed using ROC curves.

Fig. 1
figure 1

a Received PU signal for single narrowband channel b Minimum energy signal c Recovery of compressed QPSK signal with K / N = 50%

Fig. 2
figure 2

SNR verses \(p_{d}\) of proposed CSS technique for different compression rates

Figure 1 illustrates the original, minimum energy, and the recovered signals. The rate of compression assumed here is \(50\%\), where \(K=256\) and \(N=512\). The original signal shown in Fig. 1a is the filtered narrowband signal of one channel. Figure 1b shows the compressed signal in time domain, evaluated using Eq. (6). It consists of minimum energy coefficients of the original signal. The recovery is made using Algorithm 1, shown in Fig. 1c. The figures clearly depict that most of the samples are successfully reconstructed even with \(50\%\) compression rate. The sparse nature of the compressed signal enables any spectrum sensing technique to identify the vacant spectrum bands in less time.

Table 1 Comparison of SNR wall of the proposed method with variable compression rates
Fig. 3
figure 3

\(p_{d}\) verses \(p_{fa}\) of proposed CSS technique for different compression rates

Figure 2 shows the receiver operating characteristics (ROC) for observing the detection performance through \(p_{d}\) for each SNR value. The SNR wall of detection of the proposed technique is shown clearly for various compression rates. The \(10\%\) compressed signal is identified at \(-3\) dB, \(30\%\) at \(-6.6\) dB, \(50\%\) at \(-7.6\) dB, \(80\%\) at \(-8.5\) dB, and \(100\%\) at \(-9.2\) dB SNR respectively. Table 1 shows these results. The detection strategy increases linearly with compression rate, but the increase in the compression rate increments the number of samples that add up the processing time. On an average, \(50\%\) compression can be chosen to detect the PU signals at \(-7.6\) dB which achieves better performance than traditional energy detection technique. The same compression rates are considered for plotting \(p_{d}\) against \(p_{fa}\) in Fig. 3.

4 Conclusion

The computational complexity plays a significant role in wideband spectrum sensing. CS provides an optimal solution by compressing the samples at a rate less than \(50\%\). The proposed work performs compression of a wideband signal and senses each narrowband channel using energy detection technique. In this work, a unique measurement matrix is produced to obtain minimum energy coefficients of the received signal. The spectrum sensing is initiated upon these condensed samples to analyze the performance of detection. The minimum energy signal is then reconstructed using \(l_{1}\)-minimization algorithm. The reconstruction can also be made feasible by adopting the optimization methods as a future direction of research. Furthermore, the simulation results are discussed for different compression rates making sparsest detection possible.