DMSCNet: A Dilated Multi-Scale Contrastive Attention Network for Sensor-Based Human Activity Recognition
Open Access
- 15 June 2026
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 16 (12) , 6037
Abstract
Wearable-sensor human activity recognition (HAR) plays a key role in health monitoring, elderly care, and human–computer interaction. Deep learning dominates the field, but two limitations remain. CNNs with fixed kernels cannot capture cross-scale temporal events such as gait cycles and postural transitions in a single layer, and softmax attention on small sensor datasets is often diluted by common-mode background responses across the sequence. We propose DMSCNet, an end-to-end framework with two modules. The Dilated Multi-Scale Branch Block (DMSB) combines a shared bottleneck, parallel dilated convolutions, a pooling bypass, and SE-based channel recalibration to widen the temporal receptive field under a controlled parameter budget. The Contrastive Temporal Attention (CTA) module adopts a dual-path differential design, in which the two paths learn overlapping but non-identical attention patterns and their subtraction suppresses shared low-level responses while preserving the discriminative positions each path locks onto, encoded with opposite signs. DMSB and CTA are cascaded into a DMSC Block and stacked residually. On UCI-HAR, USC-HAD, and RealWorld, DMSCNet reaches F1-scores of 97.65%, 91.80%, and 99.05%, outperforming nine baselines. Ablations confirm that SE acts along the channel axis and CTA along the temporal axis, and visualization reveals a dynamic–static dichotomy together with a signed bipolar encoding pattern produced by the dual-path subtraction.Keywords
Funding Information
- National Natural Science Foundation of China (51991365)
- Natural Science Foundation of Shandong Province of China (ZR2021MF082)
This publication has 34 references indexed in Scilit:
- A hybrid LSTM CNN model with efficient channel attention for enhanced human activity recognition using wearable sensorsDiscover Applied Sciences, 2025
- TCN-Inception: Temporal Convolutional Network and Inception modules for sensor-based Human Activity RecognitionFuture Generation Computer Systems, 2024
- Transformer-based models to deal with heterogeneous environments in Human Activity RecognitionPersonal and Ubiquitous Computing, 2023
- TASKED: Transformer-based Adversarial learning for human activity recognition using wearable sensors via Self-KnowledgE DistillationKnowledge-Based Systems, 2022
- Toward human activity recognition: a surveyNeural Computing and Applications, 2022
- A Novel CNN-based Bi-LSTM parallel model with attention mechanism for human activity recognition with noisy dataScientific Reports, 2022
- InceptionTime: Finding AlexNet for time series classificationData Mining and Knowledge Discovery, 2020
- CBAM: Convolutional Block Attention Module2018
- Human activity recognition with smartphone sensors using deep learning neural networksExpert Systems with Applications, 2016
- Human Activity Recognition on Smartphones Using a Multiclass Hardware-Friendly Support Vector Machine2012