Related Experiment Video
Updated: Jun 11, 2025

Setup of Consumer Wearable Devices for Exposure and Health Monitoring in Population Studies
Published on: February 3, 2023
Detection of sedentary time and bouts using consumer-grade wrist-worn devices: a hidden semi-Markov model
Agus Salim1,2,3, Christian J Brakenridge4,5,6, Dulari Hakamuwa Lekamlage7,8
1Baker Heart & Diabetes Institute, Melbourne, Australia. salim.a@unimelb.edu.au.
Background:
Wrist-worn data from commercially available devices has potential to characterize sedentary time for research and for clinical and public health applications. We propose a model that utilizes heart rate in addition to step count data to estimate the proportion of time spent being sedentary and the usual length of sedentary bouts.
Methods:
We developed and trained two Hidden semi-Markov models, STEPHEN (STEP and Heart ENcoder) and STEPCODE (STEP enCODEr; a steps-only based model) using consumer-grade Fitbit device data from participants under free living conditions, and validated model performance using two external datasets. We used the median absolute percentage error (MDAPE) to measure the accuracy of the proposed models against research-grade activPAL device data as the referent. Bland-Altman plots summarized the individual-level agreement with activPAL.
Results:
In OPTIMISE cohort, STEPHEN's estimates of the proportion of time spent sedentary had significantly (p < 0.001) better accuracy (MDAPE [IQR] = 0.15 [0.06-0.25] vs. 0.23 [0.13-0.53)]) and agreement (Bias Mean [SD]=-0.03[0.11] vs. 0.14 [0.11]) than the proprietary software, estimated the usual sedentary bout duration more accurately (MDAPE[IQR] = 0.11[0.06-0.26] vs. 0.42[0.32-0.48]), and had better agreement (Bias Mean [SD] = 3.91[5.67] minutes vs. -11.93[5.07] minutes). With the ALLO-Active dataset, STEPHEN and STEPCODE did not improve the estimation of proportion of time spent sedentary, but STEPHEN estimated usual sedentary bout duration more accurately than the proprietary software (MDAPE[IQR] = 0.19[0.03-0.25] vs. 0.36[0.15-0.48]) and had smaller bias (Bias Mean[SD] = 0.70[8.89] minutes vs. -11.35[9.17] minutes).
Conclusions:
STEPHEN can characterize the proportion of time spent being sedentary and usual sedentary bout length. The methodology is available as an open access R package available from https://github.com/limfuxing/stephen/ . The package includes trained models, but users have the flexibility to train their own models.
More Related Videos
11:21Methodology for Establishing a Community-Wide Life Laboratory for Capturing Unobtrusive and Continuous Remote Activity and Health Data
Published on: July 27, 2018
06:49Evaluation of a Smartphone-based Human Activity Recognition System in a Daily Living Environment
Published on: December 11, 2015
Related Concept Videos
Holter Monitor: 24-Hour Monitoring
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...