Abstract
This manuscript describes tests and results of a study to evaluate classification algorithms derived from accelerometer data collected on healthy adults and older adults to better classify posture movements. Specifically, tests were conducted to 1) compare performance of 1 sensor vs. 2 sensors; 2) examine custom trained algorithms to classify for a given task 3) determine overall classifier accuracy for healthy adults under 55 and older adults (55 or older). Despite the current variety of commercially available platforms, sensors, and analysis software, many do not provide the data granularity needed to characterize all stages of movement. Additionally, some clinicians have expressed concerns regarding validity of analysis on specialized populations, such as hospitalized older adults. Accurate classification of movement data is important in a clinical setting as more hospital systems are using sensors to help with clinical decision making. We developed custom software and classification algorithms to identify laying, reclining, sitting, standing, and walking. Our algorithm accuracy is 93.2% for healthy adults under 55 and 95% for healthy older adults over 55 for the tasks in our setting. The high accuracy of this approach will aid future investigation into classifying movement in hospitalized older adults. Results from these tests also indicate that researchers and clinicians need to be aware of sensor body position in relation to where the algorithm used was trained. Additionally, results suggest more research is needed to determine if algorithms trained on one population can accurately be used to classify data from another population.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Background
Accelerometer-based activity monitors produce an automated, objective, valid and reliable measure of mobility [1], and are used frequently in both research and clinical environments. Several studies have used accelerometry in inpatient and assisted living settings to gather activity data [2,3,4,5]. Recent studies support that wearable device-measured activity in hospitalized patients predicts readmission risk, length of stay, and disability [5,6,7,8,9,10].
While accelerometers are popular amongst researchers and clinicians to capture activity and mobility in patient populations, other sensors and platforms have also been used with various levels of success [11,12,13]. A commercial accelerometer was used for this study due to its low cost, high frequency data collection, flexibility in sensor placement, small size, and ability to maintain patient privacy (in comparison to camera activity monitoring platforms). While many commercial accelerometer sensors and platforms have been validated with younger, healthy people and some patient populations, many of these devices are not validated in specialized populations, such as hospitalized older adults.
Hospital providers make clinical decisions that depend in part on activity (e.g. whether a patient is physically improving or declining, or if discharge should be to home versus skilled nursing facility). Often there is little verifiable objective data upon which to guide these decisions because hospital health care providers must depend on patient report and/or other chart documentation, which has been shown to be suboptimal [14, 15]. Accelerometry has the potential to provide clinicians with objective information to gauge a patient’s activity more accurately. Higher accuracy allows providers to detect early immobility and take timely clinical action to mitigate the risk of functional decline. Commercially available devices such as smart watches and activity trackers are robust and reliable devices that collect activity data, but these devices do not offer movement classification accuracy and flexibility within specialized populations (e.g. the acutely ill or other populations with varied health issues).
Clinicians and researchers at Duke University Medical Center are working to better understand the movement in an acutely ill population. This is especially important for hospitalized older adults because better outcomes, such as reduced need for post-acute care and decreased risk of death are directly linked to increased mobility while hospitalized [16, 17].
The aim of our work is ultimately to collect and use accelerometer data to train a machine learning algorithm to classify posture and movement changes in acutely ill, hospitalized patients. In this study we develop technology and software to reliably collect activity data and establish procedures to create machine learning models. Specifically, our algorithm uses accelerometer data to classify a patient’s movement as laying, reclining, sitting, standing, or walking to better reflect specific activity movements during hospitalization.
2 Research Design and Methods
2.1 Participants
We recruited two cohorts from convenience samples at two locations in Durham, NC, under the review of the Duke University Medical Center Institutional Review Board. The first cohort (N = 15), consisting of older adults, 55 years or older (7 males 70.7 ± 6.3; 8 females 63.3 ± 8.7 years old) were recruited from the GeroFit program, an older adult exercises program run in conjunction with the Durham VA but held at a private health club, for older veterans. The second cohort (N = 15), were adults between 22 and 54 years (4 males 35.5 + 10.3; 11 females 30.9 + 9.3 years old) and were recruited from administrative offices at Duke University Medical Center. Due to the high sampling rate of the sensors, the small sample size (N = 30) was determined to be appropriate by our machine learning expert to be sufficient for model training and testing for this proof of concept development. Subjects with physical, cognitive, or behavioral impairment that would prevent the safe completion of the testing or be unable to follow study directions were excluded from participation. All subjects were required to be able to 1) lay supine, 2) reclined, 3) sit, 4) stand, and 5) walk in 1-min intervals, twice, and transition between positions independently, with or without the use of an assistive device (e.g. cane or walker).
2.2 Study Design
To train our machine learning algorithm to detect the five test positions (laying, reclining, sitting, standing, and walking), ten minutes of labeled sensor data was collected on each subject. Two small wireless 3-axis commodity accelerometers (MetaMotionR; MbientLab, San Francisco, CA) were used. The data was streamed at 25 Hz to a custom iOS mobile application connected via Bluetooth Low Energy (BLE) 4. While the sensor allows for gyroscope, accelerometer, and temperature measurements, for this study data was only collected from the accelerometer. Since most typical human movements are less than 10 Hz [18], we selected a sample rate of 25 Hz based on a 12.5 Hz Nyquist frequency needed to abstract meaningful data. The Nyquist Theorem states that a sample rate at least two times higher than the highest frequency input signal is required for accurate measurements [19]. Data logging speed and long battery life of the Mbient sensors allowed us to record at a frequency higher than minimally required by the Nyquist Theorem for our study.
One sensor was worn on the upper front of the chest under the right clavicle attached with cloth tape. A second sensor was worn on the anterior of the right thigh attached with self-adhering bandage (e.g. sport wrap). Once instrumented, subjects were directed through the test positions in 1-min intervals, twice. The order of positions was laying, reclining, sitting, standing, walking - walking, standing, sitting, reclining, and laying. Each position was indicated to the subject with verbal instructions by the investigators and can be identified by: laying prone on a flat surface, reclining at an approximately 125–135° angle (assisted by a raised PT table or PT wedges), sitting with legs hanging off of bed/table height surface with back approximately at 90°, standing straight without movement, and walking at a normal pace.
2.3 Data Processing
Prior to beginning data collection, a non-identifying subject ID was entered into the mobile app. Each reading streamed from the accelerometer included x, y, and z axes and a timestamp. As the app collected the readings and persisted them into on-device storage, it displayed a stop-watch-style timer for each position duration. An investigator used the app to manually label the subject’s position as it changed. This data was aggregated into a single CSV file on the mobile app and exported via email for post-processing. Data was processed offline after the collection from all participants.
The triaxial accelerometer data was buffered into 4-s time windows with magnitude-and-variance-based features extracted (e.g. trimmed-mean position and standard deviation of position). A Random Forest classifier was trained to automatically discriminate between the positions using leave-one-subject-out cross-validation to ensure robust performance estimates. This validation means that each participant’s data was held aside for testing against the remaining participants’ data that was used to train the classifier. This process was repeated for each participant and the results pooled across participants to estimate classifier performance.
3 Results
This paper describes the results of three tests: Comparison of performance of 1 vs. 2 sensors, importance of custom trained algorithms to classify for the given tasks, and overall classifier accuracy between older adults (55 or older) and adults under 55.
3.1 Comparison of Performance of 1 vs. 2 Sensors
To confirm reports, literature, and past studies, the data was analyzed to determine if one sensor would provide the accuracy needed to capture all posture movements. By using data recorded form a single sensor, we concluded that a single sensor worn on the chest or thigh would not provide reasonable accuracy for all posture movements. Specifically, when wearing only a chest sensor, sitting and standing were indistinguishable from each other. Using only a thigh sensor, laying, reclining, and sitting were indistinguishable from each other (Fig. 1).
3.2 Importance of Training for Task
To verify that sensor position and task performed are important to algorithm performance, we trained the classification algorithm based on one sensor location and tested the accuracy using data obtained from a different sensor location. Using a sensor on the leg when the classifier had been trained with a chest position sensor shows poor results (Fig. 2A) with only an 82.7% accuracy for standing/walking. However, using a sensor on the chest when the classifier had been trained on the leg did not have a negative impact (Fig. 2B) when comparing prone (laying/reclining) vs. upright (sitting, standing, and walking).
3.3 Classifier Accuracy – Older Adults and Adults
After confirming one sensor would not provide accuracy for each posture position, labeled data pooled from both sensors were used to train the classification algorithm for the test positions in a controlled setting. Accuracy for adults under 55 is overall 93.2% (Fig. 3A) and 95% overall accuracy (Fig. 3B) for adults 55 or older. Accuracy in both populations ranged from 96.5% to 99.4% in the sitting, standing, and walking positions and 83.5% to 95.1% for laying and reclining.
To observe classifier accuracy based on training within a different population than the testing population, the algorithm was trained using labeled data from older adults and tested on data from adults under 55. The classifier accuracy for this condition is 93.7% accuracy (Fig. 4A). The accuracy for an algorithm trained on labeled data from adults under 55 and tested using data from older adults, yielded a 94% accuracy (Fig. 4B).
4 Discussion and Implications
When training and testing the algorithm within a specific population while wearing two sensors, we showed a 93.2% accuracy for adults and a 95% accuracy for older adults across the five positions. Performance using a single sensor worn on either the chest or thigh to classify multiple posture positions was less accurate. This indicates that more than one sensor may be needed to classify granular movement, and that multiple sensors may be needed to identify laying, reclining, sitting, standing, and walking posture movements with accelerometry.
By observing new classification tasks and using one sensor to distinguish all posture movements, we showed that sensor position is important to the specific task (e.g. walking). Specifically, changing a sensor position without retraining the algorithm proves to get inaccurate results, depending on the specific task. This is an important implication when using commercially available sensors because the algorithm must have the ability to be trained on data collected at that specific body position. Commercially available sensor and software packages only allow users to place the sensors in specific locations on the body which might not be sufficient for some research projects. For example, the Actigraph wGT3X-BT and ActiLife software limits sensor position to the wrist, waist, ankle, and thigh [20]. These results and discussion underscore the need for a customizable software solution that allows the user to generate their own algorithm based on training data specific to a population and sensor location.
Our results comparing algorithm performance using an algorithm trained on one population and tested on another population proved to be almost as accurate as training and testing within the same population. This is likely due to the similarities in these populations, both abled bodied and mobile, and the fact that subjects were performing specific constrained tasks. More research is needed to make an accurate statement regarding training within one population and testing in another. We speculate that testing on a population significantly different from the training group (e.g. mobility compromised, acutely ill, hospitalized subjects) would show poor classification accuracy.
To address this, structured testing is underway on hospitalized older adults and adults. Although more analysis and testing are needed, preliminary data analysis demonstrates the importance of training classifiers with data from the target population as speculated in this paper. The next step of this project is to finish testing on hospitalized adults and older adults. Additionally, we will further validate our findings by testing movement for different population groups in at-home environments.
References
Pruit, L.A., et al.: Use of accelerometry to measure physical activity in older adults at risk for mobility disability. J. Aging Phys. Act. 16(4), 416–434 (2008). https://doi.org/10.1123/japa.16.4.416
Brown, C.J., Roth, D.L., Allman, R.M.: Validation of the use of wireless monitors to measure levels of mobility during hospitalization. J. Rehabil. Res. Dev. 45(4), 551–558 (2008). https://doi.org/10.1682/jrrd.2007.06.0086
Brown, C.J., Redden, D.T., Flood, K.L., Allman, R.M.: The underrecognized epidemic of low mobility during hospitalization of older adults. J. Am. Geriatr. Soc. 57(9), 1660–1665 (2009). https://doi.org/10.1111/j.1532-5415.2009.02393.x
Hall, K.S., Cohen, H.J., Pieper, C.F., Fillenbaum, G.G., Kraus, W.E., Huffman, K.M., et al.: Physical performance across the adult life span: correlates with age and physical activity. J. Gerontol. Ser. A 72(4), 572–578 (2017). https://doi.org/10.1093/Gerona/glw120
Pavon, J.M., Sloane, R.J., Pieper, C.F., Colón-Emeric, C.S., Cohen, H.J., Gallagher, D., et al.: Accelerometer-measured hospital physical activity and hospital-acquired disability in older adults. J. Am. Geriatr. Soc. 68(2), 261–265 (2020). https://doi.org/10.1111/jgs.16231
Agmon, M., Zisberg, A., Gil, E., Rand, D., Gur-Yaish, N., Azriel, M.: Association between 900 steps a day and functional decline in older hospitalized patients. JAMA Intern. Med. 177(2), 272–274 (2017). https://doi.org/10.1001/jamainternmed.2016.7266
Cohen, Y., Zisberg, A., Chayat, Y., Gur-Yaish, N., Gil, E., Levin, C., et al.: Walking for better outcomes and recovery: the effect of WALK-FOR in preventing hospital-associated functional decline among older adults. J. Gerontol. Ser. A: Biomed. Sci. Med. Sci. 74(10), 1664–1670 (2019). https://doi.org/10.1093/gerona/glz025
Daskivich, T.J., Houman, J., Lopez, M., Luu, M., Fleshner, P., Zaghiyan, K., et al.: Association of wearable activity monitors with assessment of daily ambulation and length of stay among patients undergoing major surgery. JAMA Netw. Open 2(2), e187673 (2019). https://doi.org/10.1001/jamanetworkopen.2018.7673
Fisher, S.R., Graham, J.E., Ottenbacher, K.J., Deer, R., Ostir, G.V.: Inpatient walking activity to predict readmission in older adults. Arch. Phys. Med. Rehabil. 97(9 Suppl), S226–S231 (2016). https://doi.org/10.1016/j.apmr.2015.09.029
Sallis, R., Roddy-Strum, Y., Chijioke, E., Litman, K., Kanter, M.H., Huang, B.Z., et al.: Stepping toward discharge: level of ambulation in hospitalized patients. J. Hosp. Med. 10(6), 384–389 (2015). https://doi.org/10.1002/jhm.2343
Banerjee, T., Peterson, M., Oliver, Q., Froehle, A., Lawhorne, L.: Validating a commercial device for continuous activity measurement in the older adult population for dementia management. Smart Health 5–6, 51–62 (2018)
Zhan, K., Ramos, F., Faux, S.: Activity recognition from a wearable camera. In: 12th International Conference on Control, Automation, Robotics, & Vision, pp. 365–370. IEEE, Guandzhou (2012)
Guraliuc, A.R., Barsocchi, P., Potorti, F., Nepa, P.: Limb movements classification using wearable wireless transceivers. IEEE Trans. Inf. Technol. Biomed. 15(3), 474–480 (2011)
Resnick, B., Galik, E., Gruber-Baldini, A.L., Zimmerman, S.: Perceptions and performance of function and physical activity in assisted living communities. J. Am. Med. Directors Assoc. 11(6), 406–414 (2010). https://doi.org/10.1016/j.jamda.2010.02.003
Hodgson, C.L., Denehy, L.: Measuring physical function after ICU: one step at a time. Intensive Care Med. 43(12), 1901–1903 (2017). https://doi.org/10.1007/s00134-017-4939-1
Hastings, S.N., Sloane, R., Morey, M.C., Pavon, J.M., Hoenig, H.: Assisted early mobility for hospitalized older veterans: preliminary data from the STRIDE program. J. Am. Geriatr. Soc. 62(11), 2180–2184 (2014). https://doi.org/10.1111/jgs.13095
Ostir, G.V., Berges, I.M., Kuo, Y.F., Goodwin, J.S., Fisher, S.R., Guralnik, J.M.: Mobility activity and its value as a prognostic indicator of survival in hospitalized older adults. J. Am. Geriatr. Soc. 61(4), 551–557 (2013). https://doi.org/10.1111/jgs.12170
Welk, G.J.: Use of accelerometry-based activity monitors to assess physical activity. In: Physical Activity Assessments for Health-Related Research. Human Kinetics, Champaign, IL, pp. 125–141 (2002)
Weik, M.H.: Nyquist theorem. In: Weik, M.H. (ed.) Computer Science and Communications Dictionary, p. 1127. Springer, Boston (2000). https://doi.org/10.1007/1-4020-0613-6_12654
ActiGraph wGT3X-BT page. https://www.actigraphcorp.com/actigraph-wgt3x-bt/. Accessed 8 Aug 2019
Acknowledgement
This work was supported by the National Institute on Disability, Independent Living and Rehabilitation Research in the U.S. Department of Health and Human Services [grant number 90RE5028]; and the National Institutes of Health [grant number P20AG028716]. The authors would like to thank the Claude D. Pepper Older Americans Independence Center (OAIC) at Duke University for their continued support on this project.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Jarvis, L., Moninger, S., Throckmorton, C., Pavon, J., Caves, K. (2020). Accelerometer-Based Machine Learning Categorization of Body Position in Adult Populations. In: Miesenberger, K., Manduchi, R., Covarrubias Rodriguez, M., Peňáz, P. (eds) Computers Helping People with Special Needs. ICCHP 2020. Lecture Notes in Computer Science(), vol 12377. Springer, Cham. https://doi.org/10.1007/978-3-030-58805-2_29
Download citation
DOI: https://doi.org/10.1007/978-3-030-58805-2_29
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-58804-5
Online ISBN: 978-3-030-58805-2
eBook Packages: Computer ScienceComputer Science (R0)