arrow
Return

Real-time stress detection from smartphone sensor data using genetic algorithm-based feature subset optimization and k-nearest neighbor algorithm

delete2023-05-08
delete7
PRE
AI
E
Ensar Arif Sağbaş *
S
Serdar Korukoğlu
S
Serkan Ballı
DOI:10.1007/s11042-023-15706-1delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Stress is the mood of pressure and tension that a person feels. Usually, when the pressure on an individual decrease, the body begins to stabilize the state and calm down. Hence, stress detection in real-time is a critical duty in medical systems. However, acquiring physiological data requires additional equipment and is difficult for users to carry with them at all times. Depending on this problem, it is possible to detect stress through behavioral data. Smartphones are devices that provide various behavioral data that people use constantly throughout the day. In this study, a real-time stress detection system based on soft keyboard typing behaviors was developed with the data obtained from linear acceleration, gravity, gyroscope sensors, and a touchscreen panel of the smartphone. 172 attributes were extracted from the raw sensor data. However, such a high number of dimensions could negatively affect the performance of machine learning algorithms. To address this problem, the number of features was reduced by various techniques such as filter-based methods and standard binary-code chromosome Genetic Algorithm as a contribution to this study. Then, writing behaviors were classified with the commonly used machine learning methods namely, C4.5, kNN, and Bayesian Networks. As a result of the experiments, the best classification was obtained from the kNN method using the features selected by the Genetic Algorithm with a classification accuracy of 89.61% and F-Measure of 0.9052. Another contribution of this study is that a mobile service and a relaxation application were developed for stress detection and to reduce stress levels using the selected feature vector.
Keywords:
Stress detection
Sensor fusion data
Genetic algorithm
Real-time application
Feature selection

Journal

Multimedia Tools and Applications cover
Multimedia Tools and Applications
IF:
3
Papers:
1.9W
Citations:
3.2W

Organization

M
Mugla Sitki Kocman University
Scholars:
1.9K
Papers: 1.7K
Citations: 11
E
Ege University
Scholars:
8.5K
Papers: 6.4K
Citations: 5.8K
M
Mehmet Akif Ersoy University
Scholars:
754
Papers: 856
Citations: 2
researcher View more organizations