A human activity recognition model based on deep neural network integrating attention mechanism.
Journal:
Scientific reports
Published Date:
Jul 2, 2025
Abstract
Human Activity Recognition (HAR) is crucial in multiple fields. Existing HAR techniques include manual feature extraction, codebook-based methods, and deep learning, each with limitations. This paper presents DCAM-Net (DeepConvAttentionMLPNet), a novel deep neural network model without relying on pre-trained model weights. It integrates CNN and MLP with an attention mechanism. Experiments using data from 30 participants' smartphone sensors (acceleration and gyroscope) show that after preprocessing and sampling, the model takes 561-dimensional feature vectors as input. With multi-scale feature extraction, residual and skip connections, and dual attention mechanisms, along with a series of optimization strategies like dropout, batch normalization, and AdamW optimizer, the model achieves an average accuracy of 99.03% in five-fold cross-validation. It outperforms other models and has good generalization ability. However, future work could involve using more diverse datasets, improving computational efficiency for real-time applications, enhancing activity transition recognition, and fusing other sensor data to better meet practical needs.