Semantic-aware Graph-guided Behavior Sequences Generation with Large Language Models for Smart Homes

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xu, Zhiyao, Zhao, Dan, Zou, Qingsong, Li, Qing, Jiang, Yong, Wang, Yuhang, Xiao, Jingyu
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908479330975744
author Xu, Zhiyao
Zhao, Dan
Zou, Qingsong
Li, Qing
Jiang, Yong
Wang, Yuhang
Xiao, Jingyu
author_facet Xu, Zhiyao
Zhao, Dan
Zou, Qingsong
Li, Qing
Jiang, Yong
Wang, Yuhang
Xiao, Jingyu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2508_03484
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Semantic-aware Graph-guided Behavior Sequences Generation with Large Language Models for Smart Homes
Xu, Zhiyao
Zhao, Dan
Zou, Qingsong
Li, Qing
Jiang, Yong
Wang, Yuhang
Xiao, Jingyu
Artificial Intelligence
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.
title Semantic-aware Graph-guided Behavior Sequences Generation with Large Language Models for Smart Homes
topic Artificial Intelligence
url https://arxiv.org/abs/2508.03484