nericell: rich monitoring of roads and traffic using ... · –spike: instantaneous > 10x mean...

39
Nericell: Rich Monitoring of Roads and Traffic Using Mobile Smartphones Joint work with Prashanth Mohan & Venkat Padmanabhan (in ACM SenSys 2008) Mobility, Networks, and Systems Group Microsoft Research India 1 Ram Ramjee

Upload: others

Post on 27-May-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Nericell: Rich Monitoring of Roads and Traffic Using Mobile Smartphones

Joint work with Prashanth Mohan & Venkat Padmanabhan

(in ACM SenSys 2008)

Mobility, Networks, and Systems Group

Microsoft Research India1

Ram Ramjee

Page 2: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Road and Traffic Monitoring

2

Bangalore ≠ <your favorite developed city>

Courtesy: FreeDigitalPhotos.net

Page 3: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

What’s Different?

3

• Varied vehicle types

• Liberal honking

• Chaotic intersections

• Potholes

• Road bumps

• …

Need to go beyond GPS-based vehicle tracking!

Page 4: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Widespread distribution of mobile phones

4

Road and Traffic Monitoring

• Without deployed infrastructure

• Using existing mass of mobile phones

Page 5: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Mobile Phones

0

20

40

60

80

100

120

140

160

180

2003 2004 2005 2006 2007 2008 2009 2010 2011 2012

S

a

l

e

s

Year

Growth in Phone Sales (in millions) in North America

Basic Phones Smart Phones

~4 billion phones worldwide

~400 million phones in India

~10 million new connections every month in India

115 million of 1 billion phones sold worldwide in 2007 were smartphones

Smartphone market share expected to reach nearly 50% by 2012 in North America

5

Page 7: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Distributed Sensing using Mobiles

7

Internet

• Applications

– Road & traffic monitoring

– On-demand webcam

– Human-powered search

– …

Page 8: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Outline

• Mobile smartphone-based distributed sensing

• Nericell design and evaluation

• PRISM platform

• Related work

• Microsoft Research India

8

Page 9: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Nericell

• Idea: mobile smartphone-based sensing– enables rich monitoring

– avoids dependence on infrastructure

• Challenges: energy, automated operation, privacy

• Key components– accelerometer road and drive quality

– microphone honk detection, vehicle type

– GSM radio lightweight localization

• Sensors also used in combination

9

Page 10: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Energy is a key challenge

Resource Power (mW)

Bluetooth 20

Wi-Fi 770

GPS 620

Microphone 225

Accelerometer 2

Energy consumption on iPaq hw6965

10

Page 11: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Accelerometer-based Sensing

• Advantage: low energy cost

• Challenge: “disorientation”

• Analyses:

– braking detection

– bump/pothole detection

– pedestrian versus stop-and-go traffic

11

Page 12: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Braking Detection

• Braking impacts drive quality

• Two approaches:

– GPS: high energy cost (600 mW on iPAQ hw6965)

– Accelerometer: much cheaper (2 mW + 30mW)

• Accelerometer-based braking detection:

X

Z

Y

-1

-0.5

0

0.5

1

1.5

2

0 10 20 30 40

Acc

ele

rati

on

(g)

Time (seconds)

x,X y,Y z,Z

Threshold T(g) False Negative False Positive

0.12(4 sec)

11% 16%

12

Page 13: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Virtual Reorientation

-1.5

-1

-0.5

0

0.5

1

1.5

0 10 20 30 40

Acc

ele

rati

on

(g)

Time (seconds)

x y z

X

Z

Y

xz

y

-1

-0.5

0

0.5

1

1.5

2

0 10 20 30 40

Acc

ele

rati

on

(g)

Time (seconds)

x,X y,Y z,Z

braking

gravity

13

Page 14: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Virtual Reorientation

• Euler Angles:– Any orientation of the accelerometer can be

represented by Z-Y-Z (and other equivalent) rotations

• Three Unknowns (angles): – pre-rotation (fpre),

– tilt (qtilt),

– post-rotation (ypost)

• Knowns: – Gravity along Z

– Braking along X

14

Page 15: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Virtual ReorientationUsing Gravity

• Ideal orientation (X,Y,Z): aX = 0; aY=0; aZ=1(g);• Current orientation (x,y,z) with force ax , ay , az

• az = aZ cos (qtilt)

qtilt = cos-1 (az )

• ax = aZ cos (fpre) sin (qtilt)

• ay = aZ sin (fpre) sin (qtilt)

fpre = tan-1 (ay / ax )

15

Page 16: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Virtual ReorientationUsing Braking

• Use GPS to identify braking

• Ideal orientation (X,Y,Z): aX = large; aY=0; aZ=1(g);

• Current orientation (x,y,z) with force ax , ay , az

and angles qtilt and fpre

• Find ypost such that force along X is maximized

ypost =

)sin()cos())sin()cos((

)cos()sin(tan 1

tiltztiltpreyprex

preyprex

aaa

aa

qq

16

Page 17: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Automatic Virtual Reorientation

-1.5

-1

-0.5

0

0.5

1

1.5

0 10 20 30 40

Acc

ele

rati

on

(g)

Time (seconds)

x y z

X

Z

Y

xz

y

braking

gravity

-1

-0.5

0

0.5

1

1.5

2

0 10 20 30 40

Acc

ele

rati

on

(g)

Time (seconds)

x,X y,Y z,Z

Turn on GPS

-1

-0.5

0

0.5

1

1.5

2

0 10 20 30 40

Acc

ele

rati

on

(g)

Time (seconds)

X' Y' Z'

17

Page 18: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Results: Virtual Reorientation

Sr No pre/qtilt/ypost

Cross correlation

Well oriented –Well oriented

Reoriented –Well oriented

1 7° /38° /106° 0.90 0.91

2 174° /34° /-107° 0.75 0.87

3 174° /34° /-107° 0.94 0.90

4 4° /42° /12° 0.74 0.68

5 3° /44° /-1° 0.76 0.79

6 -80° /42° /121° 0.78 0.73

18

Page 19: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Braking detection with Virtual Reorientation

19

False negatives False positives

Well-oriented 11% 16%

Virtually reoriented 11% 18%

Page 20: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Pothole Detection

20

Page 21: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Pothole Detection

0

0.5

1

1.5

2

2.5

3

0 0.2 0.4 0.6 0.8 1

Z ac

cele

rati

on

(g)

Time (seconds)

High speed (≥ 25 kmph)

z-peak: look for significant spike

Page 22: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Pothole Detection

22

Page 23: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Pothole Detection

0

0.5

1

1.5

2

2.5

3

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9

Z ac

cele

rati

on

(g)

Time (seconds)

dip

Low speed (< 25 kmph)

z-sus: look for sustained dip

Page 24: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

DetectorvSpeed < 25 kmph Speed > 25 kmph

False Neg False Pos False Neg False Pos

Z-Peak(1.75g)

83% 0% 41% 8%

Results: Pothole Detection

Training data: 5km long drive with 44 bumpsTest data: 35km long drive with 101 bumpsFalse Negative: missed pothole (not so bad)

False Positive: incorrectly identified as pothole (not so good )

ThresholdSpeed < 25 kmph Speed > 25 kmph

False Neg False Pos False Neg False Pos

Z-sus(0.8g, 20ms)

37% 14% 0% 136%

Z-peak(1.45g)

65% 21% 3% 49%

24

Page 25: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Determining Location

• Why not just GPS?– coverage (indoors, urban canyons, …)

– time to lock (~26 secs even with warm start)

– energy (~600 mW on iPAQ 6965)

– not all phones have it

• Alternative: GSM tower matching– match towers seen against those in training set

– widely accessible, fast, “zero” energy

– location: median error: 130m, 90th %tile: 610m

– speed: median error: 3.4 kmph, 90th %tile: 11.2 kmph

25

Page 26: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Locating a Pothole

• Accelerometer is cheap, so keep on continuously

• When bump is detected, use GSM tower matching to estimate location– median error: 130 m, 90th percentile: 610 m

• Send bump report to server

• If several reports in same vicinity, server triggers GPS on other phones for location fix

• Sample result: GPS turned on only 3.2% of the time on a 20 km drive with one point of interest

26

Page 27: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Pedestrians vs. Stop-and-Go Traffic

-3

-2.5

-2

-1.5

-1

-0.5

0

0.5

1

1.5

2

2.5

0 10 20 30 40 50 60

Acc

ele

rati

on

(g)

Time (seconds)

Pedestrian Car

Accelerometer helps disambiguate between the two

Page 28: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Microphone-based Sensing

• Advantage: ubiquity

• Challenge: energy, privacy

• Analyses:

– honk detection: triggered when accelerometer indicates a lot of braking

– vehicle type: exposed versus enclosed vehicle

28

Page 29: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Honk Detection

29

SIGNAL

5kHz

4kHz

3kHz

2kHz

1kHz

1sec 1.5sec 2sec 2.5sec 3sec

Time

Freq

uen

cy

3.5sec

honking

max sensitivityof human ear

Page 30: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Honk Detection• Efficient detector suitable for mobiles

– discrete Fourier transform on 100 ms of audio– look for spikes in the 2.5-4 kHz range– spike: instantaneous > 10x mean

• Performance: 5.8% of CPU on the HP iPAQ• Accuracy:

– false negative rate:

– false positive rate: negligible in typical traffic conditions• sirens, alarms, …• chirping of bird!

30

Phone Exposed Enclosed

HP iPAQ 19% 51%

iMate KJAM 0% 23%

Page 31: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Exposed vs. Enclosed Vehicles

Outside car Inside car

Neighbourhood comparison to avoid absolute thresholds

Page 32: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Triggered Sensing

• Use cheap sensors to trigger the activation of expensive sensors when needed

• Examples:

– Traffic chaos: accelerometer info to trigger microphone

– Localization: GSM tower info to trigger GPS

– …

32

Page 33: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Integration with Maps

Find least stressful route33

Bad inter-

section

Bumpy stretch

Bumpy stretch

Bad inter-

section

Start

Page 34: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

PRISM: Platform for Remote Sensing with Mobiles

Co

mm

un

icat

ion

Loca

lizat

ion

Sen

sin

g

Acc

ou

nti

ng

Resource Management

PRISM System Services

Software Sandbox

Accounting

Task distribution

Data aggregation

Server

Mobile Node

34

Programming model

Resource mgmt

Base OS

Page 35: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Related Work

• GPS-based vehicle tracking– OnStar, Surface street traffic estimation (MobiSys’07)

• Infrastructure for traffic monitoring (e.g., cameras)– SmartTrek, Busview

• Traffic estimation using tower-based tracking of mobiles– BTIS

• Dedicated vehicle based sensors– CarTel, Pothole Patrol

35

Page 36: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

Summary

• Diversity of road and traffic conditions => need to go beyond GPS-based monitoring

• Nericell: rich monitoring of road and traffic conditions using smartphones

• http://research.microsoft.com/research/mns

36

Page 37: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

37

Microsoft Research India

• Established in 2005• Goals:

– high-quality research– internal tech transfer– external collaboration/service

• ~50 full-time staff– researchers, post-docs, assistant

researchers, software engineers– visiting researchers, interns

• Seven areas of research– algorithms– crypto, security, and applied math– digital geographics – mobility, networks, and systems – multilingual systems– rigourous software engineering– technologies for emerging markets

Page 38: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

3838

Research Staff

Bhavish AggarwalAssistant Researcher (IIT Mumbai)Network diagnostics, wireless networking

Ranjita BhagwanResearcher (IIT KharagpurUCSD IBM Research)

Network management, distributed systems

Tathagata DasAssistant Researcher (IIT Kharagpur)Network management, P2P systems

Vishnu NavdaResearcher (Bangalore UMS IDC Stonybrook)

Wireless networking, mobile systems

Venkat Padmanabhan (Research Manager)Sr Researcher (IIT Delhi Berkeley MSR-Redmond)

Mobile systems, network management

Ram RamjeeSr Researcher (IIT Chennai UMass Bell Labs)

WAN acceleration, wireless networking

Visiting Researchers from academia

Kameswari Chebrolu (IIT Mumbai)Bhaskaran Raman (IIT Mumbai)Geoff Voelker (UC San Diego)

Interns

9 interns in 2007 (5 from India, 4 from the U.S.)

9 interns in 2008 (4 from India, 5 from the U.S.)

“Graduated” Assistant Researchers

Ganesh Ananthanarayanan (Berkeley)Lenin Ravindranath (MIT)Prashanth Mohan( ??)

Mobility, Networks, And Systems Group

Group formed in Spring 2007

Page 39: Nericell: Rich Monitoring of Roads and Traffic Using ... · –spike: instantaneous > 10x mean •Performance: 5.8% of CPU on the HP iPAQ •Accuracy: –false negative rate: –false

39

Wireless Networking

COMBINE: Collaborative Downloading Using WLAN and WWAN (ACM MobiSys 2007)

Neighbourcast: Enabling Communication Among Nearby Clients (ACM HotMobile 2008)

Multicast in Wireless LANs

Smartphone energy modeling and optimization

Ongoing and Completed Research

39

Network Management and Performance

NetPrints: Home Network Configuration Management(USENIX NSDI 2009)

CoCoNet: Content Compression in Networks(ACM SIGMETRICS 2009)

Mobile and Sensor Systems

SPACE: Lightweight Peering (ACM HotNets 2006)

Nericell: Rich monitoring of Roads and Traffic Using Smartphones (ACM SenSys 2008)

PRISM: Platform for Remote Sensing with Mobiles

SixthSense: RFID-based Enterprise Intelligence (ACM MobiSys 2008)

Other

Insight: Distributed Systems Profiling (ACM HotMetrics 2008)

Defending Against Code Geometry Attacks

More info: http://research.microsoft.com/research/mns/