Trace2TAP: Synthesizing trigger-action Programs from traces of behavior
Trace2TAP: Synthesizing trigger-action Programs from traces of behavior
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.
1 - 26
Zhang, L.
1a6d1add-39ba-4969-8134-8f126844b5f6
He, W.
f2223ad6-d8bd-4a98-8d6b-6ca8feef0a04
Morkved, O.
8c89e333-4cd3-4c6e-8340-c53f63eba022
Zhao, V.
3a82dcf1-f7dd-4408-91aa-6d6e9de55c9e
Littman, M.L.
22c4a5b6-d6c6-4f81-abb9-342a28c6009f
Lu, S.
b31f33bb-c6c3-4c81-b74b-8818f405717c
Ur, B.
34b9030c-c01e-4c39-9e77-55b109414a77
4 September 2020
Zhang, L.
1a6d1add-39ba-4969-8134-8f126844b5f6
He, W.
f2223ad6-d8bd-4a98-8d6b-6ca8feef0a04
Morkved, O.
8c89e333-4cd3-4c6e-8340-c53f63eba022
Zhao, V.
3a82dcf1-f7dd-4408-91aa-6d6e9de55c9e
Littman, M.L.
22c4a5b6-d6c6-4f81-abb9-342a28c6009f
Lu, S.
b31f33bb-c6c3-4c81-b74b-8818f405717c
Ur, B.
34b9030c-c01e-4c39-9e77-55b109414a77
Zhang, L., He, W., Morkved, O., Zhao, V., Littman, M.L., Lu, S. and Ur, B.
(2020)
Trace2TAP: Synthesizing trigger-action Programs from traces of behavior.
Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, , [104].
(doi:10.1145/3411838).
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.
Text
3411838
- Version of Record
Restricted to Repository staff only
Request a copy
More information
Published date: 4 September 2020
Identifiers
Local EPrints ID: 494646
URI: http://eprints.soton.ac.uk/id/eprint/494646
ISSN: 2474-9567
PURE UUID: c97b2329-e2a2-4906-b4a0-063e3b7585a5
Catalogue record
Date deposited: 11 Oct 2024 16:59
Last modified: 12 Nov 2024 03:16
Export record
Altmetrics
Contributors
Author:
L. Zhang
Author:
W. He
Author:
O. Morkved
Author:
V. Zhao
Author:
M.L. Littman
Author:
S. Lu
Author:
B. Ur
Download statistics
Downloads from ePrints over the past year. Other digital versions may also be available to download e.g. from the publisher's website.
View more statistics