cs.AINov 26, 2026

Knowledge Graph-Guided Temporal Behavior Interpretation with a Local LLM Agent in Smart Homes

Authors: Tianle Hu, Hong Chen, Yenjou Wang

Organizations: Department of Information, Artificial Intelligence and Data Science, Daiichi Institute of Technology, Tokyo, Japan · School of Artificial Intelligence, Xiamen Institute of Technology, Xiamen, China

Abstract

With the rise in aging populations and single-person households, privacy-preserving smart-home behavior monitoring is increasingly essential for daily living analysis and home-care applications. Smart-home sensors continuously record daily activities; however, these data are typically stored as low-level event logs, which are not directly interpretable as meaningful behavioral patterns. This paper presents a knowledge graph (KG)-guided local large language model (LLM) agent for temporal behavior interpretation in smart homes. The proposed system utilizes Home Assistant sensor histories and Qwen2.5-0.5B-Instruct, a lightweight local LLM, to interpret and explain daily behavior patterns. Sensor records are transformed into behavior-level summaries and organized into rolling-window features to capture multi-day changes. The proposed framework further adapts Qwen2.5 using Low-Rank Adaptation (LoRA) with KG-guided input. Experimental results using an external dataset and local Home Assistant data demonstrate that KG-guided fine-tuning improves the stability and consistency of temporal-state interpretation compared to the base model. Additionally, five-day and seven-day windows yield more stable KG-guided interpretations than shorter windows.

Explore similar work

CardsList
  1. DomusFM: A Foundation Model for Event-Based Behavioral Monitoring in Smart-Homes

    Feb 2, 2026Michele Fiori, Gabriele Civitarese, Flora D. Salim +1Behavioral Foundation ModelsHuman Activity Recognition

  2. HomeFlow: A Data Flywheel for Smart Home Agent Training with Verifiable Simulation

    May 31, 2026Yi Gu, Huacan Wang, Shuo Zhang +10AI Agent BenchmarksLLM Agent Training

  3. SmartBench: Evaluating LLMs in Smart Homes with Anomalous Device States and Behavioral Contexts

    Feb 24, 2026Qingsong Zou, Zhi Yan, Zhiyao Xu +3Contextual Anomaly DetectionAnomaly Detection