compressive Sensing

From statwiki
(Redirected from Compressive Sensing)
Jump to: navigation, search


Faithfully and efficiently constructing a signal from a coded signal is an age old scientific problem. The Shannon/Nyquist sampling theorem states that in order to reconstruct a signal from a sampled signal without incurring artifacts such as aliasing, it is necessary to sample at least two times faster than the maximum signal bandwidth. However, in many applications such as digital image and video cameras, the Nyquist rate will result in an excessive number of samples, and making compression becomes a necessity before any storage or transmission of the samples can be made. Furthermore, in other applications such as medical scanners and radar, it is usually too costly to increase the sampling rate. This strict, and often costly, Nyquist criterion motivates a need for alternative methods. Compressive sensing, which is outlined in this paper summary, is one such approach that avoids the use of a high sampling rate for capturing signals.

Compressive sensing is a method of capturing and representing compressible signals at a rate significantly below the Nyquist rate. This method employs nonadaptive linear projections that maintain the structure of the signal, which is then reconstructed using the optimization techniques outlined in <ref name="R1"> C. Dick, F. Harris, and M. Rice, “Synchronization in software defined radios—Carrier and timing recovery using FPGAs,” in Proc. IEEE Symp. Field-Programmable Custom Computing Machines, NapaValley, CA, pp. 195–204, Apr. 2000.</ref> <ref name="R2">J. Valls, T. Sansaloni, A. Perez-Pascual, V. Torres, and V. Almenar, “The use of CORDIC in software defined radios: A tutorial,” IEEE Commun. Mag., vol. 44, no. 9, pp. 46–50, Sept. 2006.</ref>.

In summary, in this paper we will learn the definition of compressible signal, how to construct a compressible signal and then how to reconstruct the compressed signal.

Compressible Signals

Let us define a discrete time signal [math]\ x[/math] such that it has following properties:

  • Real valued
  • Finite length
  • One dimensional

Then [math]\ x[/math] is a [math]N \times 1[/math] column vector in [math]\mathbb{R}^n[/math] with elements [math]x[n], \; n=1,2,....N[/math]. Note that an image or any other high-dimensional data point is pre-processed by first representing it as a long one-dimensional vector. To define a signal in [math]\mathbb{R}^n[/math] we define the [math]N \times 1[/math] basis vectors [math]\, {\psi_i}, i = 1,\dots,n[/math]. To keep it simple, assume that the basis is orthonormal. Using a [math]N \times N[/math] basis matrix [math]\,\psi = [\psi_1|\psi_2|......|\psi_N][/math], the signal [math]\ x[/math] can be expressed as

[math]x=\sum_{i=1}^N s_{i} \psi_{i} \; \textrm{ or } \; x=\psi s[/math],

where [math]\ s[/math] is a [math]N \times 1[/math] column vector of weighting coefficients [math]s_i=\langle x,\psi_i \rangle=\psi^{T}_i x [/math].
It is easy to see that both [math]\,x[/math] and [math]\,s[/math] are equivalent representations of the given signal that is to be captured, with [math]\,x[/math] being in the time or space domain (depending on the nature of the signal) and [math]\,s[/math] being in the [math]\,\psi[/math] domain. The signal is [math]\ K[/math]-sparse if it is a linear combination of only [math]\ K[/math] basis vectors. The signal will be compressible if the above representation has just a few large coefficients and many small coefficients. We shall now briefly overview how the transform coding of signals that uses a sample-then-compress framework is done in data acquisition systems such as digital cameras (for which transform coding plays a central role). The procedure of this type of transform coding can be described in the following steps:

Step 1: The full [math]\,N[/math]-sample signal [math]x[/math] is acquired.
Step 2: The complete set of transform coefficients [math]\,{si}[/math] is computed via [math]\,s = \psi^T x[/math].
Step 3: The [math]\,K[/math] largest coefficients are located.
Step 4: The [math]\,(N[/math][math]\,K)[/math] smallest coefficients are discarded.
Step 5: The [math]\,K[/math] values and locations of the largest coefficients are encoded.

Please note that the transform coding that uses a sample-then-compress framework has the following inherent inefficiencies:

  • The initial number of samples [math]\,N[/math] may be very large even if the desired [math]\ K[/math] is small.
  • The set of all [math]\ N[/math] transform coefficients [math]\ {s_i}[/math] must be calculated even though all but [math]\ K[/math] of them will be discarded.
  • The locations of the large coefficients must be encoded, thus introducing an overhead to the algorithm.

The Problem Statement for the Compressive Sensing Problem

Compressive sensing directly acquires the compressed signal without going through the intermediate stage of acquiring [math]\ N[/math] samples. In order to do this, a general linear measurement process is defined such that [math]\, M \lt N[/math] inner products between [math]\ x[/math] and a collection of vectors [math]\{\phi \}_{j=1}^M[/math] are computed to give [math]y_{j}=\langle x, \phi_j \rangle[/math].
Ordering the new measurement vectors [math]\ y_j[/math] in a [math]M\times 1[/math] vector [math]\ y[/math], and the measurement vectors [math]\phi_{j}^{T}[/math] as rows in an [math]M \times N[/math] matrix [math]\ \phi[/math], we can then use [math]\ x=\psi s[/math] to get

[math]\ y=\phi x=\phi \psi s=\theta s[/math],

where [math]\ \theta=\phi \psi[/math] is an [math]M \times N[/math] matrix. This measurement process is nonadaptive, which implies that [math]\ \phi[/math] is fixed and does not depend on the signal [math]\ x[/math]. So, in order to design a viable compressive sensing method the following two conditions must be met:

  • A stable measurement matrix [math]\ \phi[/math] must be constructed which preserves the information while reducing the dimension from [math]\ N[/math] to [math]\ M[/math].
  • A reconstructing algorithm must be designed which recovers [math]\ x[/math] from [math]\ y[/math] by using only [math]M \approx K[/math] measurements (which is roughly the number of coefficients recorded by the traditional transform coder mentioned earlier).

Part 1 of the Solution: Constructing a Stable Measurement Matrix

Given the [math]\, M [/math] available measurements, [math]\, y [/math], where [math]\,M \lt N[/math],[math]\,\phi[/math] must be able to reconstruct the signal [math]\, x [/math] with a high level of accuracy. If [math]\,x[/math] is [math]\,K[/math]-sparse and the locations of the non-zero coefficients in [math]\,s[/math] is known, then the problem can be solved provided [math]M \geq K[/math]. For this problem to be well conditioned we must have the following necessary and sufficient condition.

[math]1-\epsilon \leq \frac{\parallel \theta v\parallel_2}{\parallel v\parallel_2}\leq 1+\epsilon[/math],

where [math]\,v [/math] is a vector sharing the same non-zero entries as [math] \,s [/math] and [math]\epsilon \geq 0[/math], and where [math]\epsilon[/math] is the restrictive isometry constant. This means [math]\,\theta[/math] must preserve the lengths of these particular K-sparse vectors. This condition is referred to as the restricted isometry property (RIP)<ref name="R1"> C. Dick, F. Harris, and M. Rice, “Synchronization in software defined radios—Carrier and timing recovery using FPGAs,” in Proc. IEEE Symp. Field-Programmable Custom Computing Machines, NapaValley, CA, pp. 195–204, Apr. 2000.</ref> <ref name="R2">J. Valls, T. Sansaloni, A. Perez-Pascual, V. Torres, and V. Almenar, “The use of CORDIC in software defined radios: A tutorial,” IEEE Commun. Mag., vol. 44, no. 9, pp. 46–50, Sept. 2006.</ref>. Note that, in practice, it is typically impossible to known the locations of the [math]\,K[/math] non-zero entries in [math]\,s[/math]. However, a sufficient condition for a stable solution for both K-sparse signals and compressible signals is that [math]\,\theta[/math] satisfies the RIP for an arbitrary [math]\,3K[/math]-sparse vector [math]\,v[/math]. A similar property to the RIP called incoherence requires that the rows [math]\,\{\phi_j\}[/math] of [math]\,\phi[/math] cannot sparsely represent the columns [math]\,\{\psi_i\}[/math] of [math]\,\psi[/math], and vice versa. Consequently, both [math]\,K[/math]-sparse signals and compressible signals of length [math]\,N[/math] can be reconstructed using only [math]\,M \ge cK log(N/K) \lt \lt N[/math] random Gaussian measurements.

The RIP and incoherence conditions can be satisfied with high probability simply by choosing a random matrix, [math]\,\phi[/math]. For example, let us construct a matrix [math]\,\phi[/math] such that its matrix elements [math]\,\phi_{i,j}[/math] are independent and identically distributed (iid) random variables from a Gaussian probability distribution with mean zero and variance [math]\,1/N[/math] <ref name="R1"/><ref name="R2"/><ref name="R4> R.G. Baraniuk, M. Davenport, R. DeVore, and M.D. Wakin, "A simples proof of the restricted isometry principle for random matrices (aka the Johnson-Linstrauss lemma meets compressed sensing)," Constructive Approximation, 2007.</ref>. Then, the measurements [math]\,y[/math] are merely [math]\,M[/math] different randomly weighted linear combinations of the elements of [math]\,x[/math] and the Gaussian measurement matrix [math]\,\phi[/math] has the following properties:

  1. The incoherence property is satisfied by the matrix [math]\,\phi[/math] with the basis [math]\,\psi = I[/math] with high probability since it is unlikely that the rows of the Gaussian matrix [math]\,\phi[/math] will sparsely represent the columns of the identity matrix and vice versa. In this case, if [math]\, M \geq cK\log(N/K)[/math] with [math]\,c[/math] a small constant, then [math]\,\theta = \phi\psi = \phi I = \phi [/math] will satisfy the RIP with high probability.
  2. The matrix [math]\,\phi[/math] is universal, meaning that [math]\,\theta[/math] will satisfy the RIP with high probability regardless of the choice of the orthonormal basis [math]\,\psi[/math].

Part 2 of the Solution: Designing a Reconstruction Algorithm for Signals

Now we are left with the task of designing a reconstruction algorithm. The reconstruction algorithm must take into account the [math]\,M[/math] measurements in the vector [math]\,y[/math], the random measurement matrix [math]\,\phi[/math] (or the seed that was used to generate it) and the basis [math]\,\psi[/math] and then reconstruct the length [math]\,N[/math] signal [math]\,x[/math] or its sparse coefficient vector [math]\,s[/math]. Since [math]\,M\lt N[/math], the system is underdetermined (having fewer equations than variables), and thus we have infinitely many [math]\,s'[/math] which satisfy

[math]\,\theta s'=y[/math].

The justification for this is that if [math]\,\theta s=y[/math] then [math]\,\theta (s+r)=y[/math] for any vector [math]\,r[/math] in the null space of [math]\,\theta[/math], denoted [math]\,N(\theta)[/math] . This suggests finding the signal's sparse coefficient vector in the [math]\,(N-M)[/math] dimensional translated null space [math]\,H=N(\theta)+s[/math]. Related to the concept of Lp space, the [math]\,l_p[/math] norm of the vector [math]\,s[/math] is [math]\,(||s||_p)^p = \sum_{i=1}^N |s_i|^p[/math]. With this concept in mind, the reconstruction process can be attempted in the following ways that make use of the concept of [math]\,l_p[/math] norm.

Minimum [math]\,l_2[/math] norm reconstruction

In order to find the vector [math]\,s[/math], the classical approach is to find the vector in the transformed null space with the smallest [math]\,l_2[/math] norm (also called energy norm) by solving

[math]\hat{s}=\arg\min\parallel s'\parallel_2 \; \textrm{ such } \; \textrm{ that } \; \theta s'=y.[/math]

The closed form solution is given by [math]\hat{s}=\theta^{T}(\theta \theta^{T})^{-1}y[/math]. However, the minimization returns non-sparse [math]\hat{s}[/math] with many non-zero elements. In other words, it is almost never able to reconstruct the original signal.

Minimum [math]\,l_0[/math] norm reconstruction

The drawback of using the [math]\,l_2[/math] norm in reconstruction is that the [math]\,l_2[/math] norm measures signal energy rather than signal sparsity. For reconstruction, the use of the [math]\,l_0[/math] norm is much more suitable, because the [math]\,l_0[/math] norm counts the number of non-zero entries in [math]\,s[/math], i.e. the [math]\,l_0[/math] norm of a [math]\,K[/math]-sparse vector is simply [math]\,K[/math]. Let us now evaluate the [math]\,l_0[/math] norm, also known as the cardinality function (since it counts the number of non-zero entries in [math]\,s[/math]). In this case the problem formulation is

[math]\hat{s}=\arg\min\parallel s'\parallel_0 \; \textrm{such} \; \textrm{that} \; \theta s'=y[/math]

At first glance this approach looks attractive since it recovers the K-sparse signal exactly with high probability using only [math]\,M = K+1[/math] i.i.d Gaussian measurements. However, solving the equation is numerically unstable and NP-complete which requires an exhaustive search of all [math](_K^{N})[/math] possible locations of the non-zero entries in [math]\,s[/math].

Minimum [math]\,l_1[/math] norm reconstruction

Now, if we perform minimization using the [math]\,l_1[/math] norm , we are able to recover [math]\,K[/math]-sparse signals and closely approximate the compressible signal with high probability using only [math]M \geq cK\log(\frac{N}{K})[/math] i.i.d Gaussian measurements. We aim to solve

[math]\hat{s}=\arg\min\parallel s'\parallel_1 \; \textrm{such} \; \textrm{that} \; \theta s'=y.[/math]

This optimization problem is convex and reduces to a linear program known as basis pursuit<ref name="R1"> C. Dick, F. Harris, and M. Rice, “Synchronization in software defined radios—Carrier and timing recovery using FPGAs,” in Proc. IEEE Symp. Field-Programmable Custom Computing Machines, NapaValley, CA, pp. 195–204, Apr. 2000.</ref> <ref name="R2">J. Valls, T. Sansaloni, A. Perez-Pascual, V. Torres, and V. Almenar, “The use of CORDIC in software defined radios: A tutorial,” IEEE Commun. Mag., vol. 44, no. 9, pp. 46–50, Sept. 2006.</ref>, and has computational complexity [math]\,O(N^3)[/math].

Figure 2 from the original paper [5] illustrates these three approaches for reconstructing signals. For convenience, this figure is reproduced below.


Furthermore, other related reconstruction algorithms can be found in [6] and [7] of the original paper.


The paper discusses a practical example of the technique of compressive sensing using a "single-pixel compressive sensing camera"<ref name = "R3"> D. Takhar, V. Bansal, M. Wakin, M. Duarte, D. Baron, J. Laska, K.F. Kelly, and R.G. Baraniuk, “A compressed sensing camera: New theory and an implementation using digital micromirrors,” in Proc. Comput. Imaging IV SPIE Electronic Imaging, San Jose, Jan. 2006.</ref>. The main idea is that the camera has a mirror for each pixel, and randomly, the mirror either reflects the light to something that can use it (a photodiode) or it doesn't. Thus, [math]\,y_i[/math] is the voltage at each photodiode and as in the problem description, it is the inner product of the image we want, [math]\,x[/math], and [math]\,\phi_i[/math]. Here, [math]\,\phi_i[/math] is a vector of ones and zeros, indicating whether mirrors direct light towards the photodiode or not. This can be repeated to get [math]\,y_1,\dots,y_M[/math]. The image can be reconstructed using the techniques discussed. This example can be seen in the following diagram. The image in part (b) is from a conventional digital camera. The image in part (c) is constructed using the single-pixel camera. This method requires 60% fewer random measurements than reconstructed pixels.



In practice, no measurement system is perfect---devices do not have infinite precision. Thus, it is necessary that compressed sensing continue to recover signals relatively well, even in the presence of noise. Fortunately, it has been shown that the error bound of compressive sensing is proportional to the error which results from the approximation to a sparse signal (the change of basis), plus the noise which is input to the system.

More formally,

[math]\parallel x^* - x \parallel_{l_2} \le C_0 \parallel x - x_s \parallel_{l_1} / \sqrt{S} + C_1 \epsilon[/math]

where [math]\,x^*[/math] is the signal recovered under noisy conditions, [math]\,x_s[/math] is the vector [math]\,x[/math] with all but the largest [math]\,S[/math] components set to zero, and [math]\,\epsilon[/math] is the error bound in the noise. Here, [math]\,C_0[/math] and [math]\,C_1[/math] are generally small.

This is a very important result, since it means that the noise produced by compressive sensing is directly proportional to the noise of the measurements. It is this result that ultimately moves compressive sensing from being an interesting academic exercise to something which is pragmatic.


The compressive sensing algorithm can be applied to analog signals as well. This sensing technique finds many practical applications in image processing and similar fields. In this summary, we learned about compressive sensing which is a more efficient method compared to the traditional transform coding of signals that uses a sample-then-compress framework.


<references />

5. Richard G. Baraniuk. Compressive Sensing.