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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Rethinking Access Control and Authentication for the Home Internet of Things (IoT) cites ContexloT: Towards Providing Contextual Integrity to Appified IoT Platforms
- Understanding In-Situ Programming for Smart Home Automation cites Exploring the Design Space of User-System Communication for Smart-home Routine Assistants
- Understanding In-Situ Programming for Smart Home Automation cites Situated Live Programming for Human-Robot Collaboration
- Charting the Attack Surface of Trigger-Action IoT Platforms cites Rethinking Access Control and Authentication for the Home Internet of Things (IoT)
- Helping Users Debug Trigger-Action Programs cites Charting the Attack Surface of Trigger-Action IoT Platforms
Cited 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
- 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
- ChatIoT: Zero-code Generation of Trigger-action Based IoT ProgramsYi Gao, Kaijie Xiao, Fu Li, Weifeng Xu et al.UbiComp 2024 · 18 citations
- Detecting Smart Home Automation Application Interferences with Domain KnowledgeTao Wang, Wei Chen, Liwei Liu, Guoquan Wu et al.ASE 2023 · 3 citations
- SCTAP: Supporting Scenario-Centric Trigger-Action Programming based on Software-Defined Physical EnvironmentsBingkun Sun, Liwei Shen, Xin Peng, Ziming WangWWW 2023 · 7 citations
