33
DISTRIBUTED & ADAPTIVE DATA COMPRESSION IN WIRELESS SENSOR NETWORKS Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology, Roorkee 5 th July,2007 Expand Your Engineering Skills (EYES), Summer Internship Program, 2007

Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Embed Size (px)

Citation preview

Page 1: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

DISTRIBUTED & ADAPTIVE DATA

COMPRESSION IN WIRELESS SENSOR

NETWORKS

Dr. Sudharman K. Jayaweera and Amila Kariyapperuma

ECE Department

University of New Mexico

Ankur SharmaDepartment of ECE

Indian Institute of Technology, Roorkee

5th July,2007

Expand Your Engineering Skills (EYES), Summer Internship Program, 2007

Page 2: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Introduction

Wireless Sensor Networks (WSN) consist of nodes for sensingTemperaturePressureLightMagnetometerInfraredAudio/Video etc

Ad hoc WSN may require inter-sensor communication.

Page 3: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Problem Nodes are

of small physical dimensionsBattery operated

Major concern is energy consumption Failure of nodes due to energy depletion can

lead to Partition of sensor networkLoss of critical information

Requirement of application/system is that every node should know the data of each other node.

Page 4: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Related Work

Energy aware routing & efficient information processing. [Shah and Rabaey, 2002]

Local compression & probabilistic estimation schemes. [ Luo,2005]

Distributed compression & adaptive signal processing in sensor networks with a fusion center. [ Chou, 2003]

Page 5: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Our Approach

i bit

i biti bit

2

34

1i bit

i bit i bit

Page 6: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Proposed Algorithm Sensor j predicts its own reading, depending upon its

past readings and readings from other sensors.

Depending upon error between predicted value and actual value i.e.

sensor j calculates the compressed bits i using Chebyshev’s inequality method Exact error method

Page 7: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Code Construction

A codebook to encode data X to i bits.

One underlying codebook that is NOT changed among the sensors.

Supports multiple compression rates.

Page 8: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

A Tree-based Codebook

0

0 01 1

1

Page 9: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Chebyshev’s Inequality Method To prevent decoding errors with i bits

Chebyshev bound for probability of decoding error

Required value of Value of i :

Page 10: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Exact Error Method To prevent decoding errors using i bits

As we know exact error in the prediction of sensor data X, number of bits are

Send extra bits also, specifying the number of bits in the message.

Page 11: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Encoder Sensors

X is stored as the closest representation from 2n values in the root codebook

(A/D converter).

Mapping from X to the bits that specify the subcode-book at level i is done using

Page 12: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Decoder Sensors Decoders receive i-bit value & code sequence

f(x). Traverse the tree starting from LSB of code

sequence to find appropriate subcode book, S. Calculates the side information Y as

Decodes the side information Y, to the closest value in S as

Page 13: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Correlation Tracking

Linear prediction methodAnalytically tractableOptimal when readings can be modeled as

i.i.d. Gaussian random variables. First sensor always sends its data

compressed w.r.t. its own past data. Prediction of X is

where

Page 14: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Least-Squares Parameter Estimation Prediction error is

Choose filter coefficients in order to minimize weighted least squares error.

Least squares filter coefficient vector at time k is given by

where

Page 15: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Recursive Least-Squares (RLS) Algorithm Filter coefficient computation is performed

adaptively using RLS

where

and For initialization, each sensor sends uncoded data

samples. In our approach reference sensor updates the

corresponding coefficients and sends them to all other sensors.

Page 16: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Decoding Errors

No decoding errors in exact error method.

In Chebyshev’s method, no of encoding bits are specified within a given probability of error and after every 100 samples.

Leads to few decoding errors, but results in higher compression.

Page 17: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Implementation & Performance

Simulations were performed for measurements on humidity data.

We assumed a 12 bit A/D converter with a dynamic range of [-128,128].

Simulated results for about 18,000 samples for each sensor (total of 90,000)

Sensor orderings are randomized every 500 samples.

For RLS training, first 25 samples of each sensor are transmitted without any compression.

Coefficients are updated and shared after every 500 samples.

Page 18: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Exact Error implementation With each code sequence, extra 4 bits to

specify the number of bits are also sent.

Decoding Error = 0 Average Energy Saving %= 43.34%

Sensor # Energy Saving% Decoding Error%

1 45.90 0

2 49.85 0

3 38.52 0

4 40.75 0

5 41.67 0

Page 19: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Tolerable Noise vs. Prediction Noise

Page 20: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,
Page 21: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,
Page 22: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Chebyshev’s Inequality method

Encoding bits are specified every 100 samples Case I: Probability of Error ( Pe )= 0.5%

Average Decoding Error % = 0.07% Average Energy Saving % = 45.74%

Sensor # Energy Saving% Decoding Error%

1 47.74 0.32

2 53.15 0.00

3 41.08 0.02

4 43.03 0.01

5 43.74 0.00

Page 23: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Tolerable Noise vs. Prediction Noise

Page 24: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,
Page 25: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,
Page 26: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Chebyshev’s Inequality method

Case II: Probability of Error ( Pe )= 1.0%

Average Decoding Error % = 0.13% Average Energy Saving % = 49.74%

Sensor # Energy Saving% Decoding Error%

1 51.91 0.32

2 57.63 0.27

3 44.92 0.02

4 46.40 0.03

5 47.84 0.00

Page 27: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Chebyshev’s Inequality method

Case II: Probability of Error ( Pe )= 1.5%

Average Decoding Error % = 2.29% Average Energy Saving % = 52.27%

Sensor # Energy Saving% Decoding Error%

1 54.30% 0.66%

2 59.74% 7.98%

3 47.52% 2.17%

4 49.61% 0.61%

5 50.18% 0.05%

Page 28: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

ComparisonExact Error Method Chebyshev’s Method

ZERO probability of decoding error

Compression is low (due to extra bit information)

Strict bound

‘Instantaneous approach’

Probability of decoding error within a required bound.

Higher Compression can be achieved by varying required probability of error.

Loose bound

‘Average approach’.

Page 29: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Probability of Error vs. Energy Savings

Page 30: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

For Temperature Data

Exact error methodAverage energy savings % = 56.66%Average decoding error % = 0

Chebyshev’s method ( Pe = 0.01)Average energy savings % = 66.98%Average decoding error % = 0.61%

Page 31: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

For Light Data

Exact error methodAverage energy savings % = 33.52%Average decoding error % = 0

Chebyshev’s method ( Pe = 0.01)Average energy savings % = 19.29%Average decoding error % = 1.13%

Page 32: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Conclusions Energy savings achieved through our

simulations are conservative estimates of what can be achieved in practice.

Further work can be done on Better predictive models.Better probability of error bound.

Can be integrated with an energy saving-routing algorithm to increase the energy savings.

Page 33: Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,

Thank You!!!!

Queries Please…..