Manuscript Offprint

arXiv:2611.06296

Multi-Resident Data Association in Smart Homes via MDP Modeling and Behavior Cloning

Xi Chen, Julien Cumin, Fano Ramparany, Dominique Vaufreydaz

ABSTRACT

Ambient sensors offer a privacy-preserving solution for activity recognition in smart homes, yet they face a critical challenge in multi-resident environments known as Data Association, which aims to identify the resident triggering a specific anonymous sensor event. Existing approaches fundamentally fail to maintain global consistency by often yielding conflicting associations for silent residents. Additionally, these methods frequently suffer from severe trajectory fragmentation caused by the ontological mismatch of applying continuous physical motion models to discrete logical behaviors. To address these limitations, we propose a novel framework that reformulates data association as a sequential decision-making task within a Markov Decision Process (MDP). We solve the defined MDP via Behavior Cloning (BC) to avoid complex reward engineering by directly learning from expert demonstrations. We instantiate the policy using two complementary architectures, including a lightweight Transformer that treats association as a multi-label classification task over linearized event histories, and a fine-tuned Large Language Model (LLM) that reformulates the problem as conditional text generation to leverage pre-trained semantic knowledge. Extensive evaluations on three diverse datasets demonstrate that our approach significantly outperforms state-of-the-art baselines, particularly in resolving concurrent multi-resident events. Furthermore, the LLM-based policy shows preliminary cross-environment transfer potential under benchmark settings, while its robustness in real deployments still requires further validation.

Keywords:

1 Introduction

Ambient sensors serve as a practical foundation for intelligent smart-home services because they are low-power, unobtrusive, and privacy-preserving, making them particularly attractive for daily residential monitoring compared to more intrusive modalities such as cameras or wearables. These properties have fueled a wave of sophisticated research into high-level behavioral analytics, including health monitoring, home safety, and building automation [1, 3, 10, 26, 31, 34]. However, a fundamental mismatch emerges when these applications move beyond controlled laboratory studies: most experimental settings simplify the problem to single-resident households, whereas real-world homes are commonly shared by multiple occupants. Under these realistic multi-resident conditions, the identity-blind nature of ambient observations becomes a fundamental and shared barrier. In all of these settings, the practical value of sensor data depends entirely on recovering resident-level context rather than merely detecting that some occupant triggered a sensor. This inability to isolate resident-specific event streams has effectively blocked the practical implementation of advanced services. Specifically, clinically meaningful monitoring of behavioral changes [5, 21, 34], resident-specific anomaly detection [2, 20, 31, 32], and personalized building automation [3, 26, 28, 43] all remain largely unusable in shared homes because they cannot reliably attribute activities or preferences to a specific target individual. Without a robust mechanism to separate interleaved sensor streams and reconstruct individual trajectories, ambient intelligence remains confined to unrealistic single-occupant assumptions that fail to meet the personalization and reliability requirements of true residential deployment. More broadly, this challenge sits at the systems boundary between sensing and personalized interaction: ubiquitous computing applications can be embedded, privacy-preserving, and continuously available in the home, but they remain fundamentally limited if they cannot maintain resident-specific context under realistic multi-occupant conditions.

This technical gap stems from the inherent nature of ambient sensors, which typically provide sparse, fixed-location, and event-driven observations without explicit identity labels. When several residents share the same environment, their sensor events become temporally interleaved, thereby obscuring the continuity of each individual's behavior. The task of recovering separated individual trajectories from these interleaved observations is called Data Association [7, 8, 11, 15, 24, 39, 40, 42]. Compared with indoor localization, which focuses on continuously estimating coordinates [23], Data Association operates on sensor events that are semantically richer but much sparser. This higher semantic level is particularly valuable for downstream applications because it is more directly tied to meaningful activities and interactions. For example, knowing that a resident is in the kitchen does not by itself reveal whether the resident is cooking or washing dishes. In contrast, observing that the stove's power sensor reports an increase provides stronger semantic evidence that the resident may be cooking. The goal of Data Association is therefore to disentangle these sparse symbolic events into coherent resident-level event streams so that downstream semantic inference, such as activity recognition [7], can be carried out on each recovered trajectory.

Existing Data Association methods largely fall into event-centric and global state paradigms, yet both face significant structural limitations. Event-centric approaches [12, 19] classify observations with limited context. However, by lacking a persistent memory of "silent" residents, they fundamentally fail to maintain global consistency, often producing conflicting associations that violate multi-resident physical constraints. In practical shared-home settings, such inconsistencies can blur who performed which activity, directly undermining resident-specific interpretation. Conversely, global state approaches attempt to track the full environment but struggle with modeling capability. Classic discrete filtering methods [42] suffer from combinatorial explosion in the hypothesis space and are typically restricted to first-order Markovian transitions, limiting their ability to capture long-term behavioral dependencies. Continuous embedding approaches [39, 40] circumvent this combinatorial bottleneck by projecting discrete events into a continuous latent space to leverage efficient approximations (e.g., GM-PHD filters). However, this paradigm introduces an ontological mismatch: by enforcing linear dynamic model on discrete symbolic behaviors, they suffer from covariance divergence during sparse sensor activations, leading to trajectory fragmentation. In practice, these fragmented trajectories can break resident-level behavioral summaries and destabilize downstream monitoring or anomaly attribution. Most recently, LLM-based approaches [13] have revisited discrete reasoning but primarily rely on frozen pre-trained knowledge rather than actively utilizing sensor data for training, resulting in weak adaptation to domain-specific distributions. These limitations highlight the need for a principled framework that synergizes (i) an extensible, history-augmented discrete state that transcends first-order Markovian limits to capture long-term context, and (ii) data-driven transition dynamics capable of resolving complex association ambiguities via learned domain knowledge.

In this paper, we address these requirements by reformulating multi-resident Data Association as a Markov Decision Process (MDP) [30]. Our key shift is conceptual: instead of treating each sensor event as an isolated classification target or estimating assignments through recursive filtering alone, we cast the problem as sequential decision-making over a history-augmented global state. In our formulation, the state explicitly summarizes the evolving assignment history of all residents, and each action selects the resident set responsible for the current event. This perspective is well suited to shared homes because it enables the policy to incorporate long-range contextual dependencies, maintain logical consistency across residents, and naturally handle the dynamic evolution of household occupancy. Moreover, by explicitly organizing the task around states, actions, and sequential decisions, the MDP provides a principled framework for learning-based data association. In practice, however, specifying a reliable reward function for online deployment is difficult, whereas expert trajectories are already available in annotated datasets. We therefore solve the proposed MDP through Behavior Cloning (BC) [27], treating labeled event streams as demonstrations of expert assignment decisions. This yields a practical data-driven learning strategy while preserving the sequential semantics of the formulation. To study how different policy classes exploit this framework, we instantiate the policy in two complementary ways: a lightweight Transformer [38] that learns temporal assignment patterns from scratch, and a fine-tuned Large Language Model (LLM) [45] that casts resident assignment as conditional generation and can better transfer across heterogeneous sensor environments.

We evaluate our proposed framework on three diverse public datasets: CASAS [36], MARBLE [6], and MuRAL [14], covering a wide range of multi-resident scenarios and sensing configurations. Extensive experiments show that our MDP-based approach, trained via Behavior Cloning, consistently outperforms state-of-the-art baselines [13, 39] by a substantial margin. In particular, it better maintains global consistency, assigns ambiguous events through beam search over candidate trajectories, and resolves concurrent multi-resident events that prior methods struggle to handle. Furthermore, the LLM-instantiated policy exhibits strong cross-environment generalization, demonstrating that semantic knowledge can transfer across heterogeneous sensor environments without extensive retraining. Finally, a simulated downstream health-monitoring analysis shows that these gains in data association also translate into substantially lower activity-duration estimation errors, further supporting the practical value of our method for resident-level health applications. In summary, our main contributions are as follows:

  • We reformulate multi-resident Data Association as a history-aware MDP, providing a unified decision-making framework that explicitly models assignment continuity over time. This formulation moves beyond isolated event classification and first-order filtering, and makes it possible to address ambiguous and overlapping multi-resident events in a principled way.

  • We develop a practical Behavior Cloning solution to this MDP and instantiate it with two complementary policy classes: a lightweight Transformer for efficient data-driven assignment and a fine-tuned LLM for stronger semantic transfer across environments. This design avoids reward engineering while supporting both accurate trajectory recovery and improved generalization under heterogeneous sensor settings.

  • We validate the framework on three public datasets (CASAS, MARBLE, and MuRAL), where it consistently surpasses strong baselines across multiple metrics. Beyond benchmark gains, our results show tangible practical value: the method better preserves resident-level consistency, improves the handling of ambiguous and concurrent events, and reduces downstream activity-duration estimation errors in a simulated health-monitoring setting.

References (43)

  • A survey on ambient intelligence in healthcare
  • Intrusion detection in smart home environments: A machine learning approach
  • Real-time activity recognition for energy efficiency in buildings
  • Aras human activity datasets in multiple homes with multiple residents
  • Automatic assessment of functional health decline in older adults based on smart home data
  • The marble dataset: Multi-inhabitant activities of daily living combining wearable and environmental sensors data
  • Multi-subject human activities: A survey of recognition and evaluation methods based on a formal framework
  • Multioccupant activity recognition in pervasive smart home environments
  • Design and analysis of modern tracking systems
  • Systematic review
  • A two-stage method for solving multi-resident activity recognition in smart environments
  • Generative resident separation and multi-label classification for multi-person activity recognition
  • Towards llm-powered ambient sensor based multi-person human activity recognition
  • MuRAL: A Multi-Resident Ambient Sensor Dataset Annotated with Natural Language for Activities of Daily Living
  • Interaction models for multiple-resident activity recognition in a smart home
  • Detection of social interaction in smart spaces
  • Attributing events to individuals in multi-inhabitant environments
  • Resident and caregiver: Handling multiple people in a smart care facility
  • Using a hidden markov model for resident identification
  • Anomaly detection in smart environments: a comprehensive survey
  • A semantic framework to detect problems in activities of daily living monitored through smart home sensors
  • Nature, 645(8081):633–638, 2025
  • A survey of indoor location technologies, techniques and applications in industry
  • Strategies for inference mechanism of conditional random fields for multiple-resident activity recognition in a smart home
  • Low-rank adaptation of large language models
  • Energy management for smart homes—state of the art
  • Towards an intelligent energy conservation approach for context-aware systems in smart environments
  • Bleu: a method for automatic evaluation of machine translation
  • Enhancing smart home security: anomaly detection and face recognition in smart home iot devices using logit-boosted cnn models
  • A comprehensive review of machine learning approaches for anomaly detection in smart homes: experimental analysis and future directions
  • Unsupervised recognition of multi-resident activities in smart-homes
  • Smartfaber: Recognizing fine-grained abnormal behaviors for early detection of mild cognitive impairment
  • A reduction of imitation learning and structured prediction to no-regret online learning
  • Recognizing independent and joint activities among multiple residents in smart environments
  • Probabilistic robotics
  • Attention is all you need
  • smrt: Multi-resident tracking in smart homes with sensor vectorization
  • Multi-person activity recognition in continuously monitored smart homes
  • Advances in neural information processing systems, 35:24824–24837, 2022
  • Simultaneous tracking and activity recognition (star) using many anonymous, binary sensors
  • A smart home energy management system based on human activity recognition and deep reinforcement learning
  • Star: Bootstrapping reasoning with reasoning
  • A Survey of Large Language Models