Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Reconstruction of the respiratory signal through ECG and wrist accelerometer data

Abstract

Respiratory rate and changes in respiratory activity provide important markers of health and fitness. Assessing the breathing signal without direct respiratory sensors can be very helpful in large cohort studies and for screening purposes. In this paper, we demonstrate that long-term nocturnal acceleration measurements from the wrist yield significantly better respiration proxies than four standard approaches of ECG (electrocardiogram) derived respiration. We validate our approach by comparison with flow-derived respiration as standard reference signal, studying the full-night data of 223 subjects in a clinical sleep laboratory. Specifically, we find that phase synchronization indices between respiration proxies and the flow signal are large for five suggested acceleration-derived proxies with $$\gamma = 0.55 \pm 0.13$$ for males and $$0.58 \pm 0.14$$ for females (means ± standard deviations), while ECG-derived proxies yield only $$\gamma = 0.36 \pm 0.16$$ for males and $$0.39 \pm 0.14$$ for females. Similarly, respiratory rates can be determined more precisely by wrist-worn acceleration devices compared with a derivation from the ECG. As limitation we must mention that acceleration-derived respiration proxies are only available during episodes of non-physical activity (especially during sleep).

Introduction

There is substantial evidence that deviations of the respiratory rate from its normal behavior can be used as a predictor of clinically relevant and potentially fatal events and conditions (see, e.g., the very recent review paper by Liu et al.1 and references therein), although the relevance of respiratory rate has long been overlooked in clinical setting2 and other fields3. For example, spontaneous breathing rates below six breath per minute (bpm) was prospectively shown to be a stronger predictor of subsequent in-hospital mortality than abnormal heart rate, hypertension or the decrease (or loss) of consciousness4. In a very recent study of non-invasive risk assessment for cardiac patients, abnormally high respiratory rate ($$> 18.6 \, \hbox {bpm}$$) and low expiration-triggered sinus arrhythmia turned out to be among the three most sensitive early risk indicators as components of the Polyscore index5; previous work also demonstrated the importance of respiratory rate for cardiac patients6,7. Therefore, it is appropriate to include measurements of respiratory rate and the influence of respiration activity on the heart in large cohort studies that aim at identifying early indicators for health risks and to study effects of healthy aging8,9.

Although many methods and technologies for the measurement of respiratory rate and the identification of breathing intervals have been suggested over the past decades1,10,11, there is still a need for inexpensive, reliable, and non-obtrusive sensors. In order to assess respiratory behavior in large epidemiological cohort studies with many thousands of participants from the general population, the handling of the measurement technology should be as easy as possible with a minimum of additional costs. The derivation of respiration proxies from the recordings of devices already used in such studies are thus particularly valuable. An important approach in this regard is exploiting the respiratory modulation of other physiological signals, such as the electrocardiogram (ECG) often registered in long-term (Holter) recordings for 24 h1,12,13,14 or during sleep studies15. ECG amplitude and baseline as well as frequency are modulated by respiration via motions of the heart axis and respiratory sinus arrhythmia (RSA), respectively, leading to more than a dozen of respiration proxies12.

In addition, similar proxies can be derived from the photoplethysmogram (PPG)16,17, with best signals recorded at the forehead and the finger for normal and deep breathing pattern, respectively18. In a systematic comparison study, feature-based techniques in the time domain turned out to be generally superior to filter-based techniques and techniques in the frequency domain1,12. In addition, feature-based time-domain techniques facilitate the determination of the individual breathing intervals (instead of a mere breathing rate), and they are more useful for studying the data of patients with possibly irregular breathing (e.g., due to apneas) or extremely low or high breathing rates.

A few approaches tried a fusion of ECG or PPG derived respiration with respiration proxies from accelerometer and gyroscope data19,20,21. Accelerometer-based methods for measuring breathing-related movements have been roughly validated22,23,24. However, mainly accelerometers and gyroscopes, appropriately positioned over the diaphragm1, the dome-shaped skeletal muscle of the thoracic cavity25 (or the chest wall11), as well as the forehead26 have been considered, so that an additional sensor is needed in these efforts.

In this paper we propose and validate an approach for extracting proxy signals for respiratory events from wrist accelerometer data. Wrist accelerometers are often employed in large cohort studies for the purpose of activity/inactivity tracking as well as sleep/wake identification of the subjects. No cables nor obtrusive sensors are needed, since a wrist accelerometer is worn like a common wrist watch. There are a few previous studies on wrist accelerometer data10,26,27 that focus on estimating mean respiratory rate using spectral techniques.

Results

Here, we present our results for respiratory proxies derived from wrist accelerometer data. Specifically, we consider the instantaneous respiratory phases and respiratory rates derived from acceleration recorded for all three perpendicular axes (x, y, and z) on the non-dominant arm of 223 subjects. For details, we refer to the “Methods” section and Tables 1 and 2, in particular. In addition to the proxies $${\hbox {Acc}}_x$$, $${\hbox {Acc}}_y$$, and $${\hbox {Acc}}_z$$ for the normal axes, we have studied data for the corresponding rotational angles $$\vartheta$$ and $$\varphi$$ of the wrists.

In order to relate with previous literature, we compare our results with respiratory proxies derived from ECG recordings. Specifically, we have considered the following four previously established ECG-derived proxies of respiration: averages of maximum and minimum of QRS complex (B1), differences of maximum and minimum of QRS complex [B2, also commonly referred to as ECG-derived respiration (EDR)], duration of RR intervals (B3), and maxima of QRS complex (B5), see also Table 1 and “Methods” section. We have selected these four proxies based on their superior performance in a previous study13.

Phase synchronization

Figure 1 shows a boxplot of the phase synchronization indices $$\gamma$$ [Eq. (5)] for all considered respiration proxies (see Table 1) compared to flow as the respiration standard signal, including the results for all 223 subjects (see Table 2). Although many previous works focused on EDR proxies (see “Methods”), we found that all wrist acceleration proxies perform significantly better (t-tests: $$p < 0.001$$). The rotational angles $$\varphi$$ and $$\vartheta$$ performed best with averages $$\gamma = 0.55 \pm 0.13$$ ($$0.58 \pm 0.14$$) and $$0.55 \pm 0.13$$ ($$0.58 \pm 0.15$$) for males (females), respectively (mean ± standard deviation). $${\hbox {Acc}}_x$$ ($$\gamma = 0.55 \pm 0.13$$ and $$0.58 \pm 0.15$$ for males and females, respectively), $${\hbox {Acc}}_y$$ ($$\gamma = 0.53 \pm 0.13$$ and $$0.56 \pm 0.13$$), and $${\hbox {Acc}}_z$$ ($$\gamma = 0.53 \pm 0.13$$ and $$0.58 \pm 0.15$$) also achieved significantly larger average synchronization indices than each of the ECG-derived proxies. The best ECG proxies were B3 (based on RSA) with $$\gamma = 0.34 \pm 0.12$$ ($$0.39 \pm 0.14$$) and B5 with $$\gamma = 0.36 \pm 0.12$$ ($$0.37 \pm 0.18$$) for males (females). Differences between males and females were significant for $${\hbox {Acc}}_z$$ ($$p<0.05$$) and B3 ($$p<0.01$$).

A direct comparison of all subjects with sleep-related breathing disorders (SRBD) and all other subjects yielded similar results for both subgroups, although, in the SRBD subgroup, the $$\gamma$$ values were significantly ($$p<0.05$$) smaller for all acceleration-derived proxies and even reached $$p<0.01$$ for $$\vartheta$$ and $${\hbox {Acc}}_z$$. ECG-derived proxies B1 and B5 yielded slightly larger $$\gamma$$ values in the SRBD subgroup ($$p<0.05$$), while differences were not significant for B2 and B3.

Figure 2 shows the mean values of all pairwise synchronization indices $$\gamma$$ between the proxies and the flow. Clearly, all acceleration-derived proxies are quite well synchronized to each other. $$\vartheta$$ is very similar to $${\hbox {Acc}}_x$$, while $$\varphi$$ is similar to $${\hbox {Acc}}_y$$ and $${\hbox {Acc}}_z$$, for example [cp. Eq. (2)]. Many ECG-derived proxies (particularly B1, B2 and B5) are well synchronized with each other, but not so well synchronized with the recorded respiratory flow.

In Fig. 3 the phase synchronization of all proxies to the recorded flow signal is traced for several nocturnal hours with least wakefulness (1:00 am to 5:00 am). Overall, $$\varphi$$ and $${\hbox {Acc}}_x$$ yielded the best synchronization, but the differences compared with $$\vartheta$$, $${\hbox {Acc}}_y$$, and $${\hbox {Acc}}_z$$ are tiny. It seems that the synchronization of B3 slightly increases with time.

Figure 4 shows the distributions of synchronization indices for all 30 s segments of all recordings. If only ECG-derived proxies were available for the selection, synchronization indices between 0.2 and 0.3 would be most common, and values above 0.9 could rarely be achieved. However, for accelerometer data derived proxies, synchronization indices above 0.9 turned out to be the most frequent. In fact, the distributions of $$\gamma$$ values reached if all proxies are considered is not much different from the distribution achieved for acceleration-derived proxies only, except in the regime of $$\gamma < 0.2$$.

Respiratory rates

Figure 5 shows the differences of average respiratory rates derived from all proxies and the recorded flow signal. The acceleration-derived respiratory rates closely agreed with the real respiratory rate with average deviations between $$-0.38$$ breaths per minute (bpm, $$-2.6$$%) for $$\varphi$$ and up to + 0.32 bpm (+ 2.1%) for the other acceleration-derived proxies. The ECG-derived proxies generally underestimated respiratory rates with average deviations between $$-3.1 \, \hbox {bpm}$$ and $$-1.5 \, \hbox {bpm}$$ ($$-21.2$$ to $$-10.4$$%). However, we would like to stress that the estimation of mean respiratory rates is not the main goal of our medically oriented approach, which shall also capture interruptions of respiration (apneas) as well as times with very low and high respiratory rates, i.e., extreme events and respiratory variability. In this respect, we would like to note that significant differences between subjects with and without SRBD (present in the flow signal) could be identified in most acceleration-based proxies ($${\hbox {Acc}}_x$$, $${\hbox {Acc}}_y$$, $$\vartheta$$, and $$\varphi$$) and in B1, but not in B2, B3, or B5.

Discussion

In this paper, we have introduced and validated an approach for obtaining respiration proxies from nocturnal long-term wrist acceleration measurements from 223 clinical subjects including (but not restricted to) patients with various sleep-related disorders. We have shown that each of the the suggested five acceleration-derived proxies is significantly ($$p<0.001$$) more reliable than each of the four known standard ECG-derived respiration proxies, exploiting ECG baseline, amplitude, and frequency changes.

For comparison, we have considered four established ECG-derived proxies of respiration, B1, B2, B3, and B5, selected because of their superior performance in the study by Charlton et al.13, where 15 proxies for a reconstruction of respiratory activity from one-channel ECGs were compared in healthy subjects. Measures B1, B2, and B5 are based on the varying direction of the heart axis during the respiratory cycle, leading to ECG baseline wander (exploited in B1 and B5) and ECG amplitude modulation (exploited in B2 and B5). B2 is also known as ECG-derived respiration (EDR) method and considered in many other studies, see e.g.28 B3 is based on the effects of RSA29 leading to ECG frequency modulation and thus also known as RSA method30. Specifically, in the study of Charlton et al., B2 yielded the highest median subject-specific correlation coefficients (CC) with respiratory activity in both, young and elderly subjects (CC = 0.76 and 0.77, respectively), B5 performed similarly well (CC = 0.74 and 0.76, respectively), and B1 was at the third rank for elderly subjects (CC = 0.72, versus 0.66 in the young). We also included the best frequency modulation based proxy B3 for comparison, although it performed well in young subjects only (CC = 0.66, versus 0.44 in the elderly)13.

The variation of phase synchronization values among the subjects was large for the acceleration-derived $$\gamma$$ values as indicated by the widths of the box plots and their whiskers in Fig. 1. This is most probably due to multiple possibilities of arm placement of the subjects during sleep. While an arm lying on the chest will lead to an improved respiration proxy, a widely extended arm leads to weaker respiratory movements at the wrist. As expected, the length of the acceleration vector, r, reached a drastically lower phase synchronization index (not shown in Fig. 1), since the magnitude of the gravitational force does not change with respiration. Nevertheless, the directions of this vector in the reference frame of the wrist-fixed recording device change as respiration causes slight repetitive turns of the wrist1, as exploited in our other accelerometer-derived proxies. While B2 was the best proxy in earlier studies13, in our study all ECG-derived respiration proxies yielded similar (not significantly different) results.

The respiratory rate can be determined more exactly by wrist worn acceleration devices. Respiration proxies obtained from the data of all three accelerometer axes using a simple moving average smoothening ($${\hbox {Acc}}_x$$, $${\hbox {Acc}}_y$$, $${\hbox {Acc}}_z$$) as well as the derived rotation angle $$\vartheta$$ turned out to be similarly reliable. Since the derived rotation angle $$\varphi$$ yielded a significant deviation in the respiratory rate, we suggest not using it although the approach seemed very promising initially. Based on our data, our recommendation goes to $${\hbox {Acc}}_x$$ and $$\vartheta$$.

We note that recent work on a BioWatch26 used single-axis wrist accelerometer data in the frequency domain from 0.13 to 0.66 Hz (corresponding to 8 and 40 breaths per minute) to estimate respiratory rates. The technique focused on average breathing rate in intervals of 20 s as determined via spectral analysis, not trying to identify individual breaths, breathing interruptions, or breath-to-breath intervals. Besides that, it was limited to 32 h of sleep data from three subjects and 72 mins of daytime data (sitting, standing and lying without motion) from twelve subjects. Another recent study determined the average respiratory rates in 15 subjects using wrist accelerometer data27, reporting an average deviation of 16.6% with respect to respiratory rate from a chest band. Another paper from the same group reported that respiratory rate can be most reliably estimated via accelerometry, if the sensor is attached to the subjects’ torso or shoulders31.

As an improvement compared to BioWatch, the recently introduced SleepMonitor10 exploited wrist accelerometer data recorded at 16 Hz in 30-s windows, fusing the spectrally determined respiratory rates from all three axes and this way obtaining results with errors about half as large as those of BioWatch. Mean absolute errors for the wrist-motion determined respiratory rate as compared with the chest-motion determined rate were 0.72 and 1.08 breaths per minute for normally and disorderedly (either sleep apnea or intentional strong breathing variations) breathing subjects, respectively. The technique, validated with data from 70 nights of 16 subjects (including two subjects with sleep-disordered breathing), included a Kalman filter working with predictions of respiratory rate in addition to FFT filtering and did not try to capture interruptions of respiration (apneas) nor extreme variations of respiratory rates.

Since our approach fully works in the time domain, not involving spectral analysis, it is rather insensitive to non-stationarities of the recorded data and not limited to certain ranges of respiratory rate or requiring smooth changes of respiratory activity. Therefore, not only respiratory rate but also possibly clinically relevant extreme events and interruptions of respiratory activity can be assessed. Although further development, optimization, and validation is necessary before our approach could be clinically applied, we think our method can be used in its current form to derive the respiratory signal from nocturnal accelerometer recordings obtained in large cohort studies. Such cohorts are currently recorded in the framework of, e.g., the UK Biobank study and the German National Cohort (GNC) study.

Limitations

We must certainly mention that acceleration-derived respiration proxies are available during episodes of non-physical activity (especially during sleep) only, while ECG-derived respiration is not limited in this way. We also remark that our approach for using accelerometer data as a respiratory proxy will fail in a zero-gravity environment, e.g. in a space station, since it requires the vertical gravitational direction as reference.

Methods

Measurements

All measurements took place in the sleep laboratory of the Charité-Universitätsmedizin Berlin, Germany, between April 2017 and December 2018. The study was approved by the ethics committee of the Charité-Universitätsmedizin Berlin and registered at the German Clinical Trial Register (DRKS) with ID DRKS00016908. All methods were performed in accordance with the relevant guidelines and regulations. In total, 392 subjects were included in the study after signing informed consent. During their first diagnostic night at the sleep laboratory, all subjects wore a SOMNOwatch plus device (Somnomedics GmbH, Randersacker, Germany), recording simultaneously 3d wrist acceleration of the non-dominant arm at 128 Hz sampling rate (see Fig. 6) and a one channel ECG at 256 Hz. Furthermore, full polysomnography (PSG, including recordings of electroencephalography (EEG), electrooculography (EOG), electromyography (EMG), ECG, respiratory flow, etc.) was recorded using either the system Alice (Löwenstein Medical, Bad Ems, Germany), Embla (Embla systems, Broomfield, CO, United States), or SOMNOscreen (Somnomedics GmbH, Randersacker, Germany). For our analysis we used the acceleration and ECG data recorded by SOMNOwatch and the respiratory flow signal recorded by the PSG system.

The measurements of the SOMNOwatch device and the PSG system were synchronized after recording by matching the R peaks of the ECGs recorded by both of them. 145 subjects had to be excluded from further analysis, since reliable synchronization could not be established this way because of poor ECG quality in either of the two recordings. We note that this synchronization method required matching R peaks from the simultaneously recorded ECGs during each 20 minutes of the recordings, since we identified jumps (i.e. unmarked time gaps) in more than 15% of all PSG recordings across all three recording systems; no such gaps occurred in the Somnowatch recordings. In addition, we had to determine and take into account drifts of the recorded time cumulating to typically 1–2 s per night. Another 24 subjects had to be excluded because their respiratory recordings from the SOMNOscreen system could not be successfully exported into the European data format (EDF+) leading to completely or substantially (for more than half of the recording time) missing flow signals. The final 223 subjects, aged between 18 and 78 years (mean $$47.9~ \pm ~13.7 \, \hbox {years}$$) with average body mass index $$27.7~ \pm ~5.7~ {\hbox {kg/m}}^2$$, had an average time in bed (TiB) of $$7.6~ \pm ~0.8~ \hbox {h}$$. Only data recorded during the lights-off period were considered. All subjects were regular patients of the sleep laboratory with confirmed sleep disorders. In Table 2 we list the frequency of sleep disorders classified by ICSD-3 (International Classification of Sleep Disorders).

Reconstruction of respiratory signals from accelerometry

Our initial observation of a peak in the 0.3 Hz range (corresponding to $$\approx 18$$ breaths per minute) in nocturnal three-axis accelerometry data recorded at the wrist32 was the starting point for our approach towards respiration proxies. After we had found that the high amplitude resolution of modern accelerometers (down to $$3 \, \hbox {mg} \, \approx 0.03 \, {\hbox {m/s}}^2$$) can resolve tiny motions caused by respiratory activity10,32,33, we have systematically studied if this effect can be used for a practical derivation of respiration proxies.

The data processing consists of several steps and starts by smoothing the recorded 128 Hz raw acceleration data $$\ddot{x}(t)$$ by calculating a moving average. Specifically, we calculated a moving average with a window width of $$\pm 0.5$$ s (i.e., $$\pm 64$$ data points),

\begin{aligned} {\text{Acc}}_x(t) = {1 \over 129} \sum _{j=-64}^{+64} \ddot{x}(t+(j/128 {\text{Hz}})) \end{aligned}
(1)

to obtain smoothened longitudinal acceleration (with the x axis in the direction towards the elbow and the hand, see Fig. 6) as first respiration proxy. Similarly, we obtained smoothened lateral accelerations for the the y and z axes oriented perpendicular to x, $${\hbox {Acc}}_y$$ and $${\hbox {Acc}}_z$$, see Table 1. The window size of 1 s in Eq. (1) was chosen such that there is typically one heartbeat in each window so that effects of heartbeats and pulse wave propagation through the wrist (see also34) are systematically dampened in this moving average procedure. Finally, a resampling to a rate of 4 Hz is applied, since respiration proxies do not need temporal resolutions beyond that.

The red curve in Fig. 7a shows an example for the final respiration proxy determined from y axis accelerometry during sleep. The respiratory cycles can clearly be identified.

We note however, that wrist accelerations caused by respiratory activity are relatively small. In fact, what the acceleration measurement device registers is not an respiration-caused acceleration per se, but instead a slight turning of the wrist in synchrony with the respiratory activity (see also1). This turning leads to slightly modified projections of the (vertical) gravitational force onto the axes of the coordinate system of the sensor device and thus to slight variations of the x, y and z components of the registered gravitational vector, see Fig. 6. Therefore, one can expect that one or both of the two angles representing the direction of the gravitational vector are even better proxies for respiration than the components in particular directions. Hence, in addition to $${\hbox {Acc}}_x$$, $${\hbox {Acc}}_y$$ and $${\hbox {Acc}}_z$$, we consider their angles in spherical coordinates, $$\vartheta$$ (angle between gravity vector and x axis), and $$\varphi$$ (angle between projection of gravity vector into the $$y-z$$ plane and y axis) as shown in gravity vector Fig. 6:

\begin{aligned} {\mathrm{Acc}}_x = r \cos \vartheta , {\mathrm{Acc}}_y = r \cos \varphi \sin \vartheta , {\mathrm{Acc}}_z = r \sin \varphi \sin \vartheta , \end{aligned}
(2)

corresponding to

\begin{aligned} r = \sqrt{{\mathrm{Acc}}_x^2+{\mathrm{Acc}}_y^2+{\mathrm{Acc}}_z^2}, \varphi = \arctan _2({\mathrm{Acc}}_z,{\mathrm{Acc}}_y), \vartheta = \arccos ({\mathrm{Acc}}_x/r), \end{aligned}
(3)

see also Table 1. We have applied the same smoothening [Eq. (1)] and resampling procedure to r, $$\varphi$$, and $$\vartheta$$ as to the acceleration components above. We expect that $$\varphi$$ and/or $$\vartheta$$ are much better respiration proxies than r if our assumption regarding changing directional projections of the (constant) gravitational vector holds. Hence, the suggested transformation can facilitate the selection of an optimal proxy.

Finally, instantaneous respiratory phases have been calculated from all respiration proxies as well as the directly registered respiratory signal flow(t) (blue curve in Fig. 7a). The first step in this procedure was the normalization of the time series via (i) subtraction of a moving average similar as in Eq. (1) and (ii) division by a moving standard deviation. Both of these moving quantities have been calculated for windows of $$\pm 5$$ s duration around the center point, so that effectively frequencies between 0.1 Hz (cutoff by moving average with 10 s window size) and 1 Hz (cutoff by moving averag with 1 s window size) remain in the respiration proxies. The resulting narrow-banded signals oscillating around zero can easily be transformed into instantaneous respiratory phases $$\phi (t)$$ via a Hilbert transform35,

\begin{aligned} x(t) + i \mathrm{HT}[x(t)] = A(t) \exp [i \phi _x(t)], \end{aligned}
(4)

using $$\phi _x(t) = \arctan _2(\mathrm{HT}[x(t)], x(t))$$ for $$x={\mathrm{Acc}}_x$$, $${\hbox {Acc}}_y$$, …, flow(t). Fig. 7b shows these reconstructed respiratory phases for all signals of Fig. 7a.

In this study we focus on analyzing and comparing instantaneous respiratory phases (instead of respiratory rates or breathing cycles), because the phases comprise all information without the need to define certain points in the breathing cycle, e.g., beginning or ending, transition form inspiration to expiration, etc. Respiratory phases increase continuously from $$-\pi \approx -3.14$$ to $$+\pi$$ and then jump back to $$-\pi$$ in a sawtooth-like pattern, see Fig. 7b. However, since phases are actually defined on a circle, the values of $$-\pi$$ and $$+\pi$$ refer to identical phase angles, the selection of the jump point is arbitrary, and constant phase shifts (possibly including multiples of $$2 \pi$$) have no relevance. Therefore, when comparing instantaneous phase signals, their differences are always taken modulo $$2 \pi$$, and constant differences are disregarded. This is advantageous, since proxies derived, e.g., from inverted flow or acceleration (or ECG) signals, leading to phases differing by $$+\pi$$ or $$-\pi$$ exactly, will be considered as equivalent. Nevertheless, pauses and flow variations within the respiratory cycle are well reproduced by instantaneous phases as can be seen by the deviations from a straight sawtooth pattern for the flow phases in the bottom panel of Fig. 7b.

Reconstruction of respiratory signals from ECG

To derive measures B1, B2, B3, and B5, the ECG data were processed with the software LibRasch36 to identify QRS complexes. We visually verified and manually checked QRS classifications (normal, ventricular ectopic, and supra-ventricular ectopic) and corrected them if necessary. Noisy parts where no QRS detection was possible were manually marked and excluded from further analysis. All normal QRS complexes were used for B1, B2, and B5, while only time intervals between two successive normal QRS complexes were used for B3. The resulting time series were homogeneously resampled at a rate of 4 Hz by cubic spline interpolation. Subsequently, a FFT band pass filter with limit frequencies 0.01 Hz and 0.5 Hz was applied to eliminate variations clearly outside the respiratory band. As an example, the green curve in Fig. 7a shows the B1 proxy for a typical subject during sleep.

Phase synchronization and comparison of respiratory rates

In order to compare and test two reconstructed respiratory phases $$\phi _x(t)$$ and $$\phi _y(t)$$ (for $$x,y={\mathrm{Acc}}_x$$, $${\hbox {Acc}}_y$$, …, flow(t)), we calculate the phase synchronization index $$\gamma$$ by37

\begin{aligned} \gamma (k) = \left| \left\langle \exp [i (\phi _x(t) - \phi _y(t))] \right\rangle \right| , \end{aligned}
(5)

where the average $$\langle \ldots \rangle$$ runs over all times from $$t-15 \hbox {s}$$ to $$t+15 \hbox {s}$$ with $$t=k\cdot 30s$$ and k is the index of the 30 s windows. This definition has the advantage that constant phase differences between the two proxies (and differences by multiples of $$2 \pi$$) as well as changing proxy amplitudes are disregarded. A $$\gamma$$ value close to one indicates strong phase synchronization, i.e., a close similarity of the two phase signals, while a $$\gamma$$ value close to zero indicates dissimilarity. The approach will be used for comparisons of two proxies as well as comparisons of proxies with the flow signal considered as a reference for real respiration. As examples for the typical values of $$\gamma$$, we note that the first (second) 30-s window of the signals presented in Fig. 7b yields $$\gamma = 0.35$$ (0.57) for the comparison of EDR (the B1 proxy, green) with the flow (blue), and $$\gamma = 0.98$$ (0.90) for the comparison of the $${\hbox {Acc}}_y$$ proxy (red) with the flow.

We note that we used respiratory phases derived from the PSG-recorded flow signal as reference without a validation in this study. However, this approach does not lead to any bias regarding the comparison with different respiration proxies, since a corrupted flow signal will not be synchronized with any respiration proxy. Excluding subjects with partly unreliable flow recordings would probably have led to somewhat larger group averages of the phase synchronization index $$\gamma$$ for all proxies. But since it would also have led to excluding subjects with nocturnal breathing disorders, we have decided against this. Nevertheless, for a subset of 118 PSG recordings, we compared the flow-derived respiratory phase signal with respiratory phases derived from thorax and abdomen inductive plethysmography by calculating the average synchronization indices according to Eq. (5) for each of the three pairs. Our results of $$\gamma = 0.68 \pm 0.19$$ (comparison flow versus thorax plethysmography), $$0.42 \pm 0.33$$ (flow versus abdomen plethysmography), and $$0.45 \pm 0.34$$ (thorax versus abdomen plethysmography) indicate that (i) phase synchronization indices $$\gamma$$ in the range from 0.4 to 0.7 indicate good phase synchronization and (ii) flow and thorax inductive plethysmography recordings are probably more reliable than abdomen recordings.

In another approach to compare the respiration proxy signals, we calculated and compared respiratory rates. A breathing interval was defined by jumps of the instantaneous respiratory phase $$\phi _x(t)$$ from a value above + 1 to a value below $$-1$$ one time step (0.25 s) later, see Fig. 7b (for $$x={\mathrm{Acc}}_x$$, $${\hbox {Acc}}_y$$, …, flow(t)). We calculated the average respiratory rate for each 30 s window, and finally obtained an average respiratory rate of all windows for each respiration proxy and the flow signal. We note that this approach defines the beginning of a breath by the phase jump, however, since we only count number of breaths in large windows of 30 s, different beginnings for different proxies are not relevant.

Since the distributions of both, $$\gamma$$ values and respiratory rates, are close to Gaussian, we applied a two-tailed Student’s t-test to check for the significance levels of differences between our results for all proxies. In addition, we checked for the significance of differences between two sets of similarly sized subgroups, (i) males and females and (ii) subjects with and without diagnosed sleep apnea syndrome; see Table 2 for the numbers of subjects in these subgroups.

References

1. 1.

Liu, H., Allen, J., Zheng, D. & Chen, F. Recent development of respiratory rate measurement technologies. Physiol. Meas. 40, 07TR01. https://doi.org/10.1088/1361-6579/ab299e (2019).

2. 2.

Parkes, R. Rate of respiration: the forgotten vital sign. Emerg. Nurs. 19, 12–17. https://doi.org/10.7748/en2011.05.19.2.12.c8504 (2011).

3. 3.

Nicolò, A., Massaroni, C. & Passfield, L. Respiratory frequency during exercise: the neglected physiological measure. Front. Physiol. 8, 922. https://doi.org/10.3389/fphys.2017.00922 (2017).

4. 4.

Buist, M., Bernard, S., Nguyen, T. Q. T., Moore, G. E. & Anderson, J. N. Association between clinically abnormal observations and subsequent in-hospital mortality: a prospective study. Resuscitation 62, 137–141 (2004).

5. 5.

Steger, A. et al. Polyscore of non-invasive cardiac risk factors. Front. Physiol. 10, 49. https://doi.org/10.3389/fphys.2019.00049 (2019).

6. 6.

Barthel, P. et al. Respiratory rate predicts outcome after acute myocardial infarction: a prospective cohort study. Eur. Heart J. 34, 1644–1650. https://doi.org/10.1093/eurheartj/ehs420 (2013).

7. 7.

Dommasch, M. et al. Nocturnal respiratory rate predicts non-sudden cardiac death in survivors of acute myocardial infarction. J. Am. Coll. Cardiol. 63, 2432–2433. https://doi.org/10.1016/j.jacc.2014.02.525 (2014).

8. 8.

Schumann, A. Y. et al. Aging effects on cardiac and respiratory dynamics in healthy subjects across sleep stages. Sleep 33, 943–955. https://doi.org/10.1093/sleep/33.7.943 (2010).

9. 9.

Penzel, T. et al. Modulations of heart rate, ECG, and cardio-respiratory coupling observed in polysomnography. Front. Physiol. 7, 460. https://doi.org/10.3389/fphys.2016.00460 (2016).

10. 10.

Sun, X., Qiu, L., Wu, Y., Tang, Y. & Cao, G. Sleepmonitor: monitoring respiratory rate and body position during sleep using smartwatch. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol. 1, 1–22. https://doi.org/10.1145/3130969 (2017).

11. 11.

Massaroni, C. et al. Contact-based methods for measuring respiratory rate. Sensors 19, 908. https://doi.org/10.3390/s19040908 (2019).

12. 12.

Charlton, P. H. et al. An assessment of algorithms to estimate respiratory rate from the electrocardiogram and photoplethysmogram. Physiol. Meas. 37, 610–626. https://doi.org/10.1088/0967-3334/37/4/610 (2016).

13. 13.

Charlton, P. H. et al. Extraction of respiratory signals from the electrocardiogram and photoplethysmogram: technical and physiological determinants. Physiol. Meas. 38, 669–690. https://doi.org/10.1088/1361-6579/aa670e (2017).

14. 14.

Patil, P. K. Reconstruction of respiratory signal form ECG. International Research Journal of Engineering and Technology (IRJET) 1068–72 (2017).

15. 15.

Lyons, M. M. et al. Screening for obstructive sleep apnea in commercial drivers using ECG-derived respiratory power index. J. Clin. Sleep Med. 15, 23–32. https://doi.org/10.5664/jcsm.7562 (2019).

16. 16.

Karlen, W., Raman, S., Ansermino, M. & Dumont, G. Multiparameter respiratory rate estimation from the photoplethysmogram. IEEE Trans. Bio-Med. Eng. 60, 1946–1953. https://doi.org/10.1109/TBME.2013.2246160 (2013).

17. 17.

Birrenkott, A. D., Pimentel, M. J., Watkinson, P. & Clifton, D. A robust fusion model for estimating respiratory rate from photoplethysmography and electrocardiography. IEEE Trans. Biomed. Eng. 65, 2033–2041. https://doi.org/10.1109/TBME.2017.2778265 (2017).

18. 18.

Hartmann, V. et al. Toward accurate extraction of respiratory frequency from the photoplethysmogram: effect of measurement site. Front. Physiol. 10, 732. https://doi.org/10.3389/fphys.2019.00732 (2019).

19. 19.

Liu, G.-Z., Wu, D., Mei, Z.-Y., Zhu, Q.-S. & Wang, L. Automatic detection of respiratory rate from electrocardiogram, respiration induced plethysmography and 3d acceleration signals. J. Central South Univ. 20, 2423–2431. https://doi.org/10.1007/s11771-013-1752-z (2013).

20. 20.

Jafari Tadi, M., Koivisto, T., Pänkäälä, M. & Paasio, A. Accelerometer-based method for extracting respiratory and cardiac gating information for dual gating during nuclear medicine imaging. Int. J. Biomed. Imaging 2014, 1–11. https://doi.org/10.1155/2014/690124 (2014).

21. 21.

Shen, C.-L. et al. respiratory rate estimation by using ECG, impedance, and motion sensing in smart clothing. J. Med. Biol. Eng. 37, 826–842. https://doi.org/10.1007/s40846-017-0247-z (2017).

22. 22.

Jin, A., Yin, B., Morren, G., Duric, H. & Aarts, R. Performance evaluation of a tri-axial accelerometry-based respiration monitoring for ambient assisted living. In Proceedings of the 31st Annual International Conference of the IEEE Engineering in Medicine and Biology Society, 5677–80, https://doi.org/10.1109/IEMBS.2009.5333116 (Institute of Electrical and Electronics Engineers, 2009).

23. 23.

Bates, A., J. Ling, M., Mann, J. & Arvind, D. Respiratory rate and flow waveform estimation from tri-axial accelerometer data. In 2010 International Conference on Body Sensor Networks, BSN 2010, 144–150, https://doi.org/10.1109/BSN.2010.50 (2010).

24. 24.

Pandia, K., Inan, O. T., Kovacs, G. T. A. & Giovangrandi, L. Extracting respiratory information from seismocardiogram signals acquired on the chest using a miniature accelerometer. Physiol. Meas. 33, 1643–1660. https://doi.org/10.1088/0967-3334/33/10/1643 (2012).

25. 25.

Tortora, G. J. & Derrickson, B. Principles of Anatomy and Physiology (Wiley, Hoboken, 2000).

26. 26.

Hernandez, J., McDuff, D. & Picard, R. Biowatch: estimation of heart and breathing rates from wrist motions. EAI Endors. Trans. Pervas. Health Technol. 1, 3. https://doi.org/10.4108/icst.pervasivehealth.2015.259064 (2015).

27. 27.

Haescher, M., Matthies, D. J. C., Trimpop, J. & Urban, B. A study on measuring heart- and respiration-rate via wrist-worn accelerometer-based seismocardiography (scg) in comparison to commonly applied technologies. In Proceedings of the 2nd international Workshop on Sensor-based Activity Recognition and Interaction - WOAR ’15, https://doi.org/10.1145/2790044.2790054 (ACM Press, 2015).

28. 28.

Helfenbein, E., Firoozabadi, R., Chien, S., Carlson, E. & Babaeizadeh, S. Development of three methods for extracting respiration from the surface ECG: A review. J. Electrocardiol. 47, 819–825. https://doi.org/10.1016/j.jelectrocard.2014.07.020 (2014).

29. 29.

Bartsch, R. P., Schumann, A. Y., Kantelhardt, J. W., Penzel, T. & Ivanov, P. C. Phase transitions in physiologic coupling. Proc. Natl. Acad. Sci. 109, 10181–10186 (2012).

30. 30.

Hamann, C. et al. Automated synchrogram analysis applied to heartbeat and reconstructed respiration. Chaos 19, 015106 (2009).

31. 31.

Haescher, M., Matthies, D. J., Trimpop, J. & Urban, B. SeismoTracker: upgrade any smart wearable to enable a sensing of heart rate, respiration Rate, and microvibrations. In Proceedings of the 2016 CHI Conference Extended Abstracts on Human Factors in Computing Systems, 2209–16 (ACM Press, 2016).

32. 32.

Wohlfahrt, P. et al. Transitions in effective scaling behavior of accelerometric time series across sleep and wake. EPL (Europhys. Lett.) 103, 68002. https://doi.org/10.1209/0295-5075/103/68002 (2013).

33. 33.

Zinkhan, M. & Kantelhardt, J. W. Sleep assessment in large cohort studies with high-resolution accelerometers. Sleep Med. Clin. 11, 469–488. https://doi.org/10.1016/j.jsmc.2016.08.006 (2016).

34. 34.

Zschocke, J. et al. Detection and analysis of pulse waves during sleep via wrist-worn actigraphy. PLoS ONE 14, e0226843. https://doi.org/10.1371/journal.pone.0226843 (2019).

35. 35.

Gabor, D. Theory of communication. part 1: The analysis of information. J. Inst. Electr. Eng. III 93, 429 (1946).

36. 36.

Schneider, R., Bauer, A., Barthel, P. & Schmidt, G. LibRasch: a programming framework for signal handling. Comput. Cardiol. 53–6, 2004. https://doi.org/10.1109/CIC.2004.1442869 (2004).

37. 37.

Rosenblum, M., Pikovsky, A., Kurths, J. & Pikovsky, A. Phase synchronization: from theory to data analysis. In: Handbook of Biological Physics 279 (2001).

Acknowledgements

We thank Rafael Mikolajczyk for discussions, Livnat Corelenchtein-Rozen and Yaopeng Ma for help with data pre-processing, and Niklas Wallstein for calculating the synchronization between flow and respiration from inductive plethysmography as a reference. This study was supported by the German-Israeli Foundation (GIF) Grants I-1298-415.13/2015 and I-1372-303.7/2016 and the German National Cohort study (www.nationale-kohorte.de), funded by the Federal Ministry of Education and Research (BMBF) and the Helmholtz Association. TP was partially supported by Russian Federation Government Grant No 075-15-2019-1885. JZ acknowledges support from a Minerva Short-Term Research Grant.

Funding

Open access funding provided by Projekt DEAL.

Author information

Authors

Contributions

J.L. developed and implemented the data processing methodology, analyzed the data and prepared most of the figures. J.Z. co-supervised the work of J.L. and participated in discussions. M.K., L.P. and A.G. conducted the experiments and data recordings under supervision of M.G. and T.P. A.M. evaluated the ECGs of all subjects and participated in discussions. R.P.B. participated in discussions and helped in writing the manuscript. J.W.K. devised the data analysis, supervised the work of J.L. and J.Z., participated in discussions, and wrote most parts of the manuscript. All authors reviewed the manuscript.

Corresponding author

Correspondence to Jan W. Kantelhardt.

Ethics declarations

Competing interests

The authors declare no competing interests.

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and Permissions

Leube, J., Zschocke, J., Kluge, M. et al. Reconstruction of the respiratory signal through ECG and wrist accelerometer data. Sci Rep 10, 14530 (2020). https://doi.org/10.1038/s41598-020-71539-0

• Accepted:

• Published: