SlideShare a Scribd company logo
CarSafe
Alerting Drowsy and Distracted
Drivers using Dual Cameras on
Smartphones
Chuang-Wen (Bing) You, Nicholas D. Lane,
Fanglin Chen, Rui Wang, Zhenyu Chen, Thomas J.
Bao, Martha Montes-de-Oca, Yuting Cheng, Mu
Lin,
Lorenzo Torresani, Andrew T. Campbell
0
Outline
•
•
•
•
•
•

Outline

Motivation
Approach
Design & implementation
Evaluation
Related work
Conclusion
Outline
•
•
•
•
•
•

Outline

Motivation
Approach
Design & implementation
Evaluation
Related work
Conclusion
CarSafe video

CarSafe video
What do you do if you can’t afford a top end car
with all those safety features?
Outline
•
•
•
•
•
•

Outline

Motivation
Approach
Design & implementation
Evaluation
Related work
Conclusion
CarSafe

Dual-camera app

What are detected:
1) The following distances
2) Lane trajectory categories

What are detected:
1) Face directions
2) Eye states

What are detected:
1) Speed
2) Turns
3) Lane trajectory categories
GPS

Accelerometer

Gyroscope
Dangerous driving events

Drowsy driving

Inattentive driving

Tailgating

Lane weaving

Careless lane change
Limited dual camera access
`
`

A blind spot in the front

Time
A blind spot in the back
Back camera

Switching delay
Front camera
Switching delay & frame processing time
About 500 ms ~ 3 seconds

Overhead

About 50 ms ~ 2 seconds

Switching delay
(Front-Back (ms))

Switching delay
(Back-Front (ms))

Frame processing time
(Face detection (ms))

Nokia Lumia

804

2856.3

2032.5

Samsung Galaxy S3

519

774

301.2

HTC One X

1030

939

680.3

iPhone 4S

446

503

70.92

iPhone 5

467

529

58.48

Model
Challenges for real-time processing of dual
camera video streams on smartphones
• Limited dual-camera access

Camera switching algorithm

• Events occurring in blind spots

Sensor fusion techniques to
provide blind spot hints
Adapt existing vision algorithms

• Varying mobile environment
• Real-time performance

Utilize multicore computation
resources
Outline
•
•
•
•
•
•

Outline

Motivation
Approach
Design & implementation
Evaluation
Related work
Conclusion
CarSafe architecture

Driver, road, & car classification pipelines
The Overview of CarSafe
alerts
user interface
dangerous driving conditions

dangerous driving event engine
driver states

road conditions

car events

multicore computation planner
driver classification pipeline
road classification pipeline
car classification pipeline
front/back images lane proximity blind spot hints
context-driven camera switching
front images
front-facing
camera

back images

back-facing
camera

sensor
readings

GPS, accel, gyr
GPS, accel,
gyro & compass
o & compass
Driver classification pipeline

Eye state classification
Driver Classification Pipeline

{closed, open}

Frontal face
detection
- Haar-like feature
- Adaboost classifier
for frontal faces

Eye region
estimation
- Active shape model

Eye center
localization
- Gradient-based
approach

Eye state
classification
- SURF features
- SVM classifier
Driver classification pipeline

Face directionClassification Pipeline
Driver classification

facing.right

Frontal face detection
- Haar-like feature
- Adaboost classifier
for frontal faces

Side face detection
- Haar-like feature
- Adaboost classifier
for side faces

Face direction
classification
- Left face  facing right
- Right face  facing left
Road classification pipeline

Lane trajectory detection

Lane crossing events

Decision tree

Crossing

Lane marker detection

Lane crossing detection

Lane
change

Lane
weaving

Trajectory
classification
Road classification pipeline

Following distance estimation
Image plane
N

M

d1

M

Focal point (F)

d2
f

N
R
Road surface

Car recognition
- Haar-like feature
- Adaboost classifier for cars

Z1

S
Z2

Distance estimation
- Pin-hole camera projection
Road classification pipeline

Speed, turn, and trajectory inferences
GPS samples
θ2

Inertial sensor readings

d3
θ1
d2

Multi-variate Gaussian

d1
Lane change / weaving
class
Speed estimation & Turn
turn
detection

Other class

Trajectory classification
- Provide as blind spot hints
CarSafe architecture

Dangerous driving eventof CarSafe
The Overview engine
alerts
user interface
dangerous driving conditions

dangerous driving event engine
driver states

road conditions

car events

multicore computation planner
driver classification pipeline
road classification pipeline
car classification pipeline
front/back images lane proximity blind spot hints
context-driven camera switching
front images

front-facing
camera

back images

back-facing
camera

sensor
readings

GPS, accel, gyr
GPS, accel,
o & compass
gyro & compass
Dangerous driving event engine

Dangerous Driving Event Engine

•

Drowsy Driving
– Measuring alertness, PERcentage of CLOSure of the eyelid (PERCLOS), and declares the
driver “drowsy” if PERCLOS exceeds a threshold

•

Inattentive Driving
– Not facing forward for longer than 3 seconds while the car is moving forward

•

Tailgating
– The safe following distance is not respected for a period longer than 3 seconds

•

Lane Weaving and Drifting
– The classifier infers lane weaving continuously for longer than 2 seconds

•

Careless Lane Change
– No head turn corresponding to a lane change event

Drowsy driving

Inattentive driving

Tailgating

Lane weaving

Careless lane change
CarSafe Architecture

Context-driven camera switching
The Overview of CarSafe
alerts
user interface
dangerous driving conditions

dangerous driving event engine
driver states

road conditions

car events

multicore computation planner
driver classification pipeline
road classification pipeline
car classification pipeline
front/back images lane proximity blind spot hints
context-driven camera switching
front images
front-facing
camera

back images

back-facing
camera

sensor
readings

GPS, accel, gyr
o & compass
Context-driven camera switching

Scheduled switching
Predict when to switch based on
current context (PERCLOS, speed
or following distance)

Tb
Tf

Tf

Time

Front camera
Back camera
Switching delay
Context-driven camera switching

Pre-emptive switching
Pre-empted by blind spot hints or lane proximity information
Original
switching point

Tf

Tf
Tb

Time

Pre-empted by a
blind spot hint
Front camera
Back camera
Switching delay
CarSafe architecture

Multicore computation planner
The Overview of CarSafe
alerts
user interface
dangerous driving conditions

dangerous driving event engine
driver states

road conditions

car events

multicore computation planner
driver classification pipeline
road classification pipeline
car classification pipeline
front/back images lane proximity blind spot hints
context-driven camera switching
back images
front images
front-facing
camera

back-facing
camera

sensor
readings

GPS, accel, gyr
o & compass
Multicore computation planner

Multi-core Computation Planner

• Leverage the multicore architecture of new smartphones to
perform classification

queue manager

dispatcher

drop outdated
frames

demultiplexer
events
CarSafe architecture

User interface
alerts
user interface
dangerous driving conditions

dangerous driving event engine
driver states

road conditions

car events

multicore computation planner
driver classification pipeline
road classification pipeline
car classification pipeline
front/back images lane proximity blind spot hints
context-driven camera switching
front images
front-facing
camera

back images

back-facing
camera

sensor
readings

GPS, accel, gyr
o & compass
User interface & implementation

User Interface
Outline
•
•
•
•
•
•

Outline

Motivation
Approach
Design & implementation
Evaluation
Related work
Conclusion
Evaluation

Evaluation

• Demonstrate CarSafe under real-world
conditions where people use the application
in the wild
– Overall accuracies of CarSafe & individual
pipelines
– Effectiveness of the context-driven camera
switching
– Performance improvement of the multicore
computation planner
Data collection

Data Collection

• Collecting datasets to adequately evaluate CarSafe

is challenging
• Two distinct experiments and datasets
– 12 participants (11 males and 1 female)
• Controlled car maneuvers (6 males)
• Normal daily driving (5 males and 1 female)

• Manually labeled dangerous driving events
Overall CarSafe accuracy

Overall CarSafe Accuracy

Condition

# of true # of false
positives positives

# of ground
truth

Precision

Recall

Drowsy driving

18

12

25

0.75
0.6

0.72

Tailgating

62

8

78

0.89

0.79

Careless lane change

12

2

14

0.86

0.86

Lane weaving

16

0

22

1.00

0.72

Inattentive driving

16

4

25

0.8

0.64

Overall

-

-

164

0.83

0.75

smiling

squinting
Overall accuracy for detecting low-level events
# of true
positives

Event

# of false
positives

# of ground
truth

Precision

Recall

Part 1: events detected from the driver classifier
facing.right

21

10

31

0.68

0.68

facing.left

23

6

26

0.79

0.88

Part 2: events detected from the road classifier
lane.change

21

1

24

0.95

0.88

lane.weaving

16

2

22

1.00

0.73

Part 3: events detected from the car classifier
turn.right

31

0

35

1.00

0.89

turn.left

22

2

25

0.92

0.88

Overall

-

-

-

0.89

0.82
Overall accuracy for classifying lane trajectory
events
• Mean precision and recall are 84% and 76%
respectively
Detected
# of data segments

Real

Lane change /
weaving

Other

Lane change /
weaving

190

30

Other

109

1127
Effectiveness of the context-driven camera
switching
• Compare carsafe to a static strategy (baseline)
• carsafe outperforms baseline

The optimal
parameter setting

baseline
carsafe
Multicore computation planner benchmarks

Multi-core Computation Planner

Front fps: 5  10
Back fps: 4  11
Outline
•
•
•
•
•
•

Outline

Motivation
Approach
Design & implementation
Evaluation
Related work
Conclusion
Related work

Related Work
Cost

Fixed vehiclemounted devices

$$

Device

Detected event

Fixed cameras

Driver drowsiness, Lane departure,
or following distance

Cameras,
radar, and
ultrasonic sensors

Collision avoidance, night vision,
and pedestrian detection

Top-end cars

$$$$

Existing phonebased systems

$

Smartphones

Collision & off-road warnings

$

Dual-camera
Smartphones

Drowsy driving, inattentive
driving, tailgating, lane weaving,
and careless lane change

CarSafe
Outline
•
•
•
•
•
•

Outline

Motivation
Approach
Design & implementation
Evaluation
Related work
Conclusion
Conclusion

Conclusion

• Propose the design and implementation of CarSafe and
evaluate CarSafe in a small field trial
• Explore how to design computation-intensive mobile apps
– Where are the performance bottlenecks?

• Apply and tune vision algorithms for mobile sensing apps
– How well existing vision algorithms can achieve under varying mobile
settings?

• Our future plans
– Improve the current prototype
– Test CarSafe on other phone models or platforms

• Stimulate dual camera app interest
– Encourage major platform vendors to solve this dual camera problem
Drive Safe.

Be Safe.

Think CarSafe.

0

More Related Content

Similar to CarSafe (MobiSys 2013)

tatacara kalibrasi Kendaraan.ppt
tatacara kalibrasi Kendaraan.ppttatacara kalibrasi Kendaraan.ppt
tatacara kalibrasi Kendaraan.ppt
darmadi ir,mm
 
vehicle calibration.ppt
vehicle calibration.pptvehicle calibration.ppt
vehicle calibration.ppt
darmadi ir,mm
 
Location solutions for Intelligent Transport Systems (ITS)
Location solutions for Intelligent Transport Systems (ITS)Location solutions for Intelligent Transport Systems (ITS)
Location solutions for Intelligent Transport Systems (ITS)
techUK
 
Seminar 5520 (Li Li)
Seminar 5520 (Li Li)Seminar 5520 (Li Li)
Seminar 5520 (Li Li)黎 李
 
Yuka
Yuka Yuka
Yuka
Ajay kumar
 
Online Camer Calibration
Online Camer CalibrationOnline Camer Calibration
Online Camer Calibration
Fei-Fei Zheng
 
Mercedes - Autonomous Driving - The S500 Intelligent drive
Mercedes - Autonomous Driving - The S500 Intelligent driveMercedes - Autonomous Driving - The S500 Intelligent drive
Mercedes - Autonomous Driving - The S500 Intelligent drive
Gonzague Dambricourt
 
AUTONOMOUS VEHICLES 2.pdf
AUTONOMOUS VEHICLES 2.pdfAUTONOMOUS VEHICLES 2.pdf
AUTONOMOUS VEHICLES 2.pdf
Javierwilsongrillo
 
Driving behavior for ADAS and Autonomous Driving
Driving behavior for ADAS and Autonomous DrivingDriving behavior for ADAS and Autonomous Driving
Driving behavior for ADAS and Autonomous Driving
Yu Huang
 
Model autonomous car
Model autonomous carModel autonomous car
Model autonomous car
GowthamSureshKumar1
 
In-Car Speech User Interfaces and their Effects on Driver Cognitive Load
In-Car Speech User Interfaces and their Effects on Driver Cognitive LoadIn-Car Speech User Interfaces and their Effects on Driver Cognitive Load
In-Car Speech User Interfaces and their Effects on Driver Cognitive Load
Andrew Kun
 
Lane Detection and Obstacle Aviodance
Lane Detection and Obstacle AviodanceLane Detection and Obstacle Aviodance
Lane Detection and Obstacle AviodanceNishanth Sriramoju
 
Smart Enabling Technologies for Automated Driving
Smart Enabling Technologies for Automated DrivingSmart Enabling Technologies for Automated Driving
Smart Enabling Technologies for Automated Driving
ST_World
 
Lane Detection and Obstacle Aviodance Revised
Lane Detection and Obstacle Aviodance RevisedLane Detection and Obstacle Aviodance Revised
Lane Detection and Obstacle Aviodance RevisedPhanindra Amaradhi
 
Estimating Potential Safety Benefits for Advanced Vehicle Technologies
Estimating Potential Safety Benefits for Advanced Vehicle TechnologiesEstimating Potential Safety Benefits for Advanced Vehicle Technologies
Estimating Potential Safety Benefits for Advanced Vehicle Technologies
Texas A&M Transportation Institute
 
Driving Behavior for ADAS and Autonomous Driving III
Driving Behavior for ADAS and Autonomous Driving IIIDriving Behavior for ADAS and Autonomous Driving III
Driving Behavior for ADAS and Autonomous Driving III
Yu Huang
 
Realtime Road Lane Detection
Realtime Road Lane DetectionRealtime Road Lane Detection
Realtime Road Lane Detection
IRJET Journal
 
A017430110
A017430110A017430110
A017430110
IOSR Journals
 
Alibaba Cloud’s ET City Brain - Empowering Cities to Think
Alibaba Cloud’s ET City Brain - Empowering Cities to ThinkAlibaba Cloud’s ET City Brain - Empowering Cities to Think
Alibaba Cloud’s ET City Brain - Empowering Cities to Think
Alibaba Cloud
 

Similar to CarSafe (MobiSys 2013) (20)

tatacara kalibrasi Kendaraan.ppt
tatacara kalibrasi Kendaraan.ppttatacara kalibrasi Kendaraan.ppt
tatacara kalibrasi Kendaraan.ppt
 
vehicle calibration.ppt
vehicle calibration.pptvehicle calibration.ppt
vehicle calibration.ppt
 
Location solutions for Intelligent Transport Systems (ITS)
Location solutions for Intelligent Transport Systems (ITS)Location solutions for Intelligent Transport Systems (ITS)
Location solutions for Intelligent Transport Systems (ITS)
 
Seminar 5520 (Li Li)
Seminar 5520 (Li Li)Seminar 5520 (Li Li)
Seminar 5520 (Li Li)
 
Yuka
Yuka Yuka
Yuka
 
Online Camer Calibration
Online Camer CalibrationOnline Camer Calibration
Online Camer Calibration
 
Mercedes - Autonomous Driving - The S500 Intelligent drive
Mercedes - Autonomous Driving - The S500 Intelligent driveMercedes - Autonomous Driving - The S500 Intelligent drive
Mercedes - Autonomous Driving - The S500 Intelligent drive
 
AUTONOMOUS VEHICLES 2.pdf
AUTONOMOUS VEHICLES 2.pdfAUTONOMOUS VEHICLES 2.pdf
AUTONOMOUS VEHICLES 2.pdf
 
Driving behavior for ADAS and Autonomous Driving
Driving behavior for ADAS and Autonomous DrivingDriving behavior for ADAS and Autonomous Driving
Driving behavior for ADAS and Autonomous Driving
 
Model autonomous car
Model autonomous carModel autonomous car
Model autonomous car
 
In-Car Speech User Interfaces and their Effects on Driver Cognitive Load
In-Car Speech User Interfaces and their Effects on Driver Cognitive LoadIn-Car Speech User Interfaces and their Effects on Driver Cognitive Load
In-Car Speech User Interfaces and their Effects on Driver Cognitive Load
 
Lane Detection and Obstacle Aviodance
Lane Detection and Obstacle AviodanceLane Detection and Obstacle Aviodance
Lane Detection and Obstacle Aviodance
 
Smart Enabling Technologies for Automated Driving
Smart Enabling Technologies for Automated DrivingSmart Enabling Technologies for Automated Driving
Smart Enabling Technologies for Automated Driving
 
Lane Detection and Obstacle Aviodance Revised
Lane Detection and Obstacle Aviodance RevisedLane Detection and Obstacle Aviodance Revised
Lane Detection and Obstacle Aviodance Revised
 
Estimating Potential Safety Benefits for Advanced Vehicle Technologies
Estimating Potential Safety Benefits for Advanced Vehicle TechnologiesEstimating Potential Safety Benefits for Advanced Vehicle Technologies
Estimating Potential Safety Benefits for Advanced Vehicle Technologies
 
Seminar.1pptx
Seminar.1pptxSeminar.1pptx
Seminar.1pptx
 
Driving Behavior for ADAS and Autonomous Driving III
Driving Behavior for ADAS and Autonomous Driving IIIDriving Behavior for ADAS and Autonomous Driving III
Driving Behavior for ADAS and Autonomous Driving III
 
Realtime Road Lane Detection
Realtime Road Lane DetectionRealtime Road Lane Detection
Realtime Road Lane Detection
 
A017430110
A017430110A017430110
A017430110
 
Alibaba Cloud’s ET City Brain - Empowering Cities to Think
Alibaba Cloud’s ET City Brain - Empowering Cities to ThinkAlibaba Cloud’s ET City Brain - Empowering Cities to Think
Alibaba Cloud’s ET City Brain - Empowering Cities to Think
 

Recently uploaded

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 

Recently uploaded (20)

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 

CarSafe (MobiSys 2013)

  • 1. CarSafe Alerting Drowsy and Distracted Drivers using Dual Cameras on Smartphones Chuang-Wen (Bing) You, Nicholas D. Lane, Fanglin Chen, Rui Wang, Zhenyu Chen, Thomas J. Bao, Martha Montes-de-Oca, Yuting Cheng, Mu Lin, Lorenzo Torresani, Andrew T. Campbell 0
  • 5. What do you do if you can’t afford a top end car with all those safety features?
  • 6.
  • 8. CarSafe Dual-camera app What are detected: 1) The following distances 2) Lane trajectory categories What are detected: 1) Face directions 2) Eye states What are detected: 1) Speed 2) Turns 3) Lane trajectory categories GPS Accelerometer Gyroscope
  • 9. Dangerous driving events Drowsy driving Inattentive driving Tailgating Lane weaving Careless lane change
  • 10. Limited dual camera access ` ` A blind spot in the front Time A blind spot in the back Back camera Switching delay Front camera
  • 11. Switching delay & frame processing time About 500 ms ~ 3 seconds Overhead About 50 ms ~ 2 seconds Switching delay (Front-Back (ms)) Switching delay (Back-Front (ms)) Frame processing time (Face detection (ms)) Nokia Lumia 804 2856.3 2032.5 Samsung Galaxy S3 519 774 301.2 HTC One X 1030 939 680.3 iPhone 4S 446 503 70.92 iPhone 5 467 529 58.48 Model
  • 12. Challenges for real-time processing of dual camera video streams on smartphones • Limited dual-camera access Camera switching algorithm • Events occurring in blind spots Sensor fusion techniques to provide blind spot hints Adapt existing vision algorithms • Varying mobile environment • Real-time performance Utilize multicore computation resources
  • 14. CarSafe architecture Driver, road, & car classification pipelines The Overview of CarSafe alerts user interface dangerous driving conditions dangerous driving event engine driver states road conditions car events multicore computation planner driver classification pipeline road classification pipeline car classification pipeline front/back images lane proximity blind spot hints context-driven camera switching front images front-facing camera back images back-facing camera sensor readings GPS, accel, gyr GPS, accel, gyro & compass o & compass
  • 15. Driver classification pipeline Eye state classification Driver Classification Pipeline {closed, open} Frontal face detection - Haar-like feature - Adaboost classifier for frontal faces Eye region estimation - Active shape model Eye center localization - Gradient-based approach Eye state classification - SURF features - SVM classifier
  • 16. Driver classification pipeline Face directionClassification Pipeline Driver classification facing.right Frontal face detection - Haar-like feature - Adaboost classifier for frontal faces Side face detection - Haar-like feature - Adaboost classifier for side faces Face direction classification - Left face  facing right - Right face  facing left
  • 17. Road classification pipeline Lane trajectory detection Lane crossing events Decision tree Crossing Lane marker detection Lane crossing detection Lane change Lane weaving Trajectory classification
  • 18. Road classification pipeline Following distance estimation Image plane N M d1 M Focal point (F) d2 f N R Road surface Car recognition - Haar-like feature - Adaboost classifier for cars Z1 S Z2 Distance estimation - Pin-hole camera projection
  • 19. Road classification pipeline Speed, turn, and trajectory inferences GPS samples θ2 Inertial sensor readings d3 θ1 d2 Multi-variate Gaussian d1 Lane change / weaving class Speed estimation & Turn turn detection Other class Trajectory classification - Provide as blind spot hints
  • 20. CarSafe architecture Dangerous driving eventof CarSafe The Overview engine alerts user interface dangerous driving conditions dangerous driving event engine driver states road conditions car events multicore computation planner driver classification pipeline road classification pipeline car classification pipeline front/back images lane proximity blind spot hints context-driven camera switching front images front-facing camera back images back-facing camera sensor readings GPS, accel, gyr GPS, accel, o & compass gyro & compass
  • 21. Dangerous driving event engine Dangerous Driving Event Engine • Drowsy Driving – Measuring alertness, PERcentage of CLOSure of the eyelid (PERCLOS), and declares the driver “drowsy” if PERCLOS exceeds a threshold • Inattentive Driving – Not facing forward for longer than 3 seconds while the car is moving forward • Tailgating – The safe following distance is not respected for a period longer than 3 seconds • Lane Weaving and Drifting – The classifier infers lane weaving continuously for longer than 2 seconds • Careless Lane Change – No head turn corresponding to a lane change event Drowsy driving Inattentive driving Tailgating Lane weaving Careless lane change
  • 22. CarSafe Architecture Context-driven camera switching The Overview of CarSafe alerts user interface dangerous driving conditions dangerous driving event engine driver states road conditions car events multicore computation planner driver classification pipeline road classification pipeline car classification pipeline front/back images lane proximity blind spot hints context-driven camera switching front images front-facing camera back images back-facing camera sensor readings GPS, accel, gyr o & compass
  • 23. Context-driven camera switching Scheduled switching Predict when to switch based on current context (PERCLOS, speed or following distance) Tb Tf Tf Time Front camera Back camera Switching delay
  • 24. Context-driven camera switching Pre-emptive switching Pre-empted by blind spot hints or lane proximity information Original switching point Tf Tf Tb Time Pre-empted by a blind spot hint Front camera Back camera Switching delay
  • 25. CarSafe architecture Multicore computation planner The Overview of CarSafe alerts user interface dangerous driving conditions dangerous driving event engine driver states road conditions car events multicore computation planner driver classification pipeline road classification pipeline car classification pipeline front/back images lane proximity blind spot hints context-driven camera switching back images front images front-facing camera back-facing camera sensor readings GPS, accel, gyr o & compass
  • 26. Multicore computation planner Multi-core Computation Planner • Leverage the multicore architecture of new smartphones to perform classification queue manager dispatcher drop outdated frames demultiplexer events
  • 27. CarSafe architecture User interface alerts user interface dangerous driving conditions dangerous driving event engine driver states road conditions car events multicore computation planner driver classification pipeline road classification pipeline car classification pipeline front/back images lane proximity blind spot hints context-driven camera switching front images front-facing camera back images back-facing camera sensor readings GPS, accel, gyr o & compass
  • 28. User interface & implementation User Interface
  • 30. Evaluation Evaluation • Demonstrate CarSafe under real-world conditions where people use the application in the wild – Overall accuracies of CarSafe & individual pipelines – Effectiveness of the context-driven camera switching – Performance improvement of the multicore computation planner
  • 31. Data collection Data Collection • Collecting datasets to adequately evaluate CarSafe is challenging • Two distinct experiments and datasets – 12 participants (11 males and 1 female) • Controlled car maneuvers (6 males) • Normal daily driving (5 males and 1 female) • Manually labeled dangerous driving events
  • 32. Overall CarSafe accuracy Overall CarSafe Accuracy Condition # of true # of false positives positives # of ground truth Precision Recall Drowsy driving 18 12 25 0.75 0.6 0.72 Tailgating 62 8 78 0.89 0.79 Careless lane change 12 2 14 0.86 0.86 Lane weaving 16 0 22 1.00 0.72 Inattentive driving 16 4 25 0.8 0.64 Overall - - 164 0.83 0.75 smiling squinting
  • 33. Overall accuracy for detecting low-level events # of true positives Event # of false positives # of ground truth Precision Recall Part 1: events detected from the driver classifier facing.right 21 10 31 0.68 0.68 facing.left 23 6 26 0.79 0.88 Part 2: events detected from the road classifier lane.change 21 1 24 0.95 0.88 lane.weaving 16 2 22 1.00 0.73 Part 3: events detected from the car classifier turn.right 31 0 35 1.00 0.89 turn.left 22 2 25 0.92 0.88 Overall - - - 0.89 0.82
  • 34. Overall accuracy for classifying lane trajectory events • Mean precision and recall are 84% and 76% respectively Detected # of data segments Real Lane change / weaving Other Lane change / weaving 190 30 Other 109 1127
  • 35. Effectiveness of the context-driven camera switching • Compare carsafe to a static strategy (baseline) • carsafe outperforms baseline The optimal parameter setting baseline carsafe
  • 36. Multicore computation planner benchmarks Multi-core Computation Planner Front fps: 5  10 Back fps: 4  11
  • 38. Related work Related Work Cost Fixed vehiclemounted devices $$ Device Detected event Fixed cameras Driver drowsiness, Lane departure, or following distance Cameras, radar, and ultrasonic sensors Collision avoidance, night vision, and pedestrian detection Top-end cars $$$$ Existing phonebased systems $ Smartphones Collision & off-road warnings $ Dual-camera Smartphones Drowsy driving, inattentive driving, tailgating, lane weaving, and careless lane change CarSafe
  • 40. Conclusion Conclusion • Propose the design and implementation of CarSafe and evaluate CarSafe in a small field trial • Explore how to design computation-intensive mobile apps – Where are the performance bottlenecks? • Apply and tune vision algorithms for mobile sensing apps – How well existing vision algorithms can achieve under varying mobile settings? • Our future plans – Improve the current prototype – Test CarSafe on other phone models or platforms • Stimulate dual camera app interest – Encourage major platform vendors to solve this dual camera problem

Editor's Notes

  1. What are detected