Download as pdf or txt
Download as pdf or txt
You are on page 1of 41

CS-541

Wireless Sensor Networks


Lecture 3: Signal Sampling for WSN

Spring Semester 2017-2018

Prof Panagiotis Tsakalides, Dr Athanasia Panousopoulou, Dr Gregory Tsagkatakis

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 1
University of Crete, Computer Science Department
Today’s objectives

Signal Sampling

Compressed Sensing

Applications in WSN

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 2
University of Crete, Computer Science Department
Sensing in WSNs

Sensing Quantization Storage/Processing Communications


Sensor type A/D Size Route selection
Operations Bus Speed Reliability/Connectivity
Calibration Complexity Robustness
Power consumption

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 3
University of Crete, Computer Science Department
Objectives

 Efficient data acquisition and gathering


• Increase life-time of network
• Reduce communication requirements
• Handle transmission errors
• Reduce calibration operations
• Facilitate data classification
 Prior Knowledge
• Training data
• Spatio-temporal correlations

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 4
University of Crete, Computer Science Department
Signal Sensing

Nyquist–Shannon
• limited signal support
• Signal bandwidth B
Sampling rate Fs=2B
(Nyquist rate)
𝑦 Φ=I 𝑥
Limitations
• Requirements
• Power/battery
• Storage/Bandwidth =
• Calibration

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 5
University of Crete, Computer Science Department
Random Projections
Johnson-Lindenstrauss (JL) lemma
Sensing matrix What’s wrong with PCA
• Computational complexity
• Universality
• Adaptability
• Robustness

Given 0 < ε < 1, a set Q of m points in RN, and a number


n > 8 ln(m) / ε 2, there is a linear map ƒ : RN → Rn such that

for all x, y ∈ Q.
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 6
University of Crete, Computer Science Department
Simplified Random Projection (SRP)

• f: Random matrix is usually gaussian distributed


• mean: 0; standart deviation: 1
• f: sparse RP distribution

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 7
University of Crete, Computer Science Department
What about recovery?

Can we recovery the original signal from its RP?


YES…. for sparse signal

Biological Environmental Astronomical

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 8
University of Crete, Computer Science Department
x (+1)

x (-1)

Q: which sensor is different (using as few observations as possible) ?


A: Project the data onto random vectors (second column)
• Initially: n/2 hypothesis sensors are consistent with each random projection observation
• Exponential decrease of consistence observations
Observations
• Random projections -> binary bisections of the hypothesis space
• Only log n observations are needed to determine which sensor reads the nonzero value.
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 9
University of Crete, Computer Science Department
Compressed Sensing
(or compressive sensing, compressed sampling…)

• Goal: Recover signal


from measurements
• Problem: Random
projection not full rank
(ill-posed inverse problem)
• Solution: Exploit the sparse/compressible
geometry of acquired signal
• Recovery via (convex) sparsity penalty or greedy algorithms

𝑥 = arg min 𝑥 0 subject to Φ𝑥 = 𝑦


𝑥
[Donoho; Candes, Romberg, Tao, 2004]
NP-hard!
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 10
University of Crete, Computer Science Department
Restricted Isometry Property (RIP)

• Preserve the structure of sparse/compressible signals


• RIP of order 2K implies: for all K-sparse x1 and x2

K-planes

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 11
University of Crete, Computer Science Department
How many measurements?

Φ satisfies Restricted Isometry Property (RIP)


For all x that are K sparse

When Φ MxN satisfies RIP of order 2K with δ<√(2)-1,

• Random (sub-) Gaussian (iid Gaussian, Bernoulli) satisfy RIP

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 12
University of Crete, Computer Science Department
CS Recovery Algorithm
• Iterative Thresholding

update signal estimate


prune signal estimate
(best K-term approx)
update residual

Adapted from “Model-based Compressive Sensing”, by Volkan Cevher


CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 13
University of Crete, Computer Science Department
Matching Pursuit Algorithms
• Use greedy algorithm to iteratively recover sparse signal
• Procedure:
1. Initialize
2. Find the column that is most correlated
3. Set Union (add one col. every iter.)
4. Solve the least squares
5. Update data and residual
6. Back to step 2 or output

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 14
University of Crete, Computer Science Department
A linear programming approach

Replace greedy with convex optimization problem

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 15
University of Crete, Computer Science Department
Compressed Sensing via

• 0-norm is nonconvex  difficult to solve


• 1-norm is convex  Basis Pursuit (Lasso)

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 16
University of Crete, Computer Science Department
Performance of Recovery

• Using methods
• Sparse signals
• noise-free : exact recovery
• noisy : stable recovery
• Compressible signals
• recovery as good as
K-sparse approximation

CS recovery signal K-term noise


error approx error
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 17
University of Crete, Computer Science Department
Sparse event detection

• N sources, K events, K<<N, M sensors

• Event vector

• Channel response

• Received signal

• Formulation

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 18
University of Crete, Computer Science Department
Sparse location estimation

• The location of mobile device is sparse in space.

Sparse vector: b
0 0 0 0 0
0
1 0 0 0 0 Space
Vectorization 1 User’s
0 0 0 0 0 .
. Location
.
0 0 0 0 0 0
0 0 0 0 0
Dx1
D cells

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 19
University of Crete, Computer Science Department
Sparse location estimation
MD Training RSS measurements are collected
for each position.
Signature map
TAP1,Cell1 TAP1,Cell2 … TAP1,CellD
TAP2,Cell1 TAP2,Cell2 … TAP2,CellD

TAP3,Cell1 TAP3,Cell2 … TAP3,CellD

Runtime
Runtime measurements

RAP1 RAP2 RAP3


Localization
Server (LS)
?
Compare
Location
TAP1,Cell1 TAP1,Cell2 … TAP1,CellD
Estimation
TAP2,Cell1 TAP2,Cell2 … TAP2,CellD
TAP3,Cell1 TAP3,Cell2 … TAP3,CellD
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 20
University of Crete, Computer Science Department
Sparse location estimation
Active laboratory area of 8.5 by 14 meters
5 APs, 135 training cells, cell size: 0.55 x 0.55 m
Online observations: 30 distinct cells, Performance metric: Location Error (m)

Empirical CDF as a function of CS measurements


CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 21
University of Crete, Computer Science Department
Key Insights from the Compressive Sensing

1. Sparse or compressible
 not sufficient alone

2. Projection
 information preserving
(restricted isometry property - RIP)

3. Decoding algorithms
 tractable

Slide by Volkan Cevher

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 22
University of Crete, Computer Science Department
Sparsity in a basis: Dictionaries

Sound WSN

Images

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 23
University of Crete, Computer Science Department
Sparsity on dictionaries

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 24
University of Crete, Computer Science Department
Sparse Modeling: Approach 1

• Step 1: Choose a signal model with structure


• e.g. bandlimited, smooth with r vanishing moments, etc.
• Step 2: Analytically design a sparsifying basis/frame
that exploits this structure
• e.g. DCT, wavelets, Gabor, etc.
DCT Wavelets Gabor

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 25
University of Crete, Computer Science Department
WSN data on dictionaries

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 26
University of Crete, Computer Science Department
Sparse Modeling: Approach 2

• Learn the sparsifying basis/frame from training data


• Problem formulation: given a large number of training signals,
design a dictionary D that simultaneously sparsifies the training
data

• Called sparse coding / dictionary learning

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 27
University of Crete, Computer Science Department
Dictionary Learning

• Requirement: Incoherence: correlation between  and D

 (, d )  N  max | i , d j
1i , j  N

• Typical formulation: Given training data

• Efficient algorithms, MOD, K-SVD

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 28
University of Crete, Computer Science Department
K–SVD – An Overview

Initialize D
D
Sparse Coding
Use MP or BP
T
X
Dictionary
Update
Column-by-Column by SVD
computation

Aharon, Elad & Bruckstein (‘04)


CS-541 Wireless Sensor
Networks University of
Spring Semester 2017-2018 29
Crete, Computer Science
Department
Complex Signal Reconstruction

Possible if signal is sparse in dictionary


where

Reconstruction based on L1 minimization

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 30
University of Crete, Computer Science Department
Compressive Data Gathering in WSN

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 31
University of Crete, Computer Science Department
Compressive Data Gathering in WSN

y4m  y3m   4 x4m


y3m  y2m   3 x3m
y2m  y1m   2 x2m

Routing path y1m  1 x1m


1 {1,1}
random

x1
…… ……………………
x2
…… …………………… x3
…… …………………… .
ylmm 1  2  3 .... l ,....m
xn

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 32
University of Crete, Computer Science Department
Compressive Data Gathering

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 33
University of Crete, Computer Science Department
CS in Wireless Video Sensor Networks

image
reconstruction
scene
or
single photon processing
detector

DMD
D
random
pattern on
DMD array


CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 34
University of Crete, Computer Science Department
Extending CS

Joint sparsity
• share sparse components
• different coefficients

Mixed -norm solutions

Greedy solutions: simultaneous orthogonal matching pursuit

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 35
University of Crete, Computer Science Department
Universal Distributed Sensing via Random Projections
M. F. Duarte, M. B. Wakin, D. Baron, and R. G. Baraniuk
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 36
University of Crete, Computer Science Department
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 37
University of Crete, Computer Science Department
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 38
University of Crete, Computer Science Department
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 39
University of Crete, Computer Science Department
CS-541 Wireless Sensor Networks
Spring Semester 2017-2018 40
University of Crete, Computer Science Department
Reading material

Haupt, J., Bajwa, W. U., Rabbat, M., & Nowak, R. “Compressed


sensing for networked data.” IEEE Signal Processing Magazine, vol.
25(2), 92-101, 2008.
Qaisar, Saad, Rana Muhammad Bilal, Wafa Iqbal, Muqaddas Naureen,
and Sungyoung Lee. "Compressive sensing: From theory to
applications, a survey." Journal of Communications and networks 15,
no. 5 (2013): 443-456.

Useful links
http://dsp.rice.edu/cs
http://nuit-blanche.blogspot.gr/

CS-541 Wireless Sensor Networks


Spring Semester 2017-2018 41
University of Crete, Computer Science Department

You might also like