Analysis of Deep Transfer Learning Using DeepConvLSTM for Human Activity Recognition from Wearable Sensors

Stefan Kalabakov, Martin Gjoreski, Hristijan Gjoreski, Matjaz GamsInformatica (Slovenia) 2021 · DOI

Introduction

Human Activity Recognition (HAR) utilizes wearable sensors, such as Inertial Measurement Units (IMUs), to classify physical activities like walking, sitting, or cycling. Traditionally, HAR relied on classical machine learning, which necessitates significant domain expertise to manually engineer features from raw sensor signals.

While deep learning architectures like Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks have automated this feature extraction process, they require vast amounts of labeled data to train effectively. Collecting such data is resource-intensive and complicated by inter-subject variability. This study investigates transfer learning as a solution to this data-scarcity bottleneck, adapting a model pre-trained on a source dataset to a target dataset to improve efficiency and performance.

Methodology

The researchers employed the DeepConvLSTM architecture, which integrates four convolutional layers for spatial feature extraction and two LSTM layers for capturing temporal dependencies.

Architecture of the DeepConvLSTM model used for feature extraction and classification.

The experimental pipeline involved:

  1. Pre-training: Training a source model on the Opportunity dataset (4 subjects, 14 activities).
  2. Transfer: Porting weights to a target model for the JSI-FOS dataset (10 subjects, 10 activities), replacing only the final softmax layer to match the target classes.
  3. Layer Freezing Analysis: Evaluating the impact of freezing different numbers of convolutional layers (1 through 4) to determine which layers capture universal versus domain-specific features.
  4. Comparative Evaluation: Benchmarking transfer learning against an end-to-end (E2E) DeepConvLSTM with random initialization and a Random Forest (RF) classifier using ~2,400 hand-crafted features.

Data was standardized to 3D accelerometer readings from the right wrist, downsampled to 25Hz, and segmented into 4-second windows.

Results and Discussion

The study revealed that "shallow" transfer is most effective for HAR. Freezing only the first convolutional layer yielded the best results, suggesting that while initial layers capture universal signal patterns, deeper layers quickly specialize to the specific characteristics of the source domain.

Performance comparison between transfer learning (OPP2JSI), end-to-end deep learning (E2E), and Random Forest across varying data sizes.

Key findings include:

  • Data Efficiency: Transfer learning significantly outperformed E2E models when training data was extremely limited (e.g., 100 instances, or roughly 3.3 minutes of data).
  • Consistent Superiority: The transfer learning approach (OPP2JSI) maintained a performance lead over E2E learning across all tested adaptation set sizes, up to 12,000 instances.
  • Deep vs. Classical: While the Random Forest model performed strongly due to extensive manual feature engineering, deep transfer learning achieved comparable performance without the need for any domain-specific manual extraction, making it a more scalable solution.
  • Activity Gains: Notable improvements were observed in activities such as cycling, standing, and walking.

Conclusion

Deep transfer learning offers a robust alternative to both standard deep learning and classical machine learning for HAR. It successfully mitigates the data-scarcity bottleneck of deep networks and removes the manual labor of feature engineering required by classical methods. Future research should explore cross-modality transfer (e.g., incorporating gyroscopes) and cross-location transfer (e.g., from wrist to ankle) to further generalize these findings.

Summary updated

BibTeX
@article{kalabakov2021analysis,
  author = {Stefan Kalabakov and Martin Gjoreski and Hristijan Gjoreski and Matjaz Gams},
  title = {{Analysis of Deep Transfer Learning Using DeepConvLSTM for Human Activity Recognition from Wearable Sensors}},
  journal = {Informatica (Slovenia)},
  year = {2021},
  doi = {10.31449/inf.v45i2.3648},
}
Figure