Published July 25, 2020 | Journal article | Version v1 | https://doi.org/10.21105/joss.01867

HRV: a Pythonic package for Heart Rate Variability Analysis

Files

10.21105.joss.01867.pdf

Files (2.7 MB)

Name Size Download all
md5:873d997d83ae29f559862764892d0a0a
510.6 kB Preview Download
md5:f8532e9e954a5f6858c0c17c807b85bd
2.2 MB Preview Download

Additional details

Dates

Issued
July 25, 2020

References

  1. Bartels, R., & Peçanha, T. (2020). HRV: a Pythonic package for Heart Rate Variability Analysis (Version 0.2.8) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.3960216
  2. Nolan, J., Batin, P. D., Andrews, R., Lindsay, S. J., Brooksby, P., Mullen, M., Baig, W., Flapan, A. D., Cowley, A., Prescott, R. J., Neilson, J. M. M., & Fox, K. A. A. (1998). Prospective Study of Heart Rate Variability and Mortality in Chronic Heart Failure: Results of the United Kingdom Heart Failure Evaluation and Assessment of Risk Trial (UK-Heart). Circulation, 98(15), 1510–1516. https://doi.org/10.1161/01.cir.98.15.1510
  3. Weissman, A., Lowenstein, L., Peleg, A., Thaler, I., & Zimmer, E. Z. (2006). Power Spectral Analysis of Heart Rate Variability During the 100-g Oral Glucose Tolerance Test in Pregnant Women. Diabetes Care, 29(3), 571–574. https://doi.org/10.2337/diacare.29.03.06.dc05-2009
  4. Sajadieh, A. (2004). Increased heart rate and reduced heart-rate variability are associated with subclinical inflammation in middle-aged and elderly subjects with no apparent heart disease. European Heart Journal, 25(5), 363–370. https://doi.org/10.1016/j.ehj.2003.12.003
  5. Sgoifo, A., Carnevali, L., Pico Alfonso, M. de . los A., & Amore, M. (2015). Autonomic dysfunction and heart rate variability in depression. Stress, 18(3), 343–352. https://doi.org/10.3109/10253890.2015.1045868
  6. DeGiorgio, C. M., Miller, P., Meymandi, S., Chin, A., Epps, J., Gordon, S., Gornbein, J., & Harper, R. M. (2010). RMSSD, a measure of vagus-mediated heart rate variability, is associated with risk factors for SUDEP: The SUDEP-7 Inventory. Epilepsy & Behavior, 19(1), 78–81. https://doi.org/10.1016/j.yebeh.2010.06.011
  7. Burton, A. R., Rahman, K., Kadota, Y., Lloyd, A., & Vollmer-Conna, U. (2010). Reduced heart rate variability predicts poor sleep quality in a case–control study of chronic fatigue syndrome. Experimental Brain Research, 204(1), 71–78. https://doi.org/10.1007/s00221-010-2296-1
  8. Welch, P. (1967). The use of fast Fourier transform for the estimation of power spectra: A method based on time averaging over short, modified periodograms. IEEE Transactions on Audio and Electroacoustics, 15(2), 70–73. https://doi.org/10.1109/tau.1967.1161901
  9. Electrophysiology, T. F. of . the E. S. of C. the N. A. (1996). Heart Rate Variability: Standards of Measurement, Physiological Interpretation, and Clinical Use. Circulation, 93(5), 1043–1065. https://doi.org/10.1161/01.cir.93.5.1043
  10. Oliphant, Travis, NumPy: A guide to NumPy, 2006, USA: Trelgol Publishing, http://www.numpy.org/, [Online; accessed ]
  11. Piskorski, J., & Guzik, P. (2005). Filtering Poincaré plots. Computational Methods in Science and Technology, 11(1), 39–48. https://doi.org/10.12921/cmst.2005.11.01.39-48
  12. BERNTSON, G. G., THOMAS BIGGER, J., ECKBERG, D. L., GROSSMAN, P., KAUFMANN, P. G., MALIK, M., NAGARAJA, H. N., PORGES, S. W., SAUL, J. P., STONE, P. H., & VAN DER MOLEN, M. W. (1997). Heart rate variability: Origins, methods, and interpretive caveats. Psychophysiology, 34(6), 623–648. https://doi.org/10.1111/j.1469-8986.1997.tb02140.x
  13. Hunter, J. D. (2007). Matplotlib: A 2D Graphics Environment. Computing in Science & Engineering, 9(3), 90–95. https://doi.org/10.1109/mcse.2007.55
  14. Jones, Eric and Oliphant, Travis and Peterson, Pearu and others, SciPy: Open source scientific tools for Python, 2001, http://www.scipy.org/, [Online; accessed ]
  15. Cokelaer, T., & Hasch, J. (2017). 'Spectrum': Spectral Analysis in Python. The Journal of Open Source Software, 2(18), 348. https://doi.org/10.21105/joss.00348
  16. Malik, M., & Camm, A. J. (1990). Heart rate variability. Clinical Cardiology, 13(8), 570–576. https://doi.org/10.1002/clc.4960130811
  17. Gomes, Pedro and Margaritoff, Petra and Silva, Hugo, Proc. Int'l Conf. on Electrical, Electronic and Computing Engineering (IcETRAN), 822-828, pyHRV: Development and evaluation of an open-source python toolbox for heart rate variability (HRV), 2019
  18. RHRV: An R-based software package for heart rate variability analysis of ECG recordings, Rodrı́guez-Liñares, Leandro and Vila, X and Mendez, A and Lado, M and Olivieri, D, 3rd Iberian Conference in Systems and Information Technologies (CISTI 2008), 565–574, 2008
  19. Tarvainen, M. P., Niskanen, J.-P., Lipponen, J. A., Ranta-aho, P. O., & Karjalainen, P. A. (2014). Kubios HRV – Heart rate variability analysis software. Computer Methods and Programs in Biomedicine, 113(1), 210–220. https://doi.org/10.1016/j.cmpb.2013.07.024
  20. Bartels, R., Neumamm, L., Peçanha, T., & Carvalho, A. R. S. (2017). SinusCor: an advanced tool for heart rate variability analysis. BioMedical Engineering OnLine, 16(1). https://doi.org/10.1186/s12938-017-0401-4
  21. Tarvainen, M. P., Ranta-aho, P. O., & Karjalainen, P. A. (2002). An advanced detrending method with application to HRV analysis. IEEE Transactions on Biomedical Engineering, 49(2), 172–175. https://doi.org/10.1109/10.979357
  22. Van Gent, P., Farah, H., Van Nes, N., & Van Arem, B. (2019). Analysing Noisy Driver Physiology Real-Time Using Off-the-Shelf Sensors: Heart Rate Analysis Software from the Taking the Fast Lane Project. Journal of Open Research Software, 7(1), 32. https://doi.org/10.5334/jors.241

Citations

  1. Chen, X., Luo, Y., Zhang, L., Li, Y., & Zhu, Y. (2026). A Non-Contact ECG Reconstruction Method Based on FMCW Radar and Adaptive VMD-Assisted Deep Learning. IEEE Open Journal of Signal Processing, 7, 874–888. https://doi.org/10.1109/ojsp.2026.3726823
  2. Murakami, Y., Goto, D., Tsukamoto, H., Yamaura, K., & Hashimoto, T. (2025). Heart Rate Variability: A Psychophysiological Factor Related to Both Regular Physical Activity and Eudaimonic Well‐Being Among Young Adults. Brain and Behavior, 15(1). https://doi.org/10.1002/brb3.70284
  3. Boguslavsky, D., Borowsky, A., Chassidim, H., & Hancock, P. A. (2025). Secondary task solutions to acute and chronic automation-induced underload. Transportation Research Part F: Traffic Psychology and Behaviour, 109, 1451–1469. https://doi.org/10.1016/j.trf.2025.01.033
  4. Naegelin, M., Weibel, R. P., Kerr, J. I., von Wangenheim, F., Schinazi, V. R., La Marca, R., Hoelscher, C., Nater, U. M., & Ferrario, A. (2025). One does not fit all: Detecting work-related stress from mouse, keyboard, and cardiac data in the field [Preprint]. In medRxiv. openRxiv. https://doi.org/10.1101/2025.08.02.25332538
  5. Jathanna, R. D., Udupi, D. A., Iqbal, F., Makkithaya, K., & Lewis, L. E. S. (2025). Comparative Evaluation of Python-based Heart Rate Variability Analysis Tools for Neonatal Sepsis Detection in Neonatal Intensive Care Units. Pertanika Journal of Science and Technology, 33(3). https://doi.org/10.47836/pjst.33.3.13
  6. Gau, L.-S., Hsu, Y.-Y., Chu, H., & Hong, D.-C. (2024). Signal Analysis of Resonating Wellness: Assessing the Therapeutic Effects of Singing Drums, Bowls, and Gongs Through Heart Rate Monitoring. 2024 10th International Conference on Applied System Innovation (ICASI), 335–337. https://doi.org/10.1109/icasi60819.2024.10547865
  7. Gerwin, J. N., de Oliveira Almeida, G., Boyce, M. W., Joseph, M., Wong, A. H., Burleson, W., & Evans, L. V. (2024). HRVEST: a novel data solution for using wearable smart technology to measure physiologic stress variables during a randomized clinical trial. Frontiers in Computer Science, 6. https://doi.org/10.3389/fcomp.2024.1343139
  8. Pustozerov, E., Kulau, U., & Albrecht, U.-V. (2024). Automated Heart Rate Detection in Seismocardiograms Using Electrocardiogram-Based Algorithms—A Feasibility Study. Bioengineering, 11(6), 596. https://doi.org/10.3390/bioengineering11060596
  9. Parisi, F., Høifødt, R. S., Bohne, A., Wang, C. E. A., & Pfuhl, G. (2024). Perceived Parenting Stress Is Related to Cardiac Flexibility in Mothers: Data from the NorBaby Study. Behavioral Sciences, 14(2), 117. https://doi.org/10.3390/bs14020117
  10. Moses, J. C., Adibi, S., Angelova, M., & Islam, S. M. S. (2023). Time-Domain Heart Rate Variability Features for Automatic Congestive Heart Failure Prediction. ESC Heart Failure, 11(1), 378–389. https://doi.org/10.1002/ehf2.14593
  11. Naegelin, M., Weibel, R. P., Kerr, J. I., Schinazi, V. R., La Marca, R., von Wangenheim, F., Hoelscher, C., & Ferrario, A. (2023). An interpretable machine learning approach to multimodal stress detection in a simulated office environment. Journal of Biomedical Informatics, 139, Article 104299. https://doi.org/10.1016/j.jbi.2023.104299
  12. Betancur-Sepulveda, L., Ramírez-Villada, J. F., & Arango-Paternina, C. M. (2023). Effect of physical exercise on heart rate variability in adults with overweight or obesity: A systematic review and meta-analysis. Revista De La Facultad De Medicina, 71(4), e107632. https://doi.org/10.15446/revfacmed.v71n4.107632
  13. Reyero Lobo, P., & Perez, P. (2022). Heart Rate Variability for Non-Intrusive Cybersickness Detection. ACM International Conference on Interactive Media Experiences, 221–228. https://doi.org/10.1145/3505284.3529973
  14. Benchekroun, M., Chevallier, B., Istrate, D., Zalc, V., & Lenne, D. (2022). Preprocessing Methods for Ambulatory HRV Analysis Based on HRV Distribution, Variability and Characteristics (DVC). Sensors, 22(5), 1984. https://doi.org/10.3390/s22051984
  15. Dziezyc, M., Komoszynska, J., Saganowski, S., Boruch, M., Dziwinski, J., Jablonska, K., Kunc, D., & Kazienko, P. (2021). How to catch them all? Enhanced data collection for emotion recognition in the field. 2021 IEEE International Conference on Pervasive Computing and Communications Workshops and Other Affiliated Events (PerCom Workshops), 348–351. https://doi.org/10.1109/percomworkshops51409.2021.9431143
  16. Gordon, J. R., Curran, M. T., Chuang, J., & Cheshire, C. (2021). Covert Embodied Choice: Decision-Making and the Limits of Privacy Under Biometric Surveillance. Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems, 1–12. https://doi.org/10.1145/3411764.3445309
  17. Sasso, A., Morgenstern, J., Musmann, F., & Arnrich, B. (2021). Devicely: A Python package for reading, timeshifting and writing sensor data. Journal of Open Source Software, 6(66), 3679. https://doi.org/10.21105/joss.03679
  18. Seki, H., Nakano, T., Ikeda, K., Hirooka, S., Kawasaki, T., Yamada, M., Saito, S., Yamakawa, T., & Ogawa, S. (2021). Reduced-Lead ECG Classifier Model Trained with DivideMix and Model Ensemble. 2021 Computing in Cardiology (CinC), 1–4. https://doi.org/10.23919/cinc53138.2021.9662858
  19. Mayor, D., Panday, D., Kandel, H. K., Steffert, T., & Banks, D. (2021). CEPS: An Open Access MATLAB Graphical User Interface (GUI) for the Analysis of Complexity and Entropy in Physiological Signals. Entropy, 23(3), 321. https://doi.org/10.3390/e23030321
  20. Pham, T., Lau, Z. J., Chen, S. H. A., & Makowski, D. (2021). Heart Rate Variability in Psychology: A Review of HRV Indices and an Analysis Tutorial. Sensors, 21(12), 3998. https://doi.org/10.3390/s21123998
  21. Ponsiglione, A. M., Cosentino, C., Cesarelli, G., Amato, F., & Romano, M. (2021). A Comprehensive Review of Techniques for Processing and Analyzing Fetal Heart Rate Signals. Sensors, 21(18), 6136. https://doi.org/10.3390/s21186136
  22. Makowski, D., Pham, T., Lau, Z. J., Brammer, J. C., Lespinasse, F., Pham, H., Schölzel, C., & Chen, S. H. A. (2021). NeuroKit2: A Python toolbox for neurophysiological signal processing. Behavior Research Methods, 53(4), 1689–1696. https://doi.org/10.3758/s13428-020-01516-y