Rule based Context Sensing. Background Context sensing – Sensors in smartphone – Reacts based on operating condition Example – Location based reminder,

Slides:



Advertisements
Similar presentations
Context-aware battery management for mobile phones N. Ravi et al., Conf. on IEEE International Pervasive Computing and Communications,
Advertisements

Supporting Cooperative Caching in Disruption Tolerant Networks
Data Mining (Apriori Algorithm)DCS 802, Spring DCS 802 Data Mining Apriori Algorithm Spring of 2002 Prof. Sung-Hyuk Cha School of Computer Science.
PROVENANCE FOR THE CLOUD (USENIX CONFERENCE ON FILE AND STORAGE TECHNOLOGIES(FAST `10)) Kiran-Kumar Muniswamy-Reddy, Peter Macko, and Margo Seltzer Harvard.
CPSC 502, Lecture 15Slide 1 Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 15 Nov, 1, 2011 Slide credit: C. Conati, S.
ECOS: Leveraging Software-Defined Networks to Support Mobile Application Offloading Aaron Gember, Christopher Dragga, Aditya Akella University of Wisconsin-Madison.
VTrack: Accurate, Energy-Aware Road Traffic Delay Estimation Using Mobile Phones Arvind Thiagarajan, Lenin Ravindranath, Katrina LaCurts, Sivan Toledo,
Suman Nath Microsoft Research. Continuous Context-Aware Apps Continuous sensing of user’s context How much do I jog? Monitor indoor location Alert when.
Improving energy efficiency of location sensing on smartphones Z. Zhuang et al., in Proc. of ACM MobiSys 2010, pp ,
ACE: Exploiting Correlation for Energy-Efficient and Continuous Context Sensing Suman Nath Microsoft Research MobiSys 2012 Presenter: Jeffrey.
Forwarding Redundancy in Opportunistic Mobile Networks: Investigation and Elimination Wei Gao 1, Qinghua Li 2 and Guohong Cao 3 1 The University of Tennessee,
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
TRADING OFF PREDICTION ACCURACY AND POWER CONSUMPTION FOR CONTEXT- AWARE WEARABLE COMPUTING Presented By: Jeff Khoshgozaran.
Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Improving Energy Efficiency of Location Sensing on Smartphones Kyu-Han Kim and Jatinder Pal Singh Deutsche Telekom Inc. R&D Lab USA Zhenyun Zhuang Georgia.
About ISoft … What is Decision Tree? Alice Process … Conclusions Outline.
Define Embedded Systems Small (?) Application Specific Computer Systems.
Techniques for Efficient Processing in Runahead Execution Engines Onur Mutlu Hyesoon Kim Yale N. Patt.
Online Data Gathering for Maximizing Network Lifetime in Sensor Networks IEEE transactions on Mobile Computing Weifa Liang, YuZhen Liu.
Chapter 17 Methodology – Physical Database Design for Relational Databases Transparencies © Pearson Education Limited 1995, 2005.
A Survey of Mobile Phone Sensing Michael Ruffing CS 495.
Sensor Coordination using Role- based Programming Steven Cheung NSF NeTS NOSS Informational Meeting October 18, 2005.
Context Awareness System and Service SCENE JS Lee 1 Energy-Efficient Rate-Adaptive GPS-based Positioning for Smartphones.
Chapter 7 Requirement Modeling : Flow, Behaviour, Patterns And WebApps.
Ambulation : a tool for monitoring mobility over time using mobile phones Computational Science and Engineering, CSE '09. International Conference.
P2P Systems Meet Mobile Computing A Community-Oriented Software Infrastructure for Mobile Social Applications Cristian Borcea *, Adriana Iamnitchi + *
Information Quality Aware Routing in Event-Driven Sensor Networks Hwee-Xian TAN 1, Mun Choon CHAN 1, Wendong XIAO 2, Peng-Yong KONG 2 and Chen-Khong THAM.
Design, Implementation and Evaluation of CenceMe Application COSC7388 – Advanced Distributed Computing Presentation By Sushil Joshi.
Mining Optimal Decision Trees from Itemset Lattices Dr, Siegfried Nijssen Dr. Elisa Fromont KDD 2007.
Context Tailoring the DBMS –To support particular applications Beyond alphanumerical data Beyond retrieve + process –To support particular hardware New.
Conditions and Terms of Use
© 2012 Microsoft Corporation. All rights reserved.
Lecture 9 Methodology – Physical Database Design for Relational Databases.
Evaluating Impact of Storage on Smartphone Energy Efficiency David T. Nguyen.
Tim Finin University of Maryland, Baltimore County 29 January 2013 Joint work with Anupam Joshi, Laura Zavala and our students SRI Social Media Workshop.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
ECO-DNS: Expected Consistency Optimization for DNS Chen Stephanos Matsumoto Adrian Perrig © 2013 Stephanos Matsumoto1.
10/10/2012ISC239 Isabelle Bichindaritz1 Physical Database Design.
Artificial Intelligence in Game Design N-Grams and Decision Tree Learning.
Lightweight Consistency Enforcement Schemes for Distributed Proofs with Hidden Subtrees Adam J. Lee, Kazuhiro Minami, and Marianne Winslett University.
CS4244 Group 6. Weekend Planner IntroductionItineraryEventsTravel Itinerary Selection User Interface Demo Introduction.
Project Portfolio Management Business Priorities Presentation.
NetNumen T31 Common Operations. Objectives Master Basic Configurations of T31 Master Common Operations of T31.
A NOVEL PREFETCHING METHOD FOR SCENE-BASED MOBILE SOCIAL NETWORK SERVICE 作者 :Song Li, Wendong Wang, Yidong Cui, Kun Yu, Hao Wang 報告者 : 饒展榕.
Network Location Awareness Vision And Scenarios Tracey Yao Program Manager Windows Wireless Networking microsoft.com Microsoft Corporation.
1 An Efficient, Low-Cost Inconsistency Detection Framework for Data and Service Sharing in an Internet-Scale System Yijun Lu †, Hong Jiang †, and Dan Feng.
Providing User Context for Mobile and Social Networking Applications A. C. Santos et al., Pervasive and Mobile Computing, vol. 6, no. 1, pp , 2010.
Andrew C. Samuels, Information Technology Specialist Trainer c/o Ministry of Education Mona High School, Kingston, Jamaica 1 Unit 1 Module 1 Obj. 4 Specific.
© 2015 AT&T Intellectual Property. All rights reserved. AT&T, the AT&T logo and all other marks contained herein are trademarks of AT&T Intellectual Property.
Network Community Behavior to Infer Human Activities.
Recording Actor Provenance in Scientific Workflows Ian Wootten, Shrija Rajbhandari, Omer Rana Cardiff University, UK.
Internet of Things. IoT Novel paradigm – Rapidly gaining ground in the wireless scenario Basic idea – Pervasive presence around us a variety of things.
1 An infrastructure for context-awareness based on first order logic 송지수 ISI LAB.
Enhancing Mobile Apps to Use Sensor Hubs without Programmer Effort Haichen Shen, Aruna Balasubramanian, Anthony LaMarca, David Wetherall 1.
CS223: Software Engineering Lecture 19: Unit Testing.
Building Wireless Efficient Sensor Networks with Low-Level Naming J. Heihmann, F.Silva, C. Intanagonwiwat, R.Govindan, D. Estrin, D. Ganesan Presentation.
TRACE ANALYSIS AND MINING FOR SMART CITIES By G. Pan Zhejiang Univ., Hangzhou, China G. Qi ; W. Zhang ; S. Li ; Z. Wu ; L. T. Yang.
Maintaining and Updating Windows Server 2008 Lesson 8.
More Security and Programming Language Work on SmartPhones Karthik Dantu and Steve Ko.
Optimizing Sensor Data Acquisition for Energy-Efficient Smartphone-based Continuous Event Processing By Archan Misra (School of Information Systems, Singapore.
MobileMiner: Mining Your Frequent Behavior Patterns On Your Phone
T-Share: A Large-Scale Dynamic Taxi Ridesharing Service
Outline Introduction Related Work
Context Sensing.
Methodology – Physical Database Design for Relational Databases
Microsoft Build /12/2018 5:05 AM Using non-volatile memory (NVDIMM-N) as byte-addressable storage in Windows Server 2016 Tobias Klima Program Manager.
Vijay Srinivasan Thomas Phan
Sentio: Distributed Sensor Virtualization for Mobile Apps
CIS 470 Mobile App Development
Xin Qi, Matthew Keally, Gang Zhou, Yantao Li, Zhen Ren
Presentation transcript:

Rule based Context Sensing

Background Context sensing – Sensors in smartphone – Reacts based on operating condition Example – Location based reminder, Mute phone while in meeting, Greeting message while driving Energy consumption – Big overhead – Continuous context sensing

Contribution Develop ACE – Acquisitional Context Engine – A middleware that supports continuous context- aware applications – While mitigating sensing costs for inferring context

ACE Provides user's current context to applications running on it Context attributes (AtHome, IsDrving) Key Idea: Human contexts are limited by physical constraints => correlated Dynamically learns relationships among various context attributes – e.g., whenever the user is Driving, he is not AtHome Application ACE Sensors Request for current value

Key idea We can infer unknown context attribute values from – Known context attributes – Unknown but cheaper context attribute Bob is running App1 (monitors walking, driving, running - accelerometer) and App2 (monitors location AtHome, Isoffice- --GPS, WiFi, BT) ACE infers rule: When driving is T, AtHome is F Context rules

Two Powerful Optimizations ACE exploits these automatically learned relationships for two powerful optimizations The first is inference caching – allows ACE to opportunistically infer one context attribute (AtHome) from another already-known attribute (Driving) – without acquiring any sensor data Example: App1 requests value of Driving ---- Request, cache, App2---cache App3 requests for AtHome =>short window Respond without sensor data=>proxy

Two Powerful Optimizations The second optimization is speculative sensing IsOffice=>GPS, wifi Driving-T, Running-T, AtHome-T – IsOffice-F InMeeting-T=>IsOffice-T Enables ACE to occasionally infer the value of an expensive attribute (e.g., AtHome) by sensing cheaper attributes (e.g., Driving)

ACE Architecture

Contexters Collection of modules – Determine the current value of context attribute – Data from sensors Denote each context attribute and value as (tuple) {D=T} Derived values based on decision tree – Based on training data

Contexters

Work Flow of ACE

Rule Miner Maintains the history of time stamped tuples {AtHome=true} Derives rules regarding relationship among various context attributes Association rule mining (Apriori algo)

Rule Miner Support threshold=3 Apriori algo Determine frequent item set

Algo Outline

Rule Miner

Intelligent Context Caching The Inference Cache in ACE, like traditional cache, provides a Get/Put interface Put(X, v) puts the tuple X = v in the cache – with a predefined expiration time (default is 5 minutes) On a Get(X) request for a context attribute X – it returns the value of X not only if it is in the cache but also if a value of X can be inferred from unexpired tuples in the cache by using context rules learned by the Rule Miner

Example: App1 requests value of IsDriving ---- Request contexter Tuple D=T cached with exp time 5 mints App2 requests D---get from cache App3 requests for IsIndoor =>short window No tuple with I in cache {D=T}=>I=F Respond I=F Intelligent Context Caching

Key challenge Efficiently exploit the rules – Go over all the rules Fails for transitive rules Target context attribute In cache

Expression tree Expression tree for tuple {D=T} – Tree representation of boolean expression – Implies {D=T} Boolean AND-OR tree (a)Non-leaf represents AND-OR operation with child nodes (b)Leaf represents a tuple Expression tree for {D=T} evaluates true iff it satisfies all the context rules

Expression Trees

Inference cache Maintains one expression tree for each tuple {D=T}, {D=F} Get(D) evaluates both the tuple – Returns T or F How to evaluate? Leaf node is satisfied iff=>corresponding tuple in cache Non leaf OR is satisfied if any child node is satisfied AND is satisfied if all child nodes are satisfied – Recursive Final=>if root is satisfied

Sensing planner Inference cache fails to determine value of X on Get(X) – Need to call necessary contexters [AtHome] contexter uses GPS, WIFI ACE may find X in indirect and cheaper way – Speculative sensing

Sensing Planner

ACE Architecture

Sensing plan Order in which various attributes needs to be checked – Determine the target attribute Optimal order may depend on – Cost of contexter (c i ) – Likelihood the attribute returning True value (p i ) Expected sensing cost can be computed using ci (config. of contexter), pi (context history)

Speculative sensing API Option 1: Generate the plan graph – Traverse only a part Option 2: Incrementally enumerate only next node Init (X): Target attrb X a <- next(): returns the next attribute OR null Update(a,v): Update tuple {a=v} Value <- Result(): returns the value of X

Evaluation Effectiveness of Inference Cache Accuracy Effectiveness of Sensing Planner Overhead of ACE End-to-end Energy Savings

Applications GeoReminder – Monitors user’s current location and displays message JogTracker – Monitors user’s transportation mode and keeps track of calories burn PhoneBuddy – Mute the phone while in a meeting

Datasets Reality Mining Dataset – collected part of the Reality Mining project at MIT – contains continuous data on daily activities of 100 students and staff at MIT – recorded by Nokia 6600 smartphones over the academic year – Trace contains sequence of lines Time, attrib1=value1, attrib2=value2

Dataset

Datasets ACE Dataset – collected with continuous data collection software running on Android phones – The subjects in the dataset, 9 male and 1 female, worked at Microsoft Research Redmond

Evaluation Port ACE prototype on a laptop Replace contexters with the fake one – Return’s current context from trace Energy consumption is modelled from real contexter. Run applications at each tick (5 mints) Expiration time – 1 tick

Evaluation Effectiveness of Inference Cache Accuracy Effectiveness of Sensing Planner Overhead of ACE End-to-end Energy Savings

Hit rates and energy savings of Inference Cache Due to sensor overlap

Effect of cache expiration time on hit rate and accuracy Staleness

Energy savings by Sensing Planner

Fraction of times Sensing Planner does better

Latency of a Get() request on Inference Cache hit

Time required to generate a plan on a Samsung Focus phone

End-to-end energy savings

Per user power consumption (users sorted by ACE power)