The University of Southampton
University of Southampton Institutional Repository

Trace2TAP: Synthesizing trigger-action Programs from traces of behavior

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.
2474-9567
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
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, 1 - 26, [104]. (doi:10.1145/3411838).

Record type: Article

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 ORCID iD
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

Atom RSS 1.0 RSS 2.0

Contact ePrints Soton: eprints@soton.ac.uk

ePrints Soton supports OAI 2.0 with a base URL of http://eprints.soton.ac.uk/cgi/oai2

This repository has been built using EPrints software, developed at the University of Southampton, but available to everyone to use.

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we will assume that you are happy to receive cookies on the University of Southampton website.

×