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

arXiv: https://arxiv.org/abs/2611.35363 · HTML: https://mlsanity.com/paper/2611.35363/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Submitted 26 Nov 2026, announced 30 Nov 2026.

## Placed in

- LLM agents and tool use

## Abstract (arXiv)

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.
