GNN-XAR: A Graph Neural Network for Explainable Activity Recognition in Smart Homes
Michele Fiori, Davide Mor, Gabriele Civitarese, Claudio Bettini
TL;DR
GNN-XAR addresses the need for explainable activity recognition in smart homes by introducing a dynamic graph-based GNN framework. It constructs time-window graphs from environmental sensor events, processes them with a Graph Convolutional Network, and uses an adapted GNNExplainer to identify influential nodes and arcs, translating these into natural language explanations. The approach demonstrates that explainable GNNs can outperform state-of-the-art explainable HAR methods in both classification accuracy (slightly improved F1) and explanation quality, as evidenced by evaluations on CASAS Milan and Aruba. This work has practical implications for trusted, transparent HAR in ambient assisted living, enabling clinicians and caregivers to understand model decisions and justify healthcare interventions.
Abstract
Sensor-based Human Activity Recognition (HAR) in smart home environments is crucial for several applications, especially in the healthcare domain. The majority of the existing approaches leverage deep learning models. While these approaches are effective, the rationale behind their outputs is opaque. Recently, eXplainable Artificial Intelligence (XAI) approaches emerged to provide intuitive explanations to the output of HAR models. To the best of our knowledge, these approaches leverage classic deep models like CNNs or RNNs. Recently, Graph Neural Networks (GNNs) proved to be effective for sensor-based HAR. However, existing approaches are not designed with explainability in mind. In this work, we propose the first explainable Graph Neural Network explicitly designed for smart home HAR. Our results on two public datasets show that this approach provides better explanations than state-of-the-art methods while also slightly improving the recognition rate.
