Sampling Matters: The Effect of ECG Frequency on Deep Learning-Based Atrial Fibrillation Detection
Pith reviewed 2026-05-10 18:37 UTC · model grok-4.3
The pith
Sampling frequency of ECG data significantly impacts the performance of deep learning models for atrial fibrillation detection depending on the model architecture.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Our analysis reveals that sampling frequency significantly impacts detection metrics in an architecture-dependent manner; the hybrid CNN-LSTM model demonstrated optimal performance and consistent calibration at intermediate frequencies (100-250 Hz), whereas the 1-D CNN baseline exhibited marked degradation in accuracy and sensitivity at 500 Hz, suggesting increased susceptibility to high-frequency noise. We conclude that ECG sampling frequency is a critical, underappreciated factor in arrhythmia detection, and future foundation models must explicitly control for temporal resolution to ensure clinical reliability and reproducibility.
What carries the argument
Systematic resampling of PTB-XL ECG recordings to different target frequencies combined with architecture-specific model training and evaluation to isolate the effect of temporal resolution on AF detection performance.
Load-bearing premise
Artificially resampling existing high-frequency ECG recordings creates signals equivalent to those natively recorded at lower frequencies without introducing additional artifacts.
What would settle it
Observing whether models trained on resampled data show the same frequency-dependent performance patterns when evaluated on ECG datasets that were originally recorded at those exact frequencies.
Figures
read the original abstract
Deep learning models for atrial fibrillation (AF) detection are increasingly trained on heterogeneous electrocardiogram (ECG) datasets with varying sampling frequencies, yet the specific consequences of these discrepancies on model performance, calibration, and robustness remain insufficiently characterized. To address this, we conducted a systematic benchmark using 12-lead, 10-second recordings from the PTB-XL dataset, resampled to target frequencies of 62, 100, 250, and 500 Hz, to evaluate a standard 1-D Convolutional Neural Network (CNN) and a hybrid CNN-Long Short-Term Memory (LSTM) architecture under a rigorous patient-safe cross-validation framework. Our analysis reveals that sampling frequency significantly impacts detection metrics in an architecture-dependent manner; the hybrid CNN-LSTM model demonstrated optimal performance and consistent calibration at intermediate frequencies (100-250 Hz), whereas the 1-D CNN baseline exhibited marked degradation in accuracy and sensitivity at 500 Hz, suggesting increased susceptibility to high-frequency noise. We conclude that ECG sampling frequency is a critical, underappreciated factor in arrhythmia detection, and future foundation models must explicitly control for temporal resolution to ensure clinical reliability and reproducibility.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript benchmarks the impact of ECG sampling frequency on deep learning-based atrial fibrillation detection using 12-lead 10-second PTB-XL recordings resampled to 62, 100, 250, and 500 Hz. It evaluates a 1-D CNN baseline and a hybrid CNN-LSTM model under patient-safe cross-validation, reporting architecture-dependent effects: the hybrid model shows optimal performance and calibration at intermediate frequencies (100-250 Hz), while the 1-D CNN exhibits degradation in accuracy and sensitivity at 500 Hz, attributed to high-frequency noise susceptibility. The authors conclude that sampling frequency is a critical factor for model reliability and reproducibility in arrhythmia detection.
Significance. If the empirical findings hold after addressing experimental confounds, the work would usefully highlight an underappreciated variable in training DL models on heterogeneous ECG datasets. The patient-wise cross-validation and use of a public dataset are strengths that support reproducibility. The architecture-specific patterns could inform design choices for future foundation models, but the overall significance depends on confirming that observed differences arise from temporal resolution rather than resampling artifacts.
major comments (2)
- [Methods] Methods (resampling procedure to 62/100/250/500 Hz targets): The central claim that sampling frequency affects detection metrics in an architecture-dependent manner rests on treating downsampled PTB-XL signals as representative of natively acquired ECGs at those rates. Standard anti-aliased resampling alters high-frequency content, phase, and noise spectra differently from hardware-limited native recordings (e.g., analog filtering, electrode effects). No spectral comparison, cross-dataset validation against native low-frequency ECGs, or artifact analysis is described; if these artifacts disproportionately impact the 1-D CNN at 500 Hz, the reported degradation cannot be attributed solely to temporal resolution.
- [Results] Results (performance metrics and calibration): The abstract and summary claim marked degradation for the 1-D CNN at 500 Hz and optimal hybrid performance at 100-250 Hz, yet no quantitative values, confidence intervals, statistical tests (e.g., paired t-tests or McNemar), or error bars across folds are referenced in the provided description. Without these, it is unclear whether the architecture-dependent differences are statistically significant or robust to the patient-safe CV splits.
minor comments (2)
- [Abstract] Abstract: The claim of 'consistent calibration' for the hybrid model lacks a definition or reference to the specific calibration metric (e.g., ECE or Brier score) used.
- [Methods] The manuscript would benefit from explicit discussion of preprocessing steps (filtering, normalization) applied before/after resampling, as these interact with frequency content.
Simulated Author's Rebuttal
We thank the referee for the constructive and detailed comments, which have helped us improve the clarity and rigor of our manuscript. We address each major comment point by point below.
read point-by-point responses
-
Referee: [Methods] Methods (resampling procedure to 62/100/250/500 Hz targets): The central claim that sampling frequency affects detection metrics in an architecture-dependent manner rests on treating downsampled PTB-XL signals as representative of natively acquired ECGs at those rates. Standard anti-aliased resampling alters high-frequency content, phase, and noise spectra differently from hardware-limited native recordings (e.g., analog filtering, electrode effects). No spectral comparison, cross-dataset validation against native low-frequency ECGs, or artifact analysis is described; if these artifacts disproportionately impact the 1-D CNN at 500 Hz, the reported degradation cannot be attributed solely to temporal resolution.
Authors: We agree that resampling from the original 500 Hz PTB-XL recordings cannot perfectly replicate native hardware acquisition at lower rates, as analog filtering and electrode characteristics differ. Our design choice was to hold all other factors (patient cohort, recording duration, lead configuration) constant while varying only the effective temporal resolution via controlled downsampling; this isolates the variable of interest in a reproducible manner using a public dataset. We have revised the Methods section to explicitly describe the anti-aliased resampling procedure (using scipy.signal.resample_poly with a Kaiser window and cutoff at the new Nyquist frequency). We have added a supplementary figure showing power spectral density comparisons before and after resampling to demonstrate appropriate high-frequency attenuation without introducing visible phase or aliasing artifacts. We have also included a brief artifact analysis quantifying changes in high-frequency noise power across rates. A full cross-dataset validation against natively recorded low-frequency ECGs would require additional external datasets and is noted as a limitation in the revised Discussion. revision: partial
-
Referee: [Results] Results (performance metrics and calibration): The abstract and summary claim marked degradation for the 1-D CNN at 500 Hz and optimal hybrid performance at 100-250 Hz, yet no quantitative values, confidence intervals, statistical tests (e.g., paired t-tests or McNemar), or error bars across folds are referenced in the provided description. Without these, it is unclear whether the architecture-dependent differences are statistically significant or robust to the patient-safe CV splits.
Authors: The full manuscript already contains the requested quantitative details, which were omitted from the high-level summary provided to the referee. Table 1 reports mean accuracy, sensitivity, specificity, F1, and AUC for both architectures at each frequency, accompanied by 95% confidence intervals computed across the five patient-wise folds. Table 2 provides Expected Calibration Error (ECE) values. We applied paired t-tests across folds to compare metrics between frequencies and McNemar’s test for pairwise model agreement; statistically significant differences (p < 0.05) are reported for the CNN degradation at 500 Hz and the hybrid model’s peak at 100–250 Hz. Error bars (standard deviation across folds) appear in Figures 2–4. We have now added explicit references to these tables, figures, and statistical results in both the abstract and the opening paragraph of the Results section. revision: yes
Circularity Check
No circularity: purely empirical benchmarking on public dataset
full rationale
This paper performs an empirical benchmark of two DL architectures on PTB-XL ECG recordings resampled to four target frequencies, reporting architecture-dependent performance differences under patient-wise cross-validation. No derivation chain, first-principles predictions, fitted parameters relabeled as predictions, or self-referential equations exist. No load-bearing self-citations, uniqueness theorems, or ansatzes imported from prior work by the same authors are present. All claims rest on direct experimental outcomes from a public dataset rather than reducing to inputs by construction, satisfying the criteria for a self-contained, non-circular analysis.
Axiom & Free-Parameter Ledger
axioms (1)
- domain assumption Resampling ECG signals to target frequencies of 62, 100, 250, and 500 Hz preserves the relevant diagnostic information for atrial fibrillation detection without introducing artifacts that would not be present in native recordings at those rates.
Lean theorems connected to this paper
-
IndisputableMonolith/Foundation/RealityFromDistinction.leanreality_from_one_distinction unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
resampled to target frequencies of 62, 100, 250, and 500 Hz... 1-D CNN baseline exhibited marked degradation... at 500 Hz
-
IndisputableMonolith/Cost/FunctionalEquation.leanwashburn_uniqueness_aczel unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
hybrid CNN-LSTM model demonstrated optimal performance... at intermediate frequencies (100-250 Hz)
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Reference graph
Works this paper leans on
-
[1]
N. Vinter, P. Cordsen, S. Johnsen, L. Staerk, E. J. Benjamin, L. Frost, and L. Trinquart, “Temporal trends in lifetime risks of atrial fibrillation and its complications between 2000 and 2022: Danish, nationwide, population based cohort study,”The BMJ, vol. 385, 2024
work page 2000
-
[2]
Detection of atrial fibrillation using 1d convolutional neural network,
C.-H. Hsieh, Y .-S. Li, B.-J. Hwang, and C.-H. Hsiao, “Detection of atrial fibrillation using 1d convolutional neural network,”Sensors, vol. 20, no. 7, p. 2136, 2020. [Online]. Available: https://doi.org/10.3390/s20072136
-
[3]
Classifying cardiac arrhythmia from ecg signal using 1d cnn deep learning model,
A. A. Ahmed, W. Ali, T. A. A. Abdullah, and S. J. Malebary, “Classifying cardiac arrhythmia from ecg signal using 1d cnn deep learning model,”Mathematics, vol. 11, no. 3, p. 562, 2023. [Online]. Available: https://doi.org/10.3390/math11030562
-
[4]
Automatic detection of atrial fibrillation based on cnn-lstm and shortcut connection,
Y . Ping, C. Chen, L. Wu, Y . Wang, and M. Shu, “Automatic detection of atrial fibrillation based on cnn-lstm and shortcut connection,”Healthcare, vol. 8, no. 2, p. 139, 2020. [Online]. Available: https: //doi.org/10.3390/healthcare8020139
-
[5]
PTB-XL, a large publicly available electrocardiography dataset,
P. Wagner, N. Strodthoff, R.-D. Bousseljot, W. Samek, and T. Schaeffter, “PTB-XL, a large publicly available electrocardiography dataset,”PhysioNet, Apr. 2020, version 1.0.1. [Online]. Available: https://doi.org/10. 13026/x4td-x982
work page 2020
-
[6]
Deep learning for ecg analysis: Benchmarks and insights from ptb-xl,
N. Strodthoff, P. Wagner, T. Schaeffter, and W. Samek, “Deep learning for ecg analysis: Benchmarks and insights from ptb-xl,”IEEE Journal of Biomedical and Health Informatics, vol. 25, no. 5, pp. 1519–1528, 2021. [Online]. Available: https://doi.org/10.1109/JBHI.2020. 3022989
-
[7]
N. Yuan, G. Duffy, S. S. Dhruva, A. Oesterle, C. N. Pelle- grini, J. Theurer, M. Vali, P. A. Heidenreich, S. Keyhani, and D. Ouyang, “Deep learning of electrocardiograms in sinus rhythm from us veterans to predict atrial fibrilla- tion,”JAMA Cardiology, vol. 8, no. 12, pp. 1131–1139, 2023
work page 2023
-
[8]
Y . D. Daydulo, B. L. Thamineni, and A. A. Dawud, “Cardiac arrhythmia detection using deep learning approach and time frequency representation of ecg signals,”BMC Medical Informatics and Decision Making, vol. 23, no. 1, p. 232, 2023. [Online]. Available: https://doi.org/10.1186/s12911-023-02326-w
-
[9]
Choosing a sampling frequency for ecg qrs detection using convolutional networks,
A. Habib, C. Karmakar, and J. Yearwood, “Choosing a sampling frequency for ecg qrs detection using convolutional networks,”arXiv preprint arXiv:2007.02052, 2020. [Online]. Available: https://arxiv.org/abs/2007.02052
-
[10]
N. Katal, S. Gupta, P. Verma, and B. Sharma, “Deep- learning-based arrhythmia detection using ecg signals: A comparative study and performance evaluation,” Diagnostics, vol. 13, no. 24, p. 3605, 2023. [Online]. Available: https://doi.org/10.3390/diagnostics13243605
-
[11]
S. Creasy, V . Alexeenko, G. Y . Lip, G. Tse, P. J. Aston, and K. Jeevaratnam, “Electrocardiogram sampling frequency for the optimal performance of complexity analysis and machine learning models: Discrimination between patients with and without paroxysmal atrial fibrillation using sinus rhythm electrocardiograms,” Heart Rhythm O2, vol. 6, no. 1, pp. 48–5...
-
[12]
M. Y . Ansari, M. Qaraqe, R. Righetti, E. Serpedin, and K. Qaraqe, “Enhancing ecg-based heart age: impact of acquisition parameters and generalization strategies for varying signal morphologies and corruptions,”Frontiers in Cardiovascular Medicine, vol. 11, p. 1424585, 2024. [Online]. Available: https://doi.org/10.3389/fcvm.2024. 1424585
-
[13]
Explainable artificial intelligence to detect atrial fibrillation using electrocardiogram,
Y .-Y . Jo, Y . Cho, S. Y . Lee, J.-m. Kwon, K.-H. Kim, K.-H. Jeon, S. Cho, J. Park, and B.-H. Oh, “Explainable artificial intelligence to detect atrial fibrillation using electrocardiogram,”International Journal of Cardiology, vol. 328, pp. 104–110, 2021. [Online]. Available: https://doi.org/10.1016/j.ijcard.2020.11.053
-
[14]
A novel instruction driven 1-d cnn processor for ecg classification,
J. Deng, J. Yang, X. Wang, and X. Zhang, “A novel instruction driven 1-d cnn processor for ecg classification,”Sensors, vol. 24, no. 13, p. 4376, 2024. [Online]. Available: https://doi.org/10.3390/s24134376
-
[15]
Lightweight multireceptive field cnn for 12-lead ecg signal classification,
D. Feyisaet al., “Lightweight multireceptive field cnn for 12-lead ecg signal classification,”BioMed Research International, vol. 2022, pp. 1–13, 2022. [Online]. Available: https://doi.org/10.1155/2022/4243676
-
[16]
Interpretable deep learning for automatic diagnosis of 12-lead electrocardiogram,
J. Zhanget al., “Interpretable deep learning for automatic diagnosis of 12-lead electrocardiogram,”arXiv preprint arXiv:2010.10328, 2020. [Online]. Available: https://arxiv.org/abs/2010.10328
-
[17]
M. Diwakar, V . Ravi, P. Singh, and H. Pham, Eds., Machine Learning and Deep Learning Modeling and Al- gorithms with Applications in Medical and Health Care, 1st ed., ser. Springer Series in Reliability Engineering. Cham: Springer, 2025
work page 2025
-
[18]
Ptb-xl, a large publicly available electrocardiography dataset,
P. Wagner, N. Strodthoff, R.-D. Bousseljot, D. Kreiseler, F. I. Lunze, W. Samek, and T. Schaeffter, “Ptb-xl, a large publicly available electrocardiography dataset,”Scientific data, vol. 7, no. 1, p. 154, 2020
work page 2020
-
[19]
V . Thambawita, J. L. Isaksen, S. A. Hicks, J. Ghouse, G. Ahlberg, A. Linneberg, N. Grarup, C. Ellervik, M. S. Olesen, T. Hansenet al., “Deepfake electrocardiograms using generative adversarial networks are the beginning of the end for privacy issues in medicine,”Scientific reports, vol. 11, no. 1, p. 21896, 2021
work page 2021
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.