An efficient time-varying filter for detrending and bandwidth limiting the heart rate variability tachogram without resampling: MATLAB open-source code and Internet web-based implementation
- PMID: 22474535
- PMCID: PMC3310232
- DOI: 10.1155/2012/578785
An efficient time-varying filter for detrending and bandwidth limiting the heart rate variability tachogram without resampling: MATLAB open-source code and Internet web-based implementation
Abstract
The heart rate variability (HRV) signal derived from the ECG is a beat-to-beat record of RR intervals and is, as a time series, irregularly sampled. It is common engineering practice to resample this record, typically at 4 Hz, onto a regular time axis for analysis in advance of time domain filtering and spectral analysis based on the DFT. However, it is recognised that resampling introduces noise and frequency bias. The present work describes the implementation of a time-varying filter using a smoothing priors approach based on a Gaussian process model, which does not require data to be regular in time. Its output is directly compatible with the Lomb-Scargle algorithm for power density estimation. A web-based demonstration is available over the Internet for exemplar data. The MATLAB (MathWorks Inc.) code can be downloaded as open source.
Figures





Similar articles
-
The Ornstein-Uhlenbeck third-order Gaussian process (OUGP) applied directly to the un-resampled heart rate variability (HRV) tachogram for detrending and low-pass filtering.Med Biol Eng Comput. 2012 Jul;50(7):737-42. doi: 10.1007/s11517-012-0928-2. Epub 2012 Jun 12. Med Biol Eng Comput. 2012. PMID: 22689266
-
Quantifying errors in spectral estimates of HRV due to beat replacement and resampling.IEEE Trans Biomed Eng. 2005 Apr;52(4):630-8. doi: 10.1109/TBME.2005.844028. IEEE Trans Biomed Eng. 2005. PMID: 15825865 Clinical Trial.
-
Hilbert-Huang transform for analysis of heart rate variability in cardiac health.IEEE/ACM Trans Comput Biol Bioinform. 2011 Nov-Dec;8(6):1557-67. doi: 10.1109/TCBB.2011.43. IEEE/ACM Trans Comput Biol Bioinform. 2011. PMID: 21383423
-
Instantaneous heart rate: should RR-intervals be resampled?Annu Int Conf IEEE Eng Med Biol Soc. 2008;2008:277-82. doi: 10.1109/IEMBS.2008.4649144. Annu Int Conf IEEE Eng Med Biol Soc. 2008. PMID: 19162647
-
An open source tool for heart rate variability spectral analysis.Comput Methods Programs Biomed. 2011 Jul;103(1):39-50. doi: 10.1016/j.cmpb.2010.05.012. Epub 2010 Jul 31. Comput Methods Programs Biomed. 2011. PMID: 20674067 Review.
Cited by
-
Temporary sympathectomy in chronic refractory angina: a randomised, double-blind, placebo-controlled trial.Br J Pain. 2015 Aug;9(3):142-8. doi: 10.1177/2049463714549775. Br J Pain. 2015. PMID: 26516570 Free PMC article.
-
Does a 20-week aerobic exercise training programme increase our capabilities to buffer real-life stressors? A randomized, controlled trial using ambulatory assessment.Eur J Appl Physiol. 2016 Feb;116(2):383-94. doi: 10.1007/s00421-015-3284-8. Epub 2015 Nov 18. Eur J Appl Physiol. 2016. PMID: 26582310 Clinical Trial.
-
Optimal frequency bands for pupillography for maximal correlation with HRV.Sci Rep. 2025 Jan 27;15(1):3361. doi: 10.1038/s41598-025-85663-2. Sci Rep. 2025. PMID: 39870665 Free PMC article.
-
The Ornstein-Uhlenbeck third-order Gaussian process (OUGP) applied directly to the un-resampled heart rate variability (HRV) tachogram for detrending and low-pass filtering.Med Biol Eng Comput. 2012 Jul;50(7):737-42. doi: 10.1007/s11517-012-0928-2. Epub 2012 Jun 12. Med Biol Eng Comput. 2012. PMID: 22689266
References
-
- Moody GB. Spectral analysis of heart rate without resampling. In: Proceedings of the IEEE Conference on Computers in Cardiology; September 1993; London, UK. pp. 715–718.
-
- Malik M, Camm AJ, Bigger JT, Jr., et al. Heart rate variability. Standards of measurement, physiological interpretation, and clinical use. European Heart Journal. 1996;17(3):354–381. - PubMed
-
- Clifford GD. ECG statistics, noise, artifacts, and missing data. In: Clifford GD, Azuaje F, McSharry PE, editors. Advanced Methods for ECG Analysis. Boston, Mass, USA: Artech-House; 2006. pp. 55–93.
-
- Litvack DA, Oberlander TF, Carney LH, Saul JP. Time and frequency domain methods for heart rate variability analysis: a methodological comparison. Psychophysiology. 1995;32(5):492–504. - PubMed
-
- Mitov IP. A method for assessment and processing of biomedical signals containing trend and periodic components. Medical Engineering and Physics. 1998;20(9):660–668. - PubMed
MeSH terms
LinkOut - more resources
Full Text Sources