Skip to main content
QUICK REVIEW

[Paper Review] Personalized Activity Recognition with Deep Triplet Embeddings

D. Burns, Cari Whyne|arXiv (Cornell University)|Jan 15, 2020
Context-Aware Activity Recognition SystemsComputer Science5 citations
TL;DR

This paper proposes a personalized human activity recognition system using deep triplet embeddings from a fully convolutional neural network, training with a novel subject-based triplet loss to improve generalization and out-of-distribution detection. The method significantly outperforms both impersonal models and engineered feature baselines, with the subject triplet loss yielding the best overall accuracy and robustness across three inertial sensor datasets.

ABSTRACT

A significant challenge for a supervised learning approach to inertial human activity recognition is the heterogeneity of data between individual users, resulting in very poor performance of impersonal algorithms for some subjects. We present an approach to personalized activity recognition based on deep embeddings derived from a fully convolutional neural network. We experiment with both categorical cross entropy loss and triplet loss for training the embedding, and describe a novel triplet loss function based on subject triplets. We evaluate these methods on three publicly available inertial human activity recognition data sets (MHEALTH, WISDM, and SPAR) comparing classification accuracy, out-of-distribution activity detection, and embedding generalization to new activities. The novel subject triplet loss provides the best performance overall, and all personalized deep embeddings out-perform our baseline personalized engineered feature embedding and an impersonal fully convolutional neural network classifier.

Motivation & Objective

  • To address the challenge of user-specific heterogeneity in inertial sensor data that degrades impersonal HAR models.
  • To evaluate whether learned deep embeddings outperform traditional engineered features in personalized activity recognition.
  • To investigate the effectiveness of triplet loss, particularly a novel subject triplet selection strategy, for training robust personalized embeddings.
  • To enable open-set recognition by detecting out-of-distribution activities without retraining.
  • To assess feasibility for edge deployment through model compactness and efficient inference.

Proposed method

  • A fully convolutional neural network (FCN) is used as a backbone to extract deep embeddings from inertial sensor time series.
  • Two training objectives are compared: categorical cross-entropy loss and a novel triplet loss function based on subject triplets.
  • The subject triplet loss selects triplets consisting of a positive sample (same user, same activity), a negative sample (same user, different activity), and a hard negative from a different user to improve inter-user discrimination.
  • Personalized inference uses k-nearest neighbors (k-NN) search over subject-specific reference embeddings, enabling open-set recognition.
  • The model is evaluated on three public datasets: MHEALTH, WISDM, and SPAR, with performance measured on accuracy, OOD detection, and embedding generalization.
  • A compact FCN with only ~278k parameters is used to support edge deployment.

Experimental results

Research questions

  • RQ1Does training deep embeddings with triplet loss improve personalized activity recognition performance compared to cross-entropy loss or engineered features?
  • RQ2Can a novel subject triplet loss function—based on user-specific hard negatives—enhance model generalization and robustness across heterogeneous users?
  • RQ3How well do personalized embeddings detect out-of-distribution activities compared to standard softmax classifiers?
  • RQ4Can k-NN search over learned embeddings enable effective open-set recognition without retraining?
  • RQ5Is the proposed personalized embedding approach feasible for deployment on edge devices?

Key findings

  • The novel subject triplet loss achieved the highest classification accuracy across all three datasets (MHEALTH, WISDM, SPAR), outperforming both cross-entropy loss and engineered feature baselines.
  • All personalized deep embedding models (PEF, PDF, PTN) significantly outperformed the impersonal fully convolutional neural network (FCN) classifier in terms of accuracy and robustness.
  • The personalized k-NN inference method enabled effective out-of-distribution activity detection, with mean nearest neighbor distance serving as a reliable OOD score.
  • The FCN core model, with only ~278,848 parameters (~1 MB), is compact enough to support deployment on edge devices for real-time, on-device inference.
  • The subject triplet strategy proved highly effective, outperforming conventional triplet selection methods, and is computationally efficient as it does not require pre-computed embeddings for triplet selection.
  • Despite limited temporal overlap in reference and test segments, the method demonstrated strong generalization, suggesting potential for real-world deployment with further data collection.

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.