Abstract
Electrocardiography (ECG) classification is a critical task in cardiac health monitoring. Traditional deep learning models often treat time and spectral domains independently or rely on fixed frequency filters, potentially losing vital diagnostic information. This paper presents the Spectral Cross-domain Neural Network (SCDNN), which incorporates a Soft-adaptive Threshold Spectral Enhancement (SATSE) block to enable learnable, cross-domain feature fusion. By replacing rigid filters with trainable soft-thresholding, SCDNN achieves state-of-the-art performance on major benchmarks like PTB-XL and CPSC2018 while maintaining high computational efficiency.
Introduction
ECG signals are multi-variable time series that contain rich information in both time and frequency domains. While CNNs and LSTMs have improved automated classification, they often fail to fully exploit the relationship between these domains. Conventional spectral analysis uses "hard" thresholds (e.g., low-pass filters) that can destroy subtle high-frequency patterns necessary for specific diagnoses. SCDNN addresses this by introducing an internal communication mechanism where the network itself determines the importance of various frequency bands through learnable parameters.
Methods
The SCDNN architecture is built upon a ResNet18 backbone, modified with specialized SATSE blocks within each residual stage.
The SATSE block functions by transforming time-domain features into the spectral domain via Fast Fourier Transform (FFT). It then applies a soft-adaptive thresholding mechanism using a modified Sigmoid function with trainable parameters. This allows the model to adaptively filter frequency bands based on the specific diagnostic task. Filtered features are processed through a trainable weight matrix to capture inter-frequency dependencies and then converted back to the time domain via Inverse FFT (IFFT) for residual addition. This design allows the model to refine its understanding of the heartbeat's shape using insights about its underlying rhythms.
Results
The SCDNN was evaluated on the PTB-XL (21,837 records) and CPSC2018 (6,877 records) datasets.
SCDNN consistently outperformed existing models, reaching an accuracy of 0.835 on PTB-XL and 0.859 on CPSC2018. The model also achieved high F1-scores (0.792 on PTB-XL), indicating a robust balance between precision and recall. Crucially, SCDNN demonstrated exceptional efficiency, recording the second-lowest inference time among compared models. This high performance combined with low latency highlights its potential for deployment in real-time wearable monitoring devices.
Conclusion
The Spectral Cross-domain Neural Network successfully bridges the gap between time and frequency domain analysis in ECG classification. By utilizing trainable soft filters, the model preserves critical signal information that fixed filters might discard. Future research will focus on generalizing this cross-domain architecture to other time-series domains and exploring alternative spectral transformations beyond the standard Fourier Transform.
Summary updated