An Energy-Aware Method for the Joint Recognition of Activities and - - PowerPoint PPT Presentation

an energy aware method for the joint recognition of
SMART_READER_LITE
LIVE PREVIEW

An Energy-Aware Method for the Joint Recognition of Activities and - - PowerPoint PPT Presentation

An Energy-Aware Method for the Joint Recognition of Activities and Gestures Using Wearable S ensors Joseph Korpela 1 Kazuyuki Takase 1 Takahiro Hirashima 1 Takuya Maekawa 1 Julien Eberle 2 Dipanj an Chakraborty 3 Karl Aberer


slide-1
SLIDE 1

An Energy-Aware Method for the Joint Recognition

  • f Activities and Gestures

Using Wearable S ensors

Joseph Korpela1 ・ Kazuyuki Takase1 ・ Takahiro Hirashima1 ・ Takuya Maekawa1 Julien Eberle2 ・ Dipanj an Chakraborty3 ・ Karl Aberer2

1Osaka University, Graduate S

chool of Information S cience and Technology

2École Polytechnique Fédérale de Lausanne 3IBM Research India

slide-2
SLIDE 2

Activity/ Gesture Recognition

Gesture: Left To Right

Wearable Devices Use S ensors to Collect Accelerometer Data Gesture Recognition

Device Input

Activity Recognition

Runs 30 min daily

Remote Patient Monitoring

slide-3
SLIDE 3

Feature Extraction

Activity Recognition

Training Process Recognition Process

0.8 0.5 0.0 … 0.0 0.7 0.4 0.1 … 0.1 0.8 0.3 0.0 … 0.0 1.0 0.6 0.2 … 0.0

Feature Vectors

… …

Mean Var1 RMS

2

ZC3

1Var: Variance 2RMS

: Root Mean S quare

3ZC: Zero Crossing

brush teeth Feature Vectors Feature Vectors labels

+

1.0 0.6 0.2 … 0.0 … 0.9 0.7 0.3 … 0.4 0.8 0.5 0.0 … 0.0 0.7 0.4 0.1 … 0.1 …

brush teeth brush teeth

labeled training data C4.5 Decision Tree

Build recognit ion model

unlabeled data estimated labels

brush teeth

run

Feature Extraction and Recognition are Both Inexpensive

slide-4
SLIDE 4

Gesture Recognition

Training Process Recognition Process

Raw Data labels

+

labeled training data

S t ore several examples

  • f each class

Raw Data left-to-right

… …

Raw Data

kNN Classifier

Raw Data

estimated labels unlabeled data

Class DTW Distance left-to-right 1.2 right-to-left 1.5 … …

Uses DTW t o find most similar st ored example

Gesture Recognition is

Expensive

right-to-left left-to-right left-to-right right-to-left Raw Data Raw Data Raw Data Raw Data left-to-right

Dynamic Time Warping (DTW)

  • Elastic Distance Measurement
  • Allows comparison of signals

that may vary in time or speed

slide-5
SLIDE 5

Energy-Aware Recognition

Energy-Aware Activity Recognition

 Reducing sampling rates of sensors/ shutting down

sensors

 Assumes many consecutive data segments of same

activity

Energy-Aware Gesture Recognition

 Assumes most data segments don’ t have target actions

Our research: j oint recognition of activities and gestures

 Must recognize all data segments

Previous research has focused on activity recognition or gesture recognition, not both

if recognition_result == “ run” : sleep(3) ax, ay, az = sample_accelerometer() if 𝑏𝑦 𝑏𝑧 𝑏𝑨 𝐻 > 0.15G: gx, gy, gz = sample_gyroscope() if 𝑕𝑦 𝑕𝑧 𝑕𝑨 > 25: transmit_data()[1]

  • 1. Park, T

., Lee, J., Hwang, I., Y

  • o, C., Nachman, L., and S
  • ng, J. E-gesture: a collaborative architecture for energy-efficient

gesture recognition with hand-worn sensor and mobile devices. In S enS ys 2011 (2011), 260– 273.

Brush teeth None Left- right

slide-6
SLIDE 6

Research Goal

Transmit Raw Data or Labels

Mixture of Raw Data and Recognition Results Run DTW on Raw Data

Heavyweight Feature Extraction/Recognition Lightweight Feature Extraction/Recognition

Run

Wearable Sensor

Data Collection Transmit All Raw Data

Smartphone Run DTW on Raw Data

Feature Extraction and Recognition

Reduces amount of raw data transmitted Reduces amount of data processed with DTW

Using an adaptive pipeline: 1) Feature extraction/ raw data transmission based on input data segment 2) Pipeline constructed automatically using the training data

Naïve approach

Proposed approach

slide-7
SLIDE 7

S martwatch / S martphone S etup

Method Overview

Activity/ Gesture Recognition using Wrist-worn Device Coupled with a S martphone

Reduce Energy Cost while Maintaining High Accuracy

Reduce raw data transmission (reduces cost to wearable device)

Reduce DTW use (reduces cost to smartphone)

S mart phone Wearable device

Data collection Feature extraction / initial classification

Transmit Recognition Results: “ walk,”

“ run,” et c.

Classification

Smartphone Application(s)

Device Results S imple features

  • nly (i.e. no DTW)

S imple features + DTW S martphone Results Device Results Transmit Raw Data

slide-8
SLIDE 8

Energy Costs

Feature Extraction Cost (mJ) Device1 S martphone2 Mean 0.000329 0.000359 Var 0.000575 0.001034 ZC 0.000530 0.000291 RMS 0.000497 0.000312 Energy 0.001951 0.006345 DTW-12.5* 0.101000 DTW-25* 0.276000 DTW-50* 0.823000 DTW-100* 2.940000

mJ: milliJoules Var: variance ZC: Zero crossing RMS : Root mean square Energy: FFT-based energy DTW: Dynamic time warping *Refers to %

  • f raw data used, with reduced data sizes

attained by averaging adj acent data points in the data stream

1Calculated using wearable device built for this study 2Calculated using Google Nexus 5 smartphone

Data Transmission Cost (mJ) Device1 S martphone2 Label 0.109 8.485 Data-12.5* 0.148 8.564 Data-25* 0.186 8.642 Data-50* 0.264 8.8 Data-100* 0.418 9.115

Label: Transmit recognition results only Data: Transmit raw data

slide-9
SLIDE 9
  • Fig. 3: Reduced cost
  • Fig. 2: High Cost/ High Accuracy
  • Fig. 1: C4.5 Tree

Tree S tructured Classifier

Two types of nodes

 Simple features (activity recognition)  DTW (gesture recognition)

Generating trees with C4.5 algorithm

 Constructed to maximize accuracy  More useful features at shallower nodes  Fig. 1: In our case: More useful = DTW

Only extract features on the path used in the tree

 Fig. 2: Not very useful if all paths have

DTW

 Fig. 3: ZC-X  Mean-Y  RMS

  • Z/ Var-X no

longer require DTW

Need to find a tree that gives a good balance of cost to accuracy ZC-X DTW-X RMS

  • X

RMS

  • Z

ZC-Y Mean-Y Mean-X Var-Y Var-X DTW-Y DTW-X DTW-Y DTW-Z Mean-X

All data is processed using DTW Only a subset

  • f data

uses DTW

slide-10
SLIDE 10

Generating Energy Aware Trees

Use an approach based on random forests algorithm

Step 1. Generate several trees

 Varying balances of cost to accuracy

Random forests algorithm

Builds a forest of decision tree classifiers

Induces variation in trees by creating each node in a tree using only a subset of the possible features 

Our version

Modify the randomized selection*

 Bias the probability of selection for each feature based on its energy cost

slide-11
SLIDE 11

Choosing an Optimal Tree

S tep 2. Pick a single tree with a good balance of cost to accuracy

Cost criteria

 Estimate the cost of each tree based on training

data

 S

et a cost threshold

Accuracy criteria

 Can’ t directly measure accuracy using training data  Choose smallest tree (below cost threshold)

 Found a strong negative correlation between size and

accuracy in tests done early in our study

 Other research has suggested smaller trees are less

likely to overfit the training data (Quinlan 19961)

1Quinlan, J. Improved use of continuous attributes in c4.5. J. Artif. Intell. Res. 4 (1996), 77–90.

Optimal Tree = S mallest tree with cost below our threshold

slide-12
SLIDE 12

Wearable device

Partitioning the Tree Across Devices

All subtrees with DTW as the root are run on the smartphone S mart phone

Transmit Recognition Results

“ brush t eet h” , “ run” , et c.

Transmit Raw Data S martphone Results Original Tree

Application

“ left -t o-right ” , et c.

slide-13
SLIDE 13

Evaluation Methodology

50 sessions of data

 5 Participants each performing 10 sessions  Each session contains each of the

activities/ gestures in Table 1

 Leave-one-session-out cross-validation

Accuracy calculated using:

 Macro-averaged F-measure

Costs calculated using:

 Google Nexus 5 smartphone (Fig. 1)  Wearable device (Fig. 2)

  • Fig. 2: Wearable device used in this study
  • Fig. 1: Google

Nexus 5 Table 1: Activities/ gestures used in this study

Activity Gesture Run Left to Right Draw on Whiteboard Right to Left Wash Dishes Clockwise Write in Notebook Counter-Clockwise Brush Teeth Down to Up None

slide-14
SLIDE 14

Methods

Baseline Methods:

 ACT – C4.5 Decision Tree using activity recognition features (no DTW)

 Represents a classifier specialized to activity recognition

 DTW – DTW-based kNN classifier (no C4.5 tree/ no activity recognition features)

 Represents a classifier specialized to gesture recognition

 Tree – C4.5 decision tree that combines activity recognition features with DTW-based

kNN classifiers

 Represents a classifier specialized to high accuracy j oint recognition (not energy aware)

Proposed Method:

 Decision tree created using our random forests algorithm approach that combines

activity recognition features with DTW-based kNN classifiers

 Proposed (threshold): Refers to the proposed method using the given threshold

slide-15
SLIDE 15

Cost and accuracy for each method

Overall Results

ACT: Activity recognition features / No DTW DTW: DTW / No activity recognition features Tree: Activity recognition features and DTW / Not energy aware Proposed (threshold): Proposed method (with cost threshold used)

cost (mJ)

  • avg. F-Measure

Method (Threshold) device smartphone

  • verall

activities gestures ACT 0.119 8.485 0.914 0.949 0.845 DTW 0.418 17.935 0.935 0.935 0.934 Tree 0.345 11.168 0.956 0.974 0.936 Proposed (11 mJ) 0.237 9.741 0.956 0.969 0.941 Proposed (9.05 mJ) 0.151 8.768 0.951 0.969 0.929 Proposed (8.75 mJ) 0.127 8.575 0.943 0.964 0.918

Transition in the accuracy and cost for the wearable device when the cost threshold is varied for the proposed method.

slide-16
SLIDE 16

Reductions in Energy Use

Transition in the energy consumed to compute DTW when the cost threshold is varied for the proposed method. Transition in the energy consumed to transmit and receive data when the cost threshold is varied for the proposed method.

Estimated Battery Life (days) Device Nexus 5 ACT 17.0 9.1 Tree 15.1 8.0 DTW 14.6 6.2 Proposed (8.75 mJ) 16.9 9.0

Battery life estimates are based on continuous recognition with no other processes run on either device

slide-17
SLIDE 17

Energy Use for Activities vs. Gestures

Average energy used by wearable device and smartphone for recognizing activities and gestures when the cost threshold is varied for the proposed method.

slide-18
SLIDE 18

Conclusions

Energy Aware Framework for Recognizing Activities and Gestures

Combines features commonly used in activity recognition with DTW-based kNN classifiers

Performs lightweight feature extraction and recognition on wearable device

Reduces energy used for raw data transmission

Reduces energy used to run DTW