Stress-ViT: In-Ear Plethysmography for Mental Stress Classification with Vision Transformer

Authors:

Abstract
Stressful situations have a significant impact on individuals’ well-being, necessitating prompt stress diagnosis to mitigate potential long-term harm. This paper introduces an innovative in-ear photoplethysmography (PPG) device for detecting mental stress. The experiment was conducted to collect raw PPG and tri-axis acceleration signals from 15 participants through stress induction protocols, including the Stroop-color-word interference test and mental arithmetic calculations. Preprocessing techniques, such as bandpass filtering and motion artifact cancellation, were employed to address physiological and motion-related artifacts. The Short-Time Fourier Transform (STFT) was utilized to convert the filtered PPG signals into spectrograms, representing time-frequency images. Leveraging the Vision Transformer (ViT) model, renowned for image classification, the PPG signals were classified into distinct stress levels using fixed-size overlapping patches. Comprehensive experiments were conducted to compare the proposed ViT classifier with other pretrained CNN methods, demonstrating its superior performance with an average accuracy of 91.98%, recall of 91.97%, and precision of 92.02%. Integrating the in-ear PPG sensor with the ViT model proves to be a promising approach for diagnosing mental stress. The proposed in-ear PPG with high accuracy and a convenient design make it suitable for everyday stress assessment, thereby enhancing its potential as a valuable tool.

This publication has 21 references indexed in Scilit: