Skip to main navigation Skip to search Skip to main content

CardiacDP: An R package for rapid automated cardiac data processing, integrating autocorrelation, a genetic algorithm, and a tracking index

  • Sarah L.Y. LAU
  • , Adrian Tsz Chun WONG
  • , Yi-Fei GU
  • , Tin Yan HUI*
  • *Corresponding author for this work

Research output: Journal PublicationsJournal Article (refereed)peer-review

Abstract

Heart rate is a popular proxy of physiological responses, but the highly complex and variable cardiac data obtained from organisms such as marine invertebrates pose a major challenge to efficient and accurate data processing. To address this, we developed a novel, integrative algorithm for rapid and automated cardiac data processing. This algorithm primarily employs autocorrelation for time series analysis to identify recurrent heartbeats and compute heart rates from their periods. A genetic algorithm framework was used to implement such an autocorrelative analysis to filter out noise and extract meaningful signals, maximizing data utilization. A tracking index is also incorporated to reference previous timepoints and reduce errors associated with complex waveforms. To evaluate its performance, we compared the algorithm estimates to manually obtained heart rates of 33 individuals of marine invertebrates (from nine species of gastropods, bivalves, and crustaceans). The results showed that these features collectively improve data utilization (mean percentage count > 90%) and accuracy (mean absolute percentage error = 3%). By avoiding reliance on any predetermined characteristics, this algorithm can not only accommodate case-by-case variability and thus be applicable to diverse taxa, but also potentially extend to analyze periodicity in other biological time series data such as valvometry, acoustics and movement patterns. As an open-source tool, this algorithm encourages collaborative efforts and further developments that refine and expand its applications, thereby enhancing our capabilities in physiological monitoring and analyses.
Original languageEnglish
JournalLimnology and Oceanography: Methods
Early online date30 Apr 2026
DOIs
Publication statusE-pub ahead of print - 30 Apr 2026

Bibliographical note

This work was partially supported by the Research Grants Council of the Hong Kong SAR Government (project no.: 17108119). We thank the editor, Kelly Dorgan, and the anonymous reviewer for their valuable comments to improve the manuscript.

Publisher Copyright:
© 2026 The Author(s). Limnology and Oceanography: Methods published by Wiley Periodicals LLC on behalf of Association for the Sciences of Limnology and Oceanography.

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 14 - Life Below Water
    SDG 14 Life Below Water

Fingerprint

Dive into the research topics of 'CardiacDP: An R package for rapid automated cardiac data processing, integrating autocorrelation, a genetic algorithm, and a tracking index'. Together they form a unique fingerprint.

Cite this