Skip to main content
QUICK REVIEW

[Paper Review] Activity2Vec: Learning ADL Embeddings from Sensor Data with a Sequence-to-Sequence Model

Alireza Ghods, Diane J. Cook|arXiv (Cornell University)|Jul 12, 2019
Context-Aware Activity Recognition SystemsComputer Science8 citations
TL;DR

This paper proposes Activity2Vec, a sequence-to-sequence RNN model that learns universal, low-dimensional embeddings from raw sensor data for activity recognition in smart homes and wearables. By leveraging an encoder-decoder architecture with LSTMs, it captures temporal dependencies and produces compact, semantically meaningful features that outperform hand-crafted features and raw data in classification and clustering tasks.

ABSTRACT

Recognizing activities of daily living (ADLs) plays an essential role in analyzing human health and behavior. The widespread availability of sensors implanted in homes, smartphones, and smart watches have engendered collection of big datasets that reflect human behavior. To obtain a machine learning model based on these data,researchers have developed multiple feature extraction methods. In this study, we investigate a method for automatically extracting universal and meaningful features that are applicable across similar time series-based learning tasks such as activity recognition and fall detection. We propose creating a sequence-to-sequence (seq2seq) model to perform this feature learning. Beside avoiding feature engineering, the meaningful features learned by the seq2seq model can also be utilized for semi-supervised learning. We evaluate both of these benefits on datasets collected from wearable and ambient sensors.

Motivation & Objective

  • To address the limitations of hand-crafted features in activity recognition, which require expert knowledge and lack generalizability.
  • To overcome the shortcomings of traditional autoencoders in handling temporal dependencies and variable-length time series inputs in ADL data.
  • To develop a self-supervised feature learning framework that extracts meaningful, compact representations from raw sensor sequences without requiring labeled data for feature extraction.
  • To evaluate the model’s ability to generalize to unseen activity classes through zero-shot inference.
  • To assess the quality of learned embeddings via intra-class similarity and clustering performance on real-world sensor datasets.

Proposed method

  • Employ a sequence-to-sequence (seq2seq) model with bidirectional LSTMs as the encoder and a hierarchical decoder to process raw sensor time series.
  • Train the model end-to-end using a reconstruction loss to reconstruct input sequences from learned latent representations, enabling unsupervised feature learning.
  • Use the learned encoder’s final hidden state as a fixed-length embedding vector (activity2vec) for downstream classification tasks.
  • Apply t-SNE visualization to compare the clustering quality of activity2vec embeddings versus hand-crafted features in the learned representation space.
  • Evaluate the model on two datasets: HAR (wearable sensors) and HH101 (ambient smart home sensors) using F1-score and intra-class similarity metrics.
  • Conduct leave-one-class-out experiments to test zero-shot generalization by encoding unseen classes using a model trained on all other classes.

Experimental results

Research questions

  • RQ1Can a seq2seq model learn universal, meaningful embeddings from raw sensor data that generalize across different ADL recognition tasks?
  • RQ2Does the proposed activity2vec framework outperform hand-crafted features and raw data in activity recognition accuracy on wearable and ambient sensor datasets?
  • RQ3Can the learned embeddings capture sufficient semantic structure to group similar activities together in the latent space, as indicated by intra-class similarity?
  • RQ4To what extent can the model generalize to unseen activity classes without retraining, using only encoded representations from related classes?
  • RQ5Do the learned embeddings preserve temporal dependencies and spatial relationships inherent in sensor time series data?

Key findings

  • Activity2Vec achieved the highest F1-score on the HAR test set (0.97 for walking, 0.95 for walking up, 0.94 for walking down), outperforming both raw features and hand-crafted features.
  • The intra-class similarity for activity2vec embeddings was significantly lower (e.g., 1.15 for standing) compared to hand-crafted features (11.90), indicating tighter clustering of same-class instances.
  • In the leave-one-class-out evaluation, the random forest model achieved F1-scores above 0.92 for all excluded classes, demonstrating effective zero-shot generalization using pre-trained activity2vec features.
  • t-SNE visualization confirmed that activity2vec embeddings form well-separated, geometrically coherent clusters per activity class, with similar activities (e.g., walking up/down) located close together.
  • On the HH101 dataset, activity2vec maintained competitive performance (F1: 0.83 for bath, 0.87 for hygiene, 0.93 for relax) and showed lower intra-class similarity (e.g., 1.34 for bath) than hand-crafted features (0.97), indicating better clustering.
  • The model’s ability to learn meaningful representations without supervision or task-specific fine-tuning highlights its potential for semi-supervised and few-shot learning in health monitoring applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.