User-Independent Human Activity Recognition Using a Mobile Phone: Offline Recognition vs. Real-Time on Device Recognition

  • Pekka SiirtolaEmail author
  • Juha Röning
Part of the Advances in Intelligent and Soft Computing book series (AINSC, volume 151)


Real-time human activity recognition on a mobile phone is presented in this article. Unlike in most other studies, not only the data were collected using the accelerometers of a smartphone, but also models were implemeted to the phone and the whole classification process (preprocessing, feature extraction and classification) was done on the device. The system is trained using phone orientation independent features to recognize five everyday activities: walking, running, cycling, driving a car and sitting/standing while the phone is in the pocket of the subject’s trousers. Two classifiers were compared, knn (k nearest neighbours) and QDA (quadratic discriminant analysis). The models for real-time activity recognition were trained offline using a data set collected from eight subjects and these offline results were compared to real-time recognition rates. Real-time recognition on the device was tested by seven subjects, three of which were subjects who had not collected data to train the models. Activity recognition rates on the smartphone were encouracing, in fact, the recognition accuracies obtained are approximately as high as offline recognition rates. The real-time recognition accuracy using QDA was as high as 95.8%, while using knn it was 93.9%.


Mobile Phone Recognition Rate Activity Recognition Wearable Sensor Quadratic Discriminant Analysis 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
  2. 2.
    Bao, L., Intille, S.S.: Activity Recognition from User-Annotated Acceleration Data. In: Ferscha, A., Mattern, F. (eds.) PERVASIVE 2004. LNCS, vol. 3001, pp. 1–17. Springer, Heidelberg (2004)CrossRefGoogle Scholar
  3. 3.
    Brezmes, T., Gorricho, J.-L., Cotrina, J.: Activity Recognition from Accelerometer Data on a Mobile Phone. In: Omatu, S., Rocha, M.P., Bravo, J., Fernández, F., Corchado, E., Bustillo, A., Corchado, J.M. (eds.) IWANN 2009. LNCS, vol. 5518, pp. 796–799. Springer, Heidelberg (2009)CrossRefGoogle Scholar
  4. 4.
    Ermes, M., Pärkkä, J., Mäntyjärvi, J., Korhonen, I.: Detection of daily activities and sports with wearable sensors in controlled and uncontrolled conditions. IEEE Transactions on Information Technology in Biomedicine 12(1), 20–26 (2008)CrossRefGoogle Scholar
  5. 5.
    Fix, E., Hodges, J.L.: Discriminatory analysis: Nonparametric discrimination: Consistency properties. Tech. Rep. Project 21-49-004, Report Number 4, USAF School of Aviation Medicine, Randolf Field, Texas (1951)Google Scholar
  6. 6.
    Frank, J., Mannor, S., Precup, D.: Activity Recognition with Mobile Phones. In: Gunopulos, D., Hofmann, T., Malerba, D., Vazirgiannis, M. (eds.) ECML PKDD 2011, Part III. LNCS, vol. 6913, pp. 630–633. Springer, Heidelberg (2011)CrossRefGoogle Scholar
  7. 7.
    Haapalainen, E., Laurinen, P., Junno, H., Tuovinen, L., Röning, J.: Feature selection for identification of spot welding processes. In: Proceedings of the 3rd International Conference on Informatics in Control, Automation and Robotics, pp. 40–46 (2006)Google Scholar
  8. 8.
    Hand, D.J., Mannila, H., Smyth, P.: Principles of data mining. MIT Press, Cambridge (2001)Google Scholar
  9. 9.
    Ichikawa, F., Chipchase, J., Grignani, R.: Where’s the phone? a study of mobile phone location in public spaces. In: 2005 2nd International Conference on Mobile Technology, Applications and Systems, pp. 1–8 (2005)Google Scholar
  10. 10.
    Kwapisz, J.R., Weiss, G.M., Moore, S.A.: Activity recognition using cell phone accelerometers. SIGKDD Explor. Newsl. 12, 74–82 (2011)CrossRefGoogle Scholar
  11. 11.
    Lu, H., Yang, J., Liu, Z., Lane, N.D., Choudhury, T., Campbell, A.T.: The Jigsaw continuous sensing engine for mobile phone applications. In: Proceedings of the 8th ACM Conference on Embedded Networked Sensor Systems, SenSys 2010, pp. 71–84 (2010)Google Scholar
  12. 12.
  13. 13.
    Peebles, D., Lu, H., Lane, N.D., Choudhury, T., Campbell, A.T.: Community-guided learning: Exploiting mobile sensor users to model human behavior. In: Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2010, Atlanta, Georgia, USA, July 11-15 (2010)Google Scholar
  14. 14.
  15. 15.
  16. 16.
    Ryder, J., Longstaff, B., Reddy, S., Estrin, D.: Ambulation: A tool for monitoring mobility patterns over time using mobile phones. In: International Conference on Computational Science and Engineering, CSE 2009, vol. 4, pp. 927–931 (2009)Google Scholar
  17. 17.
    Siirtola, P., Koskimäki, H., Röning, J.: Periodic quick test for classifying long-term activities. In: IEEE Symposium on Computational Intelligence and Data Mining (CIDM 2011), pp. 135–140 (2011)Google Scholar
  18. 18.
  19. 19.
    Sun, L., Zhang, D., Li, B., Guo, B., Li, S.: Activity Recognition on an Accelerometer Embedded Mobile Phone with Varying Positions and Orientations. In: Yu, Z., Liscano, R., Chen, G., Zhang, D., Zhou, X. (eds.) UIC 2010. LNCS, vol. 6406, pp. 548–562. Springer, Heidelberg (2010)CrossRefGoogle Scholar
  20. 20.
    Suutala, J., Pirttikangas, S., Röning, J.: Discriminative Temporal Smoothing for Activity Recognition from Wearable Sensors. In: Ichikawa, H., Cho, W.-D., Satoh, I., Youn, H.Y. (eds.) UCS 2007. LNCS, vol. 4836, pp. 182–195. Springer, Heidelberg (2007)CrossRefGoogle Scholar
  21. 21.
    Van Laerhoven, K., Cakmakci, O.: What shall we teach our pants? In: The Fourth International Symposium on Wearable Computers, pp. 77–83 (2000)Google Scholar
  22. 22.
    Wang, S., Chen, C., Ma, J.: Accelerometer based transportation mode recognition on mobile phones. In: Asia-Pacific Conference on Wearable Computing Systems, pp. 44–46 (2010)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  1. 1.Department of Computer Science and EngineeringUniversity of OuluOuluFinland

Personalised recommendations