[Paper Review] DanHAR: Dual Attention Network For Multimodal Human Activity Recognition Using Wearable Sensors
This paper proposes DanHAR, a dual attention network that combines channel and temporal attention within a CNN framework to improve multimodal human activity recognition using wearable sensors. By jointly modeling sensor modality importance and critical time steps, DanHAR achieves state-of-the-art accuracy with minimal parameter overhead on four public datasets and a weakly labeled dataset, while attention visualization confirms interpretability and alignment with human intuition.
Human activity recognition (HAR) in ubiquitous computing has been beginning to incorporate attention into the context of deep neural networks (DNNs), in which the rich sensing data from multimodal sensors such as accelerometer and gyroscope is used to infer human activities. Recently, two attention methods are proposed via combining with Gated Recurrent Units (GRU) and Long Short-Term Memory (LSTM) network, which can capture the dependencies of sensing signals in both spatial and temporal domains simultaneously. However, recurrent networks often have a weak feature representing power compared with convolutional neural networks (CNNs). On the other hand, two attention, i.e., hard attention and soft attention, are applied in temporal domains via combining with CNN, which pay more attention to the target activity from a long sequence. However, they can only tell where to focus and miss channel information, which plays an important role in deciding what to focus. As a result, they fail to address the spatial-temporal dependencies of multimodal sensing signals, compared with attention-based GRU or LSTM. In the paper, we propose a novel dual attention method called DanHAR, which introduces the framework of blending channel attention and temporal attention on a CNN, demonstrating superiority in improving the comprehensibility for multimodal HAR. Extensive experiments on four public HAR datasets and weakly labeled dataset show that DanHAR achieves state-of-the-art performance with negligible overhead of parameters. Furthermore, visualizing analysis is provided to show that our attention can amplifies more important sensor modalities and timesteps during classification, which agrees well with human common intuition.
Motivation & Objective
- To address the limitation of existing attention mechanisms in multimodal HAR that focus only on temporal or channel-wise importance, missing spatial-temporal dependencies.
- To improve feature representation in deep learning-based HAR by integrating both channel and temporal attention in a CNN-based architecture.
- To reduce reliance on expensive, fully annotated datasets by enabling effective learning from coarsely labeled or weakly labeled data.
- To enhance model interpretability by visualizing attention weights that align with human intuition about sensor importance and activity timing.
- To achieve high accuracy with low computational overhead, making the model suitable for real-world wearable applications.
Proposed method
- Proposes a dual attention mechanism that simultaneously applies channel attention and temporal attention within a residual CNN framework.
- Uses squeeze-and-excitation blocks to compute learnable channel attention weights that emphasize important sensor modalities.
- Applies soft attention over time steps to identify critical timesteps in the input sequence, improving temporal focus.
- Fuses channel and temporal attention features through element-wise multiplication and concatenation before final classification.
- Employs a residual network backbone to maintain gradient flow and improve training stability.
- Trains the entire network end-to-end using cross-entropy loss, enabling joint optimization of attention and feature learning.
Experimental results
Research questions
- RQ1Can a dual attention mechanism that models both channel and temporal dependencies improve performance in multimodal HAR?
- RQ2How does the proposed attention mechanism compare to single-attention or recurrent network-based attention in terms of accuracy and parameter efficiency?
- RQ3To what extent do the attention weights reflect human intuition about sensor importance and activity timing?
- RQ4Can the model generalize well to weakly labeled data, reducing the need for expensive full annotations?
- RQ5Does the integration of attention into a CNN architecture outperform attention mechanisms combined with RNNs like GRU or LSTM in HAR tasks?
Key findings
- DanHAR achieves state-of-the-art performance on four public HAR datasets: WISDM, PAMAP2, UNIMIB SHAR, and OPPORTUNITY, with significant accuracy gains over prior methods.
- On the PAMAP2 dataset, DanHAR reduces misclassification errors from 93 (residual network baseline) to 75, demonstrating superior generalization.
- The model maintains negligible parameter overhead, making it efficient for deployment on wearable devices.
- Visualization shows that channel attention assigns high weights to relevant sensors—e.g., hand and ankle sensors for running and rope jumping—aligning with human expectations.
- Temporal attention effectively highlights key time steps in activity sequences, such as peak motion phases in cycling or jumping.
- The dual attention mechanism enables better feature fusion across modalities and time, improving model comprehensibility and robustness to similar activity classes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.