Stress Classification from ECG Signals Using Vision Transformer
Not on the map. Why?
Abstract (arXiv)
Vision Transformers have shown tremendous success in numerous computer vision applications; however, they have not been exploited for stress assessment using physiological signals such as Electrocardiogram (ECG). In order to get the maximum benefit from the vision transformer for multilevel stress assessment, in this paper, we transform the raw ECG data into 2D spectrograms using short time Fourier transform (STFT). These spectrograms are divided into patches for feeding to the transformer encoder. We also perform experiments with 1D CNN and ResNet-18 (CNN model). We perform leave-onesubject-out cross validation (LOSOCV) experiments on WESAD and Ryerson Multimedia Lab (RML) dataset. One of the biggest challenges of LOSOCV based experiments is to tackle the problem of intersubject variability. In this research, we address the issue of intersubject variability and show our success using 2D spectrograms and the attention mechanism of transformer. Experiments show that vision transformer handles the effect of intersubject variability much better than CNN-based models and beats all previous state-of-the-art methods by a considerable margin. Moreover, our method is end-to-end, does not require handcrafted features, and can learn robust representations. The proposed method achieved 71.01% and 76.7% accuracies with RML dataset and WESAD dataset respectively for three class classification and 88.3% for binary classification on WESAD.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 13 of its 38 references that are in the map. First posted on arXiv 19 Mar 2026.
Builds on
13 of 38 references.
References · 13
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 260
- 2020Self-supervised ECG Representation Learning for Emotion Recognitioncited by 99
- 2021Delving Deep into the Generalization of Vision Transformers under Distribution Shiftscited by 85
- 2021A Transformer Architecture for Stress Detection from ECGcited by 27
- 2022Transformer-Based Self-Supervised Learning for Emotion Recognitioncited by 16
- 2022A Survey on Physiological Signal Based Emotion Recognitioncited by 12
- 2017DeepBreath: Deep Learning of Breathing Patterns for Automatic Stress Recognition using Low-Cost Thermal Imaging in Unconstrained Settingscited by 9
- 2021StressNAS: Affect State and Stress Detection Using Neural Architecture Searchcited by 7
- 2020Multi-level Stress Assessment Using Multi-domain Fusion of ECG Signalcited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.