scieee AI-readable full text Open interactive document viewer

Inference on compressive measurements

Jiménez Gómez, Marina

Abstract

Compressed sensing is a new paradigm capable of sampling and compressing signals in one step. Its original purpose was to compress sparse or compressible signals in a way that reconstruction from the measurements taken were possible. However, many applications do not require signal recovery. Therefore, a new branch of compressed sensing aims to directly perform inference using the information encoded in the samples, instead of recovering the complete signal and then solving inference problems over the reconstructed signal. In this thesis, the mathematical framework for detection, classi cation, estimation and ltering on compressed measurements was studied. Moreover, applications of inference mainly based on machine learning as an implementation tool were reviewed. Finally, machine-learning algorithms were tested on compressed measurements.

Full text

Universidad de Sevilla Facultad de F´ ısica Departamento de electr´ onica y electromagnetismo Inference on compressive measurements Bachelor’s Thesis Author: Marina Jim´enez C´omez Supervisors: Jorge Fern´andez Berni Riu Rodr´ıguez Sakamoto September 2021 Abstract Compressed sensing is a new paradigm capable of sampling and compressing signals in one step. Its original purpose was to compress sparse or compressible signals in a way that reconstruction from the measurements taken were possible. However, many applications do not require signal recovery. Therefore, a new branch of compressed sensing aims to directly perform inference using the information encoded in the samples, instead of recovering the complete signal and then solving inference problems over the reconstructed signal. In this thesis, the mathematical framework for detection, classification, estimation and filtering on compressed measurements was studied. Moreover, applications of inference mainly based on machine learning as an implementation tool were reviewed. Finally, machine-learning algorithms were tested on compressed measurements. Keywords— Compressed Sensing, Inference, Detection, Classification, Estimation, Filtering, Compressed Learning, Machine Learning, Deep Neural Networks i ii Resumen El muestreo compresivo es un nuevo paradigma capaz de muestrear y comprimir se˜nales en un solo paso. Su objetivo original era el de comprimir se˜nales sparse o compresibles de tal modo que su reconstrucci´on a partir de las medidas tomadas fuera posible. Sin embargo, muchas aplicaciones no requieren recuperar la se˜nal. Por lo tanto, una nueva rama del muestreo compresivo pretende realizar problemas de inferencia directamente usando la informaci´on codificada en las muestras en lugar de recuperar completamente la se˜nal y posteriormente resolver el problema de inferencia sobre la se˜nal reconstruida. En este trabajo se estudia el marco matem´atico de los problemas de detecci´on, clasificaci´on, estimaci´on y filtrado. Adem´as, se revisan aplicaciones de inferencia principalmente basadas en el uso de herramientas de aprendizaje autom´atico. Por ´ultimo, se prueban algoritmos de aprendizaje autom´atico sobre medidas comprimidas. iii iv Acknowledgements This project is dedicated to my parents and grandparents. They have supported me throughout the years and encourage me to pursue my goals. I would also like to thank my supervisors Jorge Fern´andez Berni and Riu Rodr´ıguez Sakamoto for their guidance and patience. v vi Contents List of Figures ix List of Tables xi Acronyms xiii 1 Introduction 1 2 Compressed sensing 5 2.1 Background ................................... 5 2.2 Theoreticalframework ............................. 6 2.3 Reconstruction algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.4 PracticalExamples............................... 11 2.4.1 Sparsity and reconstruction . . . . . . . . . . . . . . . . . . . . . . 12 2.4.2 Non-sparsesignals ........................... 15 2.4.3 Image Reconstruction . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5 Applications................................... 23 3 CS-based inference: Classical approach 27 3.1 Concepts of statistical inference . . . . . . . . . . . . . . . . . . . . . . . . 27 3.2 Detection .................................... 30 3.3 Classification .................................. 36 3.4 Estimation.................................... 39 3.5 Filtering..................................... 42 4 CS-based inference: State of the art 47 4.1 Inference and Machine Learning . . . . . . . . . . . . . . . . . . . . . . . . 47 4.2 Classification and recognition . . . . . . . . . . . . . . . . . . . . . . . . . 50 4.3 Detection and estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 4.4 Implementation................................. 55 4.4.1 MNISTdatabase ............................ 55 4.4.2 DetectionwithSVM .......................... 56 vii Chapter 1 Introduction Paper documents, vinyls, photo negatives, physical books... Some of these objects are already in the past and the others could soon be too. Physical information support is disappearing due to digitization. Moreover, we are creating more and more digital contents every second through smartphones, PC, GPS, sensors... They are examples of devices that surround us everyday and generate data such as images or videos. To have an idea of the rapid increase in the volume of information, according to International Data Corporation (IDC), in 2006 there were 161 exabytes of digital data and by 2020 the estimate was 59 zettabytes. Taking into account that 1 zettabyte equals 1000 exabytes, the increase in data to manage is enormous. All this information brings about challenges related to data management, storage and analysis. Proper data representation is needed, redundancy must be reduced and compression has to be applied. Another challenge is energy consumption. Processing, storage and transmission of massive data consume a lot of electrical energy. In this context, signal processing plays a major role to improve the situation with the development of new theories able to simplify the work with signals. In particular, a focus of this thesis is on how to process data acquired by sensors. In classical signal processing, for transmission or storage purposes, a signal is first sampled. In this process nelements are obtained. Subsequently, compression is applied, which means that from these nelements, just k≤nare taken and the rest are discarded. Then, this compressed signal can be either stored in a storage device or in the cloud, or it can be transmitted. In this second case, the kelements are sent to the receiver, where a decompression or reconstruction process is conducted. Regarding sampling, the Nyquist-Shannon theorem [56] sets how to sample a bandlimited time-varying signal in order to be able to reconstruct it from the corresponding measurements. In other words, this theorem determines how to keep the relevant infor- 1 2 mation of the signal, which must be sampled uniformly at a rate that exceeds twice the signal’s highest frequency. Although this result has been widely used, it presents some drawbacks. As it has been mentioned before, after nmeasurements are taken, they are compressed into ksamples for storage or transmission purposes. Consequently, n−k samples are discarded, which means it was not necessary to acquire them in the first place. Additionally, for signals containing high frequencies, the sampling rate required by Nyquist criterion might be too high to be practically implemented [64]. Furthermore, the theorem is only applicable to band-limited signals whose band-limit is known a priori. The aim of compression is to reduce redundancy and irrelevancy [36]. For example, neighbouring pixels in an image are correlated, so there is intrinsic redundancy. However, there can be some loss in the process of compression. In fact, well-known compression algorithms, such as JPEG for images, are lossy because when compression is performed, too much information is discarded, thereby causing degradation in the reconstruction with respect to the original data. There are also lossless compression methods, for example the algorithm related to the PNG format [8]. One of the most important techniques for compression is transform coding. Different transforms provide representations of the original data in new domains where the number of coefficients that gather the information is smaller than in the original domain. For example, JPEG is based on the Discrete Cosine Transform (DCT) [50], which is an orthogonal transform that represents the image in the frequency domain. Based on the idea of transform coding, and aiming to improve Nyquist-Shannon’s rate, Compressed Sensing (CS) appeared in 2006 introduced by Donoho, Cand`es, Romberg, and Tao [28, 11]. In [49] and [51], a theoretical review of CS is presented together with some of its applications. The aim of CS is to provide a theoretical framework in which the reconstruction of a signal can be obtained from fewer measurements than using the Nyquist-Shannon rate. This theory works with sparse or compressible representations of signals. This means that, in a certain basis, the targeted signals are represented by a small set of coefficients or by a set of coefficients that, if sorted, exhibit rapidly decaying values. Provided that the signals of interest present this characteristic, fewer measurements than those resulting from applying the Nyquist criterion can be taken randomly while keeping all relevant information. The fact that the acquisition and compression of measurements are carried out concurrently gave its name to the theory: Compressed Sensing. Once simultaneous sampling and compression is performed, the compressed signal would be transmitted to the receiver for reconstruction. 3 The fundamental idea of CS is solving an underdetermined linear system to implement the recovery: y= Φf(1.1) In this expression, yis the compressed signal, Φ is a matrix that represents how the signal was sampled, and fis the original signal that we need to reconstruct. To solve this, an optimization problem is set that includes restrictions over the sparsity of the signal recovered. Many different approaches have been followed to develop algorithms capable of reconstructing a signal under the CS framework. Some of them are reviewed in this thesis. However, signal recovery is computationally expensive. Moreover, for many signal processing problems, recovery is not always needed. Would it be possible to work just with the compressed measurements? Let us focus on computer vision for example. Pattern recognition, detection and classification are three major problems addressed by this field. For any of them, the same steps are typically followed. For instance, if we wished to classify an image, first we would need to acquire the visual information using a CS sensor. The information with the compressed measurements would be sent to the device that is going to analyze the data. In this device, the image is reconstructed and then the classification is performed. However, knowing that the aforementioned problems are solved by extracting the most important features from the original raw data and that with CS such features are included in the measurements, the question arising is would it be possible to avoid reconstruction and directly conduct classification on the compressed samples? How can we achieve this? A mathematical framework to solve inference problems on compressive measurements is needed. Statistical inference is a mathematical field that provides methods to obtain relevant information about a statistical population with just partial information about that population. Using techniques provided by statistics we could infer information from compressed measurements. In fact, [22] provides mathematical bounds within which four inference problems are solved when working with compressed measurements. These problems are detection, classification, estimation and filtering. Two key points are that measurements are taken randomly, as mentioned before, and that for inference there is no need to know in which basis the signal is sparse or compressible. Once this framework was developed, many approaches for achieving CS-based direct inference used neural networks. Machine learning is a branch of artificial intelligence that involves inference and database processing. Therefore, it seems natural to try to join compressed sensing and neural networks. The idea is to have a sensing device in 4 which the compressive process is performed during the acquisition of the signal, obtaining compressed samples, and then inference is implemented using machine learning. Usually the samples are said to be in a low dimension called compressed domain while the original signal is in a high dimension called data domain. The aim is to perform inference with similar accuracy in both dimensions. Thus, we would be achieving a dimensionality reduction while preserving the most relevant information included in the original data. Devices that directly acquire signals in a compressed form according to the requirements set by CS have already been implemented. A well-known example is the Single Pixel-Camera (SPC) [30]. Current research is focused on applying inference to the measurements taken with this type of devices. The main objective of this thesis was to review state-of-the-art research about inference on compressed measurements taken according to the CS theory and provide its mathematical background. The thesis is organised as follows. Chapter 2 explains CS theory, providing its mathematical framework and describing algorithms developed for reconstruction, which was the original purpose of this theory; in this context, some of the most important applications of CS are also reviewed. In Chapter 3, we introduce statistical inference concepts and explain detection, classification, estimation and filtering with compressed measurements. Inference applications are reviewed in Chapter 4 and we also show how inference can be implemented using Python code. Finally, some concluding remarks are provided in Chapter 5. The complete code developed throughout this thesis is described in the Appendix. Chapter 2 Compressed sensing 2.1 Background Suppose a signal which is intended to be sampled so that the most important information is preserved. Nyquist-Shannon theorem [56] shows how to sample a band-limited signal to be able to reconstruct the original information from the measurements taken. To present the theorem, some definitions are needed. Definition 1 (Fourier transform).Let f∈L1(R)be a continuous time function. Its Fourier transform is defined as ˆ f(q) = ZR f(t)e−2πitqdt (2.1) where q∈R. Definition 2 (Band-limit signal).Let f∈L1(R)be a continuous time function and ˆ fits Fourier transform. It is said that fis band-limited with bandwidth B if ˆ f⊂[−B, B]. The Nyquist-Shannon theorem states that band-limited signals must be sampled at a rate twice its bandwidth. If this condition is satisfied, the signal can be completely reconstructed from the samples. Theorem 1 (Nyquist-Shannon [31]).Let f∈L1(R)be a band-limited continuous time function with bandwidth B. Then it occurs that f(t) = X k∈Z fk 2Bsinc(2πBt −πk) (2.2) 5 6 2.2. Theoretical framework where sinc(t) =    sin(t) tt6= 0 1t= 0 (2.3) To apply this theorem, first the signal needs to be band-limited and second the value of this limit must be known in advance, which may not always be possible. Also, we have to take into account that the frequency along the signal varies. Therefore, in fragments where the frequency is low we could be taking more measurements than truly needed. The Nyquist-Shannon theorem shows how to sample a signal in order to reconstruct it from the measurements taken. However, we want to do better and sample below the Nyquist rate. With this purpose, the theory called Compressed Sensing (CS) has being developed during the last few years. It provides certain hypotheses regarding sparsity of the signal so that all the relevant information is preserved in compressed measurements. Different algorithms have been developed to implement compressed sensing. For mathematical treatment, signals are represented as elements of a Hilbert space H. We are going to take H=RN. Therefore, x∈RNis a signal. To model the extraction of MNmeasurements we use a sensing matrix Φ ∈ MM×N(R) and let y∈RMbe the measurement vector. Finally, the mathematical expression of the problem addressed by CS is to obtain xknowing that y= Φx. 2.2 Theoretical framework In this section, we introduce definitions and mathematical results of CS [23]. Definition 3 (Sparse signal).A vector α∈RNis said to be sparse when the number of non-zero coefficients that represents is small. It is said to be S-sparse if Sis the number of non-zero coefficients: S=|{i∈ {1,2, .., N}:αi6= 0}|. Definition 4 (Set of sparse signals).The set of all S-sparse vectors is defined as ΣS={α∈RN:kαk0:= |supp(α)| ≤ S} where supp(α) = {i∈ {1,2, .., N}:αi6= 0}. There are also signals that, even though their coefficients are mostly non-zero, they decay rapidly when they are sorted from high to low values. This means that the infor- 2.2. Theoretical framework 7 mation is encoded in the coefficients with higher values. Definition 5 (Compressible signal).α∈RNis compressible if the sorted coefficients |α1| ≥ |α2| ≥ ... ≥ |αN|obey |αi| ≤ Ci−q where Cis constant, i∈1,2, ...N and qis the parameter that controls the decay. The signals of interest for the CS theory are either sparse or compressible. Now let us suppose that the signal we are working with is neither of them. In this case, it must be transformed somehow in order to obtain a valid representation. The solution to this problem implies finding a basis of the space in which the signal is sparse or compressible. Definition 6 (Basis).The set Ψ = {ψi}i∈I with I={1,2, ...N}is a basis of RNif ψi are linearly independent ∀i∈ I. Ψ can be considered as a matrix MN×N(R), called a transformation matrix, whose columns are ψi. The representation of the signal x∈RNin a basis {ψi}is done as a linear combination of the columns of Ψ. x= N X i=1 αiψi= Ψα where αi=hx, ψiiand α∈RN. Once a sparse representation of the targeted signal is found, we can extract measurements from it with the sampling matrix Φ ∈ MM×N(R) with MN. The product of both sensing and transformation matrices, Θ = ΦΨ, is usually denoted as the recovery matrix. In order to ensure that we are keeping all the important information and that reconstruction is possible, the recovery matrix must have certain properties. In the first place, we introduce the Restricted Isometry Property (RIP). Definition 7 (Restricted Isometry Property).Let Ψ∈ MN×N(R)be a basis and let Φ∈ MM×N(R)be a sensing matrix with MN. It is said that RIP of order S is satisfied if there exists δS∈(0,1) with (1 −δS)kαk2 2≤ k(ΦΨ)αk2 2≤(1 + δS)kαk2 2(2.4) 8 2.2. Theoretical framework for all S-sparse vector α∈ΣS. If the RIP of order 2Sis satisfied, it follows that for α1, α2∈ΣSwith α16=α2then kα1−α2k≈kΦΨα1−ΦΨα2k2 and therefore, ΦΨ is an approximate isometry for S-sparse vectors, [12]. Moreover, all subsets of 2Scolumns of ΦΨ are nearly orthogonal, and S-sparse signals are not in the null space of the matrix. Note also that ΦΨα16= ΦΨα2if α16=α2. Sensing matrices are usually designed before extracting measurements. During their generation, it must be ensured that they satisfy the properties needed. Definition 8 (Random matrix).Let Abe a matrix. A is said to be a random matrix if its entries are random independent variables identically distributed to a Bernoulli, Gaussian or sub-Gaussian distribution (in the two last cases, with zero mean, µ= 0, and unit variance, σ2= 1). In fact, Bernoulli and Gaussian matrices are also sub-Gaussian matrices. We can consider Aas a random matrix, and Φ = 1 √MA. These matrices are commonly used because, with high probability, they verify the RIP. Moreover, it is fulfilled that E[k1 √MAxk2 2] = kxk2 2for any x∈RNand Ais a sub-Gaussian matrix [31]. The selection of the sensing matrix is important because the value of Mthat can be achieved depends on it. For example, for Gaussian or Bernoulli matrices, we would have M≥CS log(N/S). The proof can be found in [31]. Definition 9 (Coherence).The coherence µof matrices Φand Ψis defined as µ(Φ,Ψ) = √Nmax 1≤i≤M,1≤k≤N|hφi, ψki| (2.5) It measures the maximum correlation between elements of the two different matrices. We have µ(Φ,Ψ) ∈h1,√Ni. The goal in CS is to minimise this correlation. Consequently, we are maximizing incoherence [12]. Finally, we define our problem mathematically. Suppose that x∈RNis the signal of interest, Ψ is the sparsifying basis in which x= Ψαwith α∈RNis a S-sparse vector, Φ is the sensing matrix and y∈RMis the measurement vector with MN. The recovery 2.3. Reconstruction algorithms 9 of αfrom the samples in yconsists in solving y= ΦΨα. This is an underdetermined system so it has infinite solutions. However, by formulating the reconstruction problem as an optimization problem that minimises for the sparsest solution, that is, where αis S-sparse with minimum S, we can achieve a unique solution. Taking into account the sparsity property, the first attempt to write the convex problem would be: min αkαk0s.t. y= ΦΨα(2.6) However, this is an NP problem whose implementation demands an enormous amount of computational load. The proof is provided in [31]. We could have l2-minimization, but it does not return sparse signals. Therefore, l1norm is used: min αkαk1s.t. y= ΦΨα(2.7) Finally, if we consider that measurements can contain error, then the following theorem provides the conditions for which reconstruction is possible: Theorem 2 (Cand`es [12]).Suppose ΦΨ satisfies the RIP of order 2S with δ2S<√2−1. Suppose also that the measurement vector has the form y= ΦΨα+ewith kek2< . Then the solution ˆα= min αkαk1s.t. kΦΨα−yk2≤(2.8) obeys kˆα−αk2≤C0+C1kα−αSk1 √S(2.9) where αSis the vector αwith all but its largest Scoefficients set to zero. C0and C1are constants. If αis S-sparse, then the recovery is exact. 2.3 Reconstruction algorithms According to [51] and [49], six categories of algorithms can be distinguished depending on the approach used for reconstruction. 1. Convex optimization A convex optimization problem is solved through linear programming. In general, this type of algorithms are computationally expensive and the reconstruction time is high. 10 2.3. Reconstruction algorithms An example is the Basis Pursuit (BP) algorithm [15]. The convex problem it solves is ˆα= min αkαk1s.t. y= ΦΨα(2.10) This is functional when the measurement vector has no noise. Otherwise, a suitable algorithm is Basis Pursuit De-Noising (BPDN) [15], which solves the problem defined in Theorem 2: ˆα= min αkαk1s.t. kΦΨα−yk2≤(2.11) 2. Greedy algorithms This category is formed by iterative algorithms that obtains a better approximation of the solution in every iteration by selecting only columns of ΦΨ that are highly correlated with the measurements. Every algorithm has its own stopping condition. The most used ones are Matching Pursuit (MP) [46] and Orthogonal Matching Pursuit (OMP) [48]. However, when the signal is not sparse, the computational cost becomes too high. To solve this, modifications to their structure were proposed, giving rise to other algorithms such as Compressive Sampling Matching Pursuits (CoSaMP) [47]. 3. Iterative thresholding algorithms This class consists of iterative algorithms that use a threshold in every update of the solution. The most popular algorithms are Iterative Hard-Thresholding (IHT) [6] and Iterative Soft-Thresholding (IST) [21]. The iterator used in both cases is αk+1 =Tαk+λ(ΦΨ)T(y−ΦΨαk)(2.12) where λis the step size and T() is the thresholding operator. Given a positive scalar T, the Hard-Thresholding operator is defined as: T(x)i=   xi|xi| ≥ T 0|xi|< T (2.13) Concerning the Soft-Thresholding operator, it is given by: TT(x)i= (|xi|−T)+sign (xi) (2.14) 2.4. Practical Examples 17 from scipy . f f tp ac k import dct , i dc t Xdct = dct (X, norm=’ ortho ’ ) The DCT coefficients y∈RNof a vector x∈RNimplemented by this function are: y0=1 √N N−1 X n=0 xn(2.18) yk=2 √2N N−1 X n=0 xncos (πk(2n+ 1) 2N) for k∈ {1, .., N −1}(2.19) The resulting DCT transform for the sound signal is shown in Fig. 2.5. Figure 2.5: DCT transform of the sound signal. Just as we did for the sparse case, we next set the number of measurements to take (M= 500, resulting in a compression ratio M/N = 0.1), build the sensing matrix, and apply this matrix. The only difference now is that it is applied to the transformed signal: M=500 Phi= np . random . randn (M, N) /np . sqrt (M) print (”Compression ratio {0}”.format (M/N) ) # M/N=0.1 r e s h a p e s i g n a l=np . reshape ( Xdct , ( Xdct . shape [ 0 ] , 1 ) ) y=np . dot ( Phi , r e s h a p e s i g n a l ) Finally, we have to choose a reconstruction algorithm. Let us consider convex minimization. There are various possible approaches. First, we could use the Python’s library called CVXPY, tailored for convex optimization problems. The following code would solve the problem: import cvxpy as cvx 18 2.4. Practical Examples vx = cvx . Variable ( (N, 1 ) ) o b j e c t i v e = cvx . Minimize ( cvx . norm( vx , 1) ) c o n s t r a i n t s = [ Phi@vx == y ] prob = cvx . Problem ( o bj e ct iv e , c o n s t r a i n t s ) r e s u l t = prob . s ol ve () Another command that we can use is Lasso [61] from the Scikit-Learn library. It minimizes min x1 2nky−Φxk2 2+αkxk1(2.20) where αis a constant. from sklearn . line a r model import Lasso l a s s o = Lasso ( alpha =0.01) l a s s o . f i t ( Phi , y ) Figure 2.6 shows the reconstruction of the transformed signal performed with Lasso. Figure 2.6: Lasso recovery of the transformed signal. The last step it to reverse the DCT transform. Xhat = i d ct ( l a s s o . c oe f , norm=’ ortho ’ ) 2.4. Practical Examples 19 Figure 2.7: Reconstructed sound signal The error obtained is ε= 8%. However, the reconstruction shows a tendency towards zero in both extremes that cannot be controlled because there is no option to introduce boundary conditions in the reconstruction. Therefore, we focus on the middle section of the wave, from 0.04 s to 0.08 s. In this section the error is ε= 2%. To appreciate the difference between the original signal and its reconstruction from compressed samples, we can zoom a section and represent it for both cases, as depicted in Fig. 2.8. Figure 2.8: Comparison between an original section and its reconstruction. 2.4.3 Image Reconstruction Images are a collection of pixels. If we have a grayscale image, then each pixel takes a value that represents brightness. This number is stored as an 8-bit integer. With 8 binary digits we can express numbers from 0 to 255. Let 0 be the value for black and 255 for white. The image has the form of a matrix with shape width×height where the elements are the values of the pixels. 20 2.4. Practical Examples Now let us suppose that our image is a color image. It will be usually encoded in RGB representation, where R stands for red, G for green and B for blue. The idea of this format is to divide the image into 3 layers called channels. Each one corresponds to one of the three colors. In each channel every pixel is represented with values from 0 to 255, where 0 is the color of the channel and 255 is white. Therefore, in this case the image is a matrix of size width ×height ×channels. Next, we describe how to reconstruct a color image by means of convex optimization using the code provided in [60]. The underlying algorithm is OWL-QN [3]. It minimizes a scalar function of the form: f(x) = l(x) + ckxk1(2.21) where l:RN→Ris a differentiable convex loss function, ∇l(x) is L−Lipschitz continuous for some L > 0, and C is a constant. The expression becomes f(x) = kΦx−yk2 2(2.22) The following libraries are used: import numpy as np import matplotlib as mpl import matplotlib . pyplot as p lt import scipy . optimize as spopt import scipy . f f tp a ck as s p f f t from skimage import io from pylbfgs import owlqn Note that images are not usually sparse. Therefore, we need to use a transform basis, in this case the DCT transform. We need a two-dimensional transform and, of course, we also need the inverse 2D transform. Python does not provide them, hence the following functions are defined: def dct2 ( x ) : return s p f f t . dct ( s p f f t . dct (x .T, norm=’ ortho ’ , axis =0) .T, norm=’ ortho ’ , axis =0) def idct2 (x ) : return s p f f t . i d ct ( s p f f t . id ct ( x .T, norm=’ ortho ’ , axi s =0) .T, norm=’ ortho ’ , axis =0) 2.4. Practical Examples 21 The code begins defining the sampling rate. This is M/N in our theoretical framework. Then the image is loaded into memory and its shape stored. An auxiliary variable Zcollects the reconstructions done for different compressions. Likewise, an auxiliary function called evaluate, needed by the algorithm, is also defined. The code provided in [60] is presented below, with the notation f(x) = kAx −bk2 2and ∇f(x) = 2AT(Ax −b). def evaluate (x , g , step ) : ”””An in−memory evaluatio n ca l l back . ””” # we want to return two things : # (1) the norm squared of the r e si d ua l s , sum ( (Ax−b) . ˆ 2 ) , and # (2) the gradient 2∗A ’(Ax−b) # expand x columns−first x2 = x . reshape (( nx , ny) ) .T # Ax i s j u s t the i n v e rs e 2D dct o f x2 Ax2 = i dct2 ( x2 ) # stack columns and e x t r a c t samples Ax = Ax2 .T. f l a t [ r i ] . reshape (b . shape ) # c a l c u l a t e the r e s i d u a l Ax−b and i t s 2−norm squared Axb = Ax −b fx = np .sum(np . power (Axb, 2) ) # p r o je c t r e s i d u a l v ecto r ( k x 1) onto blank image ( ny x nx ) Axb2 = np . z eros ( x2 . shape ) Axb2 .T. f l a t [ r i ] = Axb # f i l l columns−first # A ’(Ax−b ) i s j u s t the 2D dct o f Axb2 AtAxb2 = 2 ∗dct2 (Axb2) AtAxb = AtAxb2 .T. reshape ( x . shape ) # stack columns # copy over the gradient vector np . copyto (g , AtAxb) return fx # f r a c t i o n s of the s cale d image to randomly sample at s a mp l e s i z e s = ( 0 . 1 , 0. 0 1) # read o r i g i n a l image Xorig = i o . imread ( ” l eon .PNG” ) ny , nx , nchan = Xorig . shape 22 2.4. Practical Examples # fo r each sample s i z e Z = [ np . zeros ( Xorig . shape , dtype=’ uint8 ’ )for sin s a mp l e s ize s ] masks = [ np . z e r os ( Xorig . shape , dtype=’ uint8 ’ )for sin sam p le si z es ] for i , s in enumerate( s a mpl e s ize s ) : # create random sampling index vector k = round( nx ∗ny ∗s ) r i = np . random . choice (nx ∗ny , k , r epl a c e=False ) # random sample of indices # f o r each c o l o r channel for jin range ( nchan ) : # extract channel X = Xorig [ : , : , j ] . squeeze ( ) # take random samples of image , s t o r e them in a vector b b = X.T. f l a t [ r i ] . astype ( float) # perform the L1 minimization in memory Xat2 = owlqn ( nx∗ny , evaluate , None , 5) # transform the output back i nto the s p a t i a l domain Xat = Xat2 . reshape (nx , ny) .T # stack columns Xa = idct2 (Xat) Z [ i ] [ : , : , j ] = Xa. astype ( ’ uint8 ’ ) The results obtained for this code are: Figure 2.9: Image recovery. The error for a 10% compression rate is ε= 3% and for a compression rate of 1% we have ε= 3.4%. 2.5. Applications 23 Another way of evaluating the quality of the reconstruction is with the Signal to Noise Ratio (SNR). It compares in relative terms how the reconstructed image departs from the original one [35]. It is usually expressed in decibels. Definition 10 (Signal to Noise Ratio).Let Pibe the value of the i-th pixel in the original image and let Qibe the value of the i-th pixel of the reconstructed image. SNR can be defined as follows: SNR = 20 log10 q1 NPN i=1 P2 i √MSE (2.23) where MSE = 1 NPi(Pi−Qi)2is the Mean Square Error and q1 NPN i=1 P2 iis the Root Mean Square of the original image. For M/N = 0.1 we have SNR= 1.3 dB and for M/N = 0.01 the result is SNR = 0.4 dB. This makes sense because the higher the value of SNR the better the reconstruction achieved. 2.5 Applications There is a variety of application fields of compressed sensing. In [51] and [49], the most important applications are reviewed. We next briefly summarised some of them. 1. Compressive imaging Compressed sensing allows saving memory when images are stored because only a reduced set of measurements are needed for reconstruction. Therefore, new technologies are being developed to directly obtain compressive visual samples. An example of these devices is the Single Pixel-Camera (SPC) [30]. The idea is two perform inner products between an N-pixel sampled version of the scene and random vectors formed by elements with values in {1,0}or in {1,−1}.Minner products hx, φiifor i∈ {1,2..., M}have to be computed in order to obtain the M measurements we need for CS. The vector φirepresents a column of the sensing matrix. 24 2.5. Applications The operation of this camera is based on a Digital Micromirror Device (DMD), which consists on an array of N mirrors that can rotate into two positions that corresponds to be switched on or off. Light reflects in the image and reaches these micromirrors, which deviate part of the beam onto a single photon detector. This is how an inner product is done, with mirrors acting as the elements of φi.To perform a random measurement as proposed by CS, the orientations of the mirrors are set randomly. Finally, the output of the detector, where the product is integrated, is a voltage that is finally digitised by an A/D converter. With each micromirror we can represent a value of 1 or 0. If we want φito take values in {1,−1}, we can express our φias the subtraction of two vectors formed of ones and zeros. Therefore, the inner product < x, φi>is the subtraction of two inner products. 2. Biomedical applications CS has also been applied in biomedical imaging. It has been shown that CS reduces the scanning time, especially in Magnetic Resonance Imaging (MRI) [44], which is a diagnostic tool. In MRI, a constant magnetic field is applied to the patient. It interacts with hydrogen atoms in water molecules of the body polarising their spin into parallel or anti-parallel positions with respect to the field applied. These nuclei also rotate around the axis of the field with an angular frequency called precessional frequency. With an additional radio frequency pulse the nuclei are excited, causing some of them to absorb the energy of the pulse and move to a higher energy state, i.e., they move from parallel to anti-parallel. In this stage, the nuclei are said to be at resonance. When the pulse is turned off, nuclei go back to their low energy state, releasing energy which is detected by a sensor. As the rate of the energy release depends on the tissue’s chemical properties, an image of the body can be obtained. Data acquisition is done in the Fourier-transform domain called K-space, i.e., in the frequency domain. However, the time needed to produce an image of certain quality is large, which limits medical applications of MRI. For this reason, the use of CS during the acquisition process has been explored. The fewer the samples needed, 2.5. Applications 25 the less the time required. Algorithms applying CS have been developed specifically for this field. In [25], a review of convex-optimization-based algorithms for MRI is provided. 3. Compressive radar A radar consists of an antenna that emits an electromagnetic wave. This wave is reflected in surrounding objects and then reaches a receiver. Using the time delay between the emission and the reception of the signal, the position of the object can be estimated. Speeds can also be measured with a radar. At the receiver, there are two possible approaches: i) a pulse compression through a matched filter that consists in correlating the received signal with a template, followed by an A/D converter; and ii) an A/D converter followed by a pulse compression. These procedures require expensive equipment. Using CS in radar systems results in a simplification of the hardware design. According to [5], the matched filter to compress the pulse can be eliminated, thereby removing the requirement of high-rate A/D conversion at the receiver, which relies on the Nyquist rate. 4. Communication systems CS can be found in different areas of this application field. For example, it has been proposed for wireless sensor networks (WSN) [43]. Suppose N sensors densely deployed in a prescribed area of interest; djdenotes the reading of the j-th sensor. The usual transmission procedure consists of a chain of transmission in which a sensor sjsends the readings of the first j sensors to sj+1. This procedure continues until the last sensor sends all the readings to the sink. The disadvantage of this system is that the last sensors consume more energy. In the proposed compressed data gathering approach, Mlinear combinations of the readings are sent to the sink. In the i-th sum, each sensor multiplies its reading by a weight φi,j and adds it to the sum of the weighted reading of the previous 26 2.5. Applications sensors. Afterwards, this calculation is passed to the next sensor, i.e., the j-th sensor sends Pj l=1 φi,ldl. At the end of the process, the sink receives PN l=1 φi,ldlfor all i∈ {1,2, ..., M}. 3.2. Detection 33    exp (x−1 2)< η for H0 exp (x−1 2)> η for H1 (3.16) For simplification, we can apply a monotonic function to both sides of the inequalities. We use logarithm, and taking η∗= ln η+ 1/2 we obtain the following decision rule: 1    x<η∗for H0 x>η∗for H1 (3.17) To calculate η∗we impose PF=γ. The Gaussian distribution function is φ(x) and we define Q(x) = 1 −φ(x): PF=Zx>η∗ f0(x)dx =Z∞ η∗ 1 σ√2πexp −x2 2σ2dx = 1 −φ(η∗) = Q(η∗) = γ(3.18) We conclude that η∗=Q−1(γ). Also, PDcan be calculated as PD=Z∞ η∗ f1(x)dx =Q(η∗−1) (3.19) Finally, for our decision rule, the detection rate is PD=Q(Q−1(PF)−1) (3.20) Our aim in this section is to apply this same procedure to the hypothesis testing in Eq. (3.5), as reported in [22]. The principal difference between this case and the example is that now we have more than one dimension. In particular, yis M−dimensional. Assuming ΦΦTis invertible, the probability density functions are: f0(y) = exp (−1 2yT(σ2ΦΦT)−1y) |σ2ΦΦT|1/2(2π)M/2(3.21) f1(y) = exp (−1 2(y−Φs)T(σ2ΦΦT)−1(y−Φs)) |σ2ΦΦT|1/2(2π)M/2(3.22) Now the Neyman-Pearson test is set. We take logarithm and obtain a simplified decision rule. The compressive detector is defined as t:= yT(ΦΦT)−1Φs(3.23) 1In inference, the usual notation for η∗is γand the constrain of the false alarm rate is PF=α. However, in this thesis αis reserved to denote sparse signals. Therefore, the notation has been changed. 34 3.2. Detection and taking η∗=σ2ln η+ 1/2sTΦT(ΦΦT)−1Φs(3.24) the resulting test can be expressed as:    t < η∗for H0 t > η∗for H1 (3.25) Now, we have to calculate η∗. To simplify the notation, we write PΦT= ΦT(ΦΦT)−1Φ. This new operator verifies PΦT=PT ΦTand PΦT=P2 ΦT. These are the properties of an orthogonal projection operator. In fact, we have that PΦTprojects into the row space of Φ. Furthermore, we have sTΦT(ΦΦT)−1Φs=kPΦTsk2 2. With this new notation, we have that the distribution of tin both hypothesis is:    t∼ N(0, σ2kPΦTsk2 2) for H0 t∼ N(kPΦTsk2 2, σ2kPΦTsk2 2) for H1 (3.26) The probabilities PFand PDare calculated as in the example, i.e., PF=Q(η∗ σkPΦTsk2) and PD=Q(η∗−kPΦTsk2 2 σkPΦTsk2). By doing PF=γ, the threshold value is η∗=σkPΦTsk2Q−1(γ), and we obtain PD(γ) = Q(Q−1(γ)−kPΦTsk2/σ) (3.27) Given that Q is a monotonic decreasing function, the smaller the argument it takes, the larger the value it provides. Therefore, the larger the value of kPΦTsk2/σ, the greater the detection rate. From now on, we aim to bound the value of PDto characterize the performance of the detection. Let us first introduce a new property. Definition 18 (δ−stable embedding).Let A, B ⊂RNbe given and δ∈(0,1). It is said that Φis a δ−stable embedding of (A, B)if ∀a∈Aand ∀b∈Bit is satisfied that (1 −δ)ka−bk2 2≤ kΦa−Φbk2 2≤(1 + δ)ka−bk2 2(3.28) Theorem 4. Suppose pN/MPΦTis a δ−stable embedding of (S,{0})for S ⊂ RN. Then PDis bounded for every s∈ S. PD(γ)≤Q(Q−1(γ)−√1 + δpM/N√SNR) (3.29) 3.2. Detection 35 PD(γ)≥Q(Q−1(γ)−√1−δpM/N√SNR) (3.30) where the signal to noise ratio is defined as SNR =ksk2 2/σ2. The proof is provided in [22]. However, it just needs to consider the definition of δ−stable embedding. The article states also that for typical values of δ, PD(γ)≈QhQ−1(γ)−pM/N√SNRi.(3.31) With the following corollary, [22] establishes a lower bound for the detection rate of s: Corollary 1. Suppose pN/MPΦTis a δ−stable embedding of (S,{0})for S ⊂ RN. Then for s∈ S the next bound is satisfied. PD(γ)≥1−C2exp (−C1M/N) (3.32) where C1and C2are constants depending on γ,δand SNR. If all the parameters are fixed except M, we have that, for growing values of M, the exponential function decreases and PDis lower bounded by a value near 1. This implies that the probability of detecting sis high. To finish this section, we reproduce graphics presented in [22]. We represent the approximation of PDin Eq. (3.31) by varying parameters to see the response of the detection probability. For this purpose, we have to implement the function Q(x) that appears in Eq. (3.31). Using the properties of the Gaussian distribution we have that Q(x) = 1 −P[N(0,1) ≤x] = 1 −φ(x) = φ(−x) (3.33) To define Q−1(x) we have to consider the percentile of −x. In Python, these functions can be constructed as: from sc ipy . s t a t s import norm Q(x )= norm . cdf(−x) Qinv ( x) = −norm . ppf (x) In Fig. 3.1, PDis represented against γ, which is the value of the false alarm rate, for different values of r=M/N with a fixed value for SNR of 20 dB. However, the value of SNR introduced in the equation is not in dB. In this case, it would be SNR = 100. This type of curve is called Receiver Operating Characteristic (ROC). It is used to study the 36 3.3. Classification Figure 3.1: Detection rate vs. False alarm rate. performance of a decision rule. According to Fig. 3.1, for large values of the false alarm rate, the performance of the detector is identical for all curves. However, if the focus is on small values of PF, we can see that for M/N = 0.4 or M/N = 0.2 the detection rate is almost 1, whereas for smaller sets of measurements the difference in performance with these last values is small. Therefore, we conclude that with Mmeasurements, detection could be achieved successfully. However, the difference between curves with high and low values of Mcould imply that very low values of Mare still not appropriate for detection. In Fig. 3.2, PDis represented as a function of M/N for different values of SNR with γ= 0.1. Note how the SNR value affects PD. For higher SNR the performance improves. Note also that as Mincreases, the detection rate approaches higher values exponentially. 3.3 Classification Let S={si} ⊂ RNwith i∈ {1,2.., R}be a collection of known signals and n∼ N(0, σ2) a noisy signal. The goal is to determine which siis present in the noise when the information available is a measurement vector with Mrandom samples of the received signal that are taken before knowing s1, ..sR. For the classification problem, we can set a hypothesis testing of R hypothesis: Hi:y= Φ(si+n) for i∈ {1,2, .., R}(3.34) Suppose R= 2. This case is called binary classification and it is equivalent to the 3.3. Classification 37 Figure 3.2: Detection rate vs. M/N. detection problem set in the previous section. The hypothesis would be    H0:y= Φ(s1+n) H1:y= Φ(s2+n) (3.35) However, if s=s2−s1, this formulation is equivalent to    H0:y= Φ(s1+n)−Φs1= Φn H1:y= Φ(s2+n)−Φs1= Φ(s+n) (3.36) Returning to Eq. (3.34), if each hypothesis is equally likely, according to [22] the classifier with minimum probability error chooses Hithat minimizes ti:= (y−Φsi)T(ΦΦT)−1(y−Φsi) (3.37) This is due to the fact that, for classification, the hypothesis selected is the one that best suits the data. Therefore, Hi∗is chosen if the probability of yfor Hi∗is larger than for any other hypothesis. Supposing that there exists x∈RNsuch that y= Φx, we can write ti= (y−Φsi)T(ΦΦT)−1(y−Φsi) (3.38) = (Φx−Φsi)T(ΦΦT)−1(Φx−Φsi) (3.39) = (x−si)TΦT(ΦΦT)−1Φ(x−si) (3.40) =kPΦTx−PΦTsik2 2(3.41) 38 3.3. Classification Therefore, the goal is to minimize the distance between xand sionce they have been projected by PΦT. With this formulation of tiwe conclude that the compressive classifier selects the nearest sito xin the row space of Φ. Theorem 5. Suppose that p(M/N)PΦTis a δ−stable embedding of (S,S). Let dbe the minimum distance between si,d=minksi−sjk2. Let y= Φ(si∗+n)for i∗∈ {1,2, ..., R}. Then, the probability of correctly classifying the signal is lower bounded. PClassification ≥1−R−1 2exp (−d2(1 −δ)M/8σ2N) (3.42) When the classification is correct, i∗= arg min ti. The proof is provided in [22]. From this result, we obtain that the error probability decreases exponentially with M, just as in the detection problem. To illustrate the performance of the compressive classifier, we represent the error probability for different cases and analyse how it changes with M. We first set N= 1000 and R= 3. The signals s1,s2and s3that match each hypothesis are generated according to a Gaussian distribution and are fixed. Then dis calculated, and for a certain value of SNR = 10 log10(d2/σ2), we can know the value of σ2. For every value of M, a Φ matrix is created. Then a loop is set with 300 iterations. In each one, the noise vector nis generated, and x=s1+nis established, which means that the correct hypothesis is H1. All tiare calculated and the minimum of the three values is obtained. If the minimum was achieved in t1, then H1is chosen and the classification was properly conducted. The error probability is given by the number of times the hypothesis taken was not H1divided by 300, which is the number of times that classification was made. We can see in Fig. 3.3 that the lower the SNR the higher the error probability. Also, the error decreases for large values of M, as in detection. We also have that, for large values of M, the computational cost increases due to the size of Φ and the operations required to calculate tifor i∈ {1,2,3}. In this section we have supposed that the probability of every hypothesis is the same, as in [22]. However, we could generalize this fact and assume that a priori probabilities of each hypothesis are known. This is, f(H1), ..., f(HR) are known and the joint probability density function for every i∈ {1,2, ..., R}is f(y, Hi) = fi(y)f(Hi) (3.43) 3.4. Estimation 39 Figure 3.3: Error probability for classification vs. M/N. where fi(y) = f(y|Hi). In this case we are in the Bayesian Classification framework [57] and the hypothesis selected is the one with the largest a posteriori probability. This value is defined as f(Hi|y) = fi(y)f(Hi) f(y)=fi(y)f(Hi) PR j=1 f(y, Hj)(3.44) 3.4 Estimation In this section, the objective is to estimate hl, xiwith l∈RNand y= Φx. In [22], two estimators are presented. The first one, i.e., the orthogonalized estimator, is inspired in the compressive detector described in Section 3.2 and is given by N/MxTΦT(ΦΦT)−1Φl. The second estimator, i.e., the direct estimator, is computed by calculating the inner product of yand Φl, and is given by hy, Φli. For both estimators we have a bound for the error. However, in [22] it is only stated and demonstrated for the direct estimator case. We next prove the result for the orthogonalized estimator. Theorem 6. Suppose that l∈L⊂RN,x∈ X ⊂ RNand Φis a δ−stable embedding of (L,X ∪−X), then |hΦl, Φxi−hl, xi| ≤ δklk2kxk2(3.45) 40 3.4. Estimation With the error bound for the direct estimator, we can estimate the angle between two vectors. The proof is provided in [22]. Corollary 2. Suppose that l∈ L and x∈ X, and Φis a δ−stable embedding of (L ∪ {0},X ∪−X ∪{0}). Then cos ( \ Φl, Φx)−cos ( c l, x)≤2δ(3.46) where cos ( c a, b)represents the cosine of the angle between vectors aand b. Now, we continue with the same result as for the estimation error but particularised to the case of the orthogonalised estimator. For the proof of the theorem, we follow the proof presented in [22] for the direct estimator. However, in this case, for the final reasoning, we have applied that PΦTis an orthogonal projector. Theorem 7. Suppose that l∈L⊂RN,x∈ X ⊂ RNand pN/MPΦTis a δ−stable embedding of (L,X ∪−X), then  N MxTPΦTl−hl, xi≤δklk2kxk2(3.47) Proof. We work under the assumption klk2=kxk2= 1 and later generalize for vectors of arbitrary norm. First, we have that pN/MPΦTis a δ−stable embedding of (L,X) and of (L,−X). Therefore, (1 −δ)kl±xk2 2≤N/MkPΦTl−PΦTxk2 2≤(1 + δ)kl±xk2 2(3.48) We can expand kl±xk2 2as: kl±xk2 2=klk2 2+kxk2 2±2hl, xi= 2 ±2hl, xi(3.49) Thus, (1 −δ)(2 ±2hl, xi)≤N/MkPΦTl−PΦTxk2 2≤(1 + δ)(2 ±2hl, xi) (3.50) The parallelogram identity implies hx, yi=kx+yk2 2−kx−yk2 2 4(3.51) Applying this equation we obtain 3.4. Estimation 41 hPΦTl, PΦTxi=kPΦTl+PΦTxk2 2−kPΦTl−PΦTxk2 2 4(3.52) ≤M 2N((1 + δ)(1 + hl, xi)−(1 −δ)(1 −hl, xi)) (3.53) =M N(hl, xi+δ) (3.54) Analogously, a lower bound can be obtained: −δ≤N MhPΦTl, PΦTxi−hl, xi ≤ δ(3.55) To conclude the result for klk2=kxk2= 1 we have to take into account the properties of PΦTas an orthogonal projector. First, we use that it is a self-adjoint operator, PΦT= PT ΦT, and then, given that it is a projector, P2 ΦT=PΦT. Thus, hPΦTl, PΦTxi=hP2 ΦTl, xi=hPΦTl, xi=xTΦT(ΦΦT)−1Φl(3.56) With this we obtain the result when klk2=kxk2= 1. To extended to vectors with arbitrary norm we just have to consider the theorem for ˆ l=l klk2and ˆx=x kxk2. We next estimate the mean value of a vector x. Fig. 3.4 depicts the estimation error vs. M/N. The first step is to set N= 1000. Then, the vector xis generated with a Gaussian distribution of mean and variance 1 and we take l= 1/N[1, .., 1]. Therefore, hl, xi=PN i=1 xi/N = ¯x. For different values of Mwe generate a random matrix Φ 300 times and compute N/MxTΦT(ΦΦT)−1Φl−hl, xi/(klk2kxk2) (3.57) The point represented in Fig. 3.4 for a certain value of M is the mean estimation error over the 300 iterations. Note that for large values of Mthe estimation error decreases rapidly. However, in this range, the size of Φ is high. This increases the computational cost, especially in the case of the orthogonalized estimator. On the other hand, the direct estimator presents a higher estimation error. When choosing an estimator for a specific application, one would have to decide between reducing computational costs or the estimation error. 42 3.5. Filtering Figure 3.4: Estimation error vs. M/N. A generalization of this theory to estimate vectors can be done easily. We just need to consider a matrix L∈ MZ×N(R) and estimate Lx ∈RZcomponent by component. Therefore, Zestimations are made. 3.5 Filtering Suppose we have transmitted a signal and it has suffered interference along the way. The signal xthat reaches the receiver is the signal of interest xs∈ Ssplus the interference xI∈ SI. Before processing the signal xwe have to identify the part of interest. This is, the goal is to filter the interference. However, in this thesis, we assume that the information available at the receiver is a measurement vector y= Φ(xs+sI). Therefore, we filter compressed measurements. Theorem 8. Let SIbe a KI−dimensional subspace of RNand assume that an orthonormal basis is placed in the columns of ΨI, which is a N×KImatrix. Let Ω = ΦΨIand its pseudoinverse Ω†= (ΩTΩ)−1ΩT. Let PΩ= ΩΩ†be a projector onto the column space of Ω. Then PΩ⊥=I−ΩΩ†filters xIin the sense that PΩ⊥ΦxI= 0 ∀xI∈ SI(3.58) Proof. Let Col(Ω) and R(Ω) be the column and row spaces of Ω respectively. We have that PΩis an orthogonal projector that projects onto Col(Ω). This is equivalent to say that it projects onto the row space of ΩT. 4.1. Inference and Machine Learning 49 labeled with their corresponding class are provided for training. Then, a database with non-labeled images is supplied to test the accuracy of the algorithm proposed. In 2012, the so-called AlexNet DNN achieved an error reduction of 10% with respect to the previous year. The results throughout the years are presented in Fig. 4.2. Specifically, the top-5 classification error of the best entries of the contest are shown. This top-5 error is based on whether the correct class of the test image is among the five classes that the algorithm chooses as the most probable for the processed image. The use of DNNs involved a significant step forward in classification accuracy. AlexNet was just the beginning of the Deep-Learning era. In the following years, researchers developed deeper and more accurate networks. In 2015, a DNN called ResNet outperformed human ability for classification in the contest. Figure 4.2: Classification errors of the best entries in ILSVRC throughout the years [63]. The conceptual mixture of CS and machine learning leads to a new framework often called Compressed Learning (CL). The original signals are said to be in the data domain. We can then perform a dimensionality reduction by sampling according to the framework of CS to enter the measurement domain. The objective of CL is to perform pattern recognition in the measurement domain. An example of classification applying CL theory is [10], which employed soft-margin Supported Vector Machines (SVMs) (see Section 4.4.2 for further details on SVMs). In general terms, an SVM [7, 18] is a machine-learning algorithm that can be used for 50 4.2. Classification and recognition classification. It constructs a hyperplane as a boundary between the classes we want to distinguish. In [10], it was theoretically and experimentally demonstrated that a SVM classifier trained using compressed data performs almost as well as the best SVM classifier on the original data. Different approaches have been proposed over the years to implement this idea of performing inference directly on sampled data. However, with the DNN revolution, an increasing number of researchers have explored DNNs for CL. 4.2 Classification and recognition Image classification and activity recognition are challenges that do not necessarily need a full-image reconstruction. Therefore, there has been an attempt to adapt conventional methods to this new scenario of inference on compressed measurements. In [41], the authors proposed to address face recognition in the near-infrared spectrum using compressed measurements of the faces. Given that infrared cameras are expensive, alternative solutions must be found. In this study, an SPC (see application 1 in Section 2.5) was used to extract compressed images. Thus, they created their own database made up of compressed face images in the near-infrared. Feature correlation usually refers to the dependence on different attributes of the analysed data. In [41], the proposal was based on keeping correlation using filters applied to the compressed data. They called them smashed filters. Once the feature extraction is done, a SVM performs a one-vs-all classification to identify faces. Therefore, the multiclass classification problem splits into a series of binary classifications, one per face, that are solved. To improve the accuracy obtained using filters, a DNN designed to classify on compressed measurements was presented in 2015 [40]. The proposed scheme is the following: 1. Compressed measurements of a scene are obtained using an SPC. A measurement vector is obtained that can be mathematically expressed as y= Φx, where xrepresents the scene and Φ is the sensing matrix that corresponds to the pattern formed by the micromirrors of the camera. 2. A linear projection of the measurement vector is computed using ΦT, thereby obtaining a pseudoimage: ˆx= ΦTΦx. 3. The pseudoimage is the input of a special type of network called Convolutional Neural Network (CNN) whose particular structure depends on the type of task addressed. 4.2. Classification and recognition 51 4. A last layer, called Softmax, is placed to output the probabilities of the original image belonging to each class. CNNs are networks with layers that perform convolution. Every weighted sum is calculated using the same set of weights. Suppose that the input of the system is an image. In a convolutional layer, the set of weights are placed in a 2D array called filter or kernel whose dimension is smaller than the input, which is also a 2D array. This filter is applied to a section of the input with the same size as the filter. The result is called an output activation. The filter moves across the input producing more outputs, and the collection of all of them is called feature map (fmap). In [59], this process is illustrated as shown in Fig. 4.3. Figure 4.3: Scheme of a 2D convolution provided in [59]. If the input image has colour, then it will have different channels and the input size would be H×W×C, where Hstands for height, Wfor width, and Cfor channels. In this case, we would use a stack of C2D filters. Usually, this is called a 3D filter. The experiments presented by [40] do not use the SPC physically but instead they simulate its mechanism, i.e., the implementation of y= Φx, on software. The results are based on two experiments that use the scheme described above. In the first experiment, the objective was classification. The database used is MNIST, which is a collection of 28 ×28 images in grayscale containing hand-written digits from 0 to 9. Therefore, it has 10 different classes. MNIST comprises a total of 70000 images, among which 60000 are used for training and the rest for testing. The network developed to classify these images is based on LeNet-5 and the sensing matrix chosen is a Gaussian matrix. The network is trained and tested for different compression ratios M/N with N= 28 ×28 = 784. Finally, the results are compared to the ones achieved with the smashed filters proposed in [41]. 52 4.2. Classification and recognition According to the experimental data reported in [40], Table 4.1 compares the results of [40] and [41]. Clearly, the DNN approach achieves better performance. Compression ratio (M/N) Test error Test error Smashed Filters CNN approach 1 13,86% 0,89% 0,25 27,42% 1,63% 0,10 43,55% 2,99% 0,05 53,21% 5,18% 0,01 63,03% 41,06% Table 4.1: Comparison of test error for MNIST classification with different approaches [40]. In the second experiment, a complex database was chosen to test the proposed framework. The authors worked with the ILSVRC 2012 dataset. The same aforementioned scheme was followed. However, in this case, the sensing matrix is a Hadamard matrix and the CNN is a modified version of AlexNet. Based on this publication, other researchers contributed to the improvement of classification using compressed measurements. For example, [1] and [66] tested new networks capable of learning the sensing matrix before performing inference. They added a first layer, whose parameters are learned, to act as the sensing matrix Φ. A second layer learns a new set of weights and projects the input measurements as ΦTin [40]. However, this second matrix ˆ Ψ is a different matrix. Following these advances, [24] incorporated the learned-sensing-matrix approach and also extracted both features with a DNN and hand-crafted features using DCT coefficients. Classification was conducted on the fused features and MNIST was used to test the proposed network. The results were compared to the ones obtained using [41], [40], and [1]. A significant improvement in accuracy was achieved with respect to the smashed filter proposal and similar test errors to DNNs in [40] and [1] were obtained. In [4], image classification based on learning the sensing matrix was also proposed. This sensing matrix is to be employed as the matrix for an SPC. There are many other proposals for image classification using DNNs. For example, [42] develops a system inspired in the functioning of the human retina to sense the image in an efficient way and classify with good results. Also, some researches have put together classification and an interactive interface. In [58], a DNN was developed that classifies compressed measurements and can be tested through an interactive interface where one can write a digit, 4.3. Detection and estimation 53 which is compressed and classified. Words can also be written and the letters recognized are sent to a spelling corrector. Finally, human-action recognition is addressed in [45]. A human action such as walking or running can be registered through the pertinent sensor. The aim is to distinguish between different activities. A sensing-matrix design is proposed in [45] to apply CS measurement acquisition and subsequent classification. To test their proposal, the authors used the so-called CMU Mocap database, which contains images of skeletons in motion. They selected 6 classes to classify: walk, run, walk with arms out, walk swinging, walk with wild legs, and walk on toe. 4.3 Detection and estimation Detection is an inference problem required in a variety of applications. For example, to ensure security in roads or shopping centers, we may need to be able to detect and track people. Detection can be also useful for certain medical applications to improve the diagnostics tools available. In [38], the authors propose to perform human tracking on compressed measurements using DNNs. Instead of taking linear measurements, they choose a special case of compressed samples. They use subsampling, which implies retaining the value of random pixels and discarding the rest. The database used to test their proposal is SENSIAC. It contains videos of people walking in a background at different distances. In particular, human tracking was tested at 500 m, 1000 m, and 1500 m. The idea is to perform tracking by detection. This is, the person is detected in the video at different times and therefore, a trajectory is formed. Leaving aside computer-vision applications, there are other fields that can benefit from performing inference with compressed measurements. One of these areas is health care, [16, 20]. There is an increased usage of wireless body sensors to keep control of various pathologies. By detecting a change in physiological signals or factors indicating a disease, early intervention can be done. If the detection was achieved on compressed measurements, less energy would be required by the wearable device. Moreover, if we used the traditional CS paradigm, after sampling, we would have to transmit the measurements and reconstruct the signals at the receiver point. This could mean losing too much time during the recovery and consequently missing, for instance, a disease indicator that appears during a brief period of time. This is the case of atrial 54 4.3. Detection and estimation fibrillation. Detection of atrial fibrillation, which is a type of arrhythmia that can indicate thrombosis or strokes, was investigated in [16]. This fibrillation appears in electrocardiograms (ECG). With Fig. 4.4, the authors showed the difference between a normal ECG signal and one with atrial fibrillation. Figure 4.4: ECG without and with atrial fibrillation extracted from [16]. Their aim was to detect atrial fibrillation in compressed measurements of an electrocardiogram (ECG) using a DNN developed ad-hoc for this purpose. Similar to the implementations for classification, the first layer of the network projects the compressed measurements. However, instead of using ΦT, they used the pseudo-inverse of the sensing matrix to initialise the weights of this layer, i.e., Φ†. With training, these weights, along with the ones of the rest of the network, are optimized to maximize the detection accuracy. Up to now, we have focused on applications using machine learning. However, it is possible to implement inference using the classical techniques seen in Chapter 3. Following with health care applications, not only detection is needed. Estimation can also be useful. In [20], the heart rate is estimated in the compressed domain using the estimators developed in Chapter 3. With an ECG, heart beats can be measured over a period of time and the heart rate is determined by certain peaks called R-peaks, as shown on the right plot in Fig. 4.4. The idea is to perform matched filtering in the compressed data and apply a threshold to localize these peaks. The ECG signal x(t) is a continuous signal in time and ψ(t) is a template of an R- peak. Matched filtering consists in convolving the ECG signal, x(t), with a time-reverse function of ψ(t): R(t) = Z∞ −∞ x(τ)ψ(τ−t)dτ (4.2) With the resulting R, we will be able to detect the R-peaks that are placed where maxima appear in the output. If we consider xas a discrete signal of length N, then matched filtering consists in 4.4. Implementation 55 calculating a vector Rwhose components are Rn=hx, ψniwith n∈ {1, ..., N};ψnis appropriately defined and contains the template used. Now suppose that measurements are taken and we have y= Φx∈RM. With the estimators analysed in Chapter 3, we can estimate the value of those inner products. For example, in the case of the direct estimator, we would have ˆ Rn=hy, Φψni. 4.4 Implementation In this section, we describe how we tested some implementations of inference problems using compressed measurements. We focus on detection and classification as they are the tasks typically addressed by the research community. 4.4.1 MNIST database As mentioned above, the MNIST database consists on 70000 28 ×28 grayscale images of hand-written digits from 0 to 9; 60000 of these images are reserved for training and the remaining 10000 are for testing the targeted machine-learning algorithm. It is a simple and widely used database that is accessible through Tensorflow.keras. import tensorflow as tf ( X train , y t r a i n ) , ( X test , y t e s t ) = t f . k eras . d at as et s . mnist . lo ad da ta ( ) Figure 4.5: Examples of MNIST images with their labels. Fig. 4.5 shows the first 10 images of the training section of the database. As we can see from the code above, each image comes with a label that indicates the class it belongs to. This is important for the training process, because the algorithm needs to know the 56 4.4. Implementation class of every image to learn. Given that each image is 28 ×28, when they are transformed into a vector, we will have a vector of length N= 28 ·28 = 784. In the following subsections, we describe how to detect and classify on MNIST. 4.4.2 Detection with SVM As previously explained in this chapter, SVMs are algorithms used for classification that rely on the construction of an hyperplane to separate classes [9]. This means that we can use SVMs to perform detection by dividing the data into classes. For binary classification, one of the classes represents the target category. Suppose a dataset for training, {xi, yi}l i=1, where xi∈RNencodes the data and yi represents the corresponding label indicating the class of xi. We consider two possibilities for the labels, namely yi∈ {1,−1}. Suppose that the points {xi}l i=1 are linearly separable, i.e., there exists at least one hyperplane that leaves one class of the points on a side and the other class on the other. In particular, let us suppose the hyperplane w·x+b= 0 (4.3) where w∈RNis normal to the hyperplane and b∈R. If this hyperplane separates both classes of data completely, we would have the followings inequalities: w·xi+b≥1 for yi= 1 (4.4) w·xi+b≤ −1 for yi=−1 (4.5) The margins of the hyperplane, d+and d−, are defined as the minimum distance between the proper hyperplane and the nearest data points on each side, called supported vectors. These are the closest points with y= 1 on one side of the hyperplane and the closest points with y=−1 on the other side. The end of these margins are given by taking equalities in Eqs. (4.4) and (4.5); the distance in between is 2/kwk2. Therefore, we can maximize the margins by minimizing kwk2 2subject to Eqs. (4.4) and (4.5). The SVM tries to find the hyperplane with maximum margins. Fig. 4.6 represents this hyperplane construction together with the supported vectors in a 2D space. Now, let us assume that not all the points can be separated as indicated above. In this case, we could relax the model and even let the SVM misclassify some samples of the data. Thus, some points could fall into the margin regions or on the wrong side of 4.4. Implementation 57 Figure 4.6: Example of linear separation of 2D data extracted from [18]. Supported vectors are marked with grey squares. the hyperplane. To make sure the situation is controlled and the error committed is not critical, a new parameter, usually called C, is introduced to penalize points improperly placed. This algorithm is called soft-margin SVM. Finally, if the data considered are not linearly separable, then every xiis mapped to a higher dimension where it is separable through an application called kernel. In this case, the algorithm is called non-linear classifier. The code provided in [34] implements an SVM that detects the digit 3 in images extracted from MNIST. First, ns images are selected from the database for training, half of them are digit 3 whereas the rest are other digits. In the same way, nt images are selected for testing, again half of them are digit 3. Once this is done, a linear supported vector classifier is fed with the training set without compressing the images. The results for detection in the data domain present an accuracy of 88%. The next step is to obtain the accuracy in the measurement domain. We set different values of measurements M. For each of them, we set a loop of 20 iterations to calculate the mean accuracy obtained over them. In each iteration, Gaussian and Bernoulli matrices of size M×Nwere generated, where N= 784 (see Section 4.4.1). The definition of these matrices is provided in Definition 8. Detection is performed with each of the matrices to compare their results. Fig. 4.7 shows that in general the accuracy obtained is similar to the one in the data domain. However, for small values of Mthere is an abrupt descent, which may imply that those compression rates are not suitable for this implementation of detection in the measurement domain. Note also that the performance of the Gaussian and the Bernoulli matrices are very similar, although for small values of Mthere seems to occur a small drop in accuracy for the Gaussian case with respect to the Bernoulli matrix. 58 4.4. Implementation Figure 4.7: Detection accuracy vs. M/N for Gaussian and Bernoulli matrices. 4.4.3 Classification with DNN In this subsection, we show how to construct a network to classify on MNIST using the approach reported in [40]. In this approach, as previously explained in this chapter, every image of the database is compressed with the sensing matrix Φ to simulate the measurements that an SPC would return, and then they are projected with ΦT. Therefore, our first step is to create a function to pre-process the complete dataset that returns pseudoimages to be used as inputs of the DNN. The DNN implemented has been created according to the one proposed in [40], which is based on the LeNet model. The scheme of the network is the following: 1. Convolutional layer: 20 output feature maps, kernels of size 5 ×5, and Rectified Non-linear Unit (ReLU) as the nonlinear function. ReLU is defined as f(x) = max(0, x). 2. Max pooling layer: size 2 ×2 and stride =2. Input windows of the size indicated are reduced or pooled by substituting it by the maximum of the values in the window. The stride indicates the number of movements in the horizontal or vertical direction to perform another pooling. 3. Convolutional layer: 50 output feature maps, kernels of size 5 ×5 and ReLU. 4. Max pooling layer: size 2 ×2 and stride = 2. 5. Fully connected layer: output feature vector of length 50. Bibliography [1] Adler, A., Elad, M., and Zibulevsky, M. Compressed Learning: A Deep Neural Network Approach. arXiv:1610.09615 [cs] (Oct. 2016). [2] Ahmed, N., Natarajan, T., and Rao, K. Discrete Cosine Transform. IEEE Transactions on Computers C-23, 1 (Jan. 1974), 90–93. [3] Andrew, G., and Gao, J. Scalable training of L1-regularized log-linear models. In Proceedings of the 24th international conference on Machine learning - ICML ’07 (Corvalis, Oregon, 2007), ACM Press, pp. 33–40. [4] Bacca, J., Correa, C. V., Vargas, E., Castillo, S., and Arguello, H. Compressive Classification from Single Pixel Measurements Via Deep Learning. In 2019 IEEE 29th International Workshop on Machine Learning for Signal Processing (MLSP) (Pittsburgh, PA, USA, Oct. 2019), IEEE, pp. 1–6. [5] Baraniuk, R., and Steeghs, P. Compressive Radar Imaging. In 2007 IEEE Radar Conference (Apr. 2007), pp. 128–133. ISSN: 2375-5318. [6] Blumensath, T., and Davies, M. E. Iterative Hard Thresholding for Compressed Sensing. arXiv:0805.0510 [cs, math] (May 2008). [7] Boser, B. E., Guyon, I. M., and Vapnik, V. N. A training algorithm for optimal margin classifiers. In Proceedings of the fifth annual workshop on Computational learning theory (Pittsburgh, Pennsylvania, USA, July 1992), COLT ’92, Association for Computing Machinery, pp. 144–152. [8] Boutell, T. PNG (Portable Network Graphics) Specification Version 1.0. Tech. Rep. RFC 2083, RFC Editor, Mar. 1997. [9] Burges, C. J. A Tutorial on Support Vector Machines for Pattern Recognition. Data Mining and Knowledge Discovery 2, 2 (June 1998), 121–167. [10] Calderbank, R., and Jafarpour, S. Finding needles in compressed haystacks. In Compressed Sensing: Theory and Applications, G. Kutyniok and Y. C. Eldar, Eds. Cambridge University Press, Cambridge, 2012, pp. 439–484. 65 66 Bibliography [11] Candes, E., Romberg, J., and Tao, T. Robust uncertainty principles: exact signal reconstruction from highly incomplete frequency information. IEEE Transactions on Information Theory 52, 2 (Feb. 2006), 489–509. [12] Candes, E., and Wakin, M. An Introduction To Compressive Sampling. IEEE Signal Processing Magazine 25, 2 (Mar. 2008), 21–30. [13] Chartrand, R. Exact Reconstruction of Sparse Signals via Nonconvex Minimization. IEEE Signal Processing Letters 14, 10 (Oct. 2007), 707–710. [14] Chartrand, R., and Staneva, V. Restricted isometry properties and nonconvex compressive sensing. Inverse Problems 24, 3 (June 2008), 035020. [15] Chen, S. S., Donoho, D. L., and Saunders, M. A. Atomic Decomposition by Basis Pursuit. SIAM Journal on Scientific Computing 20, 1 (Jan. 1998), 33–61. [16] Cheng, Y., Hu, Y., Hou, M., Pan, T., He, W., and Ye, Y. Atrial Fibrillation Detection Directly from Compressed ECG with the Prior of Measurement Matrix. Information 11, 9 (Sept. 2020), 436. [17] Cormode, G., and Muthukrishnan, S. Combinatorial Algorithms for Compressed Sensing. In 2006 40th Annual Conference on Information Sciences and Systems (Princeton, NJ, Mar. 2006), IEEE, pp. 198–201. [18] Cortes, C., and Vapnik, V. Support-vector networks. Machine Learning 20, 3 (Sept. 1995), 273–297. [19] Cox, W. A Brief Introduction to Compressed Sensing with Scikit-Learn. http://www.gallamine.com/2014/02/a-brief-introduction-to-compressed.html, Feb. 2014. [20] Da Poian, G., Rozell, C. J., Bernardini, R., Rinaldo, R., and Clifford, G. D. Matched Filtering for Heart Rate Estimation on Compressive Sensing ECG Measurements. IEEE Transactions on Biomedical Engineering 65, 6 (June 2018), 1349–1358. [21] Daubechies, I., Defrise, M., and De Mol, C. An iterative thresholding algorithm for linear inverse problems with a sparsity constraint. arXiv:math/0307152 (Nov. 2003). [22] Davenport, M., Boufounos, P., Wakin, M., and Baraniuk, R. Signal Processing With Compressive Measurements. IEEE Journal of Selected Topics in Signal Processing 4, 2 (Apr. 2010), 445–460. Bibliography 67 [23] Davenport, M. A., Duarte, M. F., Eldar, Y. C., and Kutyniok, G. Introduction to compressed sensing. In Compressed Sensing: Theory and Applications, Y. C. Eldar and G. Kutyniok, Eds. Cambridge University Press, Cambridge, 2012, pp. 1–64. [24] Degerli, A., Aslan, S., Yamac, M., Sankur, B., and Gabbouj, M. Compressively Sensed Image Recognition. In 2018 7th European Workshop on Visual Information Processing (EUVIP) (Tampere, Nov. 2018), IEEE, pp. 1–6. [25] Deka, B., and Datta, S. Compressed sensing magnetic resonance image reconstruction algorithms. Springer Berlin Heidelberg, New York, NY, 2019. [26] Deng, L., Li, J., Huang, J.-T., Yao, K., Yu, D., Seide, F., Seltzer, M., Zweig, G., He, X., Williams, J., Gong, Y., and Acero, A. Recent advances in deep learning for speech research at Microsoft. In 2013 IEEE International Conference on Acoustics, Speech and Signal Processing (May 2013), pp. 8604–8608. ISSN: 2379-190X. [27] Dong, B., Mao, Y., Osher, S., and Yin, W. Fast linearized Bregman iteration for compressive sensing and sparse denoising. Communications in Mathematical Sciences 8, 1 (2010), 93–111. [28] Donoho, D. Compressed sensing. IEEE Transactions on Information Theory 52, 4 (Apr. 2006), 1289–1306. [29] Duarte, M., Davenport, M., Wakin, M., and Baraniuk, R. Sparse Signal Detection from Incoherent Projections. In 2006 IEEE International Conference on Acoustics Speed and Signal Processing Proceedings (Toulouse, France, 2006), vol. 3, IEEE, pp. III–305–III–308. [30] Duarte, M. F., Davenport, M. A., Takhar, D., Laska, J. N., Sun, T., Kelly, K. F., and Baraniuk, R. G. Single-pixel imaging via compressive sampling. IEEE Signal Processing Magazine 25, 2 (Mar. 2008), 83–91. [31] Foucart, S., and Rauhut, H. A Mathematical Introduction to Compressive Sensing. Applied and Numerical Harmonic Analysis. Springer New York, New York, NY, 2013. [32] Gilbert, A. C., Strauss, M. J., Tropp, J. A., and Vershynin, R. Sublinear approximation of signals. R. A. Athale and J. C. Zolper, Eds., p. 623206. [33] Gilbert, A. C., Strauss, M. J., Tropp, J. A., and Vershynin, R. One sketch for all: fast algorithms for compressed sensing. In Proceedings of the thirty- 68 Bibliography ninth annual ACM symposium on Theory of computing - STOC ’07 (San Diego, California, USA, 2007), ACM Press, p. 237. [34] Gupta, Y., and Agarwal, P. Compressed learning using svms. https://github. com/pratyush1019/Compressed-Learning, 2020. [35] Janse van Rensburg, C. Big data : a compressed sensing approach. Dissertation, University of Pretoria, 2017. [36] Kaur, R., and Choudhary, P. A Review of Image Compression Techniques. International Journal of Computer Applications 142, 1 (May 2016), 8–11. [37] Kingma, D. P., and Ba, J. Adam: A Method for Stochastic Optimization. arXiv:1412.6980 [cs] (Jan. 2017). [38] Kwan, C., Gribben, D., and Tran, T. Multiple Human Objects Tracking and Classification Directly in Compressive Measurement Domain for Long Range Infrared Videos. In 2019 IEEE 10th Annual Ubiquitous Computing, Electronics & Mobile Communication Conference (UEMCON) (New York City, NY, USA, Oct. 2019), IEEE, pp. 0469–0475. [39] Le Cun, Y., Jackel, L., Boser, B., Denker, J., Graf, H., Guyon, I., Henderson, D., Howard, R., and Hubbard, W. Handwritten digit recognition: applications of neural network chips and automatic learning. IEEE Communications Magazine 27, 11 (Nov. 1989), 41–46. [40] Lohit, S., Kulkarni, K., and Turaga, P. Direct inference on compressive measurements using convolutional neural networks. In 2016 IEEE International Conference on Image Processing (ICIP) (Phoenix, AZ, USA, Sept. 2016), IEEE, pp. 1913–1917. [41] Lohit, S., Kulkarni, K., Turaga, P., Wang, J., and Sankaranarayanan, A. C. Reconstruction-free inference on compressive measurements. In 2015 IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) (Boston, MA, USA, June 2015), IEEE, pp. 16–24. [42] Lubana, E. S., Aggarwal, V., and Dick, R. P. Machine Foveation: An Application-Aware Compressive Sensing Framework. In 2019 Data Compression Conference (DCC) (Snowbird, UT, USA, Mar. 2019), IEEE, pp. 478–487. [43] Luo, C., Wu, F., Sun, J., and Chen, C. W. Compressive data gathering for large-scale wireless sensor networks. In Proceedings of the 15th annual international conference on Mobile computing and networking - MobiCom ’09 (Beijing, China, 2009), ACM Press, p. 145. Bibliography 69 [44] Lustig, M., Donoho, D., Santos, J., and Pauly, J. Compressed Sensing MRI. IEEE Signal Processing Magazine 25, 2 (Mar. 2008), 72–82. [45] Ma, R., Liu, G., Hao, Q., and Wang, C. Design of compressive imaging masks for human activity perception based on binary convolutional neural network. In 2017 IEEE International Conference on Multisensor Fusion and Integration for Intelligent Systems (MFI) (Daegu, Nov. 2017), IEEE, pp. 260–265. [46] Mallat, S., and Zhifeng Zhang. Matching pursuits with time-frequency dictionaries. IEEE Transactions on Signal Processing 41, 12 (Dec. 1993), 3397–3415. [47] Needell, D., and Tropp, J. A. CoSaMP: Iterative signal recovery from incomplete and inaccurate samples. arXiv:0803.2392 [cs, math] (Apr. 2008). [48] Pati, Y., Rezaiifar, R., and Krishnaprasad, P. Orthogonal matching pursuit: recursive function approximation with applications to wavelet decomposition. In Proceedings of 27th Asilomar Conference on Signals, Systems and Computers (Pacific Grove, CA, USA, 1993), IEEE Comput. Soc. Press, pp. 40–44. [49] Qaisar, S., Bilal, R. M., Iqbal, W., Naureen, M., and Lee, S. Compressive sensing: From theory to applications, a survey. Journal of Communications and Networks 15, 5 (Oct. 2013), 443–456. [50] Raid, A. M., Khedr, W. M., El-dosuky, M. A., and Ahmed, W. Jpeg Image Compression Using Discrete Cosine Transform - A Survey. arXiv:1405.6147 [cs] (May 2014). [51] Rani, M., Dhok, S. B., and Deshmukh, R. B. A Systematic Review of Compressive Sensing: Concepts, Implementations and Applications. IEEE Access 6 (2018), 4875–4894. Conference Name: IEEE Access. [52] Ray, S. A Quick Review of Machine Learning Algorithms. In 2019 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COMIT- Con) (Faridabad, India, Feb. 2019), IEEE, pp. 35–39. [53] Russakovsky, O., Deng, J., Su, H., Krause, J., Satheesh, S., Ma, S., Huang, Z., Karpathy, A., Khosla, A., Bernstein, M., Berg, A. C., and Fei-Fei, L. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision 115, 3 (Dec. 2015), 211–252. [54] Schnoor, E. GitHub - ekki25/SparseRecovery: Implementation of different compressive sensing sparse recovery algorithms. https://github.com/ekki25/ SparseRecovery, 2019. 70 Bibliography [55] Scott, C. Statistical Signal Processing. https://cnx.org/contents/68ebe763-38ea- 436e-9fbd-c8ab[email protected], Dec. 2013. [56] Shannon, C. Communication in the Presence of Noise. Proceedings of the IRE 37, 1 (Jan. 1949), 10–21. [57] Spagnolini, U. Statistical signal processing in engineering. John Wiley & Sons, Hoboken, NJ, 2017. [58] Stubbs, J. J., Pattichis, M. S., and Birch, G. C. Interactive image and video classification using compressively sensed images. In 2017 51st Asilomar Conference on Signals, Systems, and Computers (Pacific Grove, CA, Oct. 2017), IEEE, pp. 2038– 2041. [59] Sze, V., Chen, Y.-H., Yang, T.-J., and Emer, J. S. Efficient Processing of Deep Neural Networks: A Tutorial and Survey. Proceedings of the IEEE 105, 12 (Dec. 2017), 2295–2329. [60] Taylor, R. Compressed Sensing in Python. http://www.pyrunner.com/weblog/ B/, 2016. [61] Tibshirani, R. Regression Shrinkage and Selection Via the Lasso. Journal of the Royal Statistical Society: Series B (Methodological) 58, 1 (1996), 267–288. [62] V´ elez Ibarrola, R., and Garc´ ıa P´ erez, A. Principios de inferencia estad´ıstica. Universidad Nacional de Educaci´on a Distancia, Madrid, 2012. OCLC: 828357736. [63] Verhelst, M., and Moons, B. Embedded Deep Neural Network Processing: Algorithmic and Processor Techniques Bring Deep Learning to IoT and Edge Devices. IEEE Solid-State Circuits Magazine 9, 4 (2017), 55–65. [64] Walden, R. Analog-to-digital converter survey and analysis. IEEE Journal on Selected Areas in Communications 17, 4 (Apr. 1999), 539–550. [65] Xie, K., He, Z., and Cichocki, A. Convergence Analysis of the FOCUSS Algorithm. IEEE Transactions on Neural Networks and Learning Systems 26, 3 (Mar. 2015), 601–613. [66] Zisselman, E., Adler, A., and Elad, M. Compressed Learning for Image Classification: A Deep Neural Network Approach. In Handbook of Numerical Analysis, vol. 19. Elsevier, 2018, pp. 3–17. [67] Zuev, K. Statistical Inference. arXiv:1603.04929 [math, stat] (Mar. 2016).