Open-sourcing my Biometrics Data - aismail85
Hi Everyone!
It’s your favourite wearables aficionado here in Bucharest. What have I been up to lately on this rainy weather? Well, I’ve been playing around with my data from my wearables. Lots of it. And since I have no shame in showing it to the world, I’ve decided to open-source it.
Here is where you can see my data in a live visualization:
step count for March 2014: http://broti.ro/vitals/visualizations/steps_comparison.html
sleep count for March 2014: http://broti.ro/vitals/visualizations/sleep_comparison.html
So what’s in that data? I have struggled to extract my data from the 3 devices I’m wearing: BodyMedia, Jawbone and FitBit. I have managed to extract that with a bit of sweat (hint: search for Github and open-source Python libraries for each device). You have my hourly steps data and my minute-level sleep data.
Steps data
The first 3 days are completely out of sync, because I was travelling from Vancouver to Bucharest on a business trip. It just goes to show how messy it gets when you’re trying to use a wearable device across multiple timezones. From now on, I’ve decided that I’m leaving them on my home timezone, regardless of where I travel. For example, when I was in London, at the start of May, I could not even get my vibrating alarms to work after 40 minutes of struggle. Now that’s a big bonus for user friendliness.
In the next days, you’ll notice that for steps data, on Mondays, Wednesdays and Fridays there is a huge gap between 20.00 and 22.00. That is the interval when I have my Qwan Ki Do trainings. Don’t let the picture fool you, I only wear the BodyMedia while training (because I have to use my wrists for hitting quite often).
I’m a bit disappointed I did not manage to extract higher resolution data for my steps. However, not all devices provide this data with minute-level resolution. And this is a recurring theme in the data ecosystem for wearables. For example, for FitBit, you have to be a preferred partner to get better resolution data. Believe me, I’ve used up all the weapons in my software engineer arsenal to work around it: intercepting browser requests, scraping and API calls.
Sleep data
Here is where you notice the most annoying feature of Jawbone UP ever: that you have to press a button to enter sleep mode or else it will not analyze your sleep. Of course, since you might be very tired in the evening, you would usually forget, as is my case. That you can notice in the graphs. One person I’ve spoken to recommended that I set an alarm each evening to remind me to put it into sleep mode. For me it’s a dealbreaker.
The FitBit is not that sensitive by default - you can clearly see the lack of correlation between its sleep data and the other two. BodyMedia, on the other hand, is on the other extreme. Additionally, each device reports that you’re sleeping in a different manner. Some have different states equivalent to “sleeping” / “semi-sleeping” / “awake”, while others are more binary.
So does that data correlate?
I’ve tried to answer the question by leveraging my math background. I’m a man of numbers, as you well know. Pearson coefficient is a measure of how similar two trends are: when it’s 0 the two trends are completely uncorrelated, while for +1 they are overlapping. But that wasn’t enough - I devised my own metric called the “super-stdavg” which measures how much the individual values actually differ - the closest to 0 it is, the better (the less they differ).
Here’s what I got (I excluded the first 2 days because of the timezone problems I already mentioned above). Red cells are highly uncorrelated cells, while green ones are correlated ones. As we can see, the only correlated metrics are day-level ones.
Obviously, when it comes to sleep, FitBit and BodyMedia are the most correlated ones. Due to me forgetting to press the button on the Jawbone (that is alleviated to some extent in the newer UP 3.0 mobile application, which has a sleep recovery feature; not that reliable either). All this makes me thing why all manufacturers create this hype around real-time data sync between the device and your smartphone. What’s the use-case for that, if your data is unreliable? Apart from getting your already exhausted attention, I don’t know.
Conclusions
Open-sourcing my data was both a technical exercise and a mental one. While in London, I’ve heard a lot of people complain about a lack of privacy when uploading your data to the manufacturer’s cloud. My biggest concern, is, however, if this data is accurate and what are the actionable use-cases for it. Right now it seems that it’s only good for longer term statistical purposes. Basis published a study correlating its sleep cycle detection with professional sensors, but that does not mean anything since it is already a really controversial field.
How are they useful for me? I’ve managed to lose 13kg in about 3 months, while gradually improving my diet and migrating towards a more fit self. Still some kilos to go, but the results are really promising.
Yours truly,
Your quantified self ninja.
Searching for a Revolution