Method for identifying activities with accelerometer and magnetometer of mobile devices: A proposal for analyzing the collected data

Authors

DOI:

https://doi.org/10.25746/ruiips.v11.i3.32366

Keywords:

Activities of Daily Living, Accelerometer and Magnetometer, Artificial Intelligence, Health and Physical Exercise, Sensors, Data Fusion and Classification and Data Processing

Abstract

INTRODUCTION:

The detection of physical activities through the fusion of accelerometer and magnetometer data from mobile devices is of great importance in various applications such as health monitoring, fitness tracking, and movement analysis. The objective of this study is to merge data related to five physical activities, such as going up stairs, down stairs, walking, standing still, and running, using data acquired with the accelerometer and magnetometer in 5-second stretches for the extraction of characteristics of the captured signals and identification of different activities using artificial intelligence methods.

 


METHODS:

The architecture for the analysis consists of several phases, such as data acquisition, data processing, data cleaning, feature extraction, fusion of the processed data, and application of artificial intelligence methods, such as Adaboost, Naive Bayes, Random Forest, Support Vector Machine (SVM), Neural Networks and CN2 Rule Induction. After calculating the peaks of the signals, the methods were applied based on 15 characteristics of each sensor, such as mean, standard deviation, variance, maximum, minimum, and median of the raw signal, five greatest distances between the highest peaks, and mean, standard deviation, variance and median of the peaks. Artificial intelligence methods were applied with the Orange framework. Stratified 10-fold Cross-validation was applied to validate the models used.

 


RESULTS:

The results reported by the different methods showed that the Neural Networks method presented an efficiency of 90.14%, an F1-score of 90.13%, a precision of 90.18%, and a Recall of 90.14%. In turn, the Random Forest method reported an efficiency of 90.40%, an F1-score of 90.40%, a precision of 90.44%, and a Recall of 90.40%. Then, the Naive Bayes method presented an efficiency of 80.71%, an F1-score of 80.08%, a precision of 80.54%, and a Recall of 80.71%. Otherwise, the CN2 rule inducer method presents an efficiency of 82.18%, an F1-score of 82.37%, a precision of 82.62%, and a Recall of 82.18%. Next, the Adaboost method reports an effectiveness of 86.28%, an F1-score of 86.24%, an accuracy of 86.21%, and a recall of 86.28%. Finally, the SVM method presents an efficiency of 61.73%, an F1-score of 60.59%, a precision of 64.03%, and a Recall of 61.73%.

 


DISCUSSION:

Thus, of the different methods presented, the method that presents the best results is the Random Forest method, and the second best method is the Adaboost method, but it requires more processing capacity. Data fusion proved effective with these 2 sensors to improve results. Still, a larger dataset should be used to overcome some problems in recognition due to the variety of data.

 


CONCLUSION:

In summary, the fusion of accelerometer and magnetometer data in mobile devices plays a key role in the accurate and versatile detection of physical activities. This approach improves the quality of collected information, allows for more advanced analysis, and provides a solid foundation for applications related to health, wellness, and physical activity monitoring.

Published

2023-12-31

How to Cite

Pires, I. M., Coelho, P. J., & Gonçalves, N. J. (2023). Method for identifying activities with accelerometer and magnetometer of mobile devices: A proposal for analyzing the collected data. Revista Da UI_IPSantarém, 11(3), 33–35. https://doi.org/10.25746/ruiips.v11.i3.32366