An Automation Script Generation Technique for the Smart Home

IF 0.7 4区 计算机科学 Q4 COMPUTER SCIENCE, SOFTWARE ENGINEERING
Jiayi Kuang;Gang Xue;Zeming Yan;Jing Liu
{"title":"An Automation Script Generation Technique for the Smart Home","authors":"Jiayi Kuang;Gang Xue;Zeming Yan;Jing Liu","doi":"10.13052/jwe1540-9589.2222","DOIUrl":null,"url":null,"abstract":"A home automation system means monitoring and controlling various kinds of devices in the home remotely using the Internet of things (IoT). Technologies such as natural language processing techniques, user-friendly visual programming, and machine intelligence programming are already available for home automation. For such systems, the increase in the number of devices often makes users focused on the system's ability to perform complex or composing tasks. However, some existing natural language processing systems can only perform simple tasks and cannot meet users' needs. Thus, it is difficult for users to develop the home automation systems they need using visual programming systems because of the large amount of programming knowledge required. Meanwhile, automatic programming without user action can only write a few lines of code and implement little functionality. There are relatively few tools available for generating home automation scripting languages. To address this problem, we propose a practical method for generating executable home automation scripts using Chinese texts. Our method includes the following steps: it extracts critical information from the command sentences in Chinese; it uses first-order logic to check the validity of the extracted information; based on the validation, the correct sentences are mapped into the intermediate language scripts, which can interface with different home platforms. We conducted experiments on Home Assistant, converted intermediate scripts to Home Assistant, and collected 600 scenario descriptions. The experimental results show that the method can automatically generate executable scripts for the Home Assistant platform, and the correct rate was 93.66%.","PeriodicalId":49952,"journal":{"name":"Journal of Web Engineering","volume":"22 2","pages":"221-254"},"PeriodicalIF":0.7000,"publicationDate":"2023-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://ieeexplore.ieee.org/iel7/10243554/10243559/10247495.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Web Engineering","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/10247495/","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

A home automation system means monitoring and controlling various kinds of devices in the home remotely using the Internet of things (IoT). Technologies such as natural language processing techniques, user-friendly visual programming, and machine intelligence programming are already available for home automation. For such systems, the increase in the number of devices often makes users focused on the system's ability to perform complex or composing tasks. However, some existing natural language processing systems can only perform simple tasks and cannot meet users' needs. Thus, it is difficult for users to develop the home automation systems they need using visual programming systems because of the large amount of programming knowledge required. Meanwhile, automatic programming without user action can only write a few lines of code and implement little functionality. There are relatively few tools available for generating home automation scripting languages. To address this problem, we propose a practical method for generating executable home automation scripts using Chinese texts. Our method includes the following steps: it extracts critical information from the command sentences in Chinese; it uses first-order logic to check the validity of the extracted information; based on the validation, the correct sentences are mapped into the intermediate language scripts, which can interface with different home platforms. We conducted experiments on Home Assistant, converted intermediate scripts to Home Assistant, and collected 600 scenario descriptions. The experimental results show that the method can automatically generate executable scripts for the Home Assistant platform, and the correct rate was 93.66%.
一种用于智能家居的自动化脚本生成技术
家庭自动化系统意味着使用物联网(IoT)远程监控和控制家中的各种设备。自然语言处理技术、用户友好的视觉编程和机器智能编程等技术已经可用于家庭自动化。对于这样的系统,设备数量的增加通常会让用户关注系统执行复杂或组成任务的能力。然而,一些现有的自然语言处理系统只能执行简单的任务,无法满足用户的需求。因此,由于需要大量的编程知识,用户很难使用可视化编程系统来开发他们需要的家庭自动化系统。同时,没有用户操作的自动编程只能编写几行代码,实现的功能很少。可用于生成家庭自动化脚本语言的工具相对较少。为了解决这个问题,我们提出了一种使用中文文本生成可执行家庭自动化脚本的实用方法。我们的方法包括以下步骤:从汉语命令句中提取关键信息;它使用一阶逻辑来检查提取的信息的有效性;在验证的基础上,将正确的句子映射到中间语言脚本中,该脚本可以与不同的家庭平台进行接口。我们在Home Assistant上进行了实验,将中间脚本转换为Home Assistant,并收集了600个场景描述。实验结果表明,该方法能够自动生成适用于家庭助手平台的可执行脚本,正确率为93.66%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Web Engineering
Journal of Web Engineering 工程技术-计算机:理论方法
CiteScore
1.80
自引率
12.50%
发文量
62
审稿时长
9 months
期刊介绍: The World Wide Web and its associated technologies have become a major implementation and delivery platform for a large variety of applications, ranging from simple institutional information Web sites to sophisticated supply-chain management systems, financial applications, e-government, distance learning, and entertainment, among others. Such applications, in addition to their intrinsic functionality, also exhibit the more complex behavior of distributed applications.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信