Knowledge Graph-Guided Temporal Behavior Interpretation with a Local LLM Agent in Smart Homes
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.
Create a lesson
Metadata
- Comments
- 6 pages. Accepted at IoT-Life 2026, held in conjunction with IEEE CyberSciTech 2026
Related papers
TIDIER: Text-to-Image Alignment via Knowledge- Guided Hate Detection, InterprEtation, and Repair
Shared title terminologycs.AIRenjith Prasad Kaippilly Mana, Anushka Prashant Pawar, Chathurangi Shyalika et al.
From Shared Patterns to Individual Evidence: Two-Stage Reasoning for Emerging Entities in Temporal Knowledge Graphs
Shared title terminologycs.AIJinchuan Zhang, Lei Gao, Hongyu Jiang et al.
Did the Model Forecast It, or Already Know It? Evaluating Large Language Models for Novel Drug-Target Prioritisation with a Temporal Knowledge-Graph Oracle
Shared title terminologycs.AIPui Chung Siu, Yuan Liang, Claudia Cabrera et al.
G-Skill: Graph-Grounded Skill Evolution for Agentic Reinforcement Learning
Shared title terminologycs.AIJue Hou, Chengyi Yang, Renxu Bao et al.
Implicit Relation Linking for Question Answering over Knowledge Graph
Shared title terminologycs.AIYao Zhao, Jiacheng Huang, Wei Hu et al.
Self-Regression-Test: Persistent Behavioral Contracts for Skill-Evolving Agents
Shared title terminologycs.AIXinjian Yi, Rui Qian, Xutao Mao et al.