1 / 29

Runking : a context aware running ranking system

Runking : a context aware running ranking system. Agenda. Motivation System Architecture Mobile Data Management Context Awareness Q & A. Motivation. People are lazy when doing fitness Import competition among friends to push them to do more exercise “Mike is running longer than Jim”

rainer
Download Presentation

Runking : a context aware running ranking system

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Runking: a context aware running ranking system

  2. Agenda • Motivation • System Architecture • Mobile Data Management • Context Awareness • Q & A

  3. Motivation • People are lazy when doing fitness • Import competition among friends to push them to do more exercise • “Mike is running longer than Jim” • “You’re the laziest among your friends” • Track and rank their degree of running activity

  4. User Scenario Push notification to Jerry Login Login Upload activity to server Login Pull data from Server Jerry Tom Ben Alice Run for 1000m disconnected

  5. System Architecture • Mobile Client-Server Model with: • Single Server • Multiple Clients

  6. Three tiered architecture Runking App Runking App Android Android Client TCP 4009 Port Asynchronous Socket Server Application Server Python Script Engine MongoDB Python Driver User Information Activity Information Database Server Mongo DB

  7. Server Side Design • A lightweight server implementation containing all business logic and data storage • Database Server • NoSQL database MongoDB • Application Server • Python with Asynchronous socket server TCP 4009 Port Asynchronous Socket Server Python Script Engine MongoDB Python Driver User Information Activity Information Mongo DB

  8. Database Design User Collection Activity Collection

  9. Client Side Design

  10. Mobile Data Management • Disconnected Operation • Local Data Copy • Local Command Queue • Data Dissemination • Pub / Sub Model • Push & Pull • Data Caching • DC-PS-SL

  11. Disconnected Operation • User can view / modify the data no matter there is network or not. • If network is available, communicate with server directly. • If no network, store the operation command sequence into the local queue. • Send the queued commands when reconnected.

  12. Disconnected Operation

  13. Local Command Queue Operation

  14. Data Dissemination • Pub / Sub Model • User can subscribe messages from interested users in “Setting -> Friend Setting” • Only those subscribed message will be disseminated to user.

  15. Pull and Push • Pull the activity list down to pull data from server manually. • Data push can be enabled in “Settings”

  16. Push Policy Design • New Friend Push: • Push as soon as some user follow you • New Activity Push: • Push only when: • Your rank will be surpassed soon. (lead <5%) • The rank has changed

  17. Data Caching • Cache data on cellphone • Replace cached item only when expired. • User can set the cache period in Settings, default is 60 days. • User can manually clear all cached items

  18. Protocol Design: DC-PS-SL

  19. DC-PS-SL • DC: (Delta Consistency) Server only push to client when satisfy certain policy (as described in push policy design). • PS: Push • SL: (Stateless) Server doesn’t maintain state information of client, client may miss the push when disconnected.

  20. Context Awareness

  21. Motivation of Context-aware • Minimum human intervention • No need for user to manually start. • Even the most popular running apps requires user to click the button to start. • Energy saving • GPS is off when user is not running

  22. Context Aware System • Context: Activity • Service: GPS Service GPS Information Enquiry Context Running Activity Detection

  23. Activity Detection Offline Training Online Detection Step 1 Accelerometer Data and label Collection Step 1 Accelerometer Data Step 2 Classifier Generation Step 2 Activity Detection

  24. Offline Training • Accelerometer Data and label Collection

  25. Offline Training • Classifier Generation

  26. ThanksQ & A

  27. Backup: Network Protocol • # request all users in DB • REQ: friend all • RES: ok tom,jerry • # get user's following list • REQ: friend follow jason • RES: ok tom,jerry • # update following list for user • REQ: friend update jasontom,jerry,ben • RES: ok • # get who is following user • REQ: friend follower jason • RES: ok tom,jerry

  28. Backup: Network Protocol 2 • # synchronize the activity with server • REQ: activity sync jason 30 • RES: ok tom,1333174320,1333177937,1332745920,874 jerry,1333174320,1333177937,1332745920,874 • # add an activity to server • REQ: activity add uid,epoch_beg,epoch_end,length,trace • EXA: activity add jason,1333178959,1333178959,123,null • RES: ok

More Related