Beyond the Gates of Euclidean Space: Temporal-Discrimination-Fusions and Attention-based Graph Neural Network for Human Activity Recognition

Nafees Ahmad, Savio Ho-Chit Chow, Ho-fung LeungarXiv 2022 · DOI

Introduction

Human Activity Recognition (HAR) is a cornerstone of modern healthcare monitoring, typically relying on data from wearable sensors like accelerometers and gyroscopes. Traditionally, researchers have treated HAR as a standard time-series problem, applying Euclidean deep learning architectures such as Convolutional Neural Networks (CNNs) or Long Short-Term Memory (LSTM) networks. However, these approaches often fail to capture the complex, non-linear relationships between consecutive timestamps and tend to treat all sensor channels with equal importance, regardless of the activity being performed.

This paper introduces a novel Graph Neural Network (GNN) framework that moves HAR into non-Euclidean space. By representing time-series data as structured graphs and employing a combination of Graph Convolutional Networks (GCNs) and self-attention mechanisms, the proposed method effectively models both temporal dependencies and the varying discriminative power of different body-worn sensors.

Proposed Methodology

The authors propose a three-stage pipeline designed to transform unstructured raw sensor data into a highly discriminative structured format.

The proposed three-stage pipeline for HAR, including graph generation, GCN encoding, and self-attention.
  1. Time-Series-Graph Module: This module converts raw sensor streams into a graph structure. Each timestamp within a sliding window is defined as a node, while the sensor channels (e.g., x, y, and z axes for both accelerometer and gyroscope) serve as node features. To preserve the inherent temporal flow, consecutive timestamps are connected with undirected edges, creating a chain-like graph that explicitly encodes the sequence of movement.
  2. GCN Encoder: The framework utilizes Graph Convolutional Networks to perform "message passing" between neighboring nodes. This allows the model to learn local dependencies and correlations between nearby timestamps more effectively than standard sliding window approaches used in CNNs.
  3. Self-Attention GNN Encoder: This core innovation computes the correlation between different sensor channels at the same timestamp. By applying a self-attention layer after the GCN processing, the model can dynamically "weight" sensors based on their relevance to the current activity. For instance, it can prioritize wrist-worn sensors for upper-body movements like "drinking" while down-weighting less relevant data from other locations.

Experimental Evaluation

The model was evaluated using a specialized Hospitalized Elderly Patients Dataset, featuring data from 12 elderly patients performing seven distinct activities (e.g., Lying, Sitting, Walking, Getting Up). Sensors were worn on clothing and collected data at a 10 Hz frequency. To ensure the model's ability to generalize to new users, the authors employed a cross-subject "hold-out" evaluation strategy and utilized the F1-score to account for the class imbalance common in medical activity data.

Results and Key Insights

The proposed GCN + Self-Attention model demonstrated superior performance over established baselines:

  • Proposed Method: 68.5% F1-score
  • Previous SOTA (Attend and Discriminate): 66.6% F1-score
  • Standard Deep Learning (DeepConvLSTM): 62.8% F1-score
  • Standard GCN: 63.1% F1-score
Graph representations for various activities, illustrating how temporal sensor data is structured into non-Euclidean space.

The Power of Graph Representation

Simply transitioning from a traditional CNN to a basic GCN yielded a 3.1% improvement in performance. This suggests that the inductive bias of a graph—treating time as a network of related events rather than a flat array—is inherently better suited for capturing the nuances of human movement. Qualitative analysis using t-SNE visualizations further confirmed that graph-based features create tighter, more distinct clusters for activities compared to Euclidean methods.

Dynamic Sensor Weighting

The self-attention maps revealed that the model successfully learned to distinguish which sensors were redundant for specific activities. For "Lying," certain sensors were ignored, whereas for "Walking," the coordination between multiple sensors became paramount. This ability to distinguish between activities that appear similar in raw signal space but possess different temporal rhythms is a key advantage of the non-Euclidean approach.

Conclusion and Future Work

By moving beyond the limitations of Euclidean space, this research provides a more robust framework for HAR in sensitive populations like hospitalized elderly patients. While the current results are state-of-the-art, future work may involve incorporating "edge features" (such as the rate of change between timestamps) or exploring more complex graph topologies to capture long-term periodic dependencies. Expanding the dataset to include more diverse demographics and sensor placements will further validate the generalizability of this attention-based GNN approach.

Summary updated

BibTeX
@misc{ahmad2022beyond,
  author = {Nafees Ahmad and Savio Ho-Chit Chow and Ho-fung Leung},
  title = {{Beyond the Gates of Euclidean Space: Temporal-Discrimination-Fusions and Attention-based Graph Neural Network for Human Activity Recognition}},
  year = {2022},
  eprint = {2206.04855},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.04855},
}
Figure