用大模型生成智能家庭行为数据,解决模型因习惯变化而失效的问题。
Semantic-aware Graph-guided Behavior Sequences Generation with Large Language Models for Smart Homes
- 分段+压缩+图引导生成,让大模型理解时间与语义,合成合理行为序列。
- 在真实数据集上使异常检测准确率提升85.43%,行为预测提升70.51%。
- 适合需要持续更新的智能家居系统,尤其关注隐私与数据难获取场景。
随着智能家居日益普及,智能模型广泛应用于异常检测和行为预测。但这些模型通常基于静态数据训练,面对季节变化、生活方式改变或习惯演进导致的行为漂移时表现脆弱。而重新收集行为数据既缓慢又昂贵,且涉及隐私问题。本文提出 SmartGen,一个基于大语言模型的框架,用于合成上下文感知的用户行为数据,支持下游模型的持续适应。SmartGen 包含四个核心组件:首先,设计时间与语义感知的分段模块,在双重时间约束下将长行为序列划分为语义连贯的子序列;其次,提出语义感知序列压缩,通过潜在空间中的行为映射聚类降低输入长度,同时保留代表性语义;第三,引入图引导序列生成,构建行为关系图并将频繁转移编码为提示,引导大模型生成符合上下文变化且保持核心行为模式的数据;最后,设计两阶段异常过滤器,识别并剔除不合理或语义不一致的输出,提升生成序列的事实一致性和行为合理性。在三个真实世界数据集上的实验表明,SmartGen 显著提升了在行为漂移下的异常检测与行为预测性能,平均使异常检测提升85.43%,行为预测提升70.51%。代码已开源:https://github.com/horizonsinzqs/SmartGen。
原文摘要 · Abstract (English)
As smart homes become increasingly prevalent, intelligent models are widely used for tasks such as anomaly detection and behavior prediction. These models are typically trained on static datasets, making them brittle to behavioral drift caused by seasonal changes, lifestyle shifts, or evolving routines. However, collecting new behavior data for retraining is often impractical due to its slow pace, high cost, and privacy concerns. In this paper, we propose SmartGen, an LLM-based framework that synthesizes context-aware user behavior data to support continual adaptation of downstream smart home models. SmartGen consists of four key components. First, we design a Time and Semantic-aware Split module to divide long behavior sequences into manageable, semantically coherent subsequences under dual time-span constraints. Second, we propose Semantic-aware Sequence Compression to reduce input length while preserving representative semantics by clustering behavior mapping in latent space. Third, we introduce Graph-guided Sequence Synthesis, which constructs a behavior relationship graph and encodes frequent transitions into prompts, guiding the LLM to generate data aligned with contextual changes while retaining core behavior patterns. Finally, we design a Two-stage Outlier Filter to identify and remove implausible or semantically inconsistent outputs, aiming to improve the factual coherence and behavioral validity of the generated sequences. Experiments on three real-world datasets demonstrate that SmartGen significantly enhances model performance on anomaly detection and behavior prediction tasks under behavioral drift, with anomaly detection improving by 85.43% and behavior prediction by 70.51% on average. The code is available at https://github.com/horizonsinzqs/SmartGen.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。