Trace2TAP: Synthesizing Trigger-Action Programs from Traces of Behavior
Lefan Zhang, Weijia He, Olivia Morkved, Valerie Zhao, Michael L. Littman, Shan Lu, Blase Ur
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.
CCS Concepts: • Human-centered computing → Ubiquitous and mobile computing; Empirical studies in HCI; • Software and its engineering → Designing software; General programming languages.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext fcc7676b-6187-4fd3-a085-d6a25f75ac0eCited by top-tier papers7
- From Gap to Synergy: Enhancing Contextual Understanding through Human-Machine Collaboration in Personalized SystemsWeihao Chen, Chun Yu, Huadong Wang, Zheng Wang et al.UIST 2023 · 28 citations
- Situated Live Programming for Human-Robot CollaborationEmmanuel Senft, Michael Hagenow, Robert G. Radwin, Michael R. Zinn et al.UIST 2021 · 19 citations
- Understanding In-Situ Programming for Smart Home AutomationXiaoyi Liu, Yingtian Shi, Chun Yu, Cheng Gao et al.UbiComp 2023 · 17 citations
- PGPatch: Policy-Guided Logic Bug Patching for Robotic VehiclesHyungsub Kim, Muslum Ozgur Ozmen, Z. Berkay Celik, Antonio Bianchi et al.S&P 2022 · 15 citations
- Helping Users Debug Trigger-Action ProgramsLefan Zhang, Cyrus Zhou, Michael L. Littman, Blase Ur et al.UbiComp 2023 · 14 citations
Builds on4
- ContexloT: Towards Providing Contextual Integrity to Appified IoT PlatformsYunhan Jack Jia, Qi Alfred Chen, Shiqi Wang, Amir Rahmati et al.NDSS 2017 · 325 citations
- Rethinking Access Control and Authentication for the Home Internet of Things (IoT)Weijia He, Maximilian Golla, Roshni Padhi, Jordan Ofek et al.USENIX Security 2018 · 221 citations
- Charting the Attack Surface of Trigger-Action IoT PlatformsQi Wang, Pubali Datta, Wei Yang, Si Liu et al.CCS 2019 · 162 citations
- Exploring the Design Space of User-System Communication for Smart-home Routine AssistantsYi-Shyuan Chiang, Ruei-Che Chang, Yi-Lin Chuang, Shih-Ya Chou et al.CHI 2020 · 35 citations
Related papers
- Retrieval-augmented Generation of Enhanced Trigger-action Programming Rules in Smart HomeYuchen Zhao, Lifu Wang, Kai DongUbiComp 2026 · 1 citation
- ChatIoT: Zero-code Generation of Trigger-action Based IoT ProgramsYi Gao, Kaijie Xiao, Fu Li, Weifeng Xu et al.UbiComp 2024 · 18 citations
- TAPFixer: Automatic Detection and Repair of Home Automation Vulnerabilities based on Negated-property ReasoningYinbo Yu, Yuanqi Xu, Kepu Huang, Jiajia LiuUSENIX Security 2024 · 6 citations
- SCTAP: Supporting Scenario-Centric Trigger-Action Programming based on Software-Defined Physical EnvironmentsBingkun Sun, Liwei Shen, Xin Peng, Ziming WangWWW 2023 · 7 citations
- Detecting Smart Home Automation Application Interferences with Domain KnowledgeTao Wang, Wei Chen, Liwei Liu, Guoquan Wu et al.ASE 2023 · 3 citations
