Activity Detection of Elderly People Using Smartphone Accelerometer and Machine Learning Methods


  • Muhammad Imran Khan Department of Creative Technologies, Faculty of Computing & AI, Air University, Islamabad
  • Azhar Imran Department of Creative Technologies, Faculty of Computing & AI, Air University, Islamabad
  • Abdul Haleem Butt Department of Creative Technologies, Faculty of Computing & AI, Air University, Islamabad
  • Ateeq Ur Rehman Butt Department of Computer Science, National Textile University, Faisalabad


Machine Learning, Activity Detection, Elderly People, Activity Recognition, Accelerometers, Smartphones, Sensors


Elderly activity detection is one of the significant applications in machine learning. A supportive lifestyle can help older people with their daily activities to live their lives easier. But the current system is ineffective, expensive, and impossible to implement. Efficient and cost-effective modern systems are needed to address the problems of aged people and enable them to adopt effective strategies. Though smartphones are easily accessible nowadays, thus a portable and energy-efficient system can be developed using the available resources. This paper is supposed to establish elderly people's activity detection based on available resources in terms of robustness, privacy, and cost-effectiveness. We formulated a private dataset by capturing seven activities, including working, standing, walking, and talking, etc. Furthermore, we performed various preprocessing techniques such as activity labeling, class balancing, and concerning the number of instances. The proposed system describes how to identify and classify the daily activities of older people using a smartphone accelerometer to predict future activities. Experimental results indicate that the highest accuracy rate of 93.16% has been achieved by using the J48 Decision Tree algorithm. Apart from the proposed method, we analyzed the results by using various classifiers such as Naïve Bays (NB), Random Forest (RF), and Multilayer Perceptron (MLP). In the future, various other human activities like opening and closing the door, watching TV, and sleeping can also be considered for the evaluation of the proposed model.

Full Text

Author Biography

Abdul Haleem Butt, Department of Creative Technologies, Faculty of Computing & AI, Air University, Islamabad

Dr. Abdul Haleem Butt is an Assistant Professor at Air University, Islamabad. His research interests include Image Processing, and Artificial Intelligence.


Sri Harsha, N. C., Anudeep, Y., Vikash, K., & Ratnam, D. V. “Performance Analysis of Machine Learning Algorithms for Smartphone-Based Human Activity Recognition” “Wireless Personal Communications" 2021, 121(1), 381-398.

Le, H. L., Nguyen, D. N., & Nguyen, H. N. “The Novel Method of Pedestrian Fall Detection Based on PSO and RF Using Accelerometer Data” “International Conference on System Science and Engineering (ICSSE)” 2021, 111-115.

Koutli, M., Theologou, N., Tryferidis, A., & Tzovaras, D. “Abnormal Behavior Detection for elderly people living alone leveraging IoT sensors” “IEEE 19th International Conference on Bioinformatics and Bioengineering (BIBE)” 2019, 922-926.

Montero Quispe, K. G., Sousa Lima, W., Macêdo Batista, D., & Souto, E. “MBOSS: A symbolic representation of human activity recognition using mobile sensors” “Sensors” 2018, 18(12), 4354.

Anguita, D., Ghio, A., Oneto, L., Parra, X., & Reyes-Ortiz, J. L. “Human activity recognition on smartphones using a multiclass hardware-friendly support vector machine” “International workshop on ambient assisted living” 2012, 216-223.

Ravi, N., Dandekar, N., Mysore, P., & Littman, M. L. “Activity recognition from accelerometer data” “Aaai” 2005, Vol. 5, 1541-1546.

Chatterjee, S., Dutta, K., Xie, H., Byun, J., Pottathil, A., & Moore, M. “Persuasive and pervasive sensing: A new frontier to monitor, track and assist older adults suffering from type-2 diabetes” “46th Hawaii international conference on system sciences” 2013, 2636-2645.

Wang, J., Cheng, Z., Zhang, M., Zhou, Y., & Jing, L. “Design of a situation-aware system for abnormal activity detection of elderly people” “In International Conference on Active Media Technology” 2012, 561-571.

Ni, Q., Garcia Hernando, A. B., la Cruz, D., & Pau, I. “The elderly’s independent living in smart homes: A characterization of activities and sensing infrastructure survey to facilitate services development” “Sensors” 2015, 15(5), 11312-11362.

Preece, S. J., Goulermas, J. Y., Kenney, L. P., Howard, D., Meijer, K., & Crompton, R. “Activity identification using body-mounted sensors—a review of classification techniques” “Physiological measurement” 2009, 30(4), R1.

Van Kasteren, T. L. M., Englebienne, G., & Kröse, B. J. “An activity monitoring system for elderly care using generative and discriminative models” “Personal and ubiquitous computing” 2010, 14(6), 489-498.

Özdemir, A. T., & Barshan, B. “Detecting falls with wearable sensors using machine learning techniques” “Sensors” 2014, 14(6), 10691-10708.

Vavoulas, G., Pediaditis, M., Spanakis, E. G., & Tsiknakis, M. “The MobiFall dataset: An initial evaluation of fall detection algorithms using smartphones” “In 13th IEEE International Conference on Bioinformatics and BioEngineering” 2013, 1-4.

Casale, P., Pujol, O., & Radeva, P. “Human activity recognition from accelerometer data using a wearable device” “In Iberian conference on pattern recognition and image analysis” 2011, 289-296.

Zia, S., Khan, A. N., Zaidi, K. S., & Ali, S. E. “Detection of Generalized Tonic-Clonic Seizures and fall in Unconstraint Environment Using Smartphone Accelerometer” “IEEE Access” 2021, 9, 39432-39443.

Sayem, F. R., Sheikh, M. M., & Ahad, M. A. R. “Feature-based Method for Nurse Care Complex Activity Recognition from Accelerometer Sensor” “In Adjunct Proceedings of the 2021 ACM International Joint Conference on Pervasive and Ubiquitous Computing and Proceedings of the 2021 ACM International Symposium on Wearable Computers” 2021, 446-451.

Mekruksavanich, S., & Jitpattanakul, A. “Lstm networks using smartphone data for sensor-based human activity recognition in smart homes” “Sensors” 2021, 21(5), 1636.

Kadhum, A. A., Al-Libawy, H., & Hussein, E. A. “An accurate fall detection system for elderly people using smartphone inertial sensors” “Journal of Physics Conference Series” 2020, Vol. 1530, No. 1, 012102.

Bayat, A., Pomplun, M., & Tran, D. A. “A study on human activity recognition using accelerometer data from smartphones” “Procedia Computer Science” 2014, 34, 450-457.

Porwal, S., Singh, S., Yadav, N., & Garg, D. “Review Paper of Human Activity Recognition using Smartphone” “5th International Conference on Trends in Electronics and Informatics (ICOEI)” 2021, 939-946.




How to Cite

Khan, M. I., Imran, A., Butt, A. H., & Butt, A. U. R. . (2021). Activity Detection of Elderly People Using Smartphone Accelerometer and Machine Learning Methods. International Journal of Innovations in Science & Technology, 3(4), 186–197. Retrieved from