Quantified Sleep: Measuring sleep quality with Sleep as Android

Post on 22-Nov-2014

377 views 2 download

description

Presentation for Quantified Self Toronto Show and Tell. What did you do? Sleep track data for over one year using Sleep as Android. How did you do it? Clean exported data with https://github.com/bani/Sleep-as-Android-Data and visualize relationships in Tableau What did you learn? Ideal sleep conditions: Winter, Tuesday, go to bed at 1 am Note: I have referral links to many different quantified self devices. Check http://baniverso.com/ if you are thinking about acquiring one.

Transcript of Quantified Sleep: Measuring sleep quality with Sleep as Android

QUANTIFIED SLEEPSleeping isn’t an excuse to stop quantifying yourself

The Data

•One year of sleeping•2013-03-31 to 2014-04-26•340 records

Sleep as Android

https://play.google.com/store/apps/details?id=com.urbandroid.sleep

Sleep as Android

Sleep as Android

Exported data

http://github.com/bani/Sleep-as-Android-Data

Parsed datadate,weekday,start_time,end_time,length,cycles,deep

2014-04-26,6,2014-04-27 02:34,2014-04-27 13:03,10.483333333333333,6,0.4047619

2014-04-25,5,2014-04-26 01:34,2014-04-26 12:19,10.75,7,0.54651165

2014-04-23,3,2014-04-24 00:32,2014-04-24 07:30,6.966666666666667,7,0.5180723

2014-04-22,2,2014-04-23 01:09,2014-04-23 08:36,7.45,4,0.39325842

2014-04-21,1,2014-04-22 01:05,2014-04-22 08:36,7.516666666666667,6,0.5104167

2014-04-20,7,2014-04-21 02:11,2014-04-21 08:30,6.316666666666666,6,0.5824176

2014-04-18,5,2014-04-19 01:35,2014-04-19 11:24,9.816666666666666,6,0.4387755

2014-04-17,4,2014-04-18 00:47,2014-04-18 09:09,8.366666666666667,3,0.53488374

2014-04-16,3,2014-04-17 01:26,2014-04-17 08:41,7.25,3,0.40229884

2014-04-15,2,2014-04-16 01:15,2014-04-16 08:37,7.366666666666666,5,0.6363636

2014-04-14,1,2014-04-15 01:12,2014-04-15 08:40,7.466666666666667,5,0.5955056

2014-04-13,7,2014-04-14 01:45,2014-04-14 08:31,6.766666666666667,5,0.56790125

2014-04-12,6,2014-04-13 03:25,2014-04-13 12:16,8.85,3,0.41414142

2014-04-11,5,2014-04-12 02:41,2014-04-12 12:14,9.55,6,0.53488374

More parsed data• {'ALARM_SNOOZE': [datetime.datetime(2014, 4, 15, 8,

29, 36), datetime.datetime(2014, 4, 15, 8, 34, 53)], 'ALARM_STARTED': [datetime.datetime(2014, 4, 15, 8, 39, 53), datetime.datetime(2014, 4, 15, 8, 29, 15), datetime.datetime(2014, 4, 15, 8, 34, 36)], 'ALARM_LATEST': [datetime.datetime(2014, 4, 15, 8, 30)], 'ALARM_EARLIEST': [datetime.datetime(2014, 4, 15, 8, 20)]}

Tableau

% Deep Sleep

% Deep Sleep

% Deep Sleep

Next steps• Weather data

• http://climate.weather.gc.ca/

• Temperature and humidity inside bedroom• https://github.com/bani/ninja• http://ninjablocks.com/products/temperature-and-humidity-sensor