Distilled mid-fusion transformer networks for multi-modal human activity recognition

Jingcheng Li, Lina Yao, Binghao Li, Claude Sammut · DOI · OpenReview

TL;DR

This paper introduces DMFT, a novel multi-modal human activity recognition (HAR) framework that uses knowledge distillation to create a lightweight, efficient, and robust model. By employing a "mid-fusion" approach and distilling knowledge from a complex teacher model to a simpler student model, DMFT achieves competitive performance while being suitable for deployment on resource-constrained devices.

What Problem Does This Paper Address?

Human Activity Recognition (HAR) is crucial for human-computer interaction, with applications ranging from healthcare to smart environments. While multi-modal approaches (using data from multiple sensors like RGB cameras, depth sensors, and inertial measurement units) offer better robustness and generalization than single-modality methods, they often suffer from high computational complexity and require extensive modality-specific feature engineering. Existing methods also tend to fuse features late in the process, potentially missing out on valuable cross-modal interactions. Furthermore, deploying these complex models on edge devices with limited computational power is a significant challenge. This paper aims to address these issues by proposing a scalable, efficient, and robust multi-modal HAR model that effectively fuses information from different modalities.

Methods

The core of the proposed approach is the Distilled Mid-Fusion Transformer (DMFT) network, which consists of a teacher-student architecture.

  • Teacher Network:
    • Generalized Feature Encoding: A unified encoding layer processes raw multi-modal data into a consistent representation, avoiding complex modality-specific encoders and allowing for easy integration of new modalities.
  • Multi-modal Spatial-Temporal Transformer (MSTT): This module, adapted from the Transformer architecture, independently extracts salient spatial and temporal features for each modality using self-attention mechanisms.
  • Temporal Mid-Fusion Transformer (TMT): This novel component performs "mid-fusion" by integrating temporal features from different modalities during the feature extraction process, rather than at the end. It uses dedicated "fusion tokens" to capture cross-modal interactions, aiming to retain more informative relationships than late-fusion methods.
  • Student Network: A simplified version of the MSTT module is used for efficient feature extraction.
  • Knowledge Distillation: A key technique where the knowledge learned by the complex teacher network is transferred to the simpler student network. This allows the student to achieve performance close to the teacher while being significantly more computationally efficient and smaller in size. The distillation process uses a weighted loss function combining cross-entropy loss and KL divergence between teacher and student logits.

Datasets

The authors evaluated their approach on two publicly available multi-modal human activity recognition datasets:

  • UTD-MHAD: Contains 27 activities from 8 subjects, using RGB, Depth, Skeleton, and Inertial data.
  • MMAct: Features 35 activities from 20 subjects, utilizing RGB, Skeleton, Acceleration, Gyroscope, Orientation, Wi-Fi, and Pressure data. For their experiments, they used RGB, Inertial (Acceleration, Gyroscope, Orientation), and Skeleton data.

Key Insights and Ideas

  • Mid-Fusion is Key: Performing fusion during the feature extraction process (mid-fusion) with the TMT module is more effective than late-fusion, as it allows for richer interaction and sharing of complementary information between modalities.
  • Knowledge Distillation for Efficiency: Distilling knowledge from a powerful teacher to a lightweight student is a highly effective strategy for creating deployable HAR models that balance performance and computational cost.
  • Scalability and Modularity: The generalized encoding layer and the Transformer-based architecture make the DMFT framework easily adaptable to new modalities without requiring significant architectural changes.
  • Subject-Independent Evaluation is Crucial: The paper emphasizes the importance of subject-independent evaluation protocols (like leave-one-subject-out) for assessing HAR models, as real-world deployment involves analyzing activities of unseen individuals.

Key Results

  • UTD-MHAD: The DMFT teacher model achieved up to 98.20% accuracy (using RGB, Skeleton, and Inertial data in the LOSO setting), outperforming other state-of-the-art multi-modal approaches. The distilled student model achieved competitive results, only slightly lower than the teacher (e.g., 96.52% in LOSO).
  • MMAct: The DMFT teacher model achieved up to 91.62% F1-score (using Inertial and RGB data in the cross-session setting), comparable to or exceeding other SOTA methods. The student model also performed well, achieving 91.08%.
  • Efficiency Gains: The knowledge distillation process significantly reduced training time (e.g., by ~65% for UTD-MHAD R+S+I) and model size (e.g., by ~68% for UTD-MHAD R+S+I) for the student model compared to the teacher.

Limitations and Future Work

  • Dataset Size: The paper notes that existing multi-modal HAR datasets have a limited number of samples and activities, which can hinder the full optimization of complex architectures and generalization to new activities. The authors suggest a need for more comprehensive and large-scale multi-modal datasets.
  • Inter-Subject Variation: While the proposed model shows good performance, addressing the challenge of inter-subject variation in human activity recognition remains an area for future exploration.
  • Future Directions: The authors plan to develop more effective, efficient, and robust HAR models that can better handle inter-subject variations in multi-modal scenarios.

Summary updated

BibTeX
@article{li2025distilled,
  author = {Jingcheng Li and Lina Yao and Binghao Li and Claude Sammut},
  title = {{Distilled mid-fusion transformer networks for multi-modal human activity recognition}},
  journal = {Knowledge-Based Systems},
  year = {2025},
  doi = {10.1016/j.knosys.2025.114160},
}
Figure