dataengconf sf16 - deriving meaning from wearable sensor data

57
DERIVING MEANING FROM WEARABLE SENSOR DATA SAMEERA PODURI @sameerapoduri

Upload: hakka-labs

Post on 15-Apr-2017

284 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

DERIVING MEANING FROM WEARABLE SENSOR DATA

SAMEERA PODURI

@sameerapoduri

Page 2: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

1530 pocket watch

wrist watch1810

digital watch1969

Page 3: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

1530 pocket watch

wrist watch1810

digital watch1969mobile phone1973smartphone2008

2016 ?

Page 4: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

• batteries shrinking

• small + low-power sensors, compute, comms

Page 5: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

24/7 sensor data platforms!

Page 6: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

DATA SCIENCE FOR WEARABLES: PERCEPTION & PERSONALIZATION

• Hardware is maturing• Sensor data is growing exponentially• Unlocking potential requires deriving meaning from data

Page 7: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 8: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

BEAUTY + ENGINEERING IN SERVICE OF A BETTER LIFE

Measure steps, sleep states, workouts, heart rate

Page 9: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

DynamoDB

Kinesis

Eventing Data

JB server

User Data

Platform

Redshift

Processing

DATA INFRASTRUCTURE

Page 10: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

DETECTING ACTIVITY & SLEEP

Page 11: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

PEDOMETER

Page 12: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

PEDOMETER

theory

real data

Page 13: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

GOT DATA?

1. Deploy a model2. Collect data3. Retrain model4. A/B Test 5. Repeat

Page 14: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

PEDOMETER

Classifier

Page 15: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

SLEEP DETECTION

Page 16: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

SIGNALS Raw, rich Partly compressed, rich Compressed

CONTEXT Limited Sensor fusion History, population,weather, etc

USERS Single Single Aggregate

WHERE TO DEPLOY?

Page 17: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

DATA PRODUCTS FOR HARDWARE

Page 18: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

LATENCY Seconds Minutes Minutes+ Network delays

COMPUTE Limited Powerful

DEPLOYMENT Months Weeks Hours

WHERE TO DEPLOY?

Page 19: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

Version 0 Most common workout 58% Accuracy

Version 1Last workout 15% lift

Version 2

WORKOUT CLASSIFICATION

Page 20: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

PERSONALIZED INSIGHTS

Page 21: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

• How can I understand this data? • How should I feel about what it tells me?• What action should I take in response?

Page 22: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

Smart Coach RemembersRemember how you took 45,365 steps on July 4? Smart Coach remembers! On your health journey, don't forget to stop and celebrate.

Step UpdateSmart Coach noticed a surge in activity. In fact, you surpassed 9,690 steps, your typical 5:00pm average.

Last night you had 35m of REM sleep, less than the 1h9m that is typical for your age group. One way to improve your chances for more REM is to try an earlier bedtime than last night's 12:35am. You can set a bedtime Reminder for 11:35pm to help.

REM TimeLong Journey?Looks like you've been traveling recently, which can throw off your routine. Try setting a bedtime reminder for tonight to help you adjust.

Your daily average of 17,543 steps places you in the top 3% of UP females in their 30s. Bravo, Angela.

Welcome to the 3%

Page 23: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

DynamoDB Redshift

User Facts

Insights

Page 24: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

HEART RATE

“Your heart rate is 85 beats per minute.”

Page 25: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

CONTEXT MATTERS

Page 26: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 27: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 28: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 29: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

This morning’s resting heart rate was higher than 61bpm, your 30-day average. Dehydration may be the cause. If you think you were dehydrated last night, make up for it today with 8 glasses of water.

Start with Hydration

Page 30: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

BEHAVIOR CHANGE

Page 31: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

BEHAVIOR CHANGE

Page 32: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

Commitment and Consistency

Source: Cialdini, R. B. (2009). Influence: Science and practice (5th edition). Boston, MA: Pearson Education.

BEHAVIOR CHANGE

Page 33: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

Commitment and ConsistencyFoot In The Door TechniqueSource: Freedman, J.L. & Fraser, S.C. (1966). Compliance without pressure: The foot-in-the-door technique. Journal of Personality and Social Psychology, 4, 195-202.

BEHAVIOR CHANGE

Page 34: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

Commitment and ConsistencyFoot In The Door Technique

Goldilocks TasksSource: Pink, Daniel (2009). Drive: The Surprising Truth About What Motivates Us. New York, NY: Riverhead Books.

BEHAVIOR CHANGE

Page 35: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

Commitment and ConsistencyFoot In The Door Technique

Goldilocks Tasks

Source: Carpenter, Chris. (2013) A meta-analysis of the effectiveness of the "but you are free" compliance-gaining technique

Reactance

BEHAVIOR CHANGE

Page 36: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

72%Increased likelihood to go to bed early enough to hit their

sleep goal

23mMinutes earlier to bed, compared to if they didn’t

receive a TIW

BEHAVIOR CHANGE

Page 37: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

DATA STORIES

Page 38: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

HUNDREDS OF MILLIONS NIGHTS OF SLEEP

TRILLIONS OF STEPS

HUNDREDS OF MILLIONS FOOD ITEMS

Page 39: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 40: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 41: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 42: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 43: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

“The fact that the tracker measured my sleep and my activity level was a big part of my recovery. I had this way to ‘metric’ my body as I went through this. Sleep is so important in brain function anyway, and when you're recovering from a brain injury, it's even more important.”

Page 44: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 45: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 46: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 47: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

PARTING THOUGHTS…

• Wearables will help us live healthier• Health data at unprecedented scale and granularity• Data Science can play a critical role in unlocking their potential

by deriving meaning from this sensor data

Page 48: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 49: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 50: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 51: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data
Page 52: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

• Sensor and Accelerometer data• > 1GB/sec aggregated across users• Compacted on band into code-words

UP Band Phone

{ steps: 12, hr: 78, ts: 1455741797 ….. ….

}

Page 53: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

• Phone adds context to band signals • Collects eventing and logging data from app• Eventing/Logging passes through Kinesis • User data is stored in the appropriate DB

Kinesis

Eventing Data

JB server

User Data

Phone ServerPlatform

Page 54: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

• Run batch ETL jobs using Elastic MapReduce to clean and process data.

• Choose the appropriate processing framework depending on type of job (Hadoop/Spark)

• Store cleaned and anonymized data in Redshift.

Server Warehouse

Kinesis

Platform

Redshift

Processing

Aggregations

New tables of interest

Page 55: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

ETL Pipeline

Analyze Fields

Redshift

Add columns

Load

Kinesis

Extract

Aggregations

New tables of interest

TransformCreate config

Page 56: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

ANALYSIS AND EXPLORATION

Page 57: DataEngConf SF16 - Deriving Meaning from Wearable Sensor Data

WEARABLES FOR BETTER HEALTH

Chronic disease care is 86% of US healthcare cost

• Diabetes affects 12.3% population, costs $245B• Obesity affects 36% population, costs