Classification Accuracies of Physical Activities Using Smartphone Motion Sensors

被引:189
作者
Wu, Wanmin [1 ]
Dasgupta, Sanjoy [2 ]
Ramirez, Ernesto E. [1 ]
Peterson, Carlyn [1 ]
Norman, Gregory J. [1 ]
机构
[1] Univ Calif San Diego, Ctr Wireless & Populat Hlth Syst, Dept Family & Prevent Med, La Jolla, CA 92093 USA
[2] Univ Calif San Diego, Dept Comp Sci & Engn, La Jolla, CA 92093 USA
基金
美国国家卫生研究院;
关键词
Activity classification; machine learning; accelerometer; gyroscope; smartphone; UNITED-STATES;
D O I
10.2196/jmir.2208
中图分类号
R19 [保健组织与事业(卫生事业管理)];
学科分类号
摘要
Background: Over the past few years, the world has witnessed an unprecedented growth in smartphone use. With sensors such as accelerometers and gyroscopes on board, smartphones have the potential to enhance our understanding of health behavior, in particular physical activity or the lack thereof. However, reliable and valid activity measurement using only a smartphone in situ has not been realized. Objective: To examine the validity of the iPod Touch (Apple, Inc.) and particularly to understand the value of using gyroscopes for classifying types of physical activity, with the goal of creating a measurement and feedback system that easily integrates into individuals' daily living. Methods: We collected accelerometer and gyroscope data for 16 participants on 13 activities with an iPod Touch, a device that has essentially the same sensors and computing platform as an iPhone. The 13 activities were sitting, walking, jogging, and going upstairs and downstairs at different paces. We extracted time and frequency features, including mean and variance of acceleration and gyroscope on each axis, vector magnitude of acceleration, and fast Fourier transform magnitude for each axis of acceleration. Different classifiers were compared using the Waikato Environment for Knowledge Analysis (WEKA) toolkit, including C4.5 (J48) decision tree, multilayer perception, naive Bayes, logistic, k-nearest neighbor (kNN), and meta-algorithms such as boosting and bagging. The 10-fold cross-validation protocol was used. Results: Overall, the kNN classifier achieved the best accuracies: 52.3%-79.4% for up and down stair walking, 91.7% for jogging, 90.1%-94.1% for walking on a level ground, and 100% for sitting. A 2-second sliding window size with a 1-second overlap worked the best. Adding gyroscope measurements proved to be more beneficial than relying solely on accelerometer readings for all activities (with improvement ranging from 3.1% to 13.4%). Conclusions: Common categories of physical activity and sedentary behavior (walking, jogging, and sitting) can be recognized with high accuracies using both the accelerometer and gyroscope onboard the iPod touch or iPhone. This suggests the potential of developing just-in-time classification and feedback tools on smartphones. (J Med Internet Res 2012;14(5):e130) doi:10.2196/jmir.2208
引用
收藏
页数:9
相关论文
共 20 条
  • [1] Albinali F, 2010, UBICOMP 2010: PROCEEDINGS OF THE 2010 ACM CONFERENCE ON UBIQUITOUS COMPUTING, P311, DOI 10.1145/1864349.1864396
  • [2] [Anonymous], 2007 11 IEEE INT S W
  • [3] [Anonymous], 2010, Proc. of the 8th ACM Conference on Embedded Networked Sensor Systems, DOI DOI 10.1145/1869983.1869992
  • [4] Activity recognition from user-annotated acceleration data
    Bao, L
    Intille, SS
    [J]. PERVASIVE COMPUTING, PROCEEDINGS, 2004, 3001 : 1 - 17
  • [5] Bauman A E, 2004, J Sci Med Sport, V7, P6, DOI 10.1016/S1440-2440(04)80273-1
  • [6] Cakmakci O, 2000, 2000 4 INT S WEAR CO
  • [7] Evaluation of Neural Networks to Identify Types of Activity Using Accelerometers
    de Vries, Sanne I.
    Garre, Francisca Galindo
    Engbers, Luuk H.
    Hildebrandt, Vincent H.
    van Buuren, Stef
    [J]. MEDICINE AND SCIENCE IN SPORTS AND EXERCISE, 2011, 43 (01) : 101 - 107
  • [8] Dixon-Warren S., 2010, MOTION SENSING IPHON
  • [9] Hall M., 2009, SIGKDD Explorations, V11, P10, DOI DOI 10.1145/1656274.1656278
  • [10] Huynh T, 2005, P 2005 C SMART OBJ A