2D-CNN-GACL-ECGNet graph attention: a robust framework for electrocardiogram-based stress detection
International Journal of Artificial Intelligence
Abstract
Early detection of cardiovascular diseases (CVDs) via electrocardiogram (ECG) classification during physiological stress is critical and remains challenging due to stress-induced morphological variability, noise from ambulatory settings, and inter-class ambiguities. Existing models, such as 1D signal-based models with convolutional neural networks (CNNs) and graph convolutional networks (GCNs), struggle to adapt to dynamic stress conditions and generate interpretable insights. In response, we propose 2D CNN and graph attention network (GAT) for optimizer. The model 2D-CNN and GACL-ECG-Net, an innovative framework integrating GATs with adaptive contrastive learning (ACL) and morpho-temporal graph construction. Key innovations include 2D-CNN denoising, 2D transformation, dynamic morpho-temporal graphs modeling ECG beats as nodes with hybrid edges (70% morphological similarity, 30% temporal proximity), and stress-adaptive contrastive loss with learnable margins on stress-conditioned labels, reducing class ambiguity by 18%. Multi-head attention mechanisms provide interpretable heatmaps aligned with cardiologist annotations (κ =0.82) and are evaluated using Massachusetts Institute of Technology-Beth Israel Hospital (MIT-BIH) arrhythmia database, wearable stress and affect detection (WESAD) dataset for emotional stress, and stress at work, knowledge work (SWELL-KW) dataset for cognitive stress. 2D-CNN-GACL-ECG-Net achieves state-of-the-art performance with 98.7% F1-score (MIT-BIH), 94.2% (WESAD), and 92.8% (SWELL-KW), outperforming CNN-bidirectional long short-term memory (BiLSTM) and GCN baselines by 95%. The framework is computationally efficient and clinically validated for wearable health monitoring.
Discover Our Library
Embark on a journey through our expansive collection of articles and let curiosity lead your path to innovation.





