2D-CNN-GACL-ECGNet graph attention: a robust framework for electrocardiogram-based stress detection
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.
Keywords
Adaptive contrastive learning; ECG classification; Fusion beats; Graph neural network; Stress-awareness learning
Full Text:
PDFDOI: http://doi.org/10.11591/ijai.v15.i2.pp1529-1538
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 P. Kavitha, L. Shakkeera

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
IAES International Journal of Artificial Intelligence (IJ-AI)
ISSN/e-ISSN 2089-4872/2252-8938
This journal is published by the Institute of Advanced Engineering and Science (IAES).