Multi-View Fusion Transformer for Sensor-Based Human Activity Recognition

Yimu Wang, Kun Yu, Yan Wang, Hui XuearXiv 2022

Abstract

As a fundamental problem in ubiquitous computing and machine learning, sensor-based human activity recognition (HAR) has drawn extensive attention and made great progress in recent years. HAR aims to recognize human activities based on the availability of rich time-series data collected from multi-modal sensors such as accelerometers and gyroscopes. However, recent deep learning methods are focusing on one view of the data, i.e., the temporal view, while shallow methods tend to utilize the hand-craft features for recognition, e.g., the statistics view. In this paper, to extract a better feature for advancing the performance, we propose a novel method, namely multi-view fusion transformer (MVFT) along with a novel attention mechanism. First, MVFT encodes three views of information, i.e., the temporal, frequent, and statistical views to generate multi-view features. Second, the novel attention mechanism uncovers inner- and cross-view clues to catalyze mutual interactions between three views for detailed relation modeling. Moreover, extensive experiments on two datasets illustrate the superiority of our methods over several state-of-the-art methods.

Introduction

Human Activity Recognition (HAR) typically relies on time-series data from accelerometers and gyroscopes to identify user behaviors. Historically, this field has been divided between "shallow" methods, which rely on manual feature engineering (e.g., mean, variance, or frequency peaks), and "deep learning" methods, which use CNNs or LSTMs to process raw temporal sequences.

A significant gap exists between these approaches: deep learning models often struggle to "count" peaks or understand periodicity directly from raw signals, while shallow methods lack the representational power of modern neural architectures. The Multi-View Fusion Transformer (MVFT) bridges this gap by creating a unified framework that leverages temporal, frequent, and statistical perspectives simultaneously.

Methodology

The core contribution of this work is the MVFT architecture, which integrates three distinct data views into a Transformer-based framework.

The MVFT architecture utilizes an encoder-decoder structure to fuse temporal, frequent, and statistical views through a specialized attention mechanism.

Multi-View Feature Generation

The input signal is decomposed into three components:

  1. Temporal View: The raw time-domain response from the sensors.
  2. Frequent View: The signal transformed via Fourier Transform into a frequency spectrum to capture periodicity.
  3. Statistic View: Handcrafted characteristics such as maximum, minimum, mean, and peak counts.

Multi-View Fusion Attention

Unlike standard self-attention, MVFT employs a novel fusion mechanism where the Query ($Q$), Key ($K$), and Value ($V$) are derived from different views. This allows the model to uncover cross-view clues, effectively letting statistical features guide the temporal view to identify the most salient parts of the signal. To further enhance context, the model incorporates hybrid embeddings, including position, time (to handle sensor delays), and segment-specific embeddings for each view.

Experiments and Results

The model was evaluated on two primary datasets: Wisdom (a public dataset of 6 regular activities) and CRO (an in-house dataset using four sensor types, split into sequence lengths of 30 and 50).

MVFT (Ours) demonstrates superior accuracy compared to traditional deep learning and standard Transformer baselines.

As shown in the results, MVFT consistently outperforms state-of-the-art (SOTA) baselines. On the Wisdom dataset, MVFT achieved 96.71% accuracy, a significant improvement over the best SOTA baseline (CNN2d at 89.56%). On the CRO datasets, the model achieved near-perfect performance, reaching 99.40% and 99.18% accuracy for CRO_30 and CRO_50, respectively.

Key Insights and Discussion

  • Feature Engineering in the Deep Learning Era: The success of MVFT suggests that deep learning does not have to replace feature engineering; rather, it can consume it. By providing handcrafted statistics as a separate view, the Transformer avoids the need to "re-learn" basic statistical calculations from scratch.
  • Cross-View Synergy: Ablation studies confirmed that the performance boost is not just from adding more data, but from the Fusion Attention mechanism. The relationship between views is as critical as the views themselves.
  • Future Directions: While highly accurate, the three-branch architecture increases computational complexity. Future work will focus on optimizing the model for real-time deployment on low-power wearable devices and testing its robustness on longer sequential data.

Conclusion

By combining the strengths of temporal, frequent, and statistical data views, the Multi-View Fusion Transformer sets a new benchmark for sensor-based HAR. The model's ability to catalyze interactions between these views through a specialized attention mechanism provides a powerful framework for complex time-series analysis.

Summary updated

BibTeX
@misc{wang2022multi,
  author = {Yimu Wang and Kun Yu and Yan Wang and Hui Xue},
  title = {{Multi-View Fusion Transformer for Sensor-Based Human Activity Recognition}},
  year = {2022},
  eprint = {2202.12949},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.12949},
}
Figure