Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building...

35
Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD), Yi-Min Wang, and Wilf Russell

Transcript of Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building...

Page 1: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Location-Aware Services in anIn-Building Environment

Collaborators:Victor Bahl, Venkat Padmanabham, Anand Balachandran

(UCSD), Yi-Min Wang, and Wilf Russell

Page 2: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

The RADAR System

Research Goal

Leverage the existing infrastructure of an indoor RF wireless LAN to build applications that take advantage of location information.

Page 3: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Related Work in Positioning System

Outdoor (Cellular) SystemsGPS, DGPS, etc. (QualComm/SnapTrack, …)Time Difference of Arrival (TruePosition System…)Angle of Arrival (KSI, … )

Solutions designed for the outdoors are either ineffective or too costly indoors

Page 4: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Related Work in Indoor Positioning Systems

Infrared-based systemsAT&T Research’s Active Badge SystemAccurate due to short range and line-of-sight propertyScales poorly, limited by LoS, requires specialized infrastructure

Radio Frequency-based systemsCell-level granularity [HKSR97]Duress Alarm Location System, PinPoint

Alternative technologies: magnetic, optical, acousticMIT’s Cricket System (MobiCom ‘99, ‘00), AT&T’s BatVery accurate (cm resolution)Requires dedicated infrastructureTargeted at specialized applications, e.g. head tracking, Orientation etc.

Traditional approach has been based on dedicated technology and infrastructure

Page 5: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

The RADAR System

Our ApproachLeverage existing infrastructureUse off-the-shelf RF wireless LANSeveral advantages

WLAN deployed primarily to provide data connectivitysoftware adds value to wireless hardware better scalability and lower cost than all available solutionsNot too hard to install and easy to manage

one-time cost for building signal-strength databaseone-time cost for building the location hierarchy

Three ComponentsUser Location and Tracking Location Information Management Programmability

Page 6: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Location Determination

Algorithmic ComponentsRF fingerprinting and matchingRF environment profiling and matchingTrajectory predictionScanning and channel switchingLocation databases and location services

Mobile User

Access Point 1

AP

Access Point 2

AP

Access Point 3

AP

Access Point 4

Page 7: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

How good an indicator of location is signal strength?

05

10152025303540

0 20 40 60 80 100

Distance along walk (meters)

Sig

nal

Str

eng

th (

dB

m)

BS 1 BS 2 BS 3

Signal strength correlates well with distance

Page 8: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Signal Processing in RADAR

Key idea:Map signal strengths to physical locations (Radio Fingerprinting)

Inputs:signal strength of access point beaconsbuilding geometry

Offline phase: Construct a Radio Maptabulate <location,SS> information

Real-time phase:extract SS from base station beaconsfind Radio Map entry that best matches the measured SS

Page 9: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Radio Map Construction

Empirical methodAccess Points emit beacons periodicallymeasure SS at various locationsrecord SS along with corresponding coordinates

• user orientation needs to be included too!• tuples of the form (x,y,z,d,s1,…,sn)

accurate but laborious

Mathematical methodcompute SS using a simple propagation model

• factor in free space loss and wall attenuation• Cohen-Sutherland line clipping algorithm

more convenient but less accurate

Page 10: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Demo

RADAR Demo

Page 11: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Baseline Performance

0

0.2

0.4

0.6

0.8

1

1.2

0 10 20 30 40 50

Error distance (meters)

Pro

bab

ility

Empirical Strongest BS Random

Median error distance is 2.94 meters

Page 12: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Neighbor Averaging

Find nearest neighbor in signal space (NNSS)default metric is Euclidean distance

Phys. coordinates of NNSS ⇒ user locationRefinement: k-NNSS

average the coordinates of k nearest neighbors

N1

T

GN2 N3

N1, N2, N3: neighborsT: true location of userG: guess based on averaging

Page 13: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Performance with Averaging

0

0.5

1

1.5

2

2.5

3

3.5

0 2 4 6 8 10

Number of neighbors averaged (k)

Err

or

dis

tance

(m

eter

s)25th 50th

Median error distance is 2.13 meters when averaging is done over 3 neighbors

Page 14: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

How extensive does the Radio Map have to be?

02468

101214

1 10 100

Size of empirical data set (# physical points, n )

Err

or

dis

tan

ce (

met

ers)25th 50th

Diminishing returns as the number of physical points mapped increases

Page 15: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Radio Map Constructionwith RF Modeling

0

5

10

15

20

25

30

35

40

0 5 10 15 20 25 30 35 40

Distance (m)

Sig

nal

Str

eng

th (

dB

m)

0

5

10

15

20

25

30

35

40

0 5 10 15 20 25 30 35 40

Distance (m)

Sig

nal

Str

eng

th (

dB

m)

≥<

−=

CnWWAFC

CnWWAFnW

d

dndBmdPdBmdP

oo *

*log10])[(])[(

Model parameters: P(d0) = 28 dBm, n = 1.53, WAF = 3.1 dBm, C = 4 walls

Signal Propagation Measurements

Page 16: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

How well does WAF work?

0

5

10

15

20

25

30

35

40

45

50

1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70

Sample

Sig

nal

Str

eng

th (

dB

m)

Median error distance is 4.94 m compared to 2.94 m with empirically constructed radio map and 8.16 m with nearest base station method

Page 17: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Are User Trajectory and Speed Predictable?

Signal processing, and pattern recognition allow mobility management

Page 18: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Mobility Modeling and Prediction

1 2 h

diji

j

guess

k

number of signal strength samples

.

0

1

2

3

4

5

6

7

8

Err

or

dis

tan

ce (

met

ers)

NNSS NNSS-AVG Viterbi

Mean Median 90th %tile

User’s previous locations can provide a good hint of her next location

Page 19: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Environmental Profiling

Mobile User

Access Point 1

AP

Access Point 2

AP

Access Point 3

AP

Access Point 4

0

0.5

1

1.5

2

2.5

0 50 100 150 200

Signal strength sample sequence number

En

viro

nm

enta

l st

ate

Actual Win = 4 Win = 14

RF propagation characteristics change all the time

Calculate location of known AP using different Radio Maps. Select the one that produces best result.

Page 20: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Channel Switching

For the mobile to “hear” neighboring APs – all APsmust be on the same channelEffects overall system cost

Switching channels to listen to AP beacons is possible

Degrades performance considerably

AP2 on Ch. 6

AP3 on Ch. 11

AP1 on Ch. 1

Channel Switching Time = 10 msecBeacons Interval = 100 msec

Aquiring beacons

Mobile on Ch.1

Page 21: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Programming Requirementsfor RADAR

Ability of the wireless NIC to scan specified channels.

For every incoming packet from a specified MAC address, ability to retrieve the packet’s

- received signal strength, - noise floor at the transmitter, and - noise floor at the receiver.

Page 22: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

AP Monitor in WinXP

Windows XP contains the necessary support to enable RADAR

Page 23: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Windows 2000FreeBSD 3.0OS

42.9 m x 21. 8 m43.2 m x 22.5 m

Floor

53# of APs

1,2, 5.5, 11 Mbps1, 2 MbpsRaw Date Rate

30 mW50 mWPower

SS CCKSS DQPSKModulation

IEEE 802.11bCSMA/CAMAC

Aironet/CiscoRoamAboutHardware

Testbed 2 (Bldg. 112/2)

Testbed 1 (Bldg. 31/2)

Experimental Testbeds

Page 24: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Exploiting Location

Subscription based:Location Information ServiceLocation Alert ServiceLocation based Buddy List ServiceOnSale Mall Buddy Service

Network ImprovementsAP Load balancingNode-level QoS

County

City

Country

State Territory

County

City

Campus

Building

...

Campus

Building Area

Floor

Printer Copier ScannerAccess Point

Absolute Location(longitude, latitude, altitude)

Relative Location(meters, meters, floor)

Page 25: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Location Information Service

WISH (Where IS Harry?)“I wish I knew where Harry is.”

User location system that works with Wireless LANs

Usage scenarios- Locate people and devices- Discover nearby resources (printers, offices,

restrooms, etc.)

Page 26: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Location Information Service Architecture

WISH Client

WiLIB

Device Driver

WISH Server

Access Point

EventingInfrastructure

Every 2 minutes Every 30 seconds

Every 30 seconds

Every 30 seconds

http://wish

Page 27: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Where IS Harry Service

Page 28: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Location Alert Service

When I can’t find Harry…“Alert me when you find Harry.”

Soft-state eventing infrastructure to trigger alerts when event matches are found.

Personalized alert delivery through Instant Messaging, emails, cell phone SMS

Page 29: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

SIMBALibrary

IMEmailMyAlertBuddyEmail

SMS

IM

Location Alert Service Architecture

EventingInfrastructure

WISH AlertService

Alert Subscription Page

WISHClient

WISHServer

Page 30: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Location-Based Buddy List Service

When Harry is my buddy..“Alert me if Harry happens to be close by.”

Subject-based publish/subscribe eventing based on user profiles

Integrated tightly with MSN buddy list

Page 31: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Mall Buddy Server

Wilf

EventingInfrastructure

Mall BuddyClient

BuddyList

VictorMall Buddy

Client

BuddyList

Location-Based Buddy List Service Architecture

“Wilf is in the mall.”

“Victor is in the mall.”http://www.mschoice.com

http://choice

Page 32: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

OnSale Mall Buddy Service

Personalized sales announcements“Alert me when electronics are on sale.”

Subject-based publish/subscribe eventing based on product categories and user profiles

Page 33: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

OnSale Mall Buddy Service Architecture

VictorMall Buddy

Client

OnSaleServer

“Electronics are on sale.”

Profiles

Mall Buddy Server

ShoppingProfiles

Wilf

Mall BuddyClient

EventingInfrastructure

Page 34: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Victor Bahl

Summary

Takes advantage of existing Wireless LAN infrastructure

Easy to install and manageone-time cost for building signal-strength databaseone-time cost for building the location hierarchy

System does not require line-of-site communication

Provides security, replication, partitioning for scalability, and back-up and restore

RADAR: a software solution to indoor location determination

Page 35: Location-Aware Services in an In-Building Environment · Location-Aware Services in an In-Building Environment Collaborators: Victor Bahl, Venkat Padmanabham, Anand Balachandran (UCSD),

Thanks!

http://research.microsoft.com/~bahl