Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Aug:135:104633.
doi: 10.1016/j.compbiomed.2021.104633. Epub 2021 Jul 12.

Activity detection and classification from wristband accelerometer data collected on people with type 1 diabetes in free-living conditions

Activity detection and classification from wristband accelerometer data collected on people with type 1 diabetes in free-living conditions

Marzia Cescon et al. Comput Biol Med. 2021 Aug.

Abstract

This paper introduces methods to estimate aspects of physical activity and sedentary behavior from three-axis accelerometer data collected with a wrist-worn device at a sampling rate of 32 [Hz] on adults with type 1 diabetes (T1D) in free-living conditions. In particular, we present two methods able to detect and grade activity based on its intensity and individual fitness as sedentary, mild, moderate or vigorous, and a method that performs activity classification in a supervised learning framework to predict specific user behaviors. Population results for activity level grading show multi-class average accuracy of 99.99%, precision of 98.0 ± 2.2%, recall of 97.9 ± 3.5% and F1 score of 0.9 ± 0.0. As for the specific behavior prediction, our best performing classifier, gave population multi-class average accuracy of 92.43 ± 10.32%, precision of 92.94 ± 9.80%, recall of 92.20 ± 10.16% and F1 score of 92.56 ± 9.94%. Our investigation showed that physical activity and sedentary behavior can be detected, graded and classified with good accuracy and precision from three-axial accelerometer data collected in free-living conditions on people with T1D. This is particularly significant in the context of automated glucose control systems for diabetes, in that the methods we propose have the potential to inform changes in treatment parameters in response to the intensity of physical activity, allowing patients to meet their glycemic targets.

Keywords: Artificial pancreas; Automated insulin delivery; Free-living conditions; Physical activity; Supervised learning; Type 1 diabetes mellitus; Wearable devices; Wrist-worn accelerometer.

PubMed Disclaimer

Conflict of interest statement

Conflict of interest declaration

Dr. Cescon serves on the advisory board for Diatech Diabetes, Inc.

Dr. Pinsker reports receiving grant support, provided to his institution, and consulting fees and speaker fees from Tandem Diabetes Care; grant support, provided to his institution, and advisory board fees from Medtronic; grant support, provided to his institution, and consulting fees from Eli Lilly; grant support and supplies, provided to his institution, from Insulet; and supplies, provided to his institution, from Dexcom.

Dr. Kudva reports product support from Dexcom, Roche Diabetes and Tandem.

Dr. Doyle reports equity, licensed IP and is a member of the Scientific Advisory Board of Mode AGC.

Dr. Dassau reports receiving grants from JDRF, NIH, and Helmsley Charitable Trust, personal fees from Roche and Eli Lilly, patents on artificial pancreas technology, and product support from Dexcom, Insulet, Tandem, and Roche. Dr. Dassau is currently an employee and shareholder of Eli Lilly and Company. The work presented in this manuscript was performed as part of his academic appointment and is independent of his employment with Eli Lilly and Company.

No conflicts of interest relevant to this project are reported for the rest of the authors.

Figures

Fig. 1.
Fig. 1.
Representative subject data. Black Feature f65 [a.u.] and thresholds for activity intensity classification: Blue Threshold between level 0 and 1, Orange Threshold between level 1 and 2, Green Threshold between level 2 and 3. If the magnitude of feature f65 is below the blue threshold, it is assigned to activity level 0, if it is between the blue and the orange threshold, it is assigned activity level 1, if it is between the orange and the green thresholds it is assigned activity level 2 and finally if it is above the green threshold it is assigned level 3.
Fig. 2.
Fig. 2.
Flow chart for Method 1.
Fig. 3.
Fig. 3.
Flow chart for behavior classification.
Fig. 4.
Fig. 4.
Population results for the activity level classification: Top Confusion matrix, where numbers in the matrix and color scale represent number of annotations; Bottom Violin plot, compares the distributions of the predicted activity levels across the actual annotated levels. The x− and y− axis show the predicted and annotated, respectively, activity level on a scale from 0 to 3, where 0 is sedentary, 1 is mild, 2 is moderate and 3 is severe.
Fig. 5.
Fig. 5.
Evaluation of accuracy [%] in predicting the level for the most common performed activities across the population, regardless of fitness condition. Compared activities were walking, hiking, running, yarwork, housework and high intensity interval training (HIIT). In each boxplot, the central mark is the median, the bottom and top edges indicate the 25th and 75th percentiles, respectively. Blue whiskers extend to the most extreme data points not considered outliers.
Fig. 6.
Fig. 6.
Comparison of performances with RF (Left) and LSTM (Right). Participant 4 confusion matrices: the x− and y− axis show the predicted and annotated, respectively; the main diagonal reports true positives, elements off the main diagonal reports false negatives column-wise and false positives row-wise. Numbers in the matrix and color scale represent percent of total time.
Fig. 7.
Fig. 7.
Feature selection based on importance. Red Selected; Blue Discarded.

Similar articles

Cited by

References

    1. Americ. Diabetes Assoc., “Lifestyle management: Standards of medical care in diabetes–2018,” Diabetes Care, vol. 41, no. Supplement 1, pp. S38–S50, 2018. - PubMed
    1. Riddell M, Gallen I, Smart C, Taplin C, Adolfsson P, Lumb A, Kowalski A, Rabasa-Lhoret R, McCrimmon R, Hume C, Annan F, Fournier P, Graham C, Bode B, Galassetti P, Jones T, San Millan I, Heise T, Peters A, Petz A, and Laffel L, “Exercise management in type 1 diabetes: a consensus statement,” Lancet Diab. Endocrinol, vol. 5, pp. 377–390, 2017. - PubMed
    1. Basu R, Johnson M, Kudva Y, and Basu A, “Exercise, hypoglycemia and type 1 diabetes,” Diab. Tech. Ther, vol. 16(6), pp. 331–337, 2014. - PMC - PubMed
    1. Kudva Y, Carter R, Cobelli C, Basu R, and Basu A, “Closed-loop artificial pancreas systems: Physiological input to enhance nextgeneration devices,” Diabetes Care, vol. 37, pp. 1184–1190, 2014. - PMC - PubMed
    1. Pinsker J, Kraus A, Gianferante D, Schoenberg B, Singh S, Ortiz H, Dassau E, and Kerr D, “Techniques for exercise preparation and management in adults with type 1 diabetes,” Can. J. Diab, vol. 40, no. 6, pp. 503–508, 2016. - PubMed

Publication types