Explainable Activity Recognition for Smart Home Systems

Devleena Das, Yasutaka Nishimura, Rajan Pathe Vivek, Naoto Takeda, Sean T Fish, Thomas Ploetz, Sonia Chernova · DOI

Introduction

Smart home environments increasingly rely on Human Activity Recognition (HAR) to support the well-being of residents, particularly elderly individuals living independently. By utilizing a network of sensors, these systems can identify Activities of Daily Living (ADLs) such as cooking, bathing, or sleeping. However, most state-of-the-art HAR models function as "black boxes," providing predictions without context. This lack of transparency can lead to a loss of trust, especially when a system provides an unexpected or incorrect label. This paper introduces a framework that bridges the gap between complex machine learning and human understanding by converting sensor data into natural language explanations.

The Challenge of Black-Box HAR

While deep learning models like Long Short-Term Memory (LSTM) networks excel at identifying patterns in temporal sensor data, they cannot explain why a specific activity was detected. For a remote caregiver, simply knowing that a system flagged an anomaly is often insufficient. They need to know which sensors triggered the alert and the sequence of events to determine if an intervention is necessary. The researchers address this by applying Explainable AI (XAI) techniques to provide human-readable justifications for model outputs.

Methodology

The researchers developed a multi-stage framework designed to transform raw sensor events into intuitive explanations. The process begins with a standard activity recognition pipeline and extends into a novel explanation generation and evaluation phase.

Activity Recognition Pipeline

The core of the system is a uni-LSTM neural network trained on temporal sensor data. This model processes sequences of sensor events to output an activity label.

The core activity recognition pipeline using an LSTM model.

XAI Integration and Natural Language Generation

To explain the LSTM's predictions, the framework integrates three established model-agnostic XAI techniques: LIME, SHAP, and Anchors. Additionally, the authors introduced LIME+, an extension that identifies "blocks" of time for sensor importance rather than isolated timesteps, providing better temporal context.

Once the XAI models identify the most influential sensor events, a template-based Natural Language Generation (NLG) module translates these features into sentences. For example, instead of a feature weight, a user sees: "Pat is bathing because between 16:35-16:38, movement in the shower was detected."

Overview of the explanation generation and evaluation framework, showing how different XAI models produce distinct natural language justifications.

Experimental Setup and Datasets

The framework was validated using the CASAS Milan Dataset, a benchmark containing 92 days of continuous data from a real-world home equipped with 33 sensors (motion, door, and temperature). The researchers mapped this data into 10 primary ADLs. To evaluate the quality of the generated explanations, they conducted an expert "sensibility" analysis and two user studies involving 111 participants to measure trust and confidence.

Key Insights and Results

Sensibility and User Preference

The study revealed that technical accuracy does not always equate to human utility. An explanation is considered "sensible" if the sensor data cited logically matches the activity (e.g., shower movement for bathing).

  • SHAP emerged as the gold standard, producing sensible explanations in 92.2% of cases.
  • Anchors followed at 87.4%, while LIME lagged behind at 64.1%.
  • User Preference: In 83.1% of scenarios, participants preferred natural language explanations over simple activity labels.

The Confidence Double-Edge

Interestingly, the quality of an explanation directly impacts user trust. While high-quality SHAP explanations increased user confidence, poor or confusing explanations (often from LIME) actually made users less confident than if they had received no explanation at all. This highlights the risk of deploying "low-sensibility" XAI in sensitive caregiving contexts.

Temporal Context

Users showed a strong preference for "Ordered Temporal" explanations. Knowing the duration and sequence of events (e.g., "the door was open for 6 minutes") was deemed far more valuable than a simple list of triggered sensors. This validates the utility of the LIME+ approach, which emphasizes temporal blocks.

Discussion and Future Directions

While the framework significantly improves transparency, it faces a major hurdle: computational efficiency. Generating a single explanation using SHAP or Anchors takes approximately 11-12 minutes, compared to just 6 seconds for LIME. This delay makes high-quality explanations difficult to deploy in real-time safety systems, such as fall detection.

Future work will explore the use of Large Language Models (LLMs) to move beyond rigid templates and create more fluid, conversational explanations. Additionally, the researchers aim to test the framework with professional caregivers and family members to better understand the long-term psychological effects of constant automated explanations.

Summary updated

BibTeX
@article{das2021explainable,
  author = {Devleena Das and Yasutaka Nishimura and Rajan Pathe Vivek and Naoto Takeda and Sean T Fish and Thomas Ploetz and Sonia Chernova},
  title = {{Explainable Activity Recognition for Smart Home Systems}},
  journal = {ACM Trans. Interact. Intell. Syst.},
  year = {2021},
  doi = {10.1145/3561533},
}
Figure