Physio-logging methods, which use animal-borne devices to record physiological variables, are entering a new era driven by advances in sensor development. However, existing datasets collected with traditional bio-loggers, such as accelerometers, still contain untapped eco-physiological information. Here, we present a computational method for extracting heart rate from high-resolution accelerometer data using a ballistocardiogram. We validated our method with simultaneous accelerometer–electrocardiogram tag deployments in a controlled setting on a killer whale (Orcinus orca) and demonstrate the predictions correspond with previously observed cardiovascular patterns in a blue whale (Balaenoptera musculus), including the magnitude of apneic bradycardia and increase in heart rate prior to and during ascent. Our ballistocardiogram method may be applied to mine heart rates from previously collected accelerometery data and expand our understanding of comparative cardiovascular physiology.

Recent advances in physio-logging (recording physiological variables using animal-borne devices) have largely been driven by new developments in sensor technology (Hawkes et al., 2021; Williams and Hindle, 2021). For example, new physio-logging tags can detect regional changes in blood flow by incorporating functional near-infrared spectroscopy sensors (McKnight et al., 2021). However, traditional inertial measurement unit (IMU) tags equipped with accelerometers and other inertial sensors can also measure important physiological and related variables, such as wing beat frequency (Patterson et al., 2019) and feeding rate (di Virgilio et al., 2018). Through careful inspection and analysis of high-resolution acceleration, scientists have measured elevated respiration rates following record-breaking dives (Sato et al., 2011), near-continuous feeding by small cetaceans (Wisniewska et al., 2016), social interactions between large cetaceans (Goldbogen et al., 2014), and important biomechanical variables including movement speed (Cade et al., 2018). While physio-logging tags with cutting-edge biomedical technologies push the boundaries of physiological field research, simpler IMU tags have fewer logistical constraints and provide access to more species and larger sample sizes. This is particularly important for species that cannot be restrained or studied in managed care. For example, heart rate has been recorded with an electrocardiogram tag in the wild for just one blue whale (Balaenoptera musculus) of the 16 species of baleen whales (Mysticeti) (Goldbogen et al., 2019; but see Ponganis and Kooyman, 1999). Conversely, IMU tags have been deployed on hundreds of individuals of nearly every species in the clade for the last 20 years (Nowacek et al., 2001). These existing datasets (and future IMU tag deployments) could hold additional valuable physiological information, awaiting proper computational methods for mining them.

The ballistocardiogram (BCG) has potential applications to using accelerometers as heart rate monitors in both the wild and managed care (Giovangrandi et al., 2011; Inan et al., 2015; Sadek et al., 2019). Ballistocardiography is a non-invasive method for measuring cardiac function based on the ballistic forces involved in the heart ejecting blood into the major vessels. The BCG originated as a clinical tool in the first half of the 20th century (Starr et al., 1939), but was largely superseded by electrocardiography and echocardiography. However, potential novel applications such as passive monitoring of heart function in at-risk populations (Giovangrandi et al., 2011) has led to a recent resurgence of ballistocardiography research, with advances in hardware (Andreozzi et al., 2021) and signal processing methodology (Sadek et al., 2019). While the BCG is a 3D phenomenon, it is strongest in the cranio-caudal axis (Inan et al., 2015). Along this axis, the waveform is composed of multiple peaks and valleys; most prominent of these is the so-called IJK complex (Pinheiro et al., 2010). The precise physiological mechanism underlying the BCG waveform has not been fully resolved (Kim et al., 2016), but it has been established that the IJK complex occurs during systole and, in humans, occurs at approximately the same time as the T-wave in an electrocardiogram (ECG) (Inan et al., 2015). The BCG J wave is the most robust feature in the waveform and is typically used for detecting heart beats (Inan et al., 2015).

Here, we present a method for generating a BCG from bio-logger cranio-caudal acceleration. We validated our method with a simultaneously recorded ECG on an adult killer whale in managed care (Orcinus orca) and applied it to detect heart rate in a blue whale. The relative orientation of a tag on a cetacean's body is often uncertain when bio-loggers are deployed in the wild (Johnson and Tyack, 2003), so isolating acceleration along the cranio-caudal axis is subject to error. Therefore, we also compared a tri-axial BCG with the cranio-caudal BCG. Specifically, we tested three hypotheses to validate our method. First, a cranio-caudal (1D) BCG would, in a controlled setting, produce instantaneous heart rates that are statistically equivalent to ECG instantaneous heart rates. Second, a tri-axial (3D) BCG would, in a field setting, produce a more robust signal than a 1D BCG. Third, BCG-derived heart rate would increase during the later phases of dives, consistent with the progressive increase in heart rate routinely observed prior to and during ascent (Goldbogen et al., 2019; McDonald and Ponganis, 2014).

Animal tagging

Killer whale

A 3868 kg adult female killer whale, Orcinus orca (Linnaeus 1758), in managed care at SeaWorld of California, San Diego, CA, USA, was double-tagged with an archival Customized Animal Tracking Solutions IMU (CATS, www.cats.is) tag and a custom-built, archival ECG tag on 16 August 2021 as part of clinical animal cardiac evaluations under the SeaWorld USDA APHIS display permit. The ECG tag hardware and data processing procedures were previously described by Bickett et al. (2019). Both tags were deployed by hand and attached with suction cups. We attached the CATS tag on the mid-lateral left chest posterior to the pectoral fin (Movie 1). The CATS tag recorded tri-axial acceleration at 400 Hz, tri-axial magnetometer and tri-axial gyroscope at 50 Hz, pressure at 10 Hz, and video at 30 frames s−1. The IMU in the CATS tag was a MPU-9250 (InvenSense, San Jose, CA, USA; www.invensense.com). The accelerometer had dynamic range of ±4 g, sensitivity of 8192 LSB g−1 (least significant bit per g) and accuracy of 6.1×10−6 g. All sensors were rotated from the tag's frame of reference to that of the whale using MATLAB (MathWorks, Inc., v2020b) tools for processing CATS data (Cade et al., 2021). This rotation aligned the tag's x-, y- and z-axes with the cranio-caudal, lateral and dorso-ventral axes of the whale, respectively. We attached the ECG tag approximately midline on the ventral chest just caudal (posterior) to the axilla and we recorded the ECG at 100 Hz. Individual heart beats in the ECG record were identified from visually verified R-waves using a customized peak detection program (K. Ponganis; Origin 2017, OriginLab Co., Northampton, MA, USA). ECG and IMU were recorded during a spontaneous breath hold while the whale rested at the surface.

Blue whale

A 24.5 m blue whale, Balaenoptera musculus (Linnaeus 1758), was tagged with an archival, suction-cup CATS IMU tag on 5 September 2018 in Monterey Bay, CA, USA, under permits MBNMS-MULTI-2017-007, NMFS 21678 and Stanford University IACUC 30123 (previously published by Gough et al., 2019). We deployed the tag using a 4 m fiberglass pole from a 6.3 m rigid-hulled inflatable boat and recovered it via radio VHF tracking (as described by Goldbogen et al., 2006). The tag slid behind the left pectoral flipper, similar to the placement of the CATS tag on the killer whale. Tag configuration and data processing followed the same procedure as for the killer whale, including accelerometer specification and sampling rates for inertial sensors and video. The 400 Hz acceleration data were used for ballistocardiography (see ‘Signal processing’, below). We downsampled the multi-sensor data to 10 Hz for movement analysis using the MATLAB CATS tools (Cade et al., 2021).

Signal processing

The BCG waveform is 3D, but strongest in the cranio-caudal axis (Inan et al., 2015). We tested both 1D (cranio-caudal only) and 3D metrics for identifying heartbeats in acceleration data based on the methods of Lee et al. (2016). For windowed operations (such as moving averages and signal filters), we used 0.5 s windows for killer whale data and 2.0 s windows for blue whale data, corresponding to 200 and 800 data points, respectively. The different window sizes were determined through trial and error to remove noise while retaining signal shape. Generally, longer windows will be necessary for larger animals because of their slower heart rates (Stahl, 1967).

Procedure

First, we removed noise and de-trended the acceleration signal with a 5th order Butterworth band-pass filter (killer whale: [1–25 Hz], blue whale: [1–10 Hz]) (R package signal v0.7-7; https://CRAN.R-project.org/package=signal). The lower cut-off frequency de-trended the data; 1 Hz should be appropriate for most marine mammal species. The upper cut-off frequency removed noise. A suitable upper cut-off frequency will depend on body size; larger species' bodies produce lower magnitude accelerations (Martín López et al., 2021), so more conservative upper cut-off frequencies may be applied to remove more noise without sacrificing signal shape clarity.

Then, we enhanced the IJK complex by differentiating acceleration using a 4th order Savitzky–Golay filter (R package signal). Differentiation (i.e. at+1at, where at is the observed acceleration at time step t) exaggerates peaks, like the J wave, but it is sensitive to noisy signals. Therefore, additional noise reduction is necessary prior to differentiation. A moving average smoother could remove noise, but it would also reduce the amplitude of peaks. Hence, differentiating Savitzky–Golay filters are preferred in peak-detection algorithms because they remove noise while retaining the general shape of peaks (Samann and Schanze, 2019). We described the resulting signal as ‘differenced acceleration’, rather than jerk, because we did not take the derivative of acceleration with respect to time. The purpose of this signal was to exaggerate a phenomenon in the signal (i.e. the J wave), not to describe a physical quantity (i.e. jerk).

We further enhanced the peaks in the differenced acceleration signal by calculating the Shannon entropy [Hi=−|aik|×ln(|aik|), where k is the acceleration axis]. Additionally, Shannon entropy is strictly positive, which facilitated peak detection. In the 1D BCG, k was surge (cranio-caudal acceleration). In the 3D BCG, k included surge, sway (lateral acceleration) and heave (dorso-ventral acceleration).

After enhancing the peaks through differentiation and entropy calculation, we removed residual noise by applying a triangular moving average (TMA) smoother. TMAs are equivalent to applying a simple moving average in two passes, which applies greater weight to the middle part of the window and retains peaks and valleys more clearly. After steps 2 and 3, the signal was clear enough that TMAs provided satisfactory results, obviating the need for a more complex algorithm such as a Savitzky–Golay filter at this stage. We described the resulting signal as the BCG.

The BCG contained major peaks (corresponding to heartbeats) and minor peaks (residual noise) (Fig. S1A). We extracted all peaks from the BCG and applied a clustering algorithm to retain major peaks and reject minor peaks. First, we extracted all peaks in the BCG signal using findpeaks() (R package pracma v2.3.3; https://CRAN.R-project.org/package=pracma) with a minimum peak distance equivalent to the window size (0.5 s for the killer whale, 2.0 s for the blue whale). For each peak, we calculated its absolute height and its prominence (i.e. height relative to the lowest valley between a peak and its higher neighbors). Then, we calculated each peak's Euclidean distance in height-prominence space from the highest peak (Fig. S1B) and estimated the density distribution of these distances (Fig. S1C). The density distribution was bimodal, with a low-distance peak corresponding to major peaks and a high-distance peak corresponding to minor peaks. We used the distance corresponding to the valley between the two peaks as a threshold for rejecting minor peaks (Fig. S1D).

This procedure may be applied to either 1D (i.e. cranio-caudal only) or 3D acceleration. In the case of 3D acceleration, the band-pass and Savitzky–Golay filters were applied to each axis independently.

BCG validation with killer whale ECG

We fitted ordinary least squares regression to BCG-derived instantaneous heart rate with respect to ECG-derived heart rate and tested (1) whether the intercept was significantly different from 0 and (2) whether the slope was significantly different from 1. We calculated the mean and standard deviation of absolute error as an equivalence measure (1D BCG only).

BCG application to blue whale

Dynamic body movements produce an acceleration signal that masks the BCG, so we limited our analyses to motionless periods. These periods occurred during or near the bottom phase of dives between fluke strokes. Strokes were detected from visual examination of the rotational velocity around the lateral axis recorded by gyroscope (sensuGough et al., 2019). We used gyroscopes for stroke detection because (1) they are separate sensors from the accelerometers and (2) strokes are clearly visible in gyroscope signals and are robust to tag placement.

We tested whether the 3D BCG was more robust than the 1D BCG in field data by comparing the signal-to-noise ratios. For both BCGs, we calculated the power spectral density (R package psd; Barbour and Parker, 2014). Previously recorded blue whale apneic heart rate was 4–8 beats min−1 (Goldbogen et al., 2019), so we quantified signal as the integration of the power spectral density curve from 4 to 8 beats min−1 and noise as the integrated remainder, up to 60 beats min−1. The sample size recorded by Goldbogen et al. (2019) was one individual, so we could not account for potential inter-individual variation. Nonetheless, 4–8 beats min−1 was the best available estimate for typical blue whale apneic heart rate.

We also tested whether BCG-derived instantaneous heart rates were consistent with the range and pattern of heart rates previously observed in the blue whale and other marine mammals; namely, a gradual increase in heart rate later in the dive, especially during the final ascent (Goldbogen et al., 2019; McDonald and Ponganis, 2014). We assigned dive start and end times when the whale swam deeper than 2 m, retaining dives that exceeded 10 m depth and 5 min duration. Dive times were normalized from 0 (start of dive) to 1 (end of dive). We regressed instantaneous heart rate against normalized dive time using robust Theil–Sen regression (to account for heteroscedascity) (R package RobustLinearReg v1.2.0; https://CRAN.R-project.org/package=RobustLinearReg; Sen, 1968; Theil, 1992) and tested whether the slope was greater than 0.

Reproducibility

The data and code used in this analysis were packaged as a research compendium, containing the data, code and an executable version of the manuscript. We used the R package rrtools (https://github.com/benmarwick/rrtools v0.1.5; Marwick et al., 2018) to initialize the compendium, which was written as an R package. This approach promotes reproducibility and facilitates adoption by other researchers (Alston and Rick, 2021; Powers and Hampton, 2019; Stodden et al., 2018). The steps described in ‘Signal processing’ (above) were implemented as functions in the R package, and the executable manuscript demonstrates how to use those functions to perform the analyses presented in this study.

BCG validation with killer whale ECG

The ECG and BCG yielded nearly identical heart rate estimations (Fig. 1). We collected 14 s of simultaneous ECG and BCG data during a motionless breath hold at the surface. Logistical constraints prevented us from gathering a longer sample, as these data were collected secondary to other projects. BCG-derived instantaneous heart rates were within 0.8±0.5% of the ECG-derived rates (mean±s.d.). Ordinary least squares regression of BCG heart rates on ECG heart rates yielded a slope of 1.02±0.04 and intercept of −1.62±2.71 (mean±s.e.), which were not significantly different from the hypothesized 1 and 0, respectively (Fig. 3C).

Fig. 1.

Ballistocardiogram (BCG) validation. (A,E) The electrocardiogram (ECG, recorded by ECG tag; A) and 1D BCG (processed from the cranio-caudal acceleration recorded by the IMU tag; E) produced nearly identical heart beat predictions for the killer whale. (B–D) Intermediate steps in the BCG signal processing procedure. (B) Cranio-caudal axis acceleration after band-pass filtering. Inset shows the IJK complex with surrounding H and L waves for the region bounded by the dashed box. (C) Peaks enhanced after forward differencing acceleration (see Materials and Methods ‘Procedure’). (D) A strictly positive signal after calculating Shannon entropy. The y-axis scale units were excluded because filtering introduces magnitude distortion and only the relative shape of the signal is relevant to the analysis.

Fig. 1.

Ballistocardiogram (BCG) validation. (A,E) The electrocardiogram (ECG, recorded by ECG tag; A) and 1D BCG (processed from the cranio-caudal acceleration recorded by the IMU tag; E) produced nearly identical heart beat predictions for the killer whale. (B–D) Intermediate steps in the BCG signal processing procedure. (B) Cranio-caudal axis acceleration after band-pass filtering. Inset shows the IJK complex with surrounding H and L waves for the region bounded by the dashed box. (C) Peaks enhanced after forward differencing acceleration (see Materials and Methods ‘Procedure’). (D) A strictly positive signal after calculating Shannon entropy. The y-axis scale units were excluded because filtering introduces magnitude distortion and only the relative shape of the signal is relevant to the analysis.

BCG application to blue whale

We generated 1D and 3D BCGs for 2 h of data, including 10 rest dives and 51 motionless periods totaling 76.9 min (64.1% of the 2 h record) (Fig. 2A–C).

Fig. 2.

A 2 h sample of resting blue whale data. (A) The depth profile consisted of 10 dives to 20–30 m. The red dashed box indicates the dive expanded in B and C. (B,C) Depth (B) and rotational velocity (ω; C) around the lateral axis for a single dive. Rotational velocity was used to identify motionless periods (pink). Red dashed boxes indicate the motionless period in D–G. (D) Band-pass filtered triaxial acceleration, with cranio-caudal in orange, lateral in blue and dorso-ventral in green. (E) Peaks enhanced after forward differencing acceleration (see Materials and Methods ‘Procedure’). (F) The Shannon entropy combines information from all three axes and makes the signal strictly positive. (G) Smoothing the Shannon entropy facilitates robust peak detection. Detected heart beats are in blue. The y-axis scale units were excluded in D–G because the filtering process introduces magnitude distortion and only the relative shape of the signal is relevant to the analysis.

Fig. 2.

A 2 h sample of resting blue whale data. (A) The depth profile consisted of 10 dives to 20–30 m. The red dashed box indicates the dive expanded in B and C. (B,C) Depth (B) and rotational velocity (ω; C) around the lateral axis for a single dive. Rotational velocity was used to identify motionless periods (pink). Red dashed boxes indicate the motionless period in D–G. (D) Band-pass filtered triaxial acceleration, with cranio-caudal in orange, lateral in blue and dorso-ventral in green. (E) Peaks enhanced after forward differencing acceleration (see Materials and Methods ‘Procedure’). (F) The Shannon entropy combines information from all three axes and makes the signal strictly positive. (G) Smoothing the Shannon entropy facilitates robust peak detection. Detected heart beats are in blue. The y-axis scale units were excluded in D–G because the filtering process introduces magnitude distortion and only the relative shape of the signal is relevant to the analysis.

The 3D BCG (Fig. 2) produced a more robust signal (i.e. higher signal-to-noise ratio) than the 1D BCG, which used only cranio-caudal acceleration (Fig. 3A). The signal-to-noise ratio was 2.00 for the 3D BCG, compared with 0.17 for the 1D BCG. Although the power spectral density curve for the 1D BCG had a peak in the 4–8 beats min−1 frequency range, most of the signal's power was concentrated in lower frequencies. Conversely, the 3D BCG's power was concentrated precisely in the 4–8 beats min−1 frequency range, with only a smaller peak in the lower frequencies.

Fig. 3.

1D and 3D BCG validation. (A) The blue whale signal-to-noise ratio (SNR) was higher for the 3D BCG (lower panel) than for the 1D BCG (cranio-caudal acceleration only; upper panel). Each panel shows the power spectral density for the BCG. Based on previously observed blue whale heart rates, 4–8 beats min−1 was considered signal (gray shading). The SNR was calculated as the ratio of the area under the curve in the signal band to the area under the rest of the curve, up to 60 beats min−1. (B) Heart rates observed in the 3D blue whale BCG followed characteristic diving physiology patterns. Heart rate is lowest at the start of the dive (∼4–5 beats min−1), increasing towards ascent (∼8–9 beats min−1). Points indicate instantaneous heart rate and the line is a Theil–Sen regression. Outliers likely represent premature beats which are common in heart rate profiles during dives of cetaceans, pinnipeds and penguins (Andrews et al., 1997; Goldbogen et al., 2019; McDonald and Ponganis, 2014; Wright et al., 2014). (C) BCG- and ECG-derived instantaneous heart rates were equivalent in the killer whale. The slope and intercept of the ordinary least squares regression of BCG- on ECG-derived instantaneous heart rates (solid blue line) were not significantly different from 1 and 0, respectively (dashed black line).

Fig. 3.

1D and 3D BCG validation. (A) The blue whale signal-to-noise ratio (SNR) was higher for the 3D BCG (lower panel) than for the 1D BCG (cranio-caudal acceleration only; upper panel). Each panel shows the power spectral density for the BCG. Based on previously observed blue whale heart rates, 4–8 beats min−1 was considered signal (gray shading). The SNR was calculated as the ratio of the area under the curve in the signal band to the area under the rest of the curve, up to 60 beats min−1. (B) Heart rates observed in the 3D blue whale BCG followed characteristic diving physiology patterns. Heart rate is lowest at the start of the dive (∼4–5 beats min−1), increasing towards ascent (∼8–9 beats min−1). Points indicate instantaneous heart rate and the line is a Theil–Sen regression. Outliers likely represent premature beats which are common in heart rate profiles during dives of cetaceans, pinnipeds and penguins (Andrews et al., 1997; Goldbogen et al., 2019; McDonald and Ponganis, 2014; Wright et al., 2014). (C) BCG- and ECG-derived instantaneous heart rates were equivalent in the killer whale. The slope and intercept of the ordinary least squares regression of BCG- on ECG-derived instantaneous heart rates (solid blue line) were not significantly different from 1 and 0, respectively (dashed black line).

The 3D BCG exhibited increasing heart rate over the course of dives. Average heart rate increased from 4.1 beats min−1 at the start of dives to 8.3 beats min−1 at the end of dives (Theil–Sen regression, P<10−10) (Fig. 3B).

Limitations and considerations for future applications

While the BCG method presented here holds the potential to mine existing and future marine mammal bio-logging datasets for information about cardiovascular function, it has several limitations compared with ECG methods. Most importantly, BCGs are highly sensitive to movement artifacts (Inan et al., 2015), so only motionless periods are valid for analysis. This limits the behavioral and physiological contexts in which heart rate may be measured. For example, the BCG is probably an inappropriate method for quantifying the magnitude of surface tachycardia (Goldbogen et al., 2019) and exercise modulation of bradycardia (Noren et al., 2012), because of movement artifacts during those activities. Additionally, we did not test whether the BCG is robust to tag placement location. The blue whale data presented in this study were collected when a dorsally deployed tag slipped to the lateral chest cavity behind a flipper, where it is reasonable to expect greater accelerations caused by heart beats than from a tag farther from the animal's center of mass. It is possible that the ballistic forces generated by heart beats are strong enough to produce an interpretable BCG for a variety of potential tag deployment locations, but this likely varies with animal body size, as well as accelerometer sampling rate and sensitivity.

When auditing existing bio-logging data and planning future tag deployments for BCG analysis, careful consideration should be paid to sampling rate. As a rule of thumb in signal processing, the sampling rate should be at least twice the frequency of the phenomenon of interest. In the case of the BCG, the relevant frequency is that of the BCG waveform, not the heart rate. In humans, the power of the IJK complex (the part of the BCG waveform used for heart beat detection) is concentrated between 4 and 7 Hz (Moukadem et al., 2018). It is unlikely that marine mammal BCG waveforms have a higher frequency than those of humans, owing to their generally larger body sizes. Therefore, it is possible that BCGs may be generated for accelerometer sampling rates as low as 10–15 Hz. Conservatively, the authors recommend a sampling rate of no less than 50 Hz (i.e. twice the upper cut-off frequency of the widest bandpass filter used in this study).

Future bio-logging BCG methodology research should address the limitations imposed by tag placement and movement artifacts. We used accelerometers in this study because of their prevalence in bio-logging research, but it is possible that other widely used bio-logger sensors, such as gyroscopes and/or magnetometers, could produce a clearer signal in a greater variety of contexts. Alternative bio-logger housing designs, such as limpet-style tags (Andrews et al., 2008) or ‘marine skin’ (Nassar et al., 2018), could reduce noise, boost the signal-to-noise ratio and make the method more widely applicable.

Conclusions

Here, we present a BCG method for detecting resting apneic heart rate in cetaceans using accelerometers. We validated the method in a controlled setting with simultaneous ECG and in a field setting by confirming expected physiological patterns. As accelerometer tags have been deployed on many cetacean species for multiple decades, this method may be applied to mine existing datasets and better understand how heart rate scales with body size and other biological factors. It may also provide additional data for conservation physiology applications. For example, BCGs extracted from gliding phases before and after controlled sonar exposure experiments could quantify the physiological response to anthropogenic disturbance (Southall et al., 2019). Even as the field of physio-logging progresses with new hardware innovations (Fahlman et al., 2021; Hawkes et al., 2021; Williams and Hindle, 2021), this method demonstrates that computational advances can derive new insights from traditional sensors.

The authors are grateful to the SeaWorld of California Killer Whale training staff for their efforts and support. We also thank Anna Krystalli, Ben Marwick, Karthik Ram, Nicholas Tierney and other members of the R community for developing tools and educational resources to facilitate open science practices. This is a SeaWorld Parks and Entertainment Technical Contribution number 2021-12. We thank Lucy Hawkes and two anonymous reviewers for comments on the manuscript.

Author contributions

Conceptualization: M.F.C., P.J.P., J.J.F., J.A.G.; Methodology: M.F.C., P.J.P., J.J.F.; Software: M.F.C.; Formal analysis: M.F.C., P.J.P.; Investigation: M.F.C., P.J.P., J.J.F.; Resources: P.J.P., T.L.S., J.A.G.; Writing - original draft: M.F.C.; Writing - review & editing: M.F.C., P.J.P., J.J.F., T.L.S., J.A.G.; Supervision: P.J.P., J.A.G.; Project administration: P.J.P., J.A.G.; Funding acquisition: J.A.G.

Funding

This work was supported by grant N000141912455 from the Office of Naval Research. M.F.C. was supported by the Stanford University William R. and Sara Hart Kimball Fellowship and a Stanford Data Science Scholar Fellowship. Open Access funding provided by Stanford University. Deposited in PMC for immediate release.

Data availability

All data and code used in this analysis are available on Zenodo: doi:10.5281/zenodo.6502900.

Alston
,
J. M.
and
Rick
,
J. A.
(
2021
).
A beginner's guide to conducting reproducible research
.
Bull. Ecol. Soc. Am.
102
,
1
-
14
.
Andreozzi
,
E.
,
Gargiulo
,
G. D.
,
Esposito
,
D.
and
Bifulco
,
P.
(
2021
).
A novel broadband forcecardiography sensor for simultaneous monitoring of respiration, infrasonic cardiac vibrations and heart sounds
.
Front. Physiol.
12
,
725716
.
Andrews
,
R. D.
,
Jones
,
D. R.
,
Williams
,
J. D.
,
Thorson
,
P. H.
,
Oliver
,
G. W.
,
Costa
,
D. P.
and
Le Boeuf
,
B. J.
(
1997
).
Heart rates of northern elephant seals diving at sea and resting on the beach
.
J. Exp. Biol.
200
,
2083
-
2095
.
Andrews
,
R. D.
,
Pitman
,
R. L.
and
Ballance
,
L. T.
(
2008
).
Satellite tracking reveals distinct movement patterns for Type B and Type C killer whales in the southern Ross Sea, Antarctica
.
Polar Biol.
31
,
1461
-
1468
.
Barbour
,
A. J.
and
Parker
,
R. L.
(
2014
).
psd: Adaptive, sine multitaper power spectral density estimation for R
.
Comput. Geosci.
63
,
1
-
8
.
Bickett
,
N. J.
,
Tift
,
M. S.
,
St. Leger
,
J.
and
Ponganis
,
P. J.
(
2019
).
Heart rates, heart rate profiles, and electrocardiograms in three killer whales, a beluga, and a pilot whale: an exploratory investigation
.
Mar. Mamm. Sci.
35
,
1112
-
1132
.
Cade
,
D. E.
,
Barr
,
K. R.
,
Calambokidis
,
J.
,
Friedlaender
,
A. S.
and
Goldbogen
,
J. A.
(
2018
).
Determining forward speed from accelerometer jiggle in aquatic environments
.
J. Exp. Biol.
221
,
jeb170449
.
Cade
,
D. E.
,
Gough
,
W. T.
,
Czapanskiy
,
M. F.
,
Fahlbusch
,
J. A.
,
Kahane-Rapport
,
S. R.
,
Linsky
,
J. M. J.
,
Nichols
,
R. C.
,
Oestreich
,
W. K.
,
Wisniewska
,
D. M.
,
Friedlaender
,
A. S.
et al. 
(
2021
).
Tools for integrating inertial sensor data with video bio-loggers, including estimation of animal orientation, motion, and position
.
Anim. Biotelemetry
9
,
34
.
di Virgilio
,
A.
,
Morales
,
J. M.
,
Lambertucci
,
S. A.
,
Shepard
,
E. L. C.
and
Wilson
,
R. P.
(
2018
).
Multi-dimensional Precision Livestock Farming: a potential toolbox for sustainable rangeland management
.
PeerJ
6
,
e4867
.
Fahlman
,
A.
,
Aoki
,
K.
,
Bale
,
G.
,
Brijs
,
J.
,
Chon
,
K. H.
,
Drummond
,
C. K.
,
Føre
,
M.
,
Manteca
,
X.
,
McDonald
,
B. I.
,
McKnight
,
J. C.
et al. 
(
2021
).
The new era of physio-logging and their grand challenges
.
Front. Physiol.
12
.
Giovangrandi
,
L.
,
Inan
,
O. T.
,
Wiard
,
R. M.
,
Etemadi
,
M.
and
Kovacs
,
G. T.
(
2011
).
Ballistocardiography – a method worth revisiting
. In
2011 Annual International Conference of the IEEE Engineering in Medicine and biology society
, pp.
4279
-
4282
.
Goldbogen
,
J. A.
,
Calambokidis
,
J.
,
Shadwick
,
R. E.
,
Oleson
,
E. M.
,
McDonald
,
M. A.
and
Hildebrand
,
J. A.
(
2006
).
Kinematics of foraging dives and lunge-feeding in fin whales
.
J. Exp. Biol.
209
,
1231
-
1244
.
Goldbogen
,
J. A.
,
Stimpert
,
A. K.
,
DeRuiter
,
S. L.
,
Calambokidis
,
J.
,
Friedlaender
,
A. S.
,
Schorr
,
G. S.
,
Moretti
,
D. J.
,
Tyack
,
P. L.
and
Southall
,
B. L.
(
2014
).
Using accelerometers to determine the calling behavior of tagged baleen whales
.
J. Exp. Biol.
217
,
2449
-
2455
.
Goldbogen
,
J. A.
,
Cade
,
D. E.
,
Calambokidis
,
J.
,
Czapanskiy
,
M. F.
,
Fahlbusch
,
J.
,
Friedlaender
,
A. S.
,
Gough
,
W. T.
,
Kahane-Rapport
,
S. R.
,
Savoca
,
M. S.
,
Ponganis
,
K. V.
et al. 
(
2019
).
Extreme bradycardia and tachycardia in the world's largest animal
.
Proc. Natl Acad. Sci. USA
116
,
25329
-
25332
.
Gough
,
W. T.
,
Segre
,
P. S.
,
Bierlich
,
K. C.
,
Cade
,
D. E.
,
Potvin
,
J.
,
Fish
,
F. E.
,
Dale
,
J.
,
di Clemente
,
J.
,
Friedlaender
,
A. S.
,
Johnston
,
D. W.
et al. 
(
2019
).
Scaling of swimming performance in baleen whales
.
J. Exp. Biol.
222
,
jeb204172
.
Hawkes
,
L. A.
,
Fahlman
,
A.
and
Sato
,
K.
(
2021
).
Introduction to the theme issue: Measuring physiology in free-living animals
.
Philos. Trans. R. Soc. B Biol. Sci.
376
,
20200210
.
Inan
,
O. T.
,
Migeotte
,
P.-F.
,
Park
,
K.-S.
,
Etemadi
,
M.
,
Tavakolian
,
K.
,
Casanella
,
R.
,
Zanetti
,
J.
,
Tank
,
J.
,
Funtova
,
I.
,
Prisk
,
G. K.
et al. 
(
2015
).
Ballistocardiography and seismocardiography: a review of recent advances
.
IEEE J. Biomed. Health Informatics
19
,
1414
-
1427
.
Johnson
,
M. P.
and
Tyack
,
P. L.
(
2003
).
A digital acoustic recording tag for measuring the response of wild marine mammals to sound
.
IEEE J. Ocean. Eng.
28
,
3
-
12
.
Kim
,
C.-S.
,
Ober
,
S. L.
,
McMurtry
,
M. S.
,
Finegan
,
B. A.
,
Inan
,
O. T.
,
Mukkamala
,
R.
and
Hahn
,
J.-O.
(
2016
).
Ballistocardiogram: mechanism and potential for unobtrusive cardiovascular health monitoring
.
Sci. Rep.
6
,
31297
.
Lee
,
W. K.
,
Yoon
,
H.
,
Han
,
C.
,
Joo
,
K. M.
and
Park
,
K. S.
(
2016
).
Physiological signal monitoring bed for infants based on load-cell sensors
.
Sensors
16
,
409
.
Martín López
,
L. M.
,
Aguilar de Soto
,
N.
,
Madsen
,
P. T.
and
Johnson
,
M.
(
2021
).
Overall dynamic body acceleration measures activity differently on large versus small aquatic animals
.
Methods Ecol. Evol.
13
,
447
-
458
.
Marwick
,
B.
,
Boettiger
,
C.
and
Mullen
,
L.
(
2018
).
Packaging Data Analytical Work Reproducibly Using R (and Friends)
.
Am. Stat.
72
,
80
-
88
.
McDonald
,
B. I.
and
Ponganis
,
P. J.
(
2014
).
Deep-diving sea lions exhibit extreme bradycardia in long-duration dives
.
J. Exp. Biol.
217
,
1525
-
1534
.
McKnight
,
J. C.
,
Ruesch
,
A.
,
Bennett
,
K.
,
Bronkhorst
,
M.
,
Balfour
,
S.
,
Moss
,
S. E. W.
,
Milne
,
R.
,
Tyack
,
P. L.
,
Kainerstorfer
,
J. M.
and
Hastie
,
G. D.
(
2021
).
Shining new light on sensory brain activation and physiological measurement in seals using wearable optical technology
.
Philos. Trans. R. Soc. B Biol. Sci.
376
,
20200224
.
Moukadem
,
A.
,
Finnaoui
,
A.
,
Gassara
,
H. E.
,
Adolphe
,
D.
,
Schacher
,
L.
and
Dieterlen
,
A.
(
2018
).
Time-frequency domain for BCG analysis
. In
2018 international conference on computer and applications (ICCA)
, pp.
226
-
230
.
Nassar
,
J. M.
,
Khan
,
S. M.
,
Velling
,
S. J.
,
Diaz-Gaxiola
,
A.
,
Shaikh
,
S. F.
,
Geraldi
,
N. R.
,
Torres Sevilla
,
G. A.
,
Duarte
,
C. M.
and
Hussain
,
M. M.
(
2018
).
Compliant lightweight non-invasive standalone “Marine Skin” tagging system
.
NPJ Flexible Electronics
2
,
1970051
.
Noren
,
S. R.
,
Kendall
,
T.
,
Cuccurullo
,
V.
and
Williams
,
T. M.
(
2012
).
The dive response redefined: underwater behavior influences cardiac variability in freely diving dolphins
.
J. Exp. Biol.
215
,
2735
-
2741
.
Nowacek
,
D. P.
,
Johnson
,
M. P.
,
Tyack
,
P. L.
,
Shorter
,
K. A.
,
McLellan
,
W. A.
and
D.
,
A. P.
(
2001
).
Buoyant balaenids: The ups and downs of buoyancy in right whales
.
Proc. R. Soc. Lond. Ser. B Biol. Sci.
268
,
1811
-
1816
.
Patterson
,
A.
,
Gilchrist
,
H. G.
,
Chivers
,
L.
,
Hatch
,
S.
and
Elliott
,
K.
(
2019
).
A comparison of techniques for classifying behavior from accelerometers for two species of seabird
.
Ecol. Evol.
9
,
3030
-
3045
.
Pinheiro
,
E.
,
Postolache
,
O.
and
Girão
,
P.
(
2010
).
Theory and developments in an unobtrusive cardiovascular system representation: ballistocardiography
.
Open Biomed. Eng. J.
4
,
201
-
216
.
Ponganis
,
P. J.
and
Kooyman
,
G. L.
(
1999
).
Heart rate and electrocardiogram characteristics of a young california gray whale (Eschrichtius robustus)
.
Mar. Mamm. Sci.
15
,
1198
-
1207
.
Powers
,
S. M.
and
Hampton
,
S. E.
(
2019
).
Open science, reproducibility, and transparency in ecology
.
Ecol. Appl.
29
,
e01822
.
Sadek
,
I.
,
Biswas
,
J.
and
Abdulrazak
,
B.
(
2019
).
Ballistocardiogram signal processing: a review
.
Health Information Science and Systems
7
,
10
.
Samann
,
F.
and
Schanze
,
T.
(
2019
).
An efficient ECG denoising method using discrete wavelet with Savitzky-Golay filter
.
Curr. Directions Biomed. Eng.
5
,
385
-
387
.
Sato
,
K.
,
Shiomi
,
K.
,
Marshall
,
G.
,
Kooyman
,
G. L.
and
Ponganis
,
P. J.
(
2011
).
Stroke rates and diving air volumes of emperor penguins: implications for dive performance
.
J. Exp. Biol.
214
,
2854
-
2863
.
Sen
,
P. K.
(
1968
).
Estimates of the regression coefficient based on Kendall's Tau
.
J. Am. Stat. Assoc.
63
,
1379
-
1389
.
Southall
,
B. L.
,
DeRuiter
,
S. L.
,
Friedlaender
,
A.
,
Stimpert
,
A. K.
,
Goldbogen
,
J. A.
,
Hazen
,
E.
,
Casey
,
C.
,
Fregosi
,
S.
,
Cade
,
D. E.
,
Allen
,
A. N.
et al. 
(
2019
).
Behavioral responses of individual blue whales (Balaenoptera musculus) to mid-frequency military sonar
.
J. Exp. Biol.
222
,
jeb190637
.
Stahl
,
W. R.
(
1967
).
Scaling of respiratory variables in mammals
.
J. Appl. Physiol.
22
,
453
-
460
.
Starr
,
I.
,
Rawson
,
A. J.
,
Schroeder
,
H. A.
and
Joseph
,
N. R.
(
1939
).
Studies on the estimation of cardiac ouptut in man, and of abnormalities in cardiac function, from the heart's recoil and the blood's impacts; the ballistocardiogram
.
Am. J. Physiol.
127
,
1
-
28
.
Stodden
,
V.
,
Seiler
,
J.
and
Ma
,
Z.
(
2018
).
An empirical analysis of journal policy effectiveness for computational reproducibility
.
Proc. Natl Acad. Sci. USA
115
,
2584
-
2589
.
Theil
,
H.
(
1992
).
A rank-invariant method of linear and polynomial regression analysis
. In
Henri Theil's Contributions to Economics and Econometrics: Econometric Theory and Methodology
(ed.
B.
Raj
and
J.
Koerts
), pp.
345
-
381
.
Dordrecht
:
Springer Netherlands
.
Williams
,
C. L.
and
Hindle
,
A. G.
(
2021
).
Field physiology: Studying organismal function in the natural environment
.
Comprehens. Physiol.
11
,
1979
-
2015
.
Wisniewska
,
D. M.
,
Johnson
,
M.
,
Teilmann
,
J.
,
Rojano-Doñate
,
L.
,
Shearer
,
J.
,
Sveegaard
,
S.
,
Miller
,
L. A.
,
Siebert
,
U.
and
Madsen
,
P. T.
(
2016
).
Ultra-high foraging rates of harbor porpoises make them vulnerable to anthropogenic disturbance
.
Curr. Biol.
26
,
1441
-
1446
.
Wright
,
A. K.
,
Ponganis
,
K. V.
,
McDonald
,
B. I.
and
Ponganis
,
P. J.
(
2014
).
Heart rates of emperor penguins diving at sea: implications for oxygen store management
.
Mar. Ecol. Prog. Ser.
496
,
85
-
98
.

Competing interests

The authors declare no competing or financial interests.

This is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution and reproduction in any medium provided that the original work is properly attributed.

Supplementary information