Mental Stress Classification Based on a Support Vector Machine and Naive Bayes Using Electrocardiogram Signals

Sensors (Basel). 2021 Nov 27;21(23):7916. doi: 10.3390/s21237916.

Abstract

Examining mental health is crucial for preventing mental illnesses such as depression. This study presents a method for classifying electrocardiogram (ECG) data into four emotional states according to the stress levels using one-against-all and naive Bayes algorithms of a support vector machine. The stress classification criteria were determined by calculating the average values of the R-S peak, R-R interval, and Q-T interval of the ECG data to improve the stress classification accuracy. For the performance evaluation of the stress classification model, confusion matrix, receiver operating characteristic (ROC) curve, and minimum classification error were used. The average accuracy of the stress classification was 97.6%. The proposed model improved the accuracy by 8.7% compared to the previous stress classification algorithm. Quantifying the stress signals experienced by people can facilitate a more effective management of their mental state.

Keywords: electrocardiogram; naive Bayes; support vector machine.

MeSH terms

  • Algorithms
  • Bayes Theorem
  • Electrocardiography*
  • Humans
  • ROC Curve
  • Support Vector Machine*