Logo image
NEUROFUSIONGPT: a multimodal transformer framework for stress-level classification via cross-attention fusion of EEG and ECG signals
Thesis   Open access

NEUROFUSIONGPT: a multimodal transformer framework for stress-level classification via cross-attention fusion of EEG and ECG signals

Bindu Chandra Shekar Reddy
California State University, Sacramento
Master of Science (MS), California State University, Sacramento
10/20/2026
Handle:
https://hdl.handle.net/20.500.12741/rep:14490

Abstract

Deep learning Health monitoring Artificial intelligence Multimodal learning Transformer models Machine Learning
Psychological stress is a pervasive health concern linked to cardiovascular disease, cognitive impairment, and mental health disorders. Accurate, automated stress assessment from physiological signals can enable timely interventions and continuous mental wellness monitoring. However, existing approaches often rely on a single biosignal modality, failing to capture the rich interplay between the central and autonomic nervous systems that characterizes the stress response. This project presents NeuroFusionGPT, a multimodal deep learning framework that fuses electroencephalogram (EEG) and electrocardiogram (ECG) signals through a bidirectional cross-attention mechanism to classify five stress levels: Calm, Mild Stress, Moderate Stress, High Stress, and Severe Stress. The proposed architecture employs a Transformer encoder for EEG data, treating the 16 EEG channels as a sequence of tokens with sinusoidal positional encoding to capture inter-channel dependencies. ECG data, represented as a 187-dimensional feature vector, is processed through a multi-layer perceptron (MLP) with batch normalization. Both modality encoders produce 128-dimensional embeddings that are fused via a bidirectional cross-attention module, where EEG attends to ECG and ECG attends to EEG, enabling the model to learn complementary brain–heart coupling patterns. The fused representation is classified by a two-layer MLP head. Training employs focal loss with inverse-frequency class weights to address severe class imbalance, the AdamW optimizer with learning rate reduction on plateau, and early stopping on the validation macro F1-score. The framework was trained and evaluated on the Bangalore EEG Epilepsy Dataset (BEED) for EEG features and a publicly available ECG stress dataset, with the ECG stress labels serving as the unified classification target. Experimental results demonstrate that the fusion model achieves a test accuracy of 94.54%, balanced accuracy of 91.93%, and macro F1-score of 0.8052 over 50 training epochs with the best model selected at epoch 45. Per-class analysis reveals strong performance on Calm and Severe Stress classes, with lower performance on minority classes Mild Stress and High Stress, reflecting the inherent class imbalance. An optional application-layer integration with a large language model generates personalized wellness feedback from the model’s predictions.
pdf
ChandraShekarReddyBindu_Spring2026714.78 kBDownloadView
Text Project Open Access

Metrics

8 File views/ downloads
4 Record Views

Details

Logo image