Localization in Sensor Networks Localization in Sensor Networks Jie - - PowerPoint PPT Presentation

localization in sensor networks localization in sensor
SMART_READER_LITE
LIVE PREVIEW

Localization in Sensor Networks Localization in Sensor Networks Jie - - PowerPoint PPT Presentation

Localization in Sensor Networks Localization in Sensor Networks Jie Gao Computer Science Department Stony Brook University 9/6/05 Jie Gao, CSE590-fall05 1 Some slides are made by Savvides Find where the sensor is Find where the sensor


slide-1
SLIDE 1

9/6/05 Jie Gao, CSE590-fall05 1

Localization in Sensor Networks Localization in Sensor Networks

Jie Gao

Computer Science Department Stony Brook University

Some slides are made by Savvides

slide-2
SLIDE 2

9/6/05 Jie Gao, CSE590-fall05 2

Find where the sensor is… Find where the sensor is…

  • Location information is important.

1. Devices need to know where they are.

  • Sensor tasking: turn on the sensor near the window…

2. We want to know where the data is about.

  • A sensor reading is too hot – where?

3. It helps infrastructure establishment, such as geographical routing and sensor coverage.

  • Intruder detection;
  • Localized geographical routing.
slide-3
SLIDE 3

9/6/05 Jie Gao, CSE590-fall05 3

GPS is not always good GPS is not always good

  • Requires clear sky, doesn’t work indoor.
  • Too expensive.

– A $1 sensor attached with a $100 GPS?

Localization:

  • (optional) Some nodes (anchors or beacons) have GPS or

know their locations.

  • Nodes make local measurements;

– Distances between two sensors, angles between two neighbors, etc.

  • Communicate between each other;
  • Infer location information from these measurements.
slide-4
SLIDE 4

9/6/05 Jie Gao, CSE590-fall05 4

Model of a sensor network Model of a sensor network

  • Sensor networks with omni-directional antennas are usually

modeled by unit disk graphs.

– Two nodes have a link if and only if their distance is within 1.

  • Use the graph property (connectivity, local measurements) to

deduct the locations.

slide-5
SLIDE 5

9/6/05 Jie Gao, CSE590-fall05 5

Localization problem Localization problem

  • Output: nodes’ location.

– Global location, e.g., what GPS gives. – Relative location.

  • Input:

– Connectivity, hop count.

  • Nodes with k hops away are within Euclidean distance k.
  • Nodes without a link must be at least distance 1 away.

– Distance measurement of an incoming link. – Angle measurement of an incoming link. – Combinations of the above.

slide-6
SLIDE 6

9/6/05 Jie Gao, CSE590-fall05 6

Measurements Measurements

Distance estimation:

  • Received Signal Strength Indicator (RSSI)

– The further away, the weaker the received signal. – Mainly used for RF signals.

  • Time of Arrival (ToA) or Time Difference of Arrival (TDoA)

– Signal propagation time translates to distance. – RF, acoustic, infrared and ultrasound.

Angle estimation:

  • Angle of Arrival (AoA)

– Determining the direction of propagation of a radio-frequency wave incident on an antenna array.

  • Directional Antenna
  • Special hardware, e.g., laser transmitter and receivers.
slide-7
SLIDE 7

9/6/05 Jie Gao, CSE590-fall05 7

Localization Localization

  • Given distances or angle measurements, find the locations of

the sensors.

  • Anchor-based

– Some nodes know their locations, either by a GPS or as pre- specified.

  • Anchor-free

– Relative location only. – A harder problem, need to solve the global structure. Nowhere to start.

  • Range-based

– Use range information (distance estimation).

  • Range-free

– No distance estimation, use connectivity information such as hop count.

slide-8
SLIDE 8

9/6/05 Jie Gao, CSE590-fall05 8

Many ways to approach this problem Many ways to approach this problem

  • Trilateration and triangulation
  • Fingerprinting and classification
  • Ad-hoc and range/free
  • Graph rigidity
  • Identifying codes
  • Bayesian Networks
  • Optimization
  • Multi-dimensional scaling
slide-9
SLIDE 9

9/6/05 Jie Gao, CSE590-fall05 9

Trilateration Trilateration and Triangulation and Triangulation

  • Use geometry, measure the

distances/angles to three anchors.

  • Trilateration: use distances

– Global Positioning System (GPS)

  • Triangulation: use angles

– Cell phone systems.

  • How to deal with inaccurate

measurements?

  • How to solve for more than 3

(inaccurate) measurements?

slide-10
SLIDE 10

9/6/05 Jie Gao, CSE590-fall05 10

Ad Ad-

  • hoc approaches

hoc approaches

  • Ad-hoc positioning (APS)

– Estimate range to landmarks using hop count or distance summaries

  • APS:

– Count hops between landmarks – Find average distance per hop – Use multi-lateration to compute location

slide-11
SLIDE 11

9/6/05 Jie Gao, CSE590-fall05 11

Optimization Optimization

  • View system of nodes, distances and angles as

a system of equation with unknowns.

  • Add inequalities

– E.g. radio range is at most 1.

  • Solve resulting system of inequalities as an
  • ptimization problem.
slide-12
SLIDE 12

9/6/05 Jie Gao, CSE590-fall05 12

Multidimensional Scaling (MDS) Multidimensional Scaling (MDS)

  • MDS is a general method of finding points in a

geometric space that preserves the pair-wise distances as much as possible.

– It works also for non-metric data.

  • Given the pairwise distances P, find a set of points X

in m-dimensional space.

  • Take the largest 2 eigenvalues and eigenvectors of X

as the best 2D approximations.

slide-13
SLIDE 13

9/6/05 Jie Gao, CSE590-fall05 13

Fingerprinting, classification and scene Fingerprinting, classification and scene analysis analysis

  • Offline phase: collect training data

(fingerprints): [(x, y), SS].

– E.g., the mean Signal Strength to N landmarks.

  • Online phase: Match RSS to existing

fingerprints probabilistically or by using a distance metric.

  • Cons:

– How to build the map?

  • Someone walks around and

samples?

  • Automatic?

– Sampling rate? – Changes in the scene (people moving around in a building) affect the signal strengths.

[-80,-67,-50] RSS (x?,y?)

[(x,y),s1,s2,s3] [(x,y),s1,s2,s3] [(x,y),s1,s2,s3]

slide-14
SLIDE 14

9/6/05 Jie Gao, CSE590-fall05 14

Bayesian Networks Bayesian Networks

  • View positions as random variables
  • Build network to describe likely values of these

variables given observations

  • Pros:

– Captures any set of observations and priors

  • Cons:

– Computationally expensive – Accuracy

slide-15
SLIDE 15

9/6/05 Jie Gao, CSE590-fall05 15

Papers Papers

  • Multi-lateration:
  • [Savvides01] A. Savvides, C.-C. Han, and M. B. Strivastava.

Dynamic fine-grained localization in ad-hoc networks of

  • sensors. Proc. MobiCom 2001.
  • [Savvides03] A. Savvides, H. Park, and M. B. Strivastava.

The n-hop multilateration primitive for node localization problems, Mobile Networks and Applications, Volume 8, Issue 4, 443-451, 2003.

  • Mass-spring model:
  • [Howard01] A. Howard, M. J. Mataric, and G. Sukhatme,

Relaxation on a Mesh: a Formalism for Generalized Localization, IEEE/RSJ Internaltionsl Conference on Intelligent Robots and Systems, October, 2001.

slide-16
SLIDE 16

9/6/05 Jie Gao, CSE590-fall05 16

Multilateration Multilateration: use plane geometry : use plane geometry

slide-17
SLIDE 17

9/6/05 Jie Gao, CSE590-fall05 17

Base Case: Atomic Base Case: Atomic Multilateration Multilateration

  • Base stations advertise their coordinates & transmit a reference

signal

  • PDA uses the reference signal to estimate distances to each of the

base stations

Base Station 1 Base Station 3 Base Station 2 u

slide-18
SLIDE 18

9/6/05 Jie Gao, CSE590-fall05 18

Base Case: Atomic Base Case: Atomic Multilateration Multilateration

  • Distance measurements are noisy!
  • Solve an optimization problem: minimize the mean square error.
slide-19
SLIDE 19

9/6/05 Jie Gao, CSE590-fall05 19

Problem Formulation Problem Formulation

  • k beacons at positions
  • Assume node 0 has position
  • Distance measurement between node 0 and

beacon i is

  • Error:
  • The objective function is
  • This is a non-linear optimization problem

2

( , ) min

i

F x y f =

  • 2

2

( ) ( )

i i i i

f r x x y y = − − + −

) , (

i i y

x ) , (

0 y

x

i

r

slide-20
SLIDE 20

9/6/05 Jie Gao, CSE590-fall05 20

Linearization and Linearization and Min Mean Square Min Mean Square Estimate Estimate

  • Ideally, we would like the error to be 0
  • Re-arrange:
  • Subtract the last equation from the previous ones

to get rid of quadratic terms.

  • Note that this is linear.

2 2

( ) ( )

i i i i

f r x x y y = − − + − =

2 2 2 2 2

( ) ( 2 ) ( 2 )

i i i i i

x y x x y y r x y + + − + − − = − −

2 2 2 2 2 2

2 ( ) 2 ( )

k i k i i k i i k k

x x y y r x r x y x y y − + − = − − − + +

slide-21
SLIDE 21

9/6/05 Jie Gao, CSE590-fall05 21

Linearization and Linearization and Min Mean Square Min Mean Square Estimate Estimate

  • In general, we have an over-constrained linear

system

Ax b =

2 2 2 2 2 2 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 k k k k k k k k k k k k

r r x y x y r r x y x y b r r x y x y

− − −

− − + +

− − + +

  • =

− − + +

  • 1

1 2 2 1 1

2( ) 2( ) 2( ) 2( ) 2( ) 2( )

k k k k k k k k

x x y y x x y y A x x y y

− −

− −

  • =

  • x

x y

  • =
  • A

x = b

slide-22
SLIDE 22

9/6/05 Jie Gao, CSE590-fall05 22

Solve using the Least Square Solve using the Least Square Equation Equation

The linearized equations in matrix form become Now we can use the least squares equation to compute an estimation.

1

( )

T T

x A A A b

=

Ax b =

slide-23
SLIDE 23

9/6/05 Jie Gao, CSE590-fall05 23

How to solve it in an embedded How to solve it in an embedded system? system?

  • Check conditions

– Beacon nodes must not lie on the same line

  • For ToA, TDoA, how to solve for the speed of

sound?

slide-24
SLIDE 24

9/6/05 Jie Gao, CSE590-fall05 24

Acoustic case: Also solve for the speed Acoustic case: Also solve for the speed

  • f sound
  • f sound

With at least 4 beacons, This can be linearized to the form where

2 2

) ( ) ( y y x x st f

i i i i

− + − − =

  • +

+ − − + + − − + + − − =

− − 2 2 2 1 2 1 2 2 2 2 2 2 2 2 2 1 2 1 k k k k k k k k

y x y x y x y x y x y x b

− − − − − − − − =

− − − 2 ) 1 ( 2 1 1 2 20 2 2 2 2 10 2 1 1

) ( 2 ) ( 2 ) ( 2 ) ( 2 ) ( 2 ) ( 2

k k k k k k k k k k k k

t t y y x x t t y y x x t t y y x x A

  • =

2

s y x x

1 2 3 4

1,2 i k =

  • MMSE Solution:

Ax b =

1

( )

T T

x A A A b

=

Time measurement Speed of sound

slide-25
SLIDE 25

9/6/05 Jie Gao, CSE590-fall05 25

The Node Localization Problem The Node Localization Problem

Beacon Unkown Location Randomly Deployed Sensor Network

Beacon nodes

  • Localize nodes in an ad-hoc

multihop network

  • Based on a set of inter-node

distance measurements

slide-26
SLIDE 26

9/6/05 Jie Gao, CSE590-fall05 26

Solving over multiple hops Solving over multiple hops

  • Iterative multilateration

– a node with at least 3 neighboring beacons estimates its position and becomes a beacon. – Iterate until all nodes with 3 beacons are localized.

  • Connectivity matters! Each node needs at least 3 neighbors.
slide-27
SLIDE 27

9/6/05 Jie Gao, CSE590-fall05 27

Iterative Iterative multilateration multilateration: how many : how many beacons? beacons?

  • n nodes deployed randomly in a square of side L,
  • P(d)=Pr{a node x has degree d}=?

d n-d-1

1

1 ( ) (1 )

d n d

n P d p p d

− −

  • =

⋅ − ⋅

  • 2

2

R p L π =

Probability that one node falls inside the transmission range of x? Transmission range has radius R Binomial distribution x

slide-28
SLIDE 28

9/6/05 Jie Gao, CSE590-fall05 28

Iterative Iterative multilateration multilateration: how many : how many beacons? beacons?

  • When n tends to infinity, the binomial distribution

converges to a Poisson distribution.

d N-d-1

( ) !

d

P d e d

λ

λ

= ⋅

2 2

R p L π =

Probability that one node falls inside the transmission range of x? Transmission range has radius R Binomial distribution

n p λ = ⋅

Poisson distribution x

slide-29
SLIDE 29

9/6/05 Jie Gao, CSE590-fall05 29

Iterative Iterative multilateration multilateration: how many : how many beacons? beacons?

( ) !

d

P d e d

λ

λ

= ⋅

1 1

( ) 1 ( )

n i

P d P i

− =

≥ = −

100 by 100 field Sensor range:10 Probability of a node with 0, 1, 2, ≥ ≥ ≥ ≥ 3 neighbors. With 200 nodes, P(≥ ≥ ≥ ≥ 3) is about 95%.

slide-30
SLIDE 30

9/6/05 Jie Gao, CSE590-fall05 30

Iterative Iterative multilateration multilateration: how many : how many beacons? beacons?

With 200 nodes, P(≥ ≥ ≥ ≥ 3) is about 95%. With 200 nodes, we need about 50~60 beacons to localize about 90% of the

  • nodes. That’s ¼ of

the total number of nodes.

slide-31
SLIDE 31

9/6/05 Jie Gao, CSE590-fall05 31

Problems of iterative Multilateration Problems of iterative Multilateration

Problems

1. Requires a large fraction of beacons. 2. Error accumulates. 3. It gets stuck --- not all nodes with 3 or more neighbors can be resolved.

slide-32
SLIDE 32

9/6/05 Jie Gao, CSE590-fall05 32

Problems of iterative Multilateration Problems of iterative Multilateration

Problems

1. Requires a large fraction of beacons. 2. Error accumulates.

  • Mass-spring optimization.

3. It gets stuck --- not all nodes with 3 or more neighbors can be located. Collaborative multilateration

slide-33
SLIDE 33

9/6/05 Jie Gao, CSE590-fall05 33

Collaborative Collaborative Multilateration Multilateration: use joint : use joint

  • ptimization
  • ptimization
slide-34
SLIDE 34

9/6/05 Jie Gao, CSE590-fall05 34

Collaborative Collaborative Mutlilateration Mutlilateration

– All available measurements are used as constraints – Solve for the positions of multiple unknowns simultaneously – Joint optimization can get better results compared with separate optimizations.

slide-35
SLIDE 35

9/6/05 Jie Gao, CSE590-fall05 35

Problem Formulation Problem Formulation

2 2 2,3 2,3 2 2 2 2 3,5 3,5 5 5 2 2 4,3 4,3 2 2 4,5 4,5 5 5 2 2 4, 3 1 4 3 3 3 4 3 4 3 4 4 4 4 ,1 1 1

( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) x y x y x x y f r x y f r x y f r f r x y y x y x y f r x y = − − + − = − − + − = − − + − = − − + − = − − + −

2 3 3 4 4 ,

( , , , ) min

i j

F x y x y f =

  • The objective function is

Start from some initial estimates, then use a Kalman Filter.

1 2 3 4 5 6

slide-36
SLIDE 36

9/6/05 Jie Gao, CSE590-fall05 36

Initial Estimates Initial Estimates

  • Use the distance to a beacon

as bounds on the x and y coordinates a a a

beacon U

slide-37
SLIDE 37

9/6/05 Jie Gao, CSE590-fall05 37

Initial Estimates (Phase 2) Initial Estimates (Phase 2)

  • Use the distance to a beacon

as bounds on the x and y coordinates

  • Do the same for beacons

that are multiple hops away

  • Select the most constraining

bounds a b c b+c b+c

X Y U U is between [Y-(b+c)] and [X+a]

slide-38
SLIDE 38

9/6/05 Jie Gao, CSE590-fall05 38

Initial Estimates (Phase 2) Initial Estimates (Phase 2)

  • Use the distance to a beacon

as bounds on the x and y coordinates

  • Do the same for beacons that

are multiple hops away

  • Select the most constraining

bounds

  • Set the center of the

bounding box as the initial estimate a a a b c b+c b+c

X Y U

slide-39
SLIDE 39

9/6/05 Jie Gao, CSE590-fall05 39

Initial Estimates (Phase 2) Initial Estimates (Phase 2)

  • Initial estimates give

rough location information.

  • Use Kalman Filter to

refine.

– Start with prior info. – Incorporate new measurement info. – Improve the current state. – Details omitted.

slide-40
SLIDE 40

9/6/05 Jie Gao, CSE590-fall05 40

Collaborative Multilateration Collaborative Multilateration

Collaborative Multilateration

  • 1

2 3 4 5 2 1 3 4 5 1 2 3 4 5

slide-41
SLIDE 41

9/6/05 Jie Gao, CSE590-fall05 41

Satisfy Global Constraints with Local Satisfy Global Constraints with Local Computation Computation

From SensorSim

simulation 40 nodes, 4 beacons IEEE 802.11 MAC 10Kbps radio Average 6 neighbors per node

slide-42
SLIDE 42

9/6/05 Jie Gao, CSE590-fall05 42

Multilateration Multilateration

  • Need beacons.
  • Iterative multi-lateration.

– Error accumulates. – May get stuck when the density is low.

  • Collaborative multi-lateration.

– Still requires a large number of beacon nodes, especially when the network is sparse. – Kalman filter computation is expensive on large networks.

slide-43
SLIDE 43

9/6/05 Jie Gao, CSE590-fall05 43

Mass Mass-

  • spring localization

spring localization

Improve the accumulated localization error by a global iterative algorithm ---

slide-44
SLIDE 44

9/6/05 Jie Gao, CSE590-fall05 44

Mass Mass-

  • spring system

spring system

  • Nodes are “masses”, edges are “springs”.
  • Length of the spring equals the distance measurement.
  • Springs put forces to the nodes.
  • Nodes move.
  • Until the system stabilizes.
slide-45
SLIDE 45

9/6/05 Jie Gao, CSE590-fall05 45

Mass Mass-

  • spring system

spring system

  • Node ni’s current estimate of its position: pi.
  • The estimated distance dij between ni and nj.
  • The measured distance rij between ni and nj.
  • Force: Fij =dij- rij, along the direction pipj.

j pi pj dij Fij i

slide-46
SLIDE 46

9/6/05 Jie Gao, CSE590-fall05 46

Mass Mass-

  • spring system

spring system

  • Total force on ni: Fi= Fij.
  • Move the node ni by a small distance (proportional

to Fi).

  • Recurse.

pi pj dij Fij Fi

slide-47
SLIDE 47

9/6/05 Jie Gao, CSE590-fall05 47

Mass Mass-

  • spring system

spring system

  • Total energy ni: Ei= Eij= (dij- rij)2.
  • Make sure that the total energy E= Ei goes down.
  • Stop when the force (or total energy) is small

enough.

pi pj dij Fij Fi

slide-48
SLIDE 48

9/6/05 Jie Gao, CSE590-fall05 48

Mass Mass-

  • spring system

spring system

  • Naturally a distributed algorithm.
  • Problem: may stuck in local minima.
  • Need to start from a reasonably good initial

estimation, e.g., the iterative multi-lateration.

slide-49
SLIDE 49

9/6/05 Jie Gao, CSE590-fall05 49

Ambiguity in localization Ambiguity in localization

For noisy measurements, we use optimization methods… Yet optimization does not solve ---

slide-50
SLIDE 50

9/6/05 Jie Gao, CSE590-fall05 50

Ambiguity in localization Ambiguity in localization

  • Same distances, different realization.
slide-51
SLIDE 51

9/6/05 Jie Gao, CSE590-fall05 51

Continuous deformation Continuous deformation

  • Nodes move continuously without violating

the distance constraints.

slide-52
SLIDE 52

9/6/05 Jie Gao, CSE590-fall05 52

Flip Flip

  • No continuous deformation, but subjects to

global flipping.

slide-53
SLIDE 53

9/6/05 Jie Gao, CSE590-fall05 53

Discontinuous flex ambiguity Discontinuous flex ambiguity

  • Remove AD, flip ABD up, insert AD.
  • No continuous deformation in between.
  • But both are valid realization of the

distances.

slide-54
SLIDE 54

9/6/05 Jie Gao, CSE590-fall05 54

Rigidity theory Rigidity theory

Next class

Given a system of rigid bars and hinges in 2D, does it have a continuous deformation? Multiple realizations?

slide-55
SLIDE 55

9/6/05 Jie Gao, CSE590-fall05 55

Blackboard system Blackboard system

  • http://blackboard.sunysb.edu
  • Find groupmates, discuss project ideas.
  • Search “advanced topics in wireless networking”.
slide-56
SLIDE 56

9/6/05 Jie Gao, CSE590-fall05 56

Presenters on 9/20 Presenters on 9/20

  • [Shang03] Yi Shang, Wheeler Ruml, Ying Zhang, and Markus P.J.

Fromherz, Localization from Mere Connectivity, MobiHoc'03.

  • [Goldenberg05] David Goldenberg, Arvind Krishnamurthy, Wesley

Maness,Yang Richard Yang, Anthony Young, Andreas Savvides. Network localization in partially localizable networks, INFOCOM'05.

  • [Priyantha05] Nissanka B. Priyantha, Hari Balakrishnan, Erik D.

Demaine, Seth Teller, Mobile-Assisted Localization in Wireless Sensor Networks, INFOCOM'05.