- 1Research Electronics, Max-Planck-Institute for Dynamics and Self-Organization, Göttingen, Germany
- 2Biomedical Physics Research Group, Max-Planck-Institute for Dynamics and Self-Organization, Göttingen, Germany
- 3German Center for Cardiovascular Research (DZHK e. V.), Göttingen, Germany
- 4Origami Data Science Services, Werder (Havel), Germany
- 5Institute of Molecular and Cell Physiology, Hannover Medical School, Hannover, Germany
During cardiac arrhythmia, the heart frequency is an important physiological parameter that can be identified by analyzing electrocardiogram (ECG) signals. However, the accuracy of the frequency estimation becomes increasingly challenging as the ECG morphology becomes more complex, for example, during transitions from tachycardia to fibrillation. In this paper, the authors compare seven conventional and novel time- and frequency-domain methods for cardiac arrhythmia frequency analysis, including an algorithm used in implantable cardioverter defibrillators. The objective of this study is to identify the approaches that reveal the potential presence of a dominant frequency and its role in characterizing different arrhythmia types. By evaluating the strengths and weaknesses of each method, the authors aim to establish an informative framework for extracting meaningful insights from electrocardiogram data in the context of cardiac arrhythmia frequency. In order to ascertain the statistical relevance of the methods, a dataset comprising 112 ECGs from arrhythmic murine hearts was analyzed. Additionally, a dataset comprising human arrhythmia data was examined to validate the techniques presented. The R-library, which contains the frequency determination algorithms, as well as the murine data set, is made available to the reader for the purposes of further testing and supplementation.
1 Introduction
The electrocardiogram (ECG) has been a fundamental tool in the understanding of cardiac electrophysiology for over a century. However, despite significant technical advances, the mechanisms initiating and sustaining cardiac arrhythmia remain to be elucidated. A hallmark of the ECG that differentiates normal sinus rhythm from life-threatening ventricular tachyarrhythmias is the heart rate (or heart frequency), which inversely correlates with the cardiac oscillation period or cycle length (CL). As a critical clinical marker, heart rate monitoring has become essential for diagnosing and managing cardiac diseases, particularly in identifying pathological rhythms that require immediate therapeutic intervention. In this regard, the development of algorithms to automatically detect heart rate, along with their subsequent integration into implantable cardioverter-defibrillators (ICDs) and automated external defibrillators (AEDs), has significantly improved early detection and treatment of dangerous rhythms, such as ventricular tachycardia (VT) and ventricular fibrillation (VF) (Moss et al. (1996), Moss et al. (2002); Weisfeldt et al. (2010)).
The development of ECG mapping technologies (Cakulev et al., 2021) and optical mapping of intact hearts (George and Efimov, 2019) has significantly contributed to the understanding of ventricular tachyarrhythmia mechanisms. Optical mapping has demonstrated that spiral-like activation waves are a primary driver of ventricular arrhythmia (Gray et al., 1995b), whereas ECG mapping has revealed re-entrant circuits as a potential source of VT (Kastor et al., 1972). The combination of these techniques has enabled the correlation of ECG patterns with arrhythmia mechanisms, providing a more comprehensive understanding of the underlying processes. Specifically, studies have shown that the anchoring of a single spiral wave to a anatomical or functional heterogeneity can give rise to monomorphic ventricular tachycardia (mVT) as demonstrated by Annoni et al. (2017), while the deviation of spirals within the myocardial substrate can lead to the distinctive morphology of polymorphic ventricular tachycardia (pVT), which is characterized by a complex and irregular ECG pattern of activation (Gray et al., 1995a). Furthermore, ventricular fibrillation (VF) is marked by a chaotic and disorganized ECG pattern, originated from multiple, rapidly drifting spiral waves (Jalife and Gray, 1996).
Early research employed the Fast Fourier Transform (FFT) to analyze the frequency components of ECG signals during arrhythmia. This analysis revealed that different arrhythmia morphologies are associated with distinct frequency spectra (Nolle et al., 1980; Kinoshita et al., 1992; Clayton et al., 1993). In particular, multiple peaks in the frequency-domain representation of ECG signals have been identified, which are linked to the presence of multiple spiral waves with varying rotation periods (Pandit and Jalife, 2013). This finding suggests that the frequency components of ECG signals can provide valuable information about the underlying mechanisms of arrhythmia.
The determination of arrhythmia frequency also known as dominant frequency has gained significant importance for therapeutic approaches, as studies have shown that delivering multiple low-energy shocks within a specific time frame relative to the arrhythmia frequency increases the likelihood of successful defibrillation (Li et al., 2009; Ambrosi et al., 2011). One approach that leverages this concept and is already employed in clinical settings is Anti-tachycardia Pacing (ATP). ATP involves delivering low-voltage pulses at a frequency higher than the detected heart rate, a technique known as overdrive pacing. While ATP is often successful in terminating VT, its effectiveness is limited in the case of VF (Ricci et al., 2001; Maria et al., 2017). Conversely, other studies have demonstrated that far-field low-energy overdrive pacing is an effective strategy for the termination of atrial fibrillation (AF) and VF (Fenton et al., 2009; Luther et al., 2011; Ji et al., 2017; Hornung et al., 2017).
In the light of the importance of determining the cardiac frequency of arrhythmia, for both diagnostic and therapeutic purposes, we have developed an open-source platform for interspecies ECG arrhythmia frequency analysis. This platform, implemented in an R-library (Wickham and Bryan, 2023), provides a flexible and user-friendly tool for researchers to analyze ECG data. The R-library FibFreq includes three frequency-domain approaches: (i) the well-established maximum of the power spectrum, herein referred to as the maximum of the periodogram (MaxP); (ii) a method to estimate the spectrum via the correlation function, called Adaptive Variable Period (AVP), which is a faster version of the algorithm presented by Diaz-Maue and Nobach (2022); and (iii) a spectrum-fitting method using a Lorentz distribution (Lorentz), as presented in Diaz-Maue et al. (2022). In addition, time-domain approaches included in the R-Library encompass the following methods: (iv) a sinus fit to the time series (SinFit); (v) distance analysis between succeeding peaks (M2M); (vi) a zero-crossing algorithm (UZC), both of which can be considered as CL estimators; and (vii) the Biotronik heart rate analysis algorithm (ICD) as outlined in Brüggemann et al. (2016). The authors also provide the dataset utilized for the analysis of arrhythmia, allowing for further examination by interested researchers.
2 Experimental data set
2.1 Mouse data
The first dataset utilized in this study was obtained from a series of experiments conducted on intact hearts from transgenic mouse containing the Channel Rhodopsin-2 (ChR2) encoding gene. The light-sensitive ion channel, ChR2, is expressed exclusively in cardiac tissue and it enables the elicitation of action potentials through the use of light at an appropriate wavelength. In comparison to wildtype mice of the same background, this model exhibited normal electrical propagation throughout the cardiac tissue (Zaglia et al., 2015). The induction of arrhythmia was achieved through the delivery of a rapid series of optical stimuli by an external blue light source as demonstrated in Diaz-Maue et al. (2022). For this analysis, a subset of seven adult mice, aged between 91 and 113 weeks, was selected.
Single-Lead epicardial electrograms were recorded using a surface electrode positioned at the center of the left ventricle and a reference electrode placed in close proximity to the wall of the perfusion reservoir as shown in Figure 1. The acquisition system is equipped with a low-pass hardware filter with a corner frequency
Figure 1. The ECG signal from Langendorff-perfused intact mouse hearts was measured using a surface electrode positioned on the left ventricle of the heart and a reference electrode located near to the reservoir wall. The ECG signal was then amplified and digitized with an acquisition system.
In consideration of the potential loss of information during signal processing, the preprocessing steps were kept to a minimum. Hence, no windowing function was used, however, to ensure the comparability of ECGs, the signal mean was subtracted to eliminate direct current (DC) components. This step is necessary to account for any DC offset that may be present in the ECG signals. Four examples of the examined mice data are shown in Figure 2, these are ordered from very regular (top) to irregular (bottom).
Figure 2. ECG signals of arrhythmic mouse hearts are displayed in increasing complexity from the top to the bottom. Figure created using the ggplot2 library of R (Wickham et al. (2019).
2.2 Human data
Three cases of human ventricular arrhythmia were retrieved from record 420 (VT), 418 (Ventricular flutter (VFlu)) and 422 (VF) of the MIT-BIH-malignant-ventricular-ectopy-database-1.0.0. For detailed information, please refer to Moody and Mark (2001) and Greenwald (1986). The ECG signals were digitized with a 12-bit Analog-to-Digital Converter (ADC) with a voltage resolution of 200 adu/mV (analog-digital-unit (adu)) and a sampling frequency of
Figure 3. The ECG signals of human origin presented in this study exemplify three instances of ventricular tachyarrhythmia retrieved from the MIT-BIH-malignant-ventricular-ectopy-database-1.0.0 (Moody and Mark, 2001; Greenwald, 1986), each exhibiting unique characteristics. Figure created using the ggplot2 library of R (Wickham et al. (2019).
3 Signal processing methods
We will examine seven techniques for determining arrhythmia frequency, distinguishing between frequency-domain and time-domain. In the frequency-domain, we will discuss the Maximum of the periodogram, the Lorentz fit to the amplitude spectrum and the Adaptive Variable Period. In addition, we will consider time-domain methods, including the Sinus Fit to the time series, the Average Maximum to Maximum Distance, the Average Distance between upward Zero-Crossings and an algorithm implemented in ICDs.
The following notations will be applied: the ECG time series
3.1 Frequency-domain methods for the estimation of the arrhythmia frequency
The conversion of a time series into the frequency-domain can provide a more comprehensive insight into the prominent frequencies present. Therefore, the analysis of the frequency content by estimating the power spectrum has become a wide-spread method. However, it is essential to note that there are multiple estimators of the power spectrum, which exhibit varying degrees of estimation error and frequency resolution. In this section, three methods for the estimation of the frequency spectrum and the identification of a dominant frequency are presented.
3.1.1 Maximum of periodogram (MaxP)
The simplest estimator of the power spectrum is based on the discrete Fourier transform (DFT)
of the signal
For real valued time series such as the ECG signals considered in this study, the entire power spectrum
which is calculated using the squared modulus of the DFT. Then the sum over the values of the power spectrum
If the considered time series can be modeled as a superposition of harmonic functions from these frequencies
In this paper, the fraction of explained variance, denoted by
Where
The periodogram approach is known to have limitations, such as spectral leakage and false estimates, particularly in the presence of trends, non-sinusoidal components, or frequencies that are not multiples of the fundamental frequency
Figure 4. Illustration of seven techniques for estimating the arrhythmia frequency: (A) Spectral Techniques: maximum of the periodogram (blue curve) at
3.1.2 Adaptive variable period (AVP)
The leakage of the FFT routine is specifically addressed by this estimation method. In instances where the signal duration does not correspond to an exact integer multiple of the fundamental period of the periodic signal investigated, the FFT spectrum will be sampled at frequencies that do not align with the fundamental frequency to be detected.
In order to mitigate this issue, the measured signal can be shortened by a certain number of samples, and the FFT from the shorter sequence can be calculated. In the event that the duration of the shorter sequence becomes a integer multiple of the fundamental period, the peak in the FFT spectrum will stand out from the other values in the spectrum and the peaks in all other spectra with wrong assumptions of the duration, making it easier to identify one dominant frequency.
The AVP method essentially investigates how good an assumed fundamental period of the signal matches the observed data. Unlike the approach described above, the AVP does not require discarding any samples by shortening the sequence.
To this end, first the correlation function
with
and
and with the discrete Dirac function
For each assumed period
The spectral peaks are identified and the maximum peak is obtained among all
Figure 4B illustrates for three different values
The concept of explained variance (see Equation 3) is applied to quantify the goodness of fit of the dominant frequency, as previously described for the MaxP algorithm.
3.1.3 Lorentz fit to the amplitude spectrum (Lorentz)
The two aforementioned methods aim to identify the frequency with the greatest power within the estimated power spectra. However, in the context of complex arrhythmia, there may be multiple frequencies that correspond to the movement of different rotors around the heart, making it challenging to identify a single dominant frequency. To address this issue, the authors propose a methodology that examines the trend of the data rather than attempting to describe the arrhythmia with a single frequency. This approach involves fitting a model spectrum to the calculated amplitude spectrum. In order to achieve this, a model that accurately reflects the overall trend of the data is necessary, aligning closely to the peaks obtained from the FFT. The Gaussian, Lorentz, and Voigt functions are useful for modeling spectra, with the Voigt function being the result of convolving a Gaussian and a Lorentz function. In this study, the Lorentz function is applied because of its ability to generate a pronounced peak at the center and elongated wings, allowing for the inclusion of frequencies with diminished amplitude in the fitting process. The Lorentz model is defined as:
where
The Lorentz model is fitted using the gslnls algorithm (Chau, 2025), and the estimated ECG dominant frequency is provided by
Similar to Equation 3, the explained variance of the Lorentz fit, as a measure of the goodness of fit, is given by:
This quantity ranges between 0 and 1, with values of
3.2 Time-domain methods for the estimation of arrhythmia frequency
In this section, the methods for estimating the frequency of arrhythmia as the inverse of the obtained CL, which are included in the R-Library, will be presented. These methodologies are based on the morphological analysis of the recorded ECG waveform.
3.2.1 Sinus fit (SinFit)
As shown in Section 3.1.1, a given signal can be decomposed into a sum of sine and cosine signals by converting it to the frequency-domain using the FFT. Here, the investigated ECG time series is modeled as a sinusoidal function:
where
For the analysis of the murine ECGs, the value of the frequency,
3.2.2 Average Distance between upward zero-crossings (UZC)
Another intuitive frequency estimation method is based on the analysis of upward (or downward respectively) zero-crossings. Since the signal pre-processing includes mean value subtraction there are multiple zero-crossings. We identify the time points of upward zero-crossings
In contrast to the SinFit method, this technique is applicable to a broader range of non-sinusoidal and periodic signals. However, challenges may arise when dealing with polymorphic tachyarrhythmia that are modeled as superpositions of periodic signals. To quantify the uncertainty associated with this method, the coefficient of variation
with
3.2.3 Average Maximum-to-Maximum Distance (M2M)
The arrhythmia time series can be considered as a smooth and oscillating signal, and therefore, the local maxima (or minima, respectively)
Consequently the inverse value of the average temporal distance between succeeding local maxima,
3.2.4 ICD algorithm (ICD)
In order to facilitate a comparison with a clinically utilized algorithm, the authors implemented the sensing algorithm used by Biotronik in ICDs (Brüggemann et al., 2016), and included it in the provided R-Library. A notable advantage of this method is its versatility, as it can be applied to both sinus rhythm and to arrhythmia cases. The ICD algorithm similar to the M2M method, is based on the determination of the maximum values of the ECG. However, it constrains the maxima to those that have a minimum distance to the preceding maximum and a maximum height of at least a certain percentage of the height of this preceding maximum.
As a brief description of the method, the algorithm involves the use of distinct threshold levels, which are calibrated dynamically in relation to the peak amplitude of the signal over predefined time periods (refractory period). The local maximum of the ECG is measured and employed to establish the upper and lower thresholds. The upper threshold is initially set to 50% of the detected peak and maintained for a specified refractory period. Subsequent to this interval, the lower threshold is set to 25% of the measured peak for an additional defined period. Subsequently, the algorithm proceeds to decrease the sensing threshold by 12.5% for the stipulated period. This process continues until either the minimum threshold is reached or a new maximum value is encountered. More details can be found in the original publication by Brüggemann et al. (2016).
Similar to the M2M and UZC techniques the time intervals between the identified maxima (illustrated as beige filled squares in Figure 4C) will be determined and used to compute the frequency
4 Benchmarks
A comparative analysis of seven distinct algorithms for determining arrhythmia frequency was conducted in this work. Three of the algorithms operate in the frequency-domain using Fourier techniques, while the remaining four exploit the morphological properties of the ECG in the time-domain.
In this section the statistical properties of the seven frequency estimators will be studied by applying them to model data with well-known properties. To this end, two sets of model time series have been generated, one exhibiting regular and the other both regular and irregular oscillations. To ensure the comparability of the model data to the considered murine ECGs, the model data will contain 1,000 data points each.
The first class of model time series contains sinusoidal functions with frequencies
The second class of model time series encompasses regular and irregular oscillations, which have been modeled as stochastic oscillations (Gardiner, 2009; Pikovsky et al., 2003). Stochastic oscillators are described by stochastic differential equations. In this instance, the following system has been integrated by applying an Euler–Maruyama (Maruyama, 1955; Kloeden and Platen, 1992) scheme:
with
A total of 1,000 time series have been generated with a frequency of
The frequency estimation results for the seven algorithms are graphically presented in Figure 5, where panel A shows boxplots of the estimated frequencies along with the results for the statistical tests. Here, the median frequency (i.e., horizontal line inside the box) of all estimators, with the exception of M2M, is found to be approximately 22 Hz. The height of the boxes represents the random error of the estimation techniques in terms of the inter-quartile range, which is particularly large for the M2M and the ICD estimator and small for the Lorentz fit. It is noteworthy that the MaxP algorithm exhibits a coarser resolution, a consequence of the spectral resolution attained with
Figure 5. Results of the seven frequency estimators applied to model time series with irregular oscillations. All time series have a frequency of
A series of statistical tests (Fisher, 1925; Montgomery, 2017), were applied to determine the significant differences between the outcomes derived from the seven techniques. Initially, a repeated measures analysis of variance (ANOVA) with a Greenhouse-Geisser correction was conducted. This analysis indicated statistically significant differences between the frequency estimators
Subsequently, pairwise t-tests with Bonferroni corrections were conducted, to enable a comparison between the individual frequency estimators. The results (see Figure 5A) demonstrated that the spectral estimators, in conjunction with FitSin, did not differ significantly from one another. However, a significant difference was observed between the group of frequency-domain estimators and FitSin, and the UZC, M2M, and ICD estimators. Additionally, the latter three estimators were also found to be mutually distinct. These findings were then corroborated by pairwise Wilcoxon signed-rank tests.
The pairwise agreement between the estimators was visualized using Bland-Altman plots (upper triangular matrix of Figure 5B). Here, each scatter point represents the difference between the paired measurements plotted against the average value derived from the identical time series. The horizontal lines in each Bland-Altman plot represent the mean and the 95% confidence intervals of the differences (calculated as the 2.5th and the 97.5th percentile). In the event that all points were situated along the x-axis, the two considered techniques would exhibit a high degree of agreement. With the exception of a few outliers, this is the case when a comparison is made between AVP and FitSin. An offset in the Bland-Altman plot is indicative of a systematic difference or fixed bias between the considered techniques, as evidenced in all comparisons to M2M.
Finally, the Pearson correlation coefficients for pairwise techniques were calculated and are presented in the lower triangular matrix of Figure 5, panel B. All correlation coefficients, with the exception of the one between M2M and ICD, are determined to be significantly positive (
Large correlation coefficients between the spectral estimators indicate that they result in higher (or lower, respectively) than average frequencies when applied to the same model time series. In contrast, small correlation coefficients are indicative of more independent frequency estimation results, as evidenced for all pairs of frequency-domain techniques and UZC, M2M, and ICD.
In summary, the performance of the frequency estimators was benchmarked, and it was demonstrated that in case of regular oscillations all techniques yielded the expected outcome within the limits of the accuracy of the specific estimator. In the context of time series with irregular oscillations, the application of the frequency-domain estimators in conjunction with the FitSin method ensures the absence of bias, while exhibiting a high degree of inter-correlation. Notably, the Lorentz-fit approach exhibits the smallest random error among all considered methods. Additionally, it was also demonstrated that the UZC, M2M and ICD techniques are weakly correlated with the spectral techniques and FitSin.
5 Results
The performance of the seven algorithms for measured data was evaluated using a set of 112 ECGs from perfused arrhythmic murine hearts and was further applied to a short set of human arrhythmia.
5.1 Mouse data
The results for the frequency estimation of the mouse data are summarized in Figure 6 in the same manner as the results for the benchmarks were visualized in Figure 5. Figure 6A presents boxplots for the results of the seven frequency estimation techniques and the results of the corresponding statistical tests. The estimated frequencies range from 7.5 Hz to 36.5 Hz with the results of the M2M technique being consistently larger than those obtained by the other six techniques: The main frequency
Figure 6. Results of the seven frequency estimators applied to the dataset with 112 ECGs of arrhythmic murine hearts. (A) Boxplots of the seven techniques: The frequency estimates are represented by gray dots. Each of the boxes gives the mean value (diamond symbol), the median (horizontal line in middle of the box) as well as 25th and 75th percentiles of the estimated frequencies (box upper and lower edges of the box). Significance brackets present the results (adjusted p-values) of pairwise t-tests: * stands for
Figure 6B shows the distribution of the estimated frequencies for each method along the diagonal, Bland-Altman plots, which are used to assess the agreement between methods, are displayed above the diagonal, and Pearson’s correlation coefficients and their visualizations are shown below the diagonal. As previously discussed, the three frequency-domain methods and the FitSin exhibit strong agreement as the points in the Bland-Altman are grouped horizontally around the line
In agreement with the results shown in Figure 6A, the analysis in Figure 6B further demonstrates that the M2M algorithm estimates larger frequencies
Figure 6B also shows a strong correlation
In contrast, when comparing these techniques with the Lorentz fit, a stronger variability is observed. Furthermore the Lorentz fit tends to yield larger frequency estimates for
A direct performance comparison of frequency- and time-domain techniques reveals a moderate degree of correlation between the frequency-domain techniques, the FitSin and the ICD technique, with values of 0.76 and 0.81. Notably, the ICD method and the Lorentz fit showed the strongest correlation among the aforementioned methods, with a correlation coefficient of 0.84. Furthermore, the UZC technique, which is relatively simple, also shows high correlation coefficients with the spectral techniques, FitSin, and the ICD estimator. However the Bland-Altman plots show a proportional bias against all other methods. Conversely, the M2M time-domain technique exhibits lower correlations with spectral techniques, with all corresponding coefficients falling below 0.63.
The performance of the seven estimators was further analyzed for the murine ECGs with less complex arrhythmia, such as ventricular tachycardia (VT). Here, the identification of the arrhythmia frequency can be achieved with a high degree of precision through the application of both time- and frequency-domain methods. The 36 ECG time series with high values of the explained variance with respect to the MaxP estimator
5.2 Human data
The analysis of human arrhythmia data revealed frequencies of
Table 1. Frequency estimates and the corresponding dispersions (explained variance and coefficient of variation) for the three examples of human arrhythmic ECGs shown in Figure 3.
In the case of VT, the low coefficient of variations for the time-domain methods
6 Discussion
The analysis of ECG signals from arrhythmic hearts often requires the identification of heart rates, dominant frequencies or cycle lengths for diagnostic or therapeutic purposes. Arrhythmic ECGs exhibit dynamic, repeating, and non-repeating patterns that can be analyzed using the algorithms presented in this study. These algorithms are designed to quantify the periodicity of ECG patterns, thereby yielding a numerical value that represents the dominant frequency or dominant period. A thorough examination of the mouse dataset revealed that the algorithms presented herein yielded distinct outcomes, particularly when applied to complex signals. This divergence does not necessarily imply an issue with the performance of the algorithms. Rather, it highlights a more fundamental question: Does the information contained within the ECG data genuinely correspond to a single dominant frequency or period?
To illustrate this point, consider a signal that initially comprises two harmonic frequencies (
In this study, we also proposed two quantitative measures for identifying the presence of a dominant frequency. The first involves the computation of the explained variance, denoted by
It was also observed that time-domain-based algorithms show a substantial dispersion of frequency estimates, resulting in a more pronounced mutual deviation when compared to the frequency-domain methods. This discrepancy is attributable to their ability to identify localized patterns within the ECG, while neglecting the overall course of the signal. As discussed in Section 5, the M2M algorithm results in the largest frequency estimate for the time-domain methods. This can be explained as follows: Each threshold crossing is associated with a local maximum; however, because multiple local maxima may occur above the threshold and multiple local minima may occur below it, the total number of local maxima can exceed the number of threshold crossings. Therefore, the frequency estimates derived from M2M are larger than or equal to the UZC-based estimates. The frequency estimate derived from the ICD techniques excludes maxima, which occur during the refractory period, resulting in a value that is smaller than or equal to the M2M estimate.
In the frequency-domain methods, Fourier analysis has been incorporated into the MaxP algorithm, as this method has a long history of application in ECG frequency determination (Nolle et al., 1980; Herbschleb et al., 1980; Caldwell et al., 2007). In this case it is important to consider that when a segment of a continuous signal undergoes Fourier analysis, there is a high probability that the selected segment will contain incomplete periods. It is inevitable that incomplete periods will result in leakage effects, which, in turn, will lead to a widened Fourier spectrum. Consequently, pinpointing a single sharp peak corresponding to a dominant frequency becomes challenging. In previous studies, alternative methods such as the Organization Index (Everett et al., 2001), Organization Analysis (Barquero-Perez et al., 2010), Spectral Flatness (Eftestøl et al., 2000), and Ensemble Average (Ciaccio et al., 2011) have been employed to address this issue. While the application of a window function is another recognized method applied for mitigating the leakage effect, we opted against it to avoid the introduction of an additional amplitude modulation effect. We also present a novel method for addressing the aforementioned problem, namely, the AVP algorithm, which can handle an assumed fundamental period of the signal under investigation independent of the duration of the signal recorded, calculating corresponding FFTs for various signal periods assumed. This process identifies the maximum peak of the spectrum that corresponds to an integer multiple of the fundamental period, and consequently to the dominant frequency.
The SinFit and Lorentz algorithms were developed based on fitting techniques. While the dispersion of the frequency values found with the SinFit algorithm appears to perform equally to the MaxP and AVP methods, it was observed that the frequencies found with the Lorentz technique are more similar to the time-domain techniques in particular to the ICD and UZC methods. This is because the fitting can better manage the superposition of two or more frequencies in the ECG signal.
Within the time-domain methods, the developed R-library includes an algorithm for identifying heart rate, based on the ICD algorithm used by Brüggemann et al. (2016). Here it is important to note that the intracardiac electrogram (EGM) obtained via an intravenous catheter exhibits a distinct frequency spectrum (Requena-Carrión et al., 2013) when compared to the frequency observed in surface ECGs. Consequently, it is necessary to apply proper signal preconditioning to EGM data, including bandpass filtering (different settings for unipolar and bipolar EGMs), and under certain circumstances rectification (Ng and Goldberger, 2007), prior to applying the remaining six algorithms presented in this study. ECG data from arrhythmic hearts can be analyzed directly using the ICD method and the other algorithms presented. Although the pre-processing of surface ECG varies slightly between species, these variations do not impede the direct application of the aforementioned methods.
The remaining two time-domain methods M2M and UZC are particularly well-suited for scenarios where low computational power is a prerequisite, such as in lower-architecture microcontroller-aided applications. As demonstrated in our results, the dominant period obtained is of a diminished duration, leading to a dominant frequency that exceeds those yielded by the alternative algorithms. Nonetheless, these two methods have been shown to provide rapid performance and a reasonably accurate estimate of the dominant frequency.
In instances where the estimation of a dominant frequency is necessary prior to the application of a particular arrhythmia therapy, such as overdrive pacing (for VT (Ellenbogen et al., 2008), for VF (Luther et al., 2011)) or multistage therapies (Li et al., 2009), our findings suggest that the utilization of both time- and frequency-domain algorithms ensures a more precise frequency estimation for complex arrhythmia. However, a critical consideration is that the ECG signal of an arrhythmic heart undergoes constant changes. Therefore, it would be prudent to consider the implementation of the presented algorithms within sliding windows, thereby facilitating the monitoring of dynamic changes.
The present study is constrained to the statistical comparison of the seven methods for frequency estimation that are currently or that could be employed in real-time, low-power processing environments, such as those found in implantable cardioverter-defibrillators (ICDs). These life-critical embedded systems require algorithms that are mathematically simple, highly reliable, and computationally efficient. Nonetheless, the implementation of alternative signal analysis techniques, such as wavelet analysis (Grossmann and Morlet, 1984; Daubechies et al., 2011; Zhuravlev et al., 2025), which offer powerful capabilities for characterizing non-stationary events and the dynamic frequency components associated with complex arrhythmia transitions, remains a promising avenue for future research. In addition, recent studies have demonstrated the efficacy of advanced signal processing methodologies, such as machine learning (ML) algorithms, empirical mode decomposition (EMD), and sophisticated autoregressive models, in the domain of biosignal processing (Mohanty et al., 2021; Ahmadi and Ekhlasi, 2019; Baselli et al., 1985). Subsequent research endeavors will involve the integration and comparison of other analysis approaches within this analytical framework.
7 Conclusion
The objective of this study was to provide interested readers and the scientific community with a comparative analysis of algorithms that determine the dominant frequency of ECGs of arrhythmic hearts. We have investigated seven time- and frequency-domain techniques, which are made available in the R-library FibFreq. The R-library has been demonstrated to be suitable for the analysis of both an experimentally obtained mouse ECG dataset and a human dataset (MIT-BIH-malignant-ventricular-ectopy-database-1.0.0). Despite the awareness that heart rates vary significantly among different species (Schüttler et al., 2020), we have demonstrated that by employing the appropriate pre-processing techniques and utilizing our R-Library, it is possible to ascertain a reliable estimate for the dominant frequency for less complex arrhythmia. Moreover, the R-Library can be also applied to other oscillatory phenomena, as demonstrated in Supplementary Material for the frequency determination of sunspots.
In addition to providing a frequency estimate, the algorithms under consideration also yield secondary quantities that can be used to evaluate whether the given signal can be adequately modeled using a single periodic pattern. These are the explained variance for all frequency-domain techniques and the SinFit, and the coefficient of variation of the identified time intervals for the three time-domain techniques. The data analysis presented herein indicates that a low coefficient of variation or an explained variance that approaches to one are indicative of a signal that is essentially periodic and can be described using a single dominant frequency. Therefore, in order to ascertain the presence of a single dominant frequency in an ECG time series, it is recommended that both time-domain and frequency-domain techniques be applied.
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation. The repository for the R-Library: https://github.com/origami-dss/FibFreq.
Ethics statement
Ethical approval was not required for the study involving humans in accordance with the local legislation and institutional requirements. Written informed consent to participate in this study was not required from the participants or the participants’ legal guardians/next of kin in accordance with the national legislation and the institutional requirements. The animal study was approved by Federation of European Laboratory Animal Science Associations. The study was conducted in accordance with the local legislation and institutional requirements.
Author contributions
LD-M: Conceptualization, Data curation, Investigation, Methodology, Project administration, Resources, Supervision, Validation, Visualization, Writing – original draft, Writing – review and editing. AW: Data curation, Formal Analysis, Investigation, Methodology, Resources, Software, Validation, Visualization, Writing – original draft, Writing – review and editing. LE: Investigation, Writing – review and editing. HN: Formal Analysis, Investigation, Methodology, Validation, Writing – original draft, Writing – review and editing.
Funding
The author(s) declared that financial support was received for this work and/or its publication. This work was supported by the Max Planck Society and by the DZHK (German Centre for Cardiovascular Research), funding code: 81Z0300114.
Acknowledgements
The authors want to thank Marion Kunze and Tina Althaus for their excellent technical assistance during experimental setup and experiment conduction. Many thanks to Claudia Richter and Stefan Luther for fruitful discussions and thought-provoking impulses. We also thank the reviewers, who provided in-depth reviews and comments which substantially improved this manuscript.
Conflict of interest
The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declared that generative AI was used in the creation of this manuscript. DeepL AI Labs (write function for editing).
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/frsip.2025.1707422/full#supplementary-material
References
Ahmadi, H., and Ekhlasi, A. (2019). “Types of emd algorithms,” in 2019 5th Iranian conference on signal processing and intelligent systems (ICSPIS), 1–5. doi:10.1109/ICSPIS48872.2019.9066155
Ambrosi, C. M., Ripplinger, C. M., Efimov, I. R., and Fedorov, V. V. (2011). Termination of sustained atrial flutter and fibrillation using low-voltage multiple-shock therapy. Heart rhythm. 8, 101–108. doi:10.1016/j.hrthm.2010.10.018
Annoni, E. M., Arunachalam, S. P., Kapa, S., Mulpuru, S. K., Friedman, P. A., and Tolkacheva, E. G. (2017). Novel quantitative analytical approaches for rotor identification and associated implications for mapping. IEEE Trans. Biomed. Eng. 65, 273–281. doi:10.1109/TBME.2017.2763460
Barquero-Perez, O., Rojo-Alvarez, J. L., Caamano, A. J., Goya-Esteban, R., Everss, E., Alonso-Atienza, F., et al. (2010). Fundamental frequency and regularity of cardiac electrograms with fourier organization analysis. IEEE Trans. Biomed. Eng. 57, 2168–2177. doi:10.1109/TBME.2010.2049574
Baselli, G., Bolis, D., Cerutti, S., and Freschi, C. (1985). Autoregressive modeling and power spectral estimate of rr interval time series in arrhythmic patients. Comput. Biomed. Res. 18, 510–530. doi:10.1016/0010-4809(85)90027-8
Betsuyaku, T., Kanno, S., Lerner, D. L., Schuessler, R. B., Saffitz, J. E., and Yamada, K. A. (2004). Spontaneous and inducible ventricular arrhythmias after myocardial infarction in mice. Cardiovasc. Pathol. 13, 156–164. doi:10.1016/S1054-8807(03)00152-2
Brüggemann, T., Dahlke, D., Chebbo, A., and Neumann, I. (2016). Tachycardia detection in modern implantable cardioverter–defibrillators. Herzschrittmachertherapie + Elektrophysiologie 27, 171–185. doi:10.1007/s00399-016-0449-z
Cakulev, I., Wit, A. L., and Waldo, A. L. (2021). The history of mapping. Cham: Springer International Publishing, 27–40. doi:10.1007/978-3-030-63355-4_3
Caldwell, J., Burton, F. L., Smith, G. L., and Cobbe, S. M. (2007). Heterogeneity of ventricular fibrillation dominant frequency during global ischemia in isolated rabbit hearts. Journal of Cardiovascular Electrophysiology 18, 854–861. doi:10.1111/j.1540-8167.2007.00867.x
Ciaccio, E. J., Coromilas, J., Wit, A. L., and Garan, H. (2011). Onset dynamics of ventricular tachyarrhythmias as measured by dominant frequency. Heart Rhythm 8, 615–623. doi:10.1016/j.hrthm.2010.11.028
Clayton, R. H., Murray, A., and Campbell, R. W. (1993). Comparison of four techniques for recognition of ventricular fibrillation from the surface ecg. Medical and Biological Engineering and Computing 31, 111–117. doi:10.1007/BF02446668
Comtois, P., Kneller, J., and Nattel, S. (2005). Of circles and spirals: bridging the gap between the leading circle and spiral wave concepts of cardiac reentry. EP Europace 7, S10–S20. doi:10.1016/j.eupc.2005.05.011
Constantine, W., and Hesterberg, T. (2024). splus2R: Supplemental S-PLUS functionality in R. R Package Version 1, 3–5. Available online at: https://github.com/spkaluzny/splus2r.
Cooley, J. W., and Tukey, J. W. (1965). An algorithm for the machine calculation of complex fourier series. Mathematics of Computation 19, 297–301. doi:10.2307/2003354
Daubechies, I., Lu, J., and Wu, H.-T. (2011). Synchrosqueezed wavelet transforms: an empirical mode decomposition-like tool. Applied and Computational Harmonic Analysis 30, 243–261. doi:10.1016/j.acha.2010.08.002
Davtdenko, J. M. (1993). Spiral wave activity: a possible common mechanism for polymorphic and monomorphic ventricular tachycardias. Journal of Cardiovascular Electrophysiology 4, 730–746. doi:10.1111/j.1540-8167.1993.tb01258.x
Diaz-Maue, L., and Nobach, H. (2022). “Correlation function and power spectrum from almost periodic signals with incomplete periods. In,” in 29. Fachtagung experimentelle strömungsmechanik (german association for laser anemometry GALA e.V.,), 33, 1–33.9
Diaz-Maue, L., Steinebach, J., and Richter, C. (2022). Patterned illumination techniques in optogenetics: an insight into decelerating murine hearts. Frontiers in Physiology 12, 750535. doi:10.3389/fphys.2021.750535
Eftestøl, T., Sunde, K., Ole Aase, S., Husøy, J. H., and Steen, P. A. (2000). Predicting outcome of defibrillation by spectral characterization and nonparametric classification of ventricular fibrillation in patients with out-of-hospital cardiac arrest. Circulation 102, 1523–1529. doi:10.1161/01.cir.102.13.1523
Ellenbogen, K. A., Wood, M. A., and Gold, M. R. (2008). “The implantable cardioverter defibrillator,” in Cardiac pacing and ICDs Editors K. A. Ellenbogen, and M. A. Wood 5 edn. (Malden, MA: Blackwell Publishing), 382–414.
Everett, T. H., IV, Moorman, J. R., Kok, L.-C., Akar, J. G., and Haines, D. E. (2001). Assessment of global atrial fibrillation organization to optimize timing of atrial defibrillation. Circulation 103, 2857–2861. doi:10.1161/01.cir.103.23.2857
Fenton, F. H., Luther, S., Cherry, E. M., Otani, N. F., Krinsky, V., Pumir, A., et al. (2009). Termination of atrial fibrillation using pulsed low-energy far-field stimulation. Circulation 120, 467–476. doi:10.1161/CIRCULATIONAHA.108.825091
Gadenz, L., Hashemi, J., Shariat, M. H., Gula, L., and Redfearn, D. P. (2017). Clinical role of dominant frequency measurements in atrial fibrillation Ablation–a systematic review. Journal of Atrial Fibrillation 9, 1548. doi:10.4022/jafib.1548
Gardiner, C. W. (2009). Handbook of stochastic methods: for physics, chemistry and the natural sciences. (Berlin: Springer), 4 edn.
George, S. A., and Efimov, I. R. (2019). Optocardiography: a review of its past, present, and future. Current Opinion in Biomedical Engineering 9, 74–80. doi:10.1016/j.cobme.2019.03.001
Gray, R. A., Jalife, J., Panfilov, A., Baxter, W. T., Cabo, C., Davidenko, J. M., et al. (1995a). Nonstationary vortexlike reentrant activity as a mechanism of polymorphic ventricular tachycardia in the isolated rabbit heart. Circulation 91, 2454–2469. doi:10.1161/01.cir.91.9.2454
Gray, R. A., Jalife, J., Panfilov, A. V., Baxter, W. T., Cabo, C., Davidenko, J. M., et al. (1995b). Mechanisms of cardiac fibrillation. Science 270, 1222–1223. doi:10.1126/science.270.5239.1222
Greenwald, S. D. (1986). The development and analysis of a ventricular fibrillation detector. Ph.D. thesis, Cambridge, United States: Massachusetts Institute of Technology.
Grossmann, A., and Morlet, J. (1984). Decomposition of hardy functions into square integrable wavelets of constant shape. SIAM Journal on Mathematical Analysis 15, 723–736. doi:10.1137/0515056
Herbschleb, J., Heethaar, R., Tweel, I., and Meijler, F. (1980). Frequency analysis of the ecg before and during ventricular fibrillation. Computers in Cardiology, 365–368. Available online at: https://dspace.library.uu.nl/handle/1874/209848.
Hornung, D., Biktashev, V., Otani, N., Shajahan, T., Baig, T., Berg, S., et al. (2017). Mechanisms of vortices termination in the cardiac muscle. Royal Society Open Science 4, 170024. doi:10.1098/rsos.170024
Jalife, J., and Gray, R. (1996). Drifting vortices of electrical waves underlie ventricular fibrillation in the rabbit heart. Acta Physiologica Scandinavica 157, 123–132. doi:10.1046/j.1365-201X.1996.505249000.x
Ji, Y. C., Uzelac, I., Otani, N., Luther, S., Gilmour Jr, R. F., Cherry, E. M., et al. (2017). Synchronization as a mechanism for low-energy anti-fibrillation pacing. Heart Rhythm 14, 1254–1262. doi:10.1016/j.hrthm.2017.05.021
Kass, D. A., Hare, J. M., and Georgakopoulos, D. (1998). Murine cardiac function: a cautionary tail. Circulation Research 82, 519–522. doi:10.1161/01.res.82.4.519
Kastor, J. A., Spear, J. F., and Moore, E. N. (1972). Localization of ventricular irritability by epicardial mapping. Circulation 45, 952–964. doi:10.1161/01.CIR.45.5.952
Kinoshita, O., Kamakura, S., Ohe, T., Yutani, C., Matsuhisa, M., Aihara, N., et al. (1992). Spectral analysis of signal-averaged electrocardiograms in patients with idiopathic ventricular tachycardia of left ventricular origin. Circulation 85, 2054–2059. doi:10.1161/01.cir.85.6.2054
Kloeden, P. E., and Platen, E. (1992). in Stochastic modelling and applied probability (Springer). doi:10.1007/978-3-662-12616-5
Li, W., Ripplinger, C. M., Lou, Q., and Efimov, I. R. (2009). Multiple monophasic shocks improve electrotherapy of ventricular tachycardia in a rabbit model of chronic infarction. Heart Rhythm 6, 1020–1027. doi:10.1016/j.hrthm.2009.03.015
Lim, Z. Y., Maskara, B., Aguel, F., Emokpae Jr, R., and Tung, L. (2006). Spiral wave attachment to millimeter-sized obstacles. Circulation 114, 2113–2121. doi:10.1161/CIRCULATIONAHA.105.598631
Luther, S., Fenton, F. H., Kornreich, B. G., Squires, A., Bittihn, P., Hornung, D., et al. (2011). Low-energy control of electrical turbulence in the heart. Nature 475, 235–239. doi:10.1038/nature10216
Maria, E. D., Giacopelli, D., Borghi, A., Modonesi, L., and Cappelli, S. (2017). Antitachycardia pacing programming in implantable cardioverter defibrillator: a systematic review. World Journal of Cardiology 9, 429–436. doi:10.4330/wjc.v9.i5.429
Maruyama, G. (1955). Continuous markov processes and stochastic equations. Rendiconti del Circolo Matematico di Palermo 4, 48–90. doi:10.1007/BF02846028
Mohanty, M., Dash, M., Biswal, P., and Sabut, S. (2021). Classification of ventricular arrhythmias using empirical mode decomposition and machine learning algorithms. Progress in Artificial Intelligence 10, 489–504. doi:10.1007/s13748-021-00250-6
Montgomery, D. C. (2017). Design and analysis of experiments (Hoboken, NJ: John Wiley and Sons), 9 edn.
Moody, G. B., and Mark, R. G. (2001). The impact of the mit-bih arrhythmia database. IEEE Engineering in Medicine and Biology Magazine 20, 45–50. doi:10.1109/51.932724
Moss, A. J., Hall, W. J., Cannom, D. S., Daubert, J. P., Higgins, S. L., Klein, H., et al. (1996). Improved survival with an implanted defibrillator in patients with coronary disease at high risk for ventricular arrhythmia. N. Engl. Journal of Medicine 335, 1933–1940. doi:10.1056/NEJM199612263352601
Moss, A. J., Zareba, W., Hall, W. J., Klein, H., Wilber, D. J., Cannom, D. S., et al. (2002). Prophylactic implantation of a defibrillator in patients with myocardial infarction and reduced ejection fraction. N. Engl. Journal of Medicine 346, 877–883. doi:10.1056/NEJMoa013474
Ng, J., and Goldberger, J. J. (2007). Understanding and interpreting dominant frequency analysis of af electrograms. Journal of Cardiovascular Electrophysiology 18, 680–685. doi:10.1111/j.1540-8167.2007.00832.x
Nolle, F., Ryschon, K., and Zeencka, A. (1980). Power spectrum analysis of ventricular fibrillation and imitative artifacts. Comput. Cardiol 209, 212.
Pandit, S. V., and Jalife, J. (2013). Rotors and the dynamics of cardiac fibrillation. Circulation Research 112, 849–862. doi:10.1161/CIRCRESAHA.111.300158
Pikovsky, A., Rosenblum, M., and Kurths, J. (2003). Synchronization: a universal concept in nonlinear sciences. in Cambridge Nonlinear Science series (Cambridge: Cambridge University Press).
Requena-Carrión, J., Alonso-Atienza, F., Everss, E., Sánchez-Muñoz, J. J., Ortiz, M., García-Alberola, A., et al. (2013). Analysis of the robustness of spectral indices during ventricular fibrillation. Biomedical Signal Processing and Control 8, 733–739. doi:10.1016/j.bspc.2013.06.013
Ricci, R., Pignalberil, C., Disertori, M., Capucci, A., Padeletti, L., Botto, G., et al. (2001). Antitachycardia pacing therapy to treat spontaneous atrial tachyarrhythmias: the 7250 dual defibrillator italian registry. European Heart Journal Supplements 3, P25–P32. doi:10.1016/S1520-765X(01)90069-0
Sanders, P., Berenfeld, O., Hocini, M., Jaïs, P., Vaidyanathan, R., Hsu, L.-F., et al. (2005). Spectral analysis identifies sites of high-frequency activity maintaining atrial fibrillation in humans. Circulation 112, 789–797. doi:10.1161/CIRCULATIONAHA.104.517011
Schüttler, D., Bapat, A., Kääb, S., Lee, K., Tomsits, P., Clauss, S., et al. (2020). Animal models of atrial fibrillation. Circulation Research 127, 91–110. doi:10.1161/CIRCRESAHA.120.316366
van Boxtel, G., Short, T., Kienzle, P., Abbott, B., Aguado, J., Annamalai, M., et al. (2021). Gsignal: signal processing. Available online at: https://cran.r-project.org/web/packages/gsignal/gsignal.pdf.
Viskin, S., Ish-Shalom, M., Koifman, E., Rozovski, U., Zeltser, D., Glick, A., et al. (2003). Ventricular flutter induced during electrophysiologic studies in patients with old myocardial infarction: clinical and electrophysiologic predictors, and prognostic significance. Journal of Cardiovascular Electrophysiology 14, 913–919. doi:10.1046/j.1540-8167.2003.03082.x
Weisfeldt, M. L., Sitlani, C. M., Ornato, J. P., Rea, T., Aufderheide, T. P., Davis, D., et al. (2010). Survival after application of automatic external defibrillators before arrival of the emergency medical system: evaluation in the resuscitation outcomes consortium population of 21 million. Journal of the American College of Cardiology 55, 1713–1720. doi:10.1016/j.jacc.2009.11.077
Wickham, H., and Bryan, J. (2023). R Packages: Organize, Test, Document, and Share Your Code. 2nd edn. Sebastopol, CA: O’Reilly Media.
Wickham, H., Averick, M., Bryan, J., Chang, W., McGowan, L. D., François, R., et al. (2019). Welcome to the tidyverse. Journal of Open Source Software 4, 1686. doi:10.21105/joss.01686
Zaglia, T., Pianca, N., Borile, G., Da Broi, F., Richter, C., Campione, M., et al. (2015). “Optogenetic determination of the myocardial requirements for extrasystoles by cell type-specific targeting of channelrhodopsin-2,” 112. Proceedings of the National Academy of Sciences, E4495–E4504. doi:10.1073/pnas.1509380112
Keywords: cardiac arrhythmia, frequency estimation, morphological analysis, spectralanalysis, time series analysis, ventricular fibrillation, ventricular tachycardia
Citation: Diaz-Maue L, Witt A, Elshareif L and Nobach H (2026) Unraveling cardiac arrhythmia frequency: comparative analysis using time and frequency domain algorithms. Front. Signal Process. 5:1707422. doi: 10.3389/frsip.2025.1707422
Received: 17 September 2025; Accepted: 03 December 2025;
Published: 12 January 2026.
Edited by:
Ahsan H. Khandoker, Khalifa University, United Arab EmiratesReviewed by:
Anastasiya E. Runnova, Saratov State Medical University, RussiaMatthew Levin, Icahn School of Medicine at Mount Sinai, United States
Copyright © 2026 Diaz-Maue, Witt, Elshareif and Nobach. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Laura Diaz-Maue, bGF1cmEuZGlhekBkcy5tcGcuZGU=
†These authors share first authorship
Lina Elshareif 5