36
Dealing with Health Data Op#mizing Data Toolkits

MMF Data Toolkit (Presented Health Refactored 2014)

Embed Size (px)

DESCRIPTION

Addresses data infrastructure and how to scale efficiently. As a platform that is more than doubling in user base (and activity) YOY, MapMyFitness has build a sustainable platform that provides more than 22 million users worldwide access to the information they want in a simple, rewarding way. In the company’s early years, health care providers such as Humana and Discovery were the first major partners to recognize the importance of fitness data and built a community on top of our software that opened the door to their members as well. Now every major brand from Coca-Cola to Purina Dog Food is seeing the value of this data and how they can tap in to promote a healthy and active lifestyle through interactive digital tools. As a new addition to the Under Armour family, the company will look to move past just steps and miles, and more into your daily story of activity. Kevin Callahan will address what challenges lie ahead for presenting data in a compelling way, and the opportunities as a brand to be a leader in Connected Fitness.

Citation preview

Page 1: MMF Data Toolkit (Presented Health Refactored 2014)

Dealing  with  Health  Data  Op#mizing  Data  Toolkits  

Page 2: MMF Data Toolkit (Presented Health Refactored 2014)

2  

THE  MAPMYFITNESS  BRAND  AND  PRODUCT  PLATFORM  

Our  integrated  fitness  plaGorm  consists  of  iOS  and  Android  apps,  a  suite  of  websites,  hundreds  of  third-­‐party  devices,  and  API  and  SDK  solu#ons,  all  synchronized  with  the  cloud.  It’s  the  most  flexible  and  robust  pla9orm  in  the  world  of  Connected  Fitness.    

Page 3: MMF Data Toolkit (Presented Health Refactored 2014)

3  

WHO  IS  MAPMYFITNESS?  

We  are  Connected  Fitness  —  we  are  obsessed  with  using  technology  to  make  fitness  social,  fun,  simple,  effec#ve,  and  rewarding.          

We  are  Innovators  –  aYer  8  years  we  have  many  “firsts”  we  are  proud  of:  •  First  online  fitness  mapping  and  tracking  system  on  web  and  

subsequently  mobile  •  First  connected  fitness  media  plaGorm  reaching  over  24M  

consumers  •  First  fitness  tracking  plaGorm  used  for  rewards  programs  by  

major  health  insurers  •  First  to  support  wireless  Bluetooth  4.0  sensor  connec#ons  on  

iOS  and  Android      

We  are  a  Business  -­‐  we  have  been  genera#ng  revenue  since  day  1  and  were  recently  acquired  by  Under  Armour.  

Page 4: MMF Data Toolkit (Presented Health Refactored 2014)

4  

LOTS  OF  DATA  

1  New  users  per  month  

24  MILLION  

Registered  members  

over  

avg   MILLION  

Page 5: MMF Data Toolkit (Presented Health Refactored 2014)

5  

LOTS  OF  DATA  

1  New  users  per  month  

24  MILLION  

Registered  members  

over  

avg   MILLION  

24M  <  NYC  9M  

Page 6: MMF Data Toolkit (Presented Health Refactored 2014)

6  

LOTS  OF  DATA  

15  MILLION  

Workouts  in  the  last  30  days  

over  

350  Workouts  each  minute  

Page 7: MMF Data Toolkit (Presented Health Refactored 2014)

7  

LOTS  OF  DATA  

2M  lbs  fat  burned  Last  30  days…  

Page 8: MMF Data Toolkit (Presented Health Refactored 2014)

8  

WHAT  IS  CONNECTED  FITNESS?  

Page 9: MMF Data Toolkit (Presented Health Refactored 2014)

9  

CONNECTED  FITNESS  IS  EXPLODING  

170  million  wearable  devices  projected  to  be    shipped  by  2016*  

$3.9  billion  es#mated  market  for  fitness  and    

wellness  devices  in  2016*  

MapMyFitness  syncs  the  data  from  over  400  fitness  devices  and  brings  it  to  life  in  a  way  that’s  mo#va#ng,  inspira#onal,  and  useful.  

The  world  is  on  the  cusp  of  a  Connected  Fitness  Revolu7on.  

* IMS Research

Page 10: MMF Data Toolkit (Presented Health Refactored 2014)

10  

PEOPLE  ARE  ADOPTING  LIKE  CRAZY,  BUT  THERE’S  A  CATCH…  

Users  have  as  many  interfaces  as  they  do  devices  &  services.  It’s  a  fractured  mess.  

Too  much  to  keep  track  of!  

Page 11: MMF Data Toolkit (Presented Health Refactored 2014)

11  

WE  ARE  THE  API,  THE  PLATFORM  AND  THE  DASHBOARD  

MapMyFitness  synchronizes  with  over  400  third-­‐party  wearable  fitness  devices  &  services  

Page 12: MMF Data Toolkit (Presented Health Refactored 2014)

12  

Device  integraWon  

MAPMYFITNESS  PLATFORM:  THE  UNIFYING  HUB  

•  Comprehensive  online  solu#on  for  tracking  fitness    

•  Mobile  &  web  plaGorm  using  everyday  devices  (smartphones)  

•  Cloud-­‐based  data  management  for  tracking  fitness  

•  Users  can  upload  results,  share  progress,  and  mo#vate  one  another  

•  Reference  framework  for  connec#ng  3rd  party  devices  to  web,  social  sharing  &  data  

Web  FuncWonality  

Mobile  Apps  

Core  Members  

Extended  reach  

Social  engagement  

Page 13: MMF Data Toolkit (Presented Health Refactored 2014)

13  

API  AND  SDK  SOLUTIONS  

Access  core  MapMyFitness  features  with  our  SaaS  plaGorm.  With  both  push  and  pull  func#onality,  you  can  integrate  our  tools  into  your  digital  experiences  or  join  our  ecosystem  to  access  fitness  data  at  scale.    

Our  licensed  solu#ons  include:    •  Routes  Widgets  •  Device  Integra#on  Widgets  •  Nutri#on  Widgets  •  Users  API  •  Routes  API  •  Workouts  API  •  Ac#vity  Feed  API  •  Groups  API  •  Events  API  •  iOS  SDK  •  Android  SDK    

Page 14: MMF Data Toolkit (Presented Health Refactored 2014)

14  

MAPMYFITNESS  PLATFORM:  THE  UNIFYING  HUB  

MapMyAPI.com  

Page 15: MMF Data Toolkit (Presented Health Refactored 2014)

15  

SCALING  AND  WORKING    WITH  DATA  

Page 16: MMF Data Toolkit (Presented Health Refactored 2014)

16  

EXPONENTIAL  GROWTH,  TIMELY  SCALING  

0  

40M  

80M  

120M  

160M  

2006   2007   2008   2009   2010   2011   2012   2013  

Users   Routes   Workouts  

2005  

We’ve  evolved  our  scaling  approaches  as  usage  has  grown  

Premature  scaling  would  have  been  wasteful.  

Scaling  solu#ons  enable  

business  growth!  

Scaling  problems  got  interes#ng.  

2014?  

Page 17: MMF Data Toolkit (Presented Health Refactored 2014)

17  

EXPONENTIAL  GROWTH,  TIMELY  SCALING  

0  

40M  

80M  

120M  

160M  

2006   2007   2008   2009   2010   2011   2012   2013  

Users   Routes   Workouts  

2005  

2013-­‐2014  March  Workout  Comparison    2013:  9M  vs.  2014:  16M  

 

Page 18: MMF Data Toolkit (Presented Health Refactored 2014)

18  

EVOLUTION  OF  THE  INFRASTRUCTURE  

2005  SINGLE  VPS  2007  PHYSICAL  SERVERS    

Managed  hos#ng  

2010  HYBRID  Public  cloud  for  new  applica#ons  

2011  HYBRID  Hybrid  applica#ons  with  cloud  and  

physical  capacity  

Page 19: MMF Data Toolkit (Presented Health Refactored 2014)

19  

PREDICTABLE  VARIATION  IN  TRAFFIC  

Over  years  

Weeks  

Days  

Page 20: MMF Data Toolkit (Presented Health Refactored 2014)

20  

EVOLUTION  OF  THE  INFRASTRUCTURE  

2012  CONSOLIDATION  2013  OPTIMIZATION  

Private  /  Public  Cloud  Specialized  Data  Clusters                (MySQL,  PostgreSQL,  Mongo)  Separa#on  of  Services  (SOA)  

Page 21: MMF Data Toolkit (Presented Health Refactored 2014)

21  

DATA  TOOLKITS  

•  Old  Way  •  Simple  SQL  •  Excel  Pivot  Tables  

•  New  Way  •  Amazon  RedshiY  •  Aggregate  SQL  tables,  Data  Par##oning  •  iPython  Notebook  and  SciPy  

•  Future...    •  we’ll  get  to  that  in  a  minute  

-­‐-­‐    

Page 22: MMF Data Toolkit (Presented Health Refactored 2014)

22  

AMAZON  REDSHIFT  

Amazon  Redshid  is  a  fast,  fully  managed,  petabyte-­‐scale  data  warehouse  service    

Page 23: MMF Data Toolkit (Presented Health Refactored 2014)

23  

IPYTHON  NOTEBOOK  

The  IPython  Notebook  is  a  web-­‐based  interac#ve  computa#onal  environment  where  you  can  combine  code  execu#on,  text,  mathema#cs,  plots  and  rich  media  into  a  single  document.  

Page 24: MMF Data Toolkit (Presented Health Refactored 2014)

24  

EXAMPLE  1:  SIMPLE  WORKOUTS  FROM  API  

Page 25: MMF Data Toolkit (Presented Health Refactored 2014)

25  

EXAMPLE  1:  SIMPLE  WORKOUTS  (CONT)  

Page 26: MMF Data Toolkit (Presented Health Refactored 2014)

26  

PANDAS:  PYTHON  DATA  ANALYSIS  LIBRARY  

hvp://pandas.pydata.org/  

en#re  data  analysis  workflow  in  Python  without  having  to  switch  to  a  more  domain  specific  language  like  R.  

Google  “10  Minute  Pandas  Tour”  By  Wes  McKinney  

Page 27: MMF Data Toolkit (Presented Health Refactored 2014)

27  

PANDAS  AND  REDSHIFT  

Connect  directly  to  RedshiY  Data  Source!  

Page 28: MMF Data Toolkit (Presented Health Refactored 2014)

28  

PANDAS  AND  REDSHIFT  (ZOOM)  

Connect  directly  to  RedshiY  Data  Source!  

df  =  sql.read_sql(sql_query,  conn)  

Page 29: MMF Data Toolkit (Presented Health Refactored 2014)

29  

EXAMPLE  2:  PLOTTING  MAP  DATA  

Trick  for  UI  

Page 30: MMF Data Toolkit (Presented Health Refactored 2014)

30  

EXAMPLE  2:  PLOTTING  MAP  DATA  (CONT.)  

Page 31: MMF Data Toolkit (Presented Health Refactored 2014)

31  

MATPLOTLIB  BASEMAP  TOOLKIT  

library  for  plozng  2D  data  on  maps  in  Python.    

Page 32: MMF Data Toolkit (Presented Health Refactored 2014)

32  

EXAMPLE  3:  ADVANCED  BASEMAP  VISUALIZATIONS  

Page 33: MMF Data Toolkit (Presented Health Refactored 2014)

33  

EXAMPLE  5:  DATA  ANALYSIS  FOR  SALES  

Page 34: MMF Data Toolkit (Presented Health Refactored 2014)

34  

EXAMPLE  6:  USER  SEGMENTATION  

Page 35: MMF Data Toolkit (Presented Health Refactored 2014)

35  

FUTURE  PLANS  

•  Develop  more  robust  tools  to  access  our  GIS,  ac#graphy  and  physiological  data    •  Explore  Interac#ve    •  D3,  MapBox/TileMill,  etc.  

•  API  endpoints  tailored  to  data  analysis  •  Incorpora#ng  UA  retail  and  consumer  data  to  support  UA  corporate  goals  •  recommenda#on  systems  •  prescrip#ve  training  •  route  genera#on  

Page 36: MMF Data Toolkit (Presented Health Refactored 2014)

36  

Thank  You!  

WE  ARE  HIRING  IN  AUSTIN,  TX