1 Introduction

Physiological signal is of great significance in human health care, of which heart rate variability (HRV) is an important indicator for people’s condition, especially for patients with cardiovascular diseases [1, 2]. In addition, the monitoring of people’s HRV features is also required in numerous applications, such as anxiety treatments [3], stress and emotions recognition [4, 5], vigilance monitoring [6], training optimization [7], etc. As a result, monitoring the heart rate in real time to obtain the HRV is requisite in many applications.

To achieve the HRV monitoring, the traditional devices are mainly contact sensors, such as PPG (photoplethysmogram) sensors [8], ECG (electrocardiogram) sensors, and piezoelectric or piezoresistive sensors. However, there are obvious disadvantages for the use of contact sensors. First, they may limit the patients’ mobility caused by sensors placed on the human body [9] and influence the measurement results due to the patients’ awareness of the measurement being performed [10]. Second, they are difficult to be applied to some special patients’ who have psychiatric illnesses or damaged skin, such as burns, painful skin rashes, hives, etc. [11]. To obtain better usability, it is necessary to realize remote monitoring of HRV using non-contact sensors [12].

The technology based on continuous wave (CW) Doppler radar is one of the most promising methods for non-contact measurement of HRV [13,14,15,16,17,18,19,20]. With the non-contact and noninvasive characteristics, the CW Doppler radar can detect micro-motions caused by human physiological movements due to respiration and heartbeat through the phase modulation effect without contacting patients’ body [21]. Compared with the traditional contact sensors, the CW Doppler radar possesses evident advantages, such as insensitive to light and temperature [22], availability to the patients with burn or skin disease [23], and good penetrability of electromagnetic wave that can pass through clothing [24].

Although given these advantages of CW Doppler radar, there are still two challenges when implementing the measurement of HRV, the first is how to cope with the harmonics interference originated from respiration signals [25] and the second is how to extract heart rate (HR) in real time, in other words, how to monitor HR in a short time window with low computation complexity [26]. According to the equation ∆f = 1/T, where ∆f is the frequency resolution and T is the length of the time window, a short time window will reduce the frequency resolution. For these challenges, many researches have been carried out to achieve HR measurement using the CW Doppler radar. A novel respiration harmonics cancellation technique for HR extraction is applied, which applies complex signal demodulation [27]. An adaptive harmonics comb notch digital filter is proposed to remove respiration harmonics without removing the heartbeat signal [28]. Apart from this, a supervised learning approach for harmonics cancellation is proposed in [29]. However, this method requires a more accurate external HR reference source, making it impractical in practical applications. In addition, these methods mentioned above deal with the interference of respiratory harmonics, but all of them require a long-time window to achieve HR acquisition. For this reason, a wavelet transform-based data length variation algorithm is proposed in [30], which can distinguish between heartbeat signals and respiratory harmonics, and extract HR using 3–5 s data length. Nevertheless, this method is computationally intensive since the high-resolution wavelet frequency spectrum requires multiple wavelet transforms [26].

In this paper, the frequency interpolation algorithm for real-time measurement of heart rate with CW Doppler has been proposed. Specifically, in order to suppress respiratory harmonics and extract HRV with high precision, this paper proposes to use high-pass filter (HPF) to filter respiratory harmonics. Then, four frequency interpolation algorithms, i.e., the Quinn estimation method, the Macloed estimation method, the Jacobsen estimation method and the Candan estimation method, are introduced to extract HRV and compare their accuracy in extracting HRV.

2 CW Doppler radar sensor

Figure 1 depicts the HRV monitoring system using the CW Doppler radar sensor. In the sensor, a voltage-controlled oscillator (VCO) generates an unmodulated signal, which is divided equally by a power divider, the part of which is used as the transmitted signal T(t), and the other part is used as the local oscillator signal L(t). Neglecting amplitude variations, the T(t) can be expressed as [31]

$$T(t) = \cos (2\pi ft + \phi (t))$$
(1)

where f is the frequency of the transmitted signal, t is the elapsed time, and ϕ(t) is the initial phase noise of the transmitted signal. As depicted in Fig. 1, the transmitted signal T(t) will hit the chest of the target at a nominal distance of d0 from the radar, and then it will be reflected back and received by the antenna. Assume the movement of chest caused by respiration and heartbeat is x(t), so the received signal R(t) can be expressed as [32]

$$R(t) = \cos \left[ {2\pi ft - \frac{{4\pi d_{0} }}{\lambda } - \frac{4\pi x(t)}{\lambda } + \phi \left( {t - \frac{{2d_{0} }}{c}} \right)} \right]$$
(2)

where λ is the wavelength of the transmitted signal, c is the velocity of radio wave (i.e., the propagation velocity of light in the vacuum). To retrieve the Doppler signals caused by respiration and heartbeat, a quadrature mixer is used to demodulate R(t) into in-phase (I) and quadrature (Q) channels with phase shift of π/2, which can be expressed as [9]

$$\begin{aligned} B_{I} (t) & = \cos \left[ {\frac{4\pi x(t)}{\lambda } + \theta + \Delta \phi (t)} \right] \\ B_{Q} (t) & = \sin \left[ {\frac{4\pi x(t)}{\lambda } + \theta + \Delta \phi (t)} \right] \\ \end{aligned}$$
(3)

where θ = (4πd0)/λ is the fixed phase shift which depends on the nominal distance d0 and the wavelength λ of the transmitted signal, ∆ϕ(t) = ϕ(t) − ϕ(t − 2d0/c) is the residual phase noise, which can be neglected since the distance between CW Doppler radar and target is small [31]. And the x(t) can be expressed

$$\begin{aligned} x(t) & = x_{\text{h}} (t) + x_{\text{r}} (t) \\ & = m_{\text{h}} \sin \omega_{\text{h}} t + m_{\text{r}} \sin \omega_{\text{r}} t \\ \end{aligned}$$
(4)

where xh(t) and xr(t) represent chest-wall movement due to heartbeat and respiration, respectively. Specifically, mh and mr are the amplitude caused by heartbeat and respiration, respectively; ωh and ωr are the angular frequency caused by heartbeat and respiration, respectively.

Fig. 1
figure 1

The HRV monitoring system using the CW Doppler radar sensor

In general, the BI(t) and BQ(t) will be sampled by the analog-to-digital conversion (ADC) and combined as a complex signal in laptop to solve the null point problem [33], which can be expressed as [34]

$$C(t) = B_{I} (t) + j * B_{Q} (t)$$
(5)

where j is the imaginary unit. Equation (5) can be represented in its equivalent Fourier series form as [35]

$$\begin{aligned} C(t) & = B_{I} (t) + j * B_{Q} (t) \\ & = \exp \left\{ {j\left[ {\frac{{4\pi x_{{\text{h}}} (t)}}{\lambda } + \frac{{4\pi x_{{\text{r}}} (t)}}{\lambda } + \varphi } \right]} \right\} \\ & = {\text{DC}}_{IQ} + 2j[C_{10} \sin (\omega_{{\text{r}}} t) + C_{01} \sin (\omega_{{\text{h}}} t) + \cdots ]e^{j\varphi } \\ & \quad + 2[C_{20} \cos (2\omega_{{\text{r}}} t) + C_{02} \cos (2\omega_{{\text{h}}} t) + \cdots ]e^{j\varphi } \\ \end{aligned}$$
(6)

where φ = θ + ∆ϕ(t) is the total residual phase. DCIQ is the direct current components of the signals. Cij = Ji(4πmr/λ) ∙ Jj(4πmh/λ) determines the amplitude of every frequency component and Jn is the Bessel function of the first kind. It can be seen from Eq. (6) that there are respiratory harmonics in the baseband spectrum. To solve the problem, the HPF is used to filter out the respiratory harmonics.

3 The spectrum leakage effect

In Sect. 1, it has been described that a short time window will reduce the frequency resolution. In this section, it will be explained why the frequency extraction accuracy also decreases as the frequency resolution decreases.

For ease of illustration, it is assumed that the tested signal is a single frequency signal with angular frequency of ω0 and amplitude of A0, which can be expressed as

$$x(t) = A_{0} e^{{j\omega_{0} t}}$$
(7)

So, the Fourier transform of x(t) is

$$X(\omega ) = A_{0} \cdot 2\pi \cdot \delta (\omega_{0} )$$
(8)

where δ(ω) is the Dirac Delta function. As a result, the spectrum of x(t) is a line located at ω0 when it is not truncated by any window functions, as the red solid line shown in Fig. 2. However, in real signal processing, the length of the signal cannot be infinitely long. Generally, the signal needs to be truncated to facilitate subsequent processing. The rectangular window function is the most commonly used, which can be described as

$$w_{T} (t) = \left\{ {\begin{array}{*{20}l} {1;} \hfill & {0 < t \le T} \hfill \\ {0;} \hfill & {\text{otherwise}} \hfill \\ \end{array} } \right.$$
(9)

where T is the length of the rectangular window function.

Fig. 2
figure 2

The HRV monitoring system using the CW Doppler radar sensor

Therefore, the signal x(t) with a time duration T can be considered to be truncated by a rectangular window function wT(t), which can be represented as

$$\overline{x}(t) = x(t) \cdot w_{T} (t)$$
(10)

As a result, the Fourier transform of \(\overline{x}(t)\) can be expressed as

$$\overline{X}(\omega ) = 2\pi A_{0} \frac{{\sin \left( {\frac{{\omega - \omega_{0} }}{2}T} \right)}}{{\frac{{\omega - \omega_{0} }}{2}}}\exp \left( { - j\frac{{\omega - \omega_{0} }}{2}T} \right)$$
(11)

The amplitude of \(\overline{X}(\omega )\) is shown in Fig. 2 with the cyan solid line. It can be seen that the spectrum \(\overline{X}(\omega )\) of \(\overline{x}(t)\) is no longer a single line but distributed along the whole frequency axis, which means that the energy is no longer concentrated and the leakage has arisen.

To process the signal \(\overline{x}(t)\) in digital domain, it will be sampled and A/D transformed. Then, the sampled signal of \(\overline{x}(t)\) can be written as

$$\overline{x}[n] = \overline{x}(n\Delta t),\quad n = 0,1,2, \ldots ,N - 1$$
(12)

where N = T/∆t. And ∆t is the reciprocal of the sample rate fs. The discrete Fourier transform (DFT) of \(\overline{x}[n]\) can be expressed as

$$\overline{X}[n] = \frac{1}{T}\overline{X}(n\Delta \omega )$$
(13)

where ∆ω = 2π/T. The amplitude \(\overline{X}[n]\) is shown in Fig. 2 with pink point. It can be seen from Fig. 2 that the ω0 is not an integral multiple of ∆ω. As a result, the accurate frequency ω0 can’t be acquired without sampling in the whole time period, even though the measured signal only has a single frequency. This phenomenon is called grid effect. So, when the length T of window function is shorter, the ∆ω is bigger. As a result, the frequency extraction accuracy may be lower.

4 The frequency interpolation methods

According to Fig. 2, it is not appropriate to select the kω as the extraction frequency of ω0. To solve the problem, three frequency-domain peak samples, i.e., \(\overline{X}[k]\), \(\overline{X}[k + 1]\) and \(\overline{X}[k - 1]\), will be used to estimate the frequency ω0. In this section, four frequency interpolation algorithms which use these three frequency-domain peak samples will be introduced to estimate the frequency and compare their HR extraction accuracy based on the CW Doppler radar and a signal of length 3 s.

4.1 The Quinn estimation algorithm [36]

Let

$$\begin{aligned} \alpha_{1} & = {\text{Re}} \left[ {\overline{X}[k]/\overline{X}[k - 1]} \right] \\ \alpha_{2} & = {\text{Re}} \left[ {\overline{X}[k + 1]/\overline{X}[k]} \right] \\ \end{aligned}$$
(14)

and

$$\begin{aligned} \gamma_{1} & = \alpha_{1} /(1 - \alpha_{1} ) \\ \gamma_{2} & = \alpha_{2} /(1 - \alpha_{2} ) \\ \end{aligned}$$
(15)

If both γ1 > 0 and γ2 > 0, let γ = γ2; else, let γ = γ1. Finally, the estimated frequency is

$$f = (k + \gamma )\Delta \omega /2\pi$$
(16)

4.2 The Macloed estimation algorithm [37]

Let

$$\gamma = \left( {\sqrt {1 + 8\alpha^{2} } - 1} \right)/(4\alpha )$$
(17)

where

$$\alpha = \frac{{{\text{Re}} \left[ {\overline{X}[k - 1]\overline{X}[k] - \overline{X}[k + 1]\overline{X}[k]} \right]}}{{{\text{Re}} \left[ {2\left| {\overline{X}[k]} \right|^{2} + \overline{X}[k - 1]\overline{X}[k] + \overline{X}[k + 1]\overline{X}[k]} \right]}}$$
(18)

As a result, the estimated frequency is same as Eq. (16).

4.3 The Jacobsen estimation algorithm [38]

Let

$$\gamma = {\text{Re}} \left[ {\left( {\overline{X}[k - 1] - \overline{X}[k + 1]} \right)/(2\overline{X}[k] - \overline{X}[k - 1] - \overline{X}[k + 1])} \right]$$
(19)

Similarly, using Eq. (16) to estimate the frequency f based on the γ extracted in Eq. (19).

4.4 The Candan estimation algorithm [39]

Let

$$\gamma = \frac{\tan (\alpha \pi /N)}{{\pi /N}}$$
(20)

where

$$\alpha = \frac{\tan (\pi /N)}{{\pi /N}}{\text{Re}} \left[ {\frac{{\left( {\overline{X}[k - 1] - \overline{X}[k + 1]} \right)}}{{(2\overline{X}[k] - \overline{X}[k - 1] - \overline{X}[k + 1])}}} \right]$$
(21)

So, the estimated frequency f can be obtained by applying Eq. (16) based on the γ extracted in Eq. (21).

5 Results and discussion

In order to evaluate the performance of these four different frequency interpolation algorithms, a CW Doppler radar is constructed as a platform for acquiring vital signs signals. The constructed Doppler radar system is shown in Fig. 3. The radio frequency (RF) front end circuits and the receiver circuits have been developed in an integrated fashion on a single PCB, which has a size of 4.3 × 4.1 cm as shown in Fig. 4. The substrate material used for the RF board is Rogers RO4350B (dielectric constant = 3.66, loss tangent δ = 0.0037, conductor thickness = 35.56 μm, substrate thickness = 20 mil). In order to minimize the coupling between the receiver and the transmitter, which is a serious problem faced by many CW Doppler radars, two antennas are used, one of which is used as a receiving antenna and the other is used as a transmitting antenna. The transmitting frequency and power of the radar are 24 GHz and 3 dBm, respectively. The output baseband I/Q signals are sampled at 20 Hz and digitized by the data acquisition system (National Instruments USB-6211) with LabVIEW running in real time on the laptop.

Fig. 3
figure 3

The photograph of the CW Doppler radar

Fig. 4
figure 4

The RF broad of the CW Doppler radar sensor

The measurement duration of each experiment is 90 s. During the experiment, three healthy subjects are asked to sit still in the chair. The distance between the human subject and the radar is 1.5 m. Meanwhile, a finger-pressure pulse sensor YX301 is attached to the subject’s index finger to measure the pulse rate simultaneously, which is used as the reference for HR.

Figure 5 shows the HR extraction results of these three subjects. The time window length is set to 3 s. It can be seen from Fig. 5 that, compared with other frequency estimation algorithms, the HR extracted by the Quinn interpolation algorithm is closer to the reference frequency. However, it can also be seen that even the HR extracted by Quinn interpolation algorithm cannot well follow the change of the reference HR. This may be due to the fact that the filter does not filter out respiratory harmonics well. Figure 6 shows the HR extraction errors. The errors in Fig. 6 are calculated as

$${\text{error}} = \left| {\frac{{{\text{HR}}_{{{\text{measure}}}} - {\text{HR}}_{{{\text{ref}}}} }}{{{\text{HR}}_{{{\text{ref}}}} }} \times 100\% } \right|$$
(22)
Fig. 5
figure 5

The HR extraction results of three subjects

Fig. 6
figure 6

The HR extraction errors of three subjects

The average errors are calculated as

$${\text{Average error}} = \frac{1}{L}\sum\limits_{l = 1}^{L} {\left| {{\text{error}}_{l} } \right|}$$
(23)

where L is the number of measurement conditions. And the average errors of three subjects are shown in Table 1. It can be seen from Table 1 that the Quinn interpolation algorithm has the lowest HRV estimation error, which is 3.61%.

Table 1 The average errors of three subjects

6 Conclusion

Extraction of HRV plays a great role in indicating the people’s condition, especially for patients with cardiovascular diseases. To extract HRV, the window length should be shortened to less than 5 s. However, the shortened window will reduce the HR measurement accuracy due to the spectrum leakage. Aiming at this problem, this paper introduces four frequency interpolation algorithms based on CW Doppler radar. Experimental results show that the Quinn algorithm can obtain the best HRV extraction results compared with other frequency interpolation algorithms. Specifically, based on a signal window length of 3 s, the average error of extracted HR using Quinn algorithm is 3.61%.