Bouabdellah KECHAR [email protected] Oran University

32
Using Polynomial Approximation as Compression and Aggregation Technique in Wireless Sensor Networks Bouabdellah KECHAR [email protected] Oran University Faculty of science – Department of Computer Science Algeria June 4, 2007 Workshop on Wireless Sensor Networks Marrakech - Morocco

description

Bouabdellah KECHAR [email protected] Oran University Faculty of science – Department of Computer Science Algeria. Using Polynomial Approximation as Compression and Aggregation Technique in Wireless Sensor Networks. June 4, 2007 Workshop on Wireless Sensor Networks Marrakech - Morocco. - PowerPoint PPT Presentation

Transcript of Bouabdellah KECHAR [email protected] Oran University

Page 1: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

Using Polynomial Approximation as Compression and Aggregation Technique

in Wireless Sensor Networks

Bouabdellah KECHAR

[email protected]

Oran University

Faculty of science – Department of Computer Science

Algeria

June 4, 2007Workshop on Wireless Sensor Networks

Marrakech - Morocco

Page 2: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

22/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Outlines

Introduction

Objective

Related works

Requirements and constraints

Algorithms of compression

Fixed window based

Variable window based

Local aggregation

Experiments and simulation

Conclusion and future works

Page 3: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

33/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Introduction (1)

Characteristics of WSN

Important density

Limited processing speed

Limited storage capabilities

Limited power supply (energy)

And limited bandwidth

Need design and development of new protocols and algorithms at each level of WSN-layers stack (independently or using Cross layer approach) in order to minimize the dissipated power and consequently extend network lifetime

Values referenced here are resources available in MICA2mote

Page 4: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

44/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Introduction (2)

The reduction of the volume of data to be transmitted in WSN constitutes the most convenient method to reduce energy consumption in a WSN.

This is motivated usually by the fact that processing data consumes much less power than transmitting data.

One way to achieve this goal is :

Data Compression and Aggregation

Page 5: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

55/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Contents

Introduction

Objective

Related works

Requirements and constraints

Algorithms of compression

Fixed window based

Variable window based

Local aggregation

Experiments and simulation

Conclusion and future works

Page 6: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

66/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Objective (1)

Sensor stack

Sensor Layer

Physical Layer

Sensor Channel

Network stack

Compression & aggregation

Transport Layer

Multihop Routing Protocol

WSN-MAC Layer

Transceiver Unit

Wireless Channel

Temperature, relative humidity, wind speed, … (Environmental readings)

Collected data

Polynomial approximation algorithms and

Local aggregation

Polynomial packet

(fixed or variable window)

IN OUT

Page 7: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

77/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Objective (2)

Applications concerned ?Environmental monitoring

Temporal constraint is not required

Nature of analysis is qualitative

Resolution method ?Approach based on the theorem of Stone-Weierstrass(theory of approximation of functions) Compression

Protocol based on calculation of correlation coefficients between polynomials Local aggregation

Validation method ?Simulation using Matlab tool

Page 8: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

88/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Contents

Introduction

Objective

Related works

Requirements and constraints

Algorithms of compression

Fixed window based

Variable window based

Local aggregation

Experiments and simulation

Conclusion and future works

Page 9: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

99/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Related works

LTC (Lightweight Temporal Compression) [Schoellhammer & al 2004]

PREMON (PREdiction-based MONitoring) [Goel & al 2001]

TiNA (Temporal in-Network Aggregation) [Sharaf & al 2003]

CAG (Clustered AGgregation) [SunHee & al 2005]

TREG (TREe based data aGgregation) [Torsha & al 2005]

Page 10: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1010/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Contents

Introduction

Objective

Related works

Requirements and constraints

Algorithms of compression

Fixed window based

Variable window based

Local aggregation

Experiments and simulation

Conclusion and future works

Page 11: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1111/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Requirements and Constraints

Temporal coherency in physical phenomenon Environmental data as temperature, humidity and others, have a common property : continuous variation in time for relatively small temporal windows. The evolution of these properties is roughly linear

this characteristic of natural phenomena allows designers of applications to adapt the model of data collection.

Interpolation and approximationStone-Weierstrass theorem

Application scenario and suppositionsEvery sensor have: CPU, RAM, RADIO, protocols

Variation of error tolerated by application

Page 12: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1212/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Contents

Introduction

Objective

Related works

Requirements and constraints

Algorithms of compression

Fixed window based

Variable window based

Local aggregation

Experiments and simulation

Conclusion and future works

Page 13: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1313/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Fixed WindowDim: number of readings by sequence

Tab: collected readings

Poly: polynomial coefficients

ni: sensor node object

VarErr: evaluation of polynomial and calculation of variation

Sensed and collected data at time tj

Dim: number of readings by sequence

Tab: collected readings

Poly: polynomial coefficients

ni: sensor node object

VarErr: evaluation of polynomial and calculation of variation

m: Polynomial degree

Page 14: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1414/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Fixed WindowDim: number of readings by sequence

Tab: collected readings

Poly: polynomial coefficients

ni: sensor node object

VarErr: evaluation of polynomial and calculation of variation

Variation of error

Dim: number of readings by sequence

Tab: collected readings

Poly: polynomial coefficients

ni: sensor node object

VarErr: evaluation of polynomial and calculation of variation

m: Polynomial degree

Page 15: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1515/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Fixed WindowDim: number of readings by sequence

Tab: collected readings

Poly: polynomial coefficients

ni: sensor node object

VarErr: evaluation of polynomial and calculation of variation

m: Polynomial degree

Find a new polynomial while condition is true, otherwise save polynomial and transmit it

)1(

)()(

22

nn

EEnEVarErr

Page 16: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1616/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Fixed WindowDim: number of readings by sequence

Tab: collected readings

Poly: polynomial coefficients

ni: sensor node object

VarErr: evaluation of polynomial and calculation of variation

Start Approximation using Least-Squares method

Dim: number of readings by sequence

Tab: collected readings

Poly: polynomial coefficients

ni: sensor node object

VarErr: evaluation of polynomial and calculation of variation

m: Polynomial degree

Page 17: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1717/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Variable Window

Dim: number of readings by sequence

Tab: collected readings

Poly: polynomial coefficients

ni: sensor node object

VarErr: evaluation of polynomial and calculation of variation

WindowMin: minimal size of time window

WindowMax: maximal size of time window

OldDegree: Degree of last approximation

m: Polynomial degree

Page 18: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1818/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Variable Window

Sensed and collected data of initial window

Page 19: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

1919/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Variable Window

Initialization

Page 20: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2020/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Variable Window

Check if the old polynomial is extensible

Page 21: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2121/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Variable Window

A new collected value is added and the old degree is saved

Page 22: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2222/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Algorithms of compression : Variable Window

To limit the algorithm by a number of readings (WindowMax)

Page 23: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2323/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Contents

Introduction

Objective

Related works

Requirements and constraints

Algorithms of compression

Fixed window based

Variable window based

Local aggregation

Experiments and simulation

Conclusion and future works

Page 24: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2424/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Local Aggregation

Coefficient of correlation

YXYX

YXCov

*

),(,

11 , YX

n

iyixi yx

nYXCov

1

))((1

),( With

IDS tn V1 ….. Vn

Packet structureWithout compression

IDS tn P(ti)

Packet structureWith compression

Correlated polynomial Transmit juste

IDS tn

Packet structureWith compression

Page 25: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2525/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Contents

Introduction

Objective

Related works

Requirements and constraints

Algorithms of compression

Fixed window based

Variable window based

Local aggregation

Experiments and simulation

Conclusion and future works

Page 26: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2626/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Experiments and Simulation (1)

Compression ratio during one period

100Re

xradingNumbe

tsNumberCoefficiennRateCompressio

Algorithm with Fixed Window

Compression Quality vs Window SizeWith Tolerable error variation =0.1

Experiment: samples of 1000 readings (experimental, Temperature, Humidity and Wind speed) Environmental Real values

If we increase the number of readings, that do not imply automatically a corresponding better rate. Contrary, when the window sizes are reduced, the correlation is very expressive and then the approximation process is better.

Page 27: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2727/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Experiments and Simulation (2)

Algorithm with Variable Window

Compression Quality vs Tolerable variation of error

Compression ratio fully depends on the tolerable variation of error, which implies the strong connection between the quality of data and the desirable compression ratio.

Temperature Humidity Wind Speed

Tolerable Error Variation

0.1 0.1 0.1

Compression Rate 15.09% 75.92% 64.21%

Restitution Rate 99.98% 100% 99.80%

Restitution Rate

This table shows that the majority of the values reconstituted by the evaluation of the polynomials will be in the specified margin

Page 28: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2828/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Experiments and Simulation (3)

Comparison of compression rate

If we fix the variation of error at 0.1 and we consider an optimal size of the fixed window (80 readings) for the algorithm with fixed window, the algorithm with variable window is more powerful.

Experimental Data Temperature Humidity Wind Speed

ASFW Algorithm 78 % 27.55 % 83.37 % 80.83 %

ASVW Algorithm 15.14 % 15.09 % 75.92 % 64.21 %

Page 29: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

2929/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Contents

Introduction

Objective

Related works

Requirements and constraints

Algorithms of compression

Fixed window based

Variable window based

Local aggregation

Experiments and simulation

Conclusion and future works

Page 30: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

3030/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Conclusion

Data compression is an important technique to reduce communications and hence save energy in WSN.

Our proposed approach (New data compression and aggregation technique for WSN) is a simple idea but it is quite novel and interesting.

The results obtained are encouraged to follow this research direction.

Page 31: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

3131/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Perspectives

What are the computation cost and memory requirement at each sensor node ?

A comparison with other compression techniques in terms of accuracy and cost (like TiNA and LTC).

Additional experimental effort to prove the effectiveness of the approach (Energy calculation).

Extend the approach to Multi-objective WSN (several data types in the same network with cooperation capabilities)

Page 32: Bouabdellah KECHAR  bkechar2000@yahoo.fr Oran University

3232/32/32

B.KECHAR WWSN – Marrakech – June 4, 2007

Questions & remarks

Thanks for your attention.

Using Polynomial Approximation as Compression and Aggregation Technique in Wireless Sensor Networks