A novel ViT-BILSTM model for physical activity intensity classification in adults using gravity-based acceleration

Abstract Aim The aim of this study is to apply a novel hybrid framework incorporating a Vision Transformer (ViT) and bidirectional long short-term memory (Bi-LSTM) model for classifying physical activity intensity (PAI) in adults using gravity-based acceleration. Additionally, it further investigate...

Full description

Saved in:
Bibliographic Details
Main Authors: Lin Wang, Zizhang Luo, Tianle Zhang
Format: Article
Language:English
Published: BMC 2025-02-01
Series:BMC Biomedical Engineering
Subjects:
Online Access:https://doi.org/10.1186/s42490-025-00088-2
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1832571944936931328
author Lin Wang
Zizhang Luo
Tianle Zhang
author_facet Lin Wang
Zizhang Luo
Tianle Zhang
author_sort Lin Wang
collection DOAJ
description Abstract Aim The aim of this study is to apply a novel hybrid framework incorporating a Vision Transformer (ViT) and bidirectional long short-term memory (Bi-LSTM) model for classifying physical activity intensity (PAI) in adults using gravity-based acceleration. Additionally, it further investigates how PAI and temporal window (TW) impacts the model’ s accuracy. Method This research used the Capture-24 dataset, consisting of raw accelerometer data from 151 participants aged 18 to 91. Gravity-based acceleration was utilised to generate images encoding various PAIs. These images were subsequently analysed using the ViT-BiLSTM model, with results presented in confusion matrices and compared with baseline models. The model’s robustness was evaluated through temporal stability testing and examination of accuracy and loss curves. Result The ViT-BiLSTM model excelled in PAI classification task, achieving an overall accuracy of 98.5% ± 1.48% across five TWs-98.7% for 1s, 98.1% for 5s, 98.2% for 10s, 99% for 15s, and 98.65% for 30s of TW. The model consistently exhibited superior accuracy in predicting sedentary (98.9% ± 1%) compared to light physical activity (98.2% ± 2%) and moderate-to-vigorous physical activity (98.2% ± 3%). ANOVA showed no significant accuracy variation across PAIs (F = 2.18, p = 0.13) and TW (F = 0.52, p = 0.72). Accuracy and loss curves show the model consistently improves its performance across epochs, demonstrating its excellent robustness. Conclusion This study demonstrates the ViT-BiLSTM model’s efficacy in classifying PAI using gravity-based acceleration, with performance remaining consistent across diverse TWs and intensities. However, PAI and TW could result in slight variations in the model’s performance. Future research should concern and investigate the impact of gravity-based acceleration on PAI thresholds, which may influence model’s robustness and reliability.
format Article
id doaj-art-969d572150d84ae79182e6c9244b2244
institution Kabale University
issn 2524-4426
language English
publishDate 2025-02-01
publisher BMC
record_format Article
series BMC Biomedical Engineering
spelling doaj-art-969d572150d84ae79182e6c9244b22442025-02-02T12:13:24ZengBMCBMC Biomedical Engineering2524-44262025-02-017111410.1186/s42490-025-00088-2A novel ViT-BILSTM model for physical activity intensity classification in adults using gravity-based accelerationLin Wang0Zizhang Luo1Tianle Zhang2Faculty of Health and Life Sciences, University of ExeterEngineering & Technology College, Yangtze UniversityDepartment of Computer Science, University of LiverpoolAbstract Aim The aim of this study is to apply a novel hybrid framework incorporating a Vision Transformer (ViT) and bidirectional long short-term memory (Bi-LSTM) model for classifying physical activity intensity (PAI) in adults using gravity-based acceleration. Additionally, it further investigates how PAI and temporal window (TW) impacts the model’ s accuracy. Method This research used the Capture-24 dataset, consisting of raw accelerometer data from 151 participants aged 18 to 91. Gravity-based acceleration was utilised to generate images encoding various PAIs. These images were subsequently analysed using the ViT-BiLSTM model, with results presented in confusion matrices and compared with baseline models. The model’s robustness was evaluated through temporal stability testing and examination of accuracy and loss curves. Result The ViT-BiLSTM model excelled in PAI classification task, achieving an overall accuracy of 98.5% ± 1.48% across five TWs-98.7% for 1s, 98.1% for 5s, 98.2% for 10s, 99% for 15s, and 98.65% for 30s of TW. The model consistently exhibited superior accuracy in predicting sedentary (98.9% ± 1%) compared to light physical activity (98.2% ± 2%) and moderate-to-vigorous physical activity (98.2% ± 3%). ANOVA showed no significant accuracy variation across PAIs (F = 2.18, p = 0.13) and TW (F = 0.52, p = 0.72). Accuracy and loss curves show the model consistently improves its performance across epochs, demonstrating its excellent robustness. Conclusion This study demonstrates the ViT-BiLSTM model’s efficacy in classifying PAI using gravity-based acceleration, with performance remaining consistent across diverse TWs and intensities. However, PAI and TW could result in slight variations in the model’s performance. Future research should concern and investigate the impact of gravity-based acceleration on PAI thresholds, which may influence model’s robustness and reliability.https://doi.org/10.1186/s42490-025-00088-2Deep learningRaw accelerometer dataVariationGeneralisationPhysical activity patterns
spellingShingle Lin Wang
Zizhang Luo
Tianle Zhang
A novel ViT-BILSTM model for physical activity intensity classification in adults using gravity-based acceleration
BMC Biomedical Engineering
Deep learning
Raw accelerometer data
Variation
Generalisation
Physical activity patterns
title A novel ViT-BILSTM model for physical activity intensity classification in adults using gravity-based acceleration
title_full A novel ViT-BILSTM model for physical activity intensity classification in adults using gravity-based acceleration
title_fullStr A novel ViT-BILSTM model for physical activity intensity classification in adults using gravity-based acceleration
title_full_unstemmed A novel ViT-BILSTM model for physical activity intensity classification in adults using gravity-based acceleration
title_short A novel ViT-BILSTM model for physical activity intensity classification in adults using gravity-based acceleration
title_sort novel vit bilstm model for physical activity intensity classification in adults using gravity based acceleration
topic Deep learning
Raw accelerometer data
Variation
Generalisation
Physical activity patterns
url https://doi.org/10.1186/s42490-025-00088-2
work_keys_str_mv AT linwang anovelvitbilstmmodelforphysicalactivityintensityclassificationinadultsusinggravitybasedacceleration
AT zizhangluo anovelvitbilstmmodelforphysicalactivityintensityclassificationinadultsusinggravitybasedacceleration
AT tianlezhang anovelvitbilstmmodelforphysicalactivityintensityclassificationinadultsusinggravitybasedacceleration
AT linwang novelvitbilstmmodelforphysicalactivityintensityclassificationinadultsusinggravitybasedacceleration
AT zizhangluo novelvitbilstmmodelforphysicalactivityintensityclassificationinadultsusinggravitybasedacceleration
AT tianlezhang novelvitbilstmmodelforphysicalactivityintensityclassificationinadultsusinggravitybasedacceleration