SHAR-MAE: A Masked-Autoencoder Transformer Framework with Improved SMOTE Balancing for Imbalanced Human Activity Recognition and Real-Time Health Monitoring

  • Unique Paper ID: 208689
  • Volume: 13
  • Issue: 4
  • PageNo: 2560-2569
  • Abstract:
  • Wearable inertial sensing provides a practical source of data for human activity recognition (HAR), yet supervised models are affected by the cost of annotation and by unequal activity distributions. This work introduces SHAR-MAE, a one-dimensional masked-autoencoder framework that combines an iSMOTE-based balancing procedure with Transformer representation learning. Each UCI HAR window is represented by nine synchronized sensor channels over 128 time samples. The sequence is partitioned into sixteen temporal patches, and 75% of the patches are hidden during self-supervised pretraining. Four visible tokens are processed by a four-block Transformer encoder using Layer Normalization, four-head multi-head self-attention, residual connections, and a feed-forward network. A lightweight two-block decoder reconstructs the missing patches, with mean-squared error evaluated only over the masked regions. Following pretraining, the decoder is removed and the encoder is transferred to a downstream representation module. Global average pooling and a 128-to-256 projection produce the feature vector used by a 256-to-64-to-6 classifier. On the recorded UCI HAR experiment, the system obtained 92.20% test accuracy and a macro F1-score of 0.9229 after iSMOTE balancing. The study also separates the proposed Transformer path from the original SHAR causal-convolution/Lambda-attention implementation, improving architectural clarity and reproducibility.

Copyright & License

Copyright © 2026 Authors retain the copyright of this article. This article is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

BibTeX

@article{208689,
        author = {Chodipalli Lakshmi Laya and Dr. Kondapalli Venkata Ramana},
        title = {SHAR-MAE: A Masked-Autoencoder Transformer Framework with Improved SMOTE Balancing for Imbalanced Human Activity Recognition and Real-Time Health Monitoring},
        journal = {International Journal of Innovative Research in Technology},
        year = {2026},
        volume = {13},
        number = {4},
        pages = {2560-2569},
        issn = {2349-6002},
        url = {https://ijirt.org/article?manuscript=208689},
        abstract = {Wearable inertial sensing provides a practical source of data for human activity recognition (HAR), yet supervised models are affected by the cost of annotation and by unequal activity distributions. This work introduces SHAR-MAE, a one-dimensional masked-autoencoder framework that combines an iSMOTE-based balancing procedure with Transformer representation learning. Each UCI HAR window is represented by nine synchronized sensor channels over 128 time samples. The sequence is partitioned into sixteen temporal patches, and 75% of the patches are hidden during self-supervised pretraining. Four visible tokens are processed by a four-block Transformer encoder using Layer Normalization, four-head multi-head self-attention, residual connections, and a feed-forward network. A lightweight two-block decoder reconstructs the missing patches, with mean-squared error evaluated only over the masked regions. Following pretraining, the decoder is removed and the encoder is transferred to a downstream representation module. Global average pooling and a 128-to-256 projection produce the feature vector used by a 256-to-64-to-6 classifier. On the recorded UCI HAR experiment, the system obtained 92.20% test accuracy and a macro F1-score of 0.9229 after iSMOTE balancing. The study also separates the proposed Transformer path from the original SHAR causal-convolution/Lambda-attention implementation, improving architectural clarity and reproducibility.},
        keywords = {class imbalance, human activity recognition, iSMOTE, inertial sensors, masked autoencoder, multi-head self-attention, self-supervised learning, Transformer.},
        month = {September},
        }

Cite This Article

Laya, C. L., & Ramana, D. K. V. (2026). SHAR-MAE: A Masked-Autoencoder Transformer Framework with Improved SMOTE Balancing for Imbalanced Human Activity Recognition and Real-Time Health Monitoring. International Journal of Innovative Research in Technology (IJIRT), 13(4), 2560–2569.

Related Articles