context awareness and localization

26
CONTEXT AWARENESS AND LOCALIZATION

Upload: others

Post on 15-Feb-2022

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CONTEXT AWARENESS AND LOCALIZATION

CONTEXT AWARENESS AND LOCALIZATION

Page 2: CONTEXT AWARENESS AND LOCALIZATION

Context-aware computing

¨  How computation can be made sensitive and responsive to its context ¤ What context? ¤ How to represent/evaluate/detect? ¤ How to respond?

Page 3: CONTEXT AWARENESS AND LOCALIZATION

What is Context?

¨  Dictionary definition: “the interrelated conditions in which something exists or occurs”

¨  The representational view ¤  “Context encompasses more than just the user’s location,

because other things of interest are also mobile and changing. Context includes lighting, noise level, network connectivity, communication costs, communication bandwidth and even the social situation (e.g., who you are with)

Page 4: CONTEXT AWARENESS AND LOCALIZATION

The representational view

¨  Example: adaptive ring tone ¤ Activity: ring ¤ Context: noise level of

the environment, location

¤ Relation: noise level of the environment decides the volume of the ring tone

Activity

Context

The key question is thus how to encode and represent relevant context

Page 5: CONTEXT AWARENESS AND LOCALIZATION

The interactional view

¨  contextuality is a relational property that holds between objects or activities

¨  Dynamic and evolving through the interactions

¨  Example: adaptive ring tone ¤  Activity: people’s activity,

mobile ring ¤  Context: The interaction

among activities determine “the norm” – keep quiet

Activity Activity

Activity

Context

how and why, in the course of their interactions, do people achieve and maintain a mutual understanding of the context for their actions

Page 6: CONTEXT AWARENESS AND LOCALIZATION

Location, location, location

Page 7: CONTEXT AWARENESS AND LOCALIZATION

Components of LBS

Steiniger et al. “Fundation of Location Based Services“

Page 8: CONTEXT AWARENESS AND LOCALIZATION

Usage of LBS

Action Questions Operations

orientation & localisation locating

where am I? where is {person|object}?

positioning, geocoding, geodecoding

navigation navigating through space, planning a route

how do I get to {place name| address| xy}?

positioning, geocoding, geodecoding routing

search searching for people and objects

where is the {nearest | most relevant | &}{person | object}?

positioning, geocoding, calculating distance and area, finding relationships

identification identifying and recognising persons or objects

{what | who | how much} is {here | there}?

directory, selection, thematic/ spatial, search

event check checking for events; determining the state of objects

what happens {here | there}?

Page 9: CONTEXT AWARENESS AND LOCALIZATION

A Taxonomy of Localization Techniques

¨  Types of location (physical, symbolic, relative) ¨  Granularity of location ¨  How is infrastructure involved

¤  Infrastructure provides the location ¤  Mobile devices determine the location

¨  Indoor vs outdoor ¨  Signal used

¤  Wireless ¤  Inertial ¤  Optical ¤  Acoustic ¤  …

Page 10: CONTEXT AWARENESS AND LOCALIZATION

Some localization techniques

¨  GPS ¨  WiFi-based indoor localization ¨  Inertial navigation

Page 11: CONTEXT AWARENESS AND LOCALIZATION

How does GPS work?

11,500 km

12,500 km

11,200 km

Page 12: CONTEXT AWARENESS AND LOCALIZATION

How to measure the distance

¨  Solution 1 ¤  Generate the same copy of the signal at the exactly the same time on the satellites and

the ground unit

¤  Measure the time difference

Local: “I can’t fight this feeling any more,”���

delayed:“I cant fight this feeling any more,”���

Page 13: CONTEXT AWARENESS AND LOCALIZATION

Time Difference of Arrival (TDOA)

Mobile (xm,ym)

Anchor 1 (xA1,yA1)

Anchor 2 (xA2,yA2)

Anchor 3 (xA3,yA3)

3 anchors with known positions (at least) are required to find a 2D-position from a couple of TDOAs

In 3D, needs the 4th satellite!

4 unknowns (x, y, z, time) and 4 knowns Have the added benefit of synchronizing the clock on the ground unit

Page 14: CONTEXT AWARENESS AND LOCALIZATION

WiFi-based Indoor Localization

¨  Weaker signal and rich multipath indoor make GPS highly inaccurate or inaccessible

¨  WiFi infrastructure abundant Skyhook has 275 employees, 240 of whom are drivers recording Wi-Fi signals (2008) (why not yet killed by Google and Apple?)

Page 15: CONTEXT AWARENESS AND LOCALIZATION

WiFi Fingerprinting

¨  TOA, TODA, AOA are generally difficult to be estimated accurately with WiFi devices

¨  Small-scale fading leads to large variations of received WiFi signal even when the device is stationary

Page 16: CONTEXT AWARENESS AND LOCALIZATION

Solution approach

Site Survey Training

Model f: RSS -

> <x,y>

new RSS readings

Location

Other signatures can be used, e.g., CSI

Page 17: CONTEXT AWARENESS AND LOCALIZATION

Challenges with FP-based Approaches

¨  Time-varying ¨  Boils down to a supervised clustering approach ¨  Device heterogeneity ¨  Needs site survey

¤  Subject to changes ¨  Room-level accuracy ¨  Map required to determine the symbolic locations ¨  Solution: Other sensing modalities

¤  Inertial sensors: accelerometers, gyro sensor, magnetometer/compass

¤  Ranging sensors: acoustic, infrared, ultra-wide band RF, laser

Page 18: CONTEXT AWARENESS AND LOCALIZATION

Accelerometer readings while walking

¨  Potential energy to/from kinetic energy

6 Algorithm

The algorithm to detect peaks is simple in concept. It uses an obvious technique to find localmaxima in the magnitude of the sensed acceleration vector. The local maxima are assumedto correlate to footfalls.

First a low-pass filter is applied to the acceleration magnitude signal, giving the smoothedacceleration signal (Figure 2b to Figure 2c). Then a function approximating a derivative isapplied to the smoothed acceleration, giving the jerk (Figure 2c to Figure 2d). When thejerk crosses zero from positive to negative, the smoothed acceleration is at a local maximum.

0 0.5 1 1.5 2 2.5 3 3.5 4−2.5

−2

−1.5

−1

−0.5

0

0.5

1x 104

time (seconds)

acce

lera

tion

(a) Raw accelerometer readings.

0 0.5 1 1.5 2 2.5 3 3.5 40

0.5

1

1.5

2

2.5

3x 104

time (seconds)

acce

lera

tion

(b) Magnitude of the 3D accelerometer vector.

0 0.5 1 1.5 2 2.5 3 3.5 4−2000

0

2000

4000

6000

8000

10000

12000

14000

time (seconds)

acce

lera

tion

(c) Output of the low-pass filter.

0 0.5 1 1.5 2 2.5 3 3.5 4−2000

−1500

−1000

−500

0

500

1000

1500

2000

2500

time (seconds)

jerk

(d) Derivative of the low-pass filter.

Figure 2: A short section of a typical trace at the major stages of the step-detection algo-rithm.

5

Page 19: CONTEXT AWARENESS AND LOCALIZATION

Gait cycle z

x

y

X - + + - - + + 0

Z + - - + + - - +

Y + 0 - - 0 + + +

Page 20: CONTEXT AWARENESS AND LOCALIZATION

Inverted pendulum model

*AD Kuo, JM Donelan, Dynamic Principles of Gait and Their Clinical Implications

Page 21: CONTEXT AWARENESS AND LOCALIZATION

Step counting

Lowpass filter X, Y, Z

f(X, Y, Z)

Estimation of cutoff freq

Intermediate processing Peak detection

Page 22: CONTEXT AWARENESS AND LOCALIZATION

Stride length estimation

¨  Height based ¤ Height x .413 (female) ¤ Height x .415 (male)

¨  Speed related ¤ S = avb, where a = 1.22±0.11, b = 0.54± 0.10*

¨  Estimated online ¤ From height, length of leg, acceleration**

*Steven H. Collins and Arthur D. Kuo, Two independent contributions to step variability during over-ground human walking **Valérie Renaudin*, Melania Susi and Gérard Lachapelle, Step Length Estimation Using Handheld Inertial Sensors

Page 23: CONTEXT AWARENESS AND LOCALIZATION

Issues

¨  Miscount (over/under-estimation) occurs ¨  Sensor placement (on the body) matters ¨  Stride length estimation may be inaccurate ¨  Healthy vs unhealthy subject ¨  Age and gender matters

Page 24: CONTEXT AWARENESS AND LOCALIZATION

Location estimation using inertial sensors

Phone orientation estimation

Heading estimation

Accelerometer, Compass gyro

Step counting

MAP

Particle filter

Location

Stride length estimation

Page 25: CONTEXT AWARENESS AND LOCALIZATION

Challenges with inertial sensing

¨  Noise is cumulative ¨  Need to start from a known

location

Page 26: CONTEXT AWARENESS AND LOCALIZATION

Hybrid approaches

RF Survey Inertial

navigation

MAP

Initial position

update