Skip to main content

Using K-Nearest Neighbours Feature Selection for Activity Recognition

  • Conference paper
  • First Online:
Sensor- and Video-Based Activity and Behavior Computing

Part of the book series: Smart Innovation, Systems and Technologies ((SIST,volume 291))

  • 196 Accesses

Abstract

As Team 2A&B Core, we contributed a K-nearest neighbour approach for classifying ten different activities for the Bento Packing Activity Recognition Challenge. We used hand-engineered features from motion capture data. Before classifying the data, we scaled it and applied a principal component analysis. We used the K-nearest neighbour classifier to find the best feature, and we found that the best feature was one that was related to a fixed position. Our approach achieved an accuracy of 38.78% on our validation subject and 42.00% on our test subject.

B. Friedrich and T.A.-M. Orsot: Both authors contributed equally to this research.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 249.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Adachi, K., Shamma Alia, S., Nahid, N., Kaneko, H., Lago, P., Inoue, S.: Summary of the bento packaging activity recognition challenge. In: The 3rd International Conference on Activity and Behavior Computing (ABC2021) (2021)

    Google Scholar 

  2. Shamma, A.S., Adachi, K., Nahid, N., Lago, P., Inoue, S.: Bento Packaging Activity Recognition Challenge. Haru Kaneko (2021)

    Google Scholar 

  3. Hachaj, T., Ogiela, M.R., Koptyra, K.: Human actions recognition from motion capture recordings using signal resampling and pattern recognition methods. Ann. Oper. Res. 265(2), 223–239 (2018)

    Google Scholar 

  4. Paul Ijjina, E., Krishna Mohan, C.: Human action recognition based on motion capture information using fuzzy convolution neural networks. In: 2015 Eighth International Conference on Advances in Pattern Recognition (ICAPR), pp. 1–6 (2015)

    Google Scholar 

  5. Barnachon, M., Bouakaz, S., Boufama, B., Guillou, E.: Ongoing human action recognition with motion capture. Pattern Recogn. 47, 238–247 (2014)

    Google Scholar 

  6. Cao, X., Kudo, W., Ito, C., Shuzo, M., Maeda, E.: Activity recognition using ST-GCN with 3D motion data. In: Adjunct Proceedings of the 2019 ACM International Joint Conference on Pervasive and Ubiquitous Computing and Proceedings of the 2019 ACM International Symposium on Wearable Computers, UbiComp/ISWC’19 Adjunct, pp. 689–692. Association for Computing Machinery, New York, NY, USA (2019)

    Google Scholar 

  7. Lago, P., Okita, T., Takeda, S., Inoue, S.: Improving sensor-based activity recognition using motion capture as additional information. In: Proceedings of the 2018 ACM International Joint Conference and 2018 International Symposium on Pervasive and Ubiquitous Computing and Wearable Computers, UbiComp’18, pp. 118–121. Association for Computing Machinery, New York, NY, USA (2018)

    Google Scholar 

  8. Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., Duchesnay, E.: Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011)

    MathSciNet  MATH  Google Scholar 

  9. Harris, C.R., Jarrod Millman, K., van der Walt, S.J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N.J., Kern, R., Picus, M., Hoyer, S., van Kerkwijk, M.H., Brett, M., Haldane, A., del Río, J.F., Wiebe, M., Peterson, P., Gérard-Marchant, P., Sheppard, K., Reddy, T., Weckesser, W., Abbasi, H., Gohlke, C., Oliphant, T.E.: Array programming with NumPy. Nature 585(7825), 357–362 (2020)

    Google Scholar 

  10. McKinney, W.: Data structures for statistical computing in Python. In: van der Walt, S., Millman, J. (eds.) Proceedings of the 9th Python in Science Conference, pp. 56–61 (2010)

    Google Scholar 

Download references

Acknowledgements

The experiments were performed at the HPC cluster CARL, located at the University of Oldenburg (Germany), and funded by the DFG through its Major Research Instrumentation Programme (INST 184/157-1 FUGG) and the Ministry of Science and Culture (MWK) of the Lower Saxony State.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Björn Friedrich .

Editor information

Editors and Affiliations

Appendix

Appendix

Sensor modalities

MoCap markers

Marker left hand

8 9 10

Marker right hand

4 6 7

Features

Hand-engineered

Language and libraries

Python 3.6, Scikit-learn [8], NumPy [9], Pandas [10]

Window size and post-processing

No windows were used, no post-processing was applied

Training/testing time

3.1473 s/0.0027 s

Machine specifications

2x Intel Xeon E5-2650 \(12 \times 2.2\) GHz, 256 GB DDR4 RAM, no GPU

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Friedrich, B., Orsot, T.AM., Hein, A. (2022). Using K-Nearest Neighbours Feature Selection for Activity Recognition. In: Ahad, M.A.R., Inoue, S., Roggen, D., Fujinami, K. (eds) Sensor- and Video-Based Activity and Behavior Computing. Smart Innovation, Systems and Technologies, vol 291. Springer, Singapore. https://doi.org/10.1007/978-981-19-0361-8_14

Download citation

Publish with us

Policies and ethics