Feature Selection Optimization using Binary Particle Swarm Optimization in Smartphone-based Real Human Activity Recognition

Authors

  • Ikrahmi Ikrahmi Universitas Amikom Yogyakarta, Indonesia
  • Ema Utami Universitas Amikom Yogyakarta, Indonesia

DOI:

https://doi.org/10.70609/gtech.v9i3.6949

Keywords:

Binary PSO, Feature Selection, Human Activity Recognition, Machine Learning, Random Forest

Abstract

Feature selection is a critical step in enhancing the accuracy and efficiency of machine learning models, particularly in the field of human activity recognition (HAR) using smartphone sensor data. This research explores the use of Binary Particle Swarm Optimization (BPSO) to reduce the dataset's dimensionality while retaining essential information. Out of 90 initial features, BPSO successfully selected 34 optimal features. These features were then used to train various machine learning models, achieving exceptional classification performance. The Random Forest algorithm achieved the highest accuracy at 99,92%, followed by K-Nearest Neighbour (KNN) at 99,08%, Support Vector Machine (SVM) at 98,68%, Multi-Layer Perceptron (MLP) at 96,01%, Decision Tree (DT) at 95,07%, and Naïve Bayes (NB) at 68,69%. The accuracy of all these algorithms exceeded the accuracy of the same algorithms without PSO-based optimization, as reported in previous studies used as baselines, except for Naive Bayes. These findings highlight the effectiveness of BPSO in feature selection for HAR tasks and its capability to improve machine learning model performance in practical applications.

References

Al-qaness, M. A. A., Helmi, A. M., Dahou, A., & Elaziz, M. A. (2022). The Applications of Metaheuristics for Human Activity Recognition and Fall Detection Using Wearable Sensors: A Comprehensive Analysis. Biosensors, 12(10), 821. https://doi.org/10.3390/bios12100821

Ang, K. M., Chow, C. E., El-Kenawy, E.-S. M., Abdelhamid, A. A., Ibrahim, A., Karim, F. K., Khafaga, D. S., Tiang, S. S., & Lim, W. H. (2022). A Modified Particle Swarm Optimization Algorithm for Optimizing Artificial Neural Network in Classification Tasks. Processes, 10(12), 2579. https://doi.org/10.3390/pr10122579

Angerbauer, S., Palmanshofer, A., Selinger, S., & Kurz, M. (2021). Comparing Human Activity Recognition Models Based on Complexity and Resource Usage. Applied Sciences, 11(18), 8473. https://doi.org/10.3390/app11188473

Arifuddin, A., Buana, G. S., Vinarti, R. A., & Djunaidy, A. (2024). Performance Comparison of Decision Tree and Support Vector Machine Algorithms for Heart Failure Prediction. Procedia Computer Science, 234, 628–636.

Arshad, M. H., Bilal, M., & Gani, A. (2022). Human Activity Recognition: Review, Taxonomy and Open Challenges. Sensors, 22(17), 6463. https://doi.org/10.3390/s22176463

Bachtiar, F. A., Arifien, Z., Putra, A. R., & Akbar, P. I. (2021). Feature Selection with Particle Swarm Optimization for Human Activity Recognition Using Learning Vector Quantization. 6th International Conference on Sustainable Information Engineering and Technology 2021, 132–138. https://doi.org/10.1145/3479645.3479693

Bamani, E., Nissinman, E., Meir, I., Koenigsberg, L., & Sintov, A. (2024). Ultra-Range Gesture Recognition using a web-camera in Human–Robot Interaction. Engineering Applications of Artificial Intelligence, 132, 108443. https://doi.org/10.1016/j.engappai.2024.108443

Cunningham, P., & Delany, S. J. (2022). k-Nearest Neighbour Classifiers - A Tutorial. ACM Computing Surveys, 54(6), 1–25. https://doi.org/10.1145/3459665

Dentamaro, V., Gattulli, V., Impedovo, D., & Manca, F. (2024). Human activity recognition with smartphone-integrated sensors: A survey. Expert Systems with Applications, 246, 123143. https://doi.org/10.1016/j.eswa.2024.123143

Garcia-Gonzalez, D., Rivero, D., Fernandez-Blanco, E., & Luaces, M. R. (2020). A Public Domain Dataset for Real-Life Human Activity Recognition Using Smartphone Sensors. Sensors, 20(8), 2200. https://doi.org/10.3390/s20082200

Garcia-Gonzalez, D., Rivero, D., Fernandez-Blanco, E., & Luaces, M. R. (2023a). Deep learning models for real-life human activity recognition from smartphone sensor data. Internet of Things, 24, 100925. https://doi.org/10.1016/j.iot.2023.100925

Garcia-Gonzalez, D., Rivero, D., Fernandez-Blanco, E., & Luaces, M. R. (2023b). New machine learning approaches for real-life human activity recognition using smartphone sensor-based data. Knowledge-Based Systems, 262, 110260. https://doi.org/10.1016/j.knosys.2023.110260

Gattulli, V., Impedovo, D., Pirlo, G., & Sarcinella, L. (2023). Human Activity Recognition for the Identification of Bullying and Cyberbullying Using Smartphone Sensors. Electronics, 12(2), 261. https://doi.org/10.3390/electronics12020261

Hairani, H., Saputro, K. E., & Fadli, S. (2020). K-means-SMOTE for handling class imbalance in the classification of diabetes with C4.5, SVM, and naive Bayes. Jurnal Teknologi Dan Sistem Komputer, 8(2), 89–93. https://doi.org/10.14710/jtsiskom.8.2.2020.89-93

Hikmayanti, H., Nurmasruriyah, A. F., Fauzi, A., Nurjanah, N., & Rani, A. N. (2024). Performance Comparison of Support Vector Machine Algorithm and Logistic Regression Algorithm. International Journal of Artificial Intelligence Research, 7(1.1).

Hu, Y. (2023). BSDGAN: Balancing Sensor Data Generative Adversarial Networks for Human Activity Recognition. 2023 International Joint Conference on Neural Networks (IJCNN), 1–8. https://doi.org/10.1109/IJCNN54540.2023.10191928

Hussain, A., Khan, S. U., Khan, N., Ullah, W., Alkhayyat, A., Alharbi, M., & Baik, S. W. (2024). Shots segmentation-based optimized dual-stream framework for robust human activity recognition in surveillance video. Alexandria Engineering Journal, 91, 632–647. https://doi.org/10.1016/j.aej.2023.11.017

Levasseur, G., Tang, K., & Bersini, H. (2025). Limits of speech in connected homes: Experimental comparison of self-reporting tools for human activity recognition. International Journal of Human-Computer Studies, 195, 103404. https://doi.org/10.1016/j.ijhcs.2024.103404

Mennella, C., Esposito, M., De Pietro, G., & Maniscalco, U. (2024). Promoting fairness in activity recognition algorithms for patient’s monitoring and evaluation systems in healthcare. Computers in Biology and Medicine, 179, 108826. https://doi.org/10.1016/j.compbiomed.2024.108826

Mînzu, V., Rusu, E., & Arama, I. (2022). Execution Time Decrease for Controllers Based on Adaptive Particle Swarm Optimization. Inventions, 8(1), 9. https://doi.org/10.3390/inventions8010009

Mohamed, E. S., Naqishbandi, T. A., Bukhari, S. A. C., Rauf, I., Sawrikar, V., & Hussain, A. (2023). A hybrid mental health prediction model using Support Vector Machine, Multilayer Perceptron, and Random Forest algorithms. Healthcare Analytics, 3, 100185. https://doi.org/10.1016/j.health.2023.100185

Munoz-Organero, M. (2019). Outlier Detection in Wearable Sensor Data for Human Activity Recognition (HAR) Based on DRNNs. IEEE Access, 7, 74422–74436. https://doi.org/10.1109/ACCESS.2019.2921096

Pisner, D. A., & Schnyer, D. M. (2020). Support vector machine. In Machine Learning (pp. 101–121). Elsevier. https://doi.org/10.1016/B978-0-12-815739-8.00006-7

Ray, S., Alshouiliy, K., & Agrawal, D. P. (2020). Dimensionality Reduction for Human Activity Recognition Using Google Colab. Information, 12(1), 6. https://doi.org/10.3390/info12010006

Salman, H. A., Kalakech, A., & Steiti, A. (2024). Random Forest Algorithm Overview. Babylonian Journal of Machine Learning, 2024, 69–79. https://doi.org/10.58496/BJML/2024/007

Sikder, N., Chowdhury, Md. S., Arif, A. S. M., & Nahid, A.-A. (2019). Human Activity Recognition Using Multichannel Convolutional Neural Network. 2019 5th International Conference on Advances in Electrical Engineering (ICAEE), 560–565. https://doi.org/10.1109/ICAEE48663.2019.8975649

Soleimani, E., & Nazerfard, E. (2021). Cross-subject transfer learning in human activity recognition systems using generative adversarial networks. Neurocomputing, 426, 26–34. https://doi.org/10.1016/j.neucom.2020.10.056

Soman, R., Boyer, A., Kim, J. M., & Peters, K. (2022). Particle Swarm Optimization Algorithm for Guided Waves Based Damage Localization Using Fiber Bragg Grating Sensors in Remote Configuration. Sensors, 22(16), 6000. https://doi.org/10.3390/s22166000

Yang, H., Pu, C., Wu, J., Wu, Y., & Xia, Y. (2023). Enhancing OLSR protocol in VANETs with multi-objective particle swarm optimization. Physica A: Statistical Mechanics and Its Applications, 614, 128570. https://doi.org/10.1016/j.physa.2023.128570

Yi, J., Yu, P., Huang, T., & Xu, Z. (2024). Optimization of Transformer Heart Disease Prediction Model Based on Particle Swarm Optimization Algorithm. 2024 6th International Conference on Frontier Technologies of Information and Computer (ICFTIC), 1109–1113. https://doi.org/10.1109/ICFTIC64248.2024.10913096

Zhang, Y., Yao, X., Fei, Q., & Chen, Z. (2023). Smartphone sensors‐based human activity recognition using feature selection and deep decision fusion. IET Cyber-Physical Systems: Theory & Applications, 8(2), 76–90. https://doi.org/10.1049/cps2.12045

Zhou, C., & Xiong, A. (2023). Fast Image Super-Resolution Using Particle Swarm Optimization-Based Convolutional Neural Networks. Sensors, 23(4), 1923. https://doi.org/10.3390/s23041923

Published

2025-07-02

How to Cite

Feature Selection Optimization using Binary Particle Swarm Optimization in Smartphone-based Real Human Activity Recognition. (2025). G-Tech: Jurnal Teknologi Terapan, 9(3), 1101-1112. https://doi.org/10.70609/gtech.v9i3.6949

Most read articles by the same author(s)