Trace2TAP
Authors:
Open Access
- 4 September 2020
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies
- Vol. 4 (3) , 1-26
Abstract
Two common approaches for automating IoT smart spaces are having users write rules using trigger-action programming (TAP) or training machine learning models based on observed actions. In this paper, we unite these approaches. We introduce and evaluate Trace2TAP, a novel method for automatically synthesizing TAP rules from traces (time-stamped logs of sensor readings and manual actuations of devices). We present a novel algorithm that uses symbolic reasoning and SAT-solving to synthesize TAP rules from traces. Compared to prior approaches, our algorithm synthesizes generalizable rules more comprehensively and fully handles nuances like out-of-order events. Trace2TAP also iteratively proposes modified TAP rules when users manually revert automations. We implemented our approach on Samsung SmartThings. Through formative deployments in ten offices, we developed a clustering/ranking system and visualization interface to intelligibly present the synthesized rules to users. We evaluated Trace2TAP through a field study in seven additional offices. Participants frequently selected rules ranked highly by our clustering/ranking system. Participants varied in their automation priorities, and they sometimes chose rules that would seem less desirable by traditional metrics like precision and recall. Trace2TAP supports these differing priorities by comprehensively synthesizing TAP rules and bringing humans into the loop during automation.Keywords
Funding Information
- National Science Foundation (CCF-1837120,OAC-1835890,CNS-1764039,CNS-1563956,CNS-1514256,IIS-1546543)
This publication has 31 references indexed in Scilit:
- Supporting mental model accuracy in trigger-action programming2015
- Context-aware frame rate adaption for video chat on smartphones2013
- Discovering frequent user--environment interactions in intelligent environmentsPersonal and Ubiquitous Computing, 2011
- Satisfiability modulo theoriesCommunications of the ACM, 2011
- A simple inductive synthesis methodology and its applicationsACM SIGPLAN Notices, 2010
- Z3: An Efficient SMT Solver2008
- “Playing with the Bits” User-Configuration of Ubiquitous Domestic Environments2003
- Understanding and Using ContextPersonal and Ubiquitous Computing, 2001
- Silhouettes: A graphical aid to the interpretation and validation of cluster analysisJournal of Computational and Applied Mathematics, 1987
- Editing by exampleACM Transactions on Programming Languages and Systems, 1985