基于LLM智能体的智能家居场景规则自动生成
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家自然科学基金(62472412); 中国科学院软件研究所重大项目(ISCAS-ZD-202302)


Automatic Generation of Smart Home Scenario Rules Based on LLM Agents
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    在智能家居系统中, 场景自动化规则可根据用户设定的触发条件, 自动执行一组设备操作, 实现如“回家模式”“睡眠模式”等复杂的设备联动行为. 然而, 终端用户在创建定制化规则时常面临挑战, 特别是在实现多设备协同和满足复杂用户意图时表现尤为明显. 一方面, 用户普遍缺乏专业知识, 难以清晰表达需求或将其转化为形式化规则; 另一方面, 现有自动化规则生成方法普遍存在两方面局限: 其一, 缺乏对复杂场景的建模能力, 难以支持涉及多设备协同的高级自动化需求; 其二, 过于依赖用户提供明确的、结构化的指令, 忽略了用户意图的隐性表达. 为解决上述问题, 提出HomeMind——以大语言模型(large language model, LLM)为核心, 融合模式挖掘与语义理解能力的智能体系统. HomeMind的工作流程包括3个核心步骤: 首先, 采用无监督的频繁事件模式挖掘方法, 自适应处理不同长度的事件序列, 以更精准地识别事件模式; 其次, 为每个模式提取周与日两个尺度的时间特征, 显著增强其时间上下文信息; 最后, 通过上下文增强的提示词机制, 引导LLM基于思维链推断用户意图, 生成语义明确的场景规则. 最终, HomeMind将生成的候选规则呈现给用户, 辅助其理解并筛选最契合生活习惯的自动化方案, 并支持与智能家居平台接口集成, 实现规则一键部署. 在真实世界数据集和合成数据集上对HomeMind进行全面评估, 实验结果表明其在意图推断和规则生成准确性方面均优于现有基线方法.

    Abstract:

    In smart home systems, scenario automation rules can automatically execute a set of device operations based on user-defined trigger conditions, enabling complex coordinated behaviors such as “home mode” or “sleep mode”. However, end users often face challenges when creating customized rules, particularly when coordinating multiple devices and addressing complex intentions. On the one hand, users typically lack the technical expertise to clearly articulate their needs or translate them into formal rules. On the other hand, existing methods for generating automation rules have two primary limitations. First, they lack the capability to model complex scenarios, making it difficult to support advanced automation needs involving multi-device coordination. Second, they overly rely on users providing explicit, structured instructions, overlooking the implicit expression of user intentions. To address these issues, this study proposes HomeMind, an intelligent agent system powered by large language models (LLMs) that integrates pattern mining and semantic understanding capabilities. The workflow of HomeMind comprises three core steps. First, an unsupervised method for mining frequent event patterns is used to adaptively process event sequences of varying lengths, enabling more accurate identification of event patterns. Second, temporal features at both weekly and daily scales are extracted for each pattern, significantly enhancing its temporal context. Finally, a context-augmented prompt mechanism is leveraged to guide the LLM in inferring user intentions through chain-of-thought reasoning and generating semantically clear scenario automation rules. Ultimately, HomeMind presents candidate rules to users, facilitating the understanding and selection of automation solutions best suited to their lifestyles, and supports integration with smart home platforms for one-click rule deployment. Comprehensive evaluations of HomeMind are conducted on both real-world and synthetic datasets. Experimental results demonstrate that HomeMind outperforms existing baseline methods in both intention inference and rule generation accuracy.

    参考文献
    相似文献
    引证文献
引用本文

刘力玮,陈伟,魏峻,朱家鑫,王伟,吴国全,汪涛.基于LLM智能体的智能家居场景规则自动生成.软件学报,,():1-22

复制
相关视频

分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2025-08-20
  • 最后修改日期:2025-12-05
  • 录用日期:
  • 在线发布日期: 2026-06-03
  • 出版日期:
文章二维码
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号