Skip to main content

Advertisement

Log in

Human activity classification using Decision Tree and Naïve Bayes classifiers

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

With rapid development in wireless sensor networks and continuous improvements in developing artificial intelligence-based scientific solutions, the concept of ambient assisted living has been encouraged and adopted. This is due to its widespread applications in smart homes and healthcare. In this regard, the concept of human activity recognition (HAR) & classification has drawn numerous researchers’ attention as it improves the quality of life. However, before using this concept in real-time scenarios, it is required to analyse its performance following activities of daily living using benchmarked data set. In this continuation, this work has adopted the activity classification algorithms to improve their accuracy further. These algorithms can be used as a benchmark to analyse others’ performance. Initially, the raw 3-axis accelerometer data is first preprocessed to remove noise and make it feasible for training and classification. For this purpose, the sliding window algorithm, linear and Gaussian filters have been applied to raw data. Then Naïve Bayes (NB) and Decision Tree (DT) classification algorithms are used to classify human activities such as: sitting, standing, walking, sitting down and standing up. From results, it can be seen that maximum 89.5% and 99.9% accuracies are achieved using NB and DT classifiers with Gaussian filter. Furthermore, we have also compared the obtained results with its counterpart algorithms in order to prove its effectiveness.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others

References

  1. Alpaydin E (2010) Introduction to machine learning. MIT Press, Cambridge. ISBN: 026201243X, 9780262012430

    MATH  Google Scholar 

  2. Azmi MSM, Sulaiman MN (2017) Accelerator-based human activity recognition using voting technique with nbtree and mlp classifiers. Int J Adv Sci Eng Inform Technol 7:146–152

    Article  Google Scholar 

  3. Babiker M, Khalifa OO, Htike K K, Hassan A, Zaharadeen M (2017) Automated daily human activity recognition for video surveillance using neural network. In: 2017 IEEE 4th international conference on smart instrumentation, measurement and application (ICSIMA), Putrajaya, pp 1–5. https://doi.org/10.1109/ICSIMA.2017.8312024

  4. Bakhshayeshian Z, Khalili M (2015) An suggested method to university courses presentation based on cart algorithm to pun universities. In: 2nd International conference on knowledge-based engineering and innovation (KBEI), Tehran, pp 1170–1173. https://doi.org/10.1109/KBEI.2015.7436213

  5. Barros RC Automatic design of decision-tree induction algorithms. Springer Briefs in Computer Science. https://doi.org/10.1007/978-3-319-14231-9_2

  6. Bhargava N, Purohit R, Sharma S, Kumar A (2017) Prediction of arthritis using classification and regression tree algorithm. In: 2nd International conference on communication and electronics systems (ICCES), Coimbatore, pp 606–610. https://doi.org/10.1109/CESYS.2017.8321150

  7. Bhargava N, Dayma S, Kumar A, Singh P (2017) An approach for classification using simple CART algorithm in WEKA. In: 11th International conference on intelligent systems and control (ISCO), Coimbatore, pp 212–216. https://doi.org/10.1109/ISCO.2017.7855983

  8. Bi Y, Lv M, Song C, Xu W, Guan N, Yi W (2016) Autodietary: a wearable acoustic sensor system for food intake recognition in daily life. IEEE Sens J 16(3):806–816

    Article  Google Scholar 

  9. Bisio I, Delfino A, Lavagetto F, Sciarrone A (2017) Enabling iot for in-home rehabilitation: accelerometer signals classification methods for activity and movement recognition. IEEE Internet Things J 4:135–146

    Article  Google Scholar 

  10. Cao J, Li W, Ma C, Tao Z (2018) Optimizing multi-sensor deployment via ensemble pruning for wearable activity recognition. Inf Fusion 41:68–79

    Article  Google Scholar 

  11. Chen C, Jafari R, Kehtarnavaz N (2015) Utd-mhad: a multimodal dataset for human action recognition utilizing a depth camera and a wearable inertial sensor. In: 2015 IEEE international conference on image processing (ICIP), pp 168–172

  12. Chen Z, Zhu Q, Yeng CS, Zhang L (2017) Robust human activity recognition using smartphone sensors via ct-pca and online svm. IEEE Trans Ind Inf 13:3070–3080

    Article  Google Scholar 

  13. Cheng J, Chen X, Shen M (2013) A framework for daily activity monitoring and fall detection based on surface electromyography and accelerometer signals. IEEE J Biomed Health Inform 17(1):38–45. https://doi.org/10.1109/TITB.2012.2226905

    Article  Google Scholar 

  14. Chernbumroong S, Cang S, Yu H (2015) Genetic algorithm-based classifiers fusion for multisensor activity recognition of elderly people. IEEE J Biomed Health Inform 19(1):282–289

    Article  Google Scholar 

  15. Chowdhury A, Tjondronegoro D, Chandran V, Trost S (2017) Physical activity recognition using posterior-adapted class-based fusion of multi-accelerometers data. IEEE J Biomed Health Inform 22:1–8

    Google Scholar 

  16. De-La-Hoz-Franco E, Ariza-Colpas P, Quero JM, Espinilla M (2018) Sensor-based datasets for human activity recognition—a systematic review of literature. IEEE Access 6:59192–59210

    Article  Google Scholar 

  17. Deen MJ (2015) Information and communications technologies for elderly ubiquitous healthcare in a smart home. Pers Ubiquitous Comput 19(34):573–599

    Article  Google Scholar 

  18. Ehrenhard M, et al. (2014) Market adoption barriers of multi-stakeholder technology: smart homes for the aging population. Technol Forecast Social Change 89:306–315

    Article  Google Scholar 

  19. Figo D, Diniz P C, Ferreira D R, Cardoso J M (2010) Preprocessing techniques for context recognition from accelerometer data. Pers Ubiquitous Comput 14(7):645–662

    Article  Google Scholar 

  20. Fullerton E, Heller B, Munoz-Organero M (2017) Recognizing human activity in free-living using multiple body-worn accelerometers. IEEE Sens J 17 (16):5290–5297. https://doi.org/10.1109/JSEN.2017.2722105

    Article  Google Scholar 

  21. Han C, Wu K, Wang Y, Ni L M (2014) Wifall: device-free fall detection by wireless networks. In: IEEE INFOCOM, pp 271–279

  22. Khan AM, Lee Y-K, Lee S, Kim T-S (2010) Human activity recognition via an accelerometer-enabled-smartphone using kernel discriminant analysis. In: Proceedings of the IEEE international conference on future information technology, pp 1–6

  23. Kse N, Babaee M, Rigoll G (2017) Multi-view human activity recognition using motion frequency. In: IEEE international conference on image processing (ICIP), Beijing, pp 3963–3967. https://doi.org/10.1109/ICIP.2017.8297026

  24. Kubo T, Ozasa K, Mikami K, Wakai K, Fujino Y, Watanabe Y, Miki T, Nakao M, Hayashi K, Suzuki K, Mori M, Washio M, Sakauchi F, Ito Y, Yoshimura T, Tamakoshi A (2006) Prospective cohort study of the risk of prostate cancer among rotating-shift workers: findings from the Japan collaborative cohort study. Am J Epidemiol 164(6):549–555

    Article  Google Scholar 

  25. Kushwaha AKS, Srivastava S, Srivastava R (2017) Multi-view human activity recognition based on silhouette and uniform rotation invariant local binary patterns. Multimed Syst 23:451–467

    Article  Google Scholar 

  26. Lauriks S, et al. (2007) Review of ICT-based services for identified unmet needs in people with dementia. Ageing Res Rev 6(3):223–246

    Article  Google Scholar 

  27. Lee S et al All-day mobile healthcare monitoring system based on heterogeneous stretchable sensors for medical emergency. IEEE Trans Ind Electron

  28. Li F, Shirahama K, Nisar MA, Kping L, Grzegorzek (2018) Comparison of feature learning methods for human activity recognition using wearable. Sensors 18(2):679

    Article  Google Scholar 

  29. Lin W, Xing S, Nan J, Wenyuan L, Binbin L (2018) Concurrent recognition of cross-scale activities via sensorless sensing. IEEE Sens J. https://doi.org/10.1109/JSEN.2018.2874506

  30. Liu Y, Cui J, Zhao H, Zha H (2012) Fusion of low-and highdimensional approaches by trackers sampling for generic human motion tracking. In: Proceedings of international conference on pattern recognition, pp 898–901

  31. Lu W, Fan F, Chu J, Jing P, Su Y (2018) Wearable computing for Internet of Things: a discriminant approach for human activity recognition. IEEE Internet Things J. https://doi.org/10.1109/JIOT.2018.2873594

  32. Maimon L, Rokach O (2005) Decision trees in data mining and knowledge discovery handbook. Springer, Boston

    Book  Google Scholar 

  33. Mannini A, Sabatini A (2010) Machine learning methods for classifying human physical activity from on-body accelerometers. Sensors 10(2):1154–1175

    Article  Google Scholar 

  34. Maswadi K, Ghani NBA, Hamid SB (2020) Systematic literature review of smart home monitoring technologies based on IoT for the elderly. IEEE Access 8:92244–92261. https://doi.org/10.1109/ACCESS.2020.2992727

    Article  Google Scholar 

  35. Maziewski P, Kupryjanow A, Kaszuba K, Czyewski A (2009) Accelerometer signal pre-processing influence on human activity recognition. In: Signal processing algorithms, architectures, arrangements, and applications SPA 2009, Poznan, pp 95–99

  36. Mitchell E, Monaghan D, O’Connor N (2013) Classification of sporting activities using smartphone accelerometers. Sensors 13(4):5317–5337

    Article  Google Scholar 

  37. Moschetti A, Fiorini L, Esposito D, Dario P, Cavallo F (2017) Toward an unsupervised approach for daily gesture recognition in assisted living applications. IEEE Sens J 17(24):8395–8403

    Article  Google Scholar 

  38. Nam Y, Park JW (2013) Child activity recognition based on cooperative fusion model of a triaxial accelerometer and a barometric pressure sensor. IEEE J Biomed Health Inform 17(2):420–426. https://doi.org/10.1109/JBHI.2012.2235075

    Article  Google Scholar 

  39. Pal D, et al. (2018) Internet-of-Things and smart homes for elderly healthcare: an end user perspective. IEEE Access 6:10483–10496

    Article  Google Scholar 

  40. Plotnik M, Giladi N, Dagan Y, Hausdorff J (2011) Postural instability and fall risk in Parkinson’s disease: impaired dual tasking, pacing, and bilateral coordination of gait during the ‘ON’ medication state. Exp Brain Res 210(3–4):529–538

    Article  Google Scholar 

  41. Qian X, Chen H, Jiang H, Green J, Cheng H, Huang M Wearable computing architecture over distributed deep learning hierarchy: fall detection study. IEEE Sens J 20:9408–9416

  42. Rogers SJ, Hepburn S, Wehner E (2003) Parent reports of sensory symptoms in toddlers with autism and those with other developmental disorders. J Autism Dev Disord 33(6):631–642

    Article  Google Scholar 

  43. Safavian S, Landgrebe D (1991) A survey of decision tree classifier methodology. IEEE Trans Syst Man Cybern 21(3):660–674. ISSN: 0018–9472

    Article  MathSciNet  Google Scholar 

  44. Sazonov ES, Fulk G, Hill J, Schutz Y, Browning R (2011) Monitoring of posture allocations and activities by a shoe-based wearable sensor. IEEE Trans Biomed Eng 58(4):983–990

    Article  Google Scholar 

  45. Shi D, Wang R, Wu Y, Mo X, Wei J (2017) A novel orientationand location-independent activity recognition method. Pers Ubiquitous Comput 21:427–441

    Article  Google Scholar 

  46. Singh A, Rehman SU, Yongchareon S, Chong PHJ Sensor technologies for fall detection systems: a review. IEEE Sens J 20:6889–6919

  47. Stojkoska BLR, et al. (2017) A review of Internet of Things for smart home: challenges and solutions. J Clean Prod 140(3):1454–1464

    Article  Google Scholar 

  48. Tang W, Sazonov ES (2014) Highly accurate recognition of human postures and activities through classification with rejection. IEEE J Biomed Health Inform 18(1):309–315. https://doi.org/10.1109/JBHI.2013.2287400

    Article  Google Scholar 

  49. Twomey N, Diethe T, Fafoutis X, Elsts A, McConville R, Flach P, Craddock I (2018) A comprehensive study of activity recognition using accelerometers. Informatics 5:1–37

    Article  Google Scholar 

  50. Ugulino W, Cardador D, Vega K, Velloso E, Milidi R, Fuks H (2012) Wearable computing: accelerometers’ data classification of body postures and movements. In: Advances in artificial intelligence-SBIA. Springer, Berlin, pp 52–61

  51. Vanrell SR, Milone DH, Rufiner HL (2017) Assessment of homomorphic analysis for human activity recognition from acceleration signals. IEEE J Biomed Health Inform 22:1–9

    Google Scholar 

  52. Venkatesh V, et al. (2012) Consumer acceptance and use of information technology: extending the united theory of acceptance and use of technology. MIS Q 36(1):157–178

    Article  Google Scholar 

  53. Wang H, Zhang D, Ma J, Wang Y, Wang Y, Wu D, Gu T, Xie B (2016). In: ACM international joint conference on pervasive and ubiquitous computing, pp 25–36

  54. Wang H, Zhang D, Wang Y, Ma J, Wang Y, Li S (2017) Rt-fall: a realtime and contactless fall detection system with commodity wi devices. IEEE Trans Mob Comput 16(2):511–526

    Article  Google Scholar 

  55. Wang W, Liu A X, Shahzad M, Ling K, Lu S (2017) Device-free human activity recognition using commercial wifi devices. IEEE J Sel Areas Commun 99:1118–1131

    Article  Google Scholar 

  56. Wang F, Gong W, Liu J (2018) On spatial diversity in WiFi-based human activity recognition: a deep learning based approach. IEEE Internet Things J. https://doi.org/10.1109/JIOT.2018.2871445

  57. Wu D, Zhang D, Xu C, Wang Y, Wang H (2016) Widir: walking direction estimation using wireless signals. In: Proceedings of the 2016 ACM international joint conference on pervasive and ubiquitous computing. ACM, pp 351–362

  58. Wu T, Wu F, Qiu C, Redoute J, Yuce MRA rigid-flex wearable health monitoring sensor patch for IoT-connected healthcare applications. IEEE Internet Things J

  59. Xue Y, Jin L (2010) A naturalistic 3d acceleration-based activity dataset & benchmark evaluations. In: Proceedings of IEEE international conference on systems man and cybernetics, pp 4081–4085

  60. Youssef A, Aerts J, Vanrumste B, Luca SA localised learning approach applied to human activity recognition. IEEE Intell Syst. https://doi.org/10.1109/MIS.2020.2964738

  61. Zdravevski E, Lameski P, Trajkovik V, Kulakov A, Chorbev I, Goleva R, Pombo N, Garcia N (2017) Improving activity recognition accuracy in ambient assisted living systems by automated feature engineering. IEEE Access 5:1–17

    Article  Google Scholar 

  62. Zhuo Y, Zhu H, Xue H, Chang S (2017) Perceiving accurate csi phases with commodity wifi devices. In: IEEE conference on computer communications, pp 1–9

  63. Zhou X, Liang W, Wang KI, Wang H, Yang LT, Jin Q Deep learning enhanced human activity recognition for internet of healthcare things. IEEE Internet Things J. https://doi.org/10.1109/JIOT.2020.2985082

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Kholoud Maswadi or Norjihan Abdul Ghani.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Maswadi, K., Ghani, N.A., Hamid, S. et al. Human activity classification using Decision Tree and Naïve Bayes classifiers. Multimed Tools Appl 80, 21709–21726 (2021). https://doi.org/10.1007/s11042-020-10447-x

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-020-10447-x

Keywords

Navigation