Cross-Frequency ECG R-Peak Detection via Low-Sampling Morphological Learning with Physiological Temporal Constraints
Abstract
1. Introduction
2. Materials and Methods
2.1. Morphological Skeleton Learning
2.1.1. Feature Normalization for Cross-Frequency ECG Peak Detection
2.1.2. Robustness Evaluation of Morphological Skeleton Learning
2.1.3. Fixed-Split Validation of the Morphological Skeleton Learning Classifier
2.2. Cross-Frequency Evaluation
2.2.1. ECG Datasets
- (a)
- MIT-BIH Arrhythmia Database (MIT-AD)
- (b)
- Lobachevsky University Electrocardiography Database (LUDB)
- (c)
- PTB Diagnostic ECG Database (PTB)
2.2.2. LSP for Peak Alignment
2.2.3. Multi-Detector-Based R-Peak Candidate Generation for Silver-Standard Construction
| Algorithm 1. Multi-detector-based Silver-standard construction. |
| Input: ECG signal x_raw, fs Output: Silver-standard R-peak set R_silver 1: x ← bandpass_filter (x_raw) 2: R_NK ← NeuroKit (x, fs) 3: R_GQRS ← gqrs(x, fs) 4: R_NK ← LSP (R_NK, x, fs, 30 ms) 5: R_GQRS ← LSP(R_GQRS, x, fs, 30 ms) 6: R_merge ← detector_agreement (R_NK, R_GQRS, 8 ms) 7: R_silver ← LSP (R_merge, x, fs, 30 ms) 8: R_silver ← unique (R_silver) 9: return R_silver |
2.2.4. Filtering Conditions
2.2.5. Performance Metrics
3. Results
4. Discussion
4.1. Cross-Frequency Robustness of the Proposed Framework
4.2. Systematic Temporal Bias and Its Origin
4.3. Effect of LSP on Temporal Alignment
4.4. Methodological Implications
4.5. Limitations
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| CNN | Convolutional Neural Network |
| DL | Deep Learning |
| ECG | Electrocardiogram |
| F1 | F1-score |
| FN | False Negative |
| FP | False Positive |
| fs | Sampling Frequency |
| HPF | High-Pass Filter |
| HRV | Heart Rate Variability |
| LSP | Local Snap Processing |
| LPF | Low-Pass Filter |
| LUDB | Lobachevsky University Electrocardiography Database |
| MIT-AD | MIT-BIH Arrhythmia Database |
| MIT-NSRDB | MIT-BIH Normal Sinus Rhythm Database |
| PTB | PTB Diagnostic ECG Database |
| PTC | Physiological Temporal Constraints |
| PPV | Positive Predictive Value |
| QRS | QRS Complex |
| Se | Sensitivity |
| SD | Standard Deviation |
| TP | True Positive |
| XGB | Extreme Gradient Boosting |
References
- Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology. Heart rate variability: Standards of measurement, physiological interpretation and clinical use. Circulation 1996, 93, 1043–1065. [Google Scholar] [CrossRef] [PubMed]
- Pan, J.; Tompkins, W.J. A real-time QRS detection algorithm. IEEE Trans. Biomed. Eng. 1985, 32, 230–236. [Google Scholar] [CrossRef] [PubMed]
- Hannun, A.Y.; Rajpurkar, P.; Haghpanahi, M.; Tison, G.H.; Bourn, C.; Turakhia, M.P.; Ng, A.Y. Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nat. Med. 2019, 25, 65–69. [Google Scholar] [CrossRef] [PubMed]
- Ribeiro, A.H.; Ribeiro, M.H.; Paixão, G.M.M.; Oliveira, D.M.; Gomes, P.R.; Canazart, J.A.; Ferreira, M.P.S.; Andersson, C.R.; Macfarlane, P.W.; Meira, W., Jr.; et al. Automatic diagnosis of the 12-lead ECG using a deep neural network. Nat. Commun. 2020, 11, 1760. [Google Scholar] [CrossRef] [PubMed]
- 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]
- Weimann, K.; Conrad, T.O.F. Transfer learning for ECG classification. Sci. Rep. 2021, 11, 5251. [Google Scholar] [CrossRef] [PubMed]
- Yun, D.; Lee, H.C.; Jung, C.W.; Kwon, S.; Lee, S.R.; Kim, K.; Kim, Y.S.; Han, S.S. Robust R-peak detection in an electrocardiogram with stationary wavelet transformation and separable convolution. Sci. Rep. 2022, 12, 19638. [Google Scholar] [CrossRef] [PubMed]
- Martínez, J.P.; Almeida, R.; Olmos, S.; Rocha, A.P.; Laguna, P. A wavelet-based ECG delineator: Evaluation on standard databases. IEEE Trans. Biomed. Eng. 2004, 51, 570–581. [Google Scholar] [CrossRef] [PubMed]
- Cao, M.; Zhao, T.; Li, Y.; Zhang, W.; Benharash, P.; Ramezani, R. ECG heartbeat classification using deep transfer learning with convolutional neural network and STFT technique. J. Phys. Conf. Ser. 2023, 2547, 012031. [Google Scholar] [CrossRef]
- Gupta, U.; Paluru, N.; Nankani, D.; Kulkarni, K.; Awasthi, N. A comprehensive review on efficient artificial intelligence models for classification of abnormal cardiac rhythms using electrocardiograms. Heliyon 2024, 10, e26787. [Google Scholar] [CrossRef] [PubMed]
- Yoshida, Y.; Yokoyama, K. Sample-wise false-positive reduction in ECG P-, R-, and T-peak detection via physiological temporal constraints and lightweight binary classifiers. Signals 2026, 7, 28. [Google Scholar] [CrossRef]
- Goldberger, A.L.; Amaral, L.A.N.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; 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] [PubMed]
- Moody, G.B.; Mark, R.G. The impact of the MIT-BIH Arrhythmia Database. IEEE Eng. Med. Biol. Mag. 2001, 20, 45–50. [Google Scholar] [CrossRef] [PubMed]
- Kalyakulina, A.; Yusipov, I.; Moskalenko, V.; Nikolskiy, A.; Kosonogov, K.; Zolotykh, N.; Ivanchenko, M. Lobachevsky University Electrocardiography Database (Version 1.0.1). PhysioNet. 2021. Available online: https://physionet.org/content/ludb/1.0.1/ (accessed on 1 May 2026).
- Kalyakulina, A.I.; Yusipov, I.I.; Moskalenko, V.A.; Nikolskiy, A.V.; Kosonogov, K.A.; Osipov, G.V.; Zolotykh, N.Y.; Ivanchenko, M.V. LUDB: A New Open-Access Validation Tool for Electrocardiogram Delineation Algorithms. IEEE Access 2020, 8, 186181–186190. [Google Scholar] [CrossRef]
- Bousseljot, R.; Kreiseler, D.; Schnabel, A. Nutzung der EKG-Signaldatenbank CARDIODAT der PTB über das Internet. Biomed. Tech. 1995, 40, 317. [Google Scholar]
- Makowski, D.; Pham, T.; Lau, Z.J.; Brammer, J.C.; Lespinasse, F.; Pham, H.; Schölzel, C.; Chen, S.H.A. NeuroKit2: A Python Toolbox for Neurophysiological Signal Processing. Behav. Res. Methods 2021, 53, 1689–1696. [Google Scholar] [CrossRef] [PubMed]
- Kiyono, K.; Struzik, Z.R.; Aoyagi, N.; Sakata, S.; Hayano, J.; Yamamoto, Y. Critical scale invariance in a healthy human heart rate. Phys. Rev. Lett. 2004, 93, 178103. [Google Scholar] [CrossRef] [PubMed]
- Ivanov, P.C.; Amaral, L.A.N.; Goldberger, A.L.; Havlin, S.; Rosenblum, M.G.; Struzik, Z.R.; Stanley, H.E. Multifractality in human heartbeat dynamics. Nature 1999, 399, 461–465. [Google Scholar] [CrossRef] [PubMed]
- Wagner, P.; Strodthoff, N.; Bousseljot, R.D.; Kreiseler, D.; Lunze, F.I.; Samek, W.; Schaeffter, T. PTB-XL, a large publicly available electrocardiography dataset. Sci. Data 2020, 7, 154. [Google Scholar] [CrossRef] [PubMed]
- Perez Alday, E.A.; Gu, A.; Shah, A.J.; Robichaux, C.; Wong, A.K.I.; Liu, C.; Liu, F.; Bahrami Rad, A.; Elola, A.; Seyedi, S.; et al. Classification of 12-lead ECGs: The PhysioNet/Computing in Cardiology Challenge 2020. Physiol. Meas. 2021, 41, 124003. [Google Scholar] [PubMed]
- Jeon, E.; Oh, K.; Kwon, S.; Son, H.; Yun, Y.; Jung, E.S.; Kim, M.S. A lightweight deep learning model for fast electrocardiographic beats classification with a wearable cardiac monitor: Development and validation study. JMIR Med. Inform. 2020, 8, e17037. [Google Scholar] [CrossRef] [PubMed]
- Nguyen, C.V.; Do, C.D. Transfer learning in ECG diagnosis: Is it effective? PLoS ONE 2025, 20, e0316043. [Google Scholar] [CrossRef] [PubMed]
- Ismail, S.N.M.S.; Razak, S.F.A.; Aziz, N.A.A. ECG-based transfer learning for cardiovascular disease: A scoping review. Int. J. Cogn. Comput. Eng. 2025, 6, 280–297. [Google Scholar] [CrossRef]
- Su, X.; Wang, X.; Ge, H. Exercise ECG Classification Based on Novel R-Peak Detection Using BILSTM-CNN and Multi-Feature Fusion Method. Electronics 2025, 14, 281. [Google Scholar] [CrossRef]
- Alghieth, M. DeepECG-Net: A hybrid transformer-based deep learning model for real-time ECG anomaly detection. Sci. Rep. 2025, 15, 20714. [Google Scholar] [CrossRef] [PubMed]
- Zhou, S.; Tan, B. Electrocardiogram soft computing using hybrid deep learning CNN-ELM. Appl. Soft Comput. 2020, 86, 105778. [Google Scholar] [CrossRef]
- Shilpa, K.; Adilakshmi, T. Hybrid machine learning and deep learning models for efficient detection of arrhythmia from ECG data. Int. J. Commun. Netw. Inf. Secur. 2024, 16, 684–701. [Google Scholar]
- 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] [PubMed]
- Rudin, C. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nat. Mach. Intell. 2019, 1, 206–215. [Google Scholar] [CrossRef] [PubMed]
- Yuda, E. Applications of Heart Rate Variability Metrics in Wearable Sensor Technologies: A Comprehensive Review. Electronics 2026, 15, 1707. [Google Scholar] [CrossRef]








| Category | Formula | Name |
|---|---|---|
| Amplitude/statistical | mean | |
| std | ||
| left-right diff center-mean | ||
| Differential/curvature | d1 | |
| d2 | ||
| Slope/energy | slope | |
| d1-energy | ||
| Amplitude | center value | |
| maximum | ||
| minimum |
| Training set (14 records) | 16,265 | 19,090 | 16,539 | 18,177 | 16,483 | 19,093 | 16,272 |
| 19,088 | 16,795 | 16,786 | 16,420 | 19,140 | 19,830 | 18,184 | |
| Validation set (4 records) | 16,273 | 16,773 | 17,453 | 17,052 |
| win_len (ms) | Se | PPV | F1 |
|---|---|---|---|
| 16 | 0.941 ± 0.066 | 0.951 ± 0.056 | 0.946 ± 0.059 |
| 32 | 0.925 ± 0.082 | 0.946 ± 0.068 | 0.935 ± 0.073 |
| 48 | 0.938 ± 0.067 | 0.958 ± 0.051 | 0.948 ± 0.057 |
| (a) Detection metrics and optimized parameters | |||||
| win_len (ms) | Se | PPV | F1 | θR | refR (ms) |
| 16 | 0.998 | 0.998 | 0.998 | 0.95 | 80 |
| 32 | 0.999 | 0.998 | 0.998 | 0.90 | 80 |
| 48 | 0.998 | 0.998 | 0.998 | 0.90 | 40 |
| (b) Event counts | |||||
| win_len (ms) | N (samples) | TP | FP | FN | |
| 16 | 8,678,400 | 70,482 | 138 | 154 | |
| 32 | 8,678,400 | 70,532 | 115 | 104 | |
| 48 | 8,678,400 | 70,517 | 149 | 119 | |
| Category | Parameter | Value |
|---|---|---|
| Pre-processing filters | LPF cutoff (Hz) | 40 |
| HPF cutoff (Hz) | 0.1 | |
| PTC | θR | 0.9 |
| refR (ms) | 80 | |
| win_len (ms) | 32 | |
| XGB | Number of estimators | 300 |
| Maximum depth | 4 | |
| Learning rate | 0.1 |
| Rank | Feature | Gain (%) | Rank | Feature | Weight |
|---|---|---|---|---|---|
| 1 | maximum | 72.30 | 1 | d1 | 602 |
| 2 | std | 13.30 | 2 | d1-energy | 500 |
| 3 | d1-energy | 8.90 | 3 | minimum | 496 |
| 4 | left-right diff | 1.80 | 4 | slope | 438 |
| 5 | d1 | 1.80 | 5 | d2 | 397 |
| 6 | slope | 1.20 | 6 | maximum | 389 |
| 7 | center value | 0.80 | 7 | mean | 373 |
| 8 | mean | 0.70 | 8 | center-mean | 339 |
| 9 | center-mean | 0.50 | 9 | std | 312 |
| 10 | minimum | 0.40 | 10 | left-right diff | 302 |
| 11 | d2 | 0.30 | 11 | center value | 243 |
| Condition | N | Se | PPV | F1 | TP | FP | FN |
|---|---|---|---|---|---|---|---|
| (a) MIT-AD (360 Hz) | |||||||
| LSP off (Default) | 648,000 | 0.606 ± 0.365 | 0.629 ± 0.352 | 0.615 ± 0.358 | 1550 [530–2029] | 457 [130–1285] | 548 [80–1573] |
| LSP off (LPF = 10 Hz) | 648,000 | 0.020 ± 0.021 | 0.157 ± 0.227 | 0.032 ± 0.037 | 24 [12–73] | 418 [202–1220] | 2150 [1849–2542] |
| LSP off (HPF = 0.4 Hz) | 648,000 | 0.610 ± 0.367 | 0.626 ± 0.355 | 0.616 ± 0.360 | 1551 [535–2031] | 457 [134–1343] | 545 [44–1559] |
| LSP on (Default) | 648,000 | 0.860 ± 0.226 | 0.904 ± 0.190 | 0.878 ± 0.208 | 2040 [1705–2356] | 43 [18–160] | 68 [5–341] |
| LSP on (LPF = 10 Hz) | 648,000 | 0.336 ± 0.355 | 0.744 ± 0.337 | 0.405 ± 0.363 | 405 [97–1233] | 17 [6–64] | 1789 [545–2285] |
| LSP on (HPF = 0.4 Hz) | 648,000 | 0.871 ± 0.222 | 0.904 ± 0.192 | 0.885 ± 0.206 | 2040 [1772–2396] | 38 [10–158] | 49 [1–306] |
| (b) LUDB (sinus rhythm, 500 Hz) | |||||||
| LSP off (Default) | 5000 | 0.845 ± 0.296 | 0.692 ± 0.224 | 0.755 ± 0.255 | 8 [7–9] | 2 [2–4] | 0 [0–1] |
| LSP off (LPF = 10 Hz) | 5000 | 0.118 ± 0.197 | 0.279 ± 0.325 | 0.136 ± 0.202 | 0 [0–2] | 2 [0–7] | 8 [7–9] |
| LSP off (HPF = 0.4 Hz) | 5000 | 0.88 ± 0.266 | 0.708 ± 0.207 | 0.782 ± 0.232 | 8 [7–9] | 2 [2–3] | 0 [0–1] |
| LSP on (Default) | 5000 | 0.917 ± 0.219 | 0.754 ± 0.147 | 0.820 ± 0.181 | 8 [8–9] | 2 [2–3] | 0 [0–0] |
| LSP on (LPF = 10 Hz) | 5000 | 0.382 ± 0.390 | 0.660 ± 0.322 | 0.400 ± 0.361 | 2 [0–7] | 1 [0–2] | 7 [2–8] |
| LSP on (HPF = 0.4 Hz) | 5000 | 0.950 ± 0.167 | 0.772 ± 0.115 | 0.848 ± 0.136 | 9 [8–10] | 2 [2–3] | 0 [0–0] |
| (c) LUDB (arrhythmia, 500 Hz) | |||||||
| LSP off (Default) | 5000 | 0.799 ± 0.325 | 0.640 ± 0.246 | 0.705 ± 0.277 | 7 [6–10] | 3 [2–4] | 0 [0–3] |
| LSP off (LPF = 10 Hz) | 5000 | 0.072 ± 0.151 | 0.202 ± 0.307 | 0.082 ± 0.161 | 0 [0–1] | 2 [0–4] | 8 [6–11] |
| LSP off (HPF = 0.4 Hz) | 5000 | 0.826 ± 0.309 | 0.660 ± 0.236 | 0.730 ± 0.268 | 7 [6–11] | 3 [2–4] | 0 [0–2] |
| LSP on (Default) | 5000 | 0.909 ± 0.215 | 0.738 ± 0.162 | 0.808 ± 0.178 | 8 [7–11] | 2 [2–3] | 0 [0–0] |
| LSP on (LPF = 10 Hz) | 5000 | 0.322 ± 0.388 | 0.614 ± 0.328 | 0.330 ± 0.353 | 1 [0–5] | 1 [0–2] | 7 [3–10] |
| LSP on (HPF = 0.4 Hz) | 5000 | 0.946 ± 0.170 | 0.758 ± 0.116 | 0.837 ± 0.138 | 8 [7–11] | 2 [2–3] | 0 [0–0] |
| (d) PTB (control, 1000 Hz) | |||||||
| LSP off (Default) | 120,012 | 0.896 ± 0.211 | 0.864 ± 0.201 | 0.876 ± 0.204 | 120 [110–136] | 8 [2–18] | 2 [0–9] |
| LSP off (LPF = 10 Hz) | 120,012 | 0.169 ± 0.208 | 0.343 ± 0.323 | 0.207 ± 0.233 | 9 [1–36] | 27 [10–50] | 113 [90–131] |
| LSP off (HPF = 0.4 Hz) | 120,012 | 0.910 ± 0.232 | 0.890 ± 0.230 | 0.899 ± 0.230 | 123 [112–142] | 3 [1–12] | 0 [0–3] |
| LSP on (Default) | 120,012 | 0.954 ± 0.137 | 0.922 ± 0.127 | 0.935 ± 0.129 | 125 [114–143] | 4 [1–13] | 0 [0–1] |
| LSP on (LPF = 10 Hz) | 120,012 | 0.320 ± 0.325 | 0.595 ± 0.375 | 0.379 ± 0.340 | 19 [3–80] | 11 [3–23] | 101 [46–125] |
| LSP on (HPF = 0.4 Hz) | 120,012 | 0.963 ± 0.142 | 0.944 ± 0.145 | 0.953 ± 0.143 | 126 [115–145] | 1 [0–4] | 0 [0–0] |
| Dataset | Corrected LSP | Number of TP | Mean ± SD (ms) |
|---|---|---|---|
| MIT-AD (360 Hz) | Without | 64,068 | –14.5 ± 7.0 |
| With | 91,050 | –1.3 ± 4.4 | |
| LUDB (Sinus, 500 Hz) | Without | 1084 | –13.1 ± 6.1 |
| With | 1178 | 1.4 ± 2.5 | |
| LUDB (Arrhythmia, 500 Hz) | Without | 431 | –13.0 ± 7.0 |
| With | 491 | 1.4 ± 3.4 | |
| PTB (control, 1000 Hz) | Without | 9006 | –13.9 ± 7.3 |
| With | 9580 | –0.6 ± 3.0 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Yoshida, Y.; Yokoyama, K. Cross-Frequency ECG R-Peak Detection via Low-Sampling Morphological Learning with Physiological Temporal Constraints. Signals 2026, 7, 62. https://doi.org/10.3390/signals7040062
Yoshida Y, Yokoyama K. Cross-Frequency ECG R-Peak Detection via Low-Sampling Morphological Learning with Physiological Temporal Constraints. Signals. 2026; 7(4):62. https://doi.org/10.3390/signals7040062
Chicago/Turabian StyleYoshida, Yutaka, and Kiyoko Yokoyama. 2026. "Cross-Frequency ECG R-Peak Detection via Low-Sampling Morphological Learning with Physiological Temporal Constraints" Signals 7, no. 4: 62. https://doi.org/10.3390/signals7040062
APA StyleYoshida, Y., & Yokoyama, K. (2026). Cross-Frequency ECG R-Peak Detection via Low-Sampling Morphological Learning with Physiological Temporal Constraints. Signals, 7(4), 62. https://doi.org/10.3390/signals7040062

