Human activity recognition based on time series analysis using U-Net

Yong Zhang, Yu Zhang, Zhao Zhang, Jie Bao, Yunpeng SongarXiv 2018

Abstract

Human Activity Recognition (HAR) is a critical component in mobile health and context-aware computing. Traditional methods rely on sliding window techniques that often fail to capture transitions or short-duration activities accurately. This paper introduces a "dense labeling" approach using a modified U-Net architecture. By treating 1D sensor data as a single-pixel-column image, the model performs point-by-point semantic segmentation. Evaluated on five major datasets, the U-Net model demonstrates superior performance, particularly in complex gesture recognition, achieving up to 98.4% accuracy on standard benchmarks.

Introduction: The Multi-Class Window Problem

Conventional HAR systems typically segment continuous sensor data into fixed-size sliding windows. Each window is assigned a single label based on the most frequent activity within that timeframe. However, this approach encounters the "multi-class window problem" during transitions or when brief actions occur within a larger window. For instance, if a window contains both "Walking" and "Falling," the system may misclassify the entire segment or miss the critical event entirely.

Comparison of traditional sliding window labeling strategies versus the proposed dense labeling approach, which assigns a label to every sampling point.

To address this, we propose a dense labeling strategy where every individual data point in the time series receives its own classification, effectively performing semantic segmentation on motion data.

Methodology: Adapting U-Net for Time Series

The core of this approach is the adaptation of the U-Net architecture, originally designed for medical image segmentation, to 1D time-series data. Triaxial accelerometer data (X, Y, Z) is treated as a 3-channel image with a width of one pixel.

The architecture consists of a contracting path (encoder) and an expansive path (decoder). The encoder uses 1x3 convolutions and max-pooling to extract high-level features, while the decoder uses up-convolutions to restore temporal resolution. A critical feature is the use of skip connections, which concatenate high-resolution features from the encoder directly into the decoder. This ensures the model retains fine-grained temporal details while capturing broad context.

The adapted U-Net architecture for 1D sensor data, highlighting the encoder-decoder structure and the skip connections (concatenate) that enable precise dense labeling.

Experimental Evaluation

The model was rigorously tested on five datasets:

  • WISDM & UCI HAR: Standard benchmarks for basic physical activities.
  • UCI HAPT: Includes postural transitions.
  • UCI OPPORTUNITY (Gesture): A challenging dataset with 17 short-term gestures.
  • Sanitation: A custom dataset focusing on work-specific tasks like sweeping.

Key Results

The U-Net model consistently outperformed traditional algorithms (SVM, k-NN, Random Forest) and standard CNNs.

  • Accuracy: Reached 98.4% on UCI HAR and 97.0% on WISDM.
  • Gesture Recognition: On the UCI OPPORTUNITY dataset, U-Net achieved 94.7% accuracy, outperforming standard CNNs by 3.8%.
  • Real-time Performance: Prediction speeds are approximately 0.1 seconds, making the model suitable for real-time deployment.

Conclusion

By shifting from window-based classification to dense point-by-point labeling, the U-Net architecture effectively resolves the multi-class window problem in HAR. The inclusion of skip connections allows the model to maintain high temporal precision, which is vital for identifying transitions and short-lived gestures. Future work will focus on optimizing the 28-layer architecture for low-power wearable devices and improving robustness in noisy, open-environment settings.

Summary updated

BibTeX
@misc{zhang2018human,
  author = {Yong Zhang and Yu Zhang and Zhao Zhang and Jie Bao and Yunpeng Song},
  title = {{Human activity recognition based on time series analysis using U-Net}},
  year = {2018},
  eprint = {1809.08113},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.08113},
}
Figure