Skip to main content
Log in

Artificial neural networks for human activity recognition using sensor based dataset

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

Abstract

The use of wearable devices, sensors, machine learning, and deep learning for human activity recognition (HAR) applications has increased in recent years. Lots of researchers introduce different methods and techniques for HAR but accuracy and efficiency are still a gap to work in the HAR domain for other researchers. In this study, we design a simple architecture of MLP with a stack of dense layers which can perform accurately and efficiently on small and large features set for HAR. This study used a dataset that contain smartphone sensors (gyroscope and accelerometer) data against six daily human activities. Each sensor has three feature values corresponding to an instance for an activity. First, we train our proposed model individually on gyroscope and accelerometer data and then we combine both sensors data to train the model. We train the model using 70% of the dataset and evaluate the performance of the model on 30% data. MLP outperforms all other stat of the art models in comparison such as random forest, decision tree, logistic regression, and K nearest neighbor. The MLP accuracy scores are 0.74, 0.77, and 0.98 using features of gyroscope, accelerometer, and combination of both respectively. The results show that the proposed approach is also good with single sensor data. In comparison with the proposed MLP, we also deployed state-of-the-art models such as LSTM, CNN, and other machine learning models. Proposed MLP outperforms all used models in terms of all evaluation parameters. We also did a statistical T-test to show the significance of the proposed approach.

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
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11

Similar content being viewed by others

References

  1. Ali A, Zhu Y, Zakarya M (2021) A data aggregation based approach to exploit dynamic spatio-temporal correlations for citywide crowd flows prediction in fog computing. Multimed Tools Appl 80(20):31401–31433

    Article  Google Scholar 

  2. Ali A, Zhu Y, Zakarya M (2021) Exploiting dynamic spatio-temporal correlations for citywide traffic flow prediction using attention based neural networks. Inf Sci 577:852–870

    Article  MathSciNet  Google Scholar 

  3. Biau G, Scornet E (2016) A random forest guided tour. Test 25 (2):197–227

    Article  MathSciNet  MATH  Google Scholar 

  4. Brijain M, Patel R, Kushik M, Rana K (2014) A survey on decision tree algorithm for classification

  5. Chung S, Lim J, Noh KJ, Kim G, Jeong H (2019) Sensor data acquisition and multimodal sensor fusion for human activity recognition using deep learning. Sensors 19(7):1716

    Article  Google Scholar 

  6. Cornacchia M, Ozcan K, Zheng Y, Velipasalar S (2016) A survey on activity detection and classification using wearable sensors. IEEE Sensors J 17(2):386–403

    Article  Google Scholar 

  7. Dongare AD, Kharde RR, Kachare AD (2012) Introduction to artificial neural network. Int J Eng Innov Technol (IJEIT) 2(1):189–194

    Google Scholar 

  8. Dua N, Singh SN, Semwal VB (2021) Multi-input CNN-GRU based human activity recognition using wearable sensors. Computing 103(7):1461–1478

    Article  Google Scholar 

  9. Ignatov A (2018) Real-time human activity recognition from accelerometer data using convolutional neural networks. Appl Soft Comput 62:915–922

    Article  Google Scholar 

  10. Kleinbaum DG, Dietz K, Gail M, Klein M, Klein M (2002) Logistic Regression. Springer, New York

    Google Scholar 

  11. Kotsiantis SB, Zaharakis I, Pintelas P (2007) Supervised machine learning: a review of classification techniques. Emerg Artif Intell Appl Comput Eng 160(1):3–24

    Google Scholar 

  12. Lara OD, Labrador MA (2012) A survey on human activity recognition using wearable sensors. IEEE Commun Surv Tutor 15(3):1192–1209

    Article  Google Scholar 

  13. Lockhart JW, Pulickal T, Weiss GM (2012) Applications of mobile activity recognition. In: Proceedings of the 2012 ACM conference on ubiquitous computing, pp 1054–1058

  14. Mendes S, Queiroz J, Leitão P (2017) Data driven multi-agent m-health system to characterize the daily activities of elderly people. In: 2017 12th Iberian Conference on Information Systems and Technologies (CISTI). IEEE, (pp 1–6)

  15. Munoz-Organero M (2019) Outlier detection in wearable sensor data for human activity recognition (HAR) based on DRNNs. IEEE Access 7:74422–74436

    Article  Google Scholar 

  16. Nweke HF, Teh YW, Mujtaba G, Al-Garadi MA (2019) Data fusion and multiple classifier systems for human activity detection and health monitoring: Review and open research directions. Inf Fusion 46:147–170

    Article  Google Scholar 

  17. Omar B, Rustam F, Mehmood A, Choi GS (2021) Minimizing the overlapping degree to improve class-imbalanced learning under sparse feature selection: application to fraud detection. IEEE Access 9:28101–28110

    Article  Google Scholar 

  18. Ranasinghe S, Al Machot F, Mayr HC (2016) A review on applications of activity recognition systems with regard to performance and evaluation. Int J Distrib Sens Netw 12(8):1550147716665520

    Article  Google Scholar 

  19. Rashid 3- N, Utku Demirel B, Abdullah Al Faruque M (2021) AHAR: adaptive CNN for energy-efficient human activity recognition in lowpower edge devices, arXiv:2102.01875

  20. Ravi D, Wong C, Lo B, Yang GZ (2016) Deep learning for human activity recognition: A resource efficient implementation on low-power devices. In: 2016 IEEE 13th international conference on wearable and implantable body sensor networks (BSN). IEEE, (pp 71–76)

  21. Rokni SA, Nourollahi M, Ghasemzadeh H (2018) Personalized human activity recognition using convolutional neural networks. arXiv:1801.08252

  22. Ronao CA, Cho SB (2016) Human activity recognition with smartphone sensors using deep learning neural networks. Expert Syst Appl 59:235–244

    Article  Google Scholar 

  23. Rustam F, Imtiaz Z, Mehmood A, Rupapara V, Choi GS, Din S, Ashraf I (2022) Automated disease diagnosis and precaution recommender system using supervised machine learning. Multimed Tools Appl, pp 1–24

  24. Rustam F, Mehmood A, Ahmad M, Ullah S, Khan DM, Choi GS (2020) Classification of shopify app user reviews using novel multi text features. IEEE Access 8:30234–30244

    Article  Google Scholar 

  25. Rustam F et al (2020) Sensor-based Human Activity Recognition using Deep Stacked Multilayered Perceptron Model. In: IEEE Access, https://doi.org/10.1109/ACCESS.2020.3041822

  26. Saeed A, Ozcelebi T, Lukkien J (2019) Multi-task self-supervised learning for human activity detection. Proc ACM Interact Mob Wearable Ubiquitous Technol 3(2):1–30

    Article  Google Scholar 

  27. Schmidt-Hieber J (2020) Nonparametric regression using deep neural networks with reLU activation function. Ann Stat 48(4):1875–1897

    MathSciNet  MATH  Google Scholar 

  28. Siddiqui HUR, Shahzad HF, Saleem AA, Khan Khakwani AB, Rustam F, Lee E, Ashraf I, Dudley S (2021) Respiration based Non-Invasive approach for emotion recognition using impulse radio ultra wide band radar and machine learning. Sensors 21(24):8336

    Article  Google Scholar 

  29. Singh D, Merdivan E, Psychoula I, Kropf J, Hanke S, Geist M, Holzinger A (2017) Human activity recognition using recurrent neural networks. In: International cross-domain conference for machine learning and knowledge extraction). Springer, Cham, pp 267–274

  30. Soucy P, Mineau GW (2001) A simple KNN algorithm for text categorization. In: Proceedings 2001 IEEE international conference on data mining. IEEE, (pp 647–648)

  31. Swarnakar SK, Agrawal H, Goel A (2021) Smartphone inertial sensors-based human activity detection using support vector machine. In: Soft computing: theories and applications. Springer, Singapore, (pp 231–241)

  32. Vrigkas M, Nikou C, Kakadiaris IA (2015) A review of human activity recognition methods. Frontiesr Robotics AI 2:28

    Google Scholar 

  33. Wan S, Qi L, Xu X, Tong C, Gu Z (2020) Deep learning models for real-time human activity recognition with smartphones. Mob Netw Appl 25(2):743–755

    Article  Google Scholar 

  34. Webber WRS, Lesser RP, Richardson RT, Wilson K (1996) An approach to seizure detection using an artificial neural network (ANN). Electroencephalogr Clin Neurophysiol 98(4):250–272

    Article  Google Scholar 

  35. Xia K, Huang J, Wang H (2020) LSTM-CNN architecture for human activity recognitions. In: IEEE Access, vol 8, pp 56855–56866. https://doi.org/10.1109/ACCESS.2020.2982225

  36. Yang J, Nguyen MN, San PP, Li X, Krishnaswamy S (2015) Deep convolutional neural networks on multichannel time series for human activity recognition. In: Ijcai, vol 15, pp 3995–4001

  37. Zhuang Z, Xue Y (2019) Sport-Related Human activity detection and recognition using a smartwatch. Sensors 19(22):5001

    Article  Google Scholar 

  38. hmed N, Rafiq JI, Islam MR (2020) Enhanced human activity recognition based on smartphone sensor data using hybrid feature selection model. Sensors 20:317. https://doi.org/10.3390/s20010317

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Vaibhav Rupapara.

Ethics declarations

Conflict of Interests

The authors declare that they have no conflict of interest.

Additional information

Publisher’s note

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

Rights and permissions

Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Geravesh, S., Rupapara, V. Artificial neural networks for human activity recognition using sensor based dataset. Multimed Tools Appl 82, 14815–14835 (2023). https://doi.org/10.1007/s11042-022-13716-z

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-022-13716-z

Keywords

Navigation