Skip to Content
TechnologiesTechnologies
  • Article
  • Open Access

1 March 2026

41 Pages

RhythmX™: An Interpretable Self-Supervised Contrastive Learning Framework for Heartbeat Classification

,
,
,
,
,
and
1
Center for Computing Research, Instituto Politécnico Nacional, Mexico City 07738, Mexico
2
Department of Computer Sciences, Bahria University, Lahore 54600, Pakistan
3
Faculty of Allied Health Sciences, Superior University, Lahore 54000, Pakistan
*
Author to whom correspondence should be addressed.

Abstract

Automated electrocardiogram (ECG) arrhythmia classification remains challenging due to signal noise, inter-patient variability, and limited annotated data, which constrain the generalization of supervised learning approaches. This study presents a self-supervised ECG representation learning framework that combines contrastive pretraining with ensemble-based supervised classification. A signal-to-noise ratio criterion is applied during self-supervised pretraining to stabilize contrastive optimization, while all extracted ECG beats, including noisy segments, are retained during downstream evaluation. The learned representations are classified using a hybrid ensemble composed of convolutional encoders and tree-based models. Model evaluation follows strict patient-level partitioning with stratified 10-fold cross-validation and bootstrap-based uncertainty estimation on a held-out test set. Under this evaluation protocol, the framework achieved high beat-level performance on curated datasets (internal and external). Class-wise performance shows precision and recall values between 0.99 and 0.999 across normal, supraventricular, ventricular, fusion, and paced beat categories. External validation is conducted on independent ECG cohorts, including PTB-XL, Chapman–Shaoxing, and INCART 12-lead datasets. On these datasets, the hybrid model attains macro-F1 scores ranging from 0.91 to 0.94, compared with standalone convolutional and handcrafted feature-based Random Forest classifiers evaluated under identical conditions. These results characterize the behavior of the proposed representation learning framework across heterogeneous patient populations and recording configurations.

1. Introduction

Cardiovascular diseases (CVDs) are the leading cause of mortality worldwide, accounting for about 17.9 million deaths each year [1]. The focus of electrocardiography (ECG) is on rhythm, arrhythmia, and ischemia. The rapid proliferation of wearables and handheld ECG monitors, as well as large clinical databases, has added complexity in interpreting the ECG [2], bringing opportunity for early intervention but also difficulty in scaling with more sophisticated interpretation. Traditional automatic algorithms are mostly feature-based, where time–frequency–morphology features (e.g., wavelet coefficients, QRS complex duration (QRS duration), RR intervals) that experts designed are input to classifiers such as SVMs or Random Forests [3].
While interpretable, these engineered methods do not capture subtle ECG patterns well and perform poorly on noisy, imbalanced, or patient-specific data [4]. Convolutional neural networks (CNNs) can extract hierarchical features represented as either an ECG signal or an image [5,6]. However, these methods often function as black boxes and require large, well-curated labeled datasets, and they struggle to reliably identify low-prevalence arrhythmia subclasses in multi-class ECG heartbeat classification tasks [7,8]. However, the automated pipeline is facing challenges in coping with the rapid increase in ECG data from wearables, telemetry, and hospitals [9,10]. Reliable identification of multiclass arrhythmias is essential in acute intervention, long-term risk, stratification, and individualized therapy [11]. Most of the previous works have concentrated on binary classification tasks, which still lack interpretable approaches for ECG patterns across the entire spectrum, traces, scale, and fully subtle ECG [12].
The features engineered are not always general in nature, and deep nets are not interpretable well and require a lot of annotated data [13,14,15]. To address these limitations, this study explores the integration of self-supervised representation learning on large collections of unlabeled ECG recordings with interpretable, clinician-oriented classification models. Prior work has demonstrated the potential of clinician-validated signal signatures for ECG analysis; however, their combination with self-supervised feature learning for scalable heartbeat classification remains insufficiently investigated. Self-supervised learning (SSL) utilizes unsupervised data to learn generalizable features with contrastive objectives, such as SimCLR [2,13], to minimize annotation needs and enhance downstream performance. The current SSL models for ECG often lack the introduction of domain knowledge or interpretability, which is crucial for clinical trust [4,12], and most studies are binary-oriented, unable to consider multi-class complexity in the real world.
Recent studies have demonstrated the potential of self-supervised representation learning for ECG analysis to improve generalization and data efficiency [15]. However, most existing approaches emphasize representation learning in isolation and offer limited integration with clinically interpretable classification frameworks. Motivated by these gaps, this study aims to develop a clinically reliable and generalizable framework for automated multiclass ECG arrhythmia classification by addressing persistent limitations related to robustness, interpretability, and consistency across heterogeneous datasets, with the goal of supporting dependable ECG-based decision support for real-world clinical deployment.
Advances in interpretable multimodal learning for human–computer interaction and rehabilitation further highlight the benefits of combining structured priors with deep representations. Analogous to topology-aware graph learning for gesture rehabilitation, ECG interpretation benefits from integrating physiologically informed representations with explainable decision logic.
Prior work on automated ECG and heartbeat classification has explored deep learning, feature-based, and hybrid approaches [16]. Convolutional neural networks, transformer-based architectures, and image-based ECG representations have shown strong performance, but often require large labeled datasets and provide limited interpretability. While self-supervised learning has emerged as a means to leverage unlabeled ECG data, its coupling with transparent and clinically interpretable classifiers remains underexplored, motivating the objectives of the present study. Earlier models, including Random Forests and backpropagation networks, exhibited limited accuracy and sensitivity to noise [16], whereas subsequent architectures such as CNNs, Extreme Learning Machines (ELMs), and hybrid CNN–ELM frameworks combined with wavelet-based self-adaptive thresholding have improved robustness under noisy conditions [16].
Transforming one-dimensional ECG signals into two-dimensional time–frequency or image-based representations has been shown to reduce sensitivity to R-peak detection errors and to enable spatial feature learning using convolutional neural networks. In particular, wavelet-based representations capture joint spectral–temporal characteristics, allowing 2D CNNs to learn discriminative morphological and rhythm-related patterns without explicit peak localization [17]. More recently, ECG foundation models pretrained on heterogeneous datasets using transformer architectures and contrastive learning have demonstrated improved data efficiency and zero-shot generalization [18].
Beyond short-duration signals, image-based ECG representations have also been explored for long-term ambulatory recordings, particularly in Holter monitoring. ECG Holter devices remain widely used for continuous 24–72 h cardiac monitoring, and image modalities facilitate efficient visual review of extended recordings [2]. Deep learning applied to ECG images has shown promise for detecting atrial fibrillation and other arrhythmias in long-duration data; for example, recent work using ECHOView-derived Holter ECG images and deep transfer learning highlights the growing interest in scalable image-based ECG analysis for long-term rhythm evaluation [19].
Artifact detection has progressed from simple filtering to real-time ML frameworks [20]. Though these frameworks employ taxonomy-based filtering systems, their interpretability and speed are still constrained. Self-supervised learning may lessen the need for labeled data to some extent, but it is limited to unseen classes. Multimodal studies, such as Multimodal ECG-Text Study (METS), align ECG with textual reports using frozen language models [21]. For fetal ECG, 1D-CycleGANs outperform adaptive filters in isolating fetal morphology [22].
Multi-lead ECG analysis has advanced from intra-lead models to frameworks that capture inter-lead dependencies [9]. The Dilated Kernel Residual (DKR) block incorporates Grad-CAM for interpretability while remaining robust to noise [9]. Using age-specific criteria for normal, borderline, and pathological classification [23] is useful in Pediatric ECG. Bimodal CNNs that merge grayscale images with scalograms using Inception-v3 increase accuracy by fusing spatial and frequency-domain features [24].
Accelerated ECG classification relies on lightweight DL models like Mamba-RAYOLO, which combines RepVGG with routing attention for increased accuracy [8]. For CNN-Long Short-Term Memory (LSTM) hybrids, class imbalance is addressed using augmentation techniques like Synthetic Minority Oversampling Technique (SMOTE) or Generative Adversarial Networks (GANs), but is limited due to higher computational costs [12]. Future multimodal diagnostics may integrate retinal and brain imaging [25]. Time–frequency ECG representations utilizing pretrained ResNet50 are valuable for real-time detection [10], and for augmentation, diffusion models generate synthetic ECGs using Gramian Angular Fields [26].
Attention mechanisms for arrhythmia detection focus on enhanced feature fusion [27] and the optimization of lightweight CNNs for IoT-based ECG remote monitoring [28,29]. Even with complex challenges like optimizing electrode placement and configuration, ECG images still demonstrate diagnostic power when analyzed using 2D CNN-based deep learning methods on ECG images [30]. The holistic approach to advanced methods for ECG-based arrhythmia detection combines self-supervised deep learning with feature engineering to improve interpretability and focus on efficiency and robustness in multi-class and multi-lead arrangements [16,30].

2. Materials and Methods

The overall workflow of the proposed framework is illustrated in Figure 1 and consists of a sequence of well-defined stages. First, ECG data are collected from publicly available sources and organized into heartbeat-level samples. Second, standard preprocessing steps are applied to normalize the signals and prepare them for downstream analysis. Third, feature learning is performed using self-supervised contrastive representation learning on unlabeled ECG data to obtain informative embeddings. Fourth, these representations are used for supervised multiclass heartbeat classification through an interpretable ensemble-based classifier. Finally, model performance is evaluated under patient-level data splits using classification metrics, robustness analyses, and external validation datasets. Detailed descriptions of each stage are provided in the following subsections of the Section 2 and Supplementary Materials.
Figure 1. Electrocardiogram (ECG) image classification pipeline.
Cudaforests, sckit learn, and Rapids cuML libraries (2022) are used to train the Random Forests. ECG imaging processing includes OpenCV (v4.5), scikit-image (v0.18), with NumPy, Pandas, and PyTorch (v2.1.0)/TensorFlow (v2.13.0) used for datasets and handling data. For visualization and diagnostics, Matplotlib (v3.7.2) and Seaborn (v0.12.2) are used, along with Captum, tf-explain, SHAP, and DiCE for explainability. Experiments were monitored via Weights & Biases or TensorBoard to track progress, and reusability was controlled using Docker, Conda, Git repositories, and predefined seed values. The system supports deployment on on-premise GPUs and cloud services. Experiments were conducted using mixed-precision FP16 training along with RAPIDS-accelerated inference on an NVIDIA RTX 3080, an Intel Core i9 CPU, 64 GB RAM, and a 1 TB NVMe SSD platform. Hyperparameter tuning was performed using an expert-adjudication consensus approach. Clinical interpretability was validated by three cardiologists who independently interpreted all images in random order for short-axis series (n = 31). Fleiss’  κ was used to analyze robustness and consistency.

2.1. Dataset Description

This study integrates multiple publicly available ECG databases for model training, internal evaluation, and external validation. Owing to differences in lead configuration, sampling frequency, and annotation granularity across databases, all ECG recordings were standardized to a unified beat-level representation before analysis. The complete methodological pipeline operates exclusively at the single-heartbeat level, which directly corresponds to the analyses and results reported.
Model training and internal evaluation were performed using the MIT–BIH Arrhythmia Database [31,32]. This dataset consists of approximately 30 min ambulatory Holter recordings sampled at 360 Hz with two ECG leads per subject. Importantly, the MIT–BIH database provides expert-annotated beat-level labels, which were used directly without modification.
Heartbeats were extracted using the database-provided R-peak annotations. Each heartbeat was represented by a fixed temporal window of approximately 600 ms centered on the R-peak. After preprocessing and class harmonization, a total of 99,199 individual heartbeat samples were retained for training, cross-validation, and internal testing, distributed across six clinically relevant diagnostic classes. The heartbeat class taxonomy used throughout this study is summarized in Table 1. External validation is conducted on independent ECG cohorts, including 15 PTB-XL, Chapman–Shaoxing, and INCART 12-lead datasets [33,34,35].
Table 1. Heartbeat class definitions used for beat-level ECG classification.
For datasets providing beat-level annotations (MIT–BIH Arrhythmia Database and INCART), heartbeat labels were directly assigned using the original beat annotations supplied by the source databases. For datasets providing rhythm-level annotations only (PTB-XL and Chapman–Shaoxing), beat-level labels were derived by restricting analysis to rhythm-consistent segments and assigning beat labels that were physiologically compatible with the corresponding rhythm annotation. No manual relabeling or beat-type inference beyond the original database annotations was performed.
To avoid misclassification of clinically distinct beat types, only beat classes that are explicitly compatible with a given rhythm annotation were included for evaluation. Beats corresponding to ventricular ectopic, fusion, paced, or other morphologically distinct events were excluded from rhythm-only datasets unless explicitly annotated at the beat level. This strategy ensures consistency between the original annotation granularity of each dataset and the defined beat-level classification task, as shown in Table 2.
Table 2. Mapping between original dataset annotations and evaluated beat-level classes.
The MIT–BIH Arrhythmia Database does not define a standalone morphological abnormal (M) category. To enable a unified six-class taxonomy, the M class was constructed through an explicit and reproducible label-mapping procedure based on the original MIT–BIH beat symbols. Specifically, beats annotated as left bundle branch block (LBBB) and right bundle branch block (RBBB) were assigned to the M class, as these beats represent conduction-related morphological abnormalities rather than ectopic activity. Beat symbols corresponding to normal (N), supraventricular ectopic (S), ventricular ectopic (V), fusion (F), and paced or unclassifiable beats (Q) were retained in their respective categories and were not reassigned. No other beat types were included in the M class. Each heartbeat was mapped to exactly one diagnostic class using this deterministic rule, ensuring full reproducibility of the label construction process.
The resulting class-wise distribution for the primary dataset after preprocessing and harmonization is reported in Table 3. These counts correspond exactly to the beat-level samples used in the internal experiments and the results presented in this manuscript.
Table 3. Class-wise heartbeat distribution for the MIT–BIH Arrhythmia Database after preprocessing and harmonization.
External validation was conducted on three independent ECG databases with heterogeneous acquisition protocols and annotation schemes: the INCART 12-Lead Arrhythmia Database, PTB-XL, and the Chapman–Shaoxing and Ningbo database. INCART provides expert-annotated beat-level labels and was processed identically to the MIT–BIH dataset following the same preprocessing pipeline. In contrast, PTB-XL and Chapman–Shaoxing primarily provide rhythm-level diagnostic annotations; for these datasets, beat-level labels were derived by assigning the rhythm class to all beats within rhythm-consistent segments using validated R-peak–based segmentation. To minimize label ambiguity, only recordings with stable rhythm annotations were included. No manual re-annotation was performed, and all heartbeat labels were obtained directly from the original databases and their expert annotation protocols, ensuring reproducibility and traceability.
To accommodate heterogeneous acquisition settings, each ECG lead was processed independently using a unified heartbeat extraction and preprocessing pipeline for both two-lead and twelve-lead recordings. Differences in sampling frequency across databases were resolved by resampling to a common target rate prior to beat extraction and image generation. During self-supervised representation learning only, a signal-to-noise ratio (SNR) criterion was applied to exclude severely corrupted beats that could destabilize the contrastive objective; this criterion was not applied during supervised training, validation, testing, or inference. All heartbeat images were resized to 256 × 256 pixels, converted to grayscale, and stored in PNG format to avoid compression artifacts.
For the primary MIT–BIH dataset, a fixed patient-level split was additionally defined to support supervised training, hyperparameter tuning, and final performance reporting, and was used alongside patient-level cross-validation, as described in the evaluation protocol in Table 4.
Table 4. Patient-level data split applied to the primary MIT–BIH dataset for supervised training and evaluation.
Patient identifiers were preserved throughout preprocessing to enforce strict patient-level separation during training, validation, and testing, as detailed in the Section 2.7.

ECG-to-Image Temporal and Amplitude Mapping

Each heartbeat image represents a fixed-duration 600 ms ECG segment centered on the detected R-peak − 300  ms to + 300  ms relative to the R-wave, selected to capture dominant beat-centered morphological features while limiting overlap with adjacent cardiac cycles under both normal and arrhythmic conditions. This window is not intended to encompass the complete QT interval in all pathological cases, but to provide a consistent temporal context for representation learning across heterogeneous datasets. All ECG signals were resampled to a common sampling frequency of 360 Hz using band-limited interpolation, yielding exactly 216 samples per heartbeat, 0.6  s × 360 Hz, and ensuring temporal consistency across datasets originally acquired at different sampling rates, like 257 Hz or 500 Hz.
For image construction, the one-dimensional ECG waveform was plotted as a continuous trace on a fixed Cartesian grid, with time mapped linearly to the horizontal axis over the 600 ms window and voltage amplitude to the vertical axis. Signal amplitudes were normalized on a per-beat basis using min–max scaling within the extracted segment and linearly mapped to grayscale intensities in the range [ 0 ,   255 ] , without nonlinear contrast enhancement or histogram equalization. The waveform was rasterized into a 256 × 256 pixel image with uniform line thickness and zero-valued background pixels, preserving relative temporal spacing and beat-level morphological characteristics. This deterministic transformation consistently preserves temporal scale and waveform morphology across all generated images.

2.2. Image Preprocessing

All experiments operate at the single-heartbeat level. Preprocessing was designed to preserve diagnostically relevant ECG morphology while enforcing temporal, amplitude, and spatial consistency across datasets with heterogeneous sampling rates, lead configurations, and acquisition conditions.
Heartbeats were extracted using database-provided or validated R-peak annotations. A fixed 600 ms window ( − 300 to + 300  ms relative to the R-peak) was applied uniformly to provide a consistent beat-centered temporal context. Prior to extraction, all ECG signals were resampled to 360 Hz via band-limited interpolation, yielding exactly 216 samples per beat and ensuring identical physical duration across datasets.
Noise suppression was performed on the one-dimensional ECG signal using a bilateral filter (kernel size = 5 , intensity σ = 50 ) to attenuate high-frequency noise while preserving sharp QRS transitions. Baseline wander was corrected using morphological opening with a 200 ms structuring element, removing low-frequency drift without distorting P-wave, QRS, or ST–T morphology. Filter parameters were fixed across all datasets.
Each extracted beat was amplitude-normalized using per-beat min–max scaling, as shown in Equation (1):
x norm = x − min ( x ) max ( x ) − min ( x ) ,
which preserves relative morphology while preventing amplitude scale differences from dominating representation learning. No z-score or global normalization was applied.
Normalized waveforms were deterministically rendered as two-dimensional images by plotting voltage amplitude against time on a fixed Cartesian grid. Time was mapped linearly to the horizontal axis over 600 ms, and normalized amplitude to the vertical axis. The waveform was rasterized into a 256 × 256 grayscale image using linear interpolation, with uniform line thickness and zero-valued background pixels. No cropping, region-of-interest detection, histogram equalization, CLAHE, contrast enhancement, or stochastic augmentation was applied.
Rendered images were resized to 256 × 256 pixels using bilinear interpolation, with pixel intensities scaled to [ 0 ,   1 ] and stored in lossless PNG format to avoid compression artifacts. This resizing does not alter temporal or amplitude relationships, which are fixed during rendering.
An autoencoder-based quality control procedure was applied exclusively during self-supervised pretraining to exclude severely corrupted beats. No quality-based filtering was applied during supervised training, validation, testing, or external evaluation, as shown in Table 5.
Table 5. Deterministic ECG preprocessing protocol applied to all datasets.
All preprocessing was implemented deterministically using scripted pipelines to ensure full reproducibility. For multi-lead recordings, each lead was processed independently using the same pipeline, and beats from different leads were treated as separate samples reflecting distinct morphological projections. Data partitioning was performed strictly at the patient level prior to lead-wise processing, ensuring that no beats from the same patient, regardless of lead, appeared across training, validation, or test sets. For two lead and twelve-lead datasets, all available leads were included, and reported performance metrics were aggregated across leads unless stated otherwise.
For representation learning, a ResNet-18 encoder was employed with adaptation for single-channel 256 × 256 ECG images. The first convolutional layer was modified to accept one input channel while preserving kernel size and stride. Weights were initialized using He initialization, and no architectural changes beyond the input layer were introduced, maintaining the original receptive field hierarchy.
A 1D-CNN with a matched receptive field was trained directly on raw waveforms to benchmark against our 2D rasterization pipeline and Continuous Wavelet Transform (CWT) representations. Information loss during rasterization was quantified via waveform reconstruction MSE, and sensitivity to spatial priors was assessed using a randomized X-axis shuffling test. Physiological plausibility across modalities was compared using the Clinical Rule Consistency Index (CRI).

Autoencoder-Based Quality Control

To prevent severely corrupted or incomplete heartbeats from destabilizing self-supervised representation learning, an autoencoder-based quality control procedure was applied exclusively during pretraining. This procedure was not used during supervised training, validation, testing, or external evaluation, ensuring that reported performance reflects realistic clinical noise conditions.
A convolutional autoencoder with a ResNet-18 encoder backbone was employed. The encoder follows the standard ResNet-18 architecture with four residual stages and ReLU activations, initialized with random weights and modified to accept single-channel 256 × 256 grayscale ECG images. Global average pooling yields a 512-dimensional latent representation. The decoder mirrors the encoder using transposed convolutional layers with batch normalization and ReLU activations to progressively upsample the latent representation, followed by a sigmoid activation constraining reconstructed pixel intensities to [ 0 ,   1 ] .
The autoencoder was trained in a fully self-supervised manner using only training-set heartbeats visually verified to exhibit complete P–QRS–T morphology and to be free of saturation, clipping, or severe motion artifacts. These high-quality beats were identified using a conservative rule-based prefilter combining a signal-to-noise ratio criterion (SNR > 10 dB) and physiologically plausible RR-interval constraints. No labels, validation data, or test data were used at any stage.
Training was performed for 100 epochs using the Adam optimizer (learning rate 1 × 10 − 4 , batch size 64, β 1 = 0.9 , β 2 = 0.999 ). The reconstruction loss was defined as the mean squared error (MSE) between the input image x and its reconstruction x ^ , as shown in Equation (2):
L rec = ∥ x − x ^ ∥ 2 2 .
Following training, the reconstruction error distribution was computed over the high-quality training beats, and a rejection threshold was defined as the 95th percentile of this distribution, representing a conservative upper bound on acceptable reconstruction error. Heartbeats exceeding this threshold were classified as low quality and excluded only from the self-supervised pretraining stage. This thresholding strategy is data-driven, deterministic, and reproducible, and does not rely on subjective visual inspection or class-specific heuristics.
To assess potential bias introduced by quality control, rejection rates were analyzed per heartbeat class. The proportion of excluded beats was comparable across all six diagnostic categories, with no class deviating by more than ± 2.3 % from the global mean; consequently, no class reweighting or compensation was required, and class priors remained effectively unchanged, as shown in Table 6.
Table 6. Preprocessing components.
All preprocessing steps preceding the autoencoder, including denoising, baseline correction, R-peak alignment, and image generation, were applied identically across all datasets. Autoencoder-based filtering was restricted to training data during representation learning and disabled thereafter, preventing information leakage while ensuring stable feature learning.
The complete preprocessing and quality-control pipeline is summarized in Table 5.

2.3. Data Balancing and Augmentation

All balancing and augmentation procedures were applied exclusively to the training set. No synthetic or augmented samples were used during validation, testing, or external evaluation, eliminating any risk of data leakage. The objective was to mitigate severe class imbalance while preserving physiological plausibility and intrinsic class structure.
The balancing pipeline followed a fixed, ordered strategy: (i) conservative on-the-fly geometric and noise-based image augmentations; (ii) feature-space oversampling using SMOTE or Cluster-SMOTE; and (iii) limited GAN-based synthesis applied only to severely underrepresented classes, primarily during self-supervised pretraining. Synthetic samples never exceeded 30% of any class, and GAN-generated beats were capped at 15% of the final training set.
Standard image augmentations were applied online during training to improve robustness to acquisition variability while avoiding distortion of clinically relevant ECG morphology. Operations that alter temporal ordering or waveform polarity (e.g., elastic deformation, horizontal flipping, nonlinear intensity transforms) were explicitly excluded, as shown in Table 7.
Table 7. Clinically constrained image augmentation applied during training only.
All augmentations preserved beat polarity, temporal order, and relative amplitude relationships. Feature-level oversampling was performed using SMOTE in a physiologically meaningful latent space derived from pretrained encoder embeddings. Each heartbeat was represented by a 128-dimensional vector encoding RR interval, QRS width, and learned morphological descriptors. SMOTE used k = 5 nearest neighbors with Euclidean distance. For multimodal classes, Cluster-SMOTE was applied by first clustering samples via k-means ( k = 3 per class), with interpolation restricted within clusters to prevent unrealistic hybrid beats. Oversampling was capped at 1.5 × the majority-class size.
GAN-based synthesis was applied only to the most underrepresented classes (F and M). StyleGAN2-ADA was trained separately per class using 512 × 512 images, non-saturating logistic loss with R1 regularization, batch size 32, learning rate 2 × 10 − 4 , and 25,000 discriminator iterations, with adaptive discriminator augmentation enabled. Mode collapse was monitored via latent-space diversity and reconstruction variance.
All GAN-generated beats underwent deterministic physiological filtering. Samples were rejected if RR intervals fell outside 300–2000 ms, QRS duration outside 60–180 ms, QRS morphology was absent or distorted, or reconstruction error exceeded the 95th percentile of real-beat autoencoder error. In addition, a random subset ( n = 300 ) was reviewed by a cardiologist; failing samples were discarded.
The Fréchet ECG Distance (FED) was computed between real and synthetic beats in latent space, retaining only samples within one standard deviation of the real-beat distribution. FED was used solely for filtering, not as a training objective. Latent-space compactness and silhouette scores before and after balancing showed no significant degradation across classes ( p > 0.05 ), indicating preserved class structure, as shown in Table 8.
Table 8. Final training-set class composition after balancing (training only).
Synthetic data were used solely to stabilize training and improve representation diversity. All reported performance metrics were computed on real, unaugmented data. The physiological validity of GAN-generated ECG beats remains an open research question and is treated as a limitation requiring further clinical validation.

2.4. Feature Engineering Hybrid Representation Design

For our model, we use a hybrid feature engineering approach that combines clinically guided and handcrafted features. This multi-faceted approach improves diagnostic accuracy, interpretability, and generalization to real-world ECG use.

2.4.1. Clinically Guided Handcrafted Feature Integration

Handcrafted ECG features were incorporated to enhance interpretability and to ground model predictions in established electrophysiological principles. The extracted features include QRS duration, which reflects ventricular conduction abnormalities; R–R interval variability, capturing rhythm irregularity; and P- and T-wave morphology descriptors associated with atrial activity and ventricular repolarization. These features were designed to provide clinically interpretable signals that complement learned representations.
Feature relevance was assessed using SHAP-based attribution analysis applied to the trained ensemble classifier, allowing examination of how individual clinical features contribute to class discrimination across different heartbeat categories. Rather than asserting absolute performance gains, handcrafted features are integrated in a modular fashion to support interpretability, improve robustness in low-sample regimes, and enhance diagnostic plausibility. This design follows established ECG analysis practices and prior studies emphasizing clinically guided feature integration [36,37].

2.4.2. Automatic Feature Engineering and Representation Design

To capture complementary ECG characteristics spanning morphology, rhythm, topology, and time-frequency domains, multiple automated feature families were extracted and combined prior to classification. Each feature set was computed independently and concatenated at the feature level, forming a unified representation that was subsequently provided as input to the Random Forest ensemble. This modular fusion strategy facilitates ablation analysis and avoids architectural coupling between heterogeneous feature extractors.
(a)
Self-Supervised Contrastive Embeddings (SimCLR): Invariant ECG image representations were learned using SimCLR with a ResNet-50 backbone and a multilayer perceptron projection head ( 2048 → 512 → 128 ). The model was trained for 200 epochs using the NT-Xent contrastive loss ( τ = 0.5 ), clinically motivated augmentations, stochastic weight averaging, and mixed-precision optimization. The resulting 128-dimensional embeddings provide compact representations of heartbeat morphology and rhythm for downstream classification [38,39].
(b)
Graph-Based Features (Signal Topology Modeling): ECG signals were modeled as graphs based on waveform similarity and inter-lead relationships. Extracted descriptors include node centrality measures, Laplacian energy, spectral entropy, and Graph Fourier Transform coefficients. These features capture relational and topological information across leads that is not explicitly modeled by convolutional architectures [40,41].
(c)
Wavelet-Domain Features (Time–Frequency Analysis): Discrete Wavelet Transform using the Daubechies-4 wavelet was applied to heartbeat representations to extract detail coefficients ( c D 2 – c D 4 ), wavelet entropy, and multi-scale energy ratios. These features enhance robustness to non-stationary signal components and noise, complementing spatial and topological representations [42,43].
(d)
Transfer Learning Features: High-level embeddings from convolutional neural networks pretrained on PhysioNet (v1.0.0) ECG datasets were extracted from final convolutional layers and pooled across leads. These embeddings were concatenated with SimCLR-derived, handcrafted, and graph-based features to incorporate domain-specific priors and improve representation diversity for arrhythmia classification [36,44].
Model interpretability was evaluated post hoc using SHAP attribution on the ensemble classifier, enabling comparison of feature-family contributions without assuming statistical dominance. Clinical validation focused on qualitative consistency with established ECG interpretation principles rather than absolute performance claims.

2.4.3. Feature Dimensionality and SHAP-Based Quantitative Contribution

To ensure full reproducibility and transparency of the hybrid representation, Table 9 reports the exact dimensionality of each feature family and its contribution to the final fused feature vector. All features were concatenated at the feature level, resulting in a fixed-length input vector of 512 dimensions provided to the Random Forest classifier.
Table 9. Hybrid feature representation: dimensionality and SHAP-based contribution.
SHAP analysis was performed on the trained classifier to quantify the relative contribution of each feature family. For each family, mean absolute SHAP values were computed across all samples and normalized to sum to 100%, enabling comparison of their aggregate influence on model predictions. These values reflect contribution magnitude rather than statistical dominance and should be interpreted as complementary explanatory signals.
Although learned representations (SimCLR and transfer-learning features) account for the largest share of the feature vector, handcrafted clinical features contribute disproportionately relative to their dimensionality. This observation supports their role in enhancing interpretability and stabilizing decision boundaries, particularly for morphologically ambiguous arrhythmia classes. Graph-based and wavelet-domain features provide complementary structural and time–frequency information, reinforcing robustness across heterogeneous datasets.
Importantly, SHAP attribution patterns were stable across cross-validation folds and external datasets, indicating that no single feature family dominates the classification process. This balanced contribution aligns with the modular design philosophy of the hybrid representation and supports its interpretability and generalization capacity.

2.5. Model Architecture

The classification pipeline combines interpretable machine learning, multi-modal feature fusion, and self-supervised learning. As illustrated in Figure 2, the main innovation is the use of SimCLR embeddings of ECG images as foundational representations that are enhanced with manually created, wavelet, and graph-theoretic features and then fed into an uncertainty-aware Random Forest. Rich temporal–morphological data is captured by this hybrid design, which also provides clinical interpretability and deployment readiness.
Figure 2. Integrated ECG classification Pipeline: Preprocessing, SimCLR pretraining, multimodal feature fusion, ensemble Random Forest classification with uncertainty quantification, interpretability modules, and clinical deployment. NT-XNT: Normalized Temperature-scaled Cross-Entropy Loss; FC layer: Fully Connected Layer; SE/CBAM: Squeeze-and-Excitation/Convolutional Block Attention Module; GFT: Graph Fourier Transform; DWT: Discrete Wavelet Transform; SimCLR: Simple Framework for Contrastive Learning of Representations; SHAP: SHapley Additive exPlanations.

2.5.1. SimCLR Representation Learning

SimCLR provides label-free pretraining, enabling rhythm-sensitive, generalizable ECG representations. It was chosen over MoCo and BYOL due to its simpler architecture, absence of momentum encoders, and strong performance with limited medical imaging data. Unlike MoCo’s memory bank, SimCLR uses full-batch contrastive sampling, which aligns better with ECG image augmentations and consistent batch statistics, as shown in Equations (3)–(6).
Let x ∈ R 224 × 224 × 1 denote an ECG image. We apply two independent augmentations t 1 , t 2 ∼ T to produce:
x 1 = t 1 ( x ) ,   x 2 = t 2 ( x )
Both augmented images are passed through the encoder f θ ( · ) (ResNet-50) and projection head g ϕ ( · ) :
h i = f θ ( x i ) ∈ R 2048 ,   z i = g ϕ ( h i ) ∈ R 128 ,   i ∈ { 1 , 2 }
Training uses the NT-Xent contrastive loss:
L i , j = − log exp ( sim ( z i , z j ) / τ ) ∑ k ≠ i exp ( sim ( z i , z k ) / τ )
where the cosine similarity is defined as follows:
sim ( z i , z j ) = z i ⊤ z j ∥ z i ∥   ∥ z j ∥
and τ is the temperature parameter, set to 0.5 .
To model real-world ECG variability, we apply heart-rate preserving warping and lead dropout. Atrous Spatial Pyramid Pooling (ASPP) extracts multi-resolution rhythm features, and Squeeze-and-Excitation (SE) blocks recalibrate lead importance. Mixed Precision with Stochastic Weight Averaging (SWA) stabilizes long-horizon training, while knowledge distillation to ViT-Tiny compresses embeddings for mobile deployment. Label-free pretraining uncovers morphology-aware latent spaces, enabling rhythm-type clustering, crucial for rare arrhythmias with limited labeled data.

2.5.2. Random Forest Classification with Feature Fusion

After SimCLR pretraining, the resulting embedding h ∈ R 2048 is concatenated with structured features to form a composite feature vector F ∈ R d , defined as Equation (7):
F = [ h ; f hand ; f wavelet ; f graph ; f TL ]
Different facets of the signal structure and ECG morphology are captured by each feature representation sub-component. In particular, f hand contains handcrafted features like PR/PQ amplitudes, R-R intervals, and QRS duration, whereas f wavelet contains coefficients from a 3-level DWT, specifically { c D 2 , c D 3 , c D 4 } . f graph encodes the topology of graph-based signals and includes node degree, centrality, and edge entropy that are obtained using the Graph Fourier Transform (GFT). Lastly, f TL is made up of transfer embeddings that were acquired from a convolutional neural network (CNN) that had been pretrained using the PhysioNet dataset. Concatenating these elements creates the composite feature vector F , which is then fed into a Quantile Regression Forest R ( F ) . The forest allows for robust and interpretable multiclass ECG classification by estimating the class probabilities P ( y | F ) and uncertainty bounds [ q 0.1 , q 0.9 ] , as shown in Table 10.
Table 10. Feature fusion.
For interpretability and uncertainty:
  • SHAP values: ϕ i = SHAP ( F i ) describe the local and global impact of each modality.
  • Counterfactuals: Changing a single feature, like widening the QRS, can reverse predictions and show the thresholds for decisions.
  • MC Dropout: Probabilistic prediction by simulating dropout at test time.
Equation (8) illustrates how feature fusion is accomplished by directly concatenating normalized feature vectors.
x fused = [ z SimCLR , f hand , g graph , w wavelet , t transfer ]
This allows the Random Forest to naturally handle mixed data types while preserving modality-specific signal structure and enabling modular ablation. We investigated attention-based fusion, but preliminary tests revealed no discernible improvement in performance, as shown in Table 10.

2.5.3. CNN Baseline

We also implement a CNN that directly classifies ECG images for comparison with the hybrid approach. The CNN baseline uses the same ECG image preprocessing pipeline as our SimCLR encoder to ensure a fair comparison. This includes grayscale conversion, aspect ratio preservation, and standard resizing to 224 × 224 , as well as consistent noise augmentation during training. The model is described by Equation (9):
Given input x ∈ R 224 × 224 × 1 , the network processes it through the following sequence:
[ x → Conv 2 D → BN → ReLU → MaxPool → ⋯ → Dense ( 256 ) → Softmax ( y ) ]
where Conv2D denotes a 2D convolutional layer, BN represents batch normalization, ReLU is the rectified linear unit activation, and MaxPool refers to the max pooling operation. Additional layers may include more convolutional, normalization, or pooling layers. Dense ( 256 ) is a fully connected layer with 256 units, and Softmax ( y ) is the softmax activation producing class probabilities y, as shown in Table 11.
Table 11. Baseline CNN architecture.
For training, we initialized for ReLU, BatchNorm + L2 penalty, and monitored AUC, not just loss.

2.5.4. Integrated Enhancement Framework

To ensure robustness, we implement cross-modal enhancements across the architecture, as shown in Table 12:
Table 12. Cross-modal enhancements across the architecture.
First integration of SimCLR with physiological augmentations for ECGs captures domain-aware invariances. Uncertainty-aware hybrid classification via Random Forests, unlike end-to-end CNNs, improves interpretability and enables confidence calibration. Graph-theoretic augmentation of ECGs via GFT features adds topological context rarely used in ECG classification. A complete SHAP and counterfactual pipeline is critical for real-world deployment in clinical settings. This approach distilled SimCLR embeddings, enabling edge deployment of a self-supervised model an approach rarely seen in current ECG research.

2.6. Hyperparameters Hypothesis

Hyperparameters govern the learning behavior, generalization capacity, and computational efficiency of the ECG classification pipeline. Our system comprises distinct training phases: self-supervised SimCLR pretraining, CNN fine-tuning, and Random Forest classification, each with its own tuned hyperparameters. Optimization was guided by empirical performance metrics, ROC-AUC, F1 score, and stability criteria.

2.6.1. Self-Supervised SimCLR Pretraining

This phase focuses on learning discriminative, label-agnostic embeddings from ECG image augmentations using contrastive learning, as shown in Table 13 and Table 14.
Table 13. Learning discriminative features from ECG image augmentations using contrastive learning.
Table 14. CNN training and multimodal feature integration.

2.6.2. Random Forest and Uncertainty Quantification

The final prediction module integrates multiple feature modalities and estimates model confidence, as shown in Table 15.
Table 15. Random forest hyperparameters and uncertainty estimation.
SimCLR pretraining was optimized via grid search over temperature, batch size, and learning rate, with cosine annealing refinement. CNN fine-tuning employed random and manual sweeps over dropout, augmentation strength, and learning rate using ReduceLROnPlateau. Random Forest hyperparameters were optimized using Bayesian optimization (Optuna) over the number of estimators, tree depth, and quantile-based class weighting to maximize macro-F1. The most sensitive parameters were the learning rate, SimCLR temperature, and augmentation probability, with small variations producing measurable changes in contrastive loss and downstream performance. All experiments were monitored using Weights & Biases and TensorBoard. A staged hyperparameter tuning strategy was adopted, with SimCLR optimized for representation quality, CNNs for feature extraction, and the Random Forest for classification and confidence calibration.

2.7. Evaluation Protocol

All experiments enforced strict patient-level separation, ensuring that beats from the same subject appeared in only one split. This constraint was applied consistently across internal experiments and external validation to prevent data leakage.
Two evaluation settings were used: (i) stratified 10-fold patient-level cross-validation on the primary dataset to assess robustness and fold-wise stability, and (ii) a fixed patient-level train/validation/test split for hyperparameter tuning, ablations, and final reporting. Unless stated otherwise, all results correspond to the held-out test set of the fixed split.
Macro-averaged F1 was the sole optimization and model-selection metric, with class-wise recall monitored to ensure sensitivity to minority arrhythmias. Reported results follow the same criteria, with macro-F1, per-class recall, and confusion matrices as primary metrics. Accuracy, precision, specificity, and AUC are reported selectively and were not used for model selection.
Calibration was assessed post hoc on the test set using Expected Calibration Error (15 bins) and Brier score; calibration metrics were not used for training or tuning. No beat-level filtering or quality exclusion was applied during validation or testing. Autoencoder-based quality control was restricted to training data.
External validation was conducted on INCART, PTB-XL, and Chapman–Shaoxing using identical preprocessing, beat extraction, and labeling pipelines. Rhythm-level annotations were converted to beat-level labels via R-peak–centered segmentation, with no subject overlap. External performance is reported using macro-F1 and class-wise recall for direct comparison.
Patient-Level Reporting and Temporally Separated Evaluation. In addition to beat-level metrics, we compute patient-level performance by averaging Macro-F1 across patients (median, IQR) to avoid dominance by patients with long recordings. To probe temporal autocorrelation effects, we performed temporally separated experiments in which, within each record, beats were sampled with a minimum inter-beat interval T (1 s, 3 s, 5 s) so that no two selected beats were within T seconds. We also ran a leave-one-dataset-out (LODO) protocol in which each external cohort (PTB-XL, Chapman–Shaoxing, INCART) was held out as a whole for testing, while the model was trained on the remaining datasets. Metrics were reported with 95% bootstrap confidence intervals.
To evaluate robustness to patient-specific effects, we performed leave-one-subject-out (LOSO) cross-validation on the MIT-BIH dataset. The model was trained on all but one patient and tested on the held-out patient, repeated across all 48 subjects. Patient-level Macro– F 1 scores were computed, and their mean and standard deviation were reported to provide a stringent estimate of generalization to unseen individuals, complementing the 10-fold patient-level cross-validation.
Additive white Gaussian noise was introduced to the held-out test set at SNRs of 5 dB, 10 dB, 15 dB, and 20 dB. For each SNR level, noisy signals were passed through the identical preprocessing and feature extraction pipeline. The model, trained exclusively on clean data, was evaluated to generate a performance degradation curve.
All reported metrics reflect classification performance rather than clinical diagnostic validity. Interpretability analyses (e.g., SHAP) are reported separately and were not used as evaluation criteria; claims of robustness and generalization are therefore limited to empirical consistency across datasets.

2.7.1. Interpretability and Visualization

Two key elements of our clinical AI workflow are interpretability and visualization. Attribution techniques were applied at the convolutional encoder level: Layer-wise Relevance Propagation (LRP) to distribute prediction relevance across physiological landmarks; Grad-CAM to localize class-discriminative waveform segments (e.g., P-wave absence in atrial fibrillation); gradient-based saliency maps for pixel-level signal importance; and activation maximization to generate prototypical ECG patterns that maximize neuron activation. Modality-level contributions, defined by aggregated SHAP values, are analyzed in Section 3 to quantify each feature group’s diagnostic influence across arrhythmia classes.
Interpretability mechanisms are explicitly grounded in established electrophysiological principles. SHAP and Grad-CAM are used as formal mechanisms aligned with clinical ECG reasoning rather than as post hoc visualizations. SHAP values quantify feature-level contributions and are mapped to electrophysiological markers. For example, prolonged QRS duration reflects ventricular conduction delay, elevated RR variability indicates atrial fibrillation or supraventricular tachycardia, increased ST-segment energy corresponds to ischemic deviation, and absence of P-wave components signifies atrial fibrillation. Clinical rule activation is defined, as shown in Equation (10):
ClinicalRule j = I ( ϕ k > τ k ) ,
where ϕ k denotes the SHAP value of feature k, τ k is a clinically meaningful threshold, and I ( · ) is the indicator function. Under this formulation, SHAP values represent the strength of clinical rule activation rather than abstract feature importance.
Grad-CAM Correspondence with Electrophysiological Regions. Grad-CAM is used to localize time-domain regions contributing to class-specific predictions, defined, as shown in Equation (11):
G c ( t ) = ∑ k α k c A k ( t ) ,
where A k ( t ) is the activation of feature map k at time t and α k c denotes the class-specific gradient weight. Highlighted regions are interpreted according to electrophysiological zones, with QRS emphasis corresponding to ventricular depolarization abnormalities, ST-segment activation indicating ischemic or repolarization deviations, and P-wave focus reflecting atrial activity.
Clinical Rule Consistency Index is used to quantify agreement between model explanations and clinical logic, a Clinical Rule Consistency Index (CRI) is defined, as shown in Equation (12):
CRI = Model - highlighted   regions ∩ Clinical   regions Clinical   regions .
This index measures the proportion of clinically relevant ECG regions correctly emphasized by the interpretability outputs, providing a principled assessment of electrophysiological consistency.
In order to visualize newly formed arrhythmia clusters in two dimensions, we conducted two complementary analyses at the composite feature level: (1) dimensionality reduction of 2048-D SimCLR embeddings via t-SNE and UMAP, and (2) SHAP value decomposition on the full Random Forest input vector to quantify the contribution of each feature to model outputs, whether learned, handcrafted, wavelet-derived, or graph-based. By determining the minimal perturbations, such as incremental QRS widening, required to alter projected classes, counterfactual explanations were produced, offering insight into decision limits and supporting error investigation.

2.7.2. Clinical Alignment

Clinical alignment was assessed through a structured expert review protocol evaluating whether model explanations conform to established electrophysiological principles. Interpretability artifacts were generated for a representative subset of correctly and incorrectly classified heartbeats from the held-out test set and external validation datasets.
Three board-certified cardiologists independently reviewed the explanations in a blinded setting, without access to model predictions or ground-truth labels. Highlighted regions or features were rated for clinical plausibility using a three-point ordinal scale (0: not clinically relevant, 1: partially relevant, 2: clinically consistent). Inter-rater agreement was quantified using Fleiss’  κ , and overall clinical alignment was defined as the proportion of cases rated clinically consistent by at least two reviewers.
Interpretability methods were applied according to the corresponding model component. Gradient-based techniques (Grad-CAM, saliency maps, and Layer-wise Relevance Propagation) were applied to convolutional encoders, including the SimCLR backbone, to localize diagnostically relevant waveform regions such as QRS complexes, ST segments, and P-wave activity. Feature-level attribution using SHAP was applied to the Random Forest ensemble to quantify contributions from handcrafted features, wavelet coefficients, graph-based descriptors, and learned embeddings. Latent-space visualizations (t-SNE) were used to assess class separability of SimCLR embeddings, while counterfactual explanations generated via ensemble-level feature perturbations were used to analyze decision boundaries and sensitivity thresholds.
Clinical congruence was quantified using three complementary measures: (i) Fleiss’  κ , (ii) the percentage of explanations rated clinically consistent, and (iii) class-specific alignment rates for major arrhythmia categories. These metrics complement qualitative inspection and provide a systematic validation of interpretability claims.
All explanation methods were implemented reproducibly using open-source toolkits, including Captum (PyTorch), tf-explain (TensorFlow), and SHAP. Table 16 summarizes the correspondence between interpretability techniques, model components, and ECG-specific applications.
Table 16. Interpretability artifact comparison to electrophysiological information.

2.7.3. Deployment of Model

The proposed framework was deployed in a client–server configuration to support real-time inference while preserving model integrity and reproducibility. Model inference was executed on a centralized server environment, ensuring that predictions were generated using identical model weights and computational precision regardless of the client device. This design avoids performance variability that could arise from on-device inference and allows consistent clinical evaluation.
A lightweight mobile interface was implemented to facilitate ECG image upload and visualization of class-wise prediction probabilities. Deployment infrastructure, including secure data transmission, authentication, and encrypted storage, was designed to comply with standard clinical data protection requirements (e.g., HIPAA). These implementation details do not alter the model architecture, training procedure, or evaluation protocol, and therefore do not impact the reported performance metrics.
Overall, the deployment strategy serves as a proof-of-concept for clinical integration and does not constitute part of the methodological evaluation of the proposed model.

2.7.4. Clinical Validation via Expert Review

Clinical validation was performed using a structured expert review protocol to assess the clinical plausibility of model explanations rather than diagnostic correctness. A panel of three board-certified cardiologists independently reviewed interpretability artifacts for a representative subset of heartbeat predictions, including both correctly and incorrectly classified cases. All reviews were conducted in a blinded setting, without access to ground-truth labels or model confidence scores.
For each case, Grad-CAM heatmaps overlaid on ECG images were evaluated to determine whether highlighted regions corresponded to diagnostically relevant waveform components, including P-wave activity, QRS complex morphology, and ST-segment deviations. In parallel, SHAP-based feature attributions were examined to assess whether ensemble-level decisions were driven by clinically meaningful feature groups. These analyses provide supporting evidence that the model relies on physiologically plausible signal characteristics, but they do not constitute validation of clinical diagnostic accuracy.
Inter-rater agreement and summary statistics were computed to quantify reviewer consistency. This expert review framework was designed to systematically evaluate interpretability outputs and their alignment with established ECG interpretation principles. Quantitative results from this process are reported separately in the Section 3.

3. Results

Before presenting quantitative results, we emphasize that all reported metrics in Table 17, Table 18, Table 19 and Table 20 correspond to strictly controlled retrospective evaluations conducted at the single-heartbeat level under enforced patient-level separation. Each ECG lead was processed independently, and no heartbeat instance (or its augmented variants) appeared in more than one split, fold, or dataset partition. Synthetic samples generated via SMOTE or GAN-based augmentation were applied exclusively to the training data and were never used for validation or testing. Consequently, the reported performance reflects internal consistency under controlled experimental conditions rather than error-free or real-world clinical performance.
Table 17. Performance on stratified 10-fold cross-validation (mean ± SD across folds).
Table 18. Performance on held-out test set (mean ± SD; bootstrap estimation).
Table 19. Class-wise performance of the hybrid model on held-out test set and 10-fold cross-validation (mean ± SD).
Table 20. Confusion matrix for the proposed hybrid model.

3.1. Internal Evaluation on the Primary Dataset

The hybrid SimCLR + Random Forest model demonstrates strong performance under stratified, patient-level 10-fold cross-validation. Table 17 reports mean evaluation metrics across folds, with fold-wise variability summarized using standard deviation. Compared with CNN and handcrafted-feature Random Forest baselines trained under identical preprocessing, augmentation, and data-splitting protocols, the hybrid model achieves higher macro-averaged F1 scores and improved recall for minority arrhythmia classes. Standard deviation reflects fold-wise variability under patient-independent stratified cross-validation.
For all internal evaluations, ECG leads were treated as independent signal channels rather than jointly fused inputs. In multi-lead datasets, each lead generated a separate heartbeat instance using identical preprocessing and labeling rules. Patient identifiers were preserved across leads to ensure that beats originating from the same subject, regardless of lead, were assigned exclusively to a single fold or split. No cross-lead information sharing occurred during training or evaluation.
The near-saturation performance reported in Table 17 macro F1   ≈   0.999 should be interpreted with caution. These values arise from beat-level evaluation under controlled experimental conditions, including strict R-peak alignment, normalization, harmonized class definitions, and retrospective testing on curated public datasets. As such, they primarily indicate internal stability and consistency of the learned representations rather than guaranteed generalization to unconstrained real-world ECG recordings. No claims of flawless detection or deployment-ready accuracy are therefore made.
The very small standard deviations observed across cross-validation folds reflect the controlled nature of the evaluation protocol, including patient-level stratification, fixed heartbeat windowing, and consistent label harmonization. Because individual heartbeats extracted from the same physiological process exhibit limited intra-class variability after alignment and normalization, fold-to-fold performance variability is inherently low. These statistics should thus be interpreted as evidence of internal consistency rather than real-world robustness.
The 1D-CNN and CWT baselines achieved Macro-F1 scores of 0.96 and 0.97, respectively, compared to 0.9996 for our 2D rasterization, indicating the image format yields a more effective representation. Reconstruction MSE was negligible (0.003), confirming minimal discretization loss. The X-axis shuffling test caused performance to collapse to a Macro-F1 of 0.52, demonstrating reliance on learned temporal structure rather than spatial artifacts. Comparable CRI scores, such as 0.92 for 2D vs. 0.90 for 1D, confirm that both modalities focus on physiologically similar regions.
To empirically justify the 2D rasterization strategy, we conducted a direct comparison with a 1D-CNN trained on raw waveforms using a matched receptive field. The 1D model achieved a Macro– F 1 of 0.96, compared to 0.9996 for the proposed 2D pipeline. This demonstrates that image-based representations enable effective transfer learning from pretrained 2D CNNs, albeit with increased computational complexity 11.2 M vs. 0.4 M parameters; 22 ms vs. 8 ms inference time.
Performance on the held-out test set (15% of subjects, approximately 18,000 beats) remains stable with no observable degradation relative to cross-validation, indicating generalization within the same data distribution. Robustness under distributional shift is therefore assessed primarily through external validation experiments, reported separately in Table 18.
Although some class-wise and confusion-matrix results in Table 18, Table 19 and Table 20 approach ideal values, these outcomes do not imply perfect classification in practice. Rather, they reflect the absence of false negatives under the evaluated test conditions and labeling schema. Generalization under distributional shift is more realistically characterized by external validation and noise robustness analyses, which provide a stronger indication of practical performance.
The LOSO validation yielded a mean Macro F 1 of 0.993 with a standard deviation of 0.005 across patients, confirming that the high performance is not attributable to specific patient cohorts and reflects stable generalization to unseen individuals.
The near-perfect internal performance Macro– F 1 = 0.9996 warrants scrutiny regarding potential data leakage. Strict patient-level partitioning was enforced, ensuring no beat-level overlap across splits. Additional analyses support robustness: (i) leave-one-subject-out (LOSO) cross-validation achieved a mean Macro– F 1 = 0.993 ± 0.005 across 48 patients, confirming stability across individuals; (ii) temporal de-correlation with a 5-s minimum inter-beat interval reduced Macro– F 1 only slightly, from 0.9996 to 0.995, indicating limited influence of short-range similarity. The observed gap between internal 0.9996 and external 0.91–0.94 performance is consistent with expected dataset shift rather than data leakage, reflecting generalization limits under cross-cohort variability.

3.2. Class-Wise Performance and Error Analysis

The hybrid model achieves per-class metrics on the test set, including rare and high-risk arrhythmias such as ventricular ectopic (V) and fusion beats (F). The observed false negative rate (FNR) approaches zero across all classes on the held-out test set, indicating a very low incidence of missed detections under the evaluated conditions. Table 19 illustrates both cross-validation and test set consistency, as shown in Figure 3.
Figure 3. Class-wise performance of the hybrid model using the test set and 10-fold cross-validation.
Patient-level analysis on the held-out test set revealed a median [IQR]. Macro-F1 of 0.997 [0.995–0.999], confirming that high performance is not driven by outlier patients. The strict 5-s temporal decorrelation test resulted in a marginal Macro-F1 decrease from 0.9996 to 0.995, indicating that short-range beat similarity contributes negligibly to the primary results. In the LODO experiments, the model achieved a Macro-F1 of 0.93 (95% CI: 0.91–0.94) on PTB-XL when trained on MIT-BIH and Chapman, demonstrating robust generalization to unseen institutions.

3.3. Confusion Matrix and Misclassification Patterns

Despite extensive data balancing to ∼120,000 ECG beats using SMOTE and GANs, the hybrid model achieves classification on a stratified held-out test set, as shown in Figure 4 and Table 20, highlighting the synergy of SimCLR embeddings and the Random Forest ensemble for reliable clinical ECG triage.
Figure 4. Confusion matrix for the SimCLR+RF hybrid model on the held-out test set.
The confusion matrix of the SimCLR+RF model on the 15% test set (∼18,000 beats) is shown in Table 20. Classification and strong generalizability under synthetic balancing are confirmed by diagonal entries.

3.4. Subgroup and Bias Analysis

Table 21 shows consistent performance across sex, age, and hypertension subgroups, with F1 deviations remaining below 0.0004 relative to the overall model. Minor reductions in elderly and hypertensive cohorts are negligible and not clinically meaningful, indicating effective mitigation of demographic- and comorbidity-related bias.
Table 21. Subgroup performance consistency analysis across demographic and clinical strata.
The observed stability across acquisition devices, demographic strata, and clinical risk groups supports real-world deployability and minimizes the need for dataset-specific recalibration when transferring the model across institutions with diverse ECG acquisition protocols.

3.5. Model Interpretability and Expert Validation

The interpretability tools of the hybrid model (SHAP, Grad-CAM, and counterfactuals) received the highest ratings for inter-rater agreement and clinical usefulness, according to expert evaluation by three board-certified cardiologists. SHAP explanations based on fused features had an average usefulness score of 4.8/5 and 96% agreement. Grad-CAM highlights waveform regions most influential to classification, with salient areas aligning to key electrophysiological features such as P-waves, QRS complexes, and rhythm irregularity. This confirms that the model bases its decisions on physiologically meaningful ECG components, as shown in Figure 5 and Table 22.
Figure 5. Interpretability analysis of each class showing highlighted regions of each class image.
Table 22. Cardiologist evaluation of interpretability tools.
To validate interpretability, cardiologists qualitatively reviewed SHAP and Grad-CAM explanations for representative cases. Normal beats exhibited diffuse low-level activation, while premature ventricular contractions showed strong attention over wide QRS complexes and compensatory pauses. Fusion beats displayed dual activation foci corresponding to normal and aberrant components. A misclassified supraventricular beat revealed reduced sensitivity to subtle low-amplitude P-wave morphology. These observations indicate that explanations align with clinical reasoning for correct predictions and provide insight into failure modes, supporting expert-grounded interpretability.

3.6. Robustness to Noise and Signal Degradation

Despite baseline wander, motion artifacts, and Gaussian noise, the hybrid model consistently achieves high F1 scores. To assess robustness under signal degradation, controlled noise perturbations were applied exclusively to the held-out test set. No noisy samples were included during training or validation, ensuring that robustness results reflect true generalization rather than noise memorization. Three clinically relevant noise types were simulated: additive Gaussian noise 20% of signal standard deviation, low-frequency baseline wander, and motion artifacts modeled using non-stationary amplitude modulation. Performance was evaluated using macro-averaged F1 score and compared against CNN and handcrafted-feature Random Forest baselines trained under identical clean-data conditions, as shown in Table 23.
Table 23. Performance under noise conditions (Macro F1 Score). Noise applied only at test time.
Although performance degrades under severe noise, the hybrid model consistently outperforms CNN and handcrafted baselines, indicating improved robustness to clinically relevant ECG artifacts without explicit noise exposure during training.
The noise robustness results in Table 23 were obtained using a revised and stricter evaluation protocol compared with earlier exploratory analyses, as shown in Figure 6. Noise perturbations were applied exclusively to a stratified subset of the held-out test set, and no noisy samples were included during training, validation, or model selection. Three clinically motivated distortions were simulated independently: additive Gaussian noise (standard deviation equal to 20% of signal variance), low-frequency baseline wander, and non-stationary motion artifacts. Performance was evaluated using macro-averaged F1 score without retraining or threshold adjustment. The resulting scores therefore reflect controlled stress-test behavior under moderate, morphology-preserving noise rather than guaranteed robustness to arbitrary real-world artifacts, explaining both the reduction from earlier values and the remaining high performance.
Figure 6. Performance degradation under additive Gaussian noise.
The hybrid model maintains a macro-F1 of 0.991 at 20dB SNR, decreasing to 0.930 at 5dB SNR. The degradation curve shows graceful performance decay, with the hybrid model consistently outperforming both baselines across all SNR levels. The performance gap widens under higher noise, confirming that multimodal feature fusion provides inherent robustness without explicit noise training.

3.7. External Validation on Independent Cohorts

To verify independence and exclude hidden leakage, all external validation datasets (PTB-XL, Chapman–Shaoxing, and INCART) were processed using dataset-specific patient identifiers, and no subject overlap with the training dataset was permitted. No synthetic samples were generated for external datasets, and no model parameters or thresholds were adapted using external data. As a result, external validation performance reflects true cross-dataset generalization rather than memorization or augmentation-induced bias.
External validation was performed on three independent ECG datasets (PTB-XL, Chapman–Shaoxing, and INCART) that were not used during training, model selection, or threshold tuning. All datasets were processed using the same preprocessing pipeline, heartbeat extraction window, and class-mapping rules as the training data. Beat-level labels were harmonized to the six target arrhythmia categories, and patient-level separation was strictly enforced to prevent subject overlap. Performance is reported as macro-averaged F1 score with 95% confidence intervals estimated via bootstrap resampling, providing an assessment of statistical variability across cohorts, as shown in Table 24.
Table 24. External validation on diverse cohorts (macro F1 with 95% CI).
Compared with internal evaluation, external validation exhibits a modest but consistent performance decline attributable to dataset shift; nevertheless, the hybrid model maintains superior generalization across heterogeneous cohorts.
For external validation, all available ECG leads were processed independently using the same preprocessing and R-peak–centered beat extraction pipeline as the training data. A fixed temporal window was applied per beat, and to prevent over-representation of long recordings, a maximum of 10 beats per record were randomly sampled. Each beat contributed equally to metric computation, and dataset-level results were obtained via macro-averaging across beats and patients.
Owing to differences in annotation schemes and class availability across PTB-XL, Chapman–Shaoxing, and INCART, not all six target arrhythmia classes were present in every external dataset. Accordingly, the external validation results reported in Table 24 correspond to macro-averaged performance over the subset of shared classes per dataset rather than full six-class evaluations. Class-wise results on external cohorts are therefore not directly comparable to internal test performance and should be interpreted as indicators of cross-dataset generalization rather than exhaustive arrhythmia coverage. This limitation is inherent to publicly available ECG benchmarks and is explicitly acknowledged.

3.8. Calibration and Prediction Uncertainty

Model calibration and prediction uncertainty were assessed post hoc on the held-out test set to characterize confidence behavior rather than guide model selection. Expected Calibration Error (ECE) was computed using 15 equal-width confidence bins, the Brier score quantified probabilistic accuracy, and high-confidence errors were defined as incorrect predictions with predicted class probability exceeding 0.9. Confidence intervals were estimated via bootstrap resampling with 1000 iterations.
As shown in Table 25, the hybrid model demonstrates lower calibration error and fewer high-confidence misclassifications than the CNN and Random Forest baselines. These results reflect controlled evaluation conditions with patient-level separation and balanced test distributions and should not be interpreted as guarantees of real-world calibration, particularly for rare arrhythmia classes.
Table 25. Calibration and prediction confidence on held-out test set (mean ± 95% CI).
Calibration metrics were computed by aggregating predictions across all classes; per-class calibration curves are not reported due to limited sample sizes for minority arrhythmias, which would yield unstable bin-wise estimates. As a result, the reported ECE represents an average calibration behavior dominated by frequent classes rather than uniform calibration across all arrhythmia types. This limitation is inherent to multi-class ECG datasets with long-tailed distributions and is explicitly acknowledged.
Although the overall framework includes high-capacity neural components during self-supervised pretraining, the final classifier operates on fixed, low-dimensional feature representations using a Random Forest, substantially reducing effective model capacity during supervised learning. We conducted adversarial perturbation tests on 1000 clinically validated beats from the held-out test set. Physiologically plausible perturbations included QRS widening/narrowing ±10 ms, ST-segment elevation/depression ±0.1 mV, P-wave modulation ±20%, and baseline drift ±0.05 mV, emulating natural inter- and intra-patient variability. The hybrid model maintained a macro F1 of 0.993, a minimal drop of 0.7% from the clean-data performance (F1 = 0.996), with strong prediction consistency (Cohen’s κ = 0.98.) This robustness, along with cross-dataset generalization and the regularizing effect of self-supervised pretraining, suggests the model learns diagnostically relevant features rather than memorizing superficial patterns, mitigating overfitting concerns despite the high parameter count.

3.9. SHAP-Based Feature Contribution Analysis

SHAP-based analysis identifies handcrafted descriptors such as QRS duration and SimCLR embeddings as the primary contributors to model predictions. For high-dimensional feature blocks like SimCLR, graph, wavelet, and transfer-learning embeddings, SHAP values were aggregated by computing the mean absolute SHAP value across all dimensions within each feature block. Accordingly, the reported mean SHAP values in Table 26 reflect block-level contributions rather than individual embedding components; references to z 128 denote a representative embedding dimension used solely for illustration.
Table 26. Block-level SHAP value analysis by feature family. Mean values represent aggregated absolute SHAP contributions averaged across all dimensions within each feature block and across the stratified evaluation subset. These values reflect relative model influence rather than diagnostic correctness.
Graph-based and wavelet features exhibit lower but non-negligible aggregated SHAP contributions, as shown in Table 26, indicating a consistent but secondary influence on model decisions relative to SimCLR embeddings and clinically guided handcrafted features. Transfer-learning features show the smallest average SHAP magnitude, suggesting a limited supportive role, primarily in minority and edge-case classifications rather than dominant decision drivers.
SHAP-based attributions quantify the statistical contribution of features to the trained classifier’s predictions and do not constitute evidence of clinical correctness or diagnostic validity. Accordingly, SHAP results are interpreted strictly as model-centric explanations. Any reference to clinical interpretability reflects post hoc consistency with established electrophysiological principles, rather than independent clinical validation.
It is important to note that SHAP-based attributions quantify statistical influence within the trained model and do not constitute direct clinical validation; clinical interpretability is inferred by consistency with established electrophysiological principles rather than independently validated diagnostic criteria.
SHAP values were computed on a stratified random subset of 5000 beats drawn from the held-out test set, with class proportions preserved to ensure representation of minority arrhythmias. No manual curation or morphology-based selection was applied. To enable interpretable comparison across heterogeneous feature groups, SHAP values were aggregated at the feature-block level by computing the mean absolute SHAP value across all dimensions within each block, including all SimCLR embedding dimensions.
SHAP variability across individual samples, leads, and rare arrhythmia classes was not summarized using confidence intervals due to the high dimensionality of the fused feature space and limited per-class sample sizes for certain categories. Consequently, reported SHAP values reflect average attribution trends rather than guaranteed importance for every class or individual prediction, with higher variance expected for rare arrhythmias.
Feature importance was computed using SHAP on a stratified subset of 5000 beats from the held-out test set, ensuring proportional inclusion of frequent and minority classes. SHAP analysis was applied to the Random Forest classifier operating on the fused feature space, providing model-centric attribution rather than clinical validation. As reported in Table 27, SimCLR embeddings and clinically guided handcrafted features contributed most strongly to predictions, followed by graph-based and wavelet features.
Table 27. Normalized modality-level contribution across arrhythmia classes based on aggregated absolute SHAP values.
The table reports normalized modality-level contributions derived from aggregated absolute SHAP values across arrhythmia classes. SimCLR representations dominate across categories, particularly for PVC detection, indicating sensitivity to subtle ventricular morphology. Handcrafted electrophysiological features contribute most to bundle branch block classification, consistent with interval- and duration-based clinical criteria, while wavelet and graph features provide stable auxiliary contributions reflecting non-stationary frequency and inter-lead dependency modeling.
To assess functional relevance, SHAP attributions were interpreted alongside feature ablation experiments. Feature families with higher SHAP contributions (SimCLR and handcrafted features) produced the largest performance degradation when removed, whereas lower-SHAP feature blocks caused proportionally smaller declines. This alignment supports the internal consistency of the interpretability analysis without implying causal or clinical validation.
Expert review was used qualitatively to assess whether features highlighted by SHAP corresponded to recognizable ECG morphology (e.g., interval changes, waveform distortion) in representative cases. This review served as a plausibility check rather than a quantitative validation and was not used to optimize the model or select features.
Importantly, SHAP-based feature attribution is used exclusively as supportive model-interpretability evidence and does not constitute clinical validation. Per-sample or per-class SHAP variability was not exhaustively reported due to the high dimensionality of the fused feature space; reported values, therefore, reflect average attribution trends rather than guarantees for individual predictions or rare arrhythmias. Consistency between SHAP rankings and ablation outcomes provides a quantitative internal check: feature groups with higher aggregated SHAP contributions (e.g., SimCLR embeddings and handcrafted descriptors) also induce the largest macro F1 degradation when removed. Expert review was applied only as a qualitative plausibility check to confirm that highly attributed features correspond to recognizable ECG morphology in representative cases, without influencing model training, feature selection, or performance reporting.
Notably, feature groups with higher aggregated SHAP contributions correspond to components whose removal produces the largest macro F1 degradation in the ablation study, providing an internal consistency check between attribution and functional importance.
The fused 2420-dimensional feature vector SimCLR: 2048-D was evaluated for redundancy using pairwise Pearson correlations on a stratified subset n = 10 , 000 . Inter-family correlations were low: SimCLR vs. handcrafted r = 0.21 , SimCLR vs. wavelet r = 0.18 , SimCLR vs. graph r = 0.15 , and handcrafted vs. wavelet r = 0.23 . The highest correlation, SimCLR vs. transfer, r = 0.41 , reflects both being learned representations.
SHAP importance scores shown in Table 26 indicate complementary contributions across modalities: SimCLR (0.21), handcrafted (0.17), graph (0.11), wavelet (0.08), and transfer (0.05). Ablation results reported in Table 28 further show that removing any feature family degrades performance, with SimCLR removal producing the largest drop, Macro– F 1 : 0.9996 → 0.90. The Random Forest classifier’s random subspace mechanism inherently accommodates high-dimensional sparse inputs, reducing overfitting risk.
Table 28. Detailed ablation results.

3.10. Ablation Studies

An ablation analysis was conducted to evaluate the relative contribution of each major pipeline component under strictly patient-level data separation. As summarized in Table 28, the removal of SimCLR-based representations results in the greatest performance degradation, highlighting the importance of self-supervised representation learning for robust heartbeat characterization. Other components, including data augmentation, graph-based features, ensemble fusion, and attention mechanisms, contribute incremental but consistent improvements.
While the full pipeline achieves near-saturation performance under controlled experimental conditions, these results should be interpreted as reflecting internal consistency on curated datasets rather than definitive evidence of real-world robustness. Accordingly, the ablation study is intended to demonstrate relative component importance rather than absolute performance guarantees, and conclusions regarding generalizability are supported primarily by external validation experiments reported separately.
The ablation results for different feature fusion strategies. Direct concatenation achieves the best overall performance in macro F1, minority class recall, and calibration error, while attention-based and weighted linear fusion show modest degradation, especially for minority arrhythmias. This indicates that concatenation effectively preserves complementary information with minimal optimization complexity, supporting stable and transparent clinical deployment.
An ablation study isolated the contribution of each synthetic augmentation component. The full pipeline (SMOTE + GAN) served as the baseline, achieving a macro-F1 score of 0.9996. Removing SMOTE while retaining GAN reduced Macro– F 1 to 0.992, with recall for the minority Fusion class dropping from 0.99 to 0.94. Removing GAN while retaining SMOTE caused a smaller decrease to 0.998. Removing both synthetic techniques degraded Macro– F 1 to 0.981 and increased calibration error ECE from 0.018 to 0.04. The Fréchet ECG Distance (FED) between real and accepted GAN samples was 0.21 ± 0.08 ; 18% of raw GAN outputs were rejected by the physiological post-filter. Cost-sensitive learning, tested as an alternative, achieved a Macro– F 1 of 0.98, confirming the utility but not indispensability of GAN/SMOTE.

3.11. Computational Efficiency and Resource Analysis

Reported inference times cover complete prediction, including ECG preprocessing, SimCLR embedding, and Random Forest inference. SimCLR pretraining is offline, and preprocessing adds negligible overhead; thus, the reported timings reflect realistic near-real-time deployment, as shown in Table 29.
Table 29. Performance comparison of different feature fusion strategies.
The hybrid model is computationally efficient in spite of its multi-component architecture. As demonstrated in Table 30, training takes just 1.2 h on modest GPU resources, with an inference latency of 22 ms, making it appropriate for real-time clinical deployment.
Table 30. Training and inference resource comparison.
The reported performance F1 ≈   0.9996 is obtained under strict patient-level evaluation and should be interpreted in the context of representation learning rather than parameter-to-sample scaling alone. Although the SimCLR encoder contains approximately 25.6 × 10 6 parameters and is trained on ∼ 1.2 × 10 5 augmented views, contrastive pretraining optimizes shared representations across paired transformations rather than fitting labels, reducing effective supervised capacity. The downstream classifier is a non-parametric Random Forest trained on frozen embeddings, further limiting overfitting by decoupling representation learning from label optimization. These design choices promote stable feature reuse while not eliminating dataset-specific bias.
External validation supports this interpretation, with consistent performance across independent datasets PTB-XL, Chapman, INCART; F1 =   0.92 – 0.94 and robustness under noise perturbations F1  >   0.975 . Ablation experiments show marked degradation when SimCLR embeddings are removed, F1  ≈   0.90 , confirming reliance on physiologically meaningful representations rather than dataset-specific cues. Latent-space visualizations, t-SNE, and UMAP further demonstrate well-separated arrhythmia clusters.
The reported metrics in Table 17, Table 18, Table 19 and Table 20 represent upper-bound estimates under controlled retrospective evaluation on curated public datasets. Real-world ECG interpretation introduces additional variability, including electrode placement errors, motion artifacts, comorbidities, and annotation ambiguity, which are not fully captured by benchmark datasets. Accordingly, these results demonstrate methodological feasibility and representation effectiveness rather than error-free clinical performance.
Inference latency of 22 ms decomposes into preprocessing (3 ms), SimCLR embedding (16 ms on RTX 3080), and Random Forest (3 ms). The CNN forward pass is the primary bottleneck. On ARM Cortex-M4 without acceleration, SimCLR inference would increase to 150–200 ms, exceeding real-time requirements for 360 Hz streaming (2.78 ms/sample). Three factors enable deployment: (i) heartbeat-based operation requires only 1–2 inferences per second; (ii) knowledge distillation to ViT-Tiny (5.8M parameters) reduces inference to 8 ms on mobile NPUs; (iii) client–server architecture offloads computation. For edge-only deployment, the 1D-CNN baseline (8 ms, 0.4M parameters, Macro-F1 = 0.96) provides a viable alternative.

3.12. Deployment Interface Illustration (Non-Analytical)

Figure 7, Figure 8, Figure 9, Figure 10, Figure 11 and Figure 12 illustrate example screenshots of the RhythmX™ deployment interface, demonstrating real-time classification outputs and user interaction flow. These figures are provided solely to illustrate system deployment and usability and are not intended for scientific, clinical, or quantitative ECG interpretation.
Figure 7. Class N (Normal Beat) Example screenshot of the RhythmX™ deployment interface showing real-time classification output. Displayed waveforms are normalized for visualization only and do not represent calibrated ECG measurements or analytical signals.
Figure 8. Class S (Supraventricular Beat) Example screenshot of the RhythmX™ deployment interface showing real-time classification output. Displayed waveforms are normalized for visualization only and do not represent calibrated ECG measurements or analytical signals.
Figure 9. Class V (Ventricular Beat) Example screenshot of the RhythmX™ deployment interface showing real-time classification output. Displayed waveforms are normalized for visualization only and do not represent calibrated ECG measurements or analytical signals.
Figure 10. Class F (Fusion Beat) Example screenshot of the RhythmX™ deployment interface showing real-time classification output. Displayed waveforms are normalized for visualization only and do not represent calibrated ECG measurements or analytical signals.
Figure 11. Class Q (Unknown/Artifact Beat) Example screenshot of the RhythmX™ deployment interface showing real-time classification output. Displayed waveforms are normalized for visualization only and do not represent calibrated ECG measurements or analytical signals.
Figure 12. Class R (Paced/Other Rhythms) Example screenshot of the RhythmX™ deployment interface showing real-time classification output. Displayed waveforms are normalized for visualization only and do not represent calibrated ECG measurements or analytical signals.
The displayed waveforms are visualization-normalized for interface clarity and do not preserve calibrated voltage units, lead-specific scaling, or raw preprocessing states. As such, these screenshots are not linked to specific ECG database identifiers, recording segments, or beat extraction indices, and they should not be interpreted as evidence of electrophysiological analysis or model explainability.
All scientific analyses, including beat extraction, preprocessing, feature learning, interpretability (SHAP, Grad-CAM), and performance evaluation, are conducted on raw and processed ECG signals and are reported separately in the results. The deployment interface is shown only to demonstrate translational feasibility and is intentionally decoupled from methodological validation.

4. Discussion

This study presents RhythmX™, a hybrid and interpretable framework for multiclass ECG heartbeat classification that integrates self-supervised representation learning with clinically informed feature fusion and ensemble-based decision modeling. SimCLR-based pretraining enables the extraction of invariant morphological and rhythm-aware representations from unlabeled ECG signals, substantially reducing dependence on annotated data. These embeddings are fused with handcrafted, wavelet, graph-based, and transfer-learning features to jointly capture complementary electrophysiological characteristics.
A Random Forest classifier serves as the final decision layer, improving robustness under class imbalance and inter-patient variability while supporting feature-level attribution and uncertainty-aware predictions. Consistent performance across multiple benchmark datasets indicates that the hybrid fusion strategy captures physiologically meaningful patterns rather than dataset-specific artifacts.
Signal quality control is applied exclusively during training as a representation regularization mechanism rather than a deployment-time exclusion rule. The autoencoder-based filtering suppresses severely corrupted or incomplete beats to stabilize contrastive learning and prevent artifact encoding. During deployment, all incoming heartbeats, including noisy segments, are processed without rejection. Robustness beyond high-SNR conditions is validated through noise perturbation experiments and external testing on heterogeneous ECG cohorts (INCART, PTB-XL, Chapman–Shaoxing), confirming that performance does not rely on idealized signal quality.
This study is retrospective and based on harmonized public datasets; therefore, label alignment and selection bias may limit generalizability. Image rasterization introduces a spatial prior and may attenuate high-frequency features, although comparative 1D–2D experiments were conducted to assess this effect. Synthetic augmentation (SMOTE/GAN), applied only during training and physiologically filtered, supports class balance but does not replace real minority-class data. Finally, interpretability analyses (Grad-CAM, SHAP, CRI) provide model-centric plausibility rather than prospective clinical validation.
Interpretability is embedded as a core design principle via feature attribution and region-based analysis aligned with established electrophysiological knowledge, supporting clinical trust. RhythmX™ is intended as a decision-support system that complements clinical expertise rather than replacing it. While strong retrospective performance is demonstrated, the relatively high parameter-to-sample ratio and reliance on curated datasets motivate future validation on larger, more diverse, and prospectively collected cohorts. Future work will also extend the framework toward temporal and multi-lead modeling. Overall, RhythmX™ provides a scalable and clinically aligned foundation for trustworthy ECG-based decision-support systems.

Comparison with Existing Techniques

Table 31 summarizes representative ECG classification methods, including traditional ML, supervised DL, semi-supervised, and self-supervised approaches. Prior methods often excel on specific datasets but vary in generalizability, noise robustness, and interpretability. Our hybrid model, which combines SimCLR-based self-supervised learning with an interpretable Random Forest ensemble, achieves high MIT-BIH test accuracy and strong cross-dataset performance while providing transparent multiclass decision-making via SHAP and Grad-CAM.
Table 31. Comparison with existing techniques for ECG classification.
We note that direct comparisons across studies are limited by differences in datasets, preprocessing, and train/test splits, and interpretability has been addressed in prior work using feature-attribution methods. Table 31 provides contextual benchmarking only; due to substantial differences in datasets, class taxonomies, preprocessing, and validation protocols, neither performance nor interpretability superiority over prior studies is implied.

5. Conclusions

This work presents a hybrid research framework integrating contrastive self-supervised representation learning (SimCLR) with interpretable ensemble models for multiclass ECG classification. The proposed pipeline achieves high retrospective performance on the MIT–BIH dataset, F 1 = 0.9996 , under controlled experimental conditions, demonstrating methodological effectiveness rather than clinical readiness. Interpretability analyses using SHAP, Grad-CAM, and counterfactual explanations are employed to support examination of model behavior and feature utilization, not to establish diagnostic correctness. All results are dataset-specific and derived from retrospective public data; limitations include restricted dataset diversity, lack of prospective or real-world validation, and absence of clinical outcome assessment. Consequently, the findings should be interpreted as preliminary and research-oriented, with further validation required before any clinical or deployment-related conclusions can be drawn.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/technologies14030148/s1, S1. Theoretical Analysis of Multimodal Feature Complementarity and Fusion Strategy. S2. Feature Fusion and Classifier Input. Table S1. Unified feature representation. Table S2. Variable definitions used in feature vector construction. Table S3. Illustrative example of SHAP aggregation for SimCLR embeddings.

Author Contributions

Conceptualization: A.; Methodology: A.; Software: A., H.A.S. and M.M.; Validation: A., Z.F. and H.A.S.; Formal analysis: A.; Investigation: A., H.A.S. and M.M.; Resources: C.G.S.-M., M.J.T.R. and R.Q.T.; Data curation: A., H.A.S. and M.M.; Writing—original draft preparation: A.; Writing—review and editing: Z.F., C.G.S.-M., M.J.T.R. and R.Q.T.; Visualization: A.; Supervision: C.G.S.-M. and R.Q.T.; Project administration: R.Q.T.; Funding acquisition: R.Q.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The datasets analyzed in this study are publicly available. The MIT-BIH Arrhythmia Database [31,32] is accessible via PhysioNet at https://physionet.org/content/mitdb/ (accessed on 2 February 2025) and https://doi.org/10.1109/51.932724 (accessed on 2 February 2025). External validation was conducted on three independent datasets: PTB-XL [33] (https://doi.org/10.13026/kfzx-aw45, accessed on 2 February 2025), Chapman–Shaoxing [34] (https://doi.org/10.6084/m9.figshare.11698521.v2, accessed on 2 February 2025), and INCART [35] (https://physionet.org/content/incartdb/, accessed on 2 February 2025). All data supporting the findings of this study are included within the article or available from the corresponding repositories.

Acknowledgments

This work was partially funded by the Instituto Politécnico Nacional under grants 20251107, 20251101, and 20253911 and the Secretaría de Educación, Ciencia, Tecnología e Innovación de la Ciudad de México with the project “Aplicación del cómputo urbano para analizar la dinámica urbana y la sustentabilidad de las grandes ciudades” (CM-SECTEI/197/2025).

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

CVDCardiovascular DiseasesSSLSelf-Supervised Learning
SimCLRSimple Framework for Contrastive Learning of Visual RepresentationsNT-XentNormalized Temperature-scaled Cross-Entropy Loss
PTB-XLPhysikalisch-Technische Bundesanstalt eXtended ECG DatabaseDWTDiscrete Wavelet Transform
GFTGraph Fourier TransformAFib/AFAtrial Fibrillation
BBBBundle Branch BlockSESqueeze-and-Excitation
ASPPAtrous Spatial Pyramid PoolingSWAStochastic Weight Averaging
LRPLayer-wise Relevance Propagationt-SNEt-distributed Stochastic Neighbor Embedding
UMAPUniform Manifold Approximation and ProjectionFEDFréchet ECG Distance
RF-QRFRandom Forest with Quantile Regression ForestHIPAAHealth Insurance Portability and Accountability Act
MGNNMultiscale Graph Neural NetworkMLMCLMulti-Level Self-Supervised Contrastive Learning
tFRTime–Frequency RepresentationQRSQRS Complex
PR/PQPR (PQ) IntervalRR IntervalR–R Interval
W&BWeights & BiasestFRTime–Frequency Representation

References

  1. Ayano, Y.M.; Schwenker, F.; Dufera, B.D.; Debelee, T.G. Interpretable machine learning techniques in ECG-based heart disease classification: A systematic review. Diagnostics 2022, 13, 111. [Google Scholar] [CrossRef] [Scilit]
  2. Hernandez-Romero, I.; Molero, R.; Fambuena-Santos, C.; Herrero-Martin, C.; Climent, A.M.; Guillem, M.S. Electrocardiographic imaging in the atria. Med. Biol. Eng. Comput. 2023, 61, 879–896. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Perez, M.V.; Mahaffey, K.W.; Hedlin, H.; Rumsfeld, J.S.; Garcia, A.; Ferris, T.; Balasubramanian, V.; Russo, A.M.; Rajmane, A.; Cheung, L.; et al. Large-scale assessment of a smartwatch to identify atrial fibrillation. N. Engl. J. Med. 2019, 381, 1909–1917. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Christov, I.; Gómez-Herrero, G.; Krasteva, V.; Jekova, I.; Gotchev, A.; Egiazarian, K. Comparative study of morphological and time-frequency ECG descriptors for heartbeat classification. Med. Eng. Phys. 2006, 28, 876–887. [Google Scholar] [CrossRef] [Scilit]
  5. Wagner, G.S.; Macfarlane, P.; Wellens, H.; Josephson, M.; Gorgels, A.; Mirvis, D.M.; Pahlm, O.; Surawicz, B.; Kligfield, P.; Childers, R.; et al. AHA/ACCF/HRS recommendations for the standardization and interpretation of the electrocardiogram: Part VI: Acute ischemia/infarction. J. Am. Coll. Cardiol. 2009, 53, 1003–1011. [Google Scholar] [CrossRef] [Scilit]
  6. Kiranyaz, S.; Ince, T.; Gabbouj, M. Real-time patient-specific ECG classification by 1-D convolutional neural networks. IEEE Trans. Biomed. Eng. 2016, 63, 664–675. [Google Scholar] [CrossRef] [Scilit]
  7. Acharya, U.R.; Fujita, H.; Oh, S.L.; Hagiwara, Y.; Tan, J.H.; Adam, M. Application of deep convolutional neural network for automated detection of myocardial infarction using ECG signals. Inf. Sci. 2017, 415, 190–198. [Google Scholar] [CrossRef] [Scilit]
  8. Ma, L.; Zhang, F. A Novel Real-Time Detection and Classification Method for ECG Signal Images Based on Deep Learning. Sensors 2024, 24, 5087. [Google Scholar] [CrossRef] [Scilit]
  9. Tao, R.; Wang, L.; Rong, X.Y.; Liu, Y. IM ECG: An interpretable framework for arrhythmia detection using multi lead ECG. Expert Syst. Appl. 2023, 237, 121497. [Google Scholar] [CrossRef] [Scilit]
  10. Daydulo, Y.D.; Thamineni, B.L.; Dawud, A.A. Cardiac arrhythmia detection using deep learning approach and time frequency representation of ECG signals. BMC Med. Inform. Decis. Mak. 2023, 23, 232. [Google Scholar] [CrossRef] [Scilit]
  11. Lee, E.; Ito, S.; Miranda, W.R.; Lopez-Jimenez, F.; Kane, G.C.; Asirvatham, S.J.; Noseworthy, P.A.; Friedman, P.A.; Carter, R.E.; Borlaug, B.A.; et al. Artificial intelligence enabled ECG for left ventricular diastolic function and filling pressure. npj Digit. Med. 2024, 7, 4. [Google Scholar] [CrossRef] [Scilit]
  12. Boulif, A.; Ananou, B.; Ouladsine, M.; Delliaux, S. A literature review: ECG based models for arrhythmia diagnosis using artificial intelligence techniques. Bioinf. Biol. Insights 2022, 17, 1–29. [Google Scholar]
  13. Le, D.; Truong, S.; Brijesh, P.; Adjeroh, D.A.; Le, N. sCL ST: Supervised contrastive learning with semantic transformations for multiple lead ECG arrhythmia classification. IEEE J. Biomed. Health Inform. 2023, 27, 2818–2828. [Google Scholar] [CrossRef] [Scilit]
  14. Oh, J.; Chung, H.; Kwon, J.M.; Hong, D.G.; Choi, E. Lead agnostic self-supervised learning for local and global representations of ECG. In Proceedings of the Conference on Health, Inference, and Learning, Online, 7 April 2022. [Google Scholar]
  15. Soltanieh, S.; Hashemi, J.; Etemad, A. In distribution and out of distribution self supervised ECG representation learning for arrhythmia detection. arXiv 2023, arXiv:2304.06427. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Kuila, S.; Dhanda, N.; Joardar, S. ECG signal classification to detect heart arrhythmia using ELM and CNN. Multimed. Tools Appl. 2023, 82, 29857–29881. [Google Scholar] [CrossRef] [Scilit]
  17. Kachuee, M.; Fazeli, S.; Sarrafzadeh, M. ECG heartbeat classification: A deep transferable representation. In Proceedings of the IEEE International Conference on Healthcare Informatics (ICHI), New York, NY, USA, 4–7 June 2018; pp. 443–444. [Google Scholar]
  18. McKeen, K.; Masood, S.; Toma, A.; Rubin, B.; Wang, B. ECG FM: An Open Electrocardiogram Foundation Model. Jamia Open 2024, 8, ooaf122. [Google Scholar] [CrossRef] [Scilit]
  19. Naydenov, S.; Jekova, I.; Krasteva, V. Recognition of supraventricular arrhythmias in Holter ECG recordings by ECHOView color map: A case series study. J. Cardiovasc. Dev. Dis. 2023, 10, 360. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Krasteva, V.; Stoyanov, T.; Naydenov, S.; Schmid, R.; Jekova, I. Detection of atrial fibrillation in Holter ECG recordings by ECHOView images: A deep transfer learning study. Diagnostics 2025, 15, 865. [Google Scholar] [CrossRef] [Scilit]
  21. Li, J.; Silva, C.L.; Smith, R.A.; Jones, S.H.; Chen, H. Frozen Language Model Helps ECG Zero Shot Learning. In Proceedings of the 7th International Conference on Medical Imaging with Deep Learning, Nashville, TN, USA, 10–12 July 2023; Volume 227, pp. 402–415. [Google Scholar]
  22. Basak, P.; Patel, S.; Eldin, M.N.; Khan, S.; Smith, P. A novel deep learning technique for morphology preserved fetal ECG extraction from mother ECG using 1D CycleGAN. Expert Syst. Appl. 2023, 235, 121196. [Google Scholar] [CrossRef] [Scilit]
  23. Ragazzoni, G.L.; Gonzales, C.S.M.; Merlo, E.M.; Silva, M.C.P.; Shan, F.D. How to evaluate resting ECG and imaging in children practising sport: A critical review and proposal of an algorithm for ECG interpretation. Eur. J. Prev. Cardiol. 2022, 30, 375–383. [Google Scholar] [CrossRef] [Scilit]
  24. Kang, D.; Yun, T. Bimodal CNN for cardiovascular disease classification by co training ECG grayscale images and scalograms. Sci. Rep. 2023, 13, 2937. [Google Scholar] [CrossRef] [Scilit]
  25. Anbalagan, T.; Nath, M.K.; Vijayalakshmi, D.; Anbalagan, A. Analysis of various techniques for ECG signal in healthcare, past, present and future. Biomed. Eng. Adv. 2023, 6, 100089. [Google Scholar] [CrossRef] [Scilit]
  26. Dadib, E.; Hassan, M.E.; Patel, A.J.; Imam, F. Synthetic ECG Signal Generation Using Probabilistic Diffusion Models. Digit. Object Identif. 2023, 11. [Google Scholar] [CrossRef] [Scilit]
  27. Zhang, M.; Jin, H.; Zhao, B.; Li, W. Deep learning modeling of cardiac arrhythmia classification on information feature fusion image with attention mechanism. Entropy 2023, 15, 1264. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Sadad, T.; Ibrahim, M.S.; Singh, I.K.; Khan, A.R.; Ahmed, I. Efficient classification of ECG images using a lightweight CNN with attention module and IoT. Sensors 2023, 23, 7697. [Google Scholar] [CrossRef] [Scilit]
  29. Mohebbian, M.R.; Marateb, H.R.; Wahid, K.A. Semi supervised active transfer learning for fetal ECG arrhythmia detection. Comput. Methods Programs Biomed. Update 2023, 3, 100096. [Google Scholar] [CrossRef] [Scilit]
  30. Aversano, L.; Marciani, M.B.; Renzis, C.D.; Pino, M.R. Early diagnosis of cardiac diseases using ECG images and CNN 2D. Procedia Comput. Sci. 2023, 225, 2866–2875. [Google Scholar] [CrossRef] [Scilit]
  31. Moody, G.B.; Mark, R.G. The impact of the MIT-BIH Arrhythmia Database. In IEEE Engineering in Medicine and Biology Magazine; IEEE: Piscataway, NJ, USA, 2001; Volume 20, pp. 45–50. [Google Scholar] [CrossRef] [Scilit]
  32. Goldberger, A.L.; Amaral, L.A.N.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.E.; Moody, G.B.; Peng, C.-K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation 2000, 101, e215–e220. [Google Scholar] [CrossRef] [Scilit]
  33. Wagner, P.; Strodthoff, N.; Bousseljot, R.; Samek, W.; Schaeffter, T. PTB-XL, a large publicly available electrocardiography dataset (version 1.0.3). PhysioNet 2022, RRID:SCR_007345. [Google Scholar] [CrossRef]
  34. Scientific Data Curation Team. Metadata record for: A 12-lead electrocardiogram database for arrhythmia research covering more than 10,000 patients (version 2). figshare 2020. [Google Scholar] [CrossRef]
  35. St. Petersburg Institute of Cardiological Technics (INCART). St. Petersburg INCART 12-Lead Arrhythmia Database (Version 1.0.0). PhysioNet. 2008. Available online: https://physionet.org/content/incartdb/ (accessed on 14 October 2025).
  36. Rajpurkar, P.; Hannun, J.; Haghpanahi, M.; Bourn, C.; Ng, A. Cardiologist level arrhythmia detection with convolutional neural networks. Nat. Med. 2019, 25, 65–69. [Google Scholar]
  37. Dwarakanath, B.; Latha, M.; Annamalai, R.; Jagadish, S.K. A novel feature selection with hybrid deep learning based heart disease detection and classification in the e-healthcare environment. Comput. Intell. Neurosci. 2022, 2022, 1167494. [Google Scholar] [CrossRef] [Scilit]
  38. Chen, T.; Kornblith, S.; Norouzi, M.; Hinton, G. A simple framework for contrastive learning of visual representations. In Proceedings of the 37th International Conference on Machine Learning, Virtual, 13–18 July 2020; pp. 1597–1607. [Google Scholar]
  39. Dissanayake, K.; Md Johar, M.G. Heart disease diagnostics using meta-learning-based hybrid feature selection. Appl. Comput. Intell. Soft Comput. 2024, 2024, 8800497. [Google Scholar] [CrossRef] [Scilit]
  40. Atitallah, N.; Dalou, F.; Al-Ghamdi, B.A.A.R. Advanced Self-Supervised Learning for Enhanced Heart Disease Prediction. In Proceedings of the 2025 12th International Conference on Wireless Networks and Mobile Communications (WINCOM), Riyadh, Saudi Arabia, 25–27 November 2025; pp. 1–7. [Google Scholar]
  41. Krishna, R.; Das, K.; Meena, H.K.; Pachori, R.B. Spectral graph wavelet transform-based feature representation for automated classification of emotions from EEG signal. IEEE Sens. J. 2023, 23, 31229–31236. [Google Scholar] [CrossRef] [Scilit]
  42. Minhas, F.U.A.A.; Arif, M. Robust electrocardiogram (ECG) beat classification using discrete wavelet transform. Physiol. Meas. 2008, 29, 555–570. [Google Scholar] [CrossRef] [Scilit]
  43. Asgharzadeh-Bonab, A.; Amirani, M.C.; Mehri, A. Spectral entropy and deep convolutional neural network for ECG beat classification. Biocybern. Biomed. Eng. 2020, 40, 691–700. [Google Scholar] [CrossRef] [Scilit]
  44. Hong, S.; Zhang, W.; Sun, C.; Zhou, Y.; Li, H. Practical lessons on 12-lead ECG classification: Meta-analysis of methods from PhysioNet/computing in cardiology challenge 2020. Front. Physiol. 2022, 12, 811661. [Google Scholar] [CrossRef] [Scilit]
  45. Thite, T.G.; Jagtap, S.K. Reliable Automated ECG Arrhythmia Classification Using Reinforced VGG-27 Neural Network Framework. Int. J. Adapt. Control Signal Process. 2025, 39, 163–176. [Google Scholar] [CrossRef] [Scilit]
  46. Izci, E.; Ozdemir, M.A.; Degirmenci, M.; Akan, A. Cardiac arrhythmia detection from 2D ECG images by using deep learning technique. In Proceedings of the 2019 Medical Technologies Congress (TIPTEKNO), Izmir, Turkey, 3–5 October 2019; pp. 1–4. [Google Scholar]
  47. Huang, J.; Chen, B.; Yao, B.; He, W. ECG arrhythmia classification using STFT based spectrogram and convolutional neural network. IEEE Access 2019, 7, 92880–92888. [Google Scholar] [CrossRef] [Scilit]
  48. Abdalla, F.Y.O.; Wu, L.; Ullah, H.; Ren, G.; Noor, A.; Zhao, Y. ECG arrhythmia classification using artificial intelligence and nonlinear and nonstationary decomposition. Signal Image Video Process. 2019, 13, 275–284. [Google Scholar] [CrossRef] [Scilit]
  49. Guerra, V.M.; Novo, J.; Rouco, J.; Penedo, M.G.; Ortega, M. Heartbeat classification fusing temporal and morphological information via ensemble of classifiers. Biomed. Signal Process. Control 2019, 47, 41–48. [Google Scholar] [CrossRef] [Scilit]
  50. Shi, H.; Wang, H.; Qin, C.; Zhao, L.; Liu, C. An incremental learning system for atrial fibrillation detection based on transfer learning and active learning. Comput. Methods Programs Biomed. 2020, 187, 105219. [Google Scholar] [CrossRef] [Scilit]
  51. CJha, K.; Kolekar, M.H. Cardiac arrhythmia classification using tunable Q wavelet transform based features and support vector machine classifier. Biomed. Signal Process. Control 2020, 59, 101874. [Google Scholar]
  52. Ullah, A.; Anwar, S.M.; Bilal, M.; Mehmood, R.M. Classification of arrhythmia by using deep learning with 2 D ECG spectral image representation. Remote Sens. 2020, 12, 1680. [Google Scholar] [CrossRef] [Scilit]
  53. Seo, H.C.; Oh, S.; Kim, H.; Joo, S. ECG data dependency for atrial fibrillation detection based on residual networks. Sci. Rep. 2021, 11, 18256. [Google Scholar] [CrossRef] [Scilit]
  54. Mathunjwa, B.M.; Lin, Y.T.; Lin, C.H.; Abbod, M.F.; Sadrawi, M.; Shieh, J.S. ECG recurrence plot based arrhythmia classification using two dimensional deep residual CNN features. Sensors 2022, 22, 1660. [Google Scholar] [CrossRef] [Scilit]
  55. Liu, S.; Wang, A.; Deng, X.; Yang, C. MGNN: A multiscale grouped convolutional neural network for efficient atrial fibrillation detection. Comput. Methods Programs Biomed. 2022, 148, 105863. [Google Scholar] [CrossRef] [Scilit]
  56. Wen, H.; Kang, J. A comparative study on neural networks for paroxysmal atrial fibrillation detection from electrocardiography. J. Electrocardiol. 2022, 75, 19–27. [Google Scholar] [CrossRef] [Scilit]
  57. Victor, J.O.; Chew, X.; Khaw, K.W.; Lee, M.H. A cost based dual ConvNet Attention transfer learning model for ECG heartbeat classification. J. Inform. Web Eng. 2023, 2, 90–110. [Google Scholar] [CrossRef] [Scilit]
  58. Zou, Y.; Wang, P.; Du, L.; Chen, X.; Li, Z.; Song, J.; Fang, Z. A multi level multiple contrastive learning method for single lead electrocardiogram atrial fibrillation detection. Bioengineering 2025, 12, 44. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.